feat: suporte para selecionar campos na tabela

This commit is contained in:
marcio 2026-05-28 10:55:04 -03:00
parent 7dc071373a
commit 0886fd5c3e
16 changed files with 5867 additions and 4684 deletions

View file

@ -11,6 +11,20 @@
overflow: visible;
}
/* Corrige o vazamento (pontas quadradas) do fundo dos th/td nas bordas arredondadas da tabela */
.eli-tabela__table thead tr:first-child th:first-child {
border-top-left-radius: 11px;
}
.eli-tabela__table thead tr:first-child th:last-child {
border-top-right-radius: 11px;
}
.eli-tabela__table tbody tr:last-child td:first-child {
border-bottom-left-radius: 11px;
}
.eli-tabela__table tbody tr:last-child td:last-child {
border-bottom-right-radius: 11px;
}
.eli-tabela__tbody {
overflow: visible;
}
@ -66,7 +80,7 @@
}
.eli-tabela__th-botao--ativo {
color: rgba(37, 99, 235, 0.95);
color: rgba(15, 23, 42, 0.85);
}
.eli-tabela__th-texto {
@ -395,3 +409,70 @@
grid-template-columns: 1fr;
}
}
/* =========================================
* Seleção (Checkboxes)
* ========================================= */
.eli-tabela__th--selecao,
.eli-tabela__td--selecao {
width: 48px;
min-width: 48px;
max-width: 48px;
text-align: center;
padding: 0 8px;
vertical-align: middle;
}
.eli-tabela__checkbox {
appearance: none;
-webkit-appearance: none;
width: 15px;
height: 15px;
cursor: pointer;
border: 2px solid rgba(0, 0, 0, 0.54);
border-radius: 2px;
margin: 0;
vertical-align: middle;
position: relative;
transition: all 0.2s ease-in-out;
background-color: transparent;
outline: none;
}
.eli-tabela__checkbox:hover {
border-color: rgba(0, 0, 0, 0.87);
}
.eli-tabela__checkbox:checked,
.eli-tabela__checkbox:indeterminate {
background-color: #1976d2;
border-color: #1976d2;
}
.eli-tabela__checkbox:checked::after {
content: '';
position: absolute;
top: 0px;
left: 4px;
width: 4px;
height: 9px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.eli-tabela__checkbox:indeterminate::after {
content: '';
position: absolute;
top: 5px;
left: 2px;
width: 8px;
height: 2px;
background-color: white;
border-radius: 1px;
}
.eli-tabela__checkbox:focus-visible {
box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}