@inseefr/lunatic 2.6.3-rc.1 → 2.6.3

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 (257) hide show
  1. package/README.md +49 -3
  2. package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +3 -3
  3. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +7 -1
  4. package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -2
  5. package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +4 -2
  6. package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +3 -3
  7. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +2 -1
  8. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +2 -1
  9. package/lib/components/checkbox/commons/checkbox-option.js +3 -1
  10. package/lib/components/commons/components/combo-box/combo-box-container.js +1 -2
  11. package/lib/components/commons/components/combo-box/combo-box.js +2 -2
  12. package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +3 -1
  13. package/lib/components/commons/components/combo-box/selection/input.js +3 -1
  14. package/lib/components/commons/components/combo-box/selection/selection.js +3 -1
  15. package/lib/components/commons/components/errors/errors.js +12 -10
  16. package/lib/components/commons/components/errors/errors.spec.js +6 -6
  17. package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +2 -0
  18. package/lib/components/component-set/html/component-set.js +2 -2
  19. package/lib/components/datepicker/html/__snapshots__/datepicker.spec.tsx.snap +2 -0
  20. package/lib/components/datepicker/html/datepicker-input.js +4 -2
  21. package/lib/components/datepicker/html/datepicker.js +3 -3
  22. package/lib/components/datepicker/lunatic-datepicker.js +2 -1
  23. package/lib/components/dropdown/lunatic-dropdown.js +2 -1
  24. package/lib/components/index.js +4 -4
  25. package/lib/components/input/html/__snapshots__/input.spec.tsx.snap +2 -0
  26. package/lib/components/input/html/input.js +3 -3
  27. package/lib/components/input/lunatic-input.js +2 -1
  28. package/lib/components/input-number/html/__snapshots__/input-number.spec.tsx.snap +2 -2
  29. package/lib/components/input-number/html/input-number-thousand.js +4 -17
  30. package/lib/components/input-number/html/input-number.js +3 -5
  31. package/lib/components/input-number/lunatic-input-number.js +2 -3
  32. package/lib/components/loop/block-for-loop.js +10 -6
  33. package/lib/components/loop/roster-for-loop/roster-for-loop.js +35 -27
  34. package/lib/components/loop/utils/get-initial-nb-rows.js +17 -0
  35. package/lib/components/lunatic-components.js +7 -27
  36. package/lib/components/pairwise-links/index.js +13 -0
  37. package/lib/components/pairwise-links/orchestrator.js +71 -0
  38. package/lib/components/pairwise-links/pairwise-links.js +30 -27
  39. package/lib/components/pairwise-links/row.js +74 -0
  40. package/lib/components/radio/html/radio-group-content.js +4 -2
  41. package/lib/components/radio/html/radio-group.js +3 -3
  42. package/lib/components/radio/html/radio-option.js +3 -1
  43. package/lib/components/radio/lunatic-radio-group.js +2 -1
  44. package/lib/components/suggester/find-best-label/find-best-label.js +6 -6
  45. package/lib/components/suggester/idb-suggester/idb-suggester.js +4 -3
  46. package/lib/components/suggester/lunatic-suggester.js +7 -4
  47. package/lib/components/suggester/searching/create-searching.js +20 -39
  48. package/lib/components/switch/html/switch.js +2 -2
  49. package/lib/components/switch/lunatic-switch.js +2 -1
  50. package/lib/components/table/cell.js +89 -0
  51. package/lib/components/table/{table-header.js → header.js} +5 -3
  52. package/lib/components/table/index.js +13 -0
  53. package/lib/components/table/lunatic-table.js +15 -24
  54. package/lib/components/table/row.js +40 -0
  55. package/lib/components/table/table-orchestrator.js +35 -0
  56. package/lib/components/textarea/html/__snapshots__/textarea.spec.tsx.snap +2 -0
  57. package/lib/components/textarea/html/textarea.js +6 -4
  58. package/lib/components/textarea/lunatic-textarea.js +6 -3
  59. package/lib/hooks/use-auto-focus.js +26 -0
  60. package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +1 -1
  61. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +2 -1
  62. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +1 -1
  63. package/lib/src/components/checkbox/commons/checkbox-option.d.ts +1 -0
  64. package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +2 -2
  65. package/lib/src/components/commons/components/combo-box/combo-box.d.ts +2 -2
  66. package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +4 -6
  67. package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +1 -0
  68. package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -0
  69. package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +2 -1
  70. package/lib/src/components/commons/components/errors/errors.d.ts +6 -3
  71. package/lib/src/components/datepicker/html/datepicker-input.d.ts +2 -1
  72. package/lib/src/components/datepicker/html/datepicker.d.ts +1 -1
  73. package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
  74. package/lib/src/components/dropdown/html/dropdown.d.ts +3 -1
  75. package/lib/src/components/index.d.ts +2 -2
  76. package/lib/src/components/input/html/input.d.ts +2 -2
  77. package/lib/src/components/input-number/html/input-number-thousand.d.ts +2 -2
  78. package/lib/src/components/input-number/html/input-number.d.ts +2 -3
  79. package/lib/src/components/loop/block-for-loop.d.ts +4 -3
  80. package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +4 -3
  81. package/lib/src/components/loop/utils/get-initial-nb-rows.d.ts +4 -0
  82. package/lib/src/components/lunatic-components.d.ts +3 -5
  83. package/lib/src/components/pairwise-links/index.d.ts +1 -0
  84. package/lib/src/components/pairwise-links/orchestrator.d.ts +6 -0
  85. package/lib/src/components/pairwise-links/pairwise-links.d.ts +2 -1
  86. package/lib/src/components/pairwise-links/row.d.ts +7 -0
  87. package/lib/src/components/radio/html/radio-group-content.d.ts +2 -1
  88. package/lib/src/components/radio/html/radio-group.d.ts +1 -1
  89. package/lib/src/components/radio/html/radio-option.d.ts +1 -0
  90. package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +1 -1
  91. package/lib/src/components/suggester/html/suggester.d.ts +1 -1
  92. package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +5 -2
  93. package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -1
  94. package/lib/src/components/suggester/searching/create-searching.d.ts +1 -1
  95. package/lib/src/components/switch/html/switch.d.ts +1 -1
  96. package/lib/src/components/table/cell.d.ts +19 -0
  97. package/lib/src/components/table/{table-header.d.ts → header.d.ts} +2 -2
  98. package/lib/src/components/table/index.d.ts +1 -0
  99. package/lib/src/components/table/lunatic-table.d.ts +1 -1
  100. package/lib/src/components/table/row.d.ts +18 -0
  101. package/lib/src/components/table/table-orchestrator.d.ts +4 -0
  102. package/lib/src/components/textarea/html/textarea.d.ts +3 -2
  103. package/lib/src/components/type.d.ts +9 -7
  104. package/lib/src/hooks/use-auto-focus.d.ts +6 -0
  105. package/lib/src/use-lunatic/actions.d.ts +19 -3
  106. package/lib/src/use-lunatic/commons/calculated-variables.d.ts +8 -0
  107. package/lib/src/use-lunatic/commons/compile-controls.d.ts +2 -3
  108. package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +9 -0
  109. package/lib/src/use-lunatic/commons/execute-expression/create-memoizer.d.ts +8 -0
  110. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +24 -0
  111. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +11 -0
  112. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.d.ts +7 -0
  113. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.spec.d.ts +1 -0
  114. package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +6 -0
  115. package/lib/src/use-lunatic/commons/execute-expression/index.d.ts +1 -0
  116. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +418 -0
  117. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +3 -2
  118. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +0 -6
  119. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +142 -107
  120. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +89 -53
  121. package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +0 -1
  122. package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +6 -0
  123. package/lib/src/use-lunatic/commons/get-component-value/index.d.ts +1 -0
  124. package/lib/src/use-lunatic/commons/get-data.d.ts +26 -0
  125. package/lib/src/use-lunatic/commons/index.d.ts +3 -0
  126. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +9 -10
  127. package/lib/src/use-lunatic/reducer/reduce-handle-change/index.d.ts +1 -0
  128. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +7 -0
  129. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.d.ts +1 -0
  130. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +4 -0
  131. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +15 -0
  132. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +7 -0
  133. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +4 -0
  134. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +14 -0
  135. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +9 -0
  136. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +12 -1
  137. package/lib/src/use-lunatic/reducer/reduce-on-init.spec.d.ts +1 -0
  138. package/lib/src/use-lunatic/type-source.d.ts +21 -7
  139. package/lib/src/use-lunatic/type.d.ts +12 -13
  140. package/lib/src/use-lunatic/use-lunatic.d.ts +62 -36
  141. package/lib/src/use-lunatic/use-suggesters.d.ts +2 -1
  142. package/lib/src/utils/array.d.ts +1 -6
  143. package/lib/src/utils/number.d.ts +0 -4
  144. package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +1 -1
  145. package/lib/src/utils/suggester-workers/worker-path.d.ts +6 -0
  146. package/lib/src/utils/vtl/dataset-builder.d.ts +5 -0
  147. package/lib/src/utils/vtl/index.d.ts +1 -0
  148. package/lib/stories/behaviour/cleaning/source.json +151 -0
  149. package/lib/stories/behaviour/cleaning/test.stories.js +84 -0
  150. package/lib/stories/{questionnaires-test → behaviour}/controls/controls.stories.js +5 -5
  151. package/lib/stories/{questionnaires-test → behaviour/others}/test.stories.js +7 -7
  152. package/lib/stories/{paste-questionnaire → behaviour/paste}/test.stories.js +3 -3
  153. package/lib/stories/{resizing-questionnaire → behaviour/resizing}/test.stories.js +3 -3
  154. package/lib/use-lunatic/actions.js +3 -3
  155. package/lib/use-lunatic/commons/calculated-variables.js +104 -0
  156. package/lib/use-lunatic/commons/compile-controls.js +5 -3
  157. package/lib/use-lunatic/commons/execute-condition-filter.js +9 -1
  158. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +233 -0
  159. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.spec.js +155 -0
  160. package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +63 -0
  161. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +149 -0
  162. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.spec.js +130 -0
  163. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +90 -0
  164. package/lib/use-lunatic/commons/execute-expression/execute-expression.spec.js +38 -0
  165. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +40 -0
  166. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.spec.js +31 -0
  167. package/lib/use-lunatic/commons/{fill-components/fill-iterations.js → execute-expression/get-safety-expression.js} +20 -30
  168. package/lib/use-lunatic/commons/execute-expression/index.js +13 -0
  169. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +3 -2
  170. package/lib/use-lunatic/{reducer/reduce-handle-change.js → commons/fill-components/fill-component-required.js} +8 -14
  171. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +7 -21
  172. package/lib/use-lunatic/commons/fill-components/fill-components.js +4 -5
  173. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +2 -0
  174. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +13 -6
  175. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +5 -58
  176. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +0 -1
  177. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +174 -0
  178. package/lib/use-lunatic/commons/get-component-value/index.js +13 -0
  179. package/lib/use-lunatic/commons/get-data.js +80 -0
  180. package/lib/use-lunatic/commons/index.js +21 -0
  181. package/lib/use-lunatic/initial-state.js +4 -6
  182. package/lib/use-lunatic/reducer/overview/overview-on-change.js +1 -1
  183. package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +792 -0
  184. package/lib/use-lunatic/reducer/reduce-handle-change/index.js +13 -0
  185. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +78 -0
  186. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.js +46 -0
  187. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +115 -0
  188. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +89 -0
  189. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +88 -0
  190. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +119 -0
  191. package/lib/use-lunatic/{commons/variables/get-questionnaire-data.js → reducer/reduce-handle-change/reduce-variables-array.js} +32 -53
  192. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +28 -0
  193. package/lib/use-lunatic/reducer/reduce-on-init.js +184 -90
  194. package/lib/use-lunatic/reducer/reduce-on-init.spec.js +17 -0
  195. package/lib/use-lunatic/reducer/reducer.js +2 -2
  196. package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +4 -2
  197. package/lib/use-lunatic/use-lunatic.js +29 -22
  198. package/lib/use-lunatic/use-lunatic.test.js +36 -133
  199. package/lib/use-lunatic/use-suggesters.js +4 -3
  200. package/lib/utils/array.js +6 -57
  201. package/lib/utils/get-component-value.js +9 -3
  202. package/lib/utils/number.js +1 -13
  203. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +4 -3
  204. package/lib/utils/suggester-workers/worker-path.js +29 -0
  205. package/lib/utils/vtl/dataset-builder.js +27 -0
  206. package/lib/utils/vtl/index.js +13 -0
  207. package/package.json +15 -10
  208. package/scripts/build/add-workers-to-public.js +44 -0
  209. package/scripts/build/workers-paths.js +44 -0
  210. package/workers-release/lunatic-append-worker-0.3.0-experimental.js +2 -0
  211. package/workers-release/lunatic-append-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
  212. package/workers-release/lunatic-label-worker-0.3.0-experimental.js +2 -0
  213. package/workers-release/lunatic-label-worker-0.3.0-experimental.js.LICENSE.txt +13 -0
  214. package/workers-release/lunatic-searching-worker-0.3.0-experimental.js +2 -0
  215. package/workers-release/lunatic-searching-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
  216. package/lib/hooks/use-track-changes.js +0 -50
  217. package/lib/src/hooks/use-track-changes.d.ts +0 -9
  218. package/lib/src/use-lunatic/commons/component.d.ts +0 -22
  219. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +0 -112
  220. package/lib/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +0 -7
  221. package/lib/src/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +0 -7
  222. package/lib/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +0 -7
  223. package/lib/src/use-lunatic/commons/variables/get-questionnaire-data.d.ts +0 -4
  224. package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +0 -77
  225. package/lib/src/use-lunatic/reducer/reduce-handle-change.d.ts +0 -6
  226. package/lib/src/utils/env.d.ts +0 -1
  227. package/lib/src/utils/store-tools/worker-path.d.ts +0 -1
  228. package/lib/src/utils/variables.d.ts +0 -5
  229. package/lib/src/utils/vtl.d.ts +0 -14
  230. package/lib/use-lunatic/commons/component.js +0 -22
  231. package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +0 -39
  232. package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +0 -47
  233. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +0 -78
  234. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +0 -330
  235. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +0 -216
  236. package/lib/utils/array.spec.js +0 -30
  237. package/lib/utils/env.js +0 -10
  238. package/lib/utils/store-tools/worker-path.js +0 -13
  239. package/lib/utils/suggester-workers/create-worker.js +0 -55
  240. package/lib/utils/variables.js +0 -37
  241. package/lib/utils/vtl.js +0 -100
  242. /package/lib/src/use-lunatic/commons/{variables/lunatic-variables-store.spec.d.ts → execute-expression/create-refresh-calculated.spec.d.ts} +0 -0
  243. /package/lib/src/{utils/array.spec.d.ts → use-lunatic/commons/execute-expression/execute-expression.spec.d.ts} +0 -0
  244. /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +0 -0
  245. /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +0 -0
  246. /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_Controles_BouclesLiees2_PasPageFin.json +0 -0
  247. /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_Controles_BouclesLiees_PasPageFin.json +0 -0
  248. /package/lib/stories/{questionnaires-test → behaviour}/controls/boucles-n.json +0 -0
  249. /package/lib/stories/{questionnaires-test → behaviour}/controls/controls-externes.json +0 -0
  250. /package/lib/stories/{questionnaires-test → behaviour}/controls/controls-externes.stories.js +0 -0
  251. /package/lib/stories/{questionnaires-test → behaviour/others}/V2_DeclarationsSimples.json +0 -0
  252. /package/lib/stories/{questionnaires-test → behaviour/others}/V2_MinMaxSum_Boucles.json +0 -0
  253. /package/lib/stories/{questionnaires-test → behaviour/others}/V2_QuestSimple_Boucles.json +0 -0
  254. /package/lib/stories/{questionnaires-test → behaviour/others}/V2_TCMRallyeGames.json +0 -0
  255. /package/lib/stories/{questionnaires-test → behaviour/others}/test-dylan.json +0 -0
  256. /package/lib/stories/{paste-questionnaire → behaviour/paste}/source.json +0 -0
  257. /package/lib/stories/{resizing-questionnaire → behaviour/resizing}/source.json +0 -0
@@ -0,0 +1,792 @@
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
+ }