From 6a818b842b645d19b993e19b21ab28490f330e9b Mon Sep 17 00:00:00 2001
From: nicolasarana <90768149+nicolasarana@users.noreply.github.com>
Date: Tue, 10 Mar 2026 12:22:18 -0300
Subject: [PATCH 2/7] style(MONIT):"Arreglos visuales"
---
.../modules/rup/components/elementos/moleculaBase.html | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/app/modules/rup/components/elementos/moleculaBase.html b/src/app/modules/rup/components/elementos/moleculaBase.html
index 9a561329fe..c1bfacb53c 100644
--- a/src/app/modules/rup/components/elementos/moleculaBase.html
+++ b/src/app/modules/rup/components/elementos/moleculaBase.html
@@ -1,5 +1,6 @@
-
-
+
+ {{registro.nombre ||
+ registro.concepto.term}}
-
\ No newline at end of file
+
+
+
\ No newline at end of file
From 486a3e2c216156b343fcd9bb352d9b253384d2b0 Mon Sep 17 00:00:00 2001
From: nicolasarana <90768149+nicolasarana@users.noreply.github.com>
Date: Wed, 15 Apr 2026 09:40:27 -0300
Subject: [PATCH 3/7] fix - el title de Submolecula pasa a ser global
---
src/app/modules/rup/components/core/_rup.scss | 7 ++++++
.../rup/components/core/rup.component.ts | 23 ++++++++++++++-----
src/app/modules/rup/components/core/rup.html | 12 +++++++---
.../elementos/moleculaBase.component.ts | 5 ----
.../components/elementos/moleculaBase.html | 8 +------
5 files changed, 34 insertions(+), 21 deletions(-)
diff --git a/src/app/modules/rup/components/core/_rup.scss b/src/app/modules/rup/components/core/_rup.scss
index 3e4b1d1eab..5c68e77c13 100644
--- a/src/app/modules/rup/components/core/_rup.scss
+++ b/src/app/modules/rup/components/core/_rup.scss
@@ -770,4 +770,11 @@ plex-layout [type="invert"] {
.readonly span {
color: white;
}
+}
+
+.hr-grueso {
+ border: none;
+ height: 4px;
+ background-color: #4a4a4a;
+ opacity: 1;
}
\ No newline at end of file
diff --git a/src/app/modules/rup/components/core/rup.component.ts b/src/app/modules/rup/components/core/rup.component.ts
index 18cc0e04cf..a23c0d0d59 100644
--- a/src/app/modules/rup/components/core/rup.component.ts
+++ b/src/app/modules/rup/components/core/rup.component.ts
@@ -1,7 +1,7 @@
import { Auth } from '@andes/auth';
import { Plex, PlexVisualizadorService } from '@andes/plex';
import { calcularEdad } from '@andes/shared';
-import { AfterViewInit, Component, ComponentFactoryResolver, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Optional, Output, QueryList, SimpleChanges, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation } from '@angular/core';
+import { AfterViewInit, Component, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Optional, Output, QueryList, SimpleChanges, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router';
import { Engine } from 'json-rules-engine';
@@ -41,11 +41,18 @@ import { InternacionResumenHTTP } from '../../../../apps/rup/mapa-camas/services
@Component({
selector: 'rup',
encapsulation: ViewEncapsulation.None,
- template: ''
+ template: `
+
+ {{ params?.titulo || registro?.nombre || elementoRUP?.conceptos[0]?.term }}
+
+
+
+ `
})
export class RUPComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
- @ViewChildren(RUPComponent) rupElements: QueryList
;
+ @ViewChildren(RUPComponent) rupElements!: QueryList;
@ViewChild('form', { static: false }) formulario: any;
+ @ViewChild('componentContainer', { read: ViewContainerRef, static: true }) componentContainer!: ViewContainerRef;
// Propiedades
@Input() elementoRUP: IElementoRUP;
@@ -65,7 +72,7 @@ export class RUPComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges
private rulesEngine: Engine;
private rulesEvent = new Subject<{ type: string; params: any }>();
private rulesEvent$ = this.rulesEvent.asObservable();
-
+ public mostrarTituloSubmolecula = false;
/**
* Determina si un elemento RUP es valido. Se setea apartir de reglas.
*/
@@ -96,9 +103,12 @@ export class RUPComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges
}
// Cargamos el componente
- const component = ElementosRUPRegister.get(this.elementoRUP.componente).component;
+ const component = ElementosRUPRegister.get(this.elementoRUP!.componente)?.component;
+ if (!component) {
+ return;
+ }
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(component as any);
- const componentReference = this.viewContainerRef.createComponent(componentFactory);
+ const componentReference: ComponentRef = this.componentContainer.createComponent(componentFactory);
// Copia todas las propiedades
componentReference.instance['prestacion'] = this.prestacion;
@@ -173,6 +183,7 @@ export class RUPComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges
ngOnInit() {
this.loadComponent();
+ this.mostrarTituloSubmolecula = !!this.params?.mostrarTituloSubmolecula;
}
ngOnDestroy() {
diff --git a/src/app/modules/rup/components/core/rup.html b/src/app/modules/rup/components/core/rup.html
index 17ed995b04..e4b6460f99 100644
--- a/src/app/modules/rup/components/core/rup.html
+++ b/src/app/modules/rup/components/core/rup.html
@@ -8,9 +8,15 @@
+