dmencu 0.4.13 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1524,6 +1524,7 @@ function FormularioDespliegue(props:{forPk:ForPk}){
1524
1524
  = useSelectorVivienda(props.forPk);
1525
1525
  var soloLectura = getDatosByPass().soloLectura;
1526
1526
  const dispatch = useDispatch();
1527
+ var esVolver = opciones.pilaForPk.length>0;
1527
1528
  useEffect(()=>{
1528
1529
  var controlScroll=()=>{
1529
1530
  var arriba = document.getElementById('fab-activo-arriba');
@@ -1560,9 +1561,17 @@ function FormularioDespliegue(props:{forPk:ForPk}){
1560
1561
  }
1561
1562
  var listaModos:ModoDespliegue[]=['metadatos','relevamiento','PDF'];
1562
1563
  ['boton-volver-1', 'boton-volver-2'].forEach(id=>{
1563
- registrarElemento({id, attr:'resumen-estado', fun:(_:Respuestas, feedbackForm: FormStructureState<IdVariable, Valor, IdFin>)=>(
1564
- feedbackForm.resumen
1565
- )})
1564
+ registrarElemento({id, direct:true,
1565
+ fun:(
1566
+ r:Respuestas,
1567
+ feedbackForm: FormStructureState<IdVariable, Valor, IdFin>,
1568
+ elemento:HTMLDivElement,
1569
+ feedbackAll:{[formulario in PlainForPk]:FormStructureState<IdVariable, Valor, IdFin>},
1570
+ _estructura:Estructura
1571
+ )=>{
1572
+ elemento.setAttribute('resumen-estado',esVolver?feedbackForm.resumen:calcularResumenVivienda(forPk, feedbackAll, r).resumenEstado);
1573
+ }
1574
+ })
1566
1575
  })
1567
1576
  // @ts-expect-error especial hay que leerlo en el parser de casilleros si esto termina quedando así
1568
1577
  var pantallaCompleta = formulario.especial?.pantallaCompleta;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dmencu",
3
3
  "description": "DM Encu - Encuestas en dispositivo móvil",
4
- "version": "0.4.13",
4
+ "version": "0.4.15",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "main": "dist/server/server/app-dmencu.js",