42 lines
2.7 KiB
HTML
42 lines
2.7 KiB
HTML
<section class="tiempos" aria-label="Días desde la toma: resultado y diagnóstico">
|
|
<p class="applied-summary">Filtro general aplicado: {{ appliedSummary }}</p>
|
|
<button mat-button type="button" class="methodology-toggle" [attr.aria-expanded]="helpOpen" (click)="toggleHelp()">Cómo leer</button>
|
|
@if (helpOpen) {
|
|
<div class="methodology">
|
|
@for (guide of readingGuide; track guide.clave) {
|
|
<section class="reading-guide" [attr.aria-label]="'Cómo leer: ' + guide.nombre">
|
|
<h3>{{ guide.nombre }}</h3>
|
|
@if (guide.descripcion) { <p>{{ guide.descripcion }}</p> }
|
|
@if (guide.como_leer.length) { <ul>@for (line of guide.como_leer; track $index) { <li>{{ line }}</li> }</ul> }
|
|
</section>
|
|
}
|
|
<p class="caveat">{{ caveat }}</p>
|
|
@if (metadataPending) { <p>Metadatos publicados pendientes. Vuelve a abrir «Cómo leer» para reintentar su consulta.</p> }
|
|
</div>
|
|
}
|
|
@switch (status()) {
|
|
@case ('deferred') { <p role="status">La vista se cargará al acercarse a esta región.</p> }
|
|
@case ('loading') { <mat-progress-bar mode="indeterminate" aria-label="Cargando tiempos de resultado y diagnóstico" /><p role="status">Cargando los mismos periodos para los dos tiempos…</p> }
|
|
@case ('error') { <div role="alert"><p>{{ message }}</p><button mat-stroked-button type="button" (click)="retry()">Reintentar</button></div> }
|
|
@case ('incompatible') { <div role="alert"><p>{{ message }}</p><button mat-stroked-button type="button" (click)="retry()">Reintentar</button></div> }
|
|
}
|
|
@if (model; as m) {
|
|
<h3 class="figure-title">Días desde la toma: resultado y diagnóstico</h3>
|
|
@if (status() === 'empty') { <p role="status">No hay cajas publicadas para estos periodos.</p> }
|
|
@else if (figure) {
|
|
<app-plotly-chart [figure]="figure" [showNotes]="false" [label]="'Tiempos por periodo, ' + par.etiquetas.reporte + ' y ' + par.etiquetas.diagnostico" />
|
|
}
|
|
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
|
<details class="published-values"><summary>Valores publicados</summary>
|
|
<div class="table-scroll" role="region" aria-label="Tabla de tiempos por periodo" tabindex="0">
|
|
<table><caption>Q1, mediana y Q3 en días por periodo</caption>
|
|
<thead><tr><th scope="col">Periodo</th>@for (clave of claves; track clave) { <th scope="col">{{ par.etiquetas[clave] }}</th> }</tr></thead>
|
|
<tbody>@for (periodo of m.periodos; track periodo) {
|
|
<tr><th scope="row">{{ periodo }}</th>@for (clave of claves; track clave) { <td>{{ cajaTexto(m.cajas[clave][periodo]) }}</td> }</tr>
|
|
}</tbody>
|
|
</table>
|
|
</div>
|
|
</details>
|
|
}
|
|
</section>
|