dmencu 0.3.33 → 0.3.35

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