fix(indicadores): quitar flechas, rayas y puntos medios de los textos de pantalla
Los textos que ve una persona, visibles o en aria-label, ya no usan flechas ni rayas o puntos medios como separador: se separan con comas o se reescribe la frase (por ejemplo «Días de toma a resultado (laboratorio)», «Último dato visible, 2025-S1», «Dominio CaCu, investigación», «2025-S2, 1 de 3» o «Datos y definiciones de CaCu»). El pie que publica el kit cambia al mismo estilo, así que la validación del pie de TEA y la lectura de la fecha de corte reconocen el formato nuevo con comas y siguen aceptando el anterior para no romper con un kit previo. Se ajustan los fixtures sintéticos y las specs a los textos nuevos. CSO5.5
This commit is contained in:
@@ -34,7 +34,7 @@ import { parTiempos } from './indicadores-tiempos-pareados';
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<button class="pin-toggle" mat-button type="button" [attr.aria-pressed]="pinned"
|
<button class="pin-toggle" mat-button type="button" [attr.aria-pressed]="pinned"
|
||||||
[attr.aria-label]="(pinned ? 'Desfijar indicador' : 'Fijar indicador') + ' · ' + indicador.titulo"
|
[attr.aria-label]="(pinned ? 'Desfijar indicador' : 'Fijar indicador') + ', ' + indicador.titulo"
|
||||||
(click)="pinChanged.emit()">
|
(click)="pinChanged.emit()">
|
||||||
<mat-icon aria-hidden="true">push_pin</mat-icon>{{ pinned ? 'Desfijar indicador' : 'Fijar indicador' }}
|
<mat-icon aria-hidden="true">push_pin</mat-icon>{{ pinned ? 'Desfijar indicador' : 'Fijar indicador' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -24,12 +24,12 @@
|
|||||||
@if (periods.length > 1) {
|
@if (periods.length > 1) {
|
||||||
<nav class="periods" aria-label="Periodos de la confirmación histopatológica">
|
<nav class="periods" aria-label="Periodos de la confirmación histopatológica">
|
||||||
<button type="button" aria-label="Periodo anterior de la confirmación" [disabled]="periodIndex === 0" (click)="changePeriod(-1)">‹</button>
|
<button type="button" aria-label="Periodo anterior de la confirmación" [disabled]="periodIndex === 0" (click)="changePeriod(-1)">‹</button>
|
||||||
<span role="status">{{ periods[periodIndex] }} · {{ periodIndex + 1 }} / {{ periods.length }}</span>
|
<span role="status">{{ periods[periodIndex] }}, {{ periodIndex + 1 }} de {{ periods.length }}</span>
|
||||||
<button type="button" aria-label="Periodo siguiente de la confirmación" [disabled]="periodIndex === periods.length - 1" (click)="changePeriod(1)">›</button>
|
<button type="button" aria-label="Periodo siguiente de la confirmación" [disabled]="periodIndex === periods.length - 1" (click)="changePeriod(1)">›</button>
|
||||||
</nav>
|
</nav>
|
||||||
}
|
}
|
||||||
@if (model; as m) {
|
@if (model; as m) {
|
||||||
<p class="selection-status" role="status" aria-live="polite">{{ m.periodo }} · Selección: {{ selectionLabel }} · {{ reading }}</p>
|
<p class="selection-status" role="status" aria-live="polite">{{ m.periodo }}, selección: {{ selectionLabel }}. {{ reading }}</p>
|
||||||
@if (status() === 'empty') { <p role="status">No hay citologías de alto grado publicadas para este periodo.</p> }
|
@if (status() === 'empty') { <p role="status">No hay citologías de alto grado publicadas para este periodo.</p> }
|
||||||
@else {
|
@else {
|
||||||
<div class="legend" role="group" aria-label="Seleccionar resultado de biopsia">
|
<div class="legend" role="group" aria-label="Seleccionar resultado de biopsia">
|
||||||
@@ -46,24 +46,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="figures">
|
<div class="figures">
|
||||||
<section class="figure rates"><h3>Por resultado de la citología · {{ m.periodo }}</h3>
|
<section class="figure rates"><h3>Por resultado de la citología, {{ m.periodo }}</h3>
|
||||||
@if (ratesFigure) {
|
@if (ratesFigure) {
|
||||||
<app-plotly-chart [figure]="ratesFigure" [showNotes]="false" [label]="'Confirmación · Tasas por citología · ' + m.periodo + ' · ' + selectionLabel" />
|
<app-plotly-chart [figure]="ratesFigure" [showNotes]="false" [label]="'Confirmación, tasas por citología, ' + m.periodo + ', ' + selectionLabel" />
|
||||||
}
|
}
|
||||||
<ul class="rate-states">
|
<ul class="rate-states">
|
||||||
@for (t of rates; track t.fila.id) { @if (t.k === null) { <li>{{ t.fila.etiqueta }}: {{ estadoTasa(t) }}</li> } }
|
@for (t of rates; track t.fila.id) { @if (t.k === null) { <li>{{ t.fila.etiqueta }}: {{ estadoTasa(t) }}</li> } }
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section class="figure donut"><h3>Resultado de la biopsia · {{ m.periodo }}</h3>
|
<section class="figure donut"><h3>Resultado de la biopsia, {{ m.periodo }}</h3>
|
||||||
@if (m.conBiopsia !== null && m.conBiopsia > 0 && donutFigure) {
|
@if (m.conBiopsia !== null && m.conBiopsia > 0 && donutFigure) {
|
||||||
<app-plotly-chart [figure]="donutFigure" [showNotes]="false" [label]="'Confirmación · Dona de grados de biopsia · ' + m.periodo + ' · ' + selectionLabel" (plotClick)="plotClicked($event)" />
|
<app-plotly-chart [figure]="donutFigure" [showNotes]="false" [label]="'Confirmación, dona de grados de biopsia, ' + m.periodo + ', ' + selectionLabel" (plotClick)="plotClicked($event)" />
|
||||||
} @else { <p role="status">{{ m.conBiopsia === null ? 'Dona no disponible: hay celdas suprimidas o datos incompletos. No se calcula un total parcial.' : 'Sin mujeres con biopsia en el periodo.' }}</p> }
|
} @else { <p role="status">{{ m.conBiopsia === null ? 'Dona no disponible: hay celdas suprimidas o datos incompletos. No se calcula un total parcial.' : 'Sin mujeres con biopsia en el periodo.' }}</p> }
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
||||||
<div class="table-scroll" role="region" aria-label="Tabla de contingencia de citología y biopsia" tabindex="0">
|
<div class="table-scroll" role="region" aria-label="Tabla de contingencia de citología y biopsia" tabindex="0">
|
||||||
<table><caption>Tabla de contingencia · {{ m.periodo }} · mujeres</caption>
|
<table><caption>Tabla de contingencia de mujeres, {{ m.periodo }}</caption>
|
||||||
<thead><tr><th scope="col">Citología</th>@for (g of m.grados; track g.id) { <th scope="col">{{ g.etiqueta }}</th> }<th scope="col">Con biopsia</th>@for (a of m.aparte; track a.id) { <th scope="col">{{ a.etiqueta }}</th> }</tr></thead>
|
<thead><tr><th scope="col">Citología</th>@for (g of m.grados; track g.id) { <th scope="col">{{ g.etiqueta }}</th> }<th scope="col">Con biopsia</th>@for (a of m.aparte; track a.id) { <th scope="col">{{ a.etiqueta }}</th> }</tr></thead>
|
||||||
<tbody>@for (fila of m.filas; track fila.id) {
|
<tbody>@for (fila of m.filas; track fila.id) {
|
||||||
<tr><th scope="row">{{ fila.etiqueta }}</th>@for (g of m.grados; track g.id) { <td>{{ cellText(fila.celdas[g.id]) }}</td> }<td>{{ denText(fila.den, fila.estado) }}</td>@for (a of m.aparte; track a.id) { <td>{{ cellText(fila.aparte[a.id]) }}</td> }</tr>
|
<tr><th scope="row">{{ fila.etiqueta }}</th>@for (g of m.grados; track g.id) { <td>{{ cellText(fila.celdas[g.id]) }}</td> }<td>{{ denText(fila.den, fila.estado) }}</td>@for (a of m.aparte; track a.id) { <td>{{ cellText(fila.aparte[a.id]) }}</td> }</tr>
|
||||||
|
|||||||
@@ -24,12 +24,12 @@
|
|||||||
@if (periods.length > 1) {
|
@if (periods.length > 1) {
|
||||||
<nav class="periods" aria-label="Periodos de dona y barras EU7">
|
<nav class="periods" aria-label="Periodos de dona y barras EU7">
|
||||||
<button type="button" aria-label="Periodo anterior de EU7" [disabled]="periodIndex === 0" (click)="changePeriod(-1)">‹</button>
|
<button type="button" aria-label="Periodo anterior de EU7" [disabled]="periodIndex === 0" (click)="changePeriod(-1)">‹</button>
|
||||||
<span role="status">{{ periods[periodIndex] }} · {{ periodIndex + 1 }} / {{ periods.length }}</span>
|
<span role="status">{{ periods[periodIndex] }}, {{ periodIndex + 1 }} de {{ periods.length }}</span>
|
||||||
<button type="button" aria-label="Periodo siguiente de EU7" [disabled]="periodIndex === periods.length - 1" (click)="changePeriod(1)">›</button>
|
<button type="button" aria-label="Periodo siguiente de EU7" [disabled]="periodIndex === periods.length - 1" (click)="changePeriod(1)">›</button>
|
||||||
</nav>
|
</nav>
|
||||||
}
|
}
|
||||||
@if (model; as m) {
|
@if (model; as m) {
|
||||||
<p class="selection-status" role="status" aria-live="polite">{{ m.periodo }} · Selección: {{ selectionLabel }}</p>
|
<p class="selection-status" role="status" aria-live="polite">{{ m.periodo }}, selección: {{ selectionLabel }}</p>
|
||||||
@if (status() === 'empty') { <p role="status">No hay pacientes publicados para este periodo.</p> }
|
@if (status() === 'empty') { <p role="status">No hay pacientes publicados para este periodo.</p> }
|
||||||
@else {
|
@else {
|
||||||
<div class="legend" role="group" aria-label="Explorar grupos y categorías de EU7">
|
<div class="legend" role="group" aria-label="Explorar grupos y categorías de EU7">
|
||||||
@@ -46,16 +46,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="figures">
|
<div class="figures">
|
||||||
<section class="figure"><h3>Distribución de resultados · {{ m.periodo }}</h3>
|
<section class="figure"><h3>Distribución de resultados, {{ m.periodo }}</h3>
|
||||||
@if (m.total !== null && m.total > 0 && donutFigure) {
|
@if (m.total !== null && m.total > 0 && donutFigure) {
|
||||||
<app-plotly-chart [figure]="donutFigure" [showNotes]="false" [label]="'EU7 · Dona de dos anillos · ' + m.periodo + ' · ' + selectionLabel" (plotClick)="plotClicked($event)" />
|
<app-plotly-chart [figure]="donutFigure" [showNotes]="false" [label]="'EU7, dona de dos anillos, ' + m.periodo + ', ' + selectionLabel" (plotClick)="plotClicked($event)" />
|
||||||
} @else { <p role="status">{{ m.total === null ? 'Dona no disponible: hay celdas suprimidas o datos incompletos. No se calcula un total parcial.' : 'Sin pacientes con resultado válido para la dona.' }}</p> }
|
} @else { <p role="status">{{ m.total === null ? 'Dona no disponible: hay celdas suprimidas o datos incompletos. No se calcula un total parcial.' : 'Sin pacientes con resultado válido para la dona.' }}</p> }
|
||||||
<p>{{ sinDatoNote }}</p>
|
<p>{{ sinDatoNote }}</p>
|
||||||
</section>
|
</section>
|
||||||
<section class="figure"><h3>{{ selectionLabel }} por escenario clínico · {{ m.periodo }}</h3>
|
<section class="figure"><h3>{{ selectionLabel }} por escenario clínico, {{ m.periodo }}</h3>
|
||||||
<p>Porcentaje del total válido de cada escenario; excluye «Sin dato».</p>
|
<p>Porcentaje del total válido de cada escenario; excluye «Sin dato».</p>
|
||||||
@if (m.escenarios.length && barsFigure) {
|
@if (m.escenarios.length && barsFigure) {
|
||||||
<app-plotly-chart [figure]="barsFigure" [showNotes]="false" [style.--plot-min-width]="'440px'" [label]="'EU7 · Barras por escenario clínico · ' + m.periodo + ' · ' + selectionLabel" />
|
<app-plotly-chart [figure]="barsFigure" [showNotes]="false" [style.--plot-min-width]="'440px'" [label]="'EU7, barras por escenario clínico, ' + m.periodo + ', ' + selectionLabel" />
|
||||||
}
|
}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
@@ -63,11 +63,11 @@
|
|||||||
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
||||||
<details class="published-values"><summary>Valores publicados y celdas suprimidas</summary>
|
<details class="published-values"><summary>Valores publicados y celdas suprimidas</summary>
|
||||||
<div class="table-scroll" role="region" aria-label="Tabla de valores EU7" tabindex="0">
|
<div class="table-scroll" role="region" aria-label="Tabla de valores EU7" tabindex="0">
|
||||||
<table><caption>Datos generales · {{ m.periodo }}</caption>
|
<table><caption>Datos generales, {{ m.periodo }}</caption>
|
||||||
<thead><tr><th scope="col">Categoría</th><th scope="col">Conteo</th></tr></thead>
|
<thead><tr><th scope="col">Categoría</th><th scope="col">Conteo</th></tr></thead>
|
||||||
<tbody>@for (row of generalCells; track $index) { <tr><th scope="row">{{ row.etiqueta }}</th><td>{{ cellText(row.celda) }}</td></tr> }</tbody>
|
<tbody>@for (row of generalCells; track $index) { <tr><th scope="row">{{ row.etiqueta }}</th><td>{{ cellText(row.celda) }}</td></tr> }</tbody>
|
||||||
</table>
|
</table>
|
||||||
<table><caption>Escenarios clínicos · {{ m.periodo }} · Porcentajes sin «Sin dato»</caption>
|
<table><caption>Escenarios clínicos, {{ m.periodo }}, porcentajes sin «Sin dato»</caption>
|
||||||
<thead><tr><th scope="col">Escenario</th><th scope="col">Categoría</th><th scope="col">Conteo</th><th scope="col">Denominador válido</th><th scope="col">Porcentaje</th></tr></thead>
|
<thead><tr><th scope="col">Escenario</th><th scope="col">Categoría</th><th scope="col">Conteo</th><th scope="col">Denominador válido</th><th scope="col">Porcentaje</th></tr></thead>
|
||||||
<tbody>@for (row of scenarioCells; track $index) { <tr><th scope="row">{{ row.escenario }}</th><td>{{ row.categoria }}</td><td>{{ cellText(row.celda) }}</td><td>{{ row.den === null ? 'No disponible / no aplica' : row.den }}</td><td>{{ percentText(row.pct) }}</td></tr> }</tbody>
|
<tbody>@for (row of scenarioCells; track $index) { <tr><th scope="row">{{ row.escenario }}</th><td>{{ row.categoria }}</td><td>{{ cellText(row.celda) }}</td><td>{{ row.den === null ? 'No disponible / no aplica' : row.den }}</td><td>{{ percentText(row.pct) }}</td></tr> }</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<mat-card class="figure-card" [class.dark]="tema === 'oscuro'" [attr.data-render-source]="state.source" [attr.aria-label]="dominio + ' · ' + selected?.id + ' · ' + figuraId" [attr.aria-busy]="state.status === 'loading'">
|
<mat-card class="figure-card" [class.dark]="tema === 'oscuro'" [attr.data-render-source]="state.source" [attr.aria-label]="dominio + ', ' + selected?.id + ', ' + figuraId" [attr.aria-busy]="state.status === 'loading'">
|
||||||
@if (selected) {
|
@if (selected) {
|
||||||
<section class="interpretation" [class.expanded]="methodologyExpanded()">
|
<section class="interpretation" [class.expanded]="methodologyExpanded()">
|
||||||
<button mat-stroked-button type="button" class="methodology-toggle"
|
<button mat-stroked-button type="button" class="methodology-toggle"
|
||||||
[attr.aria-label]="'Cómo leer esta figura: ' + selected.titulo + ' · ' + dominio + ' · ' + figuraId"
|
[attr.aria-label]="'Cómo leer esta figura: ' + selected.titulo + ', ' + dominio + ', ' + figuraId"
|
||||||
[attr.aria-expanded]="methodologyExpanded()" [attr.aria-controls]="methodologyId"
|
[attr.aria-expanded]="methodologyExpanded()" [attr.aria-controls]="methodologyId"
|
||||||
(click)="toggleMethodology()">
|
(click)="toggleMethodology()">
|
||||||
<mat-icon aria-hidden="true">help_outline</mat-icon>
|
<mat-icon aria-hidden="true">help_outline</mat-icon>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="plot-slot" [hidden]="state.status !== 'ready'">
|
<div class="plot-slot" [hidden]="state.status !== 'ready'">
|
||||||
<app-plotly-chart [style.--plot-height]="state.plotHeight ? state.plotHeight + 'px' : (state.hierarchy || state.donutLegend ? '440px' : null)" [style.--plot-min-width]="chartMinimumWidth ? chartMinimumWidth + 'px' : null" [showNotes]="false" [label]="dominio + ' · ' + selected?.id + ' · ' + figuraId" [figure]="chartFigure" (widthChanged)="reportPlotWidth($event)" (plotClick)="plotClicked($event)" />
|
<app-plotly-chart [style.--plot-height]="state.plotHeight ? state.plotHeight + 'px' : (state.hierarchy || state.donutLegend ? '440px' : null)" [style.--plot-min-width]="chartMinimumWidth ? chartMinimumWidth + 'px' : null" [showNotes]="false" [label]="dominio + ', ' + selected?.id + ', ' + figuraId" [figure]="chartFigure" (widthChanged)="reportPlotWidth($event)" (plotClick)="plotClicked($event)" />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div class="figure-footer" [hidden]="state.status !== 'ready'">
|
<div class="figure-footer" [hidden]="state.status !== 'ready'">
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ describe('IndicadorFigureCard', () => {
|
|||||||
it.each(['tea', 'cacu', 'cama'])('presenta notas %s como texto seguro dentro de «Cómo leer» y deja visible la fecha de corte', dominio => {
|
it.each(['tea', 'cacu', 'cama'])('presenta notas %s como texto seguro dentro de «Cómo leer» y deja visible la fecha de corte', dominio => {
|
||||||
fixture.componentRef.setInput('dominio', dominio);
|
fixture.componentRef.setInput('dominio', dominio);
|
||||||
const original: PlotlyFigure = { data: [{ y: [0] }], layout: {} };
|
const original: PlotlyFigure = { data: [{ y: [0] }], layout: {} };
|
||||||
const notes = ['Nota de la ficha\nFuente: A & B · Fecha de corte: 2025-08-01\nLeyenda', '<img src=x onerror=alert(1)>', 'ID_'.repeat(150)];
|
const notes = ['Nota de la ficha\nFuente: A & B, fecha de corte: 2025-08-01\nLeyenda', '<img src=x onerror=alert(1)>', 'ID_'.repeat(150)];
|
||||||
state({ status: 'ready', figure: original, presentationFigure: original, footnotes: notes,
|
state({ status: 'ready', figure: original, presentationFigure: original, footnotes: notes,
|
||||||
minimumPlotWidth: 1200, categoryLabels: [{ axis: 'x', original: 'Categoría', abbreviated: 'Cat.' }] });
|
minimumPlotWidth: 1200, categoryLabels: [{ axis: 'x', original: 'Categoría', abbreviated: 'Cat.' }] });
|
||||||
const section = fixture.nativeElement.querySelector('.methodological-footnotes') as HTMLElement;
|
const section = fixture.nativeElement.querySelector('.methodological-footnotes') as HTMLElement;
|
||||||
@@ -172,6 +172,9 @@ describe('IndicadorFigureCard', () => {
|
|||||||
state({ status: 'ready', figure: original, presentationFigure: original, footnotes: ['Nota nueva'] });
|
state({ status: 'ready', figure: original, presentationFigure: original, footnotes: ['Nota nueva'] });
|
||||||
expect(fixture.nativeElement.querySelector('.methodological-footnotes').textContent).toBe('Nota nueva');
|
expect(fixture.nativeElement.querySelector('.methodological-footnotes').textContent).toBe('Nota nueva');
|
||||||
expect(fixture.nativeElement.querySelector('.figure-cutoff')).toBeNull();
|
expect(fixture.nativeElement.querySelector('.figure-cutoff')).toBeNull();
|
||||||
|
// Older kits published «· Fecha de corte:»; the date is still read.
|
||||||
|
state({ status: 'ready', figure: original, presentationFigure: original, footnotes: ['Fuente · Fecha de corte: 2024-12-31'] });
|
||||||
|
expect(fixture.nativeElement.querySelector('.figure-cutoff').textContent).toBe('Fecha de corte: 2024-12-31');
|
||||||
});
|
});
|
||||||
it('UX-07D conserva el ancho desplazable durante carga y lo revierte sin recrear el host', async () => {
|
it('UX-07D conserva el ancho desplazable durante carga y lo revierte sin recrear el host', async () => {
|
||||||
const original: PlotlyFigure = { data: [{ type: 'bar', x: ['A', 'B', 'C'], y: [0, null, 20] }], layout: {} };
|
const original: PlotlyFigure = { data: [{ type: 'bar', x: ['A', 'B', 'C'], y: [0, null, 20] }], layout: {} };
|
||||||
@@ -466,7 +469,7 @@ describe('IndicadorFigureCard', () => {
|
|||||||
button.dispatchEvent(event); expect(event.defaultPrevented).toBe(false);
|
button.dispatchEvent(event); expect(event.defaultPrevented).toBe(false);
|
||||||
}
|
}
|
||||||
expect(button.textContent).toContain('Cómo leer');
|
expect(button.textContent).toContain('Cómo leer');
|
||||||
expect(button.getAttribute('aria-label')).toBe('Cómo leer esta figura: Indicador de prueba · ' + dominio + ' · fig_c1_puntos');
|
expect(button.getAttribute('aria-label')).toBe('Cómo leer esta figura: Indicador de prueba, ' + dominio + ', fig_c1_puntos');
|
||||||
expect(button.getAttribute('aria-expanded')).toBe('false');
|
expect(button.getAttribute('aria-expanded')).toBe('false');
|
||||||
expect(button.getAttribute('aria-controls')).toBe(detail.id); expect(detail.hidden).toBe(true);
|
expect(button.getAttribute('aria-controls')).toBe(detail.id); expect(detail.hidden).toBe(true);
|
||||||
const warnings = detail.querySelector('ul')!;
|
const warnings = detail.querySelector('ul')!;
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ export interface FigureState {
|
|||||||
emptyMessage?: string;
|
emptyMessage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cut-off date in the kit footer: «, fecha de corte: AAAA-MM-DD» (current) or «· Fecha de corte: …» (older kits).
|
||||||
|
const CUTOFF = /[Ff]echa de corte: (\d{4}-\d{2}-\d{2})/;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-indicador-figure-card',
|
selector: 'app-indicador-figure-card',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
@@ -157,7 +160,7 @@ export class IndicadorFigureCard implements OnChanges {
|
|||||||
get cutoffDate(): string | undefined {
|
get cutoffDate(): string | undefined {
|
||||||
if (this.state.status !== 'ready') return undefined;
|
if (this.state.status !== 'ready') return undefined;
|
||||||
for (const note of this.state.footnotes ?? []) {
|
for (const note of this.state.footnotes ?? []) {
|
||||||
const match = /Fecha de corte: (\d{4}-\d{2}-\d{2})/.exec(note);
|
const match = CUTOFF.exec(note);
|
||||||
if (match) return match[1];
|
if (match) return match[1];
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ describe('IndicadorFigurePanel', () => {
|
|||||||
expect(heading.id).toBe(id); expect(id).not.toBe('');
|
expect(heading.id).toBe(id); expect(id).not.toBe('');
|
||||||
expect(section.getAttribute('aria-labelledby')).toBe(id);
|
expect(section.getAttribute('aria-labelledby')).toBe(id);
|
||||||
expect(section.firstElementChild).toBe(heading);
|
expect(section.firstElementChild).toBe(heading);
|
||||||
expect(heading.textContent).toBe('tea · i1 · Uno · f1');
|
expect(heading.textContent).toBe('tea, i1, Uno, f1');
|
||||||
expect(heading.hasAttribute('aria-hidden')).toBe(false); expect(heading.hidden).toBe(false);
|
expect(heading.hasAttribute('aria-hidden')).toBe(false); expect(heading.hidden).toBe(false);
|
||||||
const style = getComputedStyle(heading);
|
const style = getComputedStyle(heading);
|
||||||
expect(style.display).not.toBe('none'); expect(style.visibility).not.toBe('hidden');
|
expect(style.display).not.toBe('none'); expect(style.visibility).not.toBe('hidden');
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|||||||
imports: [IndicadorFigureCard, MatTooltipModule],
|
imports: [IndicadorFigureCard, MatTooltipModule],
|
||||||
template: `
|
template: `
|
||||||
<section class="figure-panel" [attr.aria-labelledby]="titleId">
|
<section class="figure-panel" [attr.aria-labelledby]="titleId">
|
||||||
<h3 class="visually-hidden" [id]="titleId">{{ dominio }} · {{ indicador.id }} · {{ indicador.titulo }} · {{ figuraId }}</h3>
|
<h3 class="visually-hidden" [id]="titleId">{{ dominio }}, {{ indicador.id }}, {{ indicador.titulo }}, {{ figuraId }}</h3>
|
||||||
<header class="panel-controls">
|
<header class="panel-controls">
|
||||||
<p class="applied-summary">{{ independentPeriods ? 'Selección independiente' : 'Filtro general aplicado' }}: {{ appliedSummary }}</p>
|
<p class="applied-summary">{{ independentPeriods ? 'Selección independiente' : 'Filtro general aplicado' }}: {{ appliedSummary }}</p>
|
||||||
@if (!dimension && figuraId === 'fig_c2_barras' && indicador.figuras.includes('fig_c2_donas')) {
|
@if (!dimension && figuraId === 'fig_c2_barras' && indicador.figuras.includes('fig_c2_donas')) {
|
||||||
@@ -56,7 +56,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|||||||
@if (result().status === 'ready' && donutPages.length > 1) {
|
@if (result().status === 'ready' && donutPages.length > 1) {
|
||||||
<nav class="donut-periods" aria-label="Periodos de la dona">
|
<nav class="donut-periods" aria-label="Periodos de la dona">
|
||||||
<button type="button" aria-label="Periodo anterior de la dona" [disabled]="donutPeriodIndex <= 0" (click)="changeDonutPeriod(-1)">‹</button>
|
<button type="button" aria-label="Periodo anterior de la dona" [disabled]="donutPeriodIndex <= 0" (click)="changeDonutPeriod(-1)">‹</button>
|
||||||
<span role="status" aria-live="polite">{{ activeDonutPeriod }} · {{ donutPeriodIndex + 1 }} / {{ donutPages.length }}</span>
|
<span role="status" aria-live="polite">{{ activeDonutPeriod }}, {{ donutPeriodIndex + 1 }} de {{ donutPages.length }}</span>
|
||||||
<button type="button" aria-label="Periodo siguiente de la dona" [disabled]="donutPeriodIndex >= donutPages.length - 1" (click)="changeDonutPeriod(1)">›</button>
|
<button type="button" aria-label="Periodo siguiente de la dona" [disabled]="donutPeriodIndex >= donutPages.length - 1" (click)="changeDonutPeriod(1)">›</button>
|
||||||
</nav>
|
</nav>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ describe('KPI búsqueda inicial del último dato visible', () => {
|
|||||||
latest.flush(data(periods[0], 'suppressed'));
|
latest.flush(data(periods[0], 'suppressed'));
|
||||||
request(periods[1]).flush(data(periods[1])); fixture.detectChanges();
|
request(periods[1]).flush(data(periods[1])); fixture.detectChanges();
|
||||||
expect(fixture.componentInstance.result().value).toBe(5);
|
expect(fixture.componentInstance.result().value).toBe(5);
|
||||||
expect(fixture.nativeElement.textContent).toContain('Último dato visible · 2025-S1');
|
expect(fixture.nativeElement.textContent).toContain('Último dato visible, 2025-S1');
|
||||||
expect(fixture.nativeElement.textContent).toContain('Existen reportes posteriores con datos ocultos por tamaño.');
|
expect(fixture.nativeElement.textContent).toContain('Existen reportes posteriores con datos ocultos por tamaño.');
|
||||||
http.expectNone(() => true);
|
http.expectNone(() => true);
|
||||||
});
|
});
|
||||||
@@ -48,7 +48,7 @@ describe('KPI búsqueda inicial del último dato visible', () => {
|
|||||||
const second = request(periods[1]); http.expectNone(() => true);
|
const second = request(periods[1]); http.expectNone(() => true);
|
||||||
second.flush(data(periods[1], 'suppressed'));
|
second.flush(data(periods[1], 'suppressed'));
|
||||||
request(periods[2]).flush(data(periods[2]));
|
request(periods[2]).flush(data(periods[2]));
|
||||||
expect(fixture.componentInstance.temporalReference).toBe('Último dato visible · 2024-S2');
|
expect(fixture.componentInstance.temporalReference).toBe('Último dato visible, 2024-S2');
|
||||||
expect(fixture.componentInstance.result().info).toContain('datos ocultos por tamaño');
|
expect(fixture.componentInstance.result().info).toContain('datos ocultos por tamaño');
|
||||||
});
|
});
|
||||||
it('agotado el inventario conserva el estado del último reporte', () => {
|
it('agotado el inventario conserva el estado del último reporte', () => {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export class IndicadorKpiPanel implements OnChanges {
|
|||||||
readonly usedPeriod = signal<string | undefined>(undefined);
|
readonly usedPeriod = signal<string | undefined>(undefined);
|
||||||
readonly result = signal<KpiDisplay>({ state: 'Esperando catálogo' });
|
readonly result = signal<KpiDisplay>({ state: 'Esperando catálogo' });
|
||||||
get temporalReference() {
|
get temporalReference() {
|
||||||
if (this.result().earlier) return 'Último dato visible · ' + this.usedPeriod();
|
if (this.result().earlier) return 'Último dato visible, ' + this.usedPeriod();
|
||||||
return this.usedPeriod() ?? (this.applied ? describePeriods(this.applied.tipo, this.applied.selection) : 'Sin filtro aplicado');
|
return this.usedPeriod() ?? (this.applied ? describePeriods(this.applied.tipo, this.applied.selection) : 'Sin filtro aplicado');
|
||||||
}
|
}
|
||||||
retry() { this.requests.next(); }
|
retry() { this.requests.next(); }
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ describe('Metadatos metodológicos opcionales', () => {
|
|||||||
categorias: { NORMAL: { etiqueta: 'Normal' } },
|
categorias: { NORMAL: { etiqueta: 'Normal' } },
|
||||||
});
|
});
|
||||||
expect(text).toContain('Descripción publicada.');
|
expect(text).toContain('Descripción publicada.');
|
||||||
expect(text).toContain('Guía publicada <em>edición 2</em> · Indicador 7');
|
expect(text).toContain('Guía publicada <em>edición 2</em>, Indicador 7');
|
||||||
expect(text).toContain('Pacientes con estudio publicado.');
|
expect(text).toContain('Pacientes con estudio publicado.');
|
||||||
expect(fixture.nativeElement.querySelector('em')).toBeNull();
|
expect(fixture.nativeElement.querySelector('em')).toBeNull();
|
||||||
expect(text).not.toMatch(/initial-population|citation|TOTAL|no está disponible/);
|
expect(text).not.toMatch(/initial-population|citation|TOTAL|no está disponible/);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import { IndicadoresService } from './indicadores.service';
|
|||||||
@if (references.length) {
|
@if (references.length) {
|
||||||
<section aria-labelledby="metadata-references-title">
|
<section aria-labelledby="metadata-references-title">
|
||||||
<h4 id="metadata-references-title">Referencias</h4>
|
<h4 id="metadata-references-title">Referencias</h4>
|
||||||
<ul>@for (ref of references; track $index) { <li>{{ ref.etiqueta }}@if (hasText(ref.ref)) { · {{ ref.ref }} }</li> }</ul>
|
<ul>@for (ref of references; track $index) { <li>{{ ref.etiqueta }}@if (hasText(ref.ref)) {, {{ ref.ref }} }</li> }</ul>
|
||||||
</section>
|
</section>
|
||||||
}
|
}
|
||||||
@if (populations.length) {
|
@if (populations.length) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<mat-select-trigger><span class="select-value">{{ selectedPeriods.join(', ') }}</span></mat-select-trigger>
|
<mat-select-trigger><span class="select-value">{{ selectedPeriods.join(', ') }}</span></mat-select-trigger>
|
||||||
@for (period of options; track period) { <mat-option [value]="period">{{ period }}</mat-option> }
|
@for (period of options; track period) { <mat-option [value]="period">{{ period }}</mat-option> }
|
||||||
@if (availability) {
|
@if (availability) {
|
||||||
@for (period of unavailableSelection; track period) { <mat-option [value]="period" disabled>{{ period }} — disponibilidad no confirmada</mat-option> }
|
@for (period of unavailableSelection; track period) { <mat-option [value]="period" disabled>{{ period }}, disponibilidad no confirmada</mat-option> }
|
||||||
}
|
}
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-hint>{{ availability ? 'Existe reporte en al menos un indicador del dominio; la cobertura puede variar.' : 'Disponibilidad desconocida hasta consultar.' }}</mat-hint>
|
<mat-hint>{{ availability ? 'Existe reporte en al menos un indicador del dominio; la cobertura puede variar.' : 'Disponibilidad desconocida hasta consultar.' }}</mat-hint>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<h3 class="figure-title">Días desde la toma: resultado y diagnóstico</h3>
|
<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> }
|
@if (status() === 'empty') { <p role="status">No hay cajas publicadas para estos periodos.</p> }
|
||||||
@else if (figure) {
|
@else if (figure) {
|
||||||
<app-plotly-chart [figure]="figure" [showNotes]="false" [label]="'Tiempos por periodo · ' + par.etiquetas.reporte + ' y ' + par.etiquetas.diagnostico" />
|
<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> }
|
@for (note of m.notas; track $index) { <p class="note">{{ note }}</p> }
|
||||||
<details class="published-values"><summary>Valores publicados y cajas no disponibles</summary>
|
<details class="published-values"><summary>Valores publicados y cajas no disponibles</summary>
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ describe('UX-07C etiquetas de ejes', () => {
|
|||||||
});
|
});
|
||||||
it('extrae el pie TEA sin perder el mapa de categorías ni alterar anotaciones desconocidas', () => {
|
it('extrae el pie TEA sin perder el mapa de categorías ni alterar anotaciones desconocidas', () => {
|
||||||
const figure = source(); figure.layout['annotations'] = [{
|
const figure = source(); figure.layout['annotations'] = [{
|
||||||
text: 'Nota sintética.<br>Base depurada del proyecto TEA · Centro Médico ISSSTELEÓN – UANL · Fecha de corte: 2025-08-01<br>Uso exclusivo de investigación. No usar para decisiones clínicas.',
|
text: 'Nota sintética.<br>Base depurada del proyecto TEA, Centro Médico ISSSTELEÓN, UANL, fecha de corte: 2025-08-01<br>Uso exclusivo de investigación. No usar para decisiones clínicas.',
|
||||||
xref: 'paper', yref: 'paper', x: 0, y: -0.22, xanchor: 'left', yanchor: 'top', align: 'left', showarrow: false, font: { size: 11 },
|
xref: 'paper', yref: 'paper', x: 0, y: -0.22, xanchor: 'left', yanchor: 'top', align: 'left', showarrow: false, font: { size: 11 },
|
||||||
}];
|
}];
|
||||||
const result = present(figure);
|
const result = present(figure);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ describe('C2: datos publicados a Plotly', () => {
|
|||||||
const donut = supported(data), bars = supported(data, { ...selection, figura: 'fig_c2_barras' });
|
const donut = supported(data), bars = supported(data, { ...selection, figura: 'fig_c2_barras' });
|
||||||
expect(donut.figure.data).toHaveLength(1); expect(donut.hierarchy).toBeUndefined();
|
expect(donut.figure.data).toHaveLength(1); expect(donut.hierarchy).toBeUndefined();
|
||||||
expect(bars.figure.data[0]['x']).toEqual(donut.figure.data[0]['values']); expect(bars.figure.data[0]['y']).toEqual(donut.figure.data[0]['labels']);
|
expect(bars.figure.data[0]['x']).toEqual(donut.figure.data[0]['values']); expect(bars.figure.data[0]['y']).toEqual(donut.figure.data[0]['labels']);
|
||||||
expect(bars.figure.layout['xaxis']).toMatchObject({ title: { text: 'Conteo · paciente' } });
|
expect(bars.figure.layout['xaxis']).toMatchObject({ title: { text: 'Conteo (paciente)' } });
|
||||||
});
|
});
|
||||||
it('el layout final de barras muestra ambos ejes y el hover no repite el periodo', () => {
|
it('el layout final de barras muestra ambos ejes y el hover no repite el periodo', () => {
|
||||||
const bars = supported(c2Fixture(), { ...selection, figura: 'fig_c2_barras' });
|
const bars = supported(c2Fixture(), { ...selection, figura: 'fig_c2_barras' });
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export function c2Figure(data: IndicadorDatos, selection: FigureSelection): C2Re
|
|||||||
const theme = c2Theme(selection.tema), values = categories.map(c => c.value), labels = categories.map(c => c.label);
|
const theme = c2Theme(selection.tema), values = categories.map(c => c.value), labels = categories.map(c => c.label);
|
||||||
const colors = categories.map((c, i) => c2Color(c.color, i));
|
const colors = categories.map((c, i) => c2Color(c.color, i));
|
||||||
const emptyMessage = !rows.length ? 'No hay filas publicadas para este periodo.' : total === 0 ? 'Los conteos publicados son cero; no hay una composición porcentual que representar.' : undefined;
|
const emptyMessage = !rows.length ? 'No hay filas publicadas para este periodo.' : total === 0 ? 'Los conteos publicados son cero; no hay una composición porcentual que representar.' : undefined;
|
||||||
const layout: Record<string, unknown> = { title: { text: model.title + ' · ' + period }, autosize: true,
|
const layout: Record<string, unknown> = { title: { text: model.title + ', ' + period }, autosize: true,
|
||||||
paper_bgcolor: theme.background, plot_bgcolor: theme.background, font: { color: theme.text, family: 'Roboto, sans-serif', size: 14 },
|
paper_bgcolor: theme.background, plot_bgcolor: theme.background, font: { color: theme.text, family: 'Roboto, sans-serif', size: 14 },
|
||||||
margin: { l: 76, r: 28, t: 112, b: 62, pad: 4 },
|
margin: { l: 76, r: 28, t: 112, b: 62, pad: 4 },
|
||||||
legend: selection.figura === 'fig_c2_donas'
|
legend: selection.figura === 'fig_c2_donas'
|
||||||
@@ -95,7 +95,7 @@ export function c2Figure(data: IndicadorDatos, selection: FigureSelection): C2Re
|
|||||||
if (rows.length) figure.data = [{ type: 'bar', orientation: 'h', name: period, x: values, y: labels,
|
if (rows.length) figure.data = [{ type: 'bar', orientation: 'h', name: period, x: values, y: labels,
|
||||||
marker: { color: colors, line: { color: theme.outline, width: 0.7 } },
|
marker: { color: colors, line: { color: theme.outline, width: 0.7 } },
|
||||||
hovertemplate: '%{y}<br>%{x} ' + model.unit + '<extra></extra>' }];
|
hovertemplate: '%{y}<br>%{x} ' + model.unit + '<extra></extra>' }];
|
||||||
layout['xaxis'] = { title: { text: 'Conteo · ' + model.unit }, rangemode: 'tozero', showgrid: true,
|
layout['xaxis'] = { title: { text: 'Conteo (' + model.unit + ')' }, rangemode: 'tozero', showgrid: true,
|
||||||
gridcolor: theme.grid, zeroline: false, tickformat: ',d', showline: true, linecolor: '#AEB7C2', linewidth: 1,
|
gridcolor: theme.grid, zeroline: false, tickformat: ',d', showline: true, linecolor: '#AEB7C2', linewidth: 1,
|
||||||
ticks: 'outside', tickcolor: '#AEB7C2', automargin: true };
|
ticks: 'outside', tickcolor: '#AEB7C2', automargin: true };
|
||||||
layout['yaxis'] = { type: 'category', categoryorder: 'array', categoryarray: [...labels].reverse(), automargin: true,
|
layout['yaxis'] = { type: 'category', categoryorder: 'array', categoryarray: [...labels].reverse(), automargin: true,
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ describe('barras generales conectadas con la selección compartida de la dona',
|
|||||||
select({ parent: 'G2', period: '2025-S2' }); expect(displayed().data[0]['y']).toEqual(['B', 'C']);
|
select({ parent: 'G2', period: '2025-S2' }); expect(displayed().data[0]['y']).toEqual(['B', 'C']);
|
||||||
select({ parent: 'G2', category: 'B', period: '2025-S2' }); expect(displayed().data[0]['y']).toEqual(['B']);
|
select({ parent: 'G2', category: 'B', period: '2025-S2' }); expect(displayed().data[0]['y']).toEqual(['B']);
|
||||||
expect(panel().result().figure).toBe(original); expect(original).toEqual(before);
|
expect(panel().result().figure).toBe(original); expect(original).toEqual(before);
|
||||||
expect(fixture.nativeElement.querySelector('.selection-status').getAttribute('aria-label')).toContain('G2 · B · 2025-S2');
|
expect(fixture.nativeElement.querySelector('.selection-status').getAttribute('aria-label')).toContain('G2, B, 2025-S2');
|
||||||
select({}); expect(displayed()).toEqual(all); expect(panel().generalSelectionContext).toBeUndefined();
|
select({}); expect(displayed()).toEqual(all); expect(panel().generalSelectionContext).toBeUndefined();
|
||||||
expect(panel().applied).toEqual(filter); expect(fixture.nativeElement.querySelector('app-plotly-chart')).toBe(host); http.expectNone(() => true);
|
expect(panel().applied).toEqual(filter); expect(fixture.nativeElement.querySelector('app-plotly-chart')).toBe(host); http.expectNone(() => true);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ describe('selección local segura de barras generales C2', () => {
|
|||||||
expect(view.figure.data[0]).toMatchObject({ x: [3, 1], y: ['B', 'C'], marker: { color: ['#A4B88A', '#D0B778'] } });
|
expect(view.figure.data[0]).toMatchObject({ x: [3, 1], y: ['B', 'C'], marker: { color: ['#A4B88A', '#D0B778'] } });
|
||||||
expect(view.figure.layout['yaxis']).toMatchObject({ categoryarray: ['C', 'B'] });
|
expect(view.figure.layout['yaxis']).toMatchObject({ categoryarray: ['C', 'B'] });
|
||||||
expect(view.figure.layout['meta']).toMatchObject({ denominator: 10, period: local.period, unit: 'paciente' });
|
expect(view.figure.layout['meta']).toMatchObject({ denominator: 10, period: local.period, unit: 'paciente' });
|
||||||
expect(view.context).toContain('G2 · 2025-S2');
|
expect(view.context).toContain('G2, 2025-S2');
|
||||||
expect({ data, source }).toEqual(before);
|
expect({ data, source }).toEqual(before);
|
||||||
(view.figure.data[0]['x'] as number[])[0] = 999;
|
(view.figure.data[0]['x'] as number[])[0] = 999;
|
||||||
expect(source).toEqual(before.source);
|
expect(source).toEqual(before.source);
|
||||||
|
|||||||
@@ -70,6 +70,6 @@ export function c2GeneralSelection(source: PlotlyFigure, data: IndicadorDatos,
|
|||||||
if (record(figure.layout['yaxis']) && Array.isArray(figure.layout['yaxis']['categoryarray'])) {
|
if (record(figure.layout['yaxis']) && Array.isArray(figure.layout['yaxis']['categoryarray'])) {
|
||||||
figure.layout['yaxis']['categoryarray'] = figure.layout['yaxis']['categoryarray'].filter(v => selected.some(c => c.label === v));
|
figure.layout['yaxis']['categoryarray'] = figure.layout['yaxis']['categoryarray'].filter(v => selected.some(c => c.label === v));
|
||||||
}
|
}
|
||||||
return { figure, context: 'Vista local de la dona: ' + [local.parent, local.category, period].filter(Boolean).join(' · ')
|
return { figure, context: 'Vista local de la dona: ' + [local.parent, local.category, period].filter(Boolean).join(', ')
|
||||||
+ '. Sólo se muestran las categorías seleccionadas de este periodo. Los conteos y porcentajes conservan el denominador de la distribución completa del periodo.' };
|
+ '. Sólo se muestran las categorías seleccionadas de este periodo. Los conteos y porcentajes conservan el denominador de la distribución completa del periodo.' };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export function donaConfirmacion(m: ModeloConfirmacion, sel: SeleccionConfirmaci
|
|||||||
const interior = m.grupos.map(g => g.grados.reduce((s, c) => s + m.totales[c]!, 0));
|
const interior = m.grupos.map(g => g.grados.reduce((s, c) => s + m.totales[c]!, 0));
|
||||||
const exterior = m.grados.map(g => m.totales[g.id]!);
|
const exterior = m.grados.map(g => m.totales[g.id]!);
|
||||||
const comun = { type: 'pie', sort: false, direction: 'clockwise', rotation: 0, showlegend: false, textinfo: 'none' };
|
const comun = { type: 'pie', sort: false, direction: 'clockwise', rotation: 0, showlegend: false, textinfo: 'none' };
|
||||||
const hover = { hovertemplate: '%{label}<br>%{customdata[0]} mujeres con biopsia · %{customdata[1]}<extra></extra>' };
|
const hover = { hovertemplate: '%{label}<br>%{customdata[0]} mujeres con biopsia, %{customdata[1]}<extra></extra>' };
|
||||||
const custom = (values: number[]) => values.map(n => [miles(n), shareText(n, total)]);
|
const custom = (values: number[]) => values.map(n => [miles(n), shareText(n, total)]);
|
||||||
return { data: [
|
return { data: [
|
||||||
{ ...comun, name: 'centro', values: [1], labels: ['centro'], domain: { x: [.32, .68], y: [.32, .68] }, textinfo: 'text', textposition: 'inside',
|
{ ...comun, name: 'centro', values: [1], labels: ['centro'], domain: { x: [.32, .68], y: [.32, .68] }, textinfo: 'text', textposition: 'inside',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h2>Datos y definiciones · {{ domainNames[dominio] }}</h2>
|
<h2>Datos y definiciones de {{ domainNames[dominio] }}</h2>
|
||||||
<section aria-labelledby="domain-info-title">
|
<section aria-labelledby="domain-info-title">
|
||||||
<h3 id="domain-info-title">Información del dominio</h3>
|
<h3 id="domain-info-title">Información del dominio</h3>
|
||||||
<p>Dominio: {{ domainNames[dominio] }}.</p>
|
<p>Dominio: {{ domainNames[dominio] }}.</p>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ describe('navegación multiperiodo en el panel común', () => {
|
|||||||
expect(buttons()[0].disabled).toBe(true); expect(buttons()[1].disabled).toBe(false);
|
expect(buttons()[0].disabled).toBe(true); expect(buttons()[1].disabled).toBe(false);
|
||||||
for (let i = 0; i < periods.length; i++) {
|
for (let i = 0; i < periods.length; i++) {
|
||||||
expect(panel().activeDonutPeriod).toBe(periods[i]);
|
expect(panel().activeDonutPeriod).toBe(periods[i]);
|
||||||
expect(fixture.nativeElement.querySelector('.donut-periods [role="status"]').textContent).toContain(`${i + 1} / 3`);
|
expect(fixture.nativeElement.querySelector('.donut-periods [role="status"]').textContent).toContain(`${i + 1} de 3`);
|
||||||
expect(card().chartFigure?.data).toHaveLength(1);
|
expect(card().chartFigure?.data).toHaveLength(1);
|
||||||
expect(panel().result().figure?.data.every(t => String(t['name']).startsWith(periods[i]))).toBe(true);
|
expect(panel().result().figure?.data.every(t => String(t['name']).startsWith(periods[i]))).toBe(true);
|
||||||
if (i < 2) { buttons()[1].click(); fixture.detectChanges(); }
|
if (i < 2) { buttons()[1].click(); fixture.detectChanges(); }
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export function dona(m: Modelo, sel: Seleccion, tema: Tema): PlotlyFigure {
|
|||||||
};
|
};
|
||||||
const comun = { type: 'pie', sort: false, direction: 'clockwise', rotation: 0, textinfo: 'text',
|
const comun = { type: 'pie', sort: false, direction: 'clockwise', rotation: 0, textinfo: 'text',
|
||||||
insidetextorientation: 'horizontal', showlegend: false, textposition: 'inside' };
|
insidetextorientation: 'horizontal', showlegend: false, textposition: 'inside' };
|
||||||
const hover = { hovertemplate: '%{label}<br>%{customdata[0]} pacientes · %{customdata[1]} % del total con resultado<extra></extra>' };
|
const hover = { hovertemplate: '%{label}<br>%{customdata[0]} pacientes, %{customdata[1]} % del total con resultado<extra></extra>' };
|
||||||
const custom = (values: number[]) => values.map(n => [miles(n), percentNumber(100 * n / m.total!)]);
|
const custom = (values: number[]) => values.map(n => [miles(n), percentNumber(100 * n / m.total!)]);
|
||||||
return { data: [
|
return { data: [
|
||||||
{ ...comun, name: 'centro', values: [1], labels: ['centro'], domain: { x: [.32, .68], y: [.32, .68] },
|
{ ...comun, name: 'centro', values: [1], labels: ['centro'], domain: { x: [.32, .68], y: [.32, .68] },
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<section class="dashboard" aria-labelledby="dashboard-title">
|
<section class="dashboard" aria-labelledby="dashboard-title">
|
||||||
<header>
|
<header>
|
||||||
<span class="domain">Dominio {{ domainLabels[dominio] }} · Investigación</span>
|
<span class="domain">Dominio {{ domainLabels[dominio] }}, investigación</span>
|
||||||
<h1 id="dashboard-title">Dashboard de indicadores</h1>
|
<h1 id="dashboard-title">Dashboard de indicadores</h1>
|
||||||
<p>Explora las figuras de indicadores {{ domainLabels[dominio] }} generadas por el servicio de reportes.</p>
|
<p>Explora las figuras de indicadores {{ domainLabels[dominio] }} generadas por el servicio de reportes.</p>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ describe('UX-05B ciclo de vida con componentes Plotly y runtime simulado', () =>
|
|||||||
respond(); await settle(); const charts = fixture.debugElement.queryAll(By.directive(PlotlyChart));
|
respond(); await settle(); const charts = fixture.debugElement.queryAll(By.directive(PlotlyChart));
|
||||||
expect(charts).toHaveLength(2); expect(runtime.react).toHaveBeenCalledTimes(2);
|
expect(charts).toHaveLength(2); expect(runtime.react).toHaveBeenCalledTimes(2);
|
||||||
const hosts = charts.map(c => c.componentInstance.host.nativeElement);
|
const hosts = charts.map(c => c.componentInstance.host.nativeElement);
|
||||||
expect(hosts[0]).not.toBe(hosts[1]); expect(hosts[0].getAttribute('aria-label')).toBe('tea · i · f');
|
expect(hosts[0]).not.toBe(hosts[1]); expect(hosts[0].getAttribute('aria-label')).toBe('tea, i, f');
|
||||||
expect(hosts[1].getAttribute('aria-label')).toBe('tea · j · g');
|
expect(hosts[1].getAttribute('aria-label')).toBe('tea, j, g');
|
||||||
const card = fixture.debugElement.query(By.directive(IndicadorCatalogCard)).componentInstance as IndicadorCatalogCard;
|
const card = fixture.debugElement.query(By.directive(IndicadorCatalogCard)).componentInstance as IndicadorCatalogCard;
|
||||||
fixture.componentInstance.catalog.set(fixture.componentInstance.catalog().slice(1)); fixture.detectChanges();
|
fixture.componentInstance.catalog.set(fixture.componentInstance.catalog().slice(1)); fixture.detectChanges();
|
||||||
expect(runtime.purge).toHaveBeenCalledWith(hosts[0]);
|
expect(runtime.purge).toHaveBeenCalledWith(hosts[0]);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function stratifiedBars(data: IndicadorDatos, dimension: DimensionEstrato
|
|||||||
return { type: 'bar', orientation: 'h', name: escape(labels[s] as string), x: selected, y: categories.map(([, c]) => escape(c.label)),
|
return { type: 'bar', orientation: 'h', name: escape(labels[s] as string), x: selected, y: categories.map(([, c]) => escape(c.label)),
|
||||||
marker: { color: categories.map(([, c], i) => c2Color(c.color, i)), pattern: { shape: ['', '/', '\\', 'x', '.', '-', '+'][series % 7] }, line: { color: theme.text, width: .5 } },
|
marker: { color: categories.map(([, c], i) => c2Color(c.color, i)), pattern: { shape: ['', '/', '\\', 'x', '.', '-', '+'][series % 7] }, line: { color: theme.text, width: .5 } },
|
||||||
hovertemplate: '%{y}<br>%{x}<extra>%{fullData.name}</extra>' };
|
hovertemplate: '%{y}<br>%{x}<extra>%{fullData.name}</extra>' };
|
||||||
}), layout: { title: { text: 'Distribución estratificada · ' + period }, barmode: 'group', autosize: true,
|
}), layout: { title: { text: 'Distribución estratificada, ' + period }, barmode: 'group', autosize: true,
|
||||||
height: Math.max(620, 160 + categories.length * strata.length * 18), paper_bgcolor: theme.background, plot_bgcolor: theme.background,
|
height: Math.max(620, 160 + categories.length * strata.length * 18), paper_bgcolor: theme.background, plot_bgcolor: theme.background,
|
||||||
font: { color: theme.text }, margin: { l: 100, r: 24, t: 40, b: 100 },
|
font: { color: theme.text }, margin: { l: 100, r: 24, t: 40, b: 100 },
|
||||||
xaxis: { rangemode: 'tozero', title: { text: 'Conteo publicado' }, gridcolor: theme.grid },
|
xaxis: { rangemode: 'tozero', title: { text: 'Conteo publicado' }, gridcolor: theme.grid },
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ describe('Tiempos pareados: modelo y figura', () => {
|
|||||||
expect(m.cajas.reporte['2025-S2']).toEqual({ estado: 'Publicado', n: 98, q1: 6, mediana: 10, q3: 18 });
|
expect(m.cajas.reporte['2025-S2']).toEqual({ estado: 'Publicado', n: 98, q1: 6, mediana: 10, q3: 18 });
|
||||||
const f = figuraTiempos(m, par, 'claro');
|
const f = figuraTiempos(m, par, 'claro');
|
||||||
expect(f.layout['boxmode']).toBe('group');
|
expect(f.layout['boxmode']).toBe('group');
|
||||||
expect(f.data.map(t => t['name'])).toEqual(['Toma → resultado (laboratorio)', 'Toma → diagnóstico']);
|
expect(f.data.map(t => t['name'])).toEqual(['Días de toma a resultado (laboratorio)', 'Días de toma a diagnóstico']);
|
||||||
expect(f.data.map(t => t['type'])).toEqual(['box', 'box']);
|
expect(f.data.map(t => t['type'])).toEqual(['box', 'box']);
|
||||||
expect(f.data[0]['marker']).not.toEqual(f.data[1]['marker']);
|
expect(f.data[0]['marker']).not.toEqual(f.data[1]['marker']);
|
||||||
expect(f.data[0]['x']).toEqual(['2025-S1', '2025-S2']);
|
expect(f.data[0]['x']).toEqual(['2025-S1', '2025-S2']);
|
||||||
@@ -141,7 +141,7 @@ describe('Tiempos pareados: componente', () => {
|
|||||||
f.componentRef.setInput('metadata', { figuras_detalle: [{ figura: 'fig_c3r_caja', descripcion: 'Caja de diagnóstico.', como_leer: ['Lee el diagnóstico.'] }] });
|
f.componentRef.setInput('metadata', { figuras_detalle: [{ figura: 'fig_c3r_caja', descripcion: 'Caja de diagnóstico.', como_leer: ['Lee el diagnóstico.'] }] });
|
||||||
f.detectChanges();
|
f.detectChanges();
|
||||||
const help = f.nativeElement.querySelector('.methodology') as HTMLElement;
|
const help = f.nativeElement.querySelector('.methodology') as HTMLElement;
|
||||||
expect([...help.querySelectorAll('.reading-guide h3')].map(h => h.textContent)).toEqual(['Toma → resultado (laboratorio)', 'Toma → diagnóstico']);
|
expect([...help.querySelectorAll('.reading-guide h3')].map(h => h.textContent)).toEqual(['Días de toma a resultado (laboratorio)', 'Días de toma a diagnóstico']);
|
||||||
expect([...help.querySelectorAll('li')].map(li => li.textContent)).toEqual(['Caja del laboratorio.', 'Lee el diagnóstico.']);
|
expect([...help.querySelectorAll('li')].map(li => li.textContent)).toEqual(['Caja del laboratorio.', 'Lee el diagnóstico.']);
|
||||||
expect(help.querySelector('.caveat')!.textContent).toContain('no es el tiempo del tramo intermedio');
|
expect(help.querySelector('.caveat')!.textContent).toContain('no es el tiempo del tramo intermedio');
|
||||||
expect(help.textContent).not.toContain('No va'); expect(help.textContent).not.toContain('pendientes');
|
expect(help.textContent).not.toContain('No va'); expect(help.textContent).not.toContain('pendientes');
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ export interface ParTiempos {
|
|||||||
}
|
}
|
||||||
export const PARES_TIEMPOS: readonly ParTiempos[] = [
|
export const PARES_TIEMPOS: readonly ParTiempos[] = [
|
||||||
{ dominio: 'cacu', reporte: 'cacu_eu_tiempo_reporte', diagnostico: 'cacu_dias_toma_diagnostico', estudios: 'citologías',
|
{ dominio: 'cacu', reporte: 'cacu_eu_tiempo_reporte', diagnostico: 'cacu_dias_toma_diagnostico', estudios: 'citologías',
|
||||||
etiquetas: { reporte: 'Toma → resultado (laboratorio)', diagnostico: 'Toma → diagnóstico' }, conectado: true },
|
etiquetas: { reporte: 'Días de toma a resultado (laboratorio)', diagnostico: 'Días de toma a diagnóstico' }, conectado: true },
|
||||||
{ dominio: 'cama', reporte: 'cama_eu38a', diagnostico: 'cama_dias_toma_diagnostico', estudios: 'mastografías',
|
{ dominio: 'cama', reporte: 'cama_eu38a', diagnostico: 'cama_dias_toma_diagnostico', estudios: 'mastografías',
|
||||||
etiquetas: { reporte: 'Toma → resultado', diagnostico: 'Toma → diagnóstico' }, conectado: false },
|
etiquetas: { reporte: 'Días de toma a resultado', diagnostico: 'Días de toma a diagnóstico' }, conectado: false },
|
||||||
];
|
];
|
||||||
export function parTiempos(dominio: Dominio, id: string): ParTiempos | undefined {
|
export function parTiempos(dominio: Dominio, id: string): ParTiempos | undefined {
|
||||||
return PARES_TIEMPOS.find(par => par.conectado && par.dominio === dominio && par.diagnostico === id);
|
return PARES_TIEMPOS.find(par => par.conectado && par.dominio === dominio && par.diagnostico === id);
|
||||||
@@ -116,5 +116,5 @@ export function figuraTiempos(m: ModeloTiempos, par: ParTiempos, tema: Tema): Pl
|
|||||||
|
|
||||||
export function cajaTexto(c: Caja): string {
|
export function cajaTexto(c: Caja): string {
|
||||||
return c.estado !== 'Publicado' ? c.estado
|
return c.estado !== 'Publicado' ? c.estado
|
||||||
: `n = ${c.n!.toLocaleString('es-MX')} · Q1 ${dias(c.q1!)} · mediana ${dias(c.mediana!)} · Q3 ${dias(c.q3!)} días`;
|
: `n = ${c.n!.toLocaleString('es-MX')}, Q1 ${dias(c.q1!)}, mediana ${dias(c.mediana!)}, Q3 ${dias(c.q3!)} días`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h2>Seguimiento · {{ domainLabel }}</h2>
|
<h2>Seguimiento de {{ domainLabel }}</h2>
|
||||||
@if (dominio !== 'cacu') {
|
@if (dominio !== 'cacu') {
|
||||||
<p>El seguimiento aún no está disponible.</p>
|
<p>El seguimiento aún no está disponible.</p>
|
||||||
<div class="tracking-table" role="region" aria-label="Estructura prevista de seguimiento" tabindex="0">
|
<div class="tracking-table" role="region" aria-label="Estructura prevista de seguimiento" tabindex="0">
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<nav aria-label="Paginación de seguimiento">
|
<nav aria-label="Paginación de seguimiento">
|
||||||
<button type="button" [disabled]="response.paginacion.page <= 1" (click)="navigate(response.paginacion.page - 1)">Anterior</button>
|
<button type="button" [disabled]="response.paginacion.page <= 1" (click)="navigate(response.paginacion.page - 1)">Anterior</button>
|
||||||
<span>Página {{ response.paginacion.page }} de {{ response.paginacion.total_pages }} · {{ response.paginacion.total_items }} registros</span>
|
<span>Página {{ response.paginacion.page }} de {{ response.paginacion.total_pages }}, {{ response.paginacion.total_items }} registros</span>
|
||||||
<button type="button" [disabled]="response.paginacion.page >= response.paginacion.total_pages" (click)="navigate(response.paginacion.page + 1)">Siguiente</button>
|
<button type="button" [disabled]="response.paginacion.page >= response.paginacion.total_pages" (click)="navigate(response.paginacion.page + 1)">Siguiente</button>
|
||||||
</nav>
|
</nav>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { syntheticFigures } from './indicadores.synthetic-fixtures';
|
|||||||
|
|
||||||
const selection: FigureSelection = { dominio: 'tea', indicador: 'synthetic', figura: 'fig_c1_grupos', tema: 'claro' };
|
const selection: FigureSelection = { dominio: 'tea', indicador: 'synthetic', figura: 'fig_c1_grupos', tema: 'claro' };
|
||||||
const footer = {
|
const footer = {
|
||||||
text: 'Explicación sintética. Los valores suprimidos no son cero.<br>Base depurada del proyecto TEA · Centro Médico ISSSTELEÓN – UANL · Fecha de corte: 2025-08-01<br>Uso exclusivo de investigación. No usar para decisiones clínicas.',
|
text: 'Explicación sintética. Los valores suprimidos no son cero.<br>Base depurada del proyecto TEA, Centro Médico ISSSTELEÓN, UANL, fecha de corte: 2025-08-01<br>Uso exclusivo de investigación. No usar para decisiones clínicas.',
|
||||||
xref: 'paper', yref: 'paper', x: 0, y: -0.22, xanchor: 'left', yanchor: 'top',
|
xref: 'paper', yref: 'paper', x: 0, y: -0.22, xanchor: 'left', yanchor: 'top',
|
||||||
align: 'left', showarrow: false, font: { size: 11, color: '#52514e' },
|
align: 'left', showarrow: false, font: { size: 11, color: '#52514e' },
|
||||||
};
|
};
|
||||||
@@ -86,6 +86,17 @@ describe('UX-07B perfiles y pies metodológicos', () => {
|
|||||||
source.layout['annotations'] = [{ ...footer, text }];
|
source.layout['annotations'] = [{ ...footer, text }];
|
||||||
expect(figurePresentation(source, selection).footnotes).toEqual([footer.text.replaceAll('<br>', '\n')]);
|
expect(figurePresentation(source, selection).footnotes).toEqual([footer.text.replaceAll('<br>', '\n')]);
|
||||||
});
|
});
|
||||||
|
it('el pie TEA nuevo (con comas) y el anterior (con puntos medios) se reconocen; otro texto de fuente no', () => {
|
||||||
|
const old = footer.text.replace('Base depurada del proyecto TEA, Centro Médico ISSSTELEÓN, UANL, fecha de corte:',
|
||||||
|
'Base depurada del proyecto TEA · Centro Médico ISSSTELEÓN – UANL · Fecha de corte:');
|
||||||
|
for (const text of [footer.text, old]) {
|
||||||
|
const source = original(); source.layout['annotations'] = [{ ...footer, text }];
|
||||||
|
expect(figurePresentation(source, selection).footnotes).toEqual([text.replaceAll('<br>', '\n')]);
|
||||||
|
}
|
||||||
|
const other = footer.text.replace('fecha de corte:', 'corte:');
|
||||||
|
const source = original(); source.layout['annotations'] = [{ ...footer, text: other }];
|
||||||
|
expect(figurePresentation(source, selection).footnotes).toEqual([]);
|
||||||
|
});
|
||||||
it('reconoce los tres pies de fixtures sintéticos existentes sin alterar los datos', () => {
|
it('reconoce los tres pies de fixtures sintéticos existentes sin alterar los datos', () => {
|
||||||
const tea = syntheticFigures.filter(item => item.name.startsWith('tea'));
|
const tea = syntheticFigures.filter(item => item.name.startsWith('tea'));
|
||||||
expect(tea).toHaveLength(3);
|
expect(tea).toHaveLength(3);
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ const TEA_FOOTER_FIGURES = new Set(['fig_c1_grupos', 'fig_c1_puntos', 'fig_c2_ap
|
|||||||
// Verified published families share the complete documentary footer geometry.
|
// Verified published families share the complete documentary footer geometry.
|
||||||
// Donut totals (paper 0.5, 0.5), data labels and callouts do not match it.
|
// Donut totals (paper 0.5, 0.5), data labels and callouts do not match it.
|
||||||
const DISTRIBUTION_FOOTER_FIGURES = new Set(['fig_c2_barras', 'fig_c2_donas', 'fig_c3r_caja']);
|
const DISTRIBUTION_FOOTER_FIGURES = new Set(['fig_c2_barras', 'fig_c2_donas', 'fig_c3r_caja']);
|
||||||
|
// TEA source line of the kit footer. Current format separates with commas; the
|
||||||
|
// previous one (middle dots and an en dash) is still accepted for older kits.
|
||||||
|
const TEA_SOURCE = /^Base depurada del proyecto TEA(?:, Centro Médico ISSSTELEÓN, UANL, fecha de corte| · Centro Médico ISSSTELEÓN – UANL · Fecha de corte): \d{4}-\d{2}-\d{2}$/;
|
||||||
const FOOTER_KEYS = new Set(['text', 'xref', 'yref', 'x', 'y', 'xanchor', 'yanchor', 'align', 'showarrow', 'font']);
|
const FOOTER_KEYS = new Set(['text', 'xref', 'yref', 'x', 'y', 'xanchor', 'yanchor', 'align', 'showarrow', 'font']);
|
||||||
function record(value: unknown): value is Record<string, unknown> {
|
function record(value: unknown): value is Record<string, unknown> {
|
||||||
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
||||||
@@ -42,7 +45,7 @@ function footerText(annotation: unknown, selection: FigureSelection): string | u
|
|||||||
// Retain UX-07B's additional TEA source/restriction guarantees.
|
// Retain UX-07B's additional TEA source/restriction guarantees.
|
||||||
const lines = text.split('\n');
|
const lines = text.split('\n');
|
||||||
if (lines.length < 3 || !lines[0].trim()
|
if (lines.length < 3 || !lines[0].trim()
|
||||||
|| !/^Base depurada del proyecto TEA · Centro Médico ISSSTELEÓN – UANL · Fecha de corte: \d{4}-\d{2}-\d{2}$/.test(lines.at(-2)!)
|
|| !TEA_SOURCE.test(lines.at(-2)!)
|
||||||
|| lines.at(-1) !== 'Uso exclusivo de investigación. No usar para decisiones clínicas.') return undefined;
|
|| lines.at(-1) !== 'Uso exclusivo de investigación. No usar para decisiones clínicas.') return undefined;
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1137,7 +1137,7 @@ export const syntheticFigures: { name: string; figure: PlotlyFigure }[] = [
|
|||||||
"size": 11
|
"size": 11
|
||||||
},
|
},
|
||||||
"showarrow": false,
|
"showarrow": false,
|
||||||
"text": "Indicador de calidad para el hospital; no forma parte del tablero del m\u00e9dico. Est\u00e1ndar: inicio de la evaluaci\u00f3n diagn\u00f3stica a \u2264 3 meses de la referencia (NICE QS51, enunciado 1).<br>Base depurada del proyecto TEA \u00b7 Centro M\u00e9dico ISSSTELE\u00d3N \u2013 UANL \u00b7 Fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
"text": "Indicador de calidad para el hospital; no forma parte del tablero del m\u00e9dico. Est\u00e1ndar: inicio de la evaluaci\u00f3n diagn\u00f3stica a \u2264 3 meses de la referencia (NICE QS51, enunciado 1).<br>Base depurada del proyecto TEA, Centro M\u00e9dico ISSSTELE\u00d3N, UANL, fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"xanchor": "left",
|
"xanchor": "left",
|
||||||
"xref": "paper",
|
"xref": "paper",
|
||||||
@@ -3782,7 +3782,7 @@ export const syntheticFigures: { name: string; figure: PlotlyFigure }[] = [
|
|||||||
"size": 11
|
"size": 11
|
||||||
},
|
},
|
||||||
"showarrow": false,
|
"showarrow": false,
|
||||||
"text": "Sexo registrado en el expediente del ni\u00f1o. \u00abSin dato\u00bb: el expediente no lo consigna.<br>Base depurada del proyecto TEA \u00b7 Centro M\u00e9dico ISSSTELE\u00d3N \u2013 UANL \u00b7 Fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
"text": "Sexo registrado en el expediente del ni\u00f1o. \u00abSin dato\u00bb: el expediente no lo consigna.<br>Base depurada del proyecto TEA, Centro M\u00e9dico ISSSTELE\u00d3N, UANL, fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"xanchor": "left",
|
"xanchor": "left",
|
||||||
"xref": "paper",
|
"xref": "paper",
|
||||||
@@ -4639,7 +4639,7 @@ export const syntheticFigures: { name: string; figure: PlotlyFigure }[] = [
|
|||||||
"size": 11
|
"size": 11
|
||||||
},
|
},
|
||||||
"showarrow": false,
|
"showarrow": false,
|
||||||
"text": "D\u00edas de la entrevista inicial de psicolog\u00eda a la aplicaci\u00f3n del ADOS-2. La caja va del primer al tercer cuartil y la l\u00ednea es la mediana; no se dibuja cada ni\u00f1o.<br>Base depurada del proyecto TEA \u00b7 Centro M\u00e9dico ISSSTELE\u00d3N \u2013 UANL \u00b7 Fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
"text": "D\u00edas de la entrevista inicial de psicolog\u00eda a la aplicaci\u00f3n del ADOS-2. La caja va del primer al tercer cuartil y la l\u00ednea es la mediana; no se dibuja cada ni\u00f1o.<br>Base depurada del proyecto TEA, Centro M\u00e9dico ISSSTELE\u00d3N, UANL, fecha de corte: 2025-08-01<br>Uso exclusivo de investigaci\u00f3n. No usar para decisiones cl\u00ednicas.",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"xanchor": "left",
|
"xanchor": "left",
|
||||||
"xref": "paper",
|
"xref": "paper",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { PLOTLY_LOADER } from './plotly-runtime';
|
|||||||
<div role="alert"><p>No se pudo representar la figura. Puedes reintentar.</p>
|
<div role="alert"><p>No se pudo representar la figura. Puedes reintentar.</p>
|
||||||
<button mat-stroked-button (click)="retry()">Reintentar renderizado</button></div>
|
<button mat-stroked-button (click)="retry()">Reintentar renderizado</button></div>
|
||||||
}
|
}
|
||||||
<div class="plot-viewport" tabindex="0" role="region" [attr.aria-label]="label + ' · Área de figura'"><div #host class="plot" role="img" [attr.aria-label]="label" [attr.aria-hidden]="status() !== 'ready'"></div></div>
|
<div class="plot-viewport" tabindex="0" role="region" [attr.aria-label]="label + ', área de figura'"><div #host class="plot" role="img" [attr.aria-label]="label" [attr.aria-hidden]="status() !== 'ready'"></div></div>
|
||||||
@if (showNotes && status() === 'ready' && notes.length) {
|
@if (showNotes && status() === 'ready' && notes.length) {
|
||||||
<section class="notes" aria-label="Notas completas de la figura">
|
<section class="notes" aria-label="Notas completas de la figura">
|
||||||
<h2>Notas de la figura</h2>
|
<h2>Notas de la figura</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user