@dartech/arsenal-ui 1.4.75 → 1.4.77
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +205 -182
- package/package.json +1 -1
- package/src/lib/Forms/ControlAutocomplete/ControlAutocomplete.d.ts +4 -0
- package/src/lib/Forms/ControlSelect.d.ts +1 -0
- package/src/lib/Table/DataGrid/Table.d.ts +4 -3
- package/src/theme/inputThemeOptions.d.ts +24 -2
- package/src/theme/tableThemeOptions.d.ts +97 -1
package/index.js
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
import { createTheme, responsiveFontSizes, styled, ThemeProvider } from '@mui/material/styles';
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
3
|
+
import { __rest, __awaiter } from 'tslib';
|
4
|
+
import TextField from '@mui/material/TextField';
|
5
|
+
import MenuItem from '@mui/material/MenuItem';
|
6
|
+
import React, { useRef, useEffect, useState, useCallback, useMemo, createElement, forwardRef, createContext, useContext, memo, useImperativeHandle, Suspense } from 'react';
|
7
|
+
import { useController, useWatch, useFormContext, Controller, useFieldArray, useForm } from 'react-hook-form';
|
8
|
+
import SvgIcon from '@mui/material/SvgIcon';
|
9
|
+
import IconButton from '@mui/material/IconButton';
|
10
|
+
import InputAdornment from '@mui/material/InputAdornment';
|
3
11
|
import Button from '@mui/material/Button';
|
4
12
|
import Dialog from '@mui/material/Dialog';
|
5
13
|
import DialogActions from '@mui/material/DialogActions';
|
@@ -8,15 +16,7 @@ import DialogContentText from '@mui/material/DialogContentText';
|
|
8
16
|
import DialogTitle from '@mui/material/DialogTitle';
|
9
17
|
import Box from '@mui/material/Box';
|
10
18
|
import Typography from '@mui/material/Typography';
|
11
|
-
import IconButton from '@mui/material/IconButton';
|
12
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
13
19
|
import CircularProgress from '@mui/material/CircularProgress';
|
14
|
-
import { __rest, __awaiter } from 'tslib';
|
15
|
-
import { useController, useWatch, useFormContext, Controller, useFieldArray, useForm } from 'react-hook-form';
|
16
|
-
import TextField from '@mui/material/TextField';
|
17
|
-
import React, { useRef, useEffect, useState, useCallback, useMemo, createElement, forwardRef, createContext, useContext, memo, useImperativeHandle, Suspense } from 'react';
|
18
|
-
import MenuItem from '@mui/material/MenuItem';
|
19
|
-
import InputAdornment from '@mui/material/InputAdornment';
|
20
20
|
import FormControl from '@mui/material/FormControl';
|
21
21
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
22
22
|
import FormHelperText from '@mui/material/FormHelperText';
|
@@ -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';
|
@@ -456,17 +455,13 @@ const ControlDebouncedInput = _a => {
|
|
456
455
|
}));
|
457
456
|
};
|
458
457
|
|
459
|
-
const PopupIconComponent$
|
460
|
-
return jsx(SvgIcon,
|
461
|
-
sx: {
|
462
|
-
mr: 2
|
463
|
-
}
|
464
|
-
}, {
|
458
|
+
const PopupIconComponent$1 = () => {
|
459
|
+
return jsx(SvgIcon, {
|
465
460
|
children: jsx("path", {
|
466
461
|
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",
|
467
462
|
fill: "#8B8C9E"
|
468
463
|
})
|
469
|
-
})
|
464
|
+
});
|
470
465
|
};
|
471
466
|
/**
|
472
467
|
* Material UI `Select` controlled component. Used with react-hook-form
|
@@ -576,7 +571,6 @@ const ControlSelect = _a => {
|
|
576
571
|
})) : null
|
577
572
|
}, textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.InputProps),
|
578
573
|
SelectProps: {
|
579
|
-
IconComponent: PopupIconComponent$2,
|
580
574
|
sx: {
|
581
575
|
'& .MuiSelect-select .notranslate::after': textFieldProps.placeholder ? {
|
582
576
|
content: `"${textFieldProps.placeholder}"`,
|
@@ -790,19 +784,10 @@ const useAutocomplete = ({
|
|
790
784
|
};
|
791
785
|
var useAutocomplete$1 = useAutocomplete;
|
792
786
|
|
793
|
-
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='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";
|
794
|
-
var PopupIcon = img$7;
|
795
|
-
|
796
787
|
/**
|
797
788
|
* Material UI `Autocomplete` controlled component. Used with react-hook-form
|
798
789
|
* @category Forms
|
799
790
|
*/
|
800
|
-
const PopupIconComponent$1 = () => {
|
801
|
-
return jsx("img", {
|
802
|
-
src: PopupIcon,
|
803
|
-
alt: ""
|
804
|
-
});
|
805
|
-
};
|
806
791
|
const ControlAutocomplete = _a => {
|
807
792
|
var {
|
808
793
|
control,
|
@@ -879,7 +864,6 @@ const ControlAutocomplete = _a => {
|
|
879
864
|
filterSelectedOptions: multiple,
|
880
865
|
onChange: customOnChange ? customOnChange : handleChange,
|
881
866
|
renderOption: renderOption,
|
882
|
-
popupIcon: jsx(PopupIconComponent$1, {}),
|
883
867
|
renderInput: params => {
|
884
868
|
return jsx(TextField, Object.assign({}, params, {
|
885
869
|
variant: "outlined",
|
@@ -913,6 +897,9 @@ const ControlAutocomplete = _a => {
|
|
913
897
|
}, autocompleteProps));
|
914
898
|
};
|
915
899
|
|
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;
|
902
|
+
|
916
903
|
const PopupIconComponent = () => {
|
917
904
|
return jsx("img", {
|
918
905
|
src: PopupIcon,
|
@@ -1579,6 +1566,7 @@ const baseThemeOptions = {
|
|
1579
1566
|
light: '#DBFCEE'
|
1580
1567
|
},
|
1581
1568
|
grey: {
|
1569
|
+
100: '#F7F8FC',
|
1582
1570
|
700: '#101F2B'
|
1583
1571
|
}
|
1584
1572
|
},
|
@@ -1602,10 +1590,21 @@ var baseTheme = createTheme(baseThemeOptions);
|
|
1602
1590
|
|
1603
1591
|
const inputThemeOptions = {
|
1604
1592
|
components: {
|
1605
|
-
|
1593
|
+
MuiButtonBase: {
|
1594
|
+
defaultProps: {
|
1595
|
+
disableElevation: true
|
1596
|
+
},
|
1606
1597
|
styleOverrides: {
|
1607
1598
|
root: {
|
1608
|
-
|
1599
|
+
'&.MuiButton-root': {
|
1600
|
+
boxShadow: 'none'
|
1601
|
+
// lineHeight: 1.429
|
1602
|
+
},
|
1603
|
+
|
1604
|
+
'&.MuiButton-root:hover': {
|
1605
|
+
boxShadow: 'none',
|
1606
|
+
backgroundColor: '#D15C3B'
|
1607
|
+
}
|
1609
1608
|
}
|
1610
1609
|
}
|
1611
1610
|
},
|
@@ -1615,7 +1614,8 @@ const inputThemeOptions = {
|
|
1615
1614
|
color: '#262842',
|
1616
1615
|
borderRadius: baseTheme.spacing(3),
|
1617
1616
|
minWidth: baseTheme.spacing(25),
|
1618
|
-
background: baseTheme.palette.background.default
|
1617
|
+
background: baseTheme.palette.background.default,
|
1618
|
+
paddingRight: baseTheme.spacing(3)
|
1619
1619
|
// height: 40
|
1620
1620
|
},
|
1621
1621
|
|
@@ -1631,6 +1631,9 @@ const inputThemeOptions = {
|
|
1631
1631
|
},
|
1632
1632
|
|
1633
1633
|
MuiSelect: {
|
1634
|
+
defaultProps: {
|
1635
|
+
IconComponent: PopupIconComponent$1
|
1636
|
+
},
|
1634
1637
|
styleOverrides: {
|
1635
1638
|
nativeInput: {
|
1636
1639
|
padding: 0,
|
@@ -1675,7 +1678,15 @@ const inputThemeOptions = {
|
|
1675
1678
|
}
|
1676
1679
|
},
|
1677
1680
|
MuiAutocomplete: {
|
1681
|
+
defaultProps: {
|
1682
|
+
popupIcon: jsx(PopupIconComponent$1, {})
|
1683
|
+
},
|
1678
1684
|
styleOverrides: {
|
1685
|
+
root: {
|
1686
|
+
'& .MuiOutlinedInput-root .MuiAutocomplete-endAdornment': {
|
1687
|
+
right: 12
|
1688
|
+
}
|
1689
|
+
},
|
1679
1690
|
paper: {
|
1680
1691
|
marginTop: 8,
|
1681
1692
|
borderRadius: 12,
|
@@ -1768,8 +1779,19 @@ const tableThemeOptions = {
|
|
1768
1779
|
MuiTableRow: {
|
1769
1780
|
styleOverrides: {
|
1770
1781
|
root: {
|
1771
|
-
'&:hover': {
|
1772
|
-
|
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'
|
1773
1795
|
}
|
1774
1796
|
}
|
1775
1797
|
}
|
@@ -1778,6 +1800,7 @@ const tableThemeOptions = {
|
|
1778
1800
|
styleOverrides: {
|
1779
1801
|
root: {
|
1780
1802
|
padding: baseTheme.spacing(1, 2),
|
1803
|
+
borderColor: '#26284214',
|
1781
1804
|
'&:first-of-type': {
|
1782
1805
|
paddingLeft: baseTheme.spacing(4)
|
1783
1806
|
}
|
@@ -1798,6 +1821,93 @@ const tableThemeOptions = {
|
|
1798
1821
|
lineHeight: 1
|
1799
1822
|
}
|
1800
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
|
+
}
|
1801
1911
|
}
|
1802
1912
|
}
|
1803
1913
|
};
|
@@ -2693,8 +2803,8 @@ const ControlSwitch = _a => {
|
|
2693
2803
|
});
|
2694
2804
|
};
|
2695
2805
|
|
2696
|
-
var img$
|
2697
|
-
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;
|
2698
2808
|
|
2699
2809
|
const DateIconComponent$1 = () => {
|
2700
2810
|
return jsx("img", {
|
@@ -3278,8 +3388,8 @@ const ControlPeriodInput = ({
|
|
3278
3388
|
});
|
3279
3389
|
};
|
3280
3390
|
|
3281
|
-
var img$
|
3282
|
-
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;
|
3283
3393
|
|
3284
3394
|
const ControlPhoneInput = _a => {
|
3285
3395
|
var {
|
@@ -3356,6 +3466,13 @@ const ControlPhoneInput = _a => {
|
|
3356
3466
|
});
|
3357
3467
|
};
|
3358
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
|
+
});
|
3359
3476
|
const TablePagination = () => {
|
3360
3477
|
const apiRef = useGridApiContext();
|
3361
3478
|
const page = useGridSelector(apiRef, gridPageSelector);
|
@@ -3386,7 +3503,10 @@ const TablePagination = () => {
|
|
3386
3503
|
onRowsPerPageChange: onRowsPerPageChange,
|
3387
3504
|
labelRowsPerPage: "\u0421\u0442\u0440\u043E\u043A \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",
|
3388
3505
|
labelDisplayedRows: labelDisplayedRows,
|
3389
|
-
ActionsComponent: undefined
|
3506
|
+
ActionsComponent: undefined,
|
3507
|
+
SelectProps: {
|
3508
|
+
IconComponent: SelectArrow$1
|
3509
|
+
}
|
3390
3510
|
}), jsx(Pagination, {
|
3391
3511
|
count: pageCount,
|
3392
3512
|
page: page + 1,
|
@@ -3516,106 +3636,6 @@ const usePagination = initialPageSize => {
|
|
3516
3636
|
};
|
3517
3637
|
var usePagination$1 = usePagination;
|
3518
3638
|
|
3519
|
-
const StyledDataGrid = styled(DataGrid)(({
|
3520
|
-
theme
|
3521
|
-
}) => ({
|
3522
|
-
borderRadius: theme.spacing(3),
|
3523
|
-
width: '100%',
|
3524
|
-
color: theme.palette.mode === 'light' ? 'rgba(0,0,0,.85)' : 'rgba(255,255,255,0.85)',
|
3525
|
-
'& .MuiDataGrid-columnsContainer': {
|
3526
|
-
borderRadius: theme.spacing(3),
|
3527
|
-
border: '1px solid rgba(38, 40, 66, 0.08)'
|
3528
|
-
},
|
3529
|
-
'& .MuiDataGrid-columnHeaders': {
|
3530
|
-
minHeight: '48px !important',
|
3531
|
-
backgroundColor: '#F7F8FC',
|
3532
|
-
borderTopLeftRadius: theme.spacing(3),
|
3533
|
-
borderTopRightRadius: theme.spacing(3)
|
3534
|
-
},
|
3535
|
-
'& .MuiDataGrid-columnHeader, .MuiDataGrid-cell': {
|
3536
|
-
padding: theme.spacing(2.75, 2),
|
3537
|
-
color: '#6D6E85',
|
3538
|
-
'&.Sorted': {
|
3539
|
-
color: '#262842'
|
3540
|
-
},
|
3541
|
-
'&:first-of-type': {
|
3542
|
-
paddingLeft: theme.spacing(4)
|
3543
|
-
},
|
3544
|
-
borderRight: 0,
|
3545
|
-
borderLeft: 0,
|
3546
|
-
minHeight: '48px !important'
|
3547
|
-
},
|
3548
|
-
'& .MuiDataGrid-columnsContainer, .MuiDataGrid-cell': {
|
3549
|
-
padding: theme.spacing(1, 2),
|
3550
|
-
'&:first-of-type': {
|
3551
|
-
paddingLeft: theme.spacing(4)
|
3552
|
-
}
|
3553
|
-
},
|
3554
|
-
'& .MuiDataGrid-row': {
|
3555
|
-
maxHeight: 'none !important',
|
3556
|
-
minHeight: '48px !important',
|
3557
|
-
'&:hover': {
|
3558
|
-
backgroundColor: '#F7F8FC!important'
|
3559
|
-
}
|
3560
|
-
},
|
3561
|
-
'& .MuiDataGrid-cell': {
|
3562
|
-
color: theme.palette.mode === 'light' ? 'rgba(0,0,0,.85)' : 'rgba(255,255,255,0.65)',
|
3563
|
-
'&:focus': {
|
3564
|
-
border: 0
|
3565
|
-
},
|
3566
|
-
maxHeight: 'none !important',
|
3567
|
-
minHeight: '48px !important',
|
3568
|
-
lineHeight: 'unset !important',
|
3569
|
-
// whiteSpace: 'normal !important',
|
3570
|
-
textOverflow: 'ellipsis',
|
3571
|
-
wordBreak: 'break-all',
|
3572
|
-
'& .MuiDataGrid-actionsCell': {
|
3573
|
-
width: '100%',
|
3574
|
-
gridGap: '4px',
|
3575
|
-
flexWrap: 'wrap',
|
3576
|
-
'& > button[aria-label="more"]': {
|
3577
|
-
marginLeft: 'auto'
|
3578
|
-
}
|
3579
|
-
}
|
3580
|
-
},
|
3581
|
-
'& .MuiPaginationItem-root': {
|
3582
|
-
borderRadius: 0
|
3583
|
-
},
|
3584
|
-
'& .MuiDataGrid-virtualScrollerContent': {
|
3585
|
-
height: 'auto !important',
|
3586
|
-
minHeight: '48px !important'
|
3587
|
-
},
|
3588
|
-
'& .MuiDataGrid-virtualScrollerRenderZone': {
|
3589
|
-
position: 'static'
|
3590
|
-
},
|
3591
|
-
'& .MuiDataGrid-renderingZone': {
|
3592
|
-
maxHeight: 'none !important'
|
3593
|
-
},
|
3594
|
-
'& .MuiDataGrid-cell:focus-within, & .MuiDataGrid-cell:focus': {
|
3595
|
-
outline: 'none !important'
|
3596
|
-
},
|
3597
|
-
'& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-columnHeader:focus': {
|
3598
|
-
outline: 'none !important'
|
3599
|
-
},
|
3600
|
-
'& .MuiTablePagination-actions': {
|
3601
|
-
display: 'none !important'
|
3602
|
-
},
|
3603
|
-
'& .MuiDataGrid-iconButtonContainer': {
|
3604
|
-
'& img': {
|
3605
|
-
visibility: 'visible !important',
|
3606
|
-
opacity: '0.5!important'
|
3607
|
-
}
|
3608
|
-
},
|
3609
|
-
'& .Sorted': {
|
3610
|
-
'& .MuiDataGrid-iconButtonContainer': {
|
3611
|
-
'& img': {
|
3612
|
-
visibility: 'visible !important',
|
3613
|
-
opacity: '1!important'
|
3614
|
-
}
|
3615
|
-
}
|
3616
|
-
}
|
3617
|
-
}));
|
3618
|
-
|
3619
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";
|
3620
3640
|
var SortIcon = img$4;
|
3621
3641
|
|
@@ -3647,24 +3667,26 @@ const SortDescIconComponent$1 = () => {
|
|
3647
3667
|
alt: ""
|
3648
3668
|
});
|
3649
3669
|
};
|
3650
|
-
const Table =
|
3651
|
-
|
3652
|
-
|
3653
|
-
|
3654
|
-
|
3655
|
-
|
3656
|
-
|
3657
|
-
|
3658
|
-
|
3659
|
-
|
3660
|
-
|
3670
|
+
const Table = _a => {
|
3671
|
+
var {
|
3672
|
+
columns,
|
3673
|
+
rows,
|
3674
|
+
rowCount,
|
3675
|
+
loading,
|
3676
|
+
disableMargin,
|
3677
|
+
mode = 'server',
|
3678
|
+
initialPageSize = 10,
|
3679
|
+
pagination = true,
|
3680
|
+
onCellClick
|
3681
|
+
} = _a,
|
3682
|
+
dataGridProps = __rest(_a, ["columns", "rows", "rowCount", "loading", "disableMargin", "mode", "initialPageSize", "pagination", "onCellClick"]);
|
3661
3683
|
const {
|
3662
3684
|
page,
|
3663
3685
|
size,
|
3664
3686
|
onPageChange,
|
3665
3687
|
onSizeChange
|
3666
3688
|
} = useTableQueryPagination$1({
|
3667
|
-
mode
|
3689
|
+
mode
|
3668
3690
|
});
|
3669
3691
|
const {
|
3670
3692
|
onColumnHeaderClick,
|
@@ -3673,12 +3695,12 @@ const Table = ({
|
|
3673
3695
|
const {
|
3674
3696
|
pageSize,
|
3675
3697
|
handlePageSizeChange
|
3676
|
-
} = usePagination$1(
|
3698
|
+
} = usePagination$1(initialPageSize);
|
3677
3699
|
const tableProps = {
|
3678
|
-
sortingMode:
|
3679
|
-
paginationMode:
|
3680
|
-
pageSize:
|
3681
|
-
onPageSizeChange:
|
3700
|
+
sortingMode: mode,
|
3701
|
+
paginationMode: mode,
|
3702
|
+
pageSize: mode === 'server' ? size : pagination ? pageSize : rowCount,
|
3703
|
+
onPageSizeChange: mode === 'server' ? onSizeChange : handlePageSizeChange,
|
3682
3704
|
components: {
|
3683
3705
|
BaseTooltip: Tooltip,
|
3684
3706
|
Pagination: TablePagination$1,
|
@@ -3696,7 +3718,7 @@ const Table = ({
|
|
3696
3718
|
}
|
3697
3719
|
}
|
3698
3720
|
};
|
3699
|
-
if (
|
3721
|
+
if (mode === 'server') {
|
3700
3722
|
// tableProps['sortModel'] = [];
|
3701
3723
|
tableProps['onColumnHeaderClick'] = onColumnHeaderClick;
|
3702
3724
|
tableProps['page'] = page;
|
@@ -3706,13 +3728,13 @@ const Table = ({
|
|
3706
3728
|
return jsx(Box, Object.assign({
|
3707
3729
|
mt: disableMargin ? 0 : 2
|
3708
3730
|
}, {
|
3709
|
-
children: jsx(
|
3731
|
+
children: jsx(DataGrid, Object.assign({
|
3710
3732
|
autoHeight: true,
|
3711
|
-
hideFooterPagination: !
|
3712
|
-
hideFooter: !
|
3733
|
+
hideFooterPagination: !pagination,
|
3734
|
+
hideFooter: !pagination,
|
3713
3735
|
disableSelectionOnClick: true,
|
3714
|
-
showColumnRightBorder
|
3715
|
-
showCellRightBorder
|
3736
|
+
// showColumnRightBorder={false}
|
3737
|
+
// showCellRightBorder
|
3716
3738
|
loading: loading,
|
3717
3739
|
rows: rows,
|
3718
3740
|
disableColumnMenu: true,
|
@@ -3720,7 +3742,7 @@ const Table = ({
|
|
3720
3742
|
rowCount: rowCount,
|
3721
3743
|
rowsPerPageOptions: [10, 20, 50, 100],
|
3722
3744
|
onCellClick: onCellClick
|
3723
|
-
}, tableProps))
|
3745
|
+
}, tableProps, dataGridProps))
|
3724
3746
|
}));
|
3725
3747
|
};
|
3726
3748
|
|
@@ -3855,24 +3877,22 @@ const TableSortLabel = styled(MuiTableSortLabel)(({
|
|
3855
3877
|
}
|
3856
3878
|
}));
|
3857
3879
|
|
3858
|
-
const
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
};
|
3870
|
-
const SortDescIconComponent = () => {
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
});
|
3875
|
-
};
|
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
|
+
});
|
3876
3896
|
function TableInner({
|
3877
3897
|
columns = [],
|
3878
3898
|
rows = [],
|
@@ -3971,7 +3991,7 @@ function TableInner({
|
|
3971
3991
|
textOverflow: 'ellipsis',
|
3972
3992
|
padding: ({
|
3973
3993
|
spacing
|
3974
|
-
}) => spacing(
|
3994
|
+
}) => spacing(1.4, 0)
|
3975
3995
|
}
|
3976
3996
|
}, {
|
3977
3997
|
children: jsx(Box, {
|
@@ -4012,6 +4032,9 @@ function TableInner({
|
|
4012
4032
|
},
|
4013
4033
|
labelRowsPerPage: labelRowsPerPage,
|
4014
4034
|
labelDisplayedRows: labelRowsPerPage ? labelDisplayedRows : undefined,
|
4035
|
+
SelectProps: {
|
4036
|
+
IconComponent: SelectArrow
|
4037
|
+
},
|
4015
4038
|
onPageChange: (_, page) => onPageChange(page),
|
4016
4039
|
onRowsPerPageChange: event => onSizeChange(+event.target.value)
|
4017
4040
|
}) : null]
|
@@ -8379,4 +8402,4 @@ const OverflowTip = ({
|
|
8379
8402
|
}));
|
8380
8403
|
};
|
8381
8404
|
|
8382
|
-
export { AlertDialog, BackButton, Breadcrumbs, ContentLayout, ControlAceEditor, ControlArrayInput, ControlAutocomplete, ControlCheckbox, ControlDate, ControlDateTime, ControlDebouncedInput, ControlInput, ControlNumberInput, ControlPeriodInput, ControlPhoneInput, ControlQueryAutocomplete, ControlRadio, ControlSelect, ControlSwitch, ControlTime, CopyButton, CreateDefinition, CreatePropertiesList, CreatePropertiesListContext, CreatePropertyFormFields, DATE_DEFAULT_FORMAT, DATE_TIME_DEFAULT_FORMAT, DEFAULT_DATE_VALIDATION_ERROR_TEXT, DEFAULT_ERROR_TEXT, DEFAULT_REQUIRED_ERROR_TEXT, DefinitionFiller, DefinitionValueView, InfoItem, JsonModalView, JsonPathPicker, JsonView, Loader, MenuIcon, MultiplePropertyFiller, OverflowTip, PropertyFiller, PropertyType, PropertyValueField, RoundingMode, RouteTabs, Sidebar, SimpleTable, Status, StepperView, TIME_DEFAULT_FORMAT, TabPanel, Table, TableAction, TableActionCell, ViewPropertiesList, ViewProperty, capitalize, deepParseJson, defaultDefinitionArrayValue, defaultDefinitionObjectValue, digitsOnly, floatsOnly, formatDefinitionData, formatTableRowValue, getDemPropertyDateFormat, getEntityStarterValue, getJsonStringValue, getMultiplePropertyFillOptions, getSinglePropertyFillOptions, isDateType, isExpression, isPropertyValueEmpty, numberFormat, propertiesArrayToObject, propertiesObjectToArray, removeArrayItem, safeParseJson, sortArrayOfObjects, theme, useDebounce, useToggle, validateJson };
|
8405
|
+
export { AlertDialog, BackButton, Breadcrumbs, ContentLayout, ControlAceEditor, ControlArrayInput, ControlAutocomplete, ControlCheckbox, ControlDate, ControlDateTime, ControlDebouncedInput, ControlInput, ControlNumberInput, ControlPeriodInput, ControlPhoneInput, ControlQueryAutocomplete, ControlRadio, ControlSelect, ControlSwitch, ControlTime, CopyButton, CreateDefinition, CreatePropertiesList, CreatePropertiesListContext, CreatePropertyFormFields, DATE_DEFAULT_FORMAT, DATE_TIME_DEFAULT_FORMAT, DEFAULT_DATE_VALIDATION_ERROR_TEXT, DEFAULT_ERROR_TEXT, DEFAULT_REQUIRED_ERROR_TEXT, DefinitionFiller, DefinitionValueView, InfoItem, JsonModalView, JsonPathPicker, JsonView, Loader, MenuIcon, MultiplePropertyFiller, OverflowTip, PopupIconComponent$1 as PopupIconComponent, PropertyFiller, PropertyType, PropertyValueField, RoundingMode, RouteTabs, Sidebar, SimpleTable, Status, StepperView, TIME_DEFAULT_FORMAT, TabPanel, Table, TableAction, TableActionCell, ViewPropertiesList, ViewProperty, capitalize, deepParseJson, defaultDefinitionArrayValue, defaultDefinitionObjectValue, digitsOnly, floatsOnly, formatDefinitionData, formatTableRowValue, getDemPropertyDateFormat, getEntityStarterValue, getJsonStringValue, getMultiplePropertyFillOptions, getSinglePropertyFillOptions, isDateType, isExpression, isPropertyValueEmpty, numberFormat, propertiesArrayToObject, propertiesObjectToArray, removeArrayItem, safeParseJson, sortArrayOfObjects, theme, useDebounce, useToggle, validateJson };
|
package/package.json
CHANGED
@@ -66,5 +66,9 @@ export type ControlAutocompleteProps = Omit<AutocompleteProps<unknown, boolean,
|
|
66
66
|
startAdornment?: InputProps['startAdornment'];
|
67
67
|
endAdornment?: InputProps['endAdornment'];
|
68
68
|
};
|
69
|
+
/**
|
70
|
+
* Material UI `Autocomplete` controlled component. Used with react-hook-form
|
71
|
+
* @category Forms
|
72
|
+
*/
|
69
73
|
export declare const ControlAutocomplete: ({ control, validate, name, label, required, defaultValue, disabled, hideErrorMessage, onChange: customOnChange, labelKey, valueKey, options, multiple, textFieldProps, disableCloseOnSelect, useStringValue, requiredErrorText, startAdornment, endAdornment, ...autocompleteProps }: ControlAutocompleteProps) => JSX.Element;
|
70
74
|
export default ControlAutocomplete;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { Ref } from 'react';
|
2
|
-
import { GridCellParams, GridColumns, GridFeatureMode, GridRowsProp } from '@mui/x-data-grid';
|
2
|
+
import { GridCellParams, GridColumns, GridFeatureMode, GridRowsProp, GridRowParams, GridCallbackDetails } from '@mui/x-data-grid';
|
3
3
|
/**
|
4
4
|
* This interface is referencing the [[Table]] component props.
|
5
5
|
* @category Common UI components
|
@@ -38,9 +38,10 @@ export interface TableProps {
|
|
38
38
|
* (params: GridCellParams, event: React.MouseEvent) => void;
|
39
39
|
* ```
|
40
40
|
*/
|
41
|
-
onCellClick?: (params: GridCellParams, event: React.MouseEvent) => void;
|
41
|
+
onCellClick?: (params: GridCellParams, event: React.MouseEvent, details: GridCallbackDetails) => void;
|
42
|
+
onRowClick?: (params: GridRowParams, event: React.MouseEvent, details: GridCallbackDetails) => void;
|
42
43
|
pagination?: boolean;
|
43
44
|
refProp?: Ref<unknown>;
|
44
45
|
}
|
45
|
-
export declare const Table: ({ columns, rows, rowCount, loading, disableMargin, mode, initialPageSize, pagination, onCellClick, }: TableProps) => JSX.Element;
|
46
|
+
export declare const Table: ({ columns, rows, rowCount, loading, disableMargin, mode, initialPageSize, pagination, onCellClick, ...dataGridProps }: TableProps) => JSX.Element;
|
46
47
|
export default Table;
|
@@ -1,9 +1,19 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
declare const inputThemeOptions: {
|
2
3
|
components: {
|
3
|
-
|
4
|
+
MuiButtonBase: {
|
5
|
+
defaultProps: {
|
6
|
+
disableElevation: boolean;
|
7
|
+
};
|
4
8
|
styleOverrides: {
|
5
9
|
root: {
|
6
|
-
|
10
|
+
'&.MuiButton-root': {
|
11
|
+
boxShadow: string;
|
12
|
+
};
|
13
|
+
'&.MuiButton-root:hover': {
|
14
|
+
boxShadow: string;
|
15
|
+
backgroundColor: string;
|
16
|
+
};
|
7
17
|
};
|
8
18
|
};
|
9
19
|
};
|
@@ -14,6 +24,7 @@ declare const inputThemeOptions: {
|
|
14
24
|
borderRadius: string;
|
15
25
|
minWidth: string;
|
16
26
|
background: string;
|
27
|
+
paddingRight: string;
|
17
28
|
};
|
18
29
|
input: {
|
19
30
|
minWidth: string;
|
@@ -21,6 +32,9 @@ declare const inputThemeOptions: {
|
|
21
32
|
};
|
22
33
|
};
|
23
34
|
MuiSelect: {
|
35
|
+
defaultProps: {
|
36
|
+
IconComponent: () => JSX.Element;
|
37
|
+
};
|
24
38
|
styleOverrides: {
|
25
39
|
nativeInput: {
|
26
40
|
padding: number;
|
@@ -65,7 +79,15 @@ declare const inputThemeOptions: {
|
|
65
79
|
};
|
66
80
|
};
|
67
81
|
MuiAutocomplete: {
|
82
|
+
defaultProps: {
|
83
|
+
popupIcon: JSX.Element;
|
84
|
+
};
|
68
85
|
styleOverrides: {
|
86
|
+
root: {
|
87
|
+
'& .MuiOutlinedInput-root .MuiAutocomplete-endAdornment': {
|
88
|
+
right: number;
|
89
|
+
};
|
90
|
+
};
|
69
91
|
paper: {
|
70
92
|
marginTop: number;
|
71
93
|
borderRadius: number;
|
@@ -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;
|