@arquimedes.co/eureka-forms 1.4.2-test → 1.4.5-test

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 (58) hide show
  1. package/dist/@Types/CBRFormStep.d.ts +72 -0
  2. package/dist/@Types/CBRFormStep.js +1 -0
  3. package/dist/@Types/Form.d.ts +3 -0
  4. package/dist/@Types/FormStep.d.ts +10 -41
  5. package/dist/@Types/GenericFormSteps.d.ts +58 -0
  6. package/dist/@Types/GenericFormSteps.js +1 -0
  7. package/dist/App.js +27 -8
  8. package/dist/App.module.css +1 -0
  9. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +1 -1
  10. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +45 -12
  11. package/dist/FormComponents/Form/Form.d.ts +4 -1
  12. package/dist/FormComponents/Form/Form.js +22 -10
  13. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +2 -1
  14. package/dist/FormComponents/Section/Section.d.ts +4 -1
  15. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +9 -0
  16. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +25 -0
  17. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +8 -0
  18. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +48 -0
  19. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +60 -0
  20. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +11 -0
  21. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +112 -0
  22. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +34 -0
  23. package/dist/FormComponents/Step/@Construction/CBRLocativasStep/CBRLocativasStep.d.ts +8 -0
  24. package/dist/FormComponents/Step/@Construction/CBRLocativasStep/CBRLocativasStep.js +124 -0
  25. package/dist/FormComponents/Step/CBRStepMapper.d.ts +13 -0
  26. package/dist/FormComponents/Step/CBRStepMapper.js +243 -0
  27. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_INMUEBLE.json +13151 -0
  28. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_LOCATIVAS.json +71 -0
  29. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_PROYECTO.json +74 -0
  30. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_TIPO_DOC.json +50 -0
  31. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_TIPO_ESPACIO.json +320 -0
  32. package/dist/FormComponents/Step/CBRStepValuesTemp/CBR_TIPO_SOLICITANTE.json +42 -0
  33. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +1 -1
  34. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +7 -5
  35. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +1 -1
  36. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +7 -5
  37. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +4 -0
  38. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +147 -0
  39. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +9 -0
  40. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +24 -0
  41. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +25 -0
  42. package/dist/FormComponents/Step/Step.js +6 -1
  43. package/dist/FormComponents/Step/StepFunctions.d.ts +3 -3
  44. package/dist/FormComponents/Step/StepFunctions.js +5 -5
  45. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +5 -2
  46. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -1
  47. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +1 -1
  48. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +3 -3
  49. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +2 -0
  50. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +1 -1
  51. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +1 -8
  52. package/dist/constants/CBRFormStepTypes.d.ts +20 -0
  53. package/dist/constants/CBRFormStepTypes.js +21 -0
  54. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +3 -3
  55. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +40 -50
  56. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +2 -0
  57. package/dist/shared/RoundedTextField/RoundedTextField.js +5 -1
  58. package/package.json +2 -1
