From 957f4cd024bb37030bbcbb20997c44806e7996cc Mon Sep 17 00:00:00 2001 From: edgar Date: Tue, 3 Nov 2026 21:22:51 +0000 Subject: [PATCH] =?UTF-8?q?feat(tea):=20botones=20para=20resaltar=20grupos?= =?UTF-8?q?=20y=20categor=C3=ADas=20en=20las=20figuras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Leyenda con botones, como la distribución de resultados citológicos de cáncer cervicouterino: el grupo o la categoría elegida conserva su color, el resto se atenúa, «Volver» retrocede y un clic en la figura equivale al botón (indicadores-highlight.ts). - M21, M22 y M24 con botones por grupo de edad; el centro de las donas muestra la selección. - En TEA, la dona C2 de un periodo (M23) se dibuja con ambos anillos y botones, y sus barras también los tienen. --- .../indicadores/indicador-figure-card.html | 20 ++- .../indicadores/indicador-figure-card.scss | 13 ++ .../indicadores/indicador-figure-card.ts | 25 +++- .../indicadores/indicador-figure-panel.ts | 10 +- .../indicadores/indicadores-c1-donut.spec.ts | 10 +- .../indicadores/indicadores-c1-donut.ts | 20 +-- .../indicadores/indicadores-c2-panel.spec.ts | 11 ++ .../indicadores-donut-periods.spec.ts | 2 + .../indicadores/indicadores-highlight.spec.ts | 57 +++++++++ .../indicadores/indicadores-highlight.ts | 117 ++++++++++++++++++ .../indicadores/indicadores-tea-c2.ts | 37 ++++++ 11 files changed, 307 insertions(+), 15 deletions(-) create mode 100644 src/app/features/indicadores/indicadores-highlight.spec.ts create mode 100644 src/app/features/indicadores/indicadores-highlight.ts create mode 100644 src/app/features/indicadores/indicadores-tea-c2.ts diff --git a/src/app/features/indicadores/indicador-figure-card.html b/src/app/features/indicadores/indicador-figure-card.html index 817476f..406c5c4 100644 --- a/src/app/features/indicadores/indicador-figure-card.html +++ b/src/app/features/indicadores/indicador-figure-card.html @@ -83,7 +83,23 @@ } - @if (state.status === 'ready' && state.donutLegend?.length) { + @if (state.status === 'ready' && state.highlight; as h) { +
+

Selección: {{ highlightStatus }}

+ + @for (row of highlightRows(h); track row.group?.id ?? '') { +
+ @if (row.group; as g) { + + } + @for (c of row.items; track c.id) { + + } +
+ } +
+ } @else if (state.status === 'ready' && state.donutLegend?.length) {
@for (entry of state.donutLegend; track entry.label) { @@ -94,7 +110,7 @@ }
- +
}