Chore: Visual fix.
This commit is contained in:
@@ -28,6 +28,12 @@ interface Borrador { corte?: string; meses: 1 | 3 | 6 | 12; page_size: number; f
|
||||
<app-cama-patient-card [summary]="patient" (back)="cerrarFicha()" />
|
||||
}
|
||||
<div [hidden]="!!ficha()">
|
||||
<div class="title-row">
|
||||
<h2>Seguimiento de {{ domainLabel }}</h2>
|
||||
@if (data(); as respuesta) {
|
||||
<app-seguimiento-exportar [dominio]="dominio" [respuesta]="respuesta" [habilitado]="estado() === 'ready'" />
|
||||
}
|
||||
</div>
|
||||
<form (ngSubmit)="aplicar()">
|
||||
<label>Fecha de corte <input name="corte" type="date" [(ngModel)]="draft.corte" /></label>
|
||||
<label>Ventana de meses <select name="meses" [(ngModel)]="draft.meses">
|
||||
@@ -75,13 +81,14 @@ interface Borrador { corte?: string; meses: 1 | 3 | 6 | 12; page_size: number; f
|
||||
<span>Página {{ respuesta.paginacion.page }} de {{ respuesta.paginacion.total_pages }}, {{ respuesta.paginacion.total_items }} registros</span>
|
||||
<button type="button" [disabled]="respuesta.paginacion.page >= respuesta.paginacion.total_pages || estado() === 'loading'" (click)="ir(respuesta.paginacion.page + 1)">Siguiente</button>
|
||||
</nav>
|
||||
<app-seguimiento-exportar [dominio]="dominio" [respuesta]="respuesta" [habilitado]="estado() === 'ready'" />
|
||||
}
|
||||
</div>
|
||||
`,
|
||||
styles: `
|
||||
:host { display: block; min-width: 0; }
|
||||
p { color: var(--issste-text-secondary); }
|
||||
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
|
||||
.title-row h2 { margin: 0; margin-inline-end: auto; }
|
||||
form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 1rem; }
|
||||
label { display: flex; flex-direction: column; gap: .5rem; max-width: 100%; }
|
||||
input, select, button { color: inherit; background: var(--issste-surface); border: 1px solid var(--issste-border); border-radius: 4px;
|
||||
@@ -105,6 +112,8 @@ interface Borrador { corte?: string; meses: 1 | 3 | 6 | 12; page_size: number; f
|
||||
export class IndicadoresSeguimientoTabla implements OnChanges {
|
||||
@Input({ required: true }) dominio!: Dominio;
|
||||
@Input() active = false;
|
||||
/** Domain name for the section title, which sits in the same row as the export buttons. */
|
||||
@Input() domainLabel = '';
|
||||
private readonly service = inject(SeguimientoTablaService);
|
||||
private readonly injector = inject(Injector);
|
||||
/** Tells the page that an individual record replaced the list, so it can retitle itself. */
|
||||
|
||||
Reference in New Issue
Block a user