dmencu 2.0.3-alpha → 2.0.4
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/client/client.js +18 -10
- package/dist/client/unlogged/abrir-formulario.d.ts +0 -1
- package/dist/client/unlogged/abrir-formulario.js +5 -5
- package/dist/client/unlogged/bypass-formulario.d.ts +1 -0
- package/dist/client/unlogged/bypass-formulario.js +3 -2
- package/dist/client/unlogged/render-formulario.tsx +13 -6
- package/dist/server/server/app-dmencu.js +14 -7
- package/dist/server/server/procedures-dmencu.js +11 -1
- package/dist/server/server/table-comunas copy.d.ts +2 -0
- package/dist/server/server/table-comunas copy.js +28 -0
- package/dist/server/server/table-modos_dm.d.ts +2 -0
- package/dist/server/server/table-modos_dm.js +28 -0
- package/dist/unlogged/unlogged/abrir-formulario.d.ts +0 -1
- package/dist/unlogged/unlogged/abrir-formulario.js +5 -5
- package/dist/unlogged/unlogged/bypass-formulario.d.ts +1 -0
- package/dist/unlogged/unlogged/bypass-formulario.js +3 -2
- package/dist/unlogged/unlogged/render-formulario.js +16 -7
- package/dist/unlogged/unlogged/render-formulario.tsx +13 -6
- package/dist/unlogged/unlogged/unlogged.js +10 -2
- package/install/modos_dm.tab +3 -0
- package/package.json +1 -1
|
@@ -25,7 +25,8 @@ import {Bloque, BotonFormulario,
|
|
|
25
25
|
iterator, empty, ConfiguracionHabilitarBotonFormulario,
|
|
26
26
|
CampoPkRaiz,
|
|
27
27
|
ValuePkRaiz,
|
|
28
|
-
PMatriz
|
|
28
|
+
PMatriz,
|
|
29
|
+
ModoDM
|
|
29
30
|
} from "./tipos";
|
|
30
31
|
import{
|
|
31
32
|
accion_abrir_formulario,
|
|
@@ -75,7 +76,8 @@ import {
|
|
|
75
76
|
accion_id_pregunta,
|
|
76
77
|
accion_agregar_formulario,
|
|
77
78
|
NO_CAMBIAR__VERIFICAR_SI_ES_NECESARIO,
|
|
78
|
-
NO_CAMBIAR__SOLO_TRAER_STATUS
|
|
79
|
+
NO_CAMBIAR__SOLO_TRAER_STATUS,
|
|
80
|
+
MODO_DM_LOCALSTORAGE_KEY
|
|
79
81
|
} from "./bypass-formulario"
|
|
80
82
|
|
|
81
83
|
import {html, HtmlTag} from "js-to-html";
|
|
@@ -1754,11 +1756,13 @@ function FormularioDespliegue(props:{forPk:ForPk}){
|
|
|
1754
1756
|
})
|
|
1755
1757
|
// @ts-expect-error especial hay que leerlo en el parser de casilleros si esto termina quedando así
|
|
1756
1758
|
var pantallaCompleta = formulario.especial?.pantallaCompleta;
|
|
1759
|
+
const modoDM:ModoDM = my.getLocalVar(MODO_DM_LOCALSTORAGE_KEY);
|
|
1757
1760
|
return (
|
|
1758
1761
|
<>
|
|
1759
|
-
<AppBar position="fixed" color={soloLectura?'secondary':'primary'}>
|
|
1762
|
+
<AppBar position="fixed" color={soloLectura?'secondary':(modoDM=='capa'?'success':'primary')}>
|
|
1760
1763
|
<Toolbar>
|
|
1761
1764
|
<BarraDeNavegacion forPk={forPk} soloLectura={soloLectura || false} modoDirecto={opciones.modoDirecto}/>
|
|
1765
|
+
<Typography><span style={{marginLeft:'5px'}}>{modoDM=='capa'?' MODO CAPACITACIÓN':''}</span></Typography>
|
|
1762
1766
|
</Toolbar>
|
|
1763
1767
|
<div id="mini-console"></div>
|
|
1764
1768
|
</AppBar>
|
|
@@ -2052,9 +2056,10 @@ setHojaDeRutaDespliegue((_props:{})=>{
|
|
|
2052
2056
|
const [online, setOnline] = useState(window.navigator.onLine);
|
|
2053
2057
|
window.addEventListener('online', updateOnlineStatus);
|
|
2054
2058
|
window.addEventListener('offline', updateOnlineStatus);
|
|
2059
|
+
const modoDM:ModoDM = my.getLocalVar(MODO_DM_LOCALSTORAGE_KEY);
|
|
2055
2060
|
return (
|
|
2056
2061
|
<>
|
|
2057
|
-
<AppBar position="fixed">
|
|
2062
|
+
<AppBar position="fixed" color={modoDM=='capa'?'success':'primary'}>
|
|
2058
2063
|
<Toolbar>
|
|
2059
2064
|
<Typography variant="h6">
|
|
2060
2065
|
Hoja de ruta
|
|
@@ -2079,6 +2084,7 @@ setHojaDeRutaDespliegue((_props:{})=>{
|
|
|
2079
2084
|
</IconButton>
|
|
2080
2085
|
</>
|
|
2081
2086
|
:null}
|
|
2087
|
+
<Typography><span style={{marginLeft:'5px'}}>{modoDM=='capa'?' MODO CAPACITACIÓN':''}</span></Typography>
|
|
2082
2088
|
</Toolbar>
|
|
2083
2089
|
</AppBar>
|
|
2084
2090
|
<div className="hoja-de-ruta">
|
|
@@ -2186,11 +2192,12 @@ function PantallaInicialSinCarga(_props:{}){
|
|
|
2186
2192
|
window.addEventListener('online', updateOnlineStatus);
|
|
2187
2193
|
window.addEventListener('offline', updateOnlineStatus);
|
|
2188
2194
|
const paragraphStyles={fontSize:"1.2rem", fontWeight:600, padding: "5px 10px"};
|
|
2195
|
+
const modoDM:ModoDM = my.getLocalVar(MODO_DM_LOCALSTORAGE_KEY);
|
|
2189
2196
|
return (
|
|
2190
2197
|
<>
|
|
2191
|
-
<AppBar position="fixed">
|
|
2198
|
+
<AppBar position="fixed" color={modoDM=='capa'?'success':'primary'}>
|
|
2192
2199
|
<Typography variant="h6" style={{margin:25}}>
|
|
2193
|
-
Dispositivo sin carga
|
|
2200
|
+
Dispositivo sin carga - {modoDM=='capa'?'MODO CAPACITACIÓN':''}
|
|
2194
2201
|
</Typography>
|
|
2195
2202
|
</AppBar>
|
|
2196
2203
|
<main>
|