feat(ui): integrar grid y KPI preliminares UX-06E.D.1

This commit is contained in:
Angel Capetillo Zavala
2026-10-13 16:01:48 -06:00
parent f96fe97ed6
commit 35e1bc33d3
7 changed files with 216 additions and 50 deletions
@@ -15,12 +15,13 @@ import { Dominio, DOMINIOS, isDominio, Indicador, Tema } from './indicadores.mod
import { IndicadoresService } from './indicadores.service';
import { IndicadoresMemory } from './indicadores-memory';
import { IndicadorCatalogCard } from './indicador-catalog-card';
import { IndicadorKpiCard } from './indicador-kpi-card';
import { indicatorIdentity } from './indicadores-identities';
import { httpMessage } from './indicadores-http';
@Component({
selector: 'app-indicadores-page',
imports: [RouterLink, FormsModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, MatIconModule, MatSelectModule, MatProgressBarModule, IndicadorCatalogCard],
imports: [RouterLink, FormsModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, MatIconModule, MatSelectModule, MatProgressBarModule, IndicadorCatalogCard, IndicadorKpiCard],
templateUrl: './indicadores-page.html',
styleUrl: './indicadores-page.scss',
})
@@ -55,6 +56,12 @@ export class IndicadoresPage {
readonly dominios = DOMINIOS;
dominio: Dominio = 'tea';
readonly domainLabels: Record<Dominio, string> = { tea: 'TEA', cacu: 'CaCu', cama: 'CaMa' };
// Presentation samples only. Each domain can replace its own future configuration.
readonly kpiPreviewsByDomain: Record<Dominio, readonly { id: string; title: string }[]> = {
tea: [{ id: 'preview-1', title: 'Indicador destacado 1' }, { id: 'preview-2', title: 'Indicador destacado 2' }],
cacu: [{ id: 'preview-1', title: 'Indicador destacado 1' }, { id: 'preview-2', title: 'Indicador destacado 2' }],
cama: [{ id: 'preview-1', title: 'Indicador destacado 1' }, { id: 'preview-2', title: 'Indicador destacado 2' }],
};
private readonly catalogRequests = new Subject<void>();
readonly catalog = signal<Indicador[]>([]);
readonly searchQuery = signal('');