dmencu 0.3.55 → 0.3.56
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.
- package/dist/client/unlogged/css/formulario-react.styl +12 -12
- package/dist/client/unlogged/render-formulario.tsx +18 -1
- package/dist/unlogged/unlogged/css/formulario-react.styl +12 -12
- package/dist/unlogged/unlogged/render-formulario.js +11 -4
- package/dist/unlogged/unlogged/render-formulario.tsx +18 -1
- package/package.json +1 -1
|
@@ -31,33 +31,33 @@ anchoNormal(ancho)
|
|
|
31
31
|
.btn
|
|
32
32
|
white-space normal
|
|
33
33
|
|
|
34
|
-
.formulario, .hoja-de-ruta
|
|
35
|
-
[resumen-estado="ok-full_version"]
|
|
34
|
+
.formulario button, .hoja-de-ruta button, #boton-cerrar-encuesta, #boton-volver-hdr
|
|
35
|
+
&[resumen-estado="ok-full_version"]
|
|
36
36
|
background-color #5CB85C
|
|
37
37
|
color #FFFFFF
|
|
38
|
-
[resumen-estado="ok"]
|
|
38
|
+
&[resumen-estado="ok"]
|
|
39
39
|
border-color #28a745
|
|
40
40
|
color #28a745
|
|
41
|
-
[resumen-estado="cita pactada"]
|
|
41
|
+
&[resumen-estado="cita pactada"]
|
|
42
42
|
background-color #3f51b5
|
|
43
43
|
color #FFFFFF
|
|
44
|
-
[resumen-estado="vacio"]
|
|
45
|
-
color:
|
|
46
|
-
background-color: #
|
|
47
|
-
border-color
|
|
48
|
-
[resumen-estado="con problemas"] //segun bootstrap
|
|
44
|
+
&[resumen-estado="vacio"]
|
|
45
|
+
color: blue;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
border-color blue;
|
|
48
|
+
&[resumen-estado="con problemas"] //segun bootstrap
|
|
49
49
|
color #fff
|
|
50
50
|
background-color #dc3545
|
|
51
51
|
border-color #dc3545
|
|
52
|
-
[resumen-estado="incompleto"] //segun bootstrap
|
|
52
|
+
&[resumen-estado="incompleto"] //segun bootstrap
|
|
53
53
|
color #212529
|
|
54
54
|
background-color #ffc107
|
|
55
55
|
border-color #ffc107
|
|
56
|
-
[resumen-estado="no rea"] //segun bootstrap
|
|
56
|
+
&[resumen-estado="no rea"] //segun bootstrap
|
|
57
57
|
color #fff
|
|
58
58
|
background-color #6c757d
|
|
59
59
|
border-color #6c757d
|
|
60
|
-
[resumen-estado="actual"]
|
|
60
|
+
&[resumen-estado="actual"]
|
|
61
61
|
background-color blue
|
|
62
62
|
color #FFFFFF
|
|
63
63
|
|
|
@@ -1370,17 +1370,33 @@ function BarraDeNavegacion(props:{forPk:ForPk, soloLectura:boolean, modoDirecto:
|
|
|
1370
1370
|
//location.hash=hash.toString();
|
|
1371
1371
|
}
|
|
1372
1372
|
var botonesFormulario=[];
|
|
1373
|
+
const ID_BOTON_VOLVER_HDR = 'boton-volver-hdr';
|
|
1373
1374
|
if(!opciones.modoDirecto){
|
|
1374
|
-
botonesFormulario.push({que: 'hdr' , abr:'HdR', label:'hoja de ruta', retroceso:0})
|
|
1375
|
+
botonesFormulario.push({que: 'hdr' , abr:'HdR', id:ID_BOTON_VOLVER_HDR, label:'hoja de ruta', retroceso:0})
|
|
1375
1376
|
}
|
|
1376
1377
|
opciones.pilaForPk.forEach((forPk,i)=>
|
|
1377
1378
|
botonesFormulario.push({que:'volver', abr:forPk.formulario.replace(/^F:/,''), label:forPk.formulario, retroceso:opciones.pilaForPk.length-i})
|
|
1378
1379
|
)
|
|
1379
1380
|
botonesFormulario.push({que:'', abr:forPk.formulario.replace(/^F:/,''), label:forPk.formulario, retroceso:0});
|
|
1381
|
+
const ID_BOTON_CERRAR = 'boton-cerrar-encuesta';
|
|
1382
|
+
registrarElemento({id:props.modoDirecto?ID_BOTON_CERRAR:ID_BOTON_VOLVER_HDR, direct:true,
|
|
1383
|
+
fun:(
|
|
1384
|
+
r:Respuestas,
|
|
1385
|
+
_feedbackForm: FormStructureState<IdVariable, Valor, IdFin>,
|
|
1386
|
+
elemento:HTMLDivElement,
|
|
1387
|
+
feedbackAll:{[formulario in PlainForPk]:FormStructureState<IdVariable, Valor, IdFin>},
|
|
1388
|
+
_estructura:Estructura
|
|
1389
|
+
)=>{
|
|
1390
|
+
elemento.setAttribute('resumen-estado',calcularResumenVivienda(forPk, feedbackAll, r).resumenEstado);
|
|
1391
|
+
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
})
|
|
1380
1395
|
return <>
|
|
1381
1396
|
<ButtonGroup key="formularios" className="barra-navegacion" solo-lectura={props.soloLectura?'si':'no'} >
|
|
1382
1397
|
{botonesFormulario.map((b,i)=>
|
|
1383
1398
|
<Button color={b.que==forPk.formulario?"primary":"inherit"} variant="outlined"
|
|
1399
|
+
id={b.id}
|
|
1384
1400
|
key={`${i}-${b.que}-${b.retroceso}`}
|
|
1385
1401
|
disabled={!b.que}
|
|
1386
1402
|
onClick={()=>{
|
|
@@ -1402,6 +1418,7 @@ function BarraDeNavegacion(props:{forPk:ForPk, soloLectura:boolean, modoDirecto:
|
|
|
1402
1418
|
<>
|
|
1403
1419
|
<ButtonGroup key="volver_y_grabar" style={{margin:'0 0 0 30px'}}>
|
|
1404
1420
|
<Button
|
|
1421
|
+
id={ID_BOTON_CERRAR}
|
|
1405
1422
|
color="inherit"
|
|
1406
1423
|
variant="outlined"
|
|
1407
1424
|
onClick={async ()=>{
|
|
@@ -31,33 +31,33 @@ anchoNormal(ancho)
|
|
|
31
31
|
.btn
|
|
32
32
|
white-space normal
|
|
33
33
|
|
|
34
|
-
.formulario, .hoja-de-ruta
|
|
35
|
-
[resumen-estado="ok-full_version"]
|
|
34
|
+
.formulario button, .hoja-de-ruta button, #boton-cerrar-encuesta, #boton-volver-hdr
|
|
35
|
+
&[resumen-estado="ok-full_version"]
|
|
36
36
|
background-color #5CB85C
|
|
37
37
|
color #FFFFFF
|
|
38
|
-
[resumen-estado="ok"]
|
|
38
|
+
&[resumen-estado="ok"]
|
|
39
39
|
border-color #28a745
|
|
40
40
|
color #28a745
|
|
41
|
-
[resumen-estado="cita pactada"]
|
|
41
|
+
&[resumen-estado="cita pactada"]
|
|
42
42
|
background-color #3f51b5
|
|
43
43
|
color #FFFFFF
|
|
44
|
-
[resumen-estado="vacio"]
|
|
45
|
-
color:
|
|
46
|
-
background-color: #
|
|
47
|
-
border-color
|
|
48
|
-
[resumen-estado="con problemas"] //segun bootstrap
|
|
44
|
+
&[resumen-estado="vacio"]
|
|
45
|
+
color: blue;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
border-color blue;
|
|
48
|
+
&[resumen-estado="con problemas"] //segun bootstrap
|
|
49
49
|
color #fff
|
|
50
50
|
background-color #dc3545
|
|
51
51
|
border-color #dc3545
|
|
52
|
-
[resumen-estado="incompleto"] //segun bootstrap
|
|
52
|
+
&[resumen-estado="incompleto"] //segun bootstrap
|
|
53
53
|
color #212529
|
|
54
54
|
background-color #ffc107
|
|
55
55
|
border-color #ffc107
|
|
56
|
-
[resumen-estado="no rea"] //segun bootstrap
|
|
56
|
+
&[resumen-estado="no rea"] //segun bootstrap
|
|
57
57
|
color #fff
|
|
58
58
|
background-color #6c757d
|
|
59
59
|
border-color #6c757d
|
|
60
|
-
[resumen-estado="actual"]
|
|
60
|
+
&[resumen-estado="actual"]
|
|
61
61
|
background-color blue
|
|
62
62
|
color #FFFFFF
|
|
63
63
|
|