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,
|
|
@@ -638,6 +638,7 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
|
|
|
638
638
|
}>);
|
|
639
639
|
specialSqlDefaultExpressions: Record<string, string>;
|
|
640
640
|
activeSkinFiles: Set<string>;
|
|
641
|
+
transformInput: <T_1>(fieldDefinition: procesamiento.FieldDefinitionInternal, value: T_1) => T_1;
|
|
641
642
|
};
|
|
642
643
|
} & T;
|
|
643
644
|
export declare var AppDmEncu: {
|
|
@@ -1272,6 +1273,7 @@ export declare var AppDmEncu: {
|
|
|
1272
1273
|
}>);
|
|
1273
1274
|
specialSqlDefaultExpressions: Record<string, string>;
|
|
1274
1275
|
activeSkinFiles: Set<string>;
|
|
1276
|
+
transformInput: <T>(fieldDefinition: procesamiento.FieldDefinitionInternal, value: T) => T;
|
|
1275
1277
|
};
|
|
1276
1278
|
} & (new (...args: any[]) => {
|
|
1277
1279
|
getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
|
|
@@ -1853,6 +1855,7 @@ export declare var AppDmEncu: {
|
|
|
1853
1855
|
specialValueWhenInsert: {
|
|
1854
1856
|
[k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
|
|
1855
1857
|
};
|
|
1858
|
+
specialSqlDefaultExpressions: Record<string, string>;
|
|
1856
1859
|
clearCaches(): void;
|
|
1857
1860
|
start(opts?: import("backend-plus").StartOptions): Promise<void>;
|
|
1858
1861
|
getTables(): import("backend-plus").TableItemDef[];
|
|
@@ -1892,7 +1895,10 @@ export declare var AppDmEncu: {
|
|
|
1892
1895
|
message: string;
|
|
1893
1896
|
fun: () => Promise<void>;
|
|
1894
1897
|
}): void;
|
|
1895
|
-
shutdownBackend(
|
|
1898
|
+
shutdownBackend(opts?: {
|
|
1899
|
+
skipTurnOff?: boolean;
|
|
1900
|
+
onlyTurnOff?: boolean;
|
|
1901
|
+
}): Promise<void>;
|
|
1896
1902
|
setLog(opts: {
|
|
1897
1903
|
until: string;
|
|
1898
1904
|
results?: boolean;
|
|
@@ -1902,6 +1908,8 @@ export declare var AppDmEncu: {
|
|
|
1902
1908
|
prepareTransformationSql: string[];
|
|
1903
1909
|
endTransformationSql: string[];
|
|
1904
1910
|
}>;
|
|
1911
|
+
activeSkinFiles: Set<string>;
|
|
1912
|
+
transformInput: <T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1;
|
|
1905
1913
|
};
|
|
1906
1914
|
prefixTableName(tableName: string, prefix: string): string;
|
|
1907
1915
|
} & typeof procesamiento.AppBackend;
|
|
@@ -134,6 +134,21 @@ anchoNormal(ancho)
|
|
|
134
134
|
margin-left 0.5em
|
|
135
135
|
> .contenido
|
|
136
136
|
margin-left 3em
|
|
137
|
+
&:has(> .multiple[despliegue-encabezado~=lateral]),
|
|
138
|
+
&:has(> .pregunta[despliegue-encabezado~=lateral])
|
|
139
|
+
display grid
|
|
140
|
+
grid-template-columns fit-content(60%) 1fr
|
|
141
|
+
row-gap 0.25rem
|
|
142
|
+
> .pregunta[despliegue-encabezado~=lateral],
|
|
143
|
+
> .multiple[despliegue-encabezado~=lateral]
|
|
144
|
+
display grid
|
|
145
|
+
grid-template-columns subgrid
|
|
146
|
+
grid-column 1 / -1
|
|
147
|
+
align-items center
|
|
148
|
+
> .encabezado
|
|
149
|
+
grid-column 1
|
|
150
|
+
> .contenido
|
|
151
|
+
grid-column 2
|
|
137
152
|
> .multiple
|
|
138
153
|
> .encabezado
|
|
139
154
|
flex-grow: 1
|
|
@@ -371,9 +386,13 @@ div.acciones-pregunta
|
|
|
371
386
|
background-image url("../img/fondo-salteado-error.png")
|
|
372
387
|
background-size 32px
|
|
373
388
|
background-repeat repeat
|
|
389
|
+
.btn
|
|
390
|
+
background-color transparent !important
|
|
374
391
|
[nuestro-validator=invalida]
|
|
375
392
|
boton-id-div()
|
|
376
393
|
background repeating-linear-gradient(45deg, #eee, #eee 10px, #f99 10px, #f99 12px)
|
|
394
|
+
.btn
|
|
395
|
+
background-color transparent !important
|
|
377
396
|
[esta-inhabilitada=SI]
|
|
378
397
|
&[ocultar-salteada=INHABILITAR]
|
|
379
398
|
&[tiene-valor=NO]
|
|
@@ -401,6 +420,8 @@ div.acciones-pregunta
|
|
|
401
420
|
background-repeat repeat
|
|
402
421
|
[nuestro-validator=fuera_de_flujo_por_omitida]
|
|
403
422
|
background repeating-linear-gradient(45deg, #eee, #eee 10px, #fcc 10px, #fcc 12px)
|
|
423
|
+
.btn
|
|
424
|
+
background-color transparent !important
|
|
404
425
|
&[tiene-valor=SI]
|
|
405
426
|
boton-id-div()
|
|
406
427
|
|