|
@@ -1,19 +1,3 @@
|
|
|
-import {
|
|
|
|
|
- TableHead, TableRow, TableCell,
|
|
|
|
|
- Checkbox, TableSortLabel, Box,
|
|
|
|
|
- IconButton,Typography,Toolbar,
|
|
|
|
|
- Tooltip
|
|
|
|
|
-} from '@mui/material'
|
|
|
|
|
-
|
|
|
|
|
-import { alpha } from '@mui/material/styles';
|
|
|
|
|
-import { visuallyHidden } from '@mui/utils';
|
|
|
|
|
-import { encabezados } from './Rows';
|
|
|
|
|
-
|
|
|
|
|
-import {
|
|
|
|
|
- Delete as DeleteIcon,
|
|
|
|
|
- FilterList as FilterListIcon,
|
|
|
|
|
-} from '@mui/icons-material/'
|
|
|
|
|
-
|
|
|
|
|
export const rows = [
|
|
export const rows = [
|
|
|
createData('Cupcake', 305, 'Analista',109238109238, 'SI', 'SI', 'Nice', 'Good'),
|
|
createData('Cupcake', 305, 'Analista',109238109238, 'SI', 'SI', 'Nice', 'Good'),
|
|
|
]
|
|
]
|
|
@@ -34,61 +18,6 @@ export const action_icon = {
|
|
|
margin :5
|
|
margin :5
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const TableEncabezadoOperation = (props) => {
|
|
|
|
|
-
|
|
|
|
|
- const { numSelected } = props;
|
|
|
|
|
-
|
|
|
|
|
- return (
|
|
|
|
|
- <Toolbar
|
|
|
|
|
- sx={{
|
|
|
|
|
- pl: { sm: 2 },
|
|
|
|
|
- pr: { xs: 1, sm: 1 },
|
|
|
|
|
- ...(numSelected > 0 && {
|
|
|
|
|
- bgcolor: (theme) =>
|
|
|
|
|
- alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
|
|
|
|
- }),
|
|
|
|
|
- }}
|
|
|
|
|
- >
|
|
|
|
|
- {numSelected > 0 ? (
|
|
|
|
|
- <Typography
|
|
|
|
|
- sx={{ flex: '1 1 100%' }}
|
|
|
|
|
- color="inherit"
|
|
|
|
|
- variant="subtitle1"
|
|
|
|
|
- component="div"
|
|
|
|
|
- >
|
|
|
|
|
- {numSelected} Seleccionados
|
|
|
|
|
- </Typography>
|
|
|
|
|
- ) : (
|
|
|
|
|
- <Typography
|
|
|
|
|
- sx={{ flex: '1 1 100%' }}
|
|
|
|
|
- variant="h6"
|
|
|
|
|
- id="tableTitle"
|
|
|
|
|
- component="div"
|
|
|
|
|
- >
|
|
|
|
|
- Contraseñas
|
|
|
|
|
- </Typography>
|
|
|
|
|
- )}
|
|
|
|
|
-
|
|
|
|
|
- {numSelected > 0 ? (
|
|
|
|
|
- <Tooltip title="Elimnar">
|
|
|
|
|
- <IconButton>
|
|
|
|
|
- <DeleteIcon />
|
|
|
|
|
- </IconButton>
|
|
|
|
|
- </Tooltip>
|
|
|
|
|
- ) : (
|
|
|
|
|
- <Tooltip title="Buscar">
|
|
|
|
|
- <IconButton>
|
|
|
|
|
- <FilterListIcon />
|
|
|
|
|
- </IconButton>
|
|
|
|
|
- </Tooltip>
|
|
|
|
|
- )}
|
|
|
|
|
- </Toolbar>
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
export function createData( pass, nivel, puesto, cui, uso, picture, cv, replic, ope) {
|
|
export function createData( pass, nivel, puesto, cui, uso, picture, cv, replic, ope) {
|
|
|
return {
|
|
return {
|
|
|
pass,
|
|
pass,
|
|
@@ -130,52 +59,3 @@ export function Cuerpo(array, comparator) {
|
|
|
});
|
|
});
|
|
|
return stabilizedThis.map((el) => el[0]);
|
|
return stabilizedThis.map((el) => el[0]);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export function EnhancedTableHead(props){
|
|
|
|
|
- // header de la tabla
|
|
|
|
|
-
|
|
|
|
|
- const { onSelectAllClick, order, orderBy, numSelected, rowCount, onRequestSort } = props;
|
|
|
|
|
- const createSortHandler = (property) => (event) => {
|
|
|
|
|
- onRequestSort(event, property);
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- return (
|
|
|
|
|
- <TableHead>
|
|
|
|
|
- <TableRow>
|
|
|
|
|
- <TableCell padding="checkbox">
|
|
|
|
|
- <Checkbox
|
|
|
|
|
- color="primary"
|
|
|
|
|
- indeterminate={numSelected > 0 && numSelected < rowCount}
|
|
|
|
|
- checked={rowCount > 0 && numSelected === rowCount}
|
|
|
|
|
- onChange={onSelectAllClick}
|
|
|
|
|
- inputProps={{
|
|
|
|
|
- 'aria-label': 'select all desserts',
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- </TableCell>
|
|
|
|
|
- { encabezados.map( (headCell, index) => (
|
|
|
|
|
- <TableCell
|
|
|
|
|
- key={index}
|
|
|
|
|
- align={headCell.numeric ? 'right' : 'left'}
|
|
|
|
|
- padding={headCell.disablePadding ? 'none' : 'normal'}
|
|
|
|
|
- sortDirection={orderBy === headCell.id ? order : false}
|
|
|
|
|
- >
|
|
|
|
|
- <TableSortLabel
|
|
|
|
|
- style={{ fontWeight:'bold' }}
|
|
|
|
|
- active={orderBy === headCell.id}
|
|
|
|
|
- direction={orderBy === headCell.id ? order : 'asc'}
|
|
|
|
|
- onClick={createSortHandler(headCell.id)}
|
|
|
|
|
- >
|
|
|
|
|
- {headCell.label}
|
|
|
|
|
- {orderBy === headCell.id ? (
|
|
|
|
|
- <Box component="span" sx={visuallyHidden}>
|
|
|
|
|
- {order === 'desc' ? 'sorted descending' : 'sorted ascending'}
|
|
|
|
|
- </Box>
|
|
|
|
|
- ) : null}
|
|
|
|
|
- </TableSortLabel>
|
|
|
|
|
- </TableCell>
|
|
|
|
|
- ))}
|
|
|
|
|
- </TableRow>
|
|
|
|
|
- </TableHead>
|
|
|
|
|
- );
|
|
|
|
|
-}
|
|
|