feat: enhance chat components with improved accessibility features, including ARIA attributes for search and user status, and implement message length validation and file type checks in message input handling
This commit is contained in:
@@ -73,3 +73,5 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -132,6 +132,12 @@
|
||||
const funcionarios = $derived(funcionariosQuery?.data || []);
|
||||
const registros = $derived(registrosQuery?.data || []);
|
||||
const estatisticas = $derived(estatisticasQuery?.data);
|
||||
|
||||
// Obter nome do funcionário selecionado
|
||||
const funcionarioSelecionadoNome = $derived.by(() => {
|
||||
if (!funcionarioIdFiltro) return null;
|
||||
return funcionarios.find((f) => f._id === funcionarioIdFiltro)?.nome || null;
|
||||
});
|
||||
const config = $derived(configQuery?.data);
|
||||
|
||||
// Debug: Log dos dados recebidos
|
||||
@@ -585,12 +591,7 @@
|
||||
// Funções de formatação importadas de $lib/utils/ponto/formatacao
|
||||
|
||||
// Usar função centralizada formatarDataDDMMAAAA da lib/utils/ponto.ts
|
||||
|
||||
// Obter nome do funcionário selecionado
|
||||
const funcionarioSelecionadoNome = $derived.by(() => {
|
||||
if (!funcionarioIdFiltro) return null;
|
||||
return funcionarios.find((f) => f._id === funcionarioIdFiltro)?.nome || null;
|
||||
});
|
||||
// funcionarioSelecionadoNome movido para cima, logo após a definição de funcionarios
|
||||
|
||||
// Funções de cálculo importadas de $lib/utils/ponto/calculos
|
||||
// calcularSaldosParciais, calcularSaldoDiario, calcularSaldosPorPar, calcularSaldoComparativoPorPar
|
||||
|
||||
@@ -73,3 +73,5 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user