dmencu 3.1.0 → 3.1.2
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 +21 -0
- package/dist/client/unlogged/render-formulario.js +13 -9
- package/dist/client/unlogged/render-formulario.tsx +12 -8
- package/dist/server/server/app-dmencu.d.ts +9 -1
- package/dist/unlogged/unlogged/css/formulario-react.styl +21 -0
- package/dist/unlogged/unlogged/render-formulario.js +13 -9
- package/dist/unlogged/unlogged/render-formulario.tsx +12 -8
- package/package.json +2 -2
|
@@ -1149,8 +1149,8 @@ type DefinicionFormularioAbrir =
|
|
|
1149
1149
|
{ forPk: ForPk, num: number, actual: boolean, previo: false, esAgregar: true } |
|
|
1150
1150
|
{ forPk: ForPk, num: number, actual: boolean, previo: false, esConfirmar: true } |
|
|
1151
1151
|
{ forPk: ForPk, num: number, actual: boolean, previo: false, permiteBorrar: boolean } |
|
|
1152
|
-
{ forPk: ForPk, num: false, actual: boolean, previo:
|
|
1153
|
-
& { esConfirmar?: true, esAgregar?: true, permiteBorrar?: boolean, permiteBorrarGabinete?: boolean, disabled?: boolean | undefined };
|
|
1152
|
+
{ forPk: ForPk, num: false, actual: boolean, previo: boolean, unico: true })
|
|
1153
|
+
& { esConfirmar?: true, esAgregar?: true, permiteBorrar?: boolean, permiteBorrarGabinete?: boolean, disabled?: boolean | undefined, estadoBoton?: string };
|
|
1154
1154
|
|
|
1155
1155
|
|
|
1156
1156
|
var botonFormularioConResumen = (
|
|
@@ -1171,7 +1171,7 @@ var botonFormularioConResumen = (
|
|
|
1171
1171
|
id,
|
|
1172
1172
|
class: "seccion-boton-formulario",
|
|
1173
1173
|
$attrs: {
|
|
1174
|
-
"nuestro-validator": defBoton.actual ? 'actual' : defBoton.previo ? 'valida' : 'todavia_no',
|
|
1174
|
+
"nuestro-validator": defBoton.actual ? 'actual' : defBoton.previo ? 'valida' : (defBoton.estadoBoton || 'todavia_no'),
|
|
1175
1175
|
"ocultar-salteada": casillero.despliegueOculta ? (casillero.expresion_habilitar_js ? 'INHABILITAR' : 'SI') : 'NO',
|
|
1176
1176
|
"tiene-valor": "NO",
|
|
1177
1177
|
"def-button": JSON.stringify(defBoton)
|
|
@@ -1210,7 +1210,7 @@ var botonFormularioConResumen = (
|
|
|
1210
1210
|
}
|
|
1211
1211
|
},
|
|
1212
1212
|
$attrs: {
|
|
1213
|
-
"resumen-estado": estado != 'vacio' ? estado : defBoton.actual ? 'actual' : defBoton.previo ? estado : 'todavia_no',
|
|
1213
|
+
"resumen-estado": estado != 'vacio' ? estado : defBoton.actual ? 'actual' : defBoton.previo ? estado : (defBoton.estadoBoton || 'todavia_no'),
|
|
1214
1214
|
}
|
|
1215
1215
|
, children: [
|
|
1216
1216
|
(defBoton.esAgregar ? 'agregar' : defBoton.esConfirmar ? 'Listo' : casillero.nombre + ' ' + (defBoton.num || '')),
|
|
@@ -1403,7 +1403,8 @@ function BotonFormularioDespliegue(props: { casillero: BotonFormulario, formular
|
|
|
1403
1403
|
checkFormsVacios(formHnos, feedbackAll, forPk) &&
|
|
1404
1404
|
calcularPermiteBorrarBF(configSorteoFormulario, idFormularioDestino),
|
|
1405
1405
|
permiteBorrarGabinete,
|
|
1406
|
-
disabled: calcularDisabledBF(configSorteoFormulario, habilitacionBotonFormulario, num, idFormularioDestino, respuestasAumentadas)
|
|
1406
|
+
disabled: calcularDisabledBF(configSorteoFormulario, habilitacionBotonFormulario, num, idFormularioDestino, respuestasAumentadas),
|
|
1407
|
+
estadoBoton: estado_general
|
|
1407
1408
|
}
|
|
1408
1409
|
}).array();
|
|
1409
1410
|
if (true /*"puede agregar //TODO VER ESTO"*/ && (conjunto instanceof Array || conjunto == null)) {
|
|
@@ -1421,7 +1422,8 @@ function BotonFormularioDespliegue(props: { casillero: BotonFormulario, formular
|
|
|
1421
1422
|
esAgregar: true,
|
|
1422
1423
|
actual: debeAgregarOlisto,
|
|
1423
1424
|
previo: false,
|
|
1424
|
-
disabled: calcularDisabledBFAgregarListo(configSorteoFormulario, habilitacionBotonFormulario, idFormularioDestino)
|
|
1425
|
+
disabled: calcularDisabledBFAgregarListo(configSorteoFormulario, habilitacionBotonFormulario, idFormularioDestino),
|
|
1426
|
+
estadoBoton: estado_general
|
|
1425
1427
|
});
|
|
1426
1428
|
listaDeBotonesAbrir.push({
|
|
1427
1429
|
forPk,
|
|
@@ -1429,12 +1431,14 @@ function BotonFormularioDespliegue(props: { casillero: BotonFormulario, formular
|
|
|
1429
1431
|
esConfirmar: true,
|
|
1430
1432
|
actual: debeAgregarOlisto,
|
|
1431
1433
|
previo: false,
|
|
1432
|
-
disabled: calcularDisabledBFAgregarListo(configSorteoFormulario, habilitacionBotonFormulario, idFormularioDestino)
|
|
1434
|
+
disabled: calcularDisabledBFAgregarListo(configSorteoFormulario, habilitacionBotonFormulario, idFormularioDestino),
|
|
1435
|
+
estadoBoton: estado_general
|
|
1433
1436
|
});
|
|
1434
1437
|
}
|
|
1435
1438
|
} else {
|
|
1436
1439
|
let forPk = { ...props.forPk, formulario: idFormularioDestino };
|
|
1437
|
-
|
|
1440
|
+
var esPrevioUnico = estado_general == 'valida' || (feedbackAll[toPlainForPk(forPk)]?.resumen != null && feedbackAll[toPlainForPk(forPk)]?.resumen != 'vacio');
|
|
1441
|
+
listaDeBotonesAbrir = [{ forPk, num: false, unico: true, actual: esVarActual, previo: esPrevioUnico, estadoBoton: estado_general }]
|
|
1438
1442
|
}
|
|
1439
1443
|
var todosLosBotones = listaDeBotonesAbrir.map(defBoton =>
|
|
1440
1444
|
botonFormularioConResumen(defBoton, feedbackAll[toPlainForPk(defBoton.forPk)] ?? { resumen: 'vacio' }, respuestasAumentadas,
|
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": "3.1.
|
|
4
|
+
"version": "3.1.2",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/server/server/app-dmencu.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"backend-plus": "^2.7.0-beta.13",
|
|
16
16
|
"cast-error": "^0.1.3",
|
|
17
17
|
"like-ar": "^0.3.9",
|
|
18
|
-
"meta-enc": "^1.4.
|
|
18
|
+
"meta-enc": "^1.4.18",
|
|
19
19
|
"procesamiento": "^2.0.10",
|
|
20
20
|
"qrcode": "^1.5.3",
|
|
21
21
|
"react": "~17.0.2",
|