@inseefr/lunatic 2.6.2-rc.1 → 2.6.3-rc.1

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 (144) hide show
  1. package/lib/components/index.js +4 -4
  2. package/lib/components/loop/block-for-loop.js +6 -10
  3. package/lib/components/loop/roster-for-loop/roster-for-loop.js +27 -35
  4. package/lib/components/lunatic-components.js +16 -5
  5. package/lib/components/pairwise-links/pairwise-links.js +27 -30
  6. package/lib/components/table/lunatic-table.js +22 -13
  7. package/lib/components/table/{header.js → table-header.js} +3 -5
  8. package/lib/hooks/use-track-changes.js +50 -0
  9. package/lib/src/components/index.d.ts +2 -2
  10. package/lib/src/components/loop/block-for-loop.d.ts +3 -4
  11. package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +3 -4
  12. package/lib/src/components/lunatic-components.d.ts +5 -3
  13. package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -2
  14. package/lib/src/components/table/lunatic-table.d.ts +1 -1
  15. package/lib/src/components/table/{header.d.ts → table-header.d.ts} +2 -2
  16. package/lib/src/components/type.d.ts +5 -6
  17. package/lib/src/hooks/use-track-changes.d.ts +9 -0
  18. package/lib/src/use-lunatic/actions.d.ts +3 -16
  19. package/lib/src/use-lunatic/commons/compile-controls.d.ts +3 -2
  20. package/lib/src/use-lunatic/commons/component.d.ts +22 -0
  21. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +2 -3
  22. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +6 -0
  23. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +107 -122
  24. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +112 -0
  25. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +53 -89
  26. package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +1 -0
  27. package/lib/src/use-lunatic/commons/index.d.ts +0 -3
  28. package/lib/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +7 -0
  29. package/lib/src/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +7 -0
  30. package/lib/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +7 -0
  31. package/lib/src/use-lunatic/commons/variables/get-questionnaire-data.d.ts +4 -0
  32. package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +77 -0
  33. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +10 -8
  34. package/lib/src/use-lunatic/reducer/reduce-handle-change.d.ts +6 -0
  35. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +1 -12
  36. package/lib/src/use-lunatic/type-source.d.ts +7 -21
  37. package/lib/src/use-lunatic/type.d.ts +13 -11
  38. package/lib/src/use-lunatic/use-lunatic.d.ts +33 -56
  39. package/lib/src/utils/array.d.ts +6 -1
  40. package/lib/src/utils/env.d.ts +1 -0
  41. package/lib/src/utils/number.d.ts +4 -0
  42. package/lib/src/utils/variables.d.ts +5 -0
  43. package/lib/src/utils/vtl.d.ts +14 -0
  44. package/lib/use-lunatic/actions.js +3 -3
  45. package/lib/use-lunatic/commons/compile-controls.js +3 -5
  46. package/lib/use-lunatic/commons/component.js +22 -0
  47. package/lib/use-lunatic/commons/execute-condition-filter.js +1 -9
  48. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +2 -3
  49. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +21 -7
  50. package/lib/use-lunatic/commons/fill-components/fill-components.js +5 -3
  51. package/lib/use-lunatic/commons/{execute-expression/get-safety-expression.js → fill-components/fill-iterations.js} +30 -20
  52. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +6 -13
  53. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +58 -5
  54. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +1 -0
  55. package/lib/use-lunatic/commons/index.js +0 -21
  56. package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +39 -0
  57. package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +47 -0
  58. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +78 -0
  59. package/lib/use-lunatic/{reducer/reduce-handle-change/reduce-variables-array.js → commons/variables/get-questionnaire-data.js} +53 -32
  60. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +330 -0
  61. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +216 -0
  62. package/lib/use-lunatic/initial-state.js +5 -2
  63. package/lib/use-lunatic/reducer/overview/overview-on-change.js +1 -1
  64. package/lib/use-lunatic/reducer/{reduce-handle-change/reduce-variables-simple.js → reduce-handle-change.js} +15 -14
  65. package/lib/use-lunatic/reducer/reduce-on-init.js +89 -181
  66. package/lib/use-lunatic/reducer/reducer.js +2 -2
  67. package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +2 -4
  68. package/lib/use-lunatic/use-lunatic.js +18 -14
  69. package/lib/use-lunatic/use-lunatic.test.js +131 -2
  70. package/lib/utils/array.js +57 -6
  71. package/lib/utils/array.spec.js +30 -0
  72. package/lib/utils/env.js +10 -0
  73. package/lib/utils/get-component-value.js +3 -9
  74. package/lib/utils/number.js +13 -1
  75. package/lib/utils/variables.js +37 -0
  76. package/lib/utils/vtl.js +100 -0
  77. package/package.json +1 -1
  78. package/lib/components/loop/utils/get-initial-nb-rows.js +0 -17
  79. package/lib/components/pairwise-links/index.js +0 -13
  80. package/lib/components/pairwise-links/orchestrator.js +0 -71
  81. package/lib/components/pairwise-links/row.js +0 -74
  82. package/lib/components/table/cell.js +0 -89
  83. package/lib/components/table/index.js +0 -13
  84. package/lib/components/table/row.js +0 -40
  85. package/lib/components/table/table-orchestrator.js +0 -35
  86. package/lib/src/components/loop/utils/get-initial-nb-rows.d.ts +0 -4
  87. package/lib/src/components/pairwise-links/index.d.ts +0 -1
  88. package/lib/src/components/pairwise-links/orchestrator.d.ts +0 -6
  89. package/lib/src/components/pairwise-links/row.d.ts +0 -7
  90. package/lib/src/components/table/cell.d.ts +0 -19
  91. package/lib/src/components/table/index.d.ts +0 -1
  92. package/lib/src/components/table/row.d.ts +0 -18
  93. package/lib/src/components/table/table-orchestrator.d.ts +0 -4
  94. package/lib/src/use-lunatic/commons/calculated-variables.d.ts +0 -8
  95. package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +0 -9
  96. package/lib/src/use-lunatic/commons/execute-expression/create-memoizer.d.ts +0 -8
  97. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +0 -24
  98. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +0 -11
  99. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.d.ts +0 -7
  100. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.spec.d.ts +0 -1
  101. package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +0 -6
  102. package/lib/src/use-lunatic/commons/execute-expression/index.d.ts +0 -1
  103. package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +0 -6
  104. package/lib/src/use-lunatic/commons/get-component-value/index.d.ts +0 -1
  105. package/lib/src/use-lunatic/commons/get-data.d.ts +0 -26
  106. package/lib/src/use-lunatic/reducer/reduce-handle-change/index.d.ts +0 -1
  107. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +0 -7
  108. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.d.ts +0 -1
  109. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +0 -4
  110. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +0 -15
  111. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +0 -7
  112. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +0 -4
  113. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +0 -14
  114. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +0 -9
  115. package/lib/src/use-lunatic/reducer/reduce-on-init.spec.d.ts +0 -1
  116. package/lib/src/utils/vtl/dataset-builder.d.ts +0 -5
  117. package/lib/src/utils/vtl/index.d.ts +0 -1
  118. package/lib/use-lunatic/commons/calculated-variables.js +0 -104
  119. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +0 -233
  120. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.spec.js +0 -155
  121. package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +0 -63
  122. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +0 -149
  123. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.spec.js +0 -130
  124. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +0 -90
  125. package/lib/use-lunatic/commons/execute-expression/execute-expression.spec.js +0 -38
  126. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +0 -40
  127. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.spec.js +0 -31
  128. package/lib/use-lunatic/commons/execute-expression/index.js +0 -13
  129. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +0 -174
  130. package/lib/use-lunatic/commons/get-component-value/index.js +0 -13
  131. package/lib/use-lunatic/commons/get-data.js +0 -80
  132. package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +0 -792
  133. package/lib/use-lunatic/reducer/reduce-handle-change/index.js +0 -13
  134. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +0 -72
  135. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.js +0 -46
  136. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +0 -115
  137. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +0 -89
  138. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +0 -88
  139. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +0 -110
  140. package/lib/use-lunatic/reducer/reduce-on-init.spec.js +0 -17
  141. package/lib/utils/vtl/dataset-builder.js +0 -27
  142. package/lib/utils/vtl/index.js +0 -13
  143. /package/lib/src/use-lunatic/commons/{execute-expression/create-refresh-calculated.spec.d.ts → variables/lunatic-variables-store.spec.d.ts} +0 -0
  144. /package/lib/src/{use-lunatic/commons/execute-expression/execute-expression.spec.d.ts → utils/array.spec.d.ts} +0 -0
