Merge current WebApp dev into the CaMa selective rollback
This commit is contained in:
@@ -102,6 +102,15 @@ export class IndicadoresPage {
|
||||
private readonly indicatorSelect = viewChild<MatSelect>('indicatorSelect');
|
||||
private readonly graphicCards = viewChildren(IndicadorCatalogCard);
|
||||
readonly kpiPanels = viewChildren(IndicadorKpiPanel);
|
||||
// The opportunity cards share the period their own query already resolved.
|
||||
get periodoCompartido(): string {
|
||||
if (this.dominio !== 'cama') return '';
|
||||
const deConsulta = this.kpiPanels().map(panel => panel.temporalReference.trim())
|
||||
.find(text => /^\d{4}-(?:S[12]|0[1-9]|1[0-2])$/.test(text));
|
||||
if (deConsulta) return deConsulta;
|
||||
const applied = this.filters?.applied;
|
||||
return applied?.selection.mode === 'explicit' && applied.selection.periodos.length === 1 ? applied.selection.periodos[0] : '';
|
||||
}
|
||||
private readonly observedRegions = new Map<Element, IndicadorCatalogCard>();
|
||||
private renderedCards: readonly IndicadorCatalogCard[] = [];
|
||||
private visibilityObserver?: IntersectionObserver;
|
||||
|
||||
Reference in New Issue
Block a user