preliminary release
This commit is contained in:
@@ -1,24 +1,52 @@
|
||||
<section class="dashboard" aria-labelledby="dashboard-title">
|
||||
<header>
|
||||
<span class="domain">Dominio {{ domainLabels[dominio] }} · Investigación</span>
|
||||
<h1 id="dashboard-title">Dashboard de indicadores</h1>
|
||||
<p>Explora las figuras de indicadores {{ domainLabels[dominio] }} generadas por el servicio de reportes.</p>
|
||||
@if (fichaPacienteAbierta()) {
|
||||
<h1 id="dashboard-title">Ficha del paciente</h1>
|
||||
<p>Consulta individual de seguimiento de cáncer cervicouterino</p>
|
||||
} @else {
|
||||
<span class="domain">{{ domainTitles[dominio] }}, investigación</span>
|
||||
<h1 id="dashboard-title">Indicadores</h1>
|
||||
<p>Explora los indicadores de {{ domainLabels[dominio] }}.</p>
|
||||
}
|
||||
</header>
|
||||
<!-- 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">{{ domainLabels[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"
|
||||
[attr.aria-selected]="activeSection() === section.id" [tabIndex]="activeSection() === section.id ? 0 : -1"
|
||||
(click)="changeSection(section.id)">{{ section.label }}</button>
|
||||
}
|
||||
</div>
|
||||
@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"
|
||||
[attr.aria-selected]="activeSection() === section.id" [tabIndex]="activeSection() === section.id ? 0 : -1"
|
||||
(click)="changeSection(section.id)">{{ section.label }}</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (showGraphicNavigation) {
|
||||
<button #navigationTrigger cdkOverlayOrigin #navigationOrigin="cdkOverlayOrigin" class="graphic-navigation-trigger" mat-mini-fab type="button"
|
||||
[class.graphic-navigation-trigger-expanded]="navigationOpen()" [tabIndex]="navigationOpen() ? -1 : 0"
|
||||
[attr.aria-label]="navigationOpen() ? 'Cerrar navegación por indicadores' : 'Abrir navegación por indicadores'"
|
||||
aria-controls="indicator-navigation-panel" [attr.aria-expanded]="navigationOpen()" (click)="toggleGraphicNavigation($event)"
|
||||
(keydown)="navigationTriggerKeydown($event)" (pointerenter)="navigationPointerEnter($event)" (pointerleave)="navigationPointerLeave($event)"
|
||||
(pointermove)="navigationPointerMove($event)">
|
||||
<mat-icon aria-hidden="true">format_list_bulleted</mat-icon>
|
||||
</button>
|
||||
<ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]="navigationOrigin"
|
||||
[cdkConnectedOverlayOpen]="navigationAttached()" [cdkConnectedOverlayPositions]="navigationPositions"
|
||||
[cdkConnectedOverlayScrollStrategy]="navigationScrollStrategy" [cdkConnectedOverlayViewportMargin]="8"
|
||||
[cdkConnectedOverlayFlexibleDimensions]="true" [cdkConnectedOverlayPush]="true"
|
||||
cdkConnectedOverlayPanelClass="indicator-navigation-overlay"
|
||||
[cdkConnectedOverlayHasBackdrop]="false" (overlayOutsideClick)="closeGraphicNavigationFromOutside($event)"
|
||||
(overlayKeydown)="navigationOverlayKeydown($event)">
|
||||
<app-indicadores-navegacion-panel [items]="navigationItems" [closing]="navigationClosing()"
|
||||
(pointerenter)="navigationPointerEnter($event)" (pointerleave)="navigationPointerLeave($event)" (focusout)="navigationFocusOut()"
|
||||
(closed)="closeGraphicNavigation()" (selected)="selectGraphicNavigation($event)" />
|
||||
</ng-template>
|
||||
}
|
||||
|
||||
<div id="panel-resumen" class="section-panel" role="tabpanel" aria-labelledby="tab-resumen" tabindex="0" [hidden]="activeSection() !== 'resumen'">
|
||||
@if (!catalogLoading() && filters; as state) {
|
||||
@@ -45,16 +73,17 @@
|
||||
} @else if (initialPeriodState() === 'manual') {
|
||||
<p role="status">La búsqueda inicial se detuvo para conservar tu selección. Pulsa Aplicar para consultar.</p>
|
||||
}
|
||||
@let kpis = availableKpis;
|
||||
@let kpis = opportunityKpis;
|
||||
@if (kpis.length && !initialPeriodBlocked) {
|
||||
<section class="kpi-section" aria-labelledby="kpi-section-title" [attr.data-domain]="dominio">
|
||||
<h2 id="kpi-section-title" class="section-title">{{ dominio === 'cacu' ? 'Indicadores de oportunidad' : 'Indicadores destacados' }}</h2>
|
||||
<div class="kpi-grid" [style.--kpi-count]="kpis.length + (dominio === 'cacu' ? 1 : 0)">
|
||||
<div class="kpi-grid" [style.--kpi-count]="kpis.length + (dominio === 'cacu' ? 2 : 0)">
|
||||
@for (definition of kpis; track dominio + ':' + definition.id) {
|
||||
<app-indicador-kpi-panel [dominio]="dominio" [definition]="definition" [indicador]="kpiIndicator(definition.id)"
|
||||
[applied]="filters?.applied" [availability]="availability()" [initialPresentation]="false" />
|
||||
}
|
||||
@if (dominio === 'cacu') {
|
||||
<app-indicador-kpi-card title="Tiempo de tamizaje a tratamiento" state="Indicador no disponible" />
|
||||
<app-indicador-kpi-card title="Tiempo de diagnóstico a tratamiento" state="Indicador no disponible" />
|
||||
}
|
||||
</div>
|
||||
@@ -101,19 +130,17 @@
|
||||
}
|
||||
<div class="catalog-grid">
|
||||
@for (item of searchResults().items; track cardIdentity(item)) {
|
||||
<app-indicador-catalog-card [dominio]="dominio" [indicador]="item" [tema]="tema" [applied]="figureApplied(item)" [independentPeriods]="independentPeriods(item)"
|
||||
<app-indicador-catalog-card [id]="cardElementId(item)" [dominio]="dominio" [indicador]="item" [tema]="tema" [applied]="figureApplied(item)" [independentPeriods]="independentPeriods(item)"
|
||||
[pinned]="isPinned(item)" (pinChanged)="togglePinned(item)" />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
@if (!initialPeriodBlocked && filters && !catalogLoading() && !catalogError() && catalog().length) {
|
||||
<app-indicadores-numeric-summary [dominio]="dominio" [catalog]="catalog()" [applied]="filters.applied" [kpis]="availableKpis" />
|
||||
}
|
||||
</div>
|
||||
|
||||
<section id="panel-seguimiento" class="section-panel" [class.dark-theme]="tema === 'oscuro'" role="tabpanel" aria-labelledby="tab-seguimiento" tabindex="0" [hidden]="activeSection() !== 'seguimiento'">
|
||||
<app-indicadores-tracking [domainLabel]="domainLabels[dominio]" [dominio]="dominio" [active]="activeSection() === 'seguimiento'" />
|
||||
<section id="panel-seguimiento" class="section-panel" [class.dark-theme]="tema === 'oscuro'" role="tabpanel" [attr.aria-labelledby]="fichaPacienteAbierta() ? 'dashboard-title' : 'tab-seguimiento'" tabindex="0" [hidden]="activeSection() !== 'seguimiento'">
|
||||
<app-indicadores-tracking [domainLabel]="domainLabels[dominio]" [dominio]="dominio" [active]="activeSection() === 'seguimiento'"
|
||||
(fichaPacienteAbierta)="setFichaPacienteAbierta($event)" />
|
||||
</section>
|
||||
|
||||
<section id="panel-datos" class="section-panel" [class.dark-theme]="tema === 'oscuro'" role="tabpanel" aria-labelledby="tab-datos" tabindex="0" [hidden]="activeSection() !== 'datos'">
|
||||
|
||||
Reference in New Issue
Block a user