feat(indicadores): domain navigation moves to the header; searchVisible reads the catalog before the domain

The in-page domain buttons are removed, since the header selector replaces them. Also fixes a computed that, after a visit to CaMa, never became true again, so CaCu and TEA lost their search box when switched to from CaMa.

(cherry picked from commit 3678c3653b33fcb98ba2334ca8f03f838dc86440)
This commit is contained in:
Angel Capetillo Zavala
2026-11-12 01:21:53 -06:00
parent d761a6fb1a
commit ff03a88ea0
7 changed files with 74 additions and 57 deletions
@@ -10,14 +10,6 @@
}
</header>
@if (!fichaPacienteAbierta()) {
<!-- Upstream moved domain switching into its own app shell's header (a
dropdown in app.ts/app.html); our shell is shared with other workspace
sections (Conectar, Gobernanza) so it stays here instead, same as before. -->
<nav aria-label="Dominios de indicadores" class="domain-nav">
@for (domain of dominios; track domain) {
<a mat-button [routerLink]="['/indicadores', domain]" [attr.aria-current]="dominio === domain ? 'page' : null">{{ domainNavLabels[domain] }}</a>
}
</nav>
<div class="section-tabs" [class.dark-theme]="tema === 'oscuro'" role="tablist" [attr.aria-label]="'Secciones de ' + domainLabels[dominio]" (keydown)="sectionKeydown($event)">
@for (section of sections; track section.id) {
<button type="button" role="tab" [id]="'tab-' + section.id" [attr.aria-controls]="'panel-' + section.id"