dmencu 2.0.20 → 2.0.21
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/server/table-tem.d.ts +3 -0
- package/dist/client/server/table-tem.js +239 -0
- package/dist/client/server/types-dmencu.d.ts +48 -0
- package/dist/client/server/types-dmencu.js +33 -0
- package/dist/client/unlogged/css/bootstrap.min.css +6 -6
- package/dist/client/unlogged/tsconfig.json +14 -14
- package/dist/server/server/table-barrios.js +1 -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-comunas.js +2 -2
- package/dist/server/server/table-encuestadores.js +7 -7
- package/dist/server/server/table-fracciones.js +1 -1
- package/dist/server/server/table-hogares.js +1 -1
- package/dist/server/server/table-hogares_sup.js +1 -1
- package/dist/server/server/table-manzanas.js +1 -1
- package/dist/server/server/table-parametros.js +1 -1
- package/dist/server/server/table-personal.js +7 -7
- package/dist/server/server/table-personal_rol.js +7 -7
- package/dist/server/server/table-personas.js +1 -1
- package/dist/server/server/table-personas_sup.js +1 -1
- package/dist/server/server/table-radios.js +3 -3
- package/dist/server/server/table-recepcionistas.js +1 -1
- package/dist/server/server/table-visitas.js +1 -1
- package/dist/server/server/table-visitas_sup.js +1 -1
- package/dist/server/server/table-viviendas.js +1 -1
- package/dist/unlogged/unlogged/css/bootstrap.min.css +6 -6
- package/dist/unlogged/unlogged/server/table-tem.d.ts +3 -0
- package/dist/unlogged/unlogged/server/table-tem.js +239 -0
- package/dist/unlogged/unlogged/server/types-dmencu.d.ts +48 -0
- package/dist/unlogged/unlogged/server/types-dmencu.js +33 -0
- package/dist/unlogged/unlogged/tsconfig.json +14 -14
- package/dist/unlogged/unlogged/unlogged/abrir-formulario.d.ts +13 -0
- package/dist/unlogged/unlogged/unlogged/abrir-formulario.js +109 -0
- package/dist/unlogged/unlogged/unlogged/adapt.d.ts +0 -0
- package/dist/unlogged/unlogged/unlogged/adapt.js +8 -0
- package/dist/unlogged/unlogged/unlogged/bypass-formulario.d.ts +202 -0
- package/dist/unlogged/unlogged/unlogged/bypass-formulario.js +1100 -0
- package/dist/unlogged/unlogged/unlogged/redux-formulario.d.ts +349 -0
- package/dist/unlogged/unlogged/unlogged/redux-formulario.js +318 -0
- package/dist/unlogged/unlogged/unlogged/render-formulario.d.ts +86 -0
- package/dist/unlogged/unlogged/unlogged/render-formulario.js +1692 -0
- package/dist/unlogged/unlogged/unlogged/render-general.d.ts +127 -0
- package/dist/unlogged/unlogged/unlogged/render-general.js +176 -0
- package/dist/unlogged/unlogged/unlogged/tipos.d.ts +486 -0
- package/dist/unlogged/unlogged/unlogged/tipos.js +22 -0
- package/dist/unlogged/unlogged/unlogged/unlogged.d.ts +1 -0
- package/dist/unlogged/unlogged/unlogged/unlogged.js +180 -0
- package/install/actualizar-2023-05-14.sql +38 -38
- package/install/actualizar_inconvar.sql +28 -28
- package/install/agregados_tem.sql +4 -4
- package/install/asignar_desasignar_tareas_tem_trg.sql +43 -43
- package/install/metadatos/permisos.tab +11 -11
- package/install/metadatos/roles.tab +10 -10
- package/install/metadatos/roles_permisos.tab +94 -94
- package/install/metadatos/tipovar.tab +9 -9
- package/install/sincro_tareas_areas_tareas_tem_trg.sql +29 -29
- package/install/usuarios_trg.sql +41 -41
- package/install/validar_tareas_tem_trg.sql +67 -67
- package/package.json +91 -91
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { FormStructureState, OpcionesRowValidator } from "row-validator";
|
|
2
|
+
import { Estructura, ForPk, ForPkRaiz, IdFin, IdFormulario, IdPregunta, IdTarea, IdVariable, IdUnidadAnalisis, InfoFormulario, PlainForPk, Respuestas, RespuestasRaiz, ResumenEstado, Valor, Visita, UnidadAnalisis, ConfiguracionSorteoFormulario, DatosByPassPersistibles, DefOperativo, ConfiguracionHabilitarBotonFormulario, IdCarga, ValuePkRaiz } from "./tipos";
|
|
3
|
+
export declare function setCalcularVariables(calcularVariables: (respuestasRaiz: RespuestasRaiz, forPk: ForPk) => void): void;
|
|
4
|
+
export declare function setCalcularVariablesEspecificasOperativo(calcularVariablesEspecificasOperativo: (respuestasRaiz: RespuestasRaiz, forPk: ForPk) => void): void;
|
|
5
|
+
type DatosByPass = DatosByPassPersistibles & {
|
|
6
|
+
feedbackRowValidator: {
|
|
7
|
+
[formulario in PlainForPk]: FormStructureState<IdVariable, Valor, IdFin>;
|
|
8
|
+
};
|
|
9
|
+
dirty: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var datosByPass: DatosByPass;
|
|
12
|
+
export declare function setPersistirDatosByPass(persistirDatosByPassFun: typeof persistirDatosByPass): void;
|
|
13
|
+
export declare function persistirDatosByPass(dbpp: DatosByPassPersistibles): Promise<void>;
|
|
14
|
+
export declare const crearEncuesta: (idCarga: IdCarga, callBack: (forPkRaiz: ForPkRaiz) => void) => void;
|
|
15
|
+
export declare function setEncolarBackup(encolarBackupFun: (token: string | undefined, forPkRaiz: ForPkRaiz, respuestasRaiz: Respuestas) => void): void;
|
|
16
|
+
export declare var intentarBackup: (forPk: ForPk) => void;
|
|
17
|
+
export declare function setEstructura(estructuraACargar: Estructura): Estructura;
|
|
18
|
+
export declare function setDatosByPass(dbpp: DatosByPassPersistibles & {
|
|
19
|
+
dirty?: boolean;
|
|
20
|
+
}): void;
|
|
21
|
+
export declare var getDatosByPass: () => DatosByPass;
|
|
22
|
+
export declare function getFeedbackRowValidator(): {
|
|
23
|
+
"etc...": FormStructureState<IdVariable, Valor, "fin">;
|
|
24
|
+
"{\"formulario\":\"F:F1\",\"vivienda\":\"10202\",\"persona\":null}": FormStructureState<IdVariable, Valor, "fin">;
|
|
25
|
+
};
|
|
26
|
+
export declare function getDirty(): boolean;
|
|
27
|
+
export declare function getEstructura(): Estructura;
|
|
28
|
+
type ElementosRegistrables = HTMLDivElement | HTMLButtonElement | HTMLInputElement;
|
|
29
|
+
type DirectFunction<T, Result> = (respuestasAumentadas: Respuestas, feedbackForm: FormStructureState<IdVariable, Valor, IdFin>, elemento: T, feedbackAll: {
|
|
30
|
+
[formulario in PlainForPk]: FormStructureState<IdVariable, Valor, IdFin>;
|
|
31
|
+
}, estructura: Estructura) => Result;
|
|
32
|
+
type RegistroElemento<T extends ElementosRegistrables> = {
|
|
33
|
+
id: string;
|
|
34
|
+
fun: DirectFunction<T, any>;
|
|
35
|
+
} & ({
|
|
36
|
+
prop: keyof T;
|
|
37
|
+
fun: DirectFunction<T, T[keyof T]>;
|
|
38
|
+
} | {
|
|
39
|
+
attr: string;
|
|
40
|
+
fun: DirectFunction<T, string>;
|
|
41
|
+
} | {
|
|
42
|
+
style: keyof CSSStyleDeclaration;
|
|
43
|
+
fun: DirectFunction<T, string>;
|
|
44
|
+
} | {
|
|
45
|
+
direct: true;
|
|
46
|
+
fun: DirectFunction<T, void>;
|
|
47
|
+
});
|
|
48
|
+
export declare function registrarElemento<T extends ElementosRegistrables>(def: RegistroElemento<T>): void;
|
|
49
|
+
type RespuestasForPkComun = {
|
|
50
|
+
respuestas: Respuestas;
|
|
51
|
+
respuestasRaiz: RespuestasRaiz;
|
|
52
|
+
forPkRaiz: ForPkRaiz;
|
|
53
|
+
unidadAnalisis: UnidadAnalisis;
|
|
54
|
+
};
|
|
55
|
+
export declare function respuestasForPk(forPk: ForPk): RespuestasForPkComun;
|
|
56
|
+
export declare function respuestasForPk(forPk: ForPk, conAumentadas: true, agregarSiFalta?: boolean): RespuestasForPkComun & {
|
|
57
|
+
respuestasAumentadas: Respuestas;
|
|
58
|
+
};
|
|
59
|
+
export declare function volcadoInicialElementosRegistrados(forPkRaiz: ForPkRaiz): void;
|
|
60
|
+
export declare function calcularElementoEnfocado(idVariable: IdVariable | IdFin): {
|
|
61
|
+
elementoInputVariable?: HTMLElement | null;
|
|
62
|
+
top?: number | null;
|
|
63
|
+
bottom?: number | null;
|
|
64
|
+
enfocado?: boolean | null;
|
|
65
|
+
desenfoque?: string | null;
|
|
66
|
+
};
|
|
67
|
+
export declare function setAttrDistinto<N extends string>(objeto: {
|
|
68
|
+
setAttribute: (name: N, valor: string) => void;
|
|
69
|
+
getAttribute: (name: N) => string | null;
|
|
70
|
+
}, name: N, valor: string): void;
|
|
71
|
+
export declare function setValorDistinto<T extends {}, N extends keyof T>(objeto: T, name: N, valor: T[N]): void;
|
|
72
|
+
export declare function accion_id_pregunta(_payload: {
|
|
73
|
+
pregunta: IdPregunta;
|
|
74
|
+
forPk: ForPk;
|
|
75
|
+
}, _datosByPass: DatosByPass): void;
|
|
76
|
+
export declare const NO_CAMBIAR__SOLO_TRAER_STATUS: unique symbol;
|
|
77
|
+
export declare const NO_CAMBIAR__VERIFICAR_SI_ES_NECESARIO: unique symbol;
|
|
78
|
+
export declare function accion_registrar_respuesta(payload: {
|
|
79
|
+
forPk: ForPk;
|
|
80
|
+
variable: IdVariable | typeof NO_CAMBIAR__SOLO_TRAER_STATUS;
|
|
81
|
+
respuesta: Valor | typeof NO_CAMBIAR__VERIFICAR_SI_ES_NECESARIO;
|
|
82
|
+
}, _datosByPass: DatosByPass): {
|
|
83
|
+
recentModified: boolean;
|
|
84
|
+
siguienteVariable: IdVariable | "fin" | null | undefined;
|
|
85
|
+
variableActual: IdVariable | null;
|
|
86
|
+
};
|
|
87
|
+
export declare function accion_registrar_nota(payload: {
|
|
88
|
+
forPkRaiz: ForPkRaiz;
|
|
89
|
+
tarea: IdTarea;
|
|
90
|
+
nota: string | null;
|
|
91
|
+
}, _datosByPass: DatosByPass): void;
|
|
92
|
+
export declare function accion_agregar_visita(payload: {
|
|
93
|
+
forPkRaiz: ForPkRaiz;
|
|
94
|
+
observaciones: string | null;
|
|
95
|
+
}, _datosByPass: DatosByPass): void;
|
|
96
|
+
export declare function accion_modificar_visita(payload: {
|
|
97
|
+
forPkRaiz: ForPkRaiz;
|
|
98
|
+
index: number;
|
|
99
|
+
opcion: keyof Visita;
|
|
100
|
+
valor: string | null;
|
|
101
|
+
}, _datosByPass: DatosByPass): void;
|
|
102
|
+
export declare function accion_borrar_visita(payload: {
|
|
103
|
+
forPkRaiz: ForPkRaiz;
|
|
104
|
+
index: number;
|
|
105
|
+
}, _datosByPass: DatosByPass): void;
|
|
106
|
+
export declare function accion_agregar_formulario({ forPk }: {
|
|
107
|
+
forPk: ForPk;
|
|
108
|
+
}, _datosByPass: DatosByPass): void;
|
|
109
|
+
export declare function accion_abrir_formulario({ forPk }: {
|
|
110
|
+
forPk: ForPk;
|
|
111
|
+
}, _datosByPass: DatosByPass): void;
|
|
112
|
+
export declare function accion_borrar_formulario({ forPk, forPkPadre }: {
|
|
113
|
+
forPk: ForPk;
|
|
114
|
+
forPkPadre: ForPk;
|
|
115
|
+
}): void;
|
|
116
|
+
export declare function dispatchByPass<T, R>(fun: (payload: T, datos: typeof datosByPass) => R, payload: T): R;
|
|
117
|
+
export declare const ultimaVaribleVivienda: IdVariable;
|
|
118
|
+
export declare const MAXCP = 20;
|
|
119
|
+
export declare const helpersCasilleros: {
|
|
120
|
+
null2zero(posibleNull: any): any;
|
|
121
|
+
div0err(numerador: number, denominador: number, pk: string): number;
|
|
122
|
+
funs: {
|
|
123
|
+
blanco(x: any): boolean;
|
|
124
|
+
hoy(): string;
|
|
125
|
+
fecha_valida(x: string): boolean;
|
|
126
|
+
mesanio_valido(x: string): boolean;
|
|
127
|
+
informado(x: any): boolean;
|
|
128
|
+
nsnc(x: any): boolean;
|
|
129
|
+
par(x: number): boolean;
|
|
130
|
+
edad_mes_annio_valido(edad: number, mesAnnio: string, fechaRealizacionDDMMYYYY: string): boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export declare function miniCompiladorSQlJs(expresionCasiSQL: string): string;
|
|
134
|
+
export declare function getFuncionCompilada<T>(conjuntoDeFunciones: {
|
|
135
|
+
[key: string]: (valores: {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}) => T;
|
|
138
|
+
}): (nombreFuncionComoExpresionJs: string) => (valores: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}) => T;
|
|
141
|
+
export declare const getFuncionHabilitar: (nombreFuncionComoExpresionJs: string) => (valores: {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}) => boolean;
|
|
144
|
+
export declare const getFuncionValorar: (nombreFuncionComoExpresionJs: string) => (valores: {
|
|
145
|
+
[key: string]: any;
|
|
146
|
+
}) => any;
|
|
147
|
+
export declare var buscarNoReaEnRespuestas: (unidadesARecorrerPrm: IdUnidadAnalisis[], unidadAnalisis: UnidadAnalisis, respuestas: Respuestas, noReasTarea: {}[], nombNoRea: string) => {
|
|
148
|
+
nrcodigo: string | null;
|
|
149
|
+
esvalor: boolean;
|
|
150
|
+
};
|
|
151
|
+
export declare var defOperativo: DefOperativo;
|
|
152
|
+
export declare var setCalculoReaNoRea: (esNoRea: (respuestas: Respuestas) => {
|
|
153
|
+
codNoRea: string | null;
|
|
154
|
+
esNoRea: boolean;
|
|
155
|
+
}, esNoReaSup: (respuestas: Respuestas) => {
|
|
156
|
+
codNoReaSup: string | null;
|
|
157
|
+
esNoReaSup: boolean;
|
|
158
|
+
}, esRealizada: (respuestas: Respuestas) => {
|
|
159
|
+
codRea: number | null;
|
|
160
|
+
esRea: boolean;
|
|
161
|
+
}, esRealizadaSup: (respuestas: Respuestas) => {
|
|
162
|
+
codReaSup: number | null;
|
|
163
|
+
esReaSup: boolean;
|
|
164
|
+
}) => void;
|
|
165
|
+
export declare function verificarSorteo(opts: {
|
|
166
|
+
configuracionSorteo: ConfiguracionSorteoFormulario;
|
|
167
|
+
respuestas: Respuestas;
|
|
168
|
+
respuestasRaiz: RespuestasRaiz;
|
|
169
|
+
forPk: ForPk;
|
|
170
|
+
variableActual: IdVariable;
|
|
171
|
+
}): void;
|
|
172
|
+
export declare function calcularFeedbackUnidadAnalisis(feedbackRowValidator: {
|
|
173
|
+
[formulario in PlainForPk]: FormStructureState<IdVariable, Valor, IdFin>;
|
|
174
|
+
}, formularios: {
|
|
175
|
+
[nombreFormulario in IdFormulario]: InfoFormulario;
|
|
176
|
+
}, respuestas: Respuestas, UA: IdUnidadAnalisis, forPk: ForPk, respuestasAumentadas: Respuestas, // incluyen la de todos los padres y ansestros,
|
|
177
|
+
respuestasPadre: Respuestas | null, opts: OpcionesRowValidator): void;
|
|
178
|
+
export declare function numberOrStringIncIfArray(numberOrString: number | string, object: object | any[]): (number | string);
|
|
179
|
+
export declare var getMainFormForVivienda: (valuePkRaiz: ValuePkRaiz) => IdFormulario;
|
|
180
|
+
export declare function calcularFeedbackHojaDeRuta(): void;
|
|
181
|
+
export declare function calcularFeedbackEncuesta(feedbackRowValidator: {
|
|
182
|
+
[formulario in PlainForPk]: FormStructureState<IdVariable, Valor, IdFin>;
|
|
183
|
+
}, formularios: {
|
|
184
|
+
[nombreFormulario in IdFormulario]: InfoFormulario;
|
|
185
|
+
}, forPkRaiz: ForPkRaiz, respuestas: Respuestas, opts: OpcionesRowValidator): void;
|
|
186
|
+
export declare var buscarFormulariosHijos: (idFormulario: IdFormulario | undefined, formsFeedback?: IdFormulario[]) => IdFormulario[];
|
|
187
|
+
export declare var getFormulariosForValuePkRaiz: (valuePkRaiz: ValuePkRaiz) => IdFormulario[];
|
|
188
|
+
export declare var calcularActualBF: (configSorteoFormulario: ConfiguracionSorteoFormulario | null, numElementoUA: number, numActual: number | null, formulario: IdFormulario, r: Respuestas) => boolean;
|
|
189
|
+
export declare var calcularDisabledBF: (configSorteoFormulario: ConfiguracionSorteoFormulario | null, habilitacionBotonFormulario: ConfiguracionHabilitarBotonFormulario | null, numElementoUA: number, formulario: IdFormulario, r: Respuestas) => boolean;
|
|
190
|
+
export declare var calcularPermiteBorrarBF: (configSorteoFormulario: ConfiguracionSorteoFormulario | null, formulario: IdFormulario) => boolean;
|
|
191
|
+
type ResultadoResumen = {
|
|
192
|
+
resumenEstado: ResumenEstado;
|
|
193
|
+
resumenEstadoSup: ResumenEstado;
|
|
194
|
+
codRea: number | null;
|
|
195
|
+
codNoRea: string | null;
|
|
196
|
+
codReaSup: number | null;
|
|
197
|
+
codNoReaSup: string | null;
|
|
198
|
+
};
|
|
199
|
+
export declare function calcularResumenVivienda(forPkRaiz: ForPkRaiz, feedbackRowValidator: {
|
|
200
|
+
[formulario in PlainForPk]: FormStructureState<IdVariable, Valor, IdFin>;
|
|
201
|
+
}, respuestas: Respuestas): ResultadoResumen;
|
|
202
|
+
export {};
|