dmencu 1.0.6 → 1.0.7
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/render-formulario.tsx +67 -13
- package/dist/client/unlogged/render-general.tsx +1 -0
- package/dist/server/server/procedures-dmencu.js +2 -2
- package/dist/unlogged/unlogged/render-formulario.d.ts +38 -6
- package/dist/unlogged/unlogged/render-formulario.js +77 -52
- package/dist/unlogged/unlogged/render-formulario.tsx +67 -13
- package/dist/unlogged/unlogged/render-general.d.ts +2 -0
- package/dist/unlogged/unlogged/render-general.js +2 -1
- package/dist/unlogged/unlogged/render-general.tsx +1 -0
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ export type LibreDespliegueType = (props:{
|
|
|
125
125
|
|
|
126
126
|
var LibreDespliegue: LibreDespliegueType
|
|
127
127
|
|
|
128
|
-
const Button = ({variant, onClick, disabled, children, className, color, size,
|
|
128
|
+
export const Button = ({variant, onClick, disabled, children, className, color, size,
|
|
129
129
|
disableElevation, disableFocusRipple, disableRipple,
|
|
130
130
|
...other
|
|
131
131
|
}:{
|
|
@@ -491,7 +491,27 @@ function EncabezadoDespliegue(props:{casillero:CasilleroEncabezable, verIdGuion?
|
|
|
491
491
|
</div>
|
|
492
492
|
</div>
|
|
493
493
|
<div className="nombre-div">
|
|
494
|
-
<div className="nombre">{breakeableText(casillero.nombre)}
|
|
494
|
+
<div className="nombre">{breakeableText(casillero.nombre)}
|
|
495
|
+
{casillero.especial?.gps?
|
|
496
|
+
<span>
|
|
497
|
+
<Button color="primary" variant="outlined" style={{marginLeft:'10px'}} onClick={(event)=>{
|
|
498
|
+
navigator.geolocation.getCurrentPosition(position => {
|
|
499
|
+
let {siguienteVariable} = dispatchByPass(accion_registrar_respuesta, {forPk:props.forPk, variable:casillero.var_name, respuesta:JSON.stringify(position)})
|
|
500
|
+
console.log(position);
|
|
501
|
+
if(siguienteVariable){
|
|
502
|
+
enfocarElementoDeVariable(siguienteVariable);
|
|
503
|
+
}
|
|
504
|
+
}, e => {
|
|
505
|
+
let {siguienteVariable} = dispatchByPass(accion_registrar_respuesta, {forPk:props.forPk, variable:casillero.var_name, respuesta:"no se pudo obtener el punto, active el gps"})
|
|
506
|
+
if(siguienteVariable){
|
|
507
|
+
enfocarElementoDeVariable(siguienteVariable);
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
}}><ICON.Location/></Button>
|
|
512
|
+
</span>
|
|
513
|
+
:null}
|
|
514
|
+
</div>
|
|
495
515
|
{casillero.aclaracion?
|
|
496
516
|
<div className="aclaracion">
|
|
497
517
|
{casillero.salto && casillero.tipoc=='FILTRO'?
|
|
@@ -597,7 +617,8 @@ function Campo(props:{disabled:boolean, pregunta:PreguntaSimple|PreguntaConOpcio
|
|
|
597
617
|
<div className="input-campo">
|
|
598
618
|
<TextField
|
|
599
619
|
id={`var-${pregunta.var_name}`}
|
|
600
|
-
|
|
620
|
+
//@ts-ignore algunos casilleros tienen especial y otros no
|
|
621
|
+
disabled={disabled || pregunta.especial?.gps}
|
|
601
622
|
className="variable"
|
|
602
623
|
//var-length={pregunta.longitud}
|
|
603
624
|
fullWidth={true}
|
|
@@ -1689,8 +1710,8 @@ export function Atributo(props:{nombre:string, valor:any}){
|
|
|
1689
1710
|
</span>:null
|
|
1690
1711
|
}
|
|
1691
1712
|
|
|
1692
|
-
const listaEstadosCarga:EstadoCarga[]=['resumen','relevamiento','recibo'];
|
|
1693
|
-
var resumidores = [
|
|
1713
|
+
export const listaEstadosCarga:EstadoCarga[]=['resumen','relevamiento','recibo'];
|
|
1714
|
+
export var resumidores = [
|
|
1694
1715
|
{nombre:'REA' , f:(rr:RespuestasRaiz)=>rr.resumenEstado=="ok" },
|
|
1695
1716
|
{nombre:'Cita pactada', f:(rr:RespuestasRaiz)=>rr.resumenEstado=="cita pactada"},
|
|
1696
1717
|
{nombre:'Pendientes' , f:(rr:RespuestasRaiz)=>rr.resumenEstado=="vacio" },
|
|
@@ -1700,12 +1721,23 @@ resumidores.push(
|
|
|
1700
1721
|
{nombre:'Otros', f:resumidores.reduce((g,r)=>(rr=>!r.f(rr) && g(rr) ),(_:RespuestasRaiz)=>true) }
|
|
1701
1722
|
)
|
|
1702
1723
|
|
|
1703
|
-
export
|
|
1724
|
+
export type DesplegarLineaResumenUAPrincipalType = (props:{
|
|
1704
1725
|
numVivienda:IdEnc,
|
|
1705
1726
|
formPrincipal:IdFormulario,
|
|
1706
1727
|
tarea: string,
|
|
1707
1728
|
respuestas:RespuestasRaiz,
|
|
1708
|
-
})
|
|
1729
|
+
})=>JSX.Element;
|
|
1730
|
+
|
|
1731
|
+
export var DesplegarLineaResumenUAPrincipal: DesplegarLineaResumenUAPrincipalType
|
|
1732
|
+
|
|
1733
|
+
export const setDesplegarLineaResumenUAPrincipal = (lineaResumenUAPrincipal:DesplegarLineaResumenUAPrincipalType)=>DesplegarLineaResumenUAPrincipal = lineaResumenUAPrincipal;
|
|
1734
|
+
|
|
1735
|
+
setDesplegarLineaResumenUAPrincipal((props:{
|
|
1736
|
+
numVivienda:IdEnc,
|
|
1737
|
+
formPrincipal:IdFormulario,
|
|
1738
|
+
tarea: string,
|
|
1739
|
+
respuestas:RespuestasRaiz,
|
|
1740
|
+
})=>{
|
|
1709
1741
|
const {numVivienda, respuestas, formPrincipal, tarea} = props;
|
|
1710
1742
|
const id='viv-'+numVivienda;
|
|
1711
1743
|
const estructura = getEstructura();
|
|
@@ -1757,9 +1789,9 @@ export function DesplegarLineaResumenUAPrincipal(props:{
|
|
|
1757
1789
|
</Button>
|
|
1758
1790
|
</TableCell>
|
|
1759
1791
|
</TableRow>
|
|
1760
|
-
}
|
|
1792
|
+
});
|
|
1761
1793
|
|
|
1762
|
-
export
|
|
1794
|
+
export type DesplegarCargaType = (props:{
|
|
1763
1795
|
carga:Carga,
|
|
1764
1796
|
idCarga:IdCarga,
|
|
1765
1797
|
posicion:number,
|
|
@@ -1768,7 +1800,22 @@ export function DesplegarCarga(props:{
|
|
|
1768
1800
|
feedbackRowValidator:{
|
|
1769
1801
|
[formulario in PlainForPk]:FormStructureState<IdVariable, Valor, IdFin>
|
|
1770
1802
|
}
|
|
1771
|
-
})
|
|
1803
|
+
})=>JSX.Element;
|
|
1804
|
+
|
|
1805
|
+
export var DesplegarCarga: DesplegarCargaType
|
|
1806
|
+
|
|
1807
|
+
export const setDesplegarCarga = (despliegueCarga:DesplegarCargaType)=>DesplegarCarga = despliegueCarga;
|
|
1808
|
+
|
|
1809
|
+
setDesplegarCarga((props:{
|
|
1810
|
+
carga:Carga,
|
|
1811
|
+
idCarga:IdCarga,
|
|
1812
|
+
posicion:number,
|
|
1813
|
+
informacionHdr:InformacionHdr,
|
|
1814
|
+
respuestas: RespuestaLasUA,
|
|
1815
|
+
feedbackRowValidator:{
|
|
1816
|
+
[formulario in PlainForPk]:FormStructureState<IdVariable, Valor, IdFin>
|
|
1817
|
+
}
|
|
1818
|
+
})=>{
|
|
1772
1819
|
const [newSurvey, setNewSurvey] = useState(0);
|
|
1773
1820
|
const {carga, idCarga, informacionHdr, respuestas} = props;
|
|
1774
1821
|
var estructura = getEstructura();
|
|
@@ -1851,7 +1898,8 @@ export function DesplegarCarga(props:{
|
|
|
1851
1898
|
</Table>
|
|
1852
1899
|
}
|
|
1853
1900
|
</Paper>
|
|
1854
|
-
}
|
|
1901
|
+
});
|
|
1902
|
+
|
|
1855
1903
|
export function DesplegarCitaPactada(props:{respuestas:Respuestas}){
|
|
1856
1904
|
const {respuestas} = props;
|
|
1857
1905
|
return <div className="cita-pactada">
|
|
@@ -1889,7 +1937,13 @@ export function DesplegarTem(props:{tem:TEM}){
|
|
|
1889
1937
|
</div>
|
|
1890
1938
|
}
|
|
1891
1939
|
|
|
1892
|
-
export
|
|
1940
|
+
export type HojaDeRutaDespliegueType = (props:{})=>JSX.Element;
|
|
1941
|
+
|
|
1942
|
+
export var HojaDeRutaDespliegue: HojaDeRutaDespliegueType
|
|
1943
|
+
|
|
1944
|
+
export const setHojaDeRutaDespliegue = (hojaDeRuta:HojaDeRutaDespliegueType)=>HojaDeRutaDespliegue = hojaDeRuta
|
|
1945
|
+
|
|
1946
|
+
setHojaDeRutaDespliegue((_props:{})=>{
|
|
1893
1947
|
var {cargas, num_sincro, informacionHdr, respuestas} = getDatosByPass();
|
|
1894
1948
|
var {modo} = useSelector((state:CasoState)=>({modo:state.modo}));
|
|
1895
1949
|
var feedbackRowValidator = getFeedbackRowValidator()
|
|
@@ -1949,7 +2003,7 @@ export function HojaDeRutaDespliegue(){
|
|
|
1949
2003
|
</div>
|
|
1950
2004
|
</>
|
|
1951
2005
|
);
|
|
1952
|
-
}
|
|
2006
|
+
});
|
|
1953
2007
|
|
|
1954
2008
|
export function ListaTextos(props:{textos:string[]}){
|
|
1955
2009
|
return <ul>
|
|
@@ -57,6 +57,7 @@ export const materialIoIconsSvgPath={
|
|
|
57
57
|
KeyboardArrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
|
|
58
58
|
Label: "M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z",
|
|
59
59
|
LocalAtm: "M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z",
|
|
60
|
+
Location: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5",
|
|
60
61
|
Menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
|
|
61
62
|
Navigation: "M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z",
|
|
62
63
|
NavigationDown: "M12 22L4.5 3.71l.71 -.71L12 6l6.79 -3 .71 .71z",
|