@inseefr/lunatic 2.5.2 → 2.6.0-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 (432) hide show
  1. package/README.fr.md +186 -0
  2. package/README.md +111 -94
  3. package/lib/components/button/lunatic-button.js +10 -13
  4. package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -1
  5. package/lib/components/commons/components/combo-box/combo-box-content.js +1 -1
  6. package/lib/components/commons/components/combo-box/combo-box.js +93 -66
  7. package/lib/components/commons/components/combo-box/combo-box.stories.js +69 -8
  8. package/lib/components/commons/components/combo-box/panel/panel.js +0 -1
  9. package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +4 -1
  10. package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +2 -4
  11. package/lib/components/commons/components/combo-box/selection/combo-box-label-selection.js +5 -2
  12. package/lib/components/commons/components/combo-box/selection/label-selection.js +4 -2
  13. package/lib/components/commons/components/combo-box/selection/selection.js +2 -0
  14. package/lib/components/commons/components/fab/fab.js +0 -1
  15. package/lib/components/commons/components/fieldset.js +0 -1
  16. package/lib/components/commons/components/lunatic-component-with-label.js +1 -3
  17. package/lib/components/commons/components/md-label/md-label.js +5 -1
  18. package/lib/components/commons/components/md-label/md-label.spec.js +15 -0
  19. package/lib/components/commons/components/missing/missing.js +1 -3
  20. package/lib/components/commons/components/variable-status/variable-status.js +2 -3
  21. package/lib/components/commons/create-customizable-field.js +1 -0
  22. package/lib/components/commons/icons/closed-icon.js +0 -2
  23. package/lib/components/commons/icons/cross-icon.js +0 -2
  24. package/lib/components/commons/index.js +0 -7
  25. package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +124 -0
  26. package/lib/components/component-set/html/{legend/legend.js → component-set-legend.js} +4 -6
  27. package/lib/components/component-set/html/component-set-wrapper.js +16 -0
  28. package/lib/components/component-set/html/component-set.js +7 -8
  29. package/lib/components/component-set/html/component-set.spec.js +91 -0
  30. package/lib/components/component-set/lunatic-component-set.js +19 -9
  31. package/lib/components/datepicker/html/__snapshots__/datepicker.spec.tsx.snap +34 -0
  32. package/lib/components/datepicker/html/datepicker-input.js +0 -1
  33. package/lib/components/datepicker/html/datepicker.js +1 -4
  34. package/lib/components/datepicker/html/datepicker.spec.js +38 -0
  35. package/lib/components/datepicker/lunatic-datepicker.js +0 -1
  36. package/lib/components/dropdown/html/__snapshots__/dropdown.spec.tsx.snap +85 -0
  37. package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +3 -2
  38. package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +0 -2
  39. package/lib/components/dropdown/html/dropdown-writable/dropdown-writable.js +4 -5
  40. package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +1 -4
  41. package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +1 -3
  42. package/lib/components/dropdown/html/dropdown.js +4 -2
  43. package/lib/components/dropdown/html/dropdown.spec.js +48 -0
  44. package/lib/components/dropdown/lunatic-dropdown.js +5 -4
  45. package/lib/components/duration/getDurationFromValue.js +0 -1
  46. package/lib/components/filter-description/component.js +0 -2
  47. package/lib/components/index.js +6 -5
  48. package/lib/components/input/html/__snapshots__/input.spec.tsx.snap +34 -0
  49. package/lib/components/input/html/input.js +4 -5
  50. package/lib/components/input/html/input.spec.js +81 -0
  51. package/lib/components/input/lunatic-input.js +4 -2
  52. package/lib/components/input-number/html/__snapshots__/input-number.spec.tsx.snap +38 -90
  53. package/lib/components/input-number/html/input-number-thousand.js +2 -0
  54. package/lib/components/input-number/html/input-number.js +3 -0
  55. package/lib/components/input-number/html/input-number.spec.js +35 -19
  56. package/lib/components/input-number/lunatic-input-number.js +2 -1
  57. package/lib/components/loop/{block-for-loop/block-for-loop.js → block-for-loop.js} +39 -64
  58. package/lib/components/loop/{commons/handle-row-button.js → loop-button.js} +4 -7
  59. package/lib/components/loop/{roster-for-loop/header.js → loop-header.js} +4 -8
  60. package/lib/components/loop/loop.js +19 -65
  61. package/lib/components/loop/roster-for-loop/roster-for-loop.js +102 -83
  62. package/lib/components/loop/{commons/get-init-length.js → utils/get-initial-nb-rows.js} +6 -5
  63. package/lib/components/{loop/roster-for-loop/body.js → lunatic-components.js} +46 -37
  64. package/lib/components/modal/html/modal.js +45 -73
  65. package/lib/components/modal/html/modal.scss +25 -42
  66. package/lib/components/modal/lunatic-modal.js +33 -9
  67. package/lib/components/modal-controls/close-or-skip.js +0 -1
  68. package/lib/components/modal-controls/modal-controls.spec.js +5 -6
  69. package/lib/components/pairwise-links/orchestrator.js +1 -4
  70. package/lib/components/pairwise-links/row.js +1 -4
  71. package/lib/components/question-explication/html/question-explication.js +0 -1
  72. package/lib/components/radio/html/radio-group-content.js +4 -3
  73. package/lib/components/radio/html/radio-group.js +4 -2
  74. package/lib/components/radio/html/radio-option.js +7 -8
  75. package/lib/components/radio/lunatic-radio-group.js +4 -2
  76. package/lib/components/roundabout/components/roundabout-it-title.js +0 -2
  77. package/lib/components/roundabout/components/roundabout-label.js +0 -2
  78. package/lib/components/roundabout/lunatic-roundabout.js +1 -4
  79. package/lib/components/roundabout/roundabout.js +0 -1
  80. package/lib/components/suggester/html/notification.js +0 -1
  81. package/lib/components/suggester/html/suggester.js +3 -3
  82. package/lib/components/suggester/idb-suggester/check-store.js +3 -5
  83. package/lib/components/suggester/idb-suggester/idb-suggester.js +4 -5
  84. package/lib/components/suggester/idb-suggester/suggester-notification.js +2 -2
  85. package/lib/components/suggester/lunatic-suggester.js +3 -1
  86. package/lib/components/suggester-loader-widget/loader-row.js +1 -4
  87. package/lib/components/suggester-loader-widget/loader.js +1 -3
  88. package/lib/components/summary/html/summary-responses.js +13 -7
  89. package/lib/components/summary/lunatic-summary.js +8 -4
  90. package/lib/components/switch/html/switch.js +0 -1
  91. package/lib/components/table/cell.js +0 -2
  92. package/lib/components/table/header.js +0 -2
  93. package/lib/components/table/row.js +0 -1
  94. package/lib/components/textarea/html/__snapshots__/textarea.spec.tsx.snap +30 -0
  95. package/lib/components/textarea/html/textarea.js +5 -6
  96. package/lib/components/textarea/html/textarea.spec.js +38 -0
  97. package/lib/components/textarea/lunatic-textarea.js +4 -2
  98. package/lib/index.js +8 -0
  99. package/lib/src/components/button/lunatic-button.d.ts +5 -3
  100. package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +2 -2
  101. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -1
  102. package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +1 -1
  103. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +1 -1
  104. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +4 -4
  105. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +2 -2
  106. package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +1 -1
  107. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -1
  108. package/lib/src/components/checkbox/commons/checkbox-option.d.ts +2 -2
  109. package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +1 -1
  110. package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +1 -1
  111. package/lib/src/components/commons/components/combo-box/combo-box-content.d.ts +1 -1
  112. package/lib/src/components/commons/components/combo-box/combo-box.d.ts +6 -5
  113. package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +30 -2
  114. package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +1 -1
  115. package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +1 -1
  116. package/lib/src/components/commons/components/combo-box/panel/panel-container.d.ts +1 -1
  117. package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +2 -2
  118. package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +3 -2
  119. package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +2 -1
  120. package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -1
  121. package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +4 -3
  122. package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +1 -1
  123. package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +3 -2
  124. package/lib/src/components/commons/components/description.d.ts +1 -1
  125. package/lib/src/components/commons/components/dragger/dragger.d.ts +1 -1
  126. package/lib/src/components/commons/components/errors/errors.d.ts +1 -1
  127. package/lib/src/components/commons/components/fab/fab.d.ts +1 -1
  128. package/lib/src/components/commons/components/field-container/field-container.d.ts +1 -1
  129. package/lib/src/components/commons/components/fieldset.d.ts +3 -3
  130. package/lib/src/components/commons/components/html-table/table.d.ts +1 -1
  131. package/lib/src/components/commons/components/html-table/thead.d.ts +1 -1
  132. package/lib/src/components/commons/components/label/label.d.ts +1 -1
  133. package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +2 -2
  134. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +2 -2
  135. package/lib/src/components/commons/components/md-label/link.d.ts +1 -1
  136. package/lib/src/components/commons/components/md-label/md-label.spec.d.ts +1 -0
  137. package/lib/src/components/commons/components/missing/missing.d.ts +1 -1
  138. package/lib/src/components/commons/components/orchestrated-component.d.ts +2 -2
  139. package/lib/src/components/commons/components/variable-status/variable-status.d.ts +1 -1
  140. package/lib/src/components/commons/create-customizable-field.d.ts +1 -1
  141. package/lib/src/components/commons/icons/checkbox-checked-icon.d.ts +1 -1
  142. package/lib/src/components/commons/icons/checkbox-unchecked-icon.d.ts +1 -1
  143. package/lib/src/components/commons/icons/closed-icon.d.ts +1 -1
  144. package/lib/src/components/commons/icons/cross-icon.d.ts +1 -1
  145. package/lib/src/components/commons/icons/load-icon.d.ts +1 -1
  146. package/lib/src/components/commons/icons/lunatic-icon.d.ts +1 -1
  147. package/lib/src/components/commons/icons/network-icon.d.ts +1 -1
  148. package/lib/src/components/commons/icons/on-drag-icon.d.ts +1 -1
  149. package/lib/src/components/commons/icons/opened-icon.d.ts +1 -1
  150. package/lib/src/components/commons/icons/radio-checked-icon.d.ts +1 -1
  151. package/lib/src/components/commons/icons/radio-unchecked-icon.d.ts +1 -1
  152. package/lib/src/components/commons/index.d.ts +0 -1
  153. package/lib/src/components/commons/safety-label.d.ts +1 -1
  154. package/lib/src/components/component-set/html/component-set-legend.d.ts +8 -0
  155. package/lib/src/components/component-set/html/component-set-wrapper.d.ts +6 -0
  156. package/lib/src/components/component-set/html/component-set.d.ts +5 -4
  157. package/lib/src/components/component-set/html/component-set.spec.d.ts +1 -0
  158. package/lib/src/components/component-set/lunatic-component-set.d.ts +3 -4
  159. package/lib/src/components/datepicker/html/datepicker-container.d.ts +1 -1
  160. package/lib/src/components/datepicker/html/datepicker-input.d.ts +1 -1
  161. package/lib/src/components/datepicker/html/datepicker.d.ts +3 -3
  162. package/lib/src/components/datepicker/html/datepicker.spec.d.ts +1 -0
  163. package/lib/src/components/datepicker/lunatic-datepicker.d.ts +2 -2
  164. package/lib/src/components/declarations/declaration.d.ts +1 -1
  165. package/lib/src/components/declarations/declarations-after-text.d.ts +1 -1
  166. package/lib/src/components/declarations/declarations-before-text.d.ts +1 -1
  167. package/lib/src/components/declarations/declarations-detachable.d.ts +1 -1
  168. package/lib/src/components/declarations/declarations.d.ts +1 -1
  169. package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +2 -2
  170. package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +1 -1
  171. package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +1 -1
  172. package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +5 -4
  173. package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +1 -1
  174. package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +1 -1
  175. package/lib/src/components/dropdown/html/dropdown.d.ts +4 -3
  176. package/lib/src/components/dropdown/html/dropdown.spec.d.ts +1 -0
  177. package/lib/src/components/dropdown/lunatic-dropdown.d.ts +2 -2
  178. package/lib/src/components/duration/duration.d.ts +1 -1
  179. package/lib/src/components/duration/durationInput.d.ts +1 -1
  180. package/lib/src/components/duration/formatDuration.d.ts +1 -1
  181. package/lib/src/components/duration/getDurationFromValue.d.ts +1 -1
  182. package/lib/src/components/duration/index.d.ts +1 -1
  183. package/lib/src/components/filter-description/component.d.ts +2 -2
  184. package/lib/src/components/index.d.ts +4 -4
  185. package/lib/src/components/input/html/input.d.ts +4 -3
  186. package/lib/src/components/input/html/input.spec.d.ts +1 -0
  187. package/lib/src/components/input/lunatic-input.d.ts +1 -1
  188. package/lib/src/components/input-number/html/input-number-thousand.d.ts +2 -1
  189. package/lib/src/components/input-number/html/input-number.d.ts +3 -2
  190. package/lib/src/components/input-number/lunatic-input-number.d.ts +1 -1
  191. package/lib/src/components/loop/{block-for-loop/block-for-loop.d.ts → block-for-loop.d.ts} +6 -4
  192. package/lib/src/components/loop/loop-button.d.ts +7 -0
  193. package/lib/src/components/loop/loop-header.d.ts +9 -0
  194. package/lib/src/components/loop/loop.d.ts +2 -3
  195. package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +7 -5
  196. package/lib/src/components/loop/utils/get-initial-nb-rows.d.ts +4 -0
  197. package/lib/src/components/lunatic-components.d.ts +13 -0
  198. package/lib/src/components/modal/html/modal.d.ts +10 -13
  199. package/lib/src/components/modal/lunatic-modal.d.ts +2 -2
  200. package/lib/src/components/modal-controls/close-or-skip.d.ts +1 -1
  201. package/lib/src/components/modal-controls/modal-container.d.ts +1 -1
  202. package/lib/src/components/modal-controls/modal-controls.d.ts +2 -2
  203. package/lib/src/components/pairwise-links/orchestrator.d.ts +1 -1
  204. package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -1
  205. package/lib/src/components/pairwise-links/row.d.ts +1 -1
  206. package/lib/src/components/question-explication/html/question-explication.d.ts +1 -1
  207. package/lib/src/components/question-explication/lunatic-question-explication.d.ts +1 -1
  208. package/lib/src/components/radio/html/radio-group-content.d.ts +3 -2
  209. package/lib/src/components/radio/html/radio-group.d.ts +3 -2
  210. package/lib/src/components/radio/html/radio-option.d.ts +3 -2
  211. package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +3 -3
  212. package/lib/src/components/roundabout/components/roundabout-label.d.ts +3 -3
  213. package/lib/src/components/roundabout/lunatic-roundabout.d.ts +1 -1
  214. package/lib/src/components/roundabout/roundabout.d.ts +2 -2
  215. package/lib/src/components/sequence/html/sequence.d.ts +1 -1
  216. package/lib/src/components/sequence/lunatic-sequence.d.ts +2 -2
  217. package/lib/src/components/suggester/html/notification.d.ts +2 -2
  218. package/lib/src/components/suggester/html/suggester.d.ts +6 -5
  219. package/lib/src/components/suggester/idb-suggester/check-store.d.ts +1 -1
  220. package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +3 -3
  221. package/lib/src/components/suggester/idb-suggester/suggester-notification.d.ts +1 -1
  222. package/lib/src/components/suggester/idb-suggester/suggester-status.d.ts +1 -1
  223. package/lib/src/components/suggester/lunatic-suggester.d.ts +2 -2
  224. package/lib/src/components/suggester/searching/create-searching.d.ts +1 -1
  225. package/lib/src/components/suggester-loader-widget/loader-row.d.ts +1 -1
  226. package/lib/src/components/suggester-loader-widget/loader.d.ts +1 -1
  227. package/lib/src/components/suggester-loader-widget/tools/action-tool.d.ts +1 -1
  228. package/lib/src/components/suggester-loader-widget/tools/tools.d.ts +1 -1
  229. package/lib/src/components/suggester-loader-widget/widget.d.ts +1 -1
  230. package/lib/src/components/summary/html/summary-container.d.ts +1 -1
  231. package/lib/src/components/summary/html/summary-responses.d.ts +3 -1
  232. package/lib/src/components/summary/html/summary-title.d.ts +1 -1
  233. package/lib/src/components/summary/lunatic-summary.d.ts +3 -2
  234. package/lib/src/components/switch/html/switch.d.ts +3 -3
  235. package/lib/src/components/switch/lunatic-switch.d.ts +1 -1
  236. package/lib/src/components/table/cell.d.ts +1 -1
  237. package/lib/src/components/table/header.d.ts +1 -1
  238. package/lib/src/components/table/lunatic-table.d.ts +1 -1
  239. package/lib/src/components/table/row.d.ts +1 -1
  240. package/lib/src/components/table/table-orchestrator.d.ts +1 -1
  241. package/lib/src/components/textarea/html/textarea.d.ts +4 -3
  242. package/lib/src/components/textarea/html/textarea.spec.d.ts +1 -0
  243. package/lib/src/components/textarea/lunatic-textarea.d.ts +1 -1
  244. package/lib/src/components/type.d.ts +9 -6
  245. package/lib/src/i18n/build-dictionary.d.ts +1 -1
  246. package/lib/src/index.d.ts +1 -0
  247. package/lib/src/use-lunatic/actions.d.ts +4 -8
  248. package/lib/src/use-lunatic/commons/calculated-variables.d.ts +1 -1
  249. package/lib/src/use-lunatic/commons/check-loops.d.ts +1 -1
  250. package/lib/src/use-lunatic/commons/check-pager.d.ts +1 -1
  251. package/lib/src/use-lunatic/commons/compile-controls.d.ts +1 -1
  252. package/lib/src/use-lunatic/commons/compose.d.ts +1 -1
  253. package/lib/src/use-lunatic/commons/create-map-pages.d.ts +2 -2
  254. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +1 -1
  255. package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +1 -1
  256. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +2 -2
  257. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +3 -3
  258. package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +1 -1
  259. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +5 -2
  260. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +1 -1
  261. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +15 -10
  262. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +38 -1
  263. package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +1 -1
  264. package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +1 -1
  265. package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +1 -1
  266. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +62 -33
  267. package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +1 -1
  268. package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +1 -1
  269. package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +1 -2
  270. package/lib/src/use-lunatic/commons/get-data.d.ts +1 -1
  271. package/lib/src/use-lunatic/commons/get-errors-without-empty-value.d.ts +1 -1
  272. package/lib/src/use-lunatic/commons/getOverview.d.ts +1 -1
  273. package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +1 -1
  274. package/lib/src/use-lunatic/commons/is-paginated-loop.d.ts +1 -1
  275. package/lib/src/use-lunatic/commons/is-roundabout.d.ts +1 -1
  276. package/lib/src/use-lunatic/commons/page-navigation.d.ts +2 -2
  277. package/lib/src/use-lunatic/commons/page-tag.d.ts +1 -1
  278. package/lib/src/use-lunatic/commons/page.d.ts +2 -2
  279. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +2 -2
  280. package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +1 -1
  281. package/lib/src/use-lunatic/lunatic-context.d.ts +1 -1
  282. package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +1 -1
  283. package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +3 -3
  284. package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +1 -1
  285. package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +1 -1
  286. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +2 -2
  287. package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -4
  288. package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +1 -0
  289. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +1 -1
  290. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +1 -0
  291. package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +2 -2
  292. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +2 -2
  293. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +2 -2
  294. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +2 -2
  295. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +2 -2
  296. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +2 -2
  297. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +1 -1
  298. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +1 -1
  299. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +2 -2
  300. package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +2 -2
  301. package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +2 -2
  302. package/lib/src/use-lunatic/reducer/reducer.d.ts +2 -2
  303. package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-component-control.d.ts +2 -2
  304. package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.d.ts +2 -2
  305. package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.d.ts +2 -2
  306. package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -1
  307. package/lib/src/use-lunatic/type-source.d.ts +3 -1
  308. package/lib/src/use-lunatic/type.d.ts +3 -3
  309. package/lib/src/use-lunatic/use-lunatic.d.ts +21 -15
  310. package/lib/src/use-lunatic/use-suggesters.d.ts +1 -1
  311. package/lib/src/utils/array.d.ts +8 -0
  312. package/lib/src/utils/dom.d.ts +14 -0
  313. package/lib/src/utils/is-element.d.ts +1 -1
  314. package/lib/src/utils/number.d.ts +5 -0
  315. package/lib/src/utils/number.spec.d.ts +1 -0
  316. package/lib/src/utils/store-tools/initStore.d.ts +1 -1
  317. package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +1 -1
  318. package/lib/src/utils/suggester-workers/searching/compute-score.d.ts +1 -1
  319. package/lib/stories/checkbox-one/source.json +2 -2
  320. package/lib/stories/component-set/component-set.stories.js +9 -9
  321. package/lib/stories/component-set/{data2.json → data-roundabout.json} +1 -1
  322. package/lib/stories/component-set/data.json +8 -1
  323. package/lib/stories/component-set/source-loop.json +308 -0
  324. package/lib/stories/component-set/source-roundabout.json +434 -0
  325. package/lib/stories/component-set/source.json +16 -2
  326. package/lib/stories/disabled/data.json +32 -0
  327. package/lib/{components/commons/components/combo-box/state-management/reduce-on-keydown/on-end.js → stories/disabled/disabled.stories.js} +25 -12
  328. package/lib/stories/disabled/source.json +382 -0
  329. package/lib/stories/input/source-with-question.json +9 -3
  330. package/lib/stories/input/source.json +6 -0
  331. package/lib/stories/loop/source-paginated.json +2 -2
  332. package/lib/stories/overview/source.json +1 -1
  333. package/lib/stories/overview/sourceWithHierarchy.json +10 -2
  334. package/lib/stories/pairwise/links-componentset.json +292 -0
  335. package/lib/stories/pairwise/pairwise-links.stories.js +11 -2
  336. package/lib/stories/question-explication/source.json +16 -16
  337. package/lib/stories/questionnaires/logement/source-sum.json +31805 -34611
  338. package/lib/stories/questionnaires/recensement/source.json +2 -2
  339. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +4 -4
  340. package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +963 -847
  341. package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4350 -4090
  342. package/lib/stories/suggester/simple.json +4 -0
  343. package/lib/stories/summary/source.json +55 -40
  344. package/lib/stories/utils/orchestrator.js +11 -22
  345. package/lib/tests/utils/lunatic.d.ts +16 -2
  346. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +13 -45
  347. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +0 -1
  348. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +5 -1
  349. package/lib/use-lunatic/commons/fill-components/fill-components.js +10 -2
  350. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +3 -0
  351. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +66 -21
  352. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +1 -3
  353. package/lib/use-lunatic/commons/page.js +6 -0
  354. package/lib/use-lunatic/hooks/use-loop-variables.js +1 -1
  355. package/lib/use-lunatic/reducer/reduce-go-next-page.js +10 -10
  356. package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +13 -0
  357. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +3 -3
  358. package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +14 -0
  359. package/lib/use-lunatic/reducer/reduce-go-to-page.js +3 -8
  360. package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +790 -924
  361. package/lib/use-lunatic/reducer/reducer.js +2 -2
  362. package/lib/use-lunatic/use-lunatic.js +5 -2
  363. package/lib/use-lunatic/use-lunatic.test.js +26 -0
  364. package/lib/utils/array.js +33 -0
  365. package/lib/utils/dom.js +27 -0
  366. package/lib/utils/number.js +30 -0
  367. package/lib/utils/number.spec.js +11 -0
  368. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +0 -2
  369. package/package.json +8 -3
  370. package/lib/components/commons/components/combo-box/state-management/actions.js +0 -79
  371. package/lib/components/commons/components/combo-box/state-management/index.js +0 -25
  372. package/lib/components/commons/components/combo-box/state-management/reduce-on-init.js +0 -38
  373. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-down.js +0 -30
  374. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-up.js +0 -30
  375. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-enter.js +0 -19
  376. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-escape.js +0 -18
  377. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-home.js +0 -23
  378. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-tab.js +0 -18
  379. package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/reduce-on-keydown.js +0 -40
  380. package/lib/components/commons/components/combo-box/state-management/reducer.js +0 -53
  381. package/lib/components/commons/create-row-orchestrator.js +0 -58
  382. package/lib/components/component-set/html/component-set-component-container.js +0 -20
  383. package/lib/components/component-set/html/component-set-components.js +0 -45
  384. package/lib/components/component-set/html/legend/index.js +0 -13
  385. package/lib/components/component-set/index.js +0 -13
  386. package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +0 -12
  387. package/lib/components/loop/block-for-loop/index.js +0 -13
  388. package/lib/components/loop/block-for-loop/row.js +0 -56
  389. package/lib/components/loop/commons/index.js +0 -20
  390. package/lib/components/loop/commons/row-component.js +0 -72
  391. package/lib/components/loop/index.js +0 -13
  392. package/lib/components/loop/roster-for-loop/index.js +0 -13
  393. package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +0 -12
  394. package/lib/components/loop/roster-for-loop/roster-table.js +0 -50
  395. package/lib/components/loop/roster-for-loop/row.js +0 -85
  396. package/lib/src/components/commons/components/combo-box/state-management/actions.d.ts +0 -78
  397. package/lib/src/components/commons/components/combo-box/state-management/index.d.ts +0 -9
  398. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-init.d.ts +0 -4
  399. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-down.d.ts +0 -2
  400. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-up.d.ts +0 -2
  401. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-end.d.ts +0 -2
  402. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-enter.d.ts +0 -2
  403. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-escape.d.ts +0 -2
  404. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-home.d.ts +0 -2
  405. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-tab.d.ts +0 -2
  406. package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/reduce-on-keydown.d.ts +0 -9
  407. package/lib/src/components/commons/components/combo-box/state-management/reducer.d.ts +0 -3
  408. package/lib/src/components/commons/create-row-orchestrator.d.ts +0 -32
  409. package/lib/src/components/component-set/html/component-set-component-container.d.ts +0 -6
  410. package/lib/src/components/component-set/html/component-set-components.d.ts +0 -7
  411. package/lib/src/components/component-set/html/legend/index.d.ts +0 -1
  412. package/lib/src/components/component-set/html/legend/legend.d.ts +0 -8
  413. package/lib/src/components/component-set/index.d.ts +0 -1
  414. package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +0 -51
  415. package/lib/src/components/loop/block-for-loop/index.d.ts +0 -1
  416. package/lib/src/components/loop/block-for-loop/row.d.ts +0 -23
  417. package/lib/src/components/loop/commons/get-init-length.d.ts +0 -2
  418. package/lib/src/components/loop/commons/handle-row-button.d.ts +0 -7
  419. package/lib/src/components/loop/commons/index.d.ts +0 -2
  420. package/lib/src/components/loop/commons/row-component.d.ts +0 -9
  421. package/lib/src/components/loop/index.d.ts +0 -1
  422. package/lib/src/components/loop/roster-for-loop/body.d.ts +0 -12
  423. package/lib/src/components/loop/roster-for-loop/header.d.ts +0 -9
  424. package/lib/src/components/loop/roster-for-loop/index.d.ts +0 -1
  425. package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +0 -51
  426. package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +0 -13
  427. package/lib/src/components/loop/roster-for-loop/row.d.ts +0 -24
  428. package/lib/stories/component-set/source1.json +0 -287
  429. package/lib/stories/component-set/source2.json +0 -413
  430. /package/lib/components/commons/components/combo-box/{state-management/reduce-on-keydown/keyboard-key-codes.js → keyboard-key-codes.js} +0 -0
  431. /package/lib/src/components/commons/components/combo-box/{state-management/reduce-on-keydown/keyboard-key-codes.d.ts → keyboard-key-codes.d.ts} +0 -0
  432. /package/lib/stories/component-set/{data1.json → data-loop.json} +0 -0
