|
@@ -1,19 +1,3 @@
|
1
|
|
-import {
|
2
|
|
- TableHead, TableRow, TableCell,
|
3
|
|
- Checkbox, TableSortLabel, Box,
|
4
|
|
- IconButton,Typography,Toolbar,
|
5
|
|
- Tooltip
|
6
|
|
-} from '@mui/material'
|
7
|
|
-
|
8
|
|
-import { alpha } from '@mui/material/styles';
|
9
|
|
-import { visuallyHidden } from '@mui/utils';
|
10
|
|
-import { encabezados } from './Rows';
|
11
|
|
-
|
12
|
|
-import {
|
13
|
|
- Delete as DeleteIcon,
|
14
|
|
- FilterList as FilterListIcon,
|
15
|
|
-} from '@mui/icons-material/'
|
16
|
|
-
|
17
|
1
|
export const rows = [
|
18
|
2
|
createData('Cupcake', 305, 'Analista',109238109238, 'SI', 'SI', 'Nice', 'Good'),
|
19
|
3
|
]
|
|
@@ -34,61 +18,6 @@ export const action_icon = {
|
34
|
18
|
margin :5
|
35
|
19
|
}
|
36
|
20
|
|
37
|
|
-export const TableEncabezadoOperation = (props) => {
|
38
|
|
-
|
39
|
|
- const { numSelected } = props;
|
40
|
|
-
|
41
|
|
- return (
|
42
|
|
- <Toolbar
|
43
|
|
- sx={{
|
44
|
|
- pl: { sm: 2 },
|
45
|
|
- pr: { xs: 1, sm: 1 },
|
46
|
|
- ...(numSelected > 0 && {
|
47
|
|
- bgcolor: (theme) =>
|
48
|
|
- alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
49
|
|
- }),
|
50
|
|
- }}
|
51
|
|
- >
|
52
|
|
- {numSelected > 0 ? (
|
53
|
|
- <Typography
|
54
|
|
- sx={{ flex: '1 1 100%' }}
|
55
|
|
- color="inherit"
|
56
|
|
- variant="subtitle1"
|
57
|
|
- component="div"
|
58
|
|
- >
|
59
|
|
- {numSelected} Seleccionados
|
60
|
|
- </Typography>
|
61
|
|
- ) : (
|
62
|
|
- <Typography
|
63
|
|
- sx={{ flex: '1 1 100%' }}
|
64
|
|
- variant="h6"
|
65
|
|
- id="tableTitle"
|
66
|
|
- component="div"
|
67
|
|
- >
|
68
|
|
- Contraseñas
|
69
|
|
- </Typography>
|
70
|
|
- )}
|
71
|
|
-
|
72
|
|
- {numSelected > 0 ? (
|
73
|
|
- <Tooltip title="Elimnar">
|
74
|
|
- <IconButton>
|
75
|
|
- <DeleteIcon />
|
76
|
|
- </IconButton>
|
77
|
|
- </Tooltip>
|
78
|
|
- ) : (
|
79
|
|
- <Tooltip title="Buscar">
|
80
|
|
- <IconButton>
|
81
|
|
- <FilterListIcon />
|
82
|
|
- </IconButton>
|
83
|
|
- </Tooltip>
|
84
|
|
- )}
|
85
|
|
- </Toolbar>
|
86
|
|
- );
|
87
|
|
-
|
88
|
|
-}
|
89
|
|
-
|
90
|
|
-
|
91
|
|
-
|
92
|
21
|
export function createData( pass, nivel, puesto, cui, uso, picture, cv, replic, ope) {
|
93
|
22
|
return {
|
94
|
23
|
pass,
|
|
@@ -130,52 +59,3 @@ export function Cuerpo(array, comparator) {
|
130
|
59
|
});
|
131
|
60
|
return stabilizedThis.map((el) => el[0]);
|
132
|
61
|
}
|
133
|
|
-
|
134
|
|
-export function EnhancedTableHead(props){
|
135
|
|
-
|
136
|
|
-
|
137
|
|
- const { onSelectAllClick, order, orderBy, numSelected, rowCount, onRequestSort } = props;
|
138
|
|
- const createSortHandler = (property) => (event) => {
|
139
|
|
- onRequestSort(event, property);
|
140
|
|
- };
|
141
|
|
-
|
142
|
|
- return (
|
143
|
|
- <TableHead>
|
144
|
|
- <TableRow>
|
145
|
|
- <TableCell padding="checkbox">
|
146
|
|
- <Checkbox
|
147
|
|
- color="primary"
|
148
|
|
- indeterminate={numSelected > 0 && numSelected < rowCount}
|
149
|
|
- checked={rowCount > 0 && numSelected === rowCount}
|
150
|
|
- onChange={onSelectAllClick}
|
151
|
|
- inputProps={{
|
152
|
|
- 'aria-label': 'select all desserts',
|
153
|
|
- }}
|
154
|
|
- />
|
155
|
|
- </TableCell>
|
156
|
|
- { encabezados.map( (headCell, index) => (
|
157
|
|
- <TableCell
|
158
|
|
- key={index}
|
159
|
|
- align={headCell.numeric ? 'right' : 'left'}
|
160
|
|
- padding={headCell.disablePadding ? 'none' : 'normal'}
|
161
|
|
- sortDirection={orderBy === headCell.id ? order : false}
|
162
|
|
- >
|
163
|
|
- <TableSortLabel
|
164
|
|
- style={{ fontWeight:'bold' }}
|
165
|
|
- active={orderBy === headCell.id}
|
166
|
|
- direction={orderBy === headCell.id ? order : 'asc'}
|
167
|
|
- onClick={createSortHandler(headCell.id)}
|
168
|
|
- >
|
169
|
|
- {headCell.label}
|
170
|
|
- {orderBy === headCell.id ? (
|
171
|
|
- <Box component="span" sx={visuallyHidden}>
|
172
|
|
- {order === 'desc' ? 'sorted descending' : 'sorted ascending'}
|
173
|
|
- </Box>
|
174
|
|
- ) : null}
|
175
|
|
- </TableSortLabel>
|
176
|
|
- </TableCell>
|
177
|
|
- ))}
|
178
|
|
- </TableRow>
|
179
|
|
- </TableHead>
|
180
|
|
- );
|
181
|
|
-}
|