dmencu 1.0.18 → 1.0.20

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.
@@ -577,6 +577,8 @@ app-cache-version, #app-dm-version
577
577
  .seccion-boton-formulario
578
578
  svg
579
579
  margin-left 0.5rem
580
+ width 1.5em
581
+ height 1.5em
580
582
 
581
583
  .boton-borrar-ua-vacia
582
584
  svg
@@ -796,4 +798,4 @@ div#mini-console
796
798
  right 0px
797
799
  width 100%
798
800
  height 100%
799
- background rgba(240,240,240,0.5)
801
+ background rgba(240,240,240,0.5)
@@ -59,9 +59,8 @@ import {
59
59
  DialogTitle, Divider, Fab, IconButton,
60
60
  Menu, MenuItem, Paper, Popover,
61
61
  Table, TableBody, TableCell, TableHead, TableRow, Toolbar, CssBaselineProps
62
- } from "@material-ui/core";
62
+ } from "@mui/material";
63
63
  import { EstadoVariable, FormStructureState } from "row-validator";
64
- import { CSSProperties } from "@material-ui/core/styles/withStyles";
65
64
 
66
65
  import {
67
66
  registrarElemento, setAttrDistinto, setValorDistinto, dispatchByPass,
@@ -115,7 +114,7 @@ window.addEventListener('load', ()=>{
115
114
 
116
115
  // /*
117
116
 
118
- type CommonAttributes = {className?:string,style?:CSSProperties,id?:string, tabIndex?:number} // CSSProperties
117
+ type CommonAttributes = {className?:string,style?:React.CSSProperties,id?:string, tabIndex?:number} // CSSProperties
119
118
  type ColorValues = 'primary'|'secondary'|'default'|'inherit'
120
119
 
121
120
  export type LibreDespliegueType = (props:{
@@ -758,7 +757,7 @@ function PreguntaDespliegue(props:{
758
757
  fun: registradorDeVariable(pregunta)
759
758
  })
760
759
  var id = `pregunta-${pregunta.id_casillero}`
761
- var style: CSSProperties = {}
760
+ var style: React.CSSProperties = {}
762
761
  if(pregunta.despliegue == 'grid'){
763
762
  style.display = 'grid';
764
763
  style.gridTemplateColumns = 'repeat(3,1fr)';
@@ -1102,7 +1101,7 @@ var botonFormularioConResumen = (
1102
1101
  }
1103
1102
  , children:[
1104
1103
  (defBoton.esAgregar?'agregar':defBoton.esConfirmar?'Listo':casillero.nombre + ' ' + (defBoton.num||'')),
1105
- html.svg({class:"MuiSvgIcon-root", focusable:false, viewbox:"0 0 24 24", "aria-hidden":"true"},[
1104
+ html.svg({focusable:false, viewbox:"0 0 24 24", "aria-hidden":"true"},[
1106
1105
  html.path({d:(defBoton.esAgregar?materialIoIconsSvgPath.Add:defBoton.esConfirmar?materialIoIconsSvgPath.Check:casillero.salto?materialIoIconsSvgPath.Forward:materialIoIconsSvgPath.ExitToApp)})
1107
1106
  ])
1108
1107
  ]
@@ -1113,7 +1112,7 @@ var botonFormularioConResumen = (
1113
1112
  color:"default",
1114
1113
  variant:"outlined",
1115
1114
  children:
1116
- html.svg({class:"MuiSvgIcon-root", focusable:false, viewbox:"0 0 24 24", "aria-hidden":"true"},[
1115
+ html.svg({focusable:false, viewbox:"0 0 24 24", "aria-hidden":"true"},[
1117
1116
  html.path({d:materialIoIconsSvgPath.DeleteForever})
1118
1117
  ]),
1119
1118
  onClick:()=>accion_borrar_formulario({forPk, forPkPadre})})
@@ -22,8 +22,8 @@ import {
22
22
  Table, TableBody, TableCell, TableHead, TableRow, TextField, ThemeProvider, Toolbar, Typography, Zoom,
23
23
  useScrollTrigger,
24
24
  // styles:
25
- createStyles, makeStyles, Theme, createTheme
26
- } from "@material-ui/core";
25
+ createStyles, Theme, createTheme
26
+ } from "@mui/material";
27
27
  import { Store, Action } from "redux";
28
28
  import { TipoVariables } from "./tipos";
29
29
 
@@ -94,17 +94,6 @@ export function adaptarTipoVarCasillero(casilleroDataType:TipoVariables|'opcione
94
94
  return adapter[casilleroDataType]
95
95
  }
96
96
 
97
-
98
- const useStylesScrollTop = makeStyles((theme: Theme) =>
99
- createStyles({
100
- root: {
101
- position: 'fixed',
102
- bottom: theme.spacing(2),
103
- right: theme.spacing(2),
104
- },
105
- }),
106
- );
107
-
108
97
  export const scrollToTop = () => {
109
98
  window.scroll({behavior:'smooth', top:0, left:0})
110
99
  };
@@ -116,7 +105,7 @@ export const scrollToBottom = () => {
116
105
 
117
106
  export function ScrollTop(props: any) {
118
107
  const { children } = props;
119
- const classes = useStylesScrollTop();
108
+ //const classes = useStylesScrollTop();
120
109
  // Note that you normally won't need to set the window ref as useScrollTrigger
121
110
  // will default to window.
122
111
  // This is only being set here because the demo is in an iframe.
@@ -126,7 +115,7 @@ export function ScrollTop(props: any) {
126
115
  });
127
116
  return (
128
117
  <Zoom in={trigger}>
129
- <div onClick={scrollToTop} role="presentation" className={classes.root}>
118
+ <div onClick={scrollToTop} role="presentation" /*className={classes.root}*/>
130
119
  {children}
131
120
  </div>
132
121
  </Zoom>