@@ -1,792 +0,0 @@
1
- {
2
- "cleaning": {
3
- "PRENOMREP": {
4
- "NBF": "false"
5
- },
6
- "VITICI": {
7
- "NBF": "(VITICI =\"1\")",
8
- "NBS_VIE": "(VITICI =\"1\") and (nvl(NBS,0) > 1)",
9
- "NBF_VIE": "(VITICI =\"1\") and (nvl(NBF,0) > 1)",
10
- "SIMPLEPOUR": "(VITICI =\"1\")",
11
- "NBS": "(VITICI =\"1\")"
12
- },
13
- "NBF": {
14
- "NBF_VIE": "(VITICI =\"1\") and (nvl(NBF,0) > 1)"
15
- },
16
- "NBS": {
17
- "NBS_VIE": "(VITICI =\"1\") and (nvl(NBS,0) > 1)"
18
- }
19
- },
20
- "variables": [
21
- {
22
- "variableType": "COLLECTED",
23
- "values": {
24
- "COLLECTED": null,
25
- "EDITED": null,
26
- "INPUTED": null,
27
- "FORCED": null,
28
- "PREVIOUS": null
29
- },
30
- "name": "COMMENT_QE"
31
- },
32
- {
33
- "variableType": "COLLECTED",
34
- "values": {
35
- "COLLECTED": [null],
36
- "EDITED": [null],
37
- "INPUTED": [null],
38
- "FORCED": [null],
39
- "PREVIOUS": [null]
40
- },
41
- "name": "PRENOMREP"
42
- },
43
- {
44
- "variableType": "COLLECTED",
45
- "values": {
46
- "COLLECTED": [null],
47
- "EDITED": [null],
48
- "INPUTED": [null],
49
- "FORCED": [null],
50
- "PREVIOUS": [null]
51
- },
52
- "name": "VITICI"
53
- },
54
- {
55
- "variableType": "COLLECTED",
56
- "values": {
57
- "COLLECTED": [null],
58
- "EDITED": [null],
59
- "INPUTED": [null],
60
- "FORCED": [null],
61
- "PREVIOUS": [null]
62
- },
63
- "name": "NBF"
64
- },
65
- {
66
- "variableType": "COLLECTED",
67
- "values": {
68
- "COLLECTED": [null],
69
- "EDITED": [null],
70
- "INPUTED": [null],
71
- "FORCED": [null],
72
- "PREVIOUS": [null]
73
- },
74
- "name": "NBF_VIE"
75
- },
76
- {
77
- "variableType": "COLLECTED",
78
- "values": {
79
- "COLLECTED": [null],
80
- "EDITED": [null],
81
- "INPUTED": [null],
82
- "FORCED": [null],
83
- "PREVIOUS": [null]
84
- },
85
- "name": "NBS"
86
- },
87
- {
88
- "variableType": "COLLECTED",
89
- "values": {
90
- "COLLECTED": [null],
91
- "EDITED": [null],
92
- "INPUTED": [null],
93
- "FORCED": [null],
94
- "PREVIOUS": [null]
95
- },
96
- "name": "NBS_VIE"
97
- },
98
- {
99
- "variableType": "COLLECTED",
100
- "values": {
101
- "COLLECTED": [null],
102
- "EDITED": [null],
103
- "INPUTED": [null],
104
- "FORCED": [null],
105
- "PREVIOUS": [null]
106
- },
107
- "name": "SIMPLEPOUR"
108
- },
109
- {
110
- "variableType": "CALCULATED",
111
- "expression": {
112
- "type": "VTL",
113
- "value": "true"
114
- },
115
- "name": "FILTER_RESULT_PRENOMREP",
116
- "inFilter": "false",
117
- "shapeFrom": "PRENOMREP"
118
- },
119
- {
120
- "variableType": "CALCULATED",
121
- "expression": {
122
- "type": "VTL",
123
- "value": "true"
124
- },
125
- "name": "FILTER_RESULT_VITICI",
126
- "inFilter": "false",
127
- "shapeFrom": "VITICI"
128
- },
129
- {
130
- "variableType": "CALCULATED",
131
- "bindingDependencies": ["VITICI"],
132
- "expression": {
133
- "type": "VTL",
134
- "value": "(VITICI =\"1\")"
135
- },
136
- "name": "FILTER_RESULT_NBF",
137
- "inFilter": "false",
138
- "shapeFrom": "VITICI"
139
- },
140
- {
141
- "variableType": "CALCULATED",
142
- "bindingDependencies": ["VITICI", "NBF"],
143
- "expression": {
144
- "type": "VTL",
145
- "value": "(VITICI =\"1\") and (nvl(NBF,0) > 1)"
146
- },
147
- "name": "FILTER_RESULT_NBF_VIE",
148
- "inFilter": "false",
149
- "shapeFrom": "VITICI"
150
- },
151
- {
152
- "variableType": "CALCULATED",
153
- "bindingDependencies": ["VITICI"],
154
- "expression": {
155
- "type": "VTL",
156
- "value": "(VITICI =\"1\")"
157
- },
158
- "name": "FILTER_RESULT_NBS",
159
- "inFilter": "false",
160
- "shapeFrom": "VITICI"
161
- },
162
- {
163
- "variableType": "CALCULATED",
164
- "bindingDependencies": ["VITICI", "NBS"],
165
- "expression": {
166
- "type": "VTL",
167
- "value": "(VITICI =\"1\") and (nvl(NBS,0) > 1)"
168
- },
169
- "name": "FILTER_RESULT_NBS_VIE",
170
- "inFilter": "false",
171
- "shapeFrom": "VITICI"
172
- },
173
- {
174
- "variableType": "CALCULATED",
175
- "bindingDependencies": ["VITICI"],
176
- "expression": {
177
- "type": "VTL",
178
- "value": "(VITICI =\"1\")"
179
- },
180
- "name": "FILTER_RESULT_SIMPLEPOUR",
181
- "inFilter": "false",
182
- "shapeFrom": "VITICI"
183
- }
184
- ],
185
- "components": [
186
- {
187
- "paginatedLoop": false,
188
- "componentType": "Loop",
189
- "components": [
190
- {
191
- "componentType": "Sequence",
192
- "hierarchy": {
193
- "sequence": {
194
- "id": "ldnda0vb",
195
- "page": "1",
196
- "label": {
197
- "type": "VTL|MD",
198
- "value": "\"I - \" || \"REPONDANT\""
199
- }
200
- }
201
- },
202
- "conditionFilter": {
203
- "type": "VTL",
204
- "value": "true"
205
- },
206
- "id": "ldnda0vb",
207
- "page": "1",
208
- "label": {
209
- "type": "VTL|MD",
210
- "value": "\"I - \" || \"REPONDANT\""
211
- }
212
- },
213
- {
214
- "componentType": "Input",
215
- "bindingDependencies": ["PRENOMREP"],
216
- "response": {
217
- "name": "PRENOMREP"
218
- },
219
- "hierarchy": {
220
- "sequence": {
221
- "id": "ldnda0vb",
222
- "page": "1",
223
- "label": {
224
- "type": "VTL|MD",
225
- "value": "\"I - \" || \"REPONDANT\""
226
- }
227
- }
228
- },
229
- "conditionFilter": {
230
- "type": "VTL",
231
- "value": "true"
232
- },
233
- "id": "ldndn8fx",
234
- "page": "1",
235
- "label": {
236
- "type": "VTL|MD",
237
- "value": "\"➡ 1. \" || \"Prenom des enquêtés\""
238
- },
239
- "mandatory": false,
240
- "maxLength": 249
241
- }
242
- ],
243
- "bindingDependencies": ["PRENOMREP"],
244
- "depth": 1,
245
- "conditionFilter": {
246
- "type": "VTL",
247
- "value": "true"
248
- },
249
- "id": "ldndipy6",
250
- "page": "1",
251
- "lines": {
252
- "min": {
253
- "type": "VTL",
254
- "value": "2"
255
- },
256
- "max": {
257
- "type": "VTL",
258
- "value": "2"
259
- }
260
- }
261
- },
262
- {
263
- "paginatedLoop": true,
264
- "componentType": "Loop",
265
- "loopDependencies": ["PRENOMREP"],
266
- "components": [
267
- {
268
- "componentType": "Sequence",
269
- "bindingDependencies": ["PRENOMREP"],
270
- "hierarchy": {
271
- "sequence": {
272
- "id": "ldndgj7b",
273
- "page": "2.1",
274
- "label": {
275
- "type": "VTL|MD",
276
- "value": "\"II - \" || \"Présence des personnes\""
277
- }
278
- }
279
- },
280
- "conditionFilter": {
281
- "type": "VTL",
282
- "value": "true"
283
- },
284
- "id": "ldndgj7b",
285
- "page": "2.1",
286
- "label": {
287
- "type": "VTL|MD",
288
- "value": "\"II - \" || \"Présence des personnes\""
289
- }
290
- },
291
- {
292
- "componentType": "CheckboxOne",
293
- "bindingDependencies": ["PRENOMREP", "VITICI"],
294
- "response": {
295
- "name": "VITICI"
296
- },
297
- "hierarchy": {
298
- "sequence": {
299
- "id": "ldndgj7b",
300
- "page": "2.1",
301
- "label": {
302
- "type": "VTL|MD",
303
- "value": "\"II - \" || \"Présence des personnes\""
304
- }
305
- }
306
- },
307
- "options": [
308
- {
309
- "label": {
310
- "type": "VTL|MD",
311
- "value": "oui"
312
- },
313
- "value": "1"
314
- },
315
- {
316
- "label": {
317
- "type": "VTL|MD",
318
- "value": "non"
319
- },
320
- "value": "2"
321
- }
322
- ],
323
- "conditionFilter": {
324
- "type": "VTL",
325
- "value": "true"
326
- },
327
- "id": "ldndh7fb",
328
- "page": "2.2",
329
- "label": {
330
- "type": "VTL|MD",
331
- "value": "\"➡ 2. \" || \"Est-ce que \" || PRENOMREP || \"vit ici ?\""
332
- },
333
- "mandatory": false
334
- },
335
- {
336
- "componentType": "Sequence",
337
- "bindingDependencies": ["PRENOMREP"],
338
- "hierarchy": {
339
- "sequence": {
340
- "id": "ldndnqr7",
341
- "page": "2.3",
342
- "label": {
343
- "type": "VTL|MD",
344
- "value": "\"III - \" || \"Infos\""
345
- }
346
- }
347
- },
348
- "conditionFilter": {
349
- "bindingDependencies": ["VITICI"],
350
- "type": "VTL",
351
- "value": "(VITICI =\"1\")"
352
- },
353
- "id": "ldndnqr7",
354
- "page": "2.3",
355
- "label": {
356
- "type": "VTL|MD",
357
- "value": "\"III - \" || \"Infos\""
358
- }
359
- },
360
- {
361
- "componentType": "InputNumber",
362
- "controls": [
363
- {
364
- "criticality": "ERROR",
365
- "errorMessage": {
366
- "type": "VTL|MD",
367
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
368
- },
369
- "typeOfControl": "FORMAT",
370
- "control": {
371
- "type": "VTL",
372
- "value": "not(not(isnull(NBF)) and (0>NBF or 10<NBF))"
373
- },
374
- "id": "ldndqtym-format-borne-inf-sup"
375
- },
376
- {
377
- "criticality": "ERROR",
378
- "errorMessage": {
379
- "type": "VTL|MD",
380
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
381
- },
382
- "typeOfControl": "FORMAT",
383
- "control": {
384
- "type": "VTL",
385
- "value": "not(not(isnull(NBF)) and round(NBF,0)<>NBF)"
386
- },
387
- "id": "ldndqtym-format-decimal"
388
- }
389
- ],
390
- "max": 10,
391
- "hierarchy": {
392
- "sequence": {
393
- "id": "ldndnqr7",
394
- "page": "2.3",
395
- "label": {
396
- "type": "VTL|MD",
397
- "value": "\"III - \" || \"Infos\""
398
- }
399
- }
400
- },
401
- "conditionFilter": {
402
- "bindingDependencies": ["VITICI"],
403
- "type": "VTL",
404
- "value": "(VITICI =\"1\")"
405
- },
406
- "label": {
407
- "type": "VTL|MD",
408
- "value": "\"➡ 3. \" || \"Combien de freres de 0 à 10 ?\""
409
- },
410
- "mandatory": false,
411
- "bindingDependencies": ["NBF", "PRENOMREP"],
412
- "min": 0,
413
- "response": {
414
- "name": "NBF"
415
- },
416
- "decimals": 0,
417
- "id": "ldndqtym",
418
- "page": "2.4"
419
- },
420
- {
421
- "componentType": "InputNumber",
422
- "controls": [
423
- {
424
- "criticality": "ERROR",
425
- "errorMessage": {
426
- "type": "VTL|MD",
427
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
428
- },
429
- "typeOfControl": "FORMAT",
430
- "control": {
431
- "type": "VTL",
432
- "value": "not(not(isnull(NBF_VIE)) and (0>NBF_VIE or 10<NBF_VIE))"
433
- },
434
- "id": "ldndmds9-format-borne-inf-sup"
435
- },
436
- {
437
- "criticality": "ERROR",
438
- "errorMessage": {
439
- "type": "VTL|MD",
440
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
441
- },
442
- "typeOfControl": "FORMAT",
443
- "control": {
444
- "type": "VTL",
445
- "value": "not(not(isnull(NBF_VIE)) and round(NBF_VIE,0)<>NBF_VIE)"
446
- },
447
- "id": "ldndmds9-format-decimal"
448
- }
449
- ],
450
- "max": 10,
451
- "hierarchy": {
452
- "sequence": {
453
- "id": "ldndnqr7",
454
- "page": "2.3",
455
- "label": {
456
- "type": "VTL|MD",
457
- "value": "\"III - \" || \"Infos\""
458
- }
459
- }
460
- },
461
- "conditionFilter": {
462
- "bindingDependencies": ["VITICI", "NBF"],
463
- "type": "VTL",
464
- "value": "(VITICI =\"1\") and (nvl(NBF,0) > 1)"
465
- },
466
- "label": {
467
- "type": "VTL|MD",
468
- "value": "\"➡ 4. \" || \"Combien de freres en vie ?\""
469
- },
470
- "mandatory": false,
471
- "bindingDependencies": ["NBF_VIE", "PRENOMREP"],
472
- "min": 0,
473
- "response": {
474
- "name": "NBF_VIE"
475
- },
476
- "decimals": 0,
477
- "id": "ldndmds9",
478
- "page": "2.5"
479
- },
480
- {
481
- "componentType": "InputNumber",
482
- "controls": [
483
- {
484
- "criticality": "ERROR",
485
- "errorMessage": {
486
- "type": "VTL|MD",
487
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
488
- },
489
- "typeOfControl": "FORMAT",
490
- "control": {
491
- "type": "VTL",
492
- "value": "not(not(isnull(NBS)) and (0>NBS or 10<NBS))"
493
- },
494
- "id": "ldndgju5-format-borne-inf-sup"
495
- },
496
- {
497
- "criticality": "ERROR",
498
- "errorMessage": {
499
- "type": "VTL|MD",
500
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
501
- },
502
- "typeOfControl": "FORMAT",
503
- "control": {
504
- "type": "VTL",
505
- "value": "not(not(isnull(NBS)) and round(NBS,0)<>NBS)"
506
- },
507
- "id": "ldndgju5-format-decimal"
508
- }
509
- ],
510
- "max": 10,
511
- "hierarchy": {
512
- "sequence": {
513
- "id": "ldndnqr7",
514
- "page": "2.3",
515
- "label": {
516
- "type": "VTL|MD",
517
- "value": "\"III - \" || \"Infos\""
518
- }
519
- }
520
- },
521
- "conditionFilter": {
522
- "bindingDependencies": ["VITICI"],
523
- "type": "VTL",
524
- "value": "(VITICI =\"1\")"
525
- },
526
- "label": {
527
- "type": "VTL|MD",
528
- "value": "\"➡ 5. \" || \"Combien de soeurs de 0 à 10 ?\""
529
- },
530
- "mandatory": false,
531
- "bindingDependencies": ["NBS", "PRENOMREP"],
532
- "min": 0,
533
- "response": {
534
- "name": "NBS"
535
- },
536
- "decimals": 0,
537
- "id": "ldndgju5",
538
- "page": "2.6"
539
- },
540
- {
541
- "componentType": "InputNumber",
542
- "controls": [
543
- {
544
- "criticality": "ERROR",
545
- "errorMessage": {
546
- "type": "VTL|MD",
547
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
548
- },
549
- "typeOfControl": "FORMAT",
550
- "control": {
551
- "type": "VTL",
552
- "value": "not(not(isnull(NBS_VIE)) and (0>NBS_VIE or 10<NBS_VIE))"
553
- },
554
- "id": "ldndbd3b-format-borne-inf-sup"
555
- },
556
- {
557
- "criticality": "ERROR",
558
- "errorMessage": {
559
- "type": "VTL|MD",
560
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
561
- },
562
- "typeOfControl": "FORMAT",
563
- "control": {
564
- "type": "VTL",
565
- "value": "not(not(isnull(NBS_VIE)) and round(NBS_VIE,0)<>NBS_VIE)"
566
- },
567
- "id": "ldndbd3b-format-decimal"
568
- }
569
- ],
570
- "max": 10,
571
- "hierarchy": {
572
- "sequence": {
573
- "id": "ldndnqr7",
574
- "page": "2.3",
575
- "label": {
576
- "type": "VTL|MD",
577
- "value": "\"III - \" || \"Infos\""
578
- }
579
- }
580
- },
581
- "conditionFilter": {
582
- "bindingDependencies": ["VITICI", "NBS"],
583
- "type": "VTL",
584
- "value": "(VITICI =\"1\") and (nvl(NBS,0) > 1)"
585
- },
586
- "label": {
587
- "type": "VTL|MD",
588
- "value": "\"➡ 6. \" || \"Combien de soeurs en vie ?\""
589
- },
590
- "mandatory": false,
591
- "bindingDependencies": ["NBS_VIE", "PRENOMREP"],
592
- "min": 0,
593
- "response": {
594
- "name": "NBS_VIE"
595
- },
596
- "decimals": 0,
597
- "id": "ldndbd3b",
598
- "page": "2.7"
599
- },
600
- {
601
- "componentType": "Sequence",
602
- "bindingDependencies": ["PRENOMREP"],
603
- "hierarchy": {
604
- "sequence": {
605
- "id": "ldnddl5z",
606
- "page": "2.8",
607
- "label": {
608
- "type": "VTL|MD",
609
- "value": "\"IV - \" || \"Autre\""
610
- }
611
- }
612
- },
613
- "conditionFilter": {
614
- "bindingDependencies": ["VITICI"],
615
- "type": "VTL",
616
- "value": "(VITICI =\"1\")"
617
- },
618
- "id": "ldnddl5z",
619
- "page": "2.8",
620
- "label": {
621
- "type": "VTL|MD",
622
- "value": "\"IV - \" || \"Autre\""
623
- }
624
- },
625
- {
626
- "componentType": "Input",
627
- "bindingDependencies": ["SIMPLEPOUR", "PRENOMREP"],
628
- "response": {
629
- "name": "SIMPLEPOUR"
630
- },
631
- "hierarchy": {
632
- "sequence": {
633
- "id": "ldnddl5z",
634
- "page": "2.8",
635
- "label": {
636
- "type": "VTL|MD",
637
- "value": "\"IV - \" || \"Autre\""
638
- }
639
- }
640
- },
641
- "conditionFilter": {
642
- "bindingDependencies": ["VITICI"],
643
- "type": "VTL",
644
- "value": "(VITICI =\"1\")"
645
- },
646
- "id": "ldndb6ao",
647
- "page": "2.9",
648
- "label": {
649
- "type": "VTL|MD",
650
- "value": "\"➡ 7. \" || \"Simple pour simuler Famille\""
651
- },
652
- "mandatory": false,
653
- "maxLength": 249
654
- },
655
- {
656
- "componentType": "Sequence",
657
- "bindingDependencies": ["PRENOMREP"],
658
- "hierarchy": {
659
- "sequence": {
660
- "id": "ldndohgt",
661
- "page": "2.10",
662
- "label": {
663
- "type": "VTL|MD",
664
- "value": "\"V - \" || \"MERCI\""
665
- }
666
- }
667
- },
668
- "conditionFilter": {
669
- "bindingDependencies": ["VITICI"],
670
- "type": "VTL",
671
- "value": "(VITICI =\"1\")"
672
- },
673
- "id": "ldndohgt",
674
- "page": "2.10",
675
- "label": {
676
- "type": "VTL|MD",
677
- "value": "\"V - \" || \"MERCI\""
678
- }
679
- }
680
- ],
681
- "bindingDependencies": [
682
- "PRENOMREP",
683
- "VITICI",
684
- "NBF",
685
- "NBF_VIE",
686
- "NBS",
687
- "NBS_VIE",
688
- "SIMPLEPOUR"
689
- ],
690
- "depth": 1,
691
- "conditionFilter": {
692
- "type": "VTL",
693
- "value": "true"
694
- },
695
- "id": "ldndohv2",
696
- "page": "2",
697
- "maxPage": "10",
698
- "iterations": {
699
- "type": "VTL",
700
- "value": "count(PRENOMREP)"
701
- }
702
- },
703
- {
704
- "componentType": "Sequence",
705
- "hierarchy": {
706
- "sequence": {
707
- "id": "ldndhokp",
708
- "page": "3",
709
- "label": {
710
- "type": "VTL|MD",
711
- "value": "\"VI - \" || \"FIN\""
712
- }
713
- }
714
- },
715
- "conditionFilter": {
716
- "type": "VTL",
717
- "value": "true"
718
- },
719
- "id": "ldndhokp",
720
- "page": "3",
721
- "label": {
722
- "type": "VTL|MD",
723
- "value": "\"VI - \" || \"FIN\""
724
- }
725
- },
726
- {
727
- "componentType": "Sequence",
728
- "hierarchy": {
729
- "sequence": {
730
- "id": "COMMENT-SEQ",
731
- "page": "4",
732
- "label": {
733
- "type": "VTL|MD",
734
- "value": "\"Commentaire\""
735
- }
736
- }
737
- },
738
- "conditionFilter": {
739
- "type": "VTL",
740
- "value": "true"
741
- },
742
- "id": "COMMENT-SEQ",
743
- "page": "4",
744
- "label": {
745
- "type": "VTL|MD",
746
- "value": "\"Commentaire\""
747
- }
748
- },
749
- {
750
- "componentType": "Textarea",
751
- "bindingDependencies": ["COMMENT_QE"],
752
- "response": {
753
- "name": "COMMENT_QE"
754
- },
755
- "hierarchy": {
756
- "sequence": {
757
- "id": "COMMENT-SEQ",
758
- "page": "4",
759
- "label": {
760
- "type": "VTL|MD",
761
- "value": "\"Commentaire\""
762
- }
763
- }
764
- },
765
- "conditionFilter": {
766
- "type": "VTL",
767
- "value": "true"
768
- },
769
- "id": "COMMENT-QUESTION",
770
- "page": "5",
771
- "label": {
772
- "type": "VTL|MD",
773
- "value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
774
- },
775
- "mandatory": false,
776
- "maxLength": 2000
777
- }
778
- ],
779
- "pagination": "question",
780
- "resizing": {},
781
- "label": {
782
- "type": "VTL|MD",
783
- "value": "Bug - issue 399 - bug famille - filtre sur VITICI et vidage de questions filtrées"
784
- },
785
- "lunaticModelVersion": "2.3.1",
786
- "modele": "TESTBUGFAM",
787
- "enoCoreVersion": "2.4.0",
788
- "generatingDate": "15-03-2023 13:26:11",
789
- "missing": false,
790
- "id": "ldndehwy",
791
- "maxPage": "5"
792
- }