@@ -1,926 +1,792 @@
1
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": [
36
- null
37
- ],
38
- "EDITED": [
39
- null
40
- ],
41
- "INPUTED": [
42
- null
43
- ],
44
- "FORCED": [
45
- null
46
- ],
47
- "PREVIOUS": [
48
- null
49
- ]
50
- },
51
- "name": "PRENOMREP"
52
- },
53
- {
54
- "variableType": "COLLECTED",
55
- "values": {
56
- "COLLECTED": [
57
- null
58
- ],
59
- "EDITED": [
60
- null
61
- ],
62
- "INPUTED": [
63
- null
64
- ],
65
- "FORCED": [
66
- null
67
- ],
68
- "PREVIOUS": [
69
- null
70
- ]
71
- },
72
- "name": "VITICI"
73
- },
74
- {
75
- "variableType": "COLLECTED",
76
- "values": {
77
- "COLLECTED": [
78
- null
79
- ],
80
- "EDITED": [
81
- null
82
- ],
83
- "INPUTED": [
84
- null
85
- ],
86
- "FORCED": [
87
- null
88
- ],
89
- "PREVIOUS": [
90
- null
91
- ]
92
- },
93
- "name": "NBF"
94
- },
95
- {
96
- "variableType": "COLLECTED",
97
- "values": {
98
- "COLLECTED": [
99
- null
100
- ],
101
- "EDITED": [
102
- null
103
- ],
104
- "INPUTED": [
105
- null
106
- ],
107
- "FORCED": [
108
- null
109
- ],
110
- "PREVIOUS": [
111
- null
112
- ]
113
- },
114
- "name": "NBF_VIE"
115
- },
116
- {
117
- "variableType": "COLLECTED",
118
- "values": {
119
- "COLLECTED": [
120
- null
121
- ],
122
- "EDITED": [
123
- null
124
- ],
125
- "INPUTED": [
126
- null
127
- ],
128
- "FORCED": [
129
- null
130
- ],
131
- "PREVIOUS": [
132
- null
133
- ]
134
- },
135
- "name": "NBS"
136
- },
137
- {
138
- "variableType": "COLLECTED",
139
- "values": {
140
- "COLLECTED": [
141
- null
142
- ],
143
- "EDITED": [
144
- null
145
- ],
146
- "INPUTED": [
147
- null
148
- ],
149
- "FORCED": [
150
- null
151
- ],
152
- "PREVIOUS": [
153
- null
154
- ]
155
- },
156
- "name": "NBS_VIE"
157
- },
158
- {
159
- "variableType": "COLLECTED",
160
- "values": {
161
- "COLLECTED": [
162
- null
163
- ],
164
- "EDITED": [
165
- null
166
- ],
167
- "INPUTED": [
168
- null
169
- ],
170
- "FORCED": [
171
- null
172
- ],
173
- "PREVIOUS": [
174
- null
175
- ]
176
- },
177
- "name": "SIMPLEPOUR"
178
- },
179
- {
180
- "variableType": "CALCULATED",
181
- "expression": {
182
- "type": "VTL",
183
- "value": "true"
184
- },
185
- "name": "FILTER_RESULT_PRENOMREP",
186
- "inFilter": "false",
187
- "shapeFrom": "PRENOMREP"
188
- },
189
- {
190
- "variableType": "CALCULATED",
191
- "expression": {
192
- "type": "VTL",
193
- "value": "true"
194
- },
195
- "name": "FILTER_RESULT_VITICI",
196
- "inFilter": "false",
197
- "shapeFrom": "VITICI"
198
- },
199
- {
200
- "variableType": "CALCULATED",
201
- "bindingDependencies": [
202
- "VITICI"
203
- ],
204
- "expression": {
205
- "type": "VTL",
206
- "value": "(VITICI =\"1\")"
207
- },
208
- "name": "FILTER_RESULT_NBF",
209
- "inFilter": "false",
210
- "shapeFrom": "VITICI"
211
- },
212
- {
213
- "variableType": "CALCULATED",
214
- "bindingDependencies": [
215
- "VITICI",
216
- "NBF"
217
- ],
218
- "expression": {
219
- "type": "VTL",
220
- "value": "(VITICI =\"1\") and (nvl(NBF,0) > 1)"
221
- },
222
- "name": "FILTER_RESULT_NBF_VIE",
223
- "inFilter": "false",
224
- "shapeFrom": "VITICI"
225
- },
226
- {
227
- "variableType": "CALCULATED",
228
- "bindingDependencies": [
229
- "VITICI"
230
- ],
231
- "expression": {
232
- "type": "VTL",
233
- "value": "(VITICI =\"1\")"
234
- },
235
- "name": "FILTER_RESULT_NBS",
236
- "inFilter": "false",
237
- "shapeFrom": "VITICI"
238
- },
239
- {
240
- "variableType": "CALCULATED",
241
- "bindingDependencies": [
242
- "VITICI",
243
- "NBS"
244
- ],
245
- "expression": {
246
- "type": "VTL",
247
- "value": "(VITICI =\"1\") and (nvl(NBS,0) > 1)"
248
- },
249
- "name": "FILTER_RESULT_NBS_VIE",
250
- "inFilter": "false",
251
- "shapeFrom": "VITICI"
252
- },
253
- {
254
- "variableType": "CALCULATED",
255
- "bindingDependencies": [
256
- "VITICI"
257
- ],
258
- "expression": {
259
- "type": "VTL",
260
- "value": "(VITICI =\"1\")"
261
- },
262
- "name": "FILTER_RESULT_SIMPLEPOUR",
263
- "inFilter": "false",
264
- "shapeFrom": "VITICI"
265
- }
266
- ],
267
- "components": [
268
- {
269
- "paginatedLoop": false,
270
- "componentType": "Loop",
271
- "components": [
272
- {
273
- "componentType": "Sequence",
274
- "hierarchy": {
275
- "sequence": {
276
- "id": "ldnda0vb",
277
- "page": "1",
278
- "label": {
279
- "type": "VTL|MD",
280
- "value": "\"I - \" || \"REPONDANT\""
281
- }
282
- }
283
- },
284
- "conditionFilter": {
285
- "type": "VTL",
286
- "value": "true"
287
- },
288
- "id": "ldnda0vb",
289
- "page": "1",
290
- "label": {
291
- "type": "VTL|MD",
292
- "value": "\"I - \" || \"REPONDANT\""
293
- }
294
- },
295
- {
296
- "componentType": "Input",
297
- "bindingDependencies": [
298
- "PRENOMREP"
299
- ],
300
- "response": {
301
- "name": "PRENOMREP"
302
- },
303
- "hierarchy": {
304
- "sequence": {
305
- "id": "ldnda0vb",
306
- "page": "1",
307
- "label": {
308
- "type": "VTL|MD",
309
- "value": "\"I - \" || \"REPONDANT\""
310
- }
311
- }
312
- },
313
- "conditionFilter": {
314
- "type": "VTL",
315
- "value": "true"
316
- },
317
- "id": "ldndn8fx",
318
- "page": "1",
319
- "label": {
320
- "type": "VTL|MD",
321
- "value": "\"➡ 1. \" || \"Prenom des enquêtés\""
322
- },
323
- "mandatory": false,
324
- "maxLength": 249
325
- }
326
- ],
327
- "bindingDependencies": [
328
- "PRENOMREP"
329
- ],
330
- "depth": 1,
331
- "conditionFilter": {
332
- "type": "VTL",
333
- "value": "true"
334
- },
335
- "id": "ldndipy6",
336
- "page": "1",
337
- "lines": {
338
- "min": {
339
- "type": "VTL",
340
- "value": "2"
341
- },
342
- "max": {
343
- "type": "VTL",
344
- "value": "2"
345
- }
346
- }
347
- },
348
- {
349
- "paginatedLoop": true,
350
- "componentType": "Loop",
351
- "loopDependencies": [
352
- "PRENOMREP"
353
- ],
354
- "components": [
355
- {
356
- "componentType": "Sequence",
357
- "bindingDependencies": [
358
- "PRENOMREP"
359
- ],
360
- "hierarchy": {
361
- "sequence": {
362
- "id": "ldndgj7b",
363
- "page": "2.1",
364
- "label": {
365
- "type": "VTL|MD",
366
- "value": "\"II - \" || \"Présence des personnes\""
367
- }
368
- }
369
- },
370
- "conditionFilter": {
371
- "type": "VTL",
372
- "value": "true"
373
- },
374
- "id": "ldndgj7b",
375
- "page": "2.1",
376
- "label": {
377
- "type": "VTL|MD",
378
- "value": "\"II - \" || \"Présence des personnes\""
379
- }
380
- },
381
- {
382
- "componentType": "CheckboxOne",
383
- "bindingDependencies": [
384
- "PRENOMREP",
385
- "VITICI"
386
- ],
387
- "response": {
388
- "name": "VITICI"
389
- },
390
- "hierarchy": {
391
- "sequence": {
392
- "id": "ldndgj7b",
393
- "page": "2.1",
394
- "label": {
395
- "type": "VTL|MD",
396
- "value": "\"II - \" || \"Présence des personnes\""
397
- }
398
- }
399
- },
400
- "options": [
401
- {
402
- "label": {
403
- "type": "VTL|MD",
404
- "value": "oui"
405
- },
406
- "value": "1"
407
- },
408
- {
409
- "label": {
410
- "type": "VTL|MD",
411
- "value": "non"
412
- },
413
- "value": "2"
414
- }
415
- ],
416
- "conditionFilter": {
417
- "type": "VTL",
418
- "value": "true"
419
- },
420
- "id": "ldndh7fb",
421
- "page": "2.2",
422
- "label": {
423
- "type": "VTL|MD",
424
- "value": "\"➡ 2. \" || \"Est-ce que \" || PRENOMREP || \"vit ici ?\""
425
- },
426
- "mandatory": false
427
- },
428
- {
429
- "componentType": "Sequence",
430
- "bindingDependencies": [
431
- "PRENOMREP"
432
- ],
433
- "hierarchy": {
434
- "sequence": {
435
- "id": "ldndnqr7",
436
- "page": "2.3",
437
- "label": {
438
- "type": "VTL|MD",
439
- "value": "\"III - \" || \"Infos\""
440
- }
441
- }
442
- },
443
- "conditionFilter": {
444
- "bindingDependencies": [
445
- "VITICI"
446
- ],
447
- "type": "VTL",
448
- "value": "(VITICI =\"1\")"
449
- },
450
- "id": "ldndnqr7",
451
- "page": "2.3",
452
- "label": {
453
- "type": "VTL|MD",
454
- "value": "\"III - \" || \"Infos\""
455
- }
456
- },
457
- {
458
- "componentType": "InputNumber",
459
- "controls": [
460
- {
461
- "criticality": "ERROR",
462
- "errorMessage": {
463
- "type": "VTL|MD",
464
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
465
- },
466
- "typeOfControl": "FORMAT",
467
- "control": {
468
- "type": "VTL",
469
- "value": "not(not(isnull(NBF)) and (0>NBF or 10<NBF))"
470
- },
471
- "id": "ldndqtym-format-borne-inf-sup"
472
- },
473
- {
474
- "criticality": "ERROR",
475
- "errorMessage": {
476
- "type": "VTL|MD",
477
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
478
- },
479
- "typeOfControl": "FORMAT",
480
- "control": {
481
- "type": "VTL",
482
- "value": "not(not(isnull(NBF)) and round(NBF,0)<>NBF)"
483
- },
484
- "id": "ldndqtym-format-decimal"
485
- }
486
- ],
487
- "max": 10,
488
- "hierarchy": {
489
- "sequence": {
490
- "id": "ldndnqr7",
491
- "page": "2.3",
492
- "label": {
493
- "type": "VTL|MD",
494
- "value": "\"III - \" || \"Infos\""
495
- }
496
- }
497
- },
498
- "conditionFilter": {
499
- "bindingDependencies": [
500
- "VITICI"
501
- ],
502
- "type": "VTL",
503
- "value": "(VITICI =\"1\")"
504
- },
505
- "label": {
506
- "type": "VTL|MD",
507
- "value": "\"➡ 3. \" || \"Combien de freres de 0 à 10 ?\""
508
- },
509
- "mandatory": false,
510
- "bindingDependencies": [
511
- "NBF",
512
- "PRENOMREP"
513
- ],
514
- "min": 0,
515
- "response": {
516
- "name": "NBF"
517
- },
518
- "decimals": 0,
519
- "id": "ldndqtym",
520
- "page": "2.4"
521
- },
522
- {
523
- "componentType": "InputNumber",
524
- "controls": [
525
- {
526
- "criticality": "ERROR",
527
- "errorMessage": {
528
- "type": "VTL|MD",
529
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
530
- },
531
- "typeOfControl": "FORMAT",
532
- "control": {
533
- "type": "VTL",
534
- "value": "not(not(isnull(NBF_VIE)) and (0>NBF_VIE or 10<NBF_VIE))"
535
- },
536
- "id": "ldndmds9-format-borne-inf-sup"
537
- },
538
- {
539
- "criticality": "ERROR",
540
- "errorMessage": {
541
- "type": "VTL|MD",
542
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
543
- },
544
- "typeOfControl": "FORMAT",
545
- "control": {
546
- "type": "VTL",
547
- "value": "not(not(isnull(NBF_VIE)) and round(NBF_VIE,0)<>NBF_VIE)"
548
- },
549
- "id": "ldndmds9-format-decimal"
550
- }
551
- ],
552
- "max": 10,
553
- "hierarchy": {
554
- "sequence": {
555
- "id": "ldndnqr7",
556
- "page": "2.3",
557
- "label": {
558
- "type": "VTL|MD",
559
- "value": "\"III - \" || \"Infos\""
560
- }
561
- }
562
- },
563
- "conditionFilter": {
564
- "bindingDependencies": [
565
- "VITICI",
566
- "NBF"
567
- ],
568
- "type": "VTL",
569
- "value": "(VITICI =\"1\") and (nvl(NBF,0) > 1)"
570
- },
571
- "label": {
572
- "type": "VTL|MD",
573
- "value": "\"➡ 4. \" || \"Combien de freres en vie ?\""
574
- },
575
- "mandatory": false,
576
- "bindingDependencies": [
577
- "NBF_VIE",
578
- "PRENOMREP"
579
- ],
580
- "min": 0,
581
- "response": {
582
- "name": "NBF_VIE"
583
- },
584
- "decimals": 0,
585
- "id": "ldndmds9",
586
- "page": "2.5"
587
- },
588
- {
589
- "componentType": "InputNumber",
590
- "controls": [
591
- {
592
- "criticality": "ERROR",
593
- "errorMessage": {
594
- "type": "VTL|MD",
595
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
596
- },
597
- "typeOfControl": "FORMAT",
598
- "control": {
599
- "type": "VTL",
600
- "value": "not(not(isnull(NBS)) and (0>NBS or 10<NBS))"
601
- },
602
- "id": "ldndgju5-format-borne-inf-sup"
603
- },
604
- {
605
- "criticality": "ERROR",
606
- "errorMessage": {
607
- "type": "VTL|MD",
608
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
609
- },
610
- "typeOfControl": "FORMAT",
611
- "control": {
612
- "type": "VTL",
613
- "value": "not(not(isnull(NBS)) and round(NBS,0)<>NBS)"
614
- },
615
- "id": "ldndgju5-format-decimal"
616
- }
617
- ],
618
- "max": 10,
619
- "hierarchy": {
620
- "sequence": {
621
- "id": "ldndnqr7",
622
- "page": "2.3",
623
- "label": {
624
- "type": "VTL|MD",
625
- "value": "\"III - \" || \"Infos\""
626
- }
627
- }
628
- },
629
- "conditionFilter": {
630
- "bindingDependencies": [
631
- "VITICI"
632
- ],
633
- "type": "VTL",
634
- "value": "(VITICI =\"1\")"
635
- },
636
- "label": {
637
- "type": "VTL|MD",
638
- "value": "\"➡ 5. \" || \"Combien de soeurs de 0 à 10 ?\""
639
- },
640
- "mandatory": false,
641
- "bindingDependencies": [
642
- "NBS",
643
- "PRENOMREP"
644
- ],
645
- "min": 0,
646
- "response": {
647
- "name": "NBS"
648
- },
649
- "decimals": 0,
650
- "id": "ldndgju5",
651
- "page": "2.6"
652
- },
653
- {
654
- "componentType": "InputNumber",
655
- "controls": [
656
- {
657
- "criticality": "ERROR",
658
- "errorMessage": {
659
- "type": "VTL|MD",
660
- "value": "\" La valeur doit être comprise entre 0 et 10.\""
661
- },
662
- "typeOfControl": "FORMAT",
663
- "control": {
664
- "type": "VTL",
665
- "value": "not(not(isnull(NBS_VIE)) and (0>NBS_VIE or 10<NBS_VIE))"
666
- },
667
- "id": "ldndbd3b-format-borne-inf-sup"
668
- },
669
- {
670
- "criticality": "ERROR",
671
- "errorMessage": {
672
- "type": "VTL|MD",
673
- "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
674
- },
675
- "typeOfControl": "FORMAT",
676
- "control": {
677
- "type": "VTL",
678
- "value": "not(not(isnull(NBS_VIE)) and round(NBS_VIE,0)<>NBS_VIE)"
679
- },
680
- "id": "ldndbd3b-format-decimal"
681
- }
682
- ],
683
- "max": 10,
684
- "hierarchy": {
685
- "sequence": {
686
- "id": "ldndnqr7",
687
- "page": "2.3",
688
- "label": {
689
- "type": "VTL|MD",
690
- "value": "\"III - \" || \"Infos\""
691
- }
692
- }
693
- },
694
- "conditionFilter": {
695
- "bindingDependencies": [
696
- "VITICI",
697
- "NBS"
698
- ],
699
- "type": "VTL",
700
- "value": "(VITICI =\"1\") and (nvl(NBS,0) > 1)"
701
- },
702
- "label": {
703
- "type": "VTL|MD",
704
- "value": "\"➡ 6. \" || \"Combien de soeurs en vie ?\""
705
- },
706
- "mandatory": false,
707
- "bindingDependencies": [
708
- "NBS_VIE",
709
- "PRENOMREP"
710
- ],
711
- "min": 0,
712
- "response": {
713
- "name": "NBS_VIE"
714
- },
715
- "decimals": 0,
716
- "id": "ldndbd3b",
717
- "page": "2.7"
718
- },
719
- {
720
- "componentType": "Sequence",
721
- "bindingDependencies": [
722
- "PRENOMREP"
723
- ],
724
- "hierarchy": {
725
- "sequence": {
726
- "id": "ldnddl5z",
727
- "page": "2.8",
728
- "label": {
729
- "type": "VTL|MD",
730
- "value": "\"IV - \" || \"Autre\""
731
- }
732
- }
733
- },
734
- "conditionFilter": {
735
- "bindingDependencies": [
736
- "VITICI"
737
- ],
738
- "type": "VTL",
739
- "value": "(VITICI =\"1\")"
740
- },
741
- "id": "ldnddl5z",
742
- "page": "2.8",
743
- "label": {
744
- "type": "VTL|MD",
745
- "value": "\"IV - \" || \"Autre\""
746
- }
747
- },
748
- {
749
- "componentType": "Input",
750
- "bindingDependencies": [
751
- "SIMPLEPOUR",
752
- "PRENOMREP"
753
- ],
754
- "response": {
755
- "name": "SIMPLEPOUR"
756
- },
757
- "hierarchy": {
758
- "sequence": {
759
- "id": "ldnddl5z",
760
- "page": "2.8",
761
- "label": {
762
- "type": "VTL|MD",
763
- "value": "\"IV - \" || \"Autre\""
764
- }
765
- }
766
- },
767
- "conditionFilter": {
768
- "bindingDependencies": [
769
- "VITICI"
770
- ],
771
- "type": "VTL",
772
- "value": "(VITICI =\"1\")"
773
- },
774
- "id": "ldndb6ao",
775
- "page": "2.9",
776
- "label": {
777
- "type": "VTL|MD",
778
- "value": "\"➡ 7. \" || \"Simple pour simuler Famille\""
779
- },
780
- "mandatory": false,
781
- "maxLength": 249
782
- },
783
- {
784
- "componentType": "Sequence",
785
- "bindingDependencies": [
786
- "PRENOMREP"
787
- ],
788
- "hierarchy": {
789
- "sequence": {
790
- "id": "ldndohgt",
791
- "page": "2.10",
792
- "label": {
793
- "type": "VTL|MD",
794
- "value": "\"V - \" || \"MERCI\""
795
- }
796
- }
797
- },
798
- "conditionFilter": {
799
- "bindingDependencies": [
800
- "VITICI"
801
- ],
802
- "type": "VTL",
803
- "value": "(VITICI =\"1\")"
804
- },
805
- "id": "ldndohgt",
806
- "page": "2.10",
807
- "label": {
808
- "type": "VTL|MD",
809
- "value": "\"V - \" || \"MERCI\""
810
- }
811
- }
812
- ],
813
- "bindingDependencies": [
814
- "PRENOMREP",
815
- "VITICI",
816
- "NBF",
817
- "NBF_VIE",
818
- "NBS",
819
- "NBS_VIE",
820
- "SIMPLEPOUR"
821
- ],
822
- "depth": 1,
823
- "conditionFilter": {
824
- "type": "VTL",
825
- "value": "true"
826
- },
827
- "id": "ldndohv2",
828
- "page": "2",
829
- "maxPage": "10",
830
- "iterations": {
831
- "type": "VTL",
832
- "value": "count(PRENOMREP)"
833
- }
834
- },
835
- {
836
- "componentType": "Sequence",
837
- "hierarchy": {
838
- "sequence": {
839
- "id": "ldndhokp",
840
- "page": "3",
841
- "label": {
842
- "type": "VTL|MD",
843
- "value": "\"VI - \" || \"FIN\""
844
- }
845
- }
846
- },
847
- "conditionFilter": {
848
- "type": "VTL",
849
- "value": "true"
850
- },
851
- "id": "ldndhokp",
852
- "page": "3",
853
- "label": {
854
- "type": "VTL|MD",
855
- "value": "\"VI - \" || \"FIN\""
856
- }
857
- },
858
- {
859
- "componentType": "Sequence",
860
- "hierarchy": {
861
- "sequence": {
862
- "id": "COMMENT-SEQ",
863
- "page": "4",
864
- "label": {
865
- "type": "VTL|MD",
866
- "value": "\"Commentaire\""
867
- }
868
- }
869
- },
870
- "conditionFilter": {
871
- "type": "VTL",
872
- "value": "true"
873
- },
874
- "id": "COMMENT-SEQ",
875
- "page": "4",
876
- "label": {
877
- "type": "VTL|MD",
878
- "value": "\"Commentaire\""
879
- }
880
- },
881
- {
882
- "componentType": "Textarea",
883
- "bindingDependencies": [
884
- "COMMENT_QE"
885
- ],
886
- "response": {
887
- "name": "COMMENT_QE"
888
- },
889
- "hierarchy": {
890
- "sequence": {
891
- "id": "COMMENT-SEQ",
892
- "page": "4",
893
- "label": {
894
- "type": "VTL|MD",
895
- "value": "\"Commentaire\""
896
- }
897
- }
898
- },
899
- "conditionFilter": {
900
- "type": "VTL",
901
- "value": "true"
902
- },
903
- "id": "COMMENT-QUESTION",
904
- "page": "5",
905
- "label": {
906
- "type": "VTL|MD",
907
- "value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
908
- },
909
- "mandatory": false,
910
- "maxLength": 2000
911
- }
912
- ],
913
- "pagination": "question",
914
- "resizing": {},
915
- "label": {
916
- "type": "VTL|MD",
917
- "value": "Bug - issue 399 - bug famille - filtre sur VITICI et vidage de questions filtrées"
918
- },
919
- "lunaticModelVersion": "2.3.1",
920
- "modele": "TESTBUGFAM",
921
- "enoCoreVersion": "2.4.0",
922
- "generatingDate": "15-03-2023 13:26:11",
923
- "missing": false,
924
- "id": "ldndehwy",
925
- "maxPage": "5"
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"
926
792
  }