dmencu 1.0.21 → 1.0.22

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.
@@ -413,7 +413,7 @@ function OpcionMultipleDespliegue(props:{opcionM:OpcionMultiple, forPk:ForPk}){
413
413
  const {opcionM} = props;
414
414
  var id = `opcionM-${opcionM.id_casillero}`;
415
415
  //@ts-ignore altunos casilleros no tienen especial, no importa, es solo para poner los metadatos
416
- var styles = opcionM.especial?.flexDirection?{flexDirection:opcionM.especial.flexDirection}:{};
416
+ var styles: React.CSSProperties = opcionM.especial?.flexDirection?{flexDirection:opcionM.especial.flexDirection}:{flexWrap:'wrap'};
417
417
  registrarElemento({
418
418
  id,
419
419
  direct:true,
@@ -430,6 +430,7 @@ function OpcionMultipleDespliegue(props:{opcionM:OpcionMultiple, forPk:ForPk}){
430
430
  verIdGuion={true}
431
431
  leer={opcionM.leer!==false}
432
432
  forPk={props.forPk}
433
+ style={{maxWidth:'60%'}}
433
434
  />
434
435
  <SiNoDespliegue
435
436
  casilleroConOpciones={opcionM}
@@ -458,7 +459,13 @@ const getLosMetadatos = (casillero: CasilleroEncabezable): React.JSX.Element =>
458
459
  }
459
460
  </div>
460
461
 
461
- function EncabezadoDespliegue(props:{casillero:CasilleroEncabezable, verIdGuion?:boolean, leer?:boolean, forPk:ForPk}){
462
+ function EncabezadoDespliegue(props:{
463
+ style?:React.CSSProperties,
464
+ casillero:CasilleroEncabezable,
465
+ verIdGuion?:boolean,
466
+ leer?:boolean,
467
+ forPk:ForPk
468
+ }){
462
469
  var {casillero, forPk} = props;
463
470
  var conCampoOpciones = useSelector((state:CasoState)=>state.opciones.conCampoOpciones)
464
471
  var handleClickBorrar=()=>{
@@ -471,7 +478,8 @@ function EncabezadoDespliegue(props:{casillero:CasilleroEncabezable, verIdGuion?
471
478
  var idAcciones = "acciones-"+id;
472
479
  return <div
473
480
  className="encabezado"
474
- debe-leer={props.leer?'SI':'NO'}
481
+ debe-leer={props.leer?'SI':'NO'}
482
+ style={props.style}
475
483
  >
476
484
  <div id={id} className="id-div" title={`${casillero.casillero} - ${casillero.var_name}`}
477
485
  onClick={()=>{
@@ -677,7 +685,7 @@ function OpcionesDespliegue(
677
685
  ){
678
686
  const desplegarOtros = (opcion:Opcion, soloParaDespliegue:'vertical'|'horizontal'|null) => opcion.casilleros.map((subPregunta:Pregunta)=>(
679
687
  soloParaDespliegue == null || soloParaDespliegue == subPregunta.despliegueContenido ?
680
- <div className="otros-especificar" key={subPregunta.id_casillero}>
688
+ <div className="otros-especificar" style={{width:'100%'}} key={subPregunta.id_casillero}>
681
689
  <PreguntaDespliegue
682
690
  pregunta={subPregunta}
683
691
  forPk={forPk}
@@ -685,8 +693,8 @@ function OpcionesDespliegue(
685
693
  />
686
694
  </div>:null
687
695
  ))
688
- return <div className="contenido">
689
- <div className="opciones" despliegue-contenido={despliegueContenido??'vertical'}>
696
+ return <><div className="contenido">
697
+ <div className="opciones" despliegue-contenido={despliegueContenido??'vertical'}>
690
698
  {casilleroConOpciones.casilleros.map((opcion:Opcion, i:number)=>
691
699
  <Grid key={opcion.id_casillero} item
692
700
  ocultar-salteada={opcion.despliegueOculta?(opcion.expresion_habilitar_js?'INHABILITAR':'SI'):'NO'}
@@ -703,10 +711,10 @@ function OpcionesDespliegue(
703
711
  </Grid>
704
712
  )}
705
713
  </div>
706
- {despliegueContenido=='horizontal'?casilleroConOpciones.casilleros.map((opcion:Opcion)=>
707
- desplegarOtros(opcion,null)
708
- ):null}
709
714
  </div>
715
+ {despliegueContenido=='horizontal'?casilleroConOpciones.casilleros.map((opcion:Opcion)=>
716
+ desplegarOtros(opcion,null)
717
+ ):null}</>
710
718
  }
711
719
 
712
720
  const nombreCasillero={
@@ -834,7 +842,7 @@ function PreguntaDespliegue(props:{
834
842
  ):""}
835
843
  />
836
844
  </div>
837
- </DesplegarCasillero>}
845
+ </DesplegarCasillero>
838
846
  }
839
847
 
840
848
  function PMatrizDespliegue(props:{
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": "1.0.21",
4
+ "version": "1.0.22",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "main": "dist/server/server/app-dmencu.js",