@@ -0,0 +1,71 @@
1
+ {
2
+ "MaxNivel": 2,
3
+ "lstLocativas": {
4
+ "TipoLocativas": [
5
+ {
6
+ "Id": "01",
7
+ "Descripcion": "Hidráulico"
8
+ },
9
+ {
10
+ "Id": "0101",
11
+ "Descripcion": "Filtración por tuberia PVC"
12
+ },
13
+ {
14
+ "Id": "02",
15
+ "Descripcion": "Griferia y Aparatos Ceramicos"
16
+ },
17
+ {
18
+ "Id": "0201",
19
+ "Descripcion": "Sanitario o lavamanos defectuoso"
20
+ },
21
+ {
22
+ "Id": "0202",
23
+ "Descripcion": "Falta boquilla lavadero contra muro"
24
+ },
25
+ {
26
+ "Id": "0203",
27
+ "Descripcion": "Griferia suelta o mal instalada"
28
+ },
29
+ {
30
+ "Id": "0204",
31
+ "Descripcion": "Incrustaciones mal instaladas"
32
+ },
33
+ {
34
+ "Id": "0205",
35
+ "Descripcion": "Lavamanos, sanitario, lavadero lavaplatos o mesón cocina suelto"
36
+ },
37
+ {
38
+ "Id": "03",
39
+ "Descripcion": "Gasodomesticos y electrodomesticos"
40
+ },
41
+ {
42
+ "Id": "0301",
43
+ "Descripcion": "Tubería de gas o escapes"
44
+ },
45
+ {
46
+ "Id": "05",
47
+ "Descripcion": "Remates Gral de Mamposteria , Pisos y Pañete"
48
+ },
49
+ {
50
+ "Id": "0501",
51
+ "Descripcion": "Ausencia de boquilla en mampostería"
52
+ },
53
+ {
54
+ "Id": "0502",
55
+ "Descripcion": "Pañete suelto o fisurado"
56
+ },
57
+ {
58
+ "Id": "0503",
59
+ "Descripcion": "Piezas rotas o fisuradas"
60
+ },
61
+ {
62
+ "Id": "08",
63
+ "Descripcion": "Enchapes y Ceramica"
64
+ },
65
+ {
66
+ "Id": "0801",
67
+ "Descripcion": "Emboquillados cerámica piso y muro deficientes"
68
+ }
69
+ ]
70
+ }
71
+ }
@@ -0,0 +1,74 @@
1
+ [
2
+ {
3
+ "IdProyecto": 101,
4
+ "NombreProyecto": "SENDEROS DE LAS ACACIAS ETAPA 1",
5
+ "IdMacroproyecto": 11,
6
+ "NombreMacroProyecto": "ZZZ SENDEROS DE LAS ACACIAS",
7
+ "FechaEntrega": "28/02/2017",
8
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
9
+ },
10
+ {
11
+ "IdProyecto": 102,
12
+ "NombreProyecto": "SENDEROS DE LAS ACACIAS ETAPA 2",
13
+ "IdMacroproyecto": 11,
14
+ "NombreMacroProyecto": "ZZZ SENDEROS DE LAS ACACIAS",
15
+ "FechaEntrega": "31/08/2017",
16
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
17
+ },
18
+ {
19
+ "IdProyecto": 132,
20
+ "NombreProyecto": "ARBOLEDA DE CHICALA ETAPA 1",
21
+ "IdMacroproyecto": 15,
22
+ "NombreMacroProyecto": "ZZZ ARBOLEDA DE CHICALA",
23
+ "FechaEntrega": "12/06/2024",
24
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
25
+ },
26
+ {
27
+ "IdProyecto": 133,
28
+ "NombreProyecto": "ARBOLEDA DE CHICALA ETAPA 2",
29
+ "IdMacroproyecto": 15,
30
+ "NombreMacroProyecto": "ZZZ ARBOLEDA DE CHICALA",
31
+ "FechaEntrega": "31/07/2018",
32
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
33
+ },
34
+ {
35
+ "IdProyecto": 135,
36
+ "NombreProyecto": "TORRES DE SAN PEDRO ETAPA 1",
37
+ "IdMacroproyecto": 17,
38
+ "NombreMacroProyecto": "ZZZ TORRES DE SAN PEDRO",
39
+ "FechaEntrega": "30/11/2017",
40
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
41
+ },
42
+ {
43
+ "IdProyecto": 139,
44
+ "NombreProyecto": "TORRES DE SAN PEDRO ETAPA 2",
45
+ "IdMacroproyecto": 17,
46
+ "NombreMacroProyecto": "ZZZ TORRES DE SAN PEDRO",
47
+ "FechaEntrega": "30/11/2017",
48
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
49
+ },
50
+ {
51
+ "IdProyecto": 149,
52
+ "NombreProyecto": "MARCONI",
53
+ "IdMacroproyecto": 22,
54
+ "NombreMacroProyecto": "MARCONI",
55
+ "FechaEntrega": "31/10/2017",
56
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
57
+ },
58
+ {
59
+ "IdProyecto": 158,
60
+ "NombreProyecto": "RESERVA DE ZUAME",
61
+ "IdMacroproyecto": 25,
62
+ "NombreMacroProyecto": "RESERVA DE ZUAME",
63
+ "FechaEntrega": "30/05/2019",
64
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
65
+ },
66
+ {
67
+ "IdProyecto": 237,
68
+ "NombreProyecto": "EL PRADO VECINDARIO TORRE 1",
69
+ "IdMacroproyecto": 39,
70
+ "NombreMacroProyecto": "El Prado",
71
+ "FechaEntrega": "31/10/2022",
72
+ "BaseDatos": "SincoPlusDesarrollo_CBR_2021"
73
+ }
74
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "Id": "NIT",
4
+ "Descripcion": "NIT"
5
+ },
6
+ {
7
+ "Id": "CC",
8
+ "Descripcion": "Cédula de Ciudadanía"
9
+ },
10
+ {
11
+ "Id": "NIUP",
12
+ "Descripcion": "NIUP-Registro Unico"
13
+ },
14
+ {
15
+ "Id": "TI",
16
+ "Descripcion": "Tarjeta de Identidad"
17
+ },
18
+ {
19
+ "Id": "CE",
20
+ "Descripcion": "Cédula de Extranjería"
21
+ },
22
+ {
23
+ "Id": "LM",
24
+ "Descripcion": "Libreta Militar"
25
+ },
26
+ {
27
+ "Id": "PA",
28
+ "Descripcion": "Pasaporte"
29
+ },
30
+ {
31
+ "Id": "SE",
32
+ "Descripcion": "Sociedad Extranjera"
33
+ },
34
+ {
35
+ "Id": "VI",
36
+ "Descripcion": "Visa"
37
+ },
38
+ {
39
+ "Id": "RC",
40
+ "Descripcion": "Registro Civil"
41
+ },
42
+ {
43
+ "Id": "TE",
44
+ "Descripcion": "Tarjeta de Extranjería"
45
+ },
46
+ {
47
+ "Id": "PPT",
48
+ "Descripcion": "Permiso Por Protección Temporal"
49
+ }
50
+ ]
@@ -0,0 +1,320 @@
1
+ {
2
+ "101": [
3
+ {
4
+ "Id": 134,
5
+ "Descripcion": "Alcoba 2"
6
+ },
7
+ {
8
+ "Id": 130,
9
+ "Descripcion": "Alcoba Principal"
10
+ },
11
+ {
12
+ "Id": 132,
13
+ "Descripcion": "Baño Auxiliar"
14
+ },
15
+ {
16
+ "Id": 133,
17
+ "Descripcion": "Baño Principal"
18
+ },
19
+ {
20
+ "Id": 129,
21
+ "Descripcion": "Cocina"
22
+ },
23
+ {
24
+ "Id": 137,
25
+ "Descripcion": "Hall o Corredor"
26
+ },
27
+ {
28
+ "Id": 135,
29
+ "Descripcion": "Lavanderia"
30
+ },
31
+ {
32
+ "Id": 174,
33
+ "Descripcion": "Punto Fijo"
34
+ },
35
+ {
36
+ "Id": 131,
37
+ "Descripcion": "Sala Comedor"
38
+ },
39
+ {
40
+ "Id": 136,
41
+ "Descripcion": "Zonas Comunes"
42
+ }
43
+ ],
44
+ "102": [
45
+ {
46
+ "Id": 143,
47
+ "Descripcion": "Alcoba 2"
48
+ },
49
+ {
50
+ "Id": 139,
51
+ "Descripcion": "Alcoba Principal"
52
+ },
53
+ {
54
+ "Id": 141,
55
+ "Descripcion": "Baño Auxiliar"
56
+ },
57
+ {
58
+ "Id": 142,
59
+ "Descripcion": "Baño Principal"
60
+ },
61
+ {
62
+ "Id": 138,
63
+ "Descripcion": "Cocina"
64
+ },
65
+ {
66
+ "Id": 146,
67
+ "Descripcion": "Hall o Corredor"
68
+ },
69
+ {
70
+ "Id": 144,
71
+ "Descripcion": "Lavanderia"
72
+ },
73
+ {
74
+ "Id": 175,
75
+ "Descripcion": "Punto Fijo"
76
+ },
77
+ {
78
+ "Id": 140,
79
+ "Descripcion": "Sala Comedor"
80
+ },
81
+ {
82
+ "Id": 145,
83
+ "Descripcion": "Zonas Comunes"
84
+ }
85
+ ],
86
+ "132": [
87
+ {
88
+ "Id": 150,
89
+ "Descripcion": "Baño Auxiliar"
90
+ },
91
+ {
92
+ "Id": 151,
93
+ "Descripcion": "Baño Principal"
94
+ },
95
+ {
96
+ "Id": 147,
97
+ "Descripcion": "Cocina"
98
+ },
99
+ {
100
+ "Id": 155,
101
+ "Descripcion": "Hall o Corredor"
102
+ },
103
+ {
104
+ "Id": 153,
105
+ "Descripcion": "Lavanderia"
106
+ },
107
+ {
108
+ "Id": 149,
109
+ "Descripcion": "Sala Comedor"
110
+ },
111
+ {
112
+ "Id": 202,
113
+ "Descripcion": "Unidad General"
114
+ },
115
+ {
116
+ "Id": 154,
117
+ "Descripcion": "Zonas Comunes"
118
+ }
119
+ ],
120
+ "133": [
121
+ {
122
+ "Id": 161,
123
+ "Descripcion": "Alcoba 2"
124
+ },
125
+ {
126
+ "Id": 157,
127
+ "Descripcion": "Alcoba Principal"
128
+ },
129
+ {
130
+ "Id": 159,
131
+ "Descripcion": "Baño Auxiliar"
132
+ },
133
+ {
134
+ "Id": 160,
135
+ "Descripcion": "Baño Principal"
136
+ },
137
+ {
138
+ "Id": 156,
139
+ "Descripcion": "Cocina"
140
+ },
141
+ {
142
+ "Id": 164,
143
+ "Descripcion": "Hall o Corredor"
144
+ },
145
+ {
146
+ "Id": 162,
147
+ "Descripcion": "Lavanderia"
148
+ },
149
+ {
150
+ "Id": 158,
151
+ "Descripcion": "Sala Comedor"
152
+ },
153
+ {
154
+ "Id": 163,
155
+ "Descripcion": "Zonas Comunes"
156
+ }
157
+ ],
158
+ "135": [
159
+ {
160
+ "Id": 181,
161
+ "Descripcion": "Alcoba 2"
162
+ },
163
+ {
164
+ "Id": 177,
165
+ "Descripcion": "Alcoba Principal"
166
+ },
167
+ {
168
+ "Id": 179,
169
+ "Descripcion": "Baño Auxiliar"
170
+ },
171
+ {
172
+ "Id": 180,
173
+ "Descripcion": "Baño Principal"
174
+ },
175
+ {
176
+ "Id": 176,
177
+ "Descripcion": "Cocina"
178
+ },
179
+ {
180
+ "Id": 184,
181
+ "Descripcion": "Hall o Corredor"
182
+ },
183
+ {
184
+ "Id": 182,
185
+ "Descripcion": "Lavanderia"
186
+ },
187
+ {
188
+ "Id": 178,
189
+ "Descripcion": "Sala Comedor"
190
+ },
191
+ {
192
+ "Id": 183,
193
+ "Descripcion": "Zonas Comunes"
194
+ }
195
+ ],
196
+ "139": [
197
+ {
198
+ "Id": 190,
199
+ "Descripcion": "Alcoba 2"
200
+ },
201
+ {
202
+ "Id": 186,
203
+ "Descripcion": "Alcoba Principal"
204
+ },
205
+ {
206
+ "Id": 188,
207
+ "Descripcion": "Baño Auxiliar"
208
+ },
209
+ {
210
+ "Id": 189,
211
+ "Descripcion": "Baño Principal"
212
+ },
213
+ {
214
+ "Id": 185,
215
+ "Descripcion": "Cocina"
216
+ },
217
+ {
218
+ "Id": 193,
219
+ "Descripcion": "Hall o Corredor"
220
+ },
221
+ {
222
+ "Id": 191,
223
+ "Descripcion": "Lavanderia"
224
+ },
225
+ {
226
+ "Id": 187,
227
+ "Descripcion": "Sala Comedor"
228
+ },
229
+ {
230
+ "Id": 192,
231
+ "Descripcion": "Zonas Comunes"
232
+ }
233
+ ],
234
+ "149": [
235
+ {
236
+ "Id": 91,
237
+ "Descripcion": "Alcoba 2"
238
+ },
239
+ {
240
+ "Id": 87,
241
+ "Descripcion": "Alcoba Principal"
242
+ },
243
+ {
244
+ "Id": 89,
245
+ "Descripcion": "Baño Auxiliar"
246
+ },
247
+ {
248
+ "Id": 90,
249
+ "Descripcion": "Baño Principal"
250
+ },
251
+ {
252
+ "Id": 86,
253
+ "Descripcion": "Cocina"
254
+ },
255
+ {
256
+ "Id": 94,
257
+ "Descripcion": "Hall o Corredor"
258
+ },
259
+ {
260
+ "Id": 92,
261
+ "Descripcion": "Lavanderia"
262
+ },
263
+ {
264
+ "Id": 88,
265
+ "Descripcion": "Sala Comedor"
266
+ },
267
+ {
268
+ "Id": 93,
269
+ "Descripcion": "Zonas Comunes"
270
+ }
271
+ ],
272
+ "158": [
273
+ {
274
+ "Id": 83,
275
+ "Descripcion": "Alcoba 2"
276
+ },
277
+ {
278
+ "Id": 79,
279
+ "Descripcion": "Alcoba Principal"
280
+ },
281
+ {
282
+ "Id": 81,
283
+ "Descripcion": "Baño Auxiliar"
284
+ },
285
+ {
286
+ "Id": 82,
287
+ "Descripcion": "Baño Principal"
288
+ },
289
+ {
290
+ "Id": 78,
291
+ "Descripcion": "Cocina"
292
+ },
293
+ {
294
+ "Id": 84,
295
+ "Descripcion": "Lavanderia"
296
+ },
297
+ {
298
+ "Id": 80,
299
+ "Descripcion": "Sala Comedor"
300
+ },
301
+ {
302
+ "Id": 203,
303
+ "Descripcion": "Unidad General"
304
+ },
305
+ {
306
+ "Id": 85,
307
+ "Descripcion": "Zonas Comunes"
308
+ }
309
+ ],
310
+ "237": [
311
+ {
312
+ "Id": 360,
313
+ "Descripcion": "Alcoba"
314
+ },
315
+ {
316
+ "Id": 359,
317
+ "Descripcion": "baño"
318
+ }
319
+ ]
320
+ }
@@ -0,0 +1,42 @@
1
+ [
2
+ {
3
+ "Id": 9,
4
+ "Descripcion": "ADMINISTRACIÓN"
5
+ },
6
+ {
7
+ "Id": 2,
8
+ "Descripcion": "ARRENDATARIO"
9
+ },
10
+ {
11
+ "Id": 10,
12
+ "Descripcion": "ENTIDAD EXTERNA"
13
+ },
14
+ {
15
+ "Id": 5,
16
+ "Descripcion": "ESPOSO (A)"
17
+ },
18
+ {
19
+ "Id": 3,
20
+ "Descripcion": "HERMANO(A)"
21
+ },
22
+ {
23
+ "Id": 6,
24
+ "Descripcion": "HIJO(A)"
25
+ },
26
+ {
27
+ "Id": 8,
28
+ "Descripcion": "OTRO(A)"
29
+ },
30
+ {
31
+ "Id": 7,
32
+ "Descripcion": "PADRE O MADRE"
33
+ },
34
+ {
35
+ "Id": 1,
36
+ "Descripcion": "PROPIETARIO"
37
+ },
38
+ {
39
+ "Id": 4,
40
+ "Descripcion": "TIO(A)"
41
+ }
42
+ ]
@@ -19,7 +19,7 @@ function CheckBoxStep(_a) {
19
19
  return (_jsxs("div", __assign({ className: styles.container, style: {
20
20
  width: widthStats.currentBreakPoint <= step.size
21
21
  ? '100%'
22
- : calcStepWidth(step.size, form),
22
+ : calcStepWidth(step.size, form.size),
23
23
  minHeight: step.description || step.required ? '55px' : '43px',
24
24
  } }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [step.label && (_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }), void 0)), _jsx(Controller, { name: step.id, control: control, defaultValue: false, rules: {
25
25
  required: step.required
@@ -32,7 +32,9 @@ import { Controller } from 'react-hook-form';
32
32
  import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
33
33
  function ClassifierSelector(_a) {
34
34
  var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, onChange = _a.onChange, postview = _a.postview, inputRef = _a.inputRef, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "onChange", "postview", "inputRef", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
35
- var _b = useState(level === 0 ? calcFillerSize(step, form.steps, getValues(), form) : 0), fillerSize = _b[0], setFillerSize = _b[1];
35
+ var _b = useState(level === 0
36
+ ? calcFillerSize(step, form.steps, getValues(), form.size)
37
+ : 0), fillerSize = _b[0], setFillerSize = _b[1];
36
38
  if (!step.idClassifier) {
37
39
  return _jsx("div", {}, void 0);
38
40
  }
@@ -43,14 +45,14 @@ function ClassifierSelector(_a) {
43
45
  var sizeChange = function () {
44
46
  handleSizeChange();
45
47
  if (level === 0) {
46
- setFillerSize(calcFillerSize(step, form.steps, getValues(), form));
48
+ setFillerSize(calcFillerSize(step, form.steps, getValues(), form.size));
47
49
  }
48
50
  };
49
51
  var renderSelect = function () {
50
52
  return (_jsx("div", __assign({ className: styles.container, style: {
51
53
  width: widthStats.currentBreakPoint <= step.size
52
54
  ? '100%'
53
- : calcStepWidth(step.size, form),
55
+ : calcStepWidth(step.size, form.size),
54
56
  minHeight: step.description || step.required ? '55px' : '43px',
55
57
  } }, { children: _jsxs(RoundedSelect, __assign({ fullWidth: true, value: value, cantEdit: postview, helperTextColor: formStyle.descriptionTextColor, errorColor: formStyle.errorColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, label: step.label ? step.label : classifier.name, required: step.required, containerMargin: "0px", height: '31px', onBlur: onBlur, handleUpdate: function (event) {
56
58
  onChange(event.target.value);
@@ -81,12 +83,12 @@ function ClassifierSelector(_a) {
81
83
  }
82
84
  }
83
85
  };
84
- if (level === 0 && step.maxSize < form.blockNum) {
86
+ if (level === 0 && step.maxSize < form.size.blockNum) {
85
87
  return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
86
88
  width: widthStats.currentBreakPoint <= step.size
87
89
  ? '100%'
88
90
  : 'fit-content',
89
- } }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
91
+ } }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.size.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
90
92
  width: fillerSize,
91
93
  } }, "SEPARATOR"))] }), void 0));
92
94
  }
@@ -19,7 +19,7 @@ function DatePickerStep(_a) {
19
19
  return (_jsx("div", __assign({ className: styles.container, style: {
20
20
  width: widthStats.currentBreakPoint <= step.size
21
21
  ? '100%'
22
- : calcStepWidth(step.size, form),
22
+ : calcStepWidth(step.size, form.size),
23
23
  minHeight: step.description || step.required ? '55px' : '43px',
24
24
  } }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: null, rules: {
25
25
  required: step.required
@@ -32,18 +32,20 @@ import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
32
32
  import { Controller } from 'react-hook-form';
33
33
  function Selector(_a) {
34
34
  var step = _a.step, form = _a.form, value = _a.value, level = _a.level, onBlur = _a.onBlur, control = _a.control, onChange = _a.onChange, postview = _a.postview, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, errors = _a.errors, inputRef = _a.inputRef, others = __rest(_a, ["step", "form", "value", "level", "onBlur", "control", "onChange", "postview", "formStyle", "getValues", "widthStats", "handleSizeChange", "errors", "inputRef"]);
35
- var _b = useState(level === 0 ? calcFillerSize(step, form.steps, getValues(), form) : 0), fillerSize = _b[0], setFillerSize = _b[1];
35
+ var _b = useState(level === 0
36
+ ? calcFillerSize(step, form.steps, getValues(), form.size)
37
+ : 0), fillerSize = _b[0], setFillerSize = _b[1];
36
38
  var sizeChange = function () {
37
39
  handleSizeChange();
38
40
  if (level === 0) {
39
- setFillerSize(calcFillerSize(step, form.steps, getValues(), form));
41
+ setFillerSize(calcFillerSize(step, form.steps, getValues(), form.size));
40
42
  }
41
43
  };
42
44
  var renderSelect = function () {
43
45
  return (_jsx("div", __assign({ className: styles.container, style: {
44
46
  width: widthStats.currentBreakPoint <= step.size
45
47
  ? '100%'
46
- : calcStepWidth(step.size, form),
48
+ : calcStepWidth(step.size, form.size),
47
49
  minHeight: step.description || step.required ? '55px' : '43px',
48
50
  } }, { children: _jsxs(RoundedSelect, __assign({ value: value, fullWidth: true, inputRef: inputRef, cantEdit: postview, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, label: step.label, "data-testid": step.id, required: step.required, containerMargin: "0px", height: '31px', onBlur: onBlur, handleUpdate: function (event) {
49
51
  onChange(event.target.value);
@@ -72,12 +74,12 @@ function Selector(_a) {
72
74
  }) }, void 0));
73
75
  }
74
76
  };
75
- if (level === 0 && step.maxSize < form.blockNum) {
77
+ if (level === 0 && step.maxSize < form.size.blockNum) {
76
78
  return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
77
79
  width: widthStats.currentBreakPoint <= step.size
78
80
  ? '100%'
79
81
  : 'fit-content',
80
- } }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
82
+ } }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.size.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
81
83
  width: fillerSize,
82
84
  } }, void 0))] }), void 0));
83
85
  }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SmartSelectStepProps } from '../SmartSelectStep';
3
+ declare function SmartSelectStep(props: SmartSelectStepProps): JSX.Element;
4
+ export default SmartSelectStep;