Mostrar métodos y escenarios sin curva en la supervivencia de la ficha

This commit is contained in:
2026-12-02 18:13:33 -06:00
parent 09e5f4dd34
commit 1260e0ff2a
2 changed files with 40 additions and 14 deletions
+15 -5
View File
@@ -560,7 +560,7 @@
</mat-card-content>
</mat-card>
}
@if (models().some((m) => m.model.endsWith('.survival') && m.scenarios.length)) {
@if (models().some((m) => m.model.endsWith('.survival'))) {
<mat-card appearance="outlined" class="wide" data-section="supervivencia">
<mat-card-header>
<mat-card-title>{{
@@ -585,17 +585,27 @@
<li>{{ name }}</li>
}
</ul>
@if (s.methods.length) {
<h3>Métodos</h3>
<ul class="scenarios methods">
@for (name of s.methods; track name) {
<li>{{ name }}</li>
}
</ul>
}
@for (f of s.figures; track f.title) {
<h4>{{ f.title }}</h4>
<app-plot [figure]="f.figure" [height]="340" />
} @empty {
<p class="muted">
Sus escenarios no tienen fallecimientos suficientes para trazar curvas.
</p>
}
@for (name of s.unavailable; track name) {
<h4>{{ name }}</h4>
<p class="muted">No disponible: datos insuficientes.</p>
}
<app-factores [rows]="s.factors" />
} @else if (survival.error()) {
<p class="muted" role="alert">No se pudo leer el informe del modelo.</p>
} @else {
<p class="muted">No disponible: datos insuficientes.</p>
}
</mat-card-content>
</mat-card>