Ajustar indicadores, fecha de corte y ficha de CaMa y CaCu
This commit is contained in:
@@ -2,7 +2,7 @@ import { Component, computed, input, signal } from '@angular/core';
|
||||
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
||||
import { Loading } from '../loading';
|
||||
import { Figure, Plot } from '../plot';
|
||||
import { bars, grouped, hiddenNote, Mode, unavailable } from './bars';
|
||||
import { bars, grouped, hiddenNote, Mode, subsequentHistory, unavailable } from './bars';
|
||||
import { Reading } from './measures';
|
||||
|
||||
/** A card read one mode at a time: its title, its headline, the toggle and the bars. */
|
||||
@@ -77,6 +77,21 @@ import { Reading } from './measures';
|
||||
@if (g.note) {
|
||||
<p class="state">{{ g.note }}</p>
|
||||
}
|
||||
@if (historyBreakdown(); as history) {
|
||||
<section aria-label="Antecedente declarado en detección subsecuente">
|
||||
<h4>Dentro de detección subsecuente: antecedente declarado</h4>
|
||||
<p class="state">
|
||||
Las categorías son respuestas del formulario; el denominador es el total de la ronda
|
||||
subsecuente. La diferencia incluye valores no registrados o primera vez declarada con
|
||||
procedimientos previos.
|
||||
</p>
|
||||
<ul>
|
||||
@for (item of history; track item.label) {
|
||||
<li>{{ item.label }}: {{ item.text }}</li>
|
||||
}
|
||||
</ul>
|
||||
</section>
|
||||
}
|
||||
} @else if (figure(); as f) {
|
||||
<app-plot [figure]="f" [height]="height()" />
|
||||
@if (hidden(); as why) {
|
||||
@@ -373,6 +388,11 @@ export class Readings {
|
||||
() => this.modes().find((m) => m.label === (this.view() || this.chosen())) ?? this.modes()[0],
|
||||
);
|
||||
protected readonly groups = computed(() => grouped(this.mode(), this.read()));
|
||||
protected readonly historyBreakdown = computed(() => {
|
||||
const mode = this.mode();
|
||||
if (mode.kind !== 'grouped' || mode.stratum !== 'round') return undefined;
|
||||
return subsequentHistory(this.read()(mode.measure));
|
||||
});
|
||||
protected readonly table = computed(() => bars(this.mode(), this.read()));
|
||||
/** The bars of a scenarios figure need more room than a donut. */
|
||||
protected readonly height = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user