feature/atajos-nav-invoices
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="w-full">
|
||||
<div class="w-full" data-pedimento-list-table>
|
||||
<div
|
||||
class="min-h-[360px] max-h-[calc(100svh-420px)] overflow-auto rounded-md border bg-background [&_[data-slot=table-container]]:overflow-visible [&_[data-slot=table-container]]:w-full"
|
||||
bind:this={scrollContainer}
|
||||
@@ -105,7 +105,7 @@
|
||||
<Table.Root>
|
||||
<Table.Header class="sticky top-0 z-20 border-b bg-background/95 shadow-sm backdrop-blur-md">
|
||||
{#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
|
||||
<Table.Row>
|
||||
<Table.Row inTabOrder={false}>
|
||||
{#each headerGroup.headers as header (header.id)}
|
||||
{@const colId = header.column.id}
|
||||
<Table.Head
|
||||
@@ -180,6 +180,7 @@
|
||||
<Table.Body>
|
||||
{#each table.getRowModel().rows as row (row.id)}
|
||||
<Table.Row
|
||||
data-pedimento-data-row
|
||||
data-state={row.getIsSelected() && "selected"}
|
||||
onclick={() => {
|
||||
if (onRowClick) {
|
||||
@@ -208,7 +209,7 @@
|
||||
{/each}
|
||||
</Table.Row>
|
||||
{:else}
|
||||
<Table.Row>
|
||||
<Table.Row inTabOrder={false}>
|
||||
<Table.Cell colspan={columns.length} class="h-24 text-center">
|
||||
No hay resultados.
|
||||
</Table.Cell>
|
||||
@@ -217,7 +218,7 @@
|
||||
|
||||
<!-- Loading Trigger - Se activa cuando es visible -->
|
||||
{#if hasMore}
|
||||
<Table.Row>
|
||||
<Table.Row inTabOrder={false}>
|
||||
<Table.Cell colspan={columns.length} class="h-20 text-center">
|
||||
<div bind:this={loadingTrigger}>
|
||||
{#if loading}
|
||||
|
||||
@@ -27,7 +27,7 @@ export const obtenerAtajosListaFacturas = (acciones: {
|
||||
}): ShortcutDef[] => [
|
||||
{ key: 'Alt+V', description: 'Ver Temporales', action: acciones.irTemporal },
|
||||
{ key: 'Alt+F', description: 'Ver Definitivas', action: acciones.irDefinitiva },
|
||||
{ key: 'Alt+N', description: 'Ver Nacionales', action: acciones.irNacional },
|
||||
{ key: 'Alt+Q', description: 'Ver Nacionales', action: acciones.irNacional },
|
||||
{ key: 'Alt+Z', description: 'Ver Cambio Régimen', action: acciones.irCambioRegimen },
|
||||
{ key: 'Alt+L', description: 'Ver Exportaciones', action: acciones.irExportacion },
|
||||
{ key: 'Alt+Y', description: 'Ver Reparaciones', action: acciones.irReparacion },
|
||||
|
||||
@@ -5,6 +5,8 @@ export const obtenerAtajosListaPedimento = (acciones: {
|
||||
manejarActualizar: () => void;
|
||||
manejarEditar: () => void;
|
||||
manejarEliminar: () => void;
|
||||
irATabla: () => void;
|
||||
irAAcciones: () => void;
|
||||
}): ShortcutDef[] => [
|
||||
{
|
||||
key: 'Alt+Shift+N',
|
||||
@@ -25,5 +27,17 @@ export const obtenerAtajosListaPedimento = (acciones: {
|
||||
key: 'Alt+Shift+D',
|
||||
description: 'Eliminar Seleccionado',
|
||||
action: acciones.manejarEliminar
|
||||
},
|
||||
{
|
||||
key: 'Alt+Shift+T',
|
||||
description: 'Ir a tabla de pedimentos',
|
||||
action: acciones.irATabla,
|
||||
skipDefaultFocusAfter: true
|
||||
},
|
||||
{
|
||||
key: 'Alt+Shift+A',
|
||||
description: 'Ir a acciones (barra inferior)',
|
||||
action: acciones.irAAcciones,
|
||||
skipDefaultFocusAfter: true
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user