@inseefr/lunatic 2.3.1 → 2.4.0

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 (1038) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +169 -22
  3. package/lib/components/button/__snapshots__/lunatic-button.spec.jsx.snap +80 -0
  4. package/lib/components/button/button.scss +24 -0
  5. package/lib/components/button/index.js +13 -0
  6. package/lib/components/button/lunatic-button.js +56 -0
  7. package/lib/components/button/lunatic-button.spec.js +87 -0
  8. package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +55 -0
  9. package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.spec.js +57 -0
  10. package/lib/components/checkbox/checkbox-boolean/index.js +13 -0
  11. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +58 -0
  12. package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +41 -0
  13. package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +51 -0
  14. package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.spec.js +44 -0
  15. package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +52 -0
  16. package/lib/components/checkbox/checkbox-group/html/checkbox-group.scss +12 -0
  17. package/lib/components/checkbox/checkbox-group/index.js +13 -0
  18. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +64 -0
  19. package/lib/components/checkbox/checkbox-one/html/checkbox-one.js +54 -0
  20. package/lib/components/checkbox/checkbox-one/html/checkbox-one.scss +19 -0
  21. package/lib/components/checkbox/checkbox-one/html/checkbox-one.spec.js +51 -0
  22. package/lib/components/checkbox/checkbox-one/index.js +13 -0
  23. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +58 -0
  24. package/lib/components/checkbox/commons/checkbox-option.js +89 -0
  25. package/lib/components/checkbox/commons/checkbox-option.scss +19 -0
  26. package/lib/components/checkbox/commons/checkbox-option.spec.js +71 -0
  27. package/lib/components/checkbox/commons/getShortcutKey.js +11 -0
  28. package/lib/components/checkbox/commons/index.js +13 -0
  29. package/lib/components/checkbox/index.js +27 -0
  30. package/lib/components/commons/build-style-object.js +25 -0
  31. package/lib/components/commons/components/combo-box/combo-box-container.js +33 -0
  32. package/lib/components/commons/components/combo-box/combo-box-container.spec.js +45 -0
  33. package/lib/components/commons/components/combo-box/combo-box-content.js +63 -0
  34. package/lib/components/commons/components/combo-box/combo-box.js +199 -0
  35. package/lib/components/commons/components/combo-box/combo-box.scss +206 -0
  36. package/lib/components/commons/components/combo-box/index.js +13 -0
  37. package/lib/components/commons/components/combo-box/panel/index.js +13 -0
  38. package/lib/components/commons/components/combo-box/panel/option-container.js +61 -0
  39. package/lib/components/commons/components/combo-box/panel/option-container.spec.js +27 -0
  40. package/lib/components/commons/components/combo-box/panel/panel-container.js +28 -0
  41. package/lib/components/commons/components/combo-box/panel/panel-container.spec.js +59 -0
  42. package/lib/components/commons/components/combo-box/panel/panel.js +63 -0
  43. package/lib/components/commons/components/combo-box/panel/panel.spec.js +93 -0
  44. package/lib/components/commons/components/combo-box/selection/__snapshots__/selection.spec.jsx.snap +81 -0
  45. package/lib/components/commons/components/combo-box/selection/delete.js +55 -0
  46. package/lib/components/commons/components/combo-box/selection/delete.spec.js +88 -0
  47. package/lib/components/commons/components/combo-box/selection/displayLabelOrInput.js +29 -0
  48. package/lib/components/commons/components/combo-box/selection/displayLabelOrInput.spec.js +57 -0
  49. package/lib/components/commons/components/combo-box/selection/index.js +13 -0
  50. package/lib/components/commons/components/combo-box/selection/input.js +56 -0
  51. package/lib/components/commons/components/combo-box/selection/label-selection.js +32 -0
  52. package/lib/components/commons/components/combo-box/selection/label-selection.spec.js +45 -0
  53. package/lib/components/commons/components/combo-box/selection/selection-container.js +39 -0
  54. package/lib/components/commons/components/combo-box/selection/selection-container.spec.js +53 -0
  55. package/lib/components/commons/components/combo-box/selection/selection.js +60 -0
  56. package/lib/components/commons/components/combo-box/selection/selection.spec.js +104 -0
  57. package/lib/components/commons/components/combo-box/state-management/actions.js +82 -0
  58. package/lib/components/commons/components/combo-box/state-management/combo-box-context.js +16 -0
  59. package/lib/components/commons/components/combo-box/state-management/index.js +33 -0
  60. package/lib/components/commons/components/combo-box/state-management/initial-state.js +14 -0
  61. package/lib/components/commons/components/combo-box/state-management/reducer/index.js +13 -0
  62. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-blur.js +20 -0
  63. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-change.js +22 -0
  64. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-delete.js +21 -0
  65. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-focus.js +20 -0
  66. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-init.js +38 -0
  67. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/index.js +13 -0
  68. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/keyboard-key-codes.js +18 -0
  69. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-down.js +32 -0
  70. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-up.js +32 -0
  71. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-end.js +25 -0
  72. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-enter.js +21 -0
  73. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-escape.js +20 -0
  74. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-home.js +25 -0
  75. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-tab.js +20 -0
  76. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/reduce-on-keydown.js +40 -0
  77. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-select.js +22 -0
  78. package/lib/components/commons/components/combo-box/state-management/reducer/reducer.js +41 -0
  79. package/lib/components/commons/components/default-label-renderer.js +47 -0
  80. package/lib/components/commons/components/default-label-renderer.spec.js +43 -0
  81. package/lib/components/commons/components/default-option-renderer.js +44 -0
  82. package/lib/components/commons/components/default-option-renderer.spec.js +65 -0
  83. package/lib/components/commons/components/description.js +52 -0
  84. package/lib/components/commons/components/description.spec.js +45 -0
  85. package/lib/components/commons/components/dragger/dragger.js +95 -0
  86. package/lib/components/commons/components/dragger/dragger.scss +8 -0
  87. package/lib/components/commons/components/dragger/dragger.spec.js +80 -0
  88. package/lib/components/commons/components/dragger/index.js +13 -0
  89. package/lib/components/commons/components/errors/errors.js +53 -0
  90. package/lib/components/commons/components/errors/errors.scss +5 -0
  91. package/lib/components/commons/components/errors/errors.spec.js +40 -0
  92. package/lib/components/commons/components/errors/index.js +13 -0
  93. package/lib/components/commons/components/fab/fab.js +50 -0
  94. package/lib/components/commons/components/fab/fab.scss +32 -0
  95. package/lib/components/commons/components/fab/fab.spec.js +76 -0
  96. package/lib/components/commons/components/fab/index.js +13 -0
  97. package/lib/components/commons/components/field-container/field-container.js +41 -0
  98. package/lib/components/commons/components/field-container/filed-container.spec.js +37 -0
  99. package/lib/components/commons/components/field-container/index.js +13 -0
  100. package/lib/components/commons/components/fieldset.js +30 -0
  101. package/lib/components/commons/components/fieldset.scss +5 -0
  102. package/lib/components/commons/components/fieldset.spec.js +51 -0
  103. package/lib/components/commons/components/html-table/index.js +48 -0
  104. package/lib/components/commons/components/html-table/table.js +32 -0
  105. package/lib/components/commons/components/html-table/table.scss +27 -0
  106. package/lib/components/commons/components/html-table/table.spec.js +25 -0
  107. package/lib/components/commons/components/html-table/tbody.js +32 -0
  108. package/lib/components/commons/components/html-table/tbody.spec.js +34 -0
  109. package/lib/components/commons/components/html-table/td.js +43 -0
  110. package/lib/components/commons/components/html-table/td.spec.js +43 -0
  111. package/lib/components/commons/components/html-table/th.js +41 -0
  112. package/lib/components/commons/components/html-table/th.spec.js +46 -0
  113. package/lib/components/commons/components/html-table/thead.js +31 -0
  114. package/lib/components/commons/components/html-table/thead.spec.js +30 -0
  115. package/lib/components/commons/components/html-table/tr.js +33 -0
  116. package/lib/components/commons/components/html-table/tr.spec.js +45 -0
  117. package/lib/components/commons/components/is-network/index.js +13 -0
  118. package/lib/components/commons/components/is-network/is-network.js +53 -0
  119. package/lib/components/commons/components/is-network/is-network.spec.js +34 -0
  120. package/lib/components/commons/components/is-network/use-online-status.js +46 -0
  121. package/lib/components/commons/components/is-network/use-online-status.spec.js +45 -0
  122. package/lib/components/commons/components/label/index.js +13 -0
  123. package/lib/components/commons/components/label/label.js +35 -0
  124. package/lib/components/commons/components/label/label.scss +6 -0
  125. package/lib/components/commons/components/label/label.spec.js +78 -0
  126. package/lib/components/commons/components/lunatic-component-without-label.js +87 -0
  127. package/lib/components/commons/components/md-label/index.js +13 -0
  128. package/lib/components/commons/components/md-label/link.js +54 -0
  129. package/lib/components/commons/components/md-label/md-label.js +45 -0
  130. package/lib/components/commons/components/missing/index.js +13 -0
  131. package/lib/components/commons/components/missing/missing.js +87 -0
  132. package/lib/components/commons/components/missing/missing.scss +30 -0
  133. package/lib/components/commons/components/missing/missing.spec.js +81 -0
  134. package/lib/components/commons/components/nothing-to-display.js +16 -0
  135. package/lib/components/commons/components/nothing-to-display.spec.js +16 -0
  136. package/lib/components/commons/components/orchestrated-component.js +62 -0
  137. package/lib/components/commons/components/variable-status/img/index.js +20 -0
  138. package/lib/components/commons/components/variable-status/index.js +13 -0
  139. package/lib/components/commons/components/variable-status/variable-status.js +85 -0
  140. package/lib/components/commons/components/variable-status/variable-status.scss +39 -0
  141. package/lib/components/commons/components/variable-status/variable-status.spec.js +24 -0
  142. package/lib/components/commons/create-customizable-field.js +29 -0
  143. package/lib/components/commons/create-row-orchestrator.js +51 -0
  144. package/lib/components/commons/icons/checkbox-checked.icon.js +39 -0
  145. package/lib/components/commons/icons/checkbox-unchecked.icon.js +39 -0
  146. package/lib/components/commons/icons/closed.icon.js +36 -0
  147. package/lib/components/commons/icons/cross.icon.js +36 -0
  148. package/lib/components/commons/icons/index.js +76 -0
  149. package/lib/components/commons/icons/load.icon.js +36 -0
  150. package/lib/components/commons/icons/lunatic-icon.js +21 -0
  151. package/lib/components/commons/icons/lunatic-icon.scss +3 -0
  152. package/lib/components/commons/icons/network.icon.js +36 -0
  153. package/lib/components/commons/icons/on-drag.icon.js +36 -0
  154. package/lib/components/commons/icons/opened.icon.js +36 -0
  155. package/lib/components/commons/icons/radio-checked.icon.js +39 -0
  156. package/lib/components/commons/icons/radio-unchecked.icon.js +39 -0
  157. package/lib/components/commons/index.js +131 -0
  158. package/lib/components/commons/prop-types/declarations.js +19 -0
  159. package/lib/components/commons/prop-types/index.js +41 -0
  160. package/lib/components/commons/prop-types/lines.js +13 -0
  161. package/lib/components/commons/prop-types/options.js +13 -0
  162. package/lib/components/commons/prop-types/response.js +13 -0
  163. package/lib/components/commons/prop-types/value-type.js +14 -0
  164. package/lib/components/commons/safety-label.js +26 -0
  165. package/lib/components/commons/use-document-add-event-listener.js +84 -0
  166. package/lib/components/commons/use-on-handle-change.js +19 -0
  167. package/lib/components/commons/use-on-handle-change.spec.js +46 -0
  168. package/lib/components/commons/use-options-keydown.js +24 -0
  169. package/lib/components/commons/use-previous.js +16 -0
  170. package/lib/components/components.js +171 -0
  171. package/lib/components/datepicker/html/datepicker-container.js +18 -0
  172. package/lib/components/datepicker/html/datepicker-input.js +37 -0
  173. package/lib/components/datepicker/html/datepicker.js +69 -0
  174. package/lib/components/datepicker/html/datepicker.scss +1 -0
  175. package/lib/components/datepicker/index.js +13 -0
  176. package/lib/components/datepicker/lunatic-datepicker.js +61 -0
  177. package/lib/components/declarations/declaration.js +22 -0
  178. package/lib/components/declarations/declaration.spec.js +30 -0
  179. package/lib/components/declarations/declarations-after-text.js +25 -0
  180. package/lib/components/declarations/declarations-before-text.js +25 -0
  181. package/lib/components/declarations/declarations-detachable.js +25 -0
  182. package/lib/components/declarations/declarations.js +50 -0
  183. package/lib/components/declarations/declarations.scss +36 -0
  184. package/lib/components/declarations/declarations.spec.js +79 -0
  185. package/lib/components/declarations/index.js +43 -0
  186. package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +39 -0
  187. package/lib/components/dropdown/html/dropdown-simple/index.js +13 -0
  188. package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +46 -0
  189. package/lib/components/dropdown/html/dropdown-simple/simple-option-renderer.js +45 -0
  190. package/lib/components/dropdown/html/dropdown-writable/dropdown-writable.js +62 -0
  191. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +37 -0
  192. package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +24 -0
  193. package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +29 -0
  194. package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +22 -0
  195. package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +13 -0
  196. package/lib/components/dropdown/html/dropdown-writable/index.js +13 -0
  197. package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +52 -0
  198. package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +146 -0
  199. package/lib/components/dropdown/html/dropdown.js +51 -0
  200. package/lib/components/dropdown/html/dropdown.scss +41 -0
  201. package/lib/components/dropdown/index.js +13 -0
  202. package/lib/components/dropdown/lunatic-dropdown.js +75 -0
  203. package/lib/components/filter-description/component.js +22 -0
  204. package/lib/components/filter-description/component.spec.js +23 -0
  205. package/lib/components/filter-description/index.js +13 -0
  206. package/lib/components/index.js +28 -0
  207. package/lib/components/index.scss +136 -0
  208. package/lib/components/input/html/input.js +79 -0
  209. package/lib/components/input/html/input.scss +42 -0
  210. package/lib/components/input/index.js +13 -0
  211. package/lib/components/input/lunatic-input.js +57 -0
  212. package/lib/components/input-number/html/__snapshots__/inpute-number.spec.jsx.snap +92 -0
  213. package/lib/components/input-number/html/input-number-default.js +78 -0
  214. package/lib/components/input-number/html/input-number-thousand.js +54 -0
  215. package/lib/components/input-number/html/input-number.js +102 -0
  216. package/lib/components/input-number/html/input-number.scss +11 -0
  217. package/lib/components/input-number/html/inpute-number.spec.js +110 -0
  218. package/lib/components/input-number/index.js +13 -0
  219. package/lib/components/input-number/lunatic-input-number.js +64 -0
  220. package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +12 -0
  221. package/lib/components/loop/block-for-loop/block-for-loop.js +140 -0
  222. package/lib/components/loop/block-for-loop/index.js +13 -0
  223. package/lib/components/loop/block-for-loop/row.js +66 -0
  224. package/lib/components/loop/commons/get-init-length.js +16 -0
  225. package/lib/components/loop/commons/handle-row-button.js +22 -0
  226. package/lib/components/loop/commons/index.js +20 -0
  227. package/lib/components/loop/commons/row-component.js +70 -0
  228. package/lib/components/loop/index.js +13 -0
  229. package/lib/components/loop/loop.js +82 -0
  230. package/lib/components/loop/roster-for-loop/body.js +56 -0
  231. package/lib/components/loop/roster-for-loop/header.js +34 -0
  232. package/lib/components/loop/roster-for-loop/index.js +13 -0
  233. package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +12 -0
  234. package/lib/components/loop/roster-for-loop/roster-for-loop.js +124 -0
  235. package/lib/components/loop/roster-for-loop/roster-table.js +48 -0
  236. package/lib/components/loop/roster-for-loop/roster.scss +42 -0
  237. package/lib/components/loop/roster-for-loop/row.js +73 -0
  238. package/lib/components/modal-controls/close-or-skip.js +41 -0
  239. package/lib/components/modal-controls/close-or-skip.spec.js +52 -0
  240. package/lib/components/modal-controls/index.js +13 -0
  241. package/lib/components/modal-controls/modal-container.js +22 -0
  242. package/lib/components/modal-controls/modal-container.spec.js +24 -0
  243. package/lib/components/modal-controls/modal-controls.js +78 -0
  244. package/lib/components/modal-controls/modal-controls.scss +48 -0
  245. package/lib/components/modal-controls/modal-controls.spec.js +77 -0
  246. package/lib/components/pairwise-links/index.js +13 -0
  247. package/lib/components/pairwise-links/orchestrator.js +70 -0
  248. package/lib/components/pairwise-links/pairwise-links.js +65 -0
  249. package/lib/components/pairwise-links/row.js +78 -0
  250. package/lib/components/radio/html/dist/radio-group.css +12 -0
  251. package/lib/components/radio/html/radio-group-content.js +45 -0
  252. package/lib/components/radio/html/radio-group-content.spec.js +86 -0
  253. package/lib/components/radio/html/radio-group.js +67 -0
  254. package/lib/components/radio/html/radio-group.scss +21 -0
  255. package/lib/components/radio/html/radio-option.js +105 -0
  256. package/lib/components/radio/html/radio-option.spec.js +80 -0
  257. package/lib/components/radio/index.js +13 -0
  258. package/lib/components/radio/lunatic-radio-group.js +64 -0
  259. package/lib/components/radio/radio-group.js +48 -0
  260. package/lib/components/radio/radio.scss +19 -0
  261. package/lib/components/roundabout/components/roundabout-container.js +20 -0
  262. package/lib/components/roundabout/components/roundabout-container.spec.js +23 -0
  263. package/lib/components/roundabout/components/roundabout-it-button.js +80 -0
  264. package/lib/components/roundabout/components/roundabout-it-button.spec.js +102 -0
  265. package/lib/components/roundabout/components/roundabout-it-container.js +19 -0
  266. package/lib/components/roundabout/components/roundabout-it-container.spec.js +23 -0
  267. package/lib/components/roundabout/components/roundabout-it-title.js +19 -0
  268. package/lib/components/roundabout/components/roundabout-it-title.spec.js +18 -0
  269. package/lib/components/roundabout/components/roundabout-label.js +19 -0
  270. package/lib/components/roundabout/components/roundabout-label.spec.js +18 -0
  271. package/lib/components/roundabout/components/roundabout-pending.js +18 -0
  272. package/lib/components/roundabout/components/roundabout-pending.spec.js +15 -0
  273. package/lib/components/roundabout/components/roundabout.scss +16 -0
  274. package/lib/components/roundabout/index.js +13 -0
  275. package/lib/components/roundabout/lunatic-roundabout.js +62 -0
  276. package/lib/components/roundabout/redirect.js +23 -0
  277. package/lib/components/roundabout/redirect.spec.js +19 -0
  278. package/lib/components/roundabout/roundabout.js +89 -0
  279. package/lib/components/roundabout/roundabout.spec.js +71 -0
  280. package/lib/components/sequence/index.js +13 -0
  281. package/lib/components/sequence/sequence.js +37 -0
  282. package/lib/components/sequence/sequence.scss +10 -0
  283. package/lib/components/sequence/sequence.spec.js +79 -0
  284. package/lib/components/subsequence/index.js +13 -0
  285. package/lib/components/subsequence/subsequence.js +35 -0
  286. package/lib/components/subsequence/subsequence.spec.js +79 -0
  287. package/lib/components/suggester/find-best-label/find-best-label.js +55 -0
  288. package/lib/components/suggester/find-best-label/index.js +13 -0
  289. package/lib/components/suggester/html/alert-icon.svg +2 -0
  290. package/lib/components/suggester/html/default-style.scss +175 -0
  291. package/lib/components/suggester/html/notification.js +31 -0
  292. package/lib/components/suggester/html/suggester.js +142 -0
  293. package/lib/components/suggester/html/wait-icon.svg +17 -0
  294. package/lib/components/suggester/html/warn-icon.svg +1 -0
  295. package/lib/components/suggester/idb-suggester/check-store.js +107 -0
  296. package/lib/components/suggester/idb-suggester/dist/index.dev.js +12 -0
  297. package/lib/components/suggester/idb-suggester/idb-suggester.js +90 -0
  298. package/lib/components/suggester/idb-suggester/index.js +12 -0
  299. package/lib/components/suggester/idb-suggester/suggester-notification.js +61 -0
  300. package/lib/components/suggester/idb-suggester/suggester-status.js +52 -0
  301. package/lib/components/suggester/index.js +13 -0
  302. package/lib/components/suggester/lunatic-suggester.js +106 -0
  303. package/lib/components/suggester/searching/create-searching.js +73 -0
  304. package/lib/components/suggester/searching/index.js +13 -0
  305. package/lib/components/suggester-loader-widget/index.js +13 -0
  306. package/lib/components/suggester-loader-widget/loader-row.js +129 -0
  307. package/lib/components/suggester-loader-widget/loader.js +136 -0
  308. package/lib/components/suggester-loader-widget/progress.js +41 -0
  309. package/lib/components/suggester-loader-widget/tools/action-tool.js +30 -0
  310. package/lib/components/suggester-loader-widget/tools/index.js +20 -0
  311. package/lib/components/suggester-loader-widget/tools/tools.js +18 -0
  312. package/lib/components/suggester-loader-widget/widget-container.js +44 -0
  313. package/lib/components/suggester-loader-widget/widget.js +145 -0
  314. package/lib/components/suggester-loader-widget/widget.scss +176 -0
  315. package/lib/components/switch/html/switch.js +95 -0
  316. package/lib/components/switch/html/switch.scss +47 -0
  317. package/lib/components/switch/index.js +13 -0
  318. package/lib/components/switch/lunatic-switch.js +66 -0
  319. package/lib/components/table/cell.js +102 -0
  320. package/lib/components/table/header.js +40 -0
  321. package/lib/components/table/index.js +13 -0
  322. package/lib/components/table/lunatic-table.js +92 -0
  323. package/lib/components/table/row.js +43 -0
  324. package/lib/components/table/table-orchestrator.js +50 -0
  325. package/lib/components/textarea/html/textarea.js +54 -0
  326. package/lib/components/textarea/html/textarea.scss +8 -0
  327. package/lib/components/textarea/index.js +13 -0
  328. package/lib/components/textarea/lunatic-textarea.js +72 -0
  329. package/lib/components/type.js +5 -0
  330. package/lib/constants/component-types.js +8 -0
  331. package/lib/constants/declarations.js +28 -0
  332. package/lib/constants/event-types.js +29 -0
  333. package/lib/constants/index.js +60 -0
  334. package/lib/constants/supported-preferences.js +13 -0
  335. package/lib/constants/value-types.js +16 -0
  336. package/lib/constants/variable-types.js +12 -0
  337. package/lib/dist/index.dev.js +31 -0
  338. package/lib/i18n/build-dictionary.js +59 -0
  339. package/lib/i18n/dictionary.js +34 -0
  340. package/lib/i18n/index.js +28 -0
  341. package/lib/i18n/inputNumberProps.js +20 -0
  342. package/lib/index.js +28 -33
  343. package/lib/insee.d.js +1 -0
  344. package/lib/src/components/commons/components/md-label/index.d.ts +1 -0
  345. package/lib/src/components/commons/components/md-label/link.d.ts +7 -0
  346. package/lib/src/components/commons/components/md-label/md-label.d.ts +8 -0
  347. package/lib/src/components/type.d.ts +195 -0
  348. package/lib/src/constants/component-types.d.ts +1 -0
  349. package/lib/src/constants/declarations.d.ts +9 -0
  350. package/lib/src/constants/event-types.d.ts +10 -0
  351. package/lib/src/constants/index.d.ts +5 -0
  352. package/lib/src/constants/supported-preferences.d.ts +1 -0
  353. package/lib/src/constants/value-types.d.ts +5 -0
  354. package/lib/src/constants/variable-types.d.ts +2 -0
  355. package/lib/src/i18n/build-dictionary.d.ts +24 -0
  356. package/lib/src/i18n/dictionary.d.ts +37 -0
  357. package/lib/src/i18n/index.d.ts +7 -0
  358. package/lib/src/i18n/inputNumberProps.d.ts +13 -0
  359. package/lib/src/index.d.ts +3 -0
  360. package/lib/src/type.utils.d.ts +1 -0
  361. package/lib/src/use-lunatic/actions.d.ts +289 -0
  362. package/lib/src/use-lunatic/commons/calculated-variables.d.ts +8 -0
  363. package/lib/src/use-lunatic/commons/check-loops.d.ts +3 -0
  364. package/lib/src/use-lunatic/commons/check-pager.d.ts +5 -0
  365. package/lib/src/use-lunatic/commons/compile-controls.d.ts +7 -0
  366. package/lib/src/use-lunatic/commons/compose.d.ts +3 -0
  367. package/lib/src/use-lunatic/commons/create-map-pages.d.ts +7 -0
  368. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +3 -0
  369. package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +9 -0
  370. package/lib/src/use-lunatic/commons/execute-expression/create-memoizer.d.ts +8 -0
  371. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +24 -0
  372. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +11 -0
  373. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.spec.d.ts +1 -0
  374. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.d.ts +7 -0
  375. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.spec.d.ts +1 -0
  376. package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +6 -0
  377. package/lib/src/use-lunatic/commons/execute-expression/index.d.ts +1 -0
  378. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +9 -0
  379. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.spec.d.ts +1 -0
  380. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +6 -0
  381. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +12 -0
  382. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +699 -0
  383. package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +6 -0
  384. package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +11 -0
  385. package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +9 -0
  386. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +571 -0
  387. package/lib/src/use-lunatic/commons/fill-components/index.d.ts +1 -0
  388. package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +6 -0
  389. package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +6 -0
  390. package/lib/src/use-lunatic/commons/get-component-value/index.d.ts +1 -0
  391. package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +7 -0
  392. package/lib/src/use-lunatic/commons/get-data.d.ts +26 -0
  393. package/lib/src/use-lunatic/commons/get-errors-without-empty-value.d.ts +6 -0
  394. package/lib/src/use-lunatic/commons/getOverview.d.ts +19 -0
  395. package/lib/src/use-lunatic/commons/index.d.ts +13 -0
  396. package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +6 -0
  397. package/lib/src/use-lunatic/commons/is-paginated-loop.d.ts +6 -0
  398. package/lib/src/use-lunatic/commons/is-roundabout.d.ts +2 -0
  399. package/lib/src/use-lunatic/commons/page-tag.d.ts +12 -0
  400. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +4 -0
  401. package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +5 -0
  402. package/lib/src/use-lunatic/index.d.ts +1 -0
  403. package/lib/src/use-lunatic/initial-state.d.ts +3 -0
  404. package/lib/src/use-lunatic/lunatic-context.d.ts +31 -0
  405. package/lib/src/use-lunatic/reducer/commons/index.d.ts +4 -0
  406. package/lib/src/use-lunatic/reducer/commons/is-empty-on-empty-page.d.ts +3 -0
  407. package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +12 -0
  408. package/lib/src/use-lunatic/reducer/commons/resize-array-variable.d.ts +5 -0
  409. package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +6 -0
  410. package/lib/src/use-lunatic/reducer/index.d.ts +1 -0
  411. package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +2 -0
  412. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +99 -0
  413. package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +4 -0
  414. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +3 -0
  415. package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +4 -0
  416. package/lib/src/use-lunatic/reducer/reduce-handle-change/index.d.ts +1 -0
  417. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +7 -0
  418. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.d.ts +1 -0
  419. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +4 -0
  420. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +15 -0
  421. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +7 -0
  422. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +4 -0
  423. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +14 -0
  424. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +9 -0
  425. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +15 -0
  426. package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +4 -0
  427. package/lib/src/use-lunatic/reducer/reduce-roundabout.d.ts +99 -0
  428. package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +3 -0
  429. package/lib/src/use-lunatic/reducer/reducer.d.ts +4 -0
  430. package/lib/src/use-lunatic/reducer/validate-controls/validation-utils.d.ts +6 -0
  431. package/lib/src/use-lunatic/type-source.d.ts +281 -0
  432. package/lib/src/use-lunatic/type.d.ts +143 -0
  433. package/lib/src/use-lunatic/use-lunatic.d.ts +84 -0
  434. package/lib/src/use-lunatic/use-lunatic.test.d.ts +1 -0
  435. package/lib/src/use-lunatic/use-suggesters.d.ts +19 -0
  436. package/lib/src/utils/constants/features.d.ts +3 -0
  437. package/lib/src/utils/constants/index.d.ts +5 -0
  438. package/lib/src/utils/constants/links.d.ts +2 -0
  439. package/lib/src/utils/constants/missing.d.ts +2 -0
  440. package/lib/src/utils/constants/variable-status.d.ts +5 -0
  441. package/lib/src/utils/constants/variable-types.d.ts +1 -0
  442. package/lib/src/utils/idb-tools/clear-store.d.ts +2 -0
  443. package/lib/src/utils/idb-tools/get-idb.d.ts +2 -0
  444. package/lib/src/utils/idb-tools/insert-entity.d.ts +2 -0
  445. package/lib/src/utils/is-element.d.ts +3 -0
  446. package/lib/src/utils/is-object.d.ts +4 -0
  447. package/lib/src/utils/object.d.ts +4 -0
  448. package/lib/src/utils/store-tools/constantes.d.ts +21 -0
  449. package/lib/src/utils/store-tools/initStore.d.ts +2 -0
  450. package/lib/src/utils/store-tools/open-or-create-store.d.ts +2 -0
  451. package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +7 -0
  452. package/lib/src/utils/suggester-workers/create-worker-ts.d.ts +1 -0
  453. package/lib/src/utils/to-number.d.ts +4 -0
  454. package/lib/src/utils/vtl/dataset-builder.d.ts +5 -0
  455. package/lib/src/utils/vtl/index.d.ts +1 -0
  456. package/lib/stories/Introduction.stories.mdx +114 -0
  457. package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +34 -0
  458. package/lib/stories/checkbox-boolean/source.json +58 -0
  459. package/lib/stories/checkbox-group/checkbox-group.stories.js +34 -0
  460. package/lib/stories/checkbox-group/source.json +86 -0
  461. package/lib/stories/checkbox-one/checkboxOne.stories.js +43 -0
  462. package/lib/stories/checkbox-one/source.json +52 -0
  463. package/lib/stories/checkboxGroup/checkboxGroup.stories.js +43 -0
  464. package/lib/stories/checkboxGroup/source.json +403 -0
  465. package/lib/stories/custom-mui/checkbox-boolean-mui.js +32 -0
  466. package/lib/stories/custom-mui/checkbox-group-mui.js +68 -0
  467. package/lib/stories/custom-mui/checkbox-one-mui.js +16 -0
  468. package/lib/stories/custom-mui/index.js +111 -0
  469. package/lib/stories/custom-mui/input-mui.js +52 -0
  470. package/lib/stories/custom-mui/input-number-mui.js +40 -0
  471. package/lib/stories/custom-mui/radio-mui.js +62 -0
  472. package/lib/stories/custom-mui/suggester-mui/index.js +13 -0
  473. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +304 -0
  474. package/lib/stories/custom-mui/switch-mui.js +47 -0
  475. package/lib/stories/custom-mui/table-mui.js +28 -0
  476. package/lib/stories/custom-mui/tbody-mui.js +23 -0
  477. package/lib/stories/custom-mui/td-mui.js +25 -0
  478. package/lib/stories/custom-mui/textarea-mui.js +43 -0
  479. package/lib/stories/custom-mui/th-mui.js +24 -0
  480. package/lib/stories/custom-mui/thead-mui.js +23 -0
  481. package/lib/stories/custom-mui/tr-mui.js +33 -0
  482. package/lib/stories/date-picker/data.json +3 -0
  483. package/lib/stories/date-picker/datepicker.stories.js +38 -0
  484. package/lib/stories/date-picker/source.json +110 -0
  485. package/lib/stories/declaration/data.json +1 -0
  486. package/lib/stories/declaration/input.stories.js +36 -0
  487. package/lib/stories/declaration/source.json +74 -0
  488. package/lib/stories/dropdown/data.json +16 -0
  489. package/lib/stories/dropdown/dropdown.stories.js +39 -0
  490. package/lib/stories/dropdown/source.json +158 -0
  491. package/lib/stories/filter-description/filter-description.stories.js +50 -0
  492. package/lib/stories/filter-description/source-options.json +81 -0
  493. package/lib/stories/filter-description/source.json +11 -0
  494. package/lib/stories/input/data.json +1 -0
  495. package/lib/stories/input/input.stories.js +36 -0
  496. package/lib/stories/input/source.json +91 -0
  497. package/lib/stories/input-number/input-number.stories.js +56 -0
  498. package/lib/stories/input-number/source-euros.json +37 -0
  499. package/lib/stories/input-number/source-thansand.json +34 -0
  500. package/lib/stories/input-number/source.json +33 -0
  501. package/lib/stories/loop/block-for-loop.stories.js +41 -0
  502. package/lib/stories/loop/roster-for-loop.stories.js +34 -0
  503. package/lib/stories/loop/source-bloc.json +114 -0
  504. package/lib/stories/loop/source-roster.json +114 -0
  505. package/lib/stories/loop/source-with-header.json +127 -0
  506. package/lib/stories/overview/data.json +1 -0
  507. package/lib/stories/overview/overview.stories.js +37 -0
  508. package/lib/stories/overview/source.json +28 -0
  509. package/lib/stories/overview/sourceWithHierarchy.json +6290 -0
  510. package/lib/stories/pairwise/data.json +12 -0
  511. package/lib/stories/pairwise/links.json +270 -0
  512. package/lib/stories/pairwise/pairwise-links.stories.js +137 -0
  513. package/lib/stories/paste-questionnaire/source.json +6290 -0
  514. package/lib/stories/paste-questionnaire/test.stories.js +84 -0
  515. package/lib/stories/questionnaires/logement/data.json +2686 -0
  516. package/lib/stories/questionnaires/logement/logement.stories.js +76 -0
  517. package/lib/stories/questionnaires/logement/source-sequence.json +34181 -0
  518. package/lib/stories/questionnaires/logement/source-sum.json +34612 -0
  519. package/lib/stories/questionnaires/logement/source.json +34191 -0
  520. package/lib/stories/questionnaires/recensement/data.json +12 -0
  521. package/lib/stories/questionnaires/recensement/recensement.stories.js +52 -0
  522. package/lib/stories/questionnaires/recensement/source.json +15190 -0
  523. package/lib/stories/questionnaires/rp/data.json +5 -0
  524. package/lib/stories/questionnaires/rp/rp.stories.js +37 -0
  525. package/lib/stories/questionnaires/rp/source.json +262 -0
  526. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +553 -0
  527. package/lib/stories/questionnaires/simpsons/source.json +6296 -0
  528. package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +848 -0
  529. package/lib/stories/questionnaires-test/V2_MinMaxSum_Boucles.json +509 -0
  530. package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4091 -0
  531. package/lib/stories/questionnaires-test/V2_TCMRallyeGames.json +2892 -0
  532. package/lib/stories/questionnaires-test/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +666 -0
  533. package/lib/stories/questionnaires-test/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +1966 -0
  534. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees2_PasPageFin.json +709 -0
  535. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +533 -0
  536. package/lib/stories/questionnaires-test/controls/boucles-n.json +202 -0
  537. package/lib/stories/questionnaires-test/controls/controls.stories.js +97 -0
  538. package/lib/stories/questionnaires-test/test-dylan.json +558 -0
  539. package/lib/stories/questionnaires-test/test.stories.js +93 -0
  540. package/lib/stories/radio/radio.stories.js +43 -0
  541. package/lib/stories/radio/source.json +51 -0
  542. package/lib/stories/roundabout/data.json +25 -0
  543. package/lib/stories/roundabout/roundabout.stories.js +36 -0
  544. package/lib/stories/roundabout/source.json +273 -0
  545. package/lib/stories/suggester/simple.json +146 -0
  546. package/lib/stories/suggester/source.json +254 -0
  547. package/lib/stories/suggester/suggester-workers.stories.js +208 -0
  548. package/lib/stories/suggester/suggester.stories.js +84 -0
  549. package/lib/stories/switch/README.md +31 -0
  550. package/lib/stories/switch/data-forced.json +48 -0
  551. package/lib/stories/switch/source.json +80 -0
  552. package/lib/stories/switch/switch.stories.js +39 -0
  553. package/lib/stories/table/data-roster.json +1 -0
  554. package/lib/stories/table/data.json +1 -0
  555. package/lib/stories/table/source-roster.json +513 -0
  556. package/lib/stories/table/source.json +31 -0
  557. package/lib/stories/table/table-dynamique.json +67 -0
  558. package/lib/stories/table/table.stories.js +63 -0
  559. package/lib/stories/textarea/data.json +1 -0
  560. package/lib/stories/textarea/source.json +51 -0
  561. package/lib/stories/textarea/textarea.stories.js +36 -0
  562. package/lib/stories/utils/custom-lunatic.scss +28 -0
  563. package/lib/stories/utils/default-arg-types.js +22 -0
  564. package/lib/stories/utils/options.js +32 -0
  565. package/lib/stories/utils/orchestrator.js +263 -0
  566. package/lib/stories/utils/orchestrator.scss +5 -0
  567. package/lib/stories/utils/overview.js +54 -0
  568. package/lib/stories/utils/overview.scss +30 -0
  569. package/lib/stories/utils/waiting/index.js +13 -0
  570. package/lib/stories/utils/waiting/preloader.svg +1 -0
  571. package/lib/stories/utils/waiting/waiting.js +33 -0
  572. package/lib/stories/utils/waiting/waiting.scss +21 -0
  573. package/lib/tests/utils/lunatic.d.ts +11 -0
  574. package/lib/type.utils.js +5 -0
  575. package/lib/use-lunatic/actions.js +60 -0
  576. package/lib/use-lunatic/commons/calculated-variables.js +104 -0
  577. package/lib/use-lunatic/commons/check-loops.js +99 -0
  578. package/lib/use-lunatic/commons/check-pager.js +24 -0
  579. package/lib/use-lunatic/commons/compile-controls.js +72 -0
  580. package/lib/use-lunatic/commons/compose.js +20 -0
  581. package/lib/use-lunatic/commons/create-map-pages.js +81 -0
  582. package/lib/use-lunatic/commons/execute-condition-filter.js +27 -0
  583. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +268 -0
  584. package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +63 -0
  585. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +148 -0
  586. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +91 -0
  587. package/lib/use-lunatic/commons/execute-expression/execute-expression.spec.js +38 -0
  588. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +40 -0
  589. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.spec.js +31 -0
  590. package/lib/use-lunatic/commons/execute-expression/get-safety-expression.js +35 -0
  591. package/lib/use-lunatic/commons/execute-expression/index.js +13 -0
  592. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +111 -0
  593. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +42 -0
  594. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +22 -0
  595. package/lib/use-lunatic/commons/fill-components/fill-components.js +45 -0
  596. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +30 -0
  597. package/lib/use-lunatic/commons/fill-components/fill-management.js +23 -0
  598. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +35 -0
  599. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +24 -0
  600. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +46 -0
  601. package/lib/use-lunatic/commons/fill-components/index.js +13 -0
  602. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +28 -0
  603. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +176 -0
  604. package/lib/use-lunatic/commons/get-component-value/index.js +13 -0
  605. package/lib/use-lunatic/commons/get-components-from-state.js +47 -0
  606. package/lib/use-lunatic/commons/get-data.js +80 -0
  607. package/lib/use-lunatic/commons/get-errors-without-empty-value.js +25 -0
  608. package/lib/use-lunatic/commons/getOverview.js +40 -0
  609. package/lib/use-lunatic/commons/index.js +109 -0
  610. package/lib/use-lunatic/commons/is-First-last-page.js +18 -0
  611. package/lib/use-lunatic/commons/is-paginated-loop.js +11 -0
  612. package/lib/use-lunatic/commons/is-roundabout.js +10 -0
  613. package/lib/use-lunatic/commons/load-suggesters.js +158 -0
  614. package/lib/use-lunatic/commons/page-tag.js +72 -0
  615. package/lib/use-lunatic/commons/use-components-from-state.js +41 -0
  616. package/lib/use-lunatic/hooks/use-loop-variables.js +26 -0
  617. package/lib/use-lunatic/index.js +13 -0
  618. package/lib/use-lunatic/initial-state.js +49 -0
  619. package/lib/use-lunatic/lunatic-context.js +83 -0
  620. package/lib/use-lunatic/reducer/commons/index.js +44 -0
  621. package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +32 -0
  622. package/lib/use-lunatic/reducer/commons/is-loop-component.js +10 -0
  623. package/lib/use-lunatic/reducer/commons/resize-array-variable.js +32 -0
  624. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +29 -0
  625. package/lib/use-lunatic/reducer/index.js +13 -0
  626. package/lib/use-lunatic/reducer/overview/overview-on-change.js +49 -0
  627. package/lib/use-lunatic/reducer/overview/overview-on-init.js +104 -0
  628. package/lib/use-lunatic/reducer/reduce-go-next-page.js +181 -0
  629. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +146 -0
  630. package/lib/use-lunatic/reducer/reduce-go-to-page.js +79 -0
  631. package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +926 -0
  632. package/lib/use-lunatic/reducer/reduce-handle-change/index.js +13 -0
  633. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +72 -0
  634. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.js +46 -0
  635. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +115 -0
  636. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +89 -0
  637. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +88 -0
  638. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +113 -0
  639. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.js +44 -0
  640. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +28 -0
  641. package/lib/use-lunatic/reducer/reduce-on-init.js +238 -0
  642. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +21 -0
  643. package/lib/use-lunatic/reducer/reduce-roundabout.js +29 -0
  644. package/lib/use-lunatic/reducer/reduce-update-state.js +22 -0
  645. package/lib/use-lunatic/reducer/reducer.js +37 -0
  646. package/lib/use-lunatic/reducer/validate-controls/validation-utils.js +63 -0
  647. package/lib/use-lunatic/type-source.js +24 -0
  648. package/lib/use-lunatic/type.js +5 -0
  649. package/lib/use-lunatic/use-lunatic.js +189 -0
  650. package/lib/use-lunatic/use-lunatic.test.js +168 -0
  651. package/lib/use-lunatic/use-suggesters.js +158 -0
  652. package/lib/utils/constants/alphabet.js +8 -0
  653. package/lib/utils/constants/features.js +12 -0
  654. package/lib/utils/constants/index.js +60 -0
  655. package/lib/utils/constants/links.js +10 -0
  656. package/lib/utils/constants/missing.js +10 -0
  657. package/lib/utils/constants/variable-status.js +16 -0
  658. package/lib/utils/constants/variable-types.js +8 -0
  659. package/lib/utils/idb-tools/clear-store.js +40 -0
  660. package/lib/utils/idb-tools/create-db-opener.js +47 -0
  661. package/lib/utils/idb-tools/create-open-db.js +29 -0
  662. package/lib/utils/idb-tools/get-entity.js +21 -0
  663. package/lib/utils/idb-tools/get-idb.js +13 -0
  664. package/lib/utils/idb-tools/idb-bulk-insert.js +134 -0
  665. package/lib/utils/idb-tools/index.js +64 -0
  666. package/lib/utils/idb-tools/insert-entity.js +21 -0
  667. package/lib/utils/idb-tools/open-db.js +24 -0
  668. package/lib/utils/idb-tools/open-or-create-db.js +42 -0
  669. package/lib/utils/is-element.js +10 -0
  670. package/lib/utils/is-object.js +13 -0
  671. package/lib/utils/object.js +31 -0
  672. package/lib/utils/store-tools/auto-load.js +162 -0
  673. package/lib/utils/store-tools/clear-store-data.js +33 -0
  674. package/lib/utils/store-tools/clear-store-info.js +33 -0
  675. package/lib/utils/store-tools/constantes.js +31 -0
  676. package/lib/utils/store-tools/create/create.js +51 -0
  677. package/lib/utils/store-tools/create/index.js +20 -0
  678. package/lib/utils/store-tools/create/update-store-info.js +27 -0
  679. package/lib/utils/store-tools/get-store-count.js +24 -0
  680. package/lib/utils/store-tools/index.js +54 -0
  681. package/lib/utils/store-tools/initStore.js +56 -0
  682. package/lib/utils/store-tools/open-or-create-store.js +52 -0
  683. package/lib/utils/store-tools/use-store-index.js +58 -0
  684. package/lib/utils/suggester-workers/append-to-index/append.js +78 -0
  685. package/lib/utils/suggester-workers/append-to-index/append.worker.js +33 -0
  686. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +66 -0
  687. package/lib/utils/suggester-workers/append-to-index/dist/append.worker.dev.js +37 -0
  688. package/lib/utils/suggester-workers/append-to-index/dist/create-append-task.js +69 -0
  689. package/lib/utils/suggester-workers/append-to-index/dist/index.dev.js +24 -0
  690. package/lib/utils/suggester-workers/append-to-index/index.js +20 -0
  691. package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +88 -0
  692. package/lib/utils/suggester-workers/append-to-index/store-messages.js +45 -0
  693. package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +54 -0
  694. package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +77 -0
  695. package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +36 -0
  696. package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +21 -0
  697. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +36 -0
  698. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +15 -0
  699. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +19 -0
  700. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +17 -0
  701. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +25 -0
  702. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +24 -0
  703. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +15 -0
  704. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +24 -0
  705. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +23 -0
  706. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +17 -0
  707. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +53 -0
  708. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +15 -0
  709. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +16 -0
  710. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +15 -0
  711. package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +20 -0
  712. package/lib/utils/suggester-workers/commons-tokenizer/filters/stop-words.js +9 -0
  713. package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +14 -0
  714. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +23 -0
  715. package/lib/utils/suggester-workers/commons-tokenizer/index.js +69 -0
  716. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +18 -0
  717. package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +12 -0
  718. package/lib/utils/suggester-workers/create-worker-ts.js +54 -0
  719. package/lib/utils/suggester-workers/create-worker.js +54 -0
  720. package/lib/utils/suggester-workers/find-best-label/find-best-label.js +63 -0
  721. package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +53 -0
  722. package/lib/utils/suggester-workers/find-best-label/index.js +1 -0
  723. package/lib/utils/suggester-workers/find-best-label/tokenize.js +45 -0
  724. package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +25 -0
  725. package/lib/utils/suggester-workers/searching/compute-score.js +36 -0
  726. package/lib/utils/suggester-workers/searching/get-db.js +48 -0
  727. package/lib/utils/suggester-workers/searching/index.js +13 -0
  728. package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +28 -0
  729. package/lib/utils/suggester-workers/searching/order/index.js +25 -0
  730. package/lib/utils/suggester-workers/searching/query-parser/index.js +20 -0
  731. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +12 -0
  732. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +27 -0
  733. package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +35 -0
  734. package/lib/utils/suggester-workers/searching/resolve-query-parser.js +57 -0
  735. package/lib/utils/suggester-workers/searching/search-in-index.js +22 -0
  736. package/lib/utils/suggester-workers/searching/searching.js +141 -0
  737. package/lib/utils/suggester-workers/searching/searching.worker.js +20 -0
  738. package/lib/utils/to-number.js +18 -0
  739. package/lib/utils/vtl/dataset-builder.js +27 -0
  740. package/lib/utils/vtl/index.js +13 -0
  741. package/package.json +164 -143
  742. package/lib/index.js.map +0 -1
  743. package/src/components/breadcrumb/breadcrumb.scss +0 -20
  744. package/src/components/breadcrumb/component.js +0 -29
  745. package/src/components/breadcrumb/index.js +0 -1
  746. package/src/components/button/button.scss +0 -24
  747. package/src/components/button/component.js +0 -25
  748. package/src/components/button/index.js +0 -1
  749. package/src/components/checkbox/boolean.js +0 -152
  750. package/src/components/checkbox/checkbox.scss +0 -71
  751. package/src/components/checkbox/group.js +0 -187
  752. package/src/components/checkbox/index.js +0 -3
  753. package/src/components/checkbox/one.js +0 -10
  754. package/src/components/components.js +0 -17
  755. package/src/components/datepicker/component.js +0 -10
  756. package/src/components/datepicker/datepicker.scss +0 -1
  757. package/src/components/datepicker/index.js +0 -1
  758. package/src/components/declarations/component.js +0 -38
  759. package/src/components/declarations/declarations.scss +0 -38
  760. package/src/components/declarations/index.js +0 -1
  761. package/src/components/declarations/wrappers/index.js +0 -3
  762. package/src/components/declarations/wrappers/input-declarations-wrapper.js +0 -229
  763. package/src/components/declarations/wrappers/list-declarations-wrapper.js +0 -203
  764. package/src/components/declarations/wrappers/simple-declarations-wrapper.js +0 -54
  765. package/src/components/dropdown/commons/actions.js +0 -56
  766. package/src/components/dropdown/commons/children-to-option.js +0 -9
  767. package/src/components/dropdown/commons/cleaner-callbacks.js +0 -58
  768. package/src/components/dropdown/commons/components/closed.icon.js +0 -24
  769. package/src/components/dropdown/commons/components/dropdown-container.js +0 -29
  770. package/src/components/dropdown/commons/components/dropdown-field.js +0 -46
  771. package/src/components/dropdown/commons/components/dropdown.js +0 -183
  772. package/src/components/dropdown/commons/components/label.js +0 -28
  773. package/src/components/dropdown/commons/components/opened.icon.js +0 -24
  774. package/src/components/dropdown/commons/components/panel.js +0 -78
  775. package/src/components/dropdown/commons/event-callbacks/index.js +0 -5
  776. package/src/components/dropdown/commons/event-callbacks/on-keydown-callback.js +0 -29
  777. package/src/components/dropdown/commons/event-callbacks/on-mousedown-callback.js +0 -11
  778. package/src/components/dropdown/commons/reducer.js +0 -149
  779. package/src/components/dropdown/commons/tools/index.js +0 -17
  780. package/src/components/dropdown/component.js +0 -125
  781. package/src/components/dropdown/dropdown-edit/cross.icon.js +0 -20
  782. package/src/components/dropdown/dropdown-edit/dropdown-edit.js +0 -190
  783. package/src/components/dropdown/dropdown-edit/icone.js +0 -33
  784. package/src/components/dropdown/dropdown-edit/index.js +0 -11
  785. package/src/components/dropdown/dropdown-edit/option.js +0 -62
  786. package/src/components/dropdown/dropdown-edit/prefix-tools.js +0 -51
  787. package/src/components/dropdown/dropdown-simple/dropdown.js +0 -155
  788. package/src/components/dropdown/dropdown-simple/index.js +0 -20
  789. package/src/components/dropdown/dropdown-simple/option.js +0 -15
  790. package/src/components/dropdown/dropdown.scss +0 -175
  791. package/src/components/dropdown/index.js +0 -1
  792. package/src/components/filter-description/component.js +0 -41
  793. package/src/components/filter-description/index.js +0 -1
  794. package/src/components/icon/assets/checkbox-checked.js +0 -16
  795. package/src/components/icon/assets/checkbox-unchecked.js +0 -16
  796. package/src/components/icon/assets/index.js +0 -4
  797. package/src/components/icon/assets/radio-checked.js +0 -16
  798. package/src/components/icon/assets/radio-unchecked.js +0 -16
  799. package/src/components/icon/component.js +0 -33
  800. package/src/components/icon/icon.scss +0 -13
  801. package/src/components/icon/index.js +0 -1
  802. package/src/components/index.js +0 -4
  803. package/src/components/index.scss +0 -141
  804. package/src/components/input/index.js +0 -2
  805. package/src/components/input/input-number.js +0 -44
  806. package/src/components/input/input.js +0 -10
  807. package/src/components/input/input.scss +0 -35
  808. package/src/components/loop/component.js +0 -105
  809. package/src/components/loop/index.js +0 -1
  810. package/src/components/loop/loop.scss +0 -11
  811. package/src/components/loop/paginated-component.js +0 -205
  812. package/src/components/loop/wrapper.js +0 -15
  813. package/src/components/loop-constructor/block/block.scss +0 -8
  814. package/src/components/loop-constructor/block/component.js +0 -8
  815. package/src/components/loop-constructor/block/index.js +0 -1
  816. package/src/components/loop-constructor/index.js +0 -1
  817. package/src/components/loop-constructor/roster/component.js +0 -7
  818. package/src/components/loop-constructor/roster/index.js +0 -1
  819. package/src/components/loop-constructor/wrapper/body-component.js +0 -118
  820. package/src/components/loop-constructor/wrapper/build-components.js +0 -33
  821. package/src/components/loop-constructor/wrapper/component.js +0 -154
  822. package/src/components/loop-constructor/wrapper/index.js +0 -1
  823. package/src/components/progress-bar/component.js +0 -28
  824. package/src/components/progress-bar/index.js +0 -1
  825. package/src/components/progress-bar/progress-bar.scss +0 -52
  826. package/src/components/radio/component.js +0 -8
  827. package/src/components/radio/index.js +0 -1
  828. package/src/components/radio/radio.scss +0 -57
  829. package/src/components/sequence/component.js +0 -41
  830. package/src/components/sequence/index.js +0 -1
  831. package/src/components/sequence/sequence.scss +0 -8
  832. package/src/components/subsequence/component.js +0 -47
  833. package/src/components/subsequence/index.js +0 -1
  834. package/src/components/suggester/component.js +0 -103
  835. package/src/components/suggester/index.js +0 -1
  836. package/src/components/table/index.js +0 -1
  837. package/src/components/table/table.js +0 -162
  838. package/src/components/table/table.scss +0 -24
  839. package/src/components/textarea/component.js +0 -10
  840. package/src/components/textarea/index.js +0 -1
  841. package/src/components/textarea/textarea.scss +0 -6
  842. package/src/components/tooltip/img/index.js +0 -4
  843. package/src/components/tooltip/index.js +0 -1
  844. package/src/components/tooltip/response.js +0 -52
  845. package/src/components/tooltip/tooltip.scss +0 -27
  846. package/src/constants/component-types.js +0 -1
  847. package/src/constants/declarations.js +0 -14
  848. package/src/constants/index.js +0 -4
  849. package/src/constants/supported-preferences.js +0 -10
  850. package/src/constants/value-types.js +0 -5
  851. package/src/constants/variable-types.js +0 -4
  852. package/src/stories/breadcrumb/README.md +0 -14
  853. package/src/stories/breadcrumb/breadcrumb.stories.js +0 -19
  854. package/src/stories/button/README.md +0 -14
  855. package/src/stories/button/button.stories.js +0 -27
  856. package/src/stories/checkbox-boolean/README.md +0 -27
  857. package/src/stories/checkbox-boolean/checkbox-boolean.stories.js +0 -30
  858. package/src/stories/checkbox-boolean/data.json +0 -48
  859. package/src/stories/checkbox-group/README.md +0 -29
  860. package/src/stories/checkbox-group/checkbox-group.stories.js +0 -35
  861. package/src/stories/checkbox-group/data-vtl.json +0 -89
  862. package/src/stories/checkbox-group/data.json +0 -89
  863. package/src/stories/checkbox-one/README.md +0 -31
  864. package/src/stories/checkbox-one/checkbox-one.stories.js +0 -32
  865. package/src/stories/checkbox-one/data-vtl.json +0 -33
  866. package/src/stories/checkbox-one/data.json +0 -33
  867. package/src/stories/datepicker/README.md +0 -31
  868. package/src/stories/datepicker/data.json +0 -28
  869. package/src/stories/datepicker/datepicker.stories.js +0 -36
  870. package/src/stories/declarations/README.md +0 -19
  871. package/src/stories/declarations/declarations.stories.js +0 -112
  872. package/src/stories/dropdown/README.md +0 -44
  873. package/src/stories/dropdown/data-naf.json +0 -6963
  874. package/src/stories/dropdown/data-props.json +0 -81
  875. package/src/stories/dropdown/data.json +0 -78
  876. package/src/stories/dropdown/dropdown.stories.js +0 -65
  877. package/src/stories/filter-description/README.md +0 -15
  878. package/src/stories/filter-description/filter-description.stories.js +0 -53
  879. package/src/stories/input/README.md +0 -33
  880. package/src/stories/input/data.json +0 -28
  881. package/src/stories/input/input.stories.js +0 -44
  882. package/src/stories/input-number/README.md +0 -37
  883. package/src/stories/input-number/data.json +0 -30
  884. package/src/stories/input-number/input-number.stories.js +0 -53
  885. package/src/stories/loop/README.md +0 -25
  886. package/src/stories/loop/loop.stories.js +0 -80
  887. package/src/stories/loop/with-loop/data-loop-deeper.json +0 -298
  888. package/src/stories/loop/with-loop/data-loop.json +0 -211
  889. package/src/stories/loop/with-loop/data-vqs.json +0 -1384
  890. package/src/stories/loop/with-loop/index.js +0 -3
  891. package/src/stories/loop/with-roster/data-loop-deeper.json +0 -298
  892. package/src/stories/loop/with-roster/data-loop.json +0 -213
  893. package/src/stories/loop/with-roster/data-vqs.json +0 -1383
  894. package/src/stories/loop/with-roster/index.js +0 -3
  895. package/src/stories/loop-constructor/README.md +0 -27
  896. package/src/stories/loop-constructor/data-input.json +0 -64
  897. package/src/stories/loop-constructor/data-loop.json +0 -66
  898. package/src/stories/loop-constructor/data-roster.json +0 -68
  899. package/src/stories/loop-constructor/loop-constructor.stories.js +0 -59
  900. package/src/stories/pagination/deeper-loop.json +0 -327
  901. package/src/stories/pagination/pagination.stories.js +0 -57
  902. package/src/stories/pagination/simple-loop.json +0 -277
  903. package/src/stories/pagination/simpsons-question.json +0 -4262
  904. package/src/stories/pagination/simpsons-sequence.json +0 -4362
  905. package/src/stories/progress-bar/README.md +0 -13
  906. package/src/stories/progress-bar/progress-bar.stories.js +0 -24
  907. package/src/stories/questionnaire/fat.json +0 -6558
  908. package/src/stories/questionnaire/questionnaire.stories.js +0 -25
  909. package/src/stories/radio/README.md +0 -31
  910. package/src/stories/radio/data-vtl.json +0 -32
  911. package/src/stories/radio/data.json +0 -32
  912. package/src/stories/radio/radio.stories.js +0 -35
  913. package/src/stories/sequence/README.md +0 -18
  914. package/src/stories/sequence/sequence.stories.js +0 -28
  915. package/src/stories/subsequence/README.md +0 -18
  916. package/src/stories/subsequence/subsequence.stories.js +0 -28
  917. package/src/stories/suggester/README.md +0 -29
  918. package/src/stories/suggester/data-vtl.json +0 -28
  919. package/src/stories/suggester/data.json +0 -28
  920. package/src/stories/suggester/suggester.stories.js +0 -38
  921. package/src/stories/table/README.md +0 -29
  922. package/src/stories/table/data-default.json +0 -19
  923. package/src/stories/table/data-one-axis-one-measure.json +0 -124
  924. package/src/stories/table/data-one-axis-two-measures.json +0 -193
  925. package/src/stories/table/data-one-hierarchical-axis.json +0 -204
  926. package/src/stories/table/data-roster.json +0 -471
  927. package/src/stories/table/data-two-axis-one-measure.json +0 -492
  928. package/src/stories/table/table.stories.js +0 -77
  929. package/src/stories/textarea/README.md +0 -33
  930. package/src/stories/textarea/data-forced.json +0 -28
  931. package/src/stories/textarea/data.json +0 -28
  932. package/src/stories/textarea/textarea.stories.js +0 -67
  933. package/src/stories/tooltip-response/README.md +0 -14
  934. package/src/stories/tooltip-response/md-link.json +0 -31
  935. package/src/stories/tooltip-response/md-tooltip.json +0 -31
  936. package/src/stories/tooltip-response/tooltip.stories.js +0 -83
  937. package/src/stories/utils/custom-lunatic.scss +0 -23
  938. package/src/stories/utils/img/arrow.png +0 -0
  939. package/src/stories/utils/img/check_box.svg +0 -1
  940. package/src/stories/utils/img/check_box_outline.svg +0 -1
  941. package/src/stories/utils/img/lunatic-logo.png +0 -0
  942. package/src/stories/utils/img/menu-down.svg +0 -1
  943. package/src/stories/utils/img/menu-up.svg +0 -1
  944. package/src/stories/utils/img/radio_button_checked.svg +0 -1
  945. package/src/stories/utils/img/radio_button_unchecked.svg +0 -1
  946. package/src/stories/utils/options.js +0 -25
  947. package/src/stories/utils/orchestrator.js +0 -83
  948. package/src/tests/components/breadcrumb.spec.js +0 -13
  949. package/src/tests/components/button.spec.js +0 -11
  950. package/src/tests/components/checkbox-boolean.spec.js +0 -45
  951. package/src/tests/components/checkbox-group.spec.js +0 -53
  952. package/src/tests/components/checkbox-one.spec.js +0 -32
  953. package/src/tests/components/datepicker.spec.js +0 -22
  954. package/src/tests/components/declarations-wrappers/input-declarations-wrapper.spec.js +0 -67
  955. package/src/tests/components/declarations-wrappers/list-declarations-wrapper.spec.js +0 -52
  956. package/src/tests/components/declarations-wrappers/simple-declarations-wrapper.spec.js +0 -21
  957. package/src/tests/components/declarations.spec.js +0 -46
  958. package/src/tests/components/input-number.spec.js +0 -194
  959. package/src/tests/components/input.spec.js +0 -18
  960. package/src/tests/components/progress-bar.spec.js +0 -15
  961. package/src/tests/components/radio.spec.js +0 -27
  962. package/src/tests/components/sequence.spec.js +0 -9
  963. package/src/tests/components/subsequence.spec.js +0 -9
  964. package/src/tests/components/table.spec.js +0 -11
  965. package/src/tests/components/textarea.spec.js +0 -18
  966. package/src/tests/components/tooltip.spec.js +0 -25
  967. package/src/tests/setup/setupTests.js +0 -4
  968. package/src/tests/utils/lib/alphabet.spec.js +0 -36
  969. package/src/tests/utils/lib/checkbox/group.spec.js +0 -72
  970. package/src/tests/utils/lib/decorator/title-decorator.spec.js +0 -12
  971. package/src/tests/utils/lib/items-positioning.spec.js +0 -17
  972. package/src/tests/utils/lib/label-position.spec.js +0 -22
  973. package/src/tests/utils/lib/loops/bindings.spec.js +0 -60
  974. package/src/tests/utils/lib/loops/shared.spec.js +0 -78
  975. package/src/tests/utils/lib/pagination/shared.spec.js +0 -42
  976. package/src/tests/utils/lib/responses.spec.js +0 -64
  977. package/src/tests/utils/lib/style.spec.js +0 -26
  978. package/src/tests/utils/lib/table/roster.spec.js +0 -25
  979. package/src/tests/utils/lib/tooltip/build-response.spec.js +0 -95
  980. package/src/tests/utils/lib/tooltip/content.spec.js +0 -109
  981. package/src/tests/utils/to-expose/handler/handler.spec.js +0 -86
  982. package/src/tests/utils/to-expose/handler/questionnaire.json +0 -154
  983. package/src/tests/utils/to-expose/handler/results/index.js +0 -6
  984. package/src/tests/utils/to-expose/handler/results/res-double.json +0 -157
  985. package/src/tests/utils/to-expose/handler/results/res-input-collected.json +0 -154
  986. package/src/tests/utils/to-expose/handler/results/res-input-edited.json +0 -157
  987. package/src/tests/utils/to-expose/handler/results/res-loop.json +0 -157
  988. package/src/tests/utils/to-expose/handler/results/res-matrix.json +0 -157
  989. package/src/tests/utils/to-expose/handler/results/res-responses.json +0 -157
  990. package/src/tests/utils/to-expose/init-questionnaire/data.json +0 -12
  991. package/src/tests/utils/to-expose/init-questionnaire/init-questionnaire.spec.js +0 -19
  992. package/src/tests/utils/to-expose/init-questionnaire/questionnaire.json +0 -129
  993. package/src/tests/utils/to-expose/init-questionnaire/result.json +0 -162
  994. package/src/tests/utils/to-expose/interpret/interpret.spec.js +0 -66
  995. package/src/tests/utils/to-expose/state/questionnaire.json +0 -61
  996. package/src/tests/utils/to-expose/state/results.js +0 -78
  997. package/src/tests/utils/to-expose/state/state.spec.js +0 -59
  998. package/src/utils/lib/alphabet.js +0 -1
  999. package/src/utils/lib/checkbox/group.js +0 -21
  1000. package/src/utils/lib/checkbox/index.js +0 -1
  1001. package/src/utils/lib/decorator/index.js +0 -1
  1002. package/src/utils/lib/decorator/title-decorator.js +0 -16
  1003. package/src/utils/lib/index.js +0 -13
  1004. package/src/utils/lib/label-position.js +0 -12
  1005. package/src/utils/lib/loops/bindings.js +0 -53
  1006. package/src/utils/lib/loops/build-components.js +0 -33
  1007. package/src/utils/lib/loops/index.js +0 -3
  1008. package/src/utils/lib/loops/shared.js +0 -43
  1009. package/src/utils/lib/memo-check.js +0 -24
  1010. package/src/utils/lib/options-positioning.js +0 -9
  1011. package/src/utils/lib/pagination/flow.js +0 -2
  1012. package/src/utils/lib/pagination/index.js +0 -2
  1013. package/src/utils/lib/pagination/navigation/index.js +0 -1
  1014. package/src/utils/lib/pagination/navigation/shared.js +0 -107
  1015. package/src/utils/lib/prop-types/declarations.js +0 -22
  1016. package/src/utils/lib/prop-types/index.js +0 -5
  1017. package/src/utils/lib/prop-types/lines.js +0 -6
  1018. package/src/utils/lib/prop-types/options.js +0 -8
  1019. package/src/utils/lib/prop-types/response.js +0 -6
  1020. package/src/utils/lib/prop-types/value-type.js +0 -9
  1021. package/src/utils/lib/responses.js +0 -9
  1022. package/src/utils/lib/style.js +0 -10
  1023. package/src/utils/lib/table/index.js +0 -1
  1024. package/src/utils/lib/table/roster.js +0 -23
  1025. package/src/utils/lib/tooltip/build-response.js +0 -41
  1026. package/src/utils/lib/tooltip/content.js +0 -55
  1027. package/src/utils/lib/tooltip/index.js +0 -6
  1028. package/src/utils/to-expose/handler.js +0 -99
  1029. package/src/utils/to-expose/hook.js +0 -153
  1030. package/src/utils/to-expose/index.js +0 -11
  1031. package/src/utils/to-expose/init-questionnaire.js +0 -116
  1032. package/src/utils/to-expose/interpret/index.js +0 -1
  1033. package/src/utils/to-expose/interpret/main.js +0 -36
  1034. package/src/utils/to-expose/interpret/md.js +0 -42
  1035. package/src/utils/to-expose/interpret/vtl.js +0 -43
  1036. package/src/utils/to-expose/state.js +0 -58
  1037. /package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/edited.png +0 -0
  1038. /package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/forced.png +0 -0
@@ -0,0 +1,2892 @@
1
+ {
2
+ "id": "l4cgtrsi",
3
+ "modele": "THL-RG",
4
+ "enoCoreVersion": "2.3.7-dev-lunatic-v2",
5
+ "lunaticModelVersion": "2.2.13-dev-lunatic-v2",
6
+ "generatingDate": "19-07-2022 10:45:19",
7
+ "missing": false,
8
+ "pagination": "question",
9
+ "maxPage": "5",
10
+ "label": { "value": "THL - TCM - Rallye game", "type": "VTL|MD" },
11
+ "components": [
12
+ {
13
+ "id": "kfxmfvwj",
14
+ "componentType": "Sequence",
15
+ "page": "1",
16
+ "label": {
17
+ "value": "Tableau des habitants du logement",
18
+ "type": "VTL|MD"
19
+ },
20
+ "declarations": [
21
+ {
22
+ "id": "kfxmfvwj-l0v2ckjm",
23
+ "declarationType": "HELP",
24
+ "position": "AFTER_QUESTION_TEXT",
25
+ "label": { "value": "THL", "type": "VTL|MD" }
26
+ }
27
+ ],
28
+ "conditionFilter": { "value": "true", "type": "VTL" },
29
+ "hierarchy": {
30
+ "sequence": {
31
+ "id": "kfxmfvwj",
32
+ "page": "1",
33
+ "label": {
34
+ "value": "Tableau des habitants du logement",
35
+ "type": "VTL|MD"
36
+ }
37
+ }
38
+ }
39
+ },
40
+
41
+ {
42
+ "id": "l0v2t2lc",
43
+ "componentType": "InputNumber",
44
+ "mandatory": false,
45
+ "page": "2",
46
+ "min": 1,
47
+ "max": 20,
48
+ "decimals": 0,
49
+ "label": {
50
+ "value": "\"➡ 1. \" || \"En vous comptant, combien de personnes habitent dans le logement situé à l’adresse \" || ADR || \" ?\"",
51
+ "type": "VTL|MD"
52
+ },
53
+ "conditionFilter": { "value": "true", "type": "VTL" },
54
+ "hierarchy": {
55
+ "sequence": {
56
+ "id": "kfxmfvwj",
57
+ "page": "1",
58
+ "label": {
59
+ "value": "Tableau des habitants du logement",
60
+ "type": "VTL|MD"
61
+ }
62
+ }
63
+ },
64
+ "bindingDependencies": ["ADR", "NHAB"],
65
+ "response": { "name": "NHAB" }
66
+ },
67
+
68
+ {
69
+ "id": "l0v3gfcr",
70
+ "componentType": "Loop",
71
+ "page": "3",
72
+ "depth": 1,
73
+ "paginatedLoop": false,
74
+ "conditionFilter": { "value": "true", "type": "VTL" },
75
+ "hierarchy": {
76
+ "sequence": {
77
+ "id": "kfxmfvwj",
78
+ "page": "1",
79
+ "label": {
80
+ "value": "Tableau des habitants du logement",
81
+ "type": "VTL|MD"
82
+ }
83
+ }
84
+ },
85
+ "bindingDependencies": ["NBHAB", "G_PRENOM"],
86
+ "loopDependencies": ["NBHAB"],
87
+ "lines": {
88
+ "min": { "value": "cast(NBHAB, integer)", "type": "VTL" },
89
+ "max": { "value": "cast(NBHAB, integer)", "type": "VTL" }
90
+ },
91
+ "components": [
92
+ {
93
+ "id": "l0mkvvru",
94
+ "componentType": "Subsequence",
95
+ "page": "3",
96
+ "goToPage": "3",
97
+ "label": { "value": "Prénoms des habitants", "type": "VTL|MD" },
98
+ "declarations": [
99
+ {
100
+ "id": "l0mkvvru-l2yohc5k",
101
+ "declarationType": "HELP",
102
+ "position": "AFTER_QUESTION_TEXT",
103
+ "label": {
104
+ "value": "\" Si plusieurs habitants ont le même prénom, ajouter une initiale pour pouvoir les distinguer dans la suite du questionnaire.\"",
105
+ "type": "VTL|MD"
106
+ }
107
+ }
108
+ ],
109
+ "conditionFilter": { "value": "true", "type": "VTL" },
110
+ "hierarchy": {
111
+ "sequence": {
112
+ "id": "kfxmfvwj",
113
+ "page": "1",
114
+ "label": {
115
+ "value": "Tableau des habitants du logement",
116
+ "type": "VTL|MD"
117
+ }
118
+ },
119
+ "subSequence": {
120
+ "id": "l0mkvvru",
121
+ "page": "3",
122
+ "label": { "value": "Prénoms des habitants", "type": "VTL|MD" }
123
+ }
124
+ },
125
+ "bindingDependencies": ["NBHAB"]
126
+ },
127
+
128
+ {
129
+ "id": "l0v3g11i",
130
+ "componentType": "Input",
131
+ "mandatory": false,
132
+ "page": "3",
133
+ "maxLength": 40,
134
+ "label": {
135
+ "value": "\"➡ 2. \" || \"Prénom (en commençant par le vôtre)\"",
136
+ "type": "VTL|MD"
137
+ },
138
+ "conditionFilter": { "value": "true", "type": "VTL" },
139
+ "controls": [
140
+ {
141
+ "id": "l0v3g11i-CI-0",
142
+ "criticality": "WARN",
143
+ "control": {
144
+ "value": "not((nvl(G_PRENOM, \"\") = \"\") and (not(isnull(NBHAB)) and cast(NBHAB,integer)>1))",
145
+ "type": "VTL"
146
+ },
147
+ "errorMessage": {
148
+ "value": "\"Merci d’indiquer l’ensemble des prénoms (initiales ou autre) afin de pouvoir vous repérer dans la suite du questionnaire lorsque les questions porteront sur une personne en particulier.\"",
149
+ "type": "VTL|MD"
150
+ },
151
+ "bindingDependencies": ["G_PRENOM", "NBHAB"]
152
+ },
153
+
154
+ {
155
+ "id": "l0v3g11i-CI-1",
156
+ "criticality": "WARN",
157
+ "control": {
158
+ "value": "not((nvl(G_PRENOM, \"\") = \"\") and (isnull(NBHAB) or cast(NBHAB,integer)=1))",
159
+ "type": "VTL"
160
+ },
161
+ "errorMessage": {
162
+ "value": "\"Votre réponse est importante pour le bon déroulement du questionnaire. Merci d’indiquer votre prénom (ou vos initiales, ou autre) pour pouvoir poursuivre le questionnaire.\"",
163
+ "type": "VTL|MD"
164
+ },
165
+ "bindingDependencies": ["G_PRENOM", "NBHAB"]
166
+ }
167
+ ],
168
+ "hierarchy": {
169
+ "sequence": {
170
+ "id": "kfxmfvwj",
171
+ "page": "1",
172
+ "label": {
173
+ "value": "Tableau des habitants du logement",
174
+ "type": "VTL|MD"
175
+ }
176
+ },
177
+ "subSequence": {
178
+ "id": "l0mkvvru",
179
+ "page": "3",
180
+ "label": { "value": "Prénoms des habitants", "type": "VTL|MD" }
181
+ }
182
+ },
183
+ "bindingDependencies": ["G_PRENOM", "NBHAB"],
184
+ "response": { "name": "G_PRENOM" }
185
+ }
186
+ ]
187
+ },
188
+
189
+ {
190
+ "id": "l0v43iz7",
191
+ "componentType": "Loop",
192
+ "page": "4",
193
+ "maxPage": "16",
194
+ "depth": 1,
195
+ "paginatedLoop": true,
196
+ "conditionFilter": { "value": "true", "type": "VTL" },
197
+ "hierarchy": {
198
+ "sequence": {
199
+ "id": "kfxmfvwj",
200
+ "page": "1",
201
+ "label": {
202
+ "value": "Tableau des habitants du logement",
203
+ "type": "VTL|MD"
204
+ }
205
+ }
206
+ },
207
+ "bindingDependencies": [
208
+ "PRENOM",
209
+ "PRENOMREF",
210
+ "TRAGE",
211
+ "LIB_E",
212
+ "LIB_PR",
213
+ "DATEDEPART",
214
+ "DATENAIS",
215
+ "DATERETOUR",
216
+ "LIB_SON",
217
+ "ANNARIV",
218
+ "ANNAIS",
219
+ "SEXE",
220
+ "LNAIS",
221
+ "DEPNAIS",
222
+ "PAYSNAIS",
223
+ "NATION1",
224
+ "NATION2",
225
+ "NATION3",
226
+ "NATION4",
227
+ "NATIONETR",
228
+ "VECUE",
229
+ "AGRETOUR",
230
+ "AGARRIV"
231
+ ],
232
+ "loopDependencies": ["G_PRENOM"],
233
+ "components": [
234
+ {
235
+ "id": "l0v3oeqn",
236
+ "componentType": "Subsequence",
237
+ "page": "4.1",
238
+ "goToPage": "4.1",
239
+ "label": {
240
+ "value": "Description des habitants du logement",
241
+ "type": "VTL|MD"
242
+ },
243
+ "declarations": [
244
+ {
245
+ "id": "l0v3oeqn-l0v3ldcs",
246
+ "declarationType": "HELP",
247
+ "position": "AFTER_QUESTION_TEXT",
248
+ "label": {
249
+ "value": "if (PRENOM = PRENOMREF) then PRENOM ||\", nous allons rapidement vous décrire.\" else \"Nous allons décrire rapidement \" || PRENOM || \".\"",
250
+ "type": "VTL|MD"
251
+ }
252
+ }
253
+ ],
254
+ "conditionFilter": { "value": "true", "type": "VTL" },
255
+ "hierarchy": {
256
+ "sequence": {
257
+ "id": "kfxmfvwj",
258
+ "page": "1",
259
+ "label": {
260
+ "value": "Tableau des habitants du logement",
261
+ "type": "VTL|MD"
262
+ }
263
+ },
264
+ "subSequence": {
265
+ "id": "l0v3oeqn",
266
+ "page": "4.1",
267
+ "label": {
268
+ "value": "Description des habitants du logement",
269
+ "type": "VTL|MD"
270
+ }
271
+ }
272
+ },
273
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "G_PRENOM"]
274
+ },
275
+
276
+ {
277
+ "id": "l0v4b34m",
278
+ "componentType": "Radio",
279
+ "mandatory": false,
280
+ "page": "4.2",
281
+ "label": {
282
+ "value": "\"➡ 3. \" || \"Quel est \" || if (PRENOM = PRENOMREF) then \"votre sexe ?\" else \"le sexe de \" || PRENOM || \" ?\"",
283
+ "type": "VTL|MD"
284
+ },
285
+ "conditionFilter": { "value": "true", "type": "VTL" },
286
+ "hierarchy": {
287
+ "sequence": {
288
+ "id": "kfxmfvwj",
289
+ "page": "1",
290
+ "label": {
291
+ "value": "Tableau des habitants du logement",
292
+ "type": "VTL|MD"
293
+ }
294
+ },
295
+ "subSequence": {
296
+ "id": "l0v3oeqn",
297
+ "page": "4.1",
298
+ "label": {
299
+ "value": "Description des habitants du logement",
300
+ "type": "VTL|MD"
301
+ }
302
+ }
303
+ },
304
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "SEXE", "G_PRENOM"],
305
+ "options": [
306
+ { "value": "1", "label": { "value": "Homme", "type": "VTL|MD" } },
307
+
308
+ { "value": "2", "label": { "value": "Femme", "type": "VTL|MD" } }
309
+ ],
310
+ "response": { "name": "SEXE" }
311
+ },
312
+
313
+ {
314
+ "id": "l0v4oi1v",
315
+ "componentType": "Datepicker",
316
+ "mandatory": false,
317
+ "page": "4.3",
318
+ "min": "1900-01-01",
319
+ "max": "2022-03-17",
320
+ "label": {
321
+ "value": "\"➡ 4. \" || \"Quelle est \" || if (PRENOM = PRENOMREF) then \"votre date de naissance ?\" else \"la date de naissance de \" || PRENOM || \" ?\"",
322
+ "type": "VTL|MD"
323
+ },
324
+ "conditionFilter": { "value": "true", "type": "VTL" },
325
+ "hierarchy": {
326
+ "sequence": {
327
+ "id": "kfxmfvwj",
328
+ "page": "1",
329
+ "label": {
330
+ "value": "Tableau des habitants du logement",
331
+ "type": "VTL|MD"
332
+ }
333
+ },
334
+ "subSequence": {
335
+ "id": "l0v3oeqn",
336
+ "page": "4.1",
337
+ "label": {
338
+ "value": "Description des habitants du logement",
339
+ "type": "VTL|MD"
340
+ }
341
+ }
342
+ },
343
+ "bindingDependencies": [
344
+ "PRENOM",
345
+ "PRENOMREF",
346
+ "DATENAIS",
347
+ "G_PRENOM"
348
+ ],
349
+ "dateFormat": "YYYY-MM-DD",
350
+ "response": { "name": "DATENAIS" }
351
+ },
352
+
353
+ {
354
+ "id": "l11z2too",
355
+ "componentType": "Radio",
356
+ "mandatory": false,
357
+ "page": "4.4",
358
+ "label": {
359
+ "value": "\"➡ 5. \" || \"Vous n’avez pas indiqué de date de naissance, pouvez-vous indiquer \" || if (PRENOM = PRENOMREF) then \" votre âge ?\" else \"l’âge de \" || PRENOM || \" ?\"",
360
+ "type": "VTL|MD"
361
+ },
362
+ "conditionFilter": {
363
+ "value": "(isnull(DATENAIS))",
364
+ "type": "VTL",
365
+ "bindingDependencies": ["DATENAIS"]
366
+ },
367
+ "controls": [
368
+ {
369
+ "id": "l11z2too-CI-0",
370
+ "criticality": "INFO",
371
+ "control": {
372
+ "value": "not(isnull(TRAGE) and (PRENOM = PRENOMREF))",
373
+ "type": "VTL"
374
+ },
375
+ "errorMessage": {
376
+ "value": "Votre réponse est importante pour le bon déroulement du questionnaire. La connaissance de votre âge permet de filtrer la suite du questionnaire et d’éviter de vous poser des questions qui ne vous concerneraient pas. Merci de renseigner votre âge.",
377
+ "type": "VTL|MD"
378
+ },
379
+ "bindingDependencies": ["TRAGE", "PRENOM", "PRENOMREF"]
380
+ },
381
+
382
+ {
383
+ "id": "l11z2too-CI-1",
384
+ "criticality": "INFO",
385
+ "control": {
386
+ "value": "not(isnull(TRAGE) and PRENOM <> PRENOMREF)",
387
+ "type": "VTL"
388
+ },
389
+ "errorMessage": {
390
+ "value": "Cette réponse est importante pour le bon déroulement du questionnaire. La connaissance de l’âge permet de filtrer la suite du questionnaire et d’éviter de poser des questions hors de propos. Merci de renseigner l’âge.",
391
+ "type": "VTL|MD"
392
+ },
393
+ "bindingDependencies": ["TRAGE", "PRENOM", "PRENOMREF"]
394
+ }
395
+ ],
396
+ "hierarchy": {
397
+ "sequence": {
398
+ "id": "kfxmfvwj",
399
+ "page": "1",
400
+ "label": {
401
+ "value": "Tableau des habitants du logement",
402
+ "type": "VTL|MD"
403
+ }
404
+ },
405
+ "subSequence": {
406
+ "id": "l0v3oeqn",
407
+ "page": "4.1",
408
+ "label": {
409
+ "value": "Description des habitants du logement",
410
+ "type": "VTL|MD"
411
+ }
412
+ }
413
+ },
414
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "TRAGE", "G_PRENOM"],
415
+ "options": [
416
+ {
417
+ "value": "1",
418
+ "label": { "value": "Moins de 15 ans", "type": "VTL|MD" }
419
+ },
420
+
421
+ {
422
+ "value": "2",
423
+ "label": { "value": "De 15 à 18 ans", "type": "VTL|MD" }
424
+ },
425
+
426
+ {
427
+ "value": "3",
428
+ "label": { "value": "De 18 à 25 ans", "type": "VTL|MD" }
429
+ },
430
+
431
+ {
432
+ "value": "4",
433
+ "label": { "value": "De 25 à 40 ans", "type": "VTL|MD" }
434
+ },
435
+
436
+ {
437
+ "value": "5",
438
+ "label": { "value": "De 40 à 60 ans", "type": "VTL|MD" }
439
+ },
440
+
441
+ {
442
+ "value": "6",
443
+ "label": { "value": "Plus de 60 ans", "type": "VTL|MD" }
444
+ }
445
+ ],
446
+ "response": { "name": "TRAGE" }
447
+ },
448
+
449
+ {
450
+ "id": "l11zznh4",
451
+ "componentType": "Radio",
452
+ "mandatory": false,
453
+ "page": "4.5",
454
+ "label": {
455
+ "value": "\"➡ 6. \" || if (PRENOM = PRENOMREF) then \"Où êtes-vous né\"|| LIB_E || \" ?\" else \"Où est né\" || LIB_E || \" \" || PRENOM || \" ?\"",
456
+ "type": "VTL|MD"
457
+ },
458
+ "declarations": [
459
+ {
460
+ "id": "l11zznh4-l120k8go",
461
+ "declarationType": "HELP",
462
+ "position": "AFTER_QUESTION_TEXT",
463
+ "label": {
464
+ "value": "\"Prendre en compte les frontières actuelles.\"",
465
+ "type": "VTL|MD"
466
+ }
467
+ }
468
+ ],
469
+ "conditionFilter": { "value": "true", "type": "VTL" },
470
+ "hierarchy": {
471
+ "sequence": {
472
+ "id": "kfxmfvwj",
473
+ "page": "1",
474
+ "label": {
475
+ "value": "Tableau des habitants du logement",
476
+ "type": "VTL|MD"
477
+ }
478
+ },
479
+ "subSequence": {
480
+ "id": "l0v3oeqn",
481
+ "page": "4.1",
482
+ "label": {
483
+ "value": "Description des habitants du logement",
484
+ "type": "VTL|MD"
485
+ }
486
+ }
487
+ },
488
+ "bindingDependencies": [
489
+ "PRENOM",
490
+ "PRENOMREF",
491
+ "LIB_E",
492
+ "LNAIS",
493
+ "G_PRENOM"
494
+ ],
495
+ "options": [
496
+ {
497
+ "value": "1",
498
+ "label": {
499
+ "value": "\"En France (Métropole, DOM et COM)\"",
500
+ "type": "VTL|MD"
501
+ }
502
+ },
503
+
504
+ {
505
+ "value": "2",
506
+ "label": { "value": "\"A l’étranger\"", "type": "VTL|MD" }
507
+ }
508
+ ],
509
+ "response": { "name": "LNAIS" }
510
+ },
511
+
512
+ {
513
+ "id": "l120kmks",
514
+ "componentType": "Dropdown",
515
+ "mandatory": false,
516
+ "page": "4.6",
517
+ "label": {
518
+ "value": "\"➡ 7. \" || \"Dans quel département \" || if (PRENOM = PRENOMREF) then \"êtes-vous né\" || LIB_E || \" ?\" else \"est né\" || LIB_E || \" \" || PRENOM || \" ?\"",
519
+ "type": "VTL|MD"
520
+ },
521
+ "declarations": [
522
+ {
523
+ "id": "l120kmks-l120ef3t",
524
+ "declarationType": "HELP",
525
+ "position": "AFTER_QUESTION_TEXT",
526
+ "label": {
527
+ "value": "\"Saisir le numéro ou les premières lettres du département puis sélectionner le département de naissance dans la liste proposée.\"",
528
+ "type": "VTL|MD"
529
+ }
530
+ }
531
+ ],
532
+ "conditionFilter": {
533
+ "value": "(LNAIS = \"1\")",
534
+ "type": "VTL",
535
+ "bindingDependencies": ["LNAIS"]
536
+ },
537
+ "hierarchy": {
538
+ "sequence": {
539
+ "id": "kfxmfvwj",
540
+ "page": "1",
541
+ "label": {
542
+ "value": "Tableau des habitants du logement",
543
+ "type": "VTL|MD"
544
+ }
545
+ },
546
+ "subSequence": {
547
+ "id": "l0v3oeqn",
548
+ "page": "4.1",
549
+ "label": {
550
+ "value": "Description des habitants du logement",
551
+ "type": "VTL|MD"
552
+ }
553
+ }
554
+ },
555
+ "bindingDependencies": [
556
+ "PRENOM",
557
+ "PRENOMREF",
558
+ "LIB_E",
559
+ "DEPNAIS",
560
+ "G_PRENOM"
561
+ ],
562
+ "options": [
563
+ {
564
+ "value": "1",
565
+ "label": {
566
+ "value": "\"Recherche sur liste des départements\"",
567
+ "type": "VTL|MD"
568
+ }
569
+ }
570
+ ],
571
+ "response": { "name": "DEPNAIS" }
572
+ },
573
+
574
+ {
575
+ "id": "l120lqns",
576
+ "componentType": "Dropdown",
577
+ "mandatory": false,
578
+ "page": "4.7",
579
+ "label": {
580
+ "value": "\"➡ 8. \" || \"Dans quel pays \" || if(PRENOM = PRENOMREF) then \"êtes-vous né\" || LIB_E || \" ?\" else \"est né\"|| LIB_E || \" \" || PRENOM || \" ?\"",
581
+ "type": "VTL|MD"
582
+ },
583
+ "declarations": [
584
+ {
585
+ "id": "l120lqns-l1210yn3",
586
+ "declarationType": "HELP",
587
+ "position": "AFTER_QUESTION_TEXT",
588
+ "label": {
589
+ "value": "\"Saisir les premières lettres du pays puis sélectionner le pays de naissance\"",
590
+ "type": "VTL|MD"
591
+ }
592
+ }
593
+ ],
594
+ "conditionFilter": {
595
+ "value": "(LNAIS = \"2\")",
596
+ "type": "VTL",
597
+ "bindingDependencies": ["LNAIS"]
598
+ },
599
+ "hierarchy": {
600
+ "sequence": {
601
+ "id": "kfxmfvwj",
602
+ "page": "1",
603
+ "label": {
604
+ "value": "Tableau des habitants du logement",
605
+ "type": "VTL|MD"
606
+ }
607
+ },
608
+ "subSequence": {
609
+ "id": "l0v3oeqn",
610
+ "page": "4.1",
611
+ "label": {
612
+ "value": "Description des habitants du logement",
613
+ "type": "VTL|MD"
614
+ }
615
+ }
616
+ },
617
+ "bindingDependencies": [
618
+ "PRENOM",
619
+ "PRENOMREF",
620
+ "LIB_E",
621
+ "PAYSNAIS",
622
+ "G_PRENOM"
623
+ ],
624
+ "options": [
625
+ {
626
+ "value": "1",
627
+ "label": {
628
+ "value": "Recherche sur liste des pays",
629
+ "type": "VTL|MD"
630
+ }
631
+ }
632
+ ],
633
+ "response": { "name": "PAYSNAIS" }
634
+ },
635
+
636
+ {
637
+ "id": "l120zrhs",
638
+ "componentType": "CheckboxGroup",
639
+ "page": "4.8",
640
+ "label": {
641
+ "value": "\"➡ 9. \" || \"Quelle est \" || if (PRENOM = PRENOMREF) then \"votre nationalité ?\" else \"la nationalité de \" || PRENOM || \" ?\"",
642
+ "type": "VTL|MD"
643
+ },
644
+ "declarations": [
645
+ {
646
+ "id": "l120zrhs-l121egbq",
647
+ "declarationType": "HELP",
648
+ "position": "AFTER_QUESTION_TEXT",
649
+ "label": {
650
+ "value": "Plusieurs réponses possibles",
651
+ "type": "VTL|MD"
652
+ }
653
+ }
654
+ ],
655
+ "conditionFilter": { "value": "true", "type": "VTL" },
656
+ "hierarchy": {
657
+ "sequence": {
658
+ "id": "kfxmfvwj",
659
+ "page": "1",
660
+ "label": {
661
+ "value": "Tableau des habitants du logement",
662
+ "type": "VTL|MD"
663
+ }
664
+ },
665
+ "subSequence": {
666
+ "id": "l0v3oeqn",
667
+ "page": "4.1",
668
+ "label": {
669
+ "value": "Description des habitants du logement",
670
+ "type": "VTL|MD"
671
+ }
672
+ }
673
+ },
674
+ "bindingDependencies": [
675
+ "PRENOM",
676
+ "PRENOMREF",
677
+ "NATION1",
678
+ "NATION2",
679
+ "NATION3",
680
+ "NATION4",
681
+ "G_PRENOM"
682
+ ],
683
+ "responses": [
684
+ {
685
+ "id": "l120zrhs-QOP-l12109x8",
686
+ "label": {
687
+ "value": "Française de naissance ou par intégration",
688
+ "type": "VTL|MD"
689
+ },
690
+ "response": { "name": "NATION1" }
691
+ },
692
+
693
+ {
694
+ "id": "l120zrhs-QOP-l1216ug0",
695
+ "label": {
696
+ "value": "Française par déclaration, naturalisation, option à votre majorité",
697
+ "type": "VTL|MD"
698
+ },
699
+ "response": { "name": "NATION2" }
700
+ },
701
+
702
+ {
703
+ "id": "l120zrhs-QOP-l121i9v7",
704
+ "label": { "value": "Etrangère", "type": "VTL|MD" },
705
+ "response": { "name": "NATION3" }
706
+ },
707
+
708
+ {
709
+ "id": "l120zrhs-QOP-l1217hj1",
710
+ "label": {
711
+ "value": "Apatride (pas de nationalité)",
712
+ "type": "VTL|MD"
713
+ },
714
+ "response": { "name": "NATION4" }
715
+ }
716
+ ]
717
+ },
718
+
719
+ {
720
+ "id": "l121ftlg",
721
+ "componentType": "Dropdown",
722
+ "mandatory": false,
723
+ "page": "4.9",
724
+ "label": {
725
+ "value": "\"➡ 10. \" || \"Quelle est \" || if (PRENOM = PRENOMREF) then \"votre nationalité étrangère ?\" else \"la nationalité étrangère de \" || PRENOM || \" ?\"",
726
+ "type": "VTL|MD"
727
+ },
728
+ "declarations": [
729
+ {
730
+ "id": "l121ftlg-l121hdzg",
731
+ "declarationType": "HELP",
732
+ "position": "AFTER_QUESTION_TEXT",
733
+ "label": {
734
+ "value": "Entrez les premières lettres de la nationalité, et sélectionnez dans la liste la nationalité étrangère correspondante.",
735
+ "type": "VTL|MD"
736
+ }
737
+ }
738
+ ],
739
+ "conditionFilter": {
740
+ "value": "(NATION3 = true)",
741
+ "type": "VTL",
742
+ "bindingDependencies": ["NATION3"]
743
+ },
744
+ "hierarchy": {
745
+ "sequence": {
746
+ "id": "kfxmfvwj",
747
+ "page": "1",
748
+ "label": {
749
+ "value": "Tableau des habitants du logement",
750
+ "type": "VTL|MD"
751
+ }
752
+ },
753
+ "subSequence": {
754
+ "id": "l0v3oeqn",
755
+ "page": "4.1",
756
+ "label": {
757
+ "value": "Description des habitants du logement",
758
+ "type": "VTL|MD"
759
+ }
760
+ }
761
+ },
762
+ "bindingDependencies": [
763
+ "PRENOM",
764
+ "PRENOMREF",
765
+ "NATIONETR",
766
+ "G_PRENOM"
767
+ ],
768
+ "options": [
769
+ {
770
+ "value": "1",
771
+ "label": {
772
+ "value": "Recherche dans la liste des nationalités étrangères",
773
+ "type": "VTL|MD"
774
+ }
775
+ }
776
+ ],
777
+ "response": { "name": "NATIONETR" }
778
+ },
779
+
780
+ {
781
+ "id": "l126uoh0",
782
+ "componentType": "Subsequence",
783
+ "page": "4.10",
784
+ "goToPage": "4.10",
785
+ "label": {
786
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
787
+ "type": "VTL|MD"
788
+ },
789
+ "declarations": [
790
+ {
791
+ "id": "l126uoh0-l1279j1h",
792
+ "declarationType": "HELP",
793
+ "position": "AFTER_QUESTION_TEXT",
794
+ "label": {
795
+ "value": "Questions optionnelles sur le vécu à l’étranger en dehors du champ de l’enquête.",
796
+ "type": "VTL|MD"
797
+ }
798
+ }
799
+ ],
800
+ "conditionFilter": { "value": "true", "type": "VTL" },
801
+ "hierarchy": {
802
+ "sequence": {
803
+ "id": "kfxmfvwj",
804
+ "page": "1",
805
+ "label": {
806
+ "value": "Tableau des habitants du logement",
807
+ "type": "VTL|MD"
808
+ }
809
+ },
810
+ "subSequence": {
811
+ "id": "l126uoh0",
812
+ "page": "4.10",
813
+ "label": {
814
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
815
+ "type": "VTL|MD"
816
+ }
817
+ }
818
+ },
819
+ "bindingDependencies": ["G_PRENOM"]
820
+ },
821
+
822
+ {
823
+ "id": "l1265ml0",
824
+ "componentType": "Radio",
825
+ "mandatory": false,
826
+ "page": "4.11",
827
+ "label": {
828
+ "value": "\"➡ 11. \" || (if (PRENOM = PRENOMREF) then \"Depuis votre naissance, avez-vous\" else \"Depuis sa naissance, \" || PRENOM || \" a-t-\" || LIB_PR ) || \" vécu au moins un an sans interruption à l’étranger ?\"",
829
+ "type": "VTL|MD"
830
+ },
831
+ "conditionFilter": {
832
+ "value": "(LNAIS = \"1\")",
833
+ "type": "VTL",
834
+ "bindingDependencies": ["LNAIS"]
835
+ },
836
+ "hierarchy": {
837
+ "sequence": {
838
+ "id": "kfxmfvwj",
839
+ "page": "1",
840
+ "label": {
841
+ "value": "Tableau des habitants du logement",
842
+ "type": "VTL|MD"
843
+ }
844
+ },
845
+ "subSequence": {
846
+ "id": "l126uoh0",
847
+ "page": "4.10",
848
+ "label": {
849
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
850
+ "type": "VTL|MD"
851
+ }
852
+ }
853
+ },
854
+ "bindingDependencies": [
855
+ "PRENOM",
856
+ "PRENOMREF",
857
+ "LIB_PR",
858
+ "VECUE",
859
+ "G_PRENOM"
860
+ ],
861
+ "options": [
862
+ { "value": "1", "label": { "value": "Oui", "type": "VTL|MD" } },
863
+
864
+ { "value": "2", "label": { "value": "Non", "type": "VTL|MD" } }
865
+ ],
866
+ "response": { "name": "VECUE" }
867
+ },
868
+
869
+ {
870
+ "id": "l12b8hbj",
871
+ "componentType": "Datepicker",
872
+ "mandatory": false,
873
+ "page": "4.12",
874
+ "min": "1900-01",
875
+ "max": "2022-03",
876
+ "label": {
877
+ "value": "\"➡ 12. \" || \"Pouvez-vous indiquer la date de départ à l’étranger, au début de cette période à l’étranger ?\"",
878
+ "type": "VTL|MD"
879
+ },
880
+ "declarations": [
881
+ {
882
+ "id": "l12b8hbj-l12b4ifa",
883
+ "declarationType": "HELP",
884
+ "position": "AFTER_QUESTION_TEXT",
885
+ "label": {
886
+ "value": "\"Indiquez le mois et l’année du départ\"",
887
+ "type": "VTL|MD"
888
+ }
889
+ }
890
+ ],
891
+ "conditionFilter": {
892
+ "value": "(VECUE = \"1\")",
893
+ "type": "VTL",
894
+ "bindingDependencies": ["VECUE"]
895
+ },
896
+ "controls": [
897
+ {
898
+ "id": "l12b8hbj-CI-0",
899
+ "criticality": "WARN",
900
+ "control": {
901
+ "value": "not(cast(DATEDEPART,integer) < cast(DATENAIS, integer))",
902
+ "type": "VTL"
903
+ },
904
+ "errorMessage": {
905
+ "value": "La date de naissance est inférieure à la date de départ à l’étranger",
906
+ "type": "VTL|MD"
907
+ },
908
+ "bindingDependencies": ["DATEDEPART", "DATENAIS"]
909
+ }
910
+ ],
911
+ "hierarchy": {
912
+ "sequence": {
913
+ "id": "kfxmfvwj",
914
+ "page": "1",
915
+ "label": {
916
+ "value": "Tableau des habitants du logement",
917
+ "type": "VTL|MD"
918
+ }
919
+ },
920
+ "subSequence": {
921
+ "id": "l126uoh0",
922
+ "page": "4.10",
923
+ "label": {
924
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
925
+ "type": "VTL|MD"
926
+ }
927
+ }
928
+ },
929
+ "bindingDependencies": ["DATEDEPART", "G_PRENOM"],
930
+ "dateFormat": "YYYY-MM",
931
+ "response": { "name": "DATEDEPART" }
932
+ },
933
+
934
+ {
935
+ "id": "l126og4z",
936
+ "componentType": "Datepicker",
937
+ "mandatory": false,
938
+ "page": "4.13",
939
+ "min": "1900-01",
940
+ "max": "2022-03",
941
+ "label": {
942
+ "value": "\"➡ 13. \" || \"Pouvez-vous indiquer la date du retour en France, à l’issue de cette période à l’étranger ?\"",
943
+ "type": "VTL|MD"
944
+ },
945
+ "declarations": [
946
+ {
947
+ "id": "l126og4z-l126o0z8",
948
+ "declarationType": "HELP",
949
+ "position": "AFTER_QUESTION_TEXT",
950
+ "label": {
951
+ "value": "\"Indiquez le mois et l’année du retour\"",
952
+ "type": "VTL|MD"
953
+ }
954
+ }
955
+ ],
956
+ "conditionFilter": {
957
+ "value": "(VECUE = \"1\")",
958
+ "type": "VTL",
959
+ "bindingDependencies": ["VECUE"]
960
+ },
961
+ "controls": [
962
+ {
963
+ "id": "l126og4z-CI-0",
964
+ "criticality": "WARN",
965
+ "control": {
966
+ "value": "not(cast(DATERETOUR,integer) < cast(DATEDEPART, integer))",
967
+ "type": "VTL"
968
+ },
969
+ "errorMessage": {
970
+ "value": "\"La date de retour est antérieure à la date de départ\"",
971
+ "type": "VTL|MD"
972
+ },
973
+ "bindingDependencies": ["DATERETOUR", "DATEDEPART"]
974
+ }
975
+ ],
976
+ "hierarchy": {
977
+ "sequence": {
978
+ "id": "kfxmfvwj",
979
+ "page": "1",
980
+ "label": {
981
+ "value": "Tableau des habitants du logement",
982
+ "type": "VTL|MD"
983
+ }
984
+ },
985
+ "subSequence": {
986
+ "id": "l126uoh0",
987
+ "page": "4.10",
988
+ "label": {
989
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
990
+ "type": "VTL|MD"
991
+ }
992
+ }
993
+ },
994
+ "bindingDependencies": ["DATERETOUR", "G_PRENOM"],
995
+ "dateFormat": "YYYY-MM",
996
+ "response": { "name": "DATERETOUR" }
997
+ },
998
+
999
+ {
1000
+ "id": "l1uxyne3",
1001
+ "componentType": "InputNumber",
1002
+ "mandatory": false,
1003
+ "page": "4.14",
1004
+ "min": 0,
1005
+ "max": 120,
1006
+ "decimals": 0,
1007
+ "label": {
1008
+ "value": "\"➡ 14. \" || \"Vous n’avez pas indiqué de date de retour, quel âge \" || (if (PRENOM = PRENOMREF) then \"aviez-vous à \" else PRENOM || \" avait-\" ||LIB_PR) || \" à \" ||LIB_SON || \" retour de cette période à l’étranger ?\"",
1009
+ "type": "VTL|MD"
1010
+ },
1011
+ "conditionFilter": {
1012
+ "value": "(VECUE = \"1\") and (isnull(DATERETOUR))",
1013
+ "type": "VTL",
1014
+ "bindingDependencies": ["VECUE", "DATERETOUR"]
1015
+ },
1016
+ "hierarchy": {
1017
+ "sequence": {
1018
+ "id": "kfxmfvwj",
1019
+ "page": "1",
1020
+ "label": {
1021
+ "value": "Tableau des habitants du logement",
1022
+ "type": "VTL|MD"
1023
+ }
1024
+ },
1025
+ "subSequence": {
1026
+ "id": "l126uoh0",
1027
+ "page": "4.10",
1028
+ "label": {
1029
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
1030
+ "type": "VTL|MD"
1031
+ }
1032
+ }
1033
+ },
1034
+ "bindingDependencies": [
1035
+ "PRENOM",
1036
+ "PRENOMREF",
1037
+ "LIB_PR",
1038
+ "LIB_SON",
1039
+ "AGRETOUR",
1040
+ "G_PRENOM"
1041
+ ],
1042
+ "response": { "name": "AGRETOUR" }
1043
+ },
1044
+
1045
+ {
1046
+ "id": "l127ghn9",
1047
+ "componentType": "Datepicker",
1048
+ "mandatory": false,
1049
+ "page": "4.15",
1050
+ "min": "1900",
1051
+ "max": "2022",
1052
+ "label": {
1053
+ "value": "\"➡ 15. \" || \"En quelle année \" || (if (PRENOM = PRENOMREF) then \"vous êtes-vous installé\" || LIB_E else PRENOM || \" s’est-\" || LIB_PR || \" installé\" || LIB_E) || \" en France ?\"",
1054
+ "type": "VTL|MD"
1055
+ },
1056
+ "declarations": [
1057
+ {
1058
+ "id": "l127ghn9-l1271ndw",
1059
+ "declarationType": "HELP",
1060
+ "position": "AFTER_QUESTION_TEXT",
1061
+ "label": {
1062
+ "value": "En cas de plusieurs installations en France, indiquer la plus récente",
1063
+ "type": "VTL|MD"
1064
+ }
1065
+ }
1066
+ ],
1067
+ "conditionFilter": {
1068
+ "value": "(LNAIS = \"2\")",
1069
+ "type": "VTL",
1070
+ "bindingDependencies": ["LNAIS"]
1071
+ },
1072
+ "controls": [
1073
+ {
1074
+ "id": "l127ghn9-CI-0",
1075
+ "criticality": "WARN",
1076
+ "control": {
1077
+ "value": "not(substr(cast(ANNARIV,string,\"YYYY-MM-DD\"),1,4) < cast(ANNAIS, integer))",
1078
+ "type": "VTL"
1079
+ },
1080
+ "errorMessage": {
1081
+ "value": "L’année d’arrivée en France est antérieure à l’année de naissance",
1082
+ "type": "VTL|MD"
1083
+ },
1084
+ "bindingDependencies": ["ANNARIV", "ANNAIS"]
1085
+ }
1086
+ ],
1087
+ "hierarchy": {
1088
+ "sequence": {
1089
+ "id": "kfxmfvwj",
1090
+ "page": "1",
1091
+ "label": {
1092
+ "value": "Tableau des habitants du logement",
1093
+ "type": "VTL|MD"
1094
+ }
1095
+ },
1096
+ "subSequence": {
1097
+ "id": "l126uoh0",
1098
+ "page": "4.10",
1099
+ "label": {
1100
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
1101
+ "type": "VTL|MD"
1102
+ }
1103
+ }
1104
+ },
1105
+ "bindingDependencies": [
1106
+ "PRENOM",
1107
+ "PRENOMREF",
1108
+ "LIB_E",
1109
+ "LIB_PR",
1110
+ "ANNARIV",
1111
+ "G_PRENOM"
1112
+ ],
1113
+ "dateFormat": "YYYY",
1114
+ "response": { "name": "ANNARIV" }
1115
+ },
1116
+
1117
+ {
1118
+ "id": "l1283pqp",
1119
+ "componentType": "InputNumber",
1120
+ "mandatory": false,
1121
+ "page": "4.16",
1122
+ "min": 0,
1123
+ "max": 120,
1124
+ "decimals": 0,
1125
+ "label": {
1126
+ "value": "\"➡ 16. \" || \"A quel âge \" || ( if (PRENOM = PRENOMREF) then \"vous êtes-vous installé\" || LIB_E else PRENOM || \" s’est-\" || LIB_PR || \" installé\" || LIB_E ) || \" en France ?\"",
1127
+ "type": "VTL|MD"
1128
+ },
1129
+ "conditionFilter": {
1130
+ "value": "(LNAIS = \"2\") and (isnull(ANNARIV))",
1131
+ "type": "VTL",
1132
+ "bindingDependencies": ["LNAIS", "ANNARIV"]
1133
+ },
1134
+ "hierarchy": {
1135
+ "sequence": {
1136
+ "id": "kfxmfvwj",
1137
+ "page": "1",
1138
+ "label": {
1139
+ "value": "Tableau des habitants du logement",
1140
+ "type": "VTL|MD"
1141
+ }
1142
+ },
1143
+ "subSequence": {
1144
+ "id": "l126uoh0",
1145
+ "page": "4.10",
1146
+ "label": {
1147
+ "value": "Vécu à l’étranger en dehors du temps de l’enquête",
1148
+ "type": "VTL|MD"
1149
+ }
1150
+ }
1151
+ },
1152
+ "bindingDependencies": [
1153
+ "PRENOM",
1154
+ "PRENOMREF",
1155
+ "LIB_E",
1156
+ "LIB_PR",
1157
+ "AGARRIV",
1158
+ "G_PRENOM"
1159
+ ],
1160
+ "response": { "name": "AGARRIV" }
1161
+ }
1162
+ ],
1163
+ "iterations": { "value": "count(G_PRENOM)", "type": "VTL" }
1164
+ },
1165
+
1166
+ {
1167
+ "id": "l13ntyek",
1168
+ "componentType": "Loop",
1169
+ "page": "5",
1170
+ "maxPage": "11",
1171
+ "depth": 1,
1172
+ "paginatedLoop": true,
1173
+ "conditionFilter": { "value": "true", "type": "VTL" },
1174
+ "hierarchy": {
1175
+ "sequence": {
1176
+ "id": "kfxmfvwj",
1177
+ "page": "1",
1178
+ "label": {
1179
+ "value": "Tableau des habitants du logement",
1180
+ "type": "VTL|MD"
1181
+ }
1182
+ }
1183
+ },
1184
+ "bindingDependencies": [
1185
+ "PRENOM",
1186
+ "PRENOMREF",
1187
+ "ADR",
1188
+ "LIB_PR",
1189
+ "LIB_SES",
1190
+ "LIB_SA",
1191
+ "LIB_SON",
1192
+ "MAJLOGENQ",
1193
+ "UNLOG",
1194
+ "DURLOG",
1195
+ "MINLOGENQ1",
1196
+ "MINLOGENQ2",
1197
+ "MINLOGENQ3",
1198
+ "MINLOGENQ4",
1199
+ "MINLOGENQ5",
1200
+ "MINLOGAUT",
1201
+ "GARDE",
1202
+ "DORM",
1203
+ "MAJLOGAUT",
1204
+ "LOGCO",
1205
+ "TYPLOGCO"
1206
+ ],
1207
+ "loopDependencies": ["G_PRENOM"],
1208
+ "components": [
1209
+ {
1210
+ "id": "l13np0wv",
1211
+ "componentType": "Subsequence",
1212
+ "page": "5.1",
1213
+ "goToPage": "5.1",
1214
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" },
1215
+ "declarations": [
1216
+ {
1217
+ "id": "l13np0wv-l13nsvaw",
1218
+ "declarationType": "HELP",
1219
+ "position": "AFTER_QUESTION_TEXT",
1220
+ "label": {
1221
+ "value": "\"Nous allons maintenant poser quelques questions concernant \" || (if (PRENOM = PRENOMREF) then \"vos autres logements, \" ||PRENOM else \"les autres logements de \" || PRENOM ) || \" (en dehors de celui situé à l’adresse) \" || ADR || \".\"",
1222
+ "type": "VTL|MD"
1223
+ }
1224
+ }
1225
+ ],
1226
+ "conditionFilter": { "value": "true", "type": "VTL" },
1227
+ "hierarchy": {
1228
+ "sequence": {
1229
+ "id": "kfxmfvwj",
1230
+ "page": "1",
1231
+ "label": {
1232
+ "value": "Tableau des habitants du logement",
1233
+ "type": "VTL|MD"
1234
+ }
1235
+ },
1236
+ "subSequence": {
1237
+ "id": "l13np0wv",
1238
+ "page": "5.1",
1239
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1240
+ }
1241
+ },
1242
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "ADR", "G_PRENOM"]
1243
+ },
1244
+
1245
+ {
1246
+ "id": "l13nj6s2",
1247
+ "componentType": "Radio",
1248
+ "mandatory": false,
1249
+ "page": "5.2",
1250
+ "label": {
1251
+ "value": "\"➡ 17. \" || (if (PRENOM = PRENOMREF) then \"Vivez-vous\" else PRENOM || \" vit-\" || LIB_PR ) || \" aussi dans un autre logement ?\"",
1252
+ "type": "VTL|MD"
1253
+ },
1254
+ "declarations": [
1255
+ {
1256
+ "id": "l13nj6s2-l13ouetk",
1257
+ "declarationType": "HELP",
1258
+ "position": "AFTER_QUESTION_TEXT",
1259
+ "label": {
1260
+ "value": "(if (PRENOM=PRENOMREF) then \"Si vous êtes \" else \"Si \" || PRENOM || \" est un enfant \") || \"en résidence alternée, répondre Oui.\"",
1261
+ "type": "VTL|MD"
1262
+ }
1263
+ },
1264
+
1265
+ {
1266
+ "id": "l13nj6s2-l13o92e6",
1267
+ "declarationType": "HELP",
1268
+ "position": "AFTER_QUESTION_TEXT",
1269
+ "label": {
1270
+ "value": "(if(PRENOM=PRENOMREF) then \"Vous vivez \" else PRENOM || \" vit \") || \"dans un autre logement (résidence secondaire, internat, foyer, caserne, maison de retraite ...) \" || (if(PRENOM=PRENOMREF) then \"si vous disposez d’un autre endroit où vous êtes chez vous : vous pouvez y aller sans prévenir, un lit vous est réservé, vous pouvez y recevoir du courrier ...\" else \"si \" ||LIB_PR || \" dispose d’un autre endroit où \" ||LIB_PR ||\" est chez \" ||LIB_PR || \" : \" ||LIB_PR || \" peut y aller sans prévenir, un lit lui est réservé, \" ||LIB_PR || \" peut y recevoir du courrier ...\")",
1271
+ "type": "VTL|MD"
1272
+ }
1273
+ }
1274
+ ],
1275
+ "conditionFilter": { "value": "true", "type": "VTL" },
1276
+ "hierarchy": {
1277
+ "sequence": {
1278
+ "id": "kfxmfvwj",
1279
+ "page": "1",
1280
+ "label": {
1281
+ "value": "Tableau des habitants du logement",
1282
+ "type": "VTL|MD"
1283
+ }
1284
+ },
1285
+ "subSequence": {
1286
+ "id": "l13np0wv",
1287
+ "page": "5.1",
1288
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1289
+ }
1290
+ },
1291
+ "bindingDependencies": [
1292
+ "PRENOM",
1293
+ "PRENOMREF",
1294
+ "LIB_PR",
1295
+ "UNLOG",
1296
+ "G_PRENOM"
1297
+ ],
1298
+ "options": [
1299
+ { "value": "1", "label": { "value": "Oui", "type": "VTL|MD" } },
1300
+
1301
+ { "value": "2", "label": { "value": "Non", "type": "VTL|MD" } }
1302
+ ],
1303
+ "response": { "name": "UNLOG" }
1304
+ },
1305
+
1306
+ {
1307
+ "id": "l13nyqwe",
1308
+ "componentType": "Radio",
1309
+ "mandatory": false,
1310
+ "page": "5.3",
1311
+ "label": {
1312
+ "value": "\"➡ 18. \" || \"Combien de temps \" || if (PRENOM = PRENOMREF) then \"vivez vous dans le logement situé à l’adresse \" || ADR || \" ?\" else PRENOM || \" vit-\" || LIB_PR || \" dans le logement situé à l’adresse \" || ADR || \" ?\"",
1313
+ "type": "VTL|MD"
1314
+ },
1315
+ "conditionFilter": {
1316
+ "value": "(UNLOG = \"1\")",
1317
+ "type": "VTL",
1318
+ "bindingDependencies": ["UNLOG"]
1319
+ },
1320
+ "hierarchy": {
1321
+ "sequence": {
1322
+ "id": "kfxmfvwj",
1323
+ "page": "1",
1324
+ "label": {
1325
+ "value": "Tableau des habitants du logement",
1326
+ "type": "VTL|MD"
1327
+ }
1328
+ },
1329
+ "subSequence": {
1330
+ "id": "l13np0wv",
1331
+ "page": "5.1",
1332
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1333
+ }
1334
+ },
1335
+ "bindingDependencies": [
1336
+ "PRENOM",
1337
+ "PRENOMREF",
1338
+ "ADR",
1339
+ "LIB_PR",
1340
+ "DURLOG",
1341
+ "G_PRENOM"
1342
+ ],
1343
+ "options": [
1344
+ {
1345
+ "value": "1",
1346
+ "label": {
1347
+ "value": "Plus de la moitié du temps",
1348
+ "type": "VTL|MD"
1349
+ }
1350
+ },
1351
+
1352
+ {
1353
+ "value": "2",
1354
+ "label": { "value": "La moitié du temps", "type": "VTL|MD" }
1355
+ },
1356
+
1357
+ {
1358
+ "value": "3",
1359
+ "label": {
1360
+ "value": "Moins de la moitié du temps",
1361
+ "type": "VTL|MD"
1362
+ }
1363
+ }
1364
+ ],
1365
+ "response": { "name": "DURLOG" }
1366
+ },
1367
+
1368
+ {
1369
+ "id": "l13ok7fx",
1370
+ "componentType": "CheckboxGroup",
1371
+ "page": "5.4",
1372
+ "label": {
1373
+ "value": "\"➡ 19. \" || \"Pour quelles raisons \" || (if (PRENOM = PRENOMREF) then \"vivez-vous\" else PRENOM || \" vit-\" || LIB_PR ) || \" dans le logement situé à l’adresse \" ||ADR ||\" sans \" ||LIB_SES || \" parents ?\"",
1374
+ "type": "VTL|MD"
1375
+ },
1376
+ "conditionFilter": {
1377
+ "value": "(MINEUR = \"1\" and $NBPARL$ = \"0\")",
1378
+ "type": "VTL",
1379
+ "bindingDependencies": ["MINEUR", "TRAGE6", "DATENAIS", "TRAGE"]
1380
+ },
1381
+ "hierarchy": {
1382
+ "sequence": {
1383
+ "id": "kfxmfvwj",
1384
+ "page": "1",
1385
+ "label": {
1386
+ "value": "Tableau des habitants du logement",
1387
+ "type": "VTL|MD"
1388
+ }
1389
+ },
1390
+ "subSequence": {
1391
+ "id": "l13np0wv",
1392
+ "page": "5.1",
1393
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1394
+ }
1395
+ },
1396
+ "bindingDependencies": [
1397
+ "PRENOM",
1398
+ "PRENOMREF",
1399
+ "LIB_PR",
1400
+ "ADR",
1401
+ "LIB_SES",
1402
+ "LIB_SA",
1403
+ "LIB_SON",
1404
+ "MINLOGENQ1",
1405
+ "MINLOGENQ2",
1406
+ "MINLOGENQ3",
1407
+ "MINLOGENQ4",
1408
+ "MINLOGENQ5",
1409
+ "G_PRENOM"
1410
+ ],
1411
+ "responses": [
1412
+ {
1413
+ "id": "l13ok7fx-QOP-l13p1gvt",
1414
+ "label": {
1415
+ "value": "\"Pour suivre \" ||LIB_SA|| \" scolarité ou \" ||LIB_SES|| \" études.\"",
1416
+ "type": "VTL|MD"
1417
+ },
1418
+ "response": { "name": "MINLOGENQ1" }
1419
+ },
1420
+
1421
+ {
1422
+ "id": "l13ok7fx-QOP-l13pbmo5",
1423
+ "label": {
1424
+ "value": "Pour des raisons de santé ou de handicap",
1425
+ "type": "VTL|MD"
1426
+ },
1427
+ "response": { "name": "MINLOGENQ2" }
1428
+ },
1429
+
1430
+ {
1431
+ "id": "l13ok7fx-QOP-l13oz5s4",
1432
+ "label": {
1433
+ "value": "\"Pour \" ||LIB_SON|| \" travail ou une formation professionnelle\"",
1434
+ "type": "VTL|MD"
1435
+ },
1436
+ "response": { "name": "MINLOGENQ3" }
1437
+ },
1438
+
1439
+ {
1440
+ "id": "l13ok7fx-QOP-l13pcs6r",
1441
+ "label": {
1442
+ "value": "Suite à une décision de l’aide sociale à l’enfance ou du juge des enfants",
1443
+ "type": "VTL|MD"
1444
+ },
1445
+ "response": { "name": "MINLOGENQ4" }
1446
+ },
1447
+
1448
+ {
1449
+ "id": "l13ok7fx-QOP-l13p5fws",
1450
+ "label": { "value": "Pour une autre raison", "type": "VTL|MD" },
1451
+ "response": { "name": "MINLOGENQ5" }
1452
+ }
1453
+ ]
1454
+ },
1455
+
1456
+ {
1457
+ "id": "l13on6tn",
1458
+ "componentType": "Radio",
1459
+ "mandatory": false,
1460
+ "page": "5.5",
1461
+ "label": {
1462
+ "value": "\"➡ 20. \" || if (PRENOM = PRENOMREF) then \"L’autre logement dans lequel vous vivez est-il ... ?\" else \"Pour \" || PRENOM || \", l’autre logement dans lequel \" || LIB_PR || \" vit, est-il ... ?\"",
1463
+ "type": "VTL|MD"
1464
+ },
1465
+ "declarations": [
1466
+ {
1467
+ "id": "l13on6tn-l13p60fc",
1468
+ "declarationType": "HELP",
1469
+ "position": "AFTER_QUESTION_TEXT",
1470
+ "label": {
1471
+ "value": "if(PRENOM=PRENOMREF) then \"Si vous vivez dans plusieurs autres logements, décrivez l’autre logement dans lequel vous passez le plus de temps.\" else \"Si \" || PRENOM || \" vit dans plusieurs autres logements, décrire l’autre logement dans lequel \" ||LIB_PR || \" passe le plus de temps.\"",
1472
+ "type": "VTL|MD"
1473
+ }
1474
+ }
1475
+ ],
1476
+ "conditionFilter": {
1477
+ "value": "(MINEUR = \"1\" and UNLOG = \"1\")",
1478
+ "type": "VTL",
1479
+ "bindingDependencies": [
1480
+ "MINEUR",
1481
+ "TRAGE6",
1482
+ "DATENAIS",
1483
+ "TRAGE",
1484
+ "UNLOG"
1485
+ ]
1486
+ },
1487
+ "hierarchy": {
1488
+ "sequence": {
1489
+ "id": "kfxmfvwj",
1490
+ "page": "1",
1491
+ "label": {
1492
+ "value": "Tableau des habitants du logement",
1493
+ "type": "VTL|MD"
1494
+ }
1495
+ },
1496
+ "subSequence": {
1497
+ "id": "l13np0wv",
1498
+ "page": "5.1",
1499
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1500
+ }
1501
+ },
1502
+ "bindingDependencies": [
1503
+ "PRENOM",
1504
+ "PRENOMREF",
1505
+ "LIB_PR",
1506
+ "LIB_SON",
1507
+ "LIB_SES",
1508
+ "MINLOGAUT",
1509
+ "G_PRENOM"
1510
+ ],
1511
+ "options": [
1512
+ {
1513
+ "value": "1",
1514
+ "label": {
1515
+ "value": "\"Le logement de \" ||LIB_SON|| \" ou de \" ||LIB_SES|| \" parent(s)\"",
1516
+ "type": "VTL|MD"
1517
+ }
1518
+ },
1519
+
1520
+ {
1521
+ "value": "2",
1522
+ "label": {
1523
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour \" ||LIB_SES|| \" études.\"",
1524
+ "type": "VTL|MD"
1525
+ }
1526
+ },
1527
+
1528
+ {
1529
+ "value": "3",
1530
+ "label": {
1531
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour \" ||LIB_SON|| \" travail ou une formation professionnelle.\"",
1532
+ "type": "VTL|MD"
1533
+ }
1534
+ },
1535
+
1536
+ {
1537
+ "value": "4",
1538
+ "label": {
1539
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour des raissons de santé ou de handicap.\"",
1540
+ "type": "VTL|MD"
1541
+ }
1542
+ },
1543
+
1544
+ {
1545
+ "value": "5",
1546
+ "label": {
1547
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" suite à une décision de l’aide sociale à l’enfance ou du juge des enfants.\"",
1548
+ "type": "VTL|MD"
1549
+ }
1550
+ },
1551
+
1552
+ {
1553
+ "value": "6",
1554
+ "label": {
1555
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour une autre raison.\"",
1556
+ "type": "VTL|MD"
1557
+ }
1558
+ }
1559
+ ],
1560
+ "response": { "name": "MINLOGAUT" }
1561
+ },
1562
+
1563
+ {
1564
+ "id": "l13oux5e",
1565
+ "componentType": "Radio",
1566
+ "mandatory": false,
1567
+ "page": "5.6",
1568
+ "label": {
1569
+ "value": "\"➡ 21. \" || (if (PRENOM = PRENOMREF) then \"Etes-vous\" else PRENOM || \" est-\" ||LIB_PR ) || \" en résidence alternée entre ses deux parents ?\"",
1570
+ "type": "VTL|MD"
1571
+ },
1572
+ "conditionFilter": {
1573
+ "value": "(DURLOG = \"2\" and $NBPARL$ = \"1\" and MINLOGAUT = \"1\")",
1574
+ "type": "VTL",
1575
+ "bindingDependencies": ["DURLOG", "MINLOGAUT"]
1576
+ },
1577
+ "hierarchy": {
1578
+ "sequence": {
1579
+ "id": "kfxmfvwj",
1580
+ "page": "1",
1581
+ "label": {
1582
+ "value": "Tableau des habitants du logement",
1583
+ "type": "VTL|MD"
1584
+ }
1585
+ },
1586
+ "subSequence": {
1587
+ "id": "l13np0wv",
1588
+ "page": "5.1",
1589
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1590
+ }
1591
+ },
1592
+ "bindingDependencies": [
1593
+ "PRENOM",
1594
+ "PRENOMREF",
1595
+ "LIB_PR",
1596
+ "GARDE",
1597
+ "G_PRENOM"
1598
+ ],
1599
+ "options": [
1600
+ { "value": "1", "label": { "value": "Oui", "type": "VTL|MD" } },
1601
+
1602
+ { "value": "2", "label": { "value": "Non", "type": "VTL|MD" } }
1603
+ ],
1604
+ "response": { "name": "GARDE" }
1605
+ },
1606
+
1607
+ {
1608
+ "id": "l13pabqu",
1609
+ "componentType": "Radio",
1610
+ "mandatory": false,
1611
+ "page": "5.7",
1612
+ "label": {
1613
+ "value": "\"➡ 22. \" || (if (PRENOM = PRENOMREF) then \"Où avez-vous\" else \"Où \" || PRENOM || \" a-t-\" || LIB_PR ) || \" dormi la nuit derière ?\"",
1614
+ "type": "VTL|MD"
1615
+ },
1616
+ "declarations": [
1617
+ {
1618
+ "id": "l13pabqu-l13pckb2",
1619
+ "declarationType": "HELP",
1620
+ "position": "AFTER_QUESTION_TEXT",
1621
+ "label": {
1622
+ "value": "\"Si \" || PRENOM || \" a dormi chez un(e) ami(e), indiquez le logement où il devait normalement dormir.\"",
1623
+ "type": "VTL|MD"
1624
+ }
1625
+ }
1626
+ ],
1627
+ "conditionFilter": {
1628
+ "value": "(GARDE = \"1\")",
1629
+ "type": "VTL",
1630
+ "bindingDependencies": ["GARDE"]
1631
+ },
1632
+ "hierarchy": {
1633
+ "sequence": {
1634
+ "id": "kfxmfvwj",
1635
+ "page": "1",
1636
+ "label": {
1637
+ "value": "Tableau des habitants du logement",
1638
+ "type": "VTL|MD"
1639
+ }
1640
+ },
1641
+ "subSequence": {
1642
+ "id": "l13np0wv",
1643
+ "page": "5.1",
1644
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1645
+ }
1646
+ },
1647
+ "bindingDependencies": [
1648
+ "PRENOM",
1649
+ "PRENOMREF",
1650
+ "LIB_PR",
1651
+ "ADR",
1652
+ "LIB_SON",
1653
+ "DORM",
1654
+ "G_PRENOM"
1655
+ ],
1656
+ "options": [
1657
+ {
1658
+ "value": "1",
1659
+ "label": {
1660
+ "value": "\"Dans le logement situé à l’adresse \" || ADR || \".\"",
1661
+ "type": "VTL|MD"
1662
+ }
1663
+ },
1664
+
1665
+ {
1666
+ "value": "2",
1667
+ "label": {
1668
+ "value": "\"Dans le logement de \" ||LIB_SON|| \" autre parent.\"",
1669
+ "type": "VTL|MD"
1670
+ }
1671
+ }
1672
+ ],
1673
+ "response": { "name": "DORM" }
1674
+ },
1675
+
1676
+ {
1677
+ "id": "l13pbxr1",
1678
+ "componentType": "Radio",
1679
+ "mandatory": false,
1680
+ "page": "5.8",
1681
+ "label": {
1682
+ "value": "\"➡ 23. \" || (if (PRENOM = PRENOMREF) then \"Pour vous\" else \"Pour \" || PRENOM ) || \", le logement situé à l’adresse \" || ADR || \" est-il ... ?\"",
1683
+ "type": "VTL|MD"
1684
+ },
1685
+ "conditionFilter": {
1686
+ "value": "(UNLOG = \"1\" and MINEUR = \"2\")",
1687
+ "type": "VTL",
1688
+ "bindingDependencies": [
1689
+ "UNLOG",
1690
+ "MINEUR",
1691
+ "TRAGE6",
1692
+ "DATENAIS",
1693
+ "TRAGE"
1694
+ ]
1695
+ },
1696
+ "hierarchy": {
1697
+ "sequence": {
1698
+ "id": "kfxmfvwj",
1699
+ "page": "1",
1700
+ "label": {
1701
+ "value": "Tableau des habitants du logement",
1702
+ "type": "VTL|MD"
1703
+ }
1704
+ },
1705
+ "subSequence": {
1706
+ "id": "l13np0wv",
1707
+ "page": "5.1",
1708
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1709
+ }
1710
+ },
1711
+ "bindingDependencies": [
1712
+ "PRENOM",
1713
+ "PRENOMREF",
1714
+ "ADR",
1715
+ "LIB_PR",
1716
+ "LIB_SES",
1717
+ "LIB_SON",
1718
+ "MAJLOGENQ",
1719
+ "G_PRENOM"
1720
+ ],
1721
+ "options": [
1722
+ {
1723
+ "value": "1",
1724
+ "label": {
1725
+ "value": "(if(PRENOM = PRENOMREF) then \"Votre \" else \"Sa \") || \"résidence principale\"",
1726
+ "type": "VTL|MD"
1727
+ }
1728
+ },
1729
+
1730
+ {
1731
+ "value": "2",
1732
+ "label": {
1733
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR || \" occupe\") || \" pour \" ||LIB_SES || \" études.\"",
1734
+ "type": "VTL|MD"
1735
+ }
1736
+ },
1737
+
1738
+ {
1739
+ "value": "3",
1740
+ "label": {
1741
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez \" else \"qu’\" || LIB_PR || \"occupe \") || \"pour \" ||LIB_SON|| \" travail ou une formation professionnelle.\"",
1742
+ "type": "VTL|MD"
1743
+ }
1744
+ },
1745
+
1746
+ {
1747
+ "value": "4",
1748
+ "label": {
1749
+ "value": "\"Une résidence secondaire, un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez \" else \"qu’\" || LIB_PR || \"occupe \") || \"pour le week-end, les vacances ou pour \" ||LIB_SES|| \" loisirs.\"",
1750
+ "type": "VTL|MD"
1751
+ }
1752
+ },
1753
+
1754
+ {
1755
+ "value": "5",
1756
+ "label": {
1757
+ "value": "\"Le logement d’un ou de \" ||LIB_SES|| \" parent(s).\"",
1758
+ "type": "VTL|MD"
1759
+ }
1760
+ },
1761
+
1762
+ {
1763
+ "value": "6",
1764
+ "label": {
1765
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez \" else \"qu’\" || LIB_PR || \" occupe \") || \"pour une autre raison.\"",
1766
+ "type": "VTL|MD"
1767
+ }
1768
+ }
1769
+ ],
1770
+ "response": { "name": "MAJLOGENQ" }
1771
+ },
1772
+
1773
+ {
1774
+ "id": "l13pyw1k",
1775
+ "componentType": "Radio",
1776
+ "mandatory": false,
1777
+ "page": "5.9",
1778
+ "label": {
1779
+ "value": "\"➡ 24. \" || if (PRENOM = PRENOMREF) then \"L’autre logement dans lequel vous vivez est-il ... ?\" else \"Pour \" || PRENOM || \", l’autre logement dans lequel \" || LIB_PR || \" vit, est-il ... ?\"",
1780
+ "type": "VTL|MD"
1781
+ },
1782
+ "declarations": [
1783
+ {
1784
+ "id": "l13pyw1k-l13q4e9k",
1785
+ "declarationType": "HELP",
1786
+ "position": "AFTER_QUESTION_TEXT",
1787
+ "label": {
1788
+ "value": "\"Si \" || PRENOM || \" vit dans plusieurs autres logements, décrivez l’autre logement dans lequel il passe le plus de temps.\"",
1789
+ "type": "VTL|MD"
1790
+ }
1791
+ }
1792
+ ],
1793
+ "conditionFilter": {
1794
+ "value": "(UNLOG = \"1\" and MINEUR = \"2\")",
1795
+ "type": "VTL",
1796
+ "bindingDependencies": [
1797
+ "UNLOG",
1798
+ "MINEUR",
1799
+ "TRAGE6",
1800
+ "DATENAIS",
1801
+ "TRAGE"
1802
+ ]
1803
+ },
1804
+ "hierarchy": {
1805
+ "sequence": {
1806
+ "id": "kfxmfvwj",
1807
+ "page": "1",
1808
+ "label": {
1809
+ "value": "Tableau des habitants du logement",
1810
+ "type": "VTL|MD"
1811
+ }
1812
+ },
1813
+ "subSequence": {
1814
+ "id": "l13np0wv",
1815
+ "page": "5.1",
1816
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1817
+ }
1818
+ },
1819
+ "bindingDependencies": [
1820
+ "PRENOM",
1821
+ "PRENOMREF",
1822
+ "LIB_PR",
1823
+ "MAJLOGENQ",
1824
+ "LIB_SES",
1825
+ "LIB_SON",
1826
+ "MAJLOGAUT",
1827
+ "G_PRENOM"
1828
+ ],
1829
+ "options": [
1830
+ {
1831
+ "value": "1",
1832
+ "label": {
1833
+ "value": "if cast(MAJLOGENQ,integer) <> 1 then ( if (PRENOM = PRENOMREF) then \"Votre résidence principale.\" else \"Sa résidence principale.\") else \"\"",
1834
+ "type": "VTL|MD"
1835
+ }
1836
+ },
1837
+
1838
+ {
1839
+ "value": "2",
1840
+ "label": {
1841
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour \" ||LIB_SES|| \" études.\"",
1842
+ "type": "VTL|MD"
1843
+ }
1844
+ },
1845
+
1846
+ {
1847
+ "value": "3",
1848
+ "label": {
1849
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" pour \" ||LIB_SON|| \" travail ou une formation professionnelle.\"",
1850
+ "type": "VTL|MD"
1851
+ }
1852
+ },
1853
+
1854
+ {
1855
+ "value": "4",
1856
+ "label": {
1857
+ "value": "\"Une résidence secondaire, un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR|| \" occupe\") || \" le week-end, les vacances ou pour \" ||LIB_SES|| \" loisirs.\"",
1858
+ "type": "VTL|MD"
1859
+ }
1860
+ },
1861
+
1862
+ {
1863
+ "value": "5",
1864
+ "label": {
1865
+ "value": "\"Le logement d’un ou de \" ||LIB_SES|| \" parent(s)\"",
1866
+ "type": "VTL|MD"
1867
+ }
1868
+ },
1869
+
1870
+ {
1871
+ "value": "6",
1872
+ "label": {
1873
+ "value": "\"Un logement \" || (if (PRENOM = PRENOMREF) then \"que vous occupez\" else \"qu’\" ||LIB_PR || \" occupe\") || \" pour \" ||LIB_SON|| \" pour une autre raison.\"",
1874
+ "type": "VTL|MD"
1875
+ }
1876
+ }
1877
+ ],
1878
+ "response": { "name": "MAJLOGAUT" }
1879
+ },
1880
+
1881
+ {
1882
+ "id": "l13q9a24",
1883
+ "componentType": "Radio",
1884
+ "mandatory": false,
1885
+ "page": "5.10",
1886
+ "label": {
1887
+ "value": "\"➡ 25. \" || \"L’autre logement \" || (if (PRENOM = PRENOMREF) then \"dans lequel vous vivez\" else \"où vit \" || PRENOM ) || \" est-il une chambre dans une structure collective (internat, résidence étudiante, foyer de l’enfance, foyer de jeunes travailleurs) ?\"",
1888
+ "type": "VTL|MD"
1889
+ },
1890
+ "conditionFilter": {
1891
+ "value": "(MINLOGAUT =\"2\" or MINLOGAUT =\"3\" or MINLOGAUT =\"4\" or MINLOGAUT =\"5\" or MINLOGAUT =\"6\" or MAJLOGAUT=\"1\" or MAJLOGAUT=\"2\" or MAJLOGAUT=\"3\" or MAJLOGAUT=\"6\")",
1892
+ "type": "VTL",
1893
+ "bindingDependencies": ["MINLOGAUT", "MAJLOGAUT"]
1894
+ },
1895
+ "hierarchy": {
1896
+ "sequence": {
1897
+ "id": "kfxmfvwj",
1898
+ "page": "1",
1899
+ "label": {
1900
+ "value": "Tableau des habitants du logement",
1901
+ "type": "VTL|MD"
1902
+ }
1903
+ },
1904
+ "subSequence": {
1905
+ "id": "l13np0wv",
1906
+ "page": "5.1",
1907
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1908
+ }
1909
+ },
1910
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "LOGCO", "G_PRENOM"],
1911
+ "options": [
1912
+ { "value": "1", "label": { "value": "Oui", "type": "VTL|MD" } },
1913
+
1914
+ { "value": "2", "label": { "value": "Non", "type": "VTL|MD" } }
1915
+ ],
1916
+ "response": { "name": "LOGCO" }
1917
+ },
1918
+
1919
+ {
1920
+ "id": "l13qc9n8",
1921
+ "componentType": "Radio",
1922
+ "mandatory": false,
1923
+ "page": "5.11",
1924
+ "label": {
1925
+ "value": "\"➡ 26. \" || \"De quelle structure s’agit-il ?\"",
1926
+ "type": "VTL|MD"
1927
+ },
1928
+ "conditionFilter": {
1929
+ "value": "(LOGCO = \"1\")",
1930
+ "type": "VTL",
1931
+ "bindingDependencies": ["LOGCO"]
1932
+ },
1933
+ "hierarchy": {
1934
+ "sequence": {
1935
+ "id": "kfxmfvwj",
1936
+ "page": "1",
1937
+ "label": {
1938
+ "value": "Tableau des habitants du logement",
1939
+ "type": "VTL|MD"
1940
+ }
1941
+ },
1942
+ "subSequence": {
1943
+ "id": "l13np0wv",
1944
+ "page": "5.1",
1945
+ "label": { "value": "Lieux de vie", "type": "VTL|MD" }
1946
+ }
1947
+ },
1948
+ "bindingDependencies": ["TYPLOGCO", "G_PRENOM"],
1949
+ "options": [
1950
+ {
1951
+ "value": "1",
1952
+ "label": {
1953
+ "value": "\"Un internat, une résidence étudiante ou un foyer d’étudiants\"",
1954
+ "type": "VTL|MD"
1955
+ }
1956
+ },
1957
+
1958
+ {
1959
+ "value": "2",
1960
+ "label": {
1961
+ "value": "\"Un établissement pour personnes âgées (maison de retraite, Ehpad)\"",
1962
+ "type": "VTL|MD"
1963
+ }
1964
+ },
1965
+
1966
+ {
1967
+ "value": "3",
1968
+ "label": {
1969
+ "value": "\"Un foyer ou une résidence sociale (CADA, structure gérée par Adoma...), foyer de réinsertion ou foyer de travailleurs\"",
1970
+ "type": "VTL|MD"
1971
+ }
1972
+ },
1973
+
1974
+ {
1975
+ "value": "4",
1976
+ "label": {
1977
+ "value": "\"Une structure d’aide sociale à l’enfance ou de protection judiciaire\"",
1978
+ "type": "VTL|MD"
1979
+ }
1980
+ },
1981
+
1982
+ {
1983
+ "value": "5",
1984
+ "label": {
1985
+ "value": "\"Une structure pour personne nécessitant des soins médicaux (hôpital, maison de repos, centre de rééducation)\"",
1986
+ "type": "VTL|MD"
1987
+ }
1988
+ },
1989
+
1990
+ {
1991
+ "value": "6",
1992
+ "label": {
1993
+ "value": "\"Une caserne, un camp militaire\"",
1994
+ "type": "VTL|MD"
1995
+ }
1996
+ },
1997
+
1998
+ {
1999
+ "value": "7",
2000
+ "label": {
2001
+ "value": "\"Une autre structure (prison, communauté religieuse, hébergement d’urgence ...)\"",
2002
+ "type": "VTL|MD"
2003
+ }
2004
+ }
2005
+ ],
2006
+ "response": { "name": "TYPLOGCO" }
2007
+ }
2008
+ ],
2009
+ "iterations": { "value": "count(G_PRENOM)", "type": "VTL" }
2010
+ }
2011
+ ],
2012
+ "variables": [
2013
+ { "variableType": "EXTERNAL", "name": "ADR", "value": null },
2014
+
2015
+ {
2016
+ "variableType": "COLLECTED",
2017
+ "name": "NHAB",
2018
+ "values": {
2019
+ "PREVIOUS": null,
2020
+ "COLLECTED": null,
2021
+ "FORCED": null,
2022
+ "EDITED": null,
2023
+ "INPUTED": null
2024
+ }
2025
+ },
2026
+
2027
+ {
2028
+ "variableType": "COLLECTED",
2029
+ "name": "G_PRENOM",
2030
+ "values": {
2031
+ "PREVIOUS": [null],
2032
+ "COLLECTED": [null],
2033
+ "FORCED": [null],
2034
+ "EDITED": [null],
2035
+ "INPUTED": [null]
2036
+ }
2037
+ },
2038
+
2039
+ {
2040
+ "variableType": "COLLECTED",
2041
+ "name": "SEXE",
2042
+ "values": {
2043
+ "PREVIOUS": [null],
2044
+ "COLLECTED": [null],
2045
+ "FORCED": [null],
2046
+ "EDITED": [null],
2047
+ "INPUTED": [null]
2048
+ }
2049
+ },
2050
+
2051
+ {
2052
+ "variableType": "COLLECTED",
2053
+ "name": "DATENAIS",
2054
+ "values": {
2055
+ "PREVIOUS": [null],
2056
+ "COLLECTED": [null],
2057
+ "FORCED": [null],
2058
+ "EDITED": [null],
2059
+ "INPUTED": [null]
2060
+ }
2061
+ },
2062
+
2063
+ {
2064
+ "variableType": "COLLECTED",
2065
+ "name": "TRAGE",
2066
+ "values": {
2067
+ "PREVIOUS": [null],
2068
+ "COLLECTED": [null],
2069
+ "FORCED": [null],
2070
+ "EDITED": [null],
2071
+ "INPUTED": [null]
2072
+ }
2073
+ },
2074
+
2075
+ {
2076
+ "variableType": "COLLECTED",
2077
+ "name": "LNAIS",
2078
+ "values": {
2079
+ "PREVIOUS": [null],
2080
+ "COLLECTED": [null],
2081
+ "FORCED": [null],
2082
+ "EDITED": [null],
2083
+ "INPUTED": [null]
2084
+ }
2085
+ },
2086
+
2087
+ {
2088
+ "variableType": "COLLECTED",
2089
+ "name": "DEPNAIS",
2090
+ "values": {
2091
+ "PREVIOUS": [null],
2092
+ "COLLECTED": [null],
2093
+ "FORCED": [null],
2094
+ "EDITED": [null],
2095
+ "INPUTED": [null]
2096
+ }
2097
+ },
2098
+
2099
+ {
2100
+ "variableType": "COLLECTED",
2101
+ "name": "PAYSNAIS",
2102
+ "values": {
2103
+ "PREVIOUS": [null],
2104
+ "COLLECTED": [null],
2105
+ "FORCED": [null],
2106
+ "EDITED": [null],
2107
+ "INPUTED": [null]
2108
+ }
2109
+ },
2110
+
2111
+ {
2112
+ "variableType": "COLLECTED",
2113
+ "name": "NATION1",
2114
+ "values": {
2115
+ "PREVIOUS": [null],
2116
+ "COLLECTED": [null],
2117
+ "FORCED": [null],
2118
+ "EDITED": [null],
2119
+ "INPUTED": [null]
2120
+ }
2121
+ },
2122
+
2123
+ {
2124
+ "variableType": "COLLECTED",
2125
+ "name": "NATION2",
2126
+ "values": {
2127
+ "PREVIOUS": [null],
2128
+ "COLLECTED": [null],
2129
+ "FORCED": [null],
2130
+ "EDITED": [null],
2131
+ "INPUTED": [null]
2132
+ }
2133
+ },
2134
+
2135
+ {
2136
+ "variableType": "COLLECTED",
2137
+ "name": "NATION3",
2138
+ "values": {
2139
+ "PREVIOUS": [null],
2140
+ "COLLECTED": [null],
2141
+ "FORCED": [null],
2142
+ "EDITED": [null],
2143
+ "INPUTED": [null]
2144
+ }
2145
+ },
2146
+
2147
+ {
2148
+ "variableType": "COLLECTED",
2149
+ "name": "NATION4",
2150
+ "values": {
2151
+ "PREVIOUS": [null],
2152
+ "COLLECTED": [null],
2153
+ "FORCED": [null],
2154
+ "EDITED": [null],
2155
+ "INPUTED": [null]
2156
+ }
2157
+ },
2158
+
2159
+ {
2160
+ "variableType": "COLLECTED",
2161
+ "name": "NATIONETR",
2162
+ "values": {
2163
+ "PREVIOUS": [null],
2164
+ "COLLECTED": [null],
2165
+ "FORCED": [null],
2166
+ "EDITED": [null],
2167
+ "INPUTED": [null]
2168
+ }
2169
+ },
2170
+
2171
+ {
2172
+ "variableType": "COLLECTED",
2173
+ "name": "VECUE",
2174
+ "values": {
2175
+ "PREVIOUS": [null],
2176
+ "COLLECTED": [null],
2177
+ "FORCED": [null],
2178
+ "EDITED": [null],
2179
+ "INPUTED": [null]
2180
+ }
2181
+ },
2182
+
2183
+ {
2184
+ "variableType": "COLLECTED",
2185
+ "name": "DATEDEPART",
2186
+ "values": {
2187
+ "PREVIOUS": [null],
2188
+ "COLLECTED": [null],
2189
+ "FORCED": [null],
2190
+ "EDITED": [null],
2191
+ "INPUTED": [null]
2192
+ }
2193
+ },
2194
+
2195
+ {
2196
+ "variableType": "COLLECTED",
2197
+ "name": "DATERETOUR",
2198
+ "values": {
2199
+ "PREVIOUS": [null],
2200
+ "COLLECTED": [null],
2201
+ "FORCED": [null],
2202
+ "EDITED": [null],
2203
+ "INPUTED": [null]
2204
+ }
2205
+ },
2206
+
2207
+ {
2208
+ "variableType": "COLLECTED",
2209
+ "name": "AGRETOUR",
2210
+ "values": {
2211
+ "PREVIOUS": [null],
2212
+ "COLLECTED": [null],
2213
+ "FORCED": [null],
2214
+ "EDITED": [null],
2215
+ "INPUTED": [null]
2216
+ }
2217
+ },
2218
+
2219
+ {
2220
+ "variableType": "COLLECTED",
2221
+ "name": "ANNARIV",
2222
+ "values": {
2223
+ "PREVIOUS": [null],
2224
+ "COLLECTED": [null],
2225
+ "FORCED": [null],
2226
+ "EDITED": [null],
2227
+ "INPUTED": [null]
2228
+ }
2229
+ },
2230
+
2231
+ {
2232
+ "variableType": "COLLECTED",
2233
+ "name": "AGARRIV",
2234
+ "values": {
2235
+ "PREVIOUS": [null],
2236
+ "COLLECTED": [null],
2237
+ "FORCED": [null],
2238
+ "EDITED": [null],
2239
+ "INPUTED": [null]
2240
+ }
2241
+ },
2242
+
2243
+ {
2244
+ "variableType": "COLLECTED",
2245
+ "name": "UNLOG",
2246
+ "values": {
2247
+ "PREVIOUS": [null],
2248
+ "COLLECTED": [null],
2249
+ "FORCED": [null],
2250
+ "EDITED": [null],
2251
+ "INPUTED": [null]
2252
+ }
2253
+ },
2254
+
2255
+ {
2256
+ "variableType": "COLLECTED",
2257
+ "name": "DURLOG",
2258
+ "values": {
2259
+ "PREVIOUS": [null],
2260
+ "COLLECTED": [null],
2261
+ "FORCED": [null],
2262
+ "EDITED": [null],
2263
+ "INPUTED": [null]
2264
+ }
2265
+ },
2266
+
2267
+ {
2268
+ "variableType": "COLLECTED",
2269
+ "name": "MINLOGENQ1",
2270
+ "values": {
2271
+ "PREVIOUS": [null],
2272
+ "COLLECTED": [null],
2273
+ "FORCED": [null],
2274
+ "EDITED": [null],
2275
+ "INPUTED": [null]
2276
+ }
2277
+ },
2278
+
2279
+ {
2280
+ "variableType": "COLLECTED",
2281
+ "name": "MINLOGENQ2",
2282
+ "values": {
2283
+ "PREVIOUS": [null],
2284
+ "COLLECTED": [null],
2285
+ "FORCED": [null],
2286
+ "EDITED": [null],
2287
+ "INPUTED": [null]
2288
+ }
2289
+ },
2290
+
2291
+ {
2292
+ "variableType": "COLLECTED",
2293
+ "name": "MINLOGENQ3",
2294
+ "values": {
2295
+ "PREVIOUS": [null],
2296
+ "COLLECTED": [null],
2297
+ "FORCED": [null],
2298
+ "EDITED": [null],
2299
+ "INPUTED": [null]
2300
+ }
2301
+ },
2302
+
2303
+ {
2304
+ "variableType": "COLLECTED",
2305
+ "name": "MINLOGENQ4",
2306
+ "values": {
2307
+ "PREVIOUS": [null],
2308
+ "COLLECTED": [null],
2309
+ "FORCED": [null],
2310
+ "EDITED": [null],
2311
+ "INPUTED": [null]
2312
+ }
2313
+ },
2314
+
2315
+ {
2316
+ "variableType": "COLLECTED",
2317
+ "name": "MINLOGENQ5",
2318
+ "values": {
2319
+ "PREVIOUS": [null],
2320
+ "COLLECTED": [null],
2321
+ "FORCED": [null],
2322
+ "EDITED": [null],
2323
+ "INPUTED": [null]
2324
+ }
2325
+ },
2326
+
2327
+ {
2328
+ "variableType": "COLLECTED",
2329
+ "name": "MINLOGAUT",
2330
+ "values": {
2331
+ "PREVIOUS": [null],
2332
+ "COLLECTED": [null],
2333
+ "FORCED": [null],
2334
+ "EDITED": [null],
2335
+ "INPUTED": [null]
2336
+ }
2337
+ },
2338
+
2339
+ {
2340
+ "variableType": "COLLECTED",
2341
+ "name": "GARDE",
2342
+ "values": {
2343
+ "PREVIOUS": [null],
2344
+ "COLLECTED": [null],
2345
+ "FORCED": [null],
2346
+ "EDITED": [null],
2347
+ "INPUTED": [null]
2348
+ }
2349
+ },
2350
+
2351
+ {
2352
+ "variableType": "COLLECTED",
2353
+ "name": "DORM",
2354
+ "values": {
2355
+ "PREVIOUS": [null],
2356
+ "COLLECTED": [null],
2357
+ "FORCED": [null],
2358
+ "EDITED": [null],
2359
+ "INPUTED": [null]
2360
+ }
2361
+ },
2362
+
2363
+ {
2364
+ "variableType": "COLLECTED",
2365
+ "name": "MAJLOGENQ",
2366
+ "values": {
2367
+ "PREVIOUS": [null],
2368
+ "COLLECTED": [null],
2369
+ "FORCED": [null],
2370
+ "EDITED": [null],
2371
+ "INPUTED": [null]
2372
+ }
2373
+ },
2374
+
2375
+ {
2376
+ "variableType": "COLLECTED",
2377
+ "name": "MAJLOGAUT",
2378
+ "values": {
2379
+ "PREVIOUS": [null],
2380
+ "COLLECTED": [null],
2381
+ "FORCED": [null],
2382
+ "EDITED": [null],
2383
+ "INPUTED": [null]
2384
+ }
2385
+ },
2386
+
2387
+ {
2388
+ "variableType": "COLLECTED",
2389
+ "name": "LOGCO",
2390
+ "values": {
2391
+ "PREVIOUS": [null],
2392
+ "COLLECTED": [null],
2393
+ "FORCED": [null],
2394
+ "EDITED": [null],
2395
+ "INPUTED": [null]
2396
+ }
2397
+ },
2398
+
2399
+ {
2400
+ "variableType": "COLLECTED",
2401
+ "name": "TYPLOGCO",
2402
+ "values": {
2403
+ "PREVIOUS": [null],
2404
+ "COLLECTED": [null],
2405
+ "FORCED": [null],
2406
+ "EDITED": [null],
2407
+ "INPUTED": [null]
2408
+ }
2409
+ },
2410
+
2411
+ {
2412
+ "variableType": "CALCULATED",
2413
+ "name": "FILTER_RESULT_NHAB",
2414
+ "expression": { "value": "true", "type": "VTL" },
2415
+ "inFilter": "false"
2416
+ },
2417
+
2418
+ {
2419
+ "variableType": "CALCULATED",
2420
+ "name": "FILTER_RESULT_G_PRENOM",
2421
+ "expression": { "value": "true", "type": "VTL" },
2422
+ "shapeFrom": "G_PRENOM",
2423
+ "inFilter": "false"
2424
+ },
2425
+
2426
+ {
2427
+ "variableType": "CALCULATED",
2428
+ "name": "ANNAIS",
2429
+ "expression": {
2430
+ "value": "substr(cast(DATENAIS,string,\"YYYY-MM-DD\"),1,4)",
2431
+ "type": "VTL"
2432
+ },
2433
+ "bindingDependencies": ["DATENAIS"],
2434
+ "shapeFrom": "G_PRENOM",
2435
+ "inFilter": "true"
2436
+ },
2437
+
2438
+ {
2439
+ "variableType": "CALCULATED",
2440
+ "name": "AGE",
2441
+ "expression": {
2442
+ "value": "cast((2022 - cast(ANNAIS,integer)), string)",
2443
+ "type": "VTL"
2444
+ },
2445
+ "bindingDependencies": ["ANNAIS", "DATENAIS"],
2446
+ "shapeFrom": "G_PRENOM",
2447
+ "inFilter": "true"
2448
+ },
2449
+
2450
+ {
2451
+ "variableType": "CALCULATED",
2452
+ "name": "TRAGE6",
2453
+ "expression": {
2454
+ "value": "isnull(DATENAIS) then TRAGE else if not(isnull(DATENAIS)) and cast(AGE,integer) < 15 then \"1\" else if not(isnull(DATENAIS)) and cast(AGE,integer) > 14 and cast(AGE,integer) < 18 then \"2\" else if not(isnull(DATENAIS)) and cast(AGE,integer) > 17 and cast(AGE,integer) < 25 then \"3\" else if not(isnull(DATENAIS)) and cast(AGE,integer) > 24 and cast(AGE,integer) < 40 then \"4\" else if not(isnull(DATENAIS)) and cast(AGE,integer) > 39 and cast(AGE,integer) < 60 then \"5\" else if isnull(DATENAIS) and isnull(TRAGE) then null else \"6\"",
2455
+ "type": "VTL"
2456
+ },
2457
+ "bindingDependencies": ["DATENAIS", "TRAGE", "AGE"],
2458
+ "shapeFrom": "G_PRENOM",
2459
+ "inFilter": "true"
2460
+ },
2461
+
2462
+ {
2463
+ "variableType": "CALCULATED",
2464
+ "name": "LIB_PR",
2465
+ "expression": {
2466
+ "value": "if isnull(SEXE) then \"il/elle\" else if SEXE = \"1\" then \"il\" else \"elle\"",
2467
+ "type": "VTL"
2468
+ },
2469
+ "bindingDependencies": ["SEXE"],
2470
+ "shapeFrom": "G_PRENOM",
2471
+ "inFilter": "false"
2472
+ },
2473
+
2474
+ {
2475
+ "variableType": "CALCULATED",
2476
+ "name": "PRENOM",
2477
+ "expression": { "value": "G_PRENOM", "type": "VTL" },
2478
+ "bindingDependencies": ["G_PRENOM"],
2479
+ "shapeFrom": "G_PRENOM",
2480
+ "inFilter": "false"
2481
+ },
2482
+
2483
+ {
2484
+ "variableType": "CALCULATED",
2485
+ "name": "LIB_SON",
2486
+ "expression": {
2487
+ "value": "if (PRENOM = PRENOMREF) then \"votre\" else \"son\"",
2488
+ "type": "VTL"
2489
+ },
2490
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "G_PRENOM"],
2491
+ "shapeFrom": "G_PRENOM",
2492
+ "inFilter": "false"
2493
+ },
2494
+
2495
+ {
2496
+ "variableType": "CALCULATED",
2497
+ "name": "LIB_SA",
2498
+ "expression": {
2499
+ "value": "if (PRENOM = PRENOMREF) then \"votre\" else \"sa\"",
2500
+ "type": "VTL"
2501
+ },
2502
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "G_PRENOM"],
2503
+ "shapeFrom": "G_PRENOM",
2504
+ "inFilter": "false"
2505
+ },
2506
+
2507
+ {
2508
+ "variableType": "CALCULATED",
2509
+ "name": "LIB_E",
2510
+ "expression": {
2511
+ "value": "if isnull(SEXE) then \"(e)\" else if SEXE = \"1\" then \"\" else \"e\"",
2512
+ "type": "VTL"
2513
+ },
2514
+ "bindingDependencies": ["SEXE"],
2515
+ "shapeFrom": "G_PRENOM",
2516
+ "inFilter": "false"
2517
+ },
2518
+
2519
+ {
2520
+ "variableType": "CALCULATED",
2521
+ "name": "LIB_SES",
2522
+ "expression": {
2523
+ "value": "if (PRENOM = PRENOMREF) then \"vos\" else \"ses\"",
2524
+ "type": "VTL"
2525
+ },
2526
+ "bindingDependencies": ["PRENOM", "PRENOMREF", "G_PRENOM"],
2527
+ "shapeFrom": "G_PRENOM",
2528
+ "inFilter": "false"
2529
+ },
2530
+
2531
+ {
2532
+ "variableType": "CALCULATED",
2533
+ "name": "MINEUR",
2534
+ "expression": {
2535
+ "value": "if (cast(TRAGE6 ,integer) <= 2) then \"1\" else \"2\"",
2536
+ "type": "VTL"
2537
+ },
2538
+ "bindingDependencies": ["TRAGE6", "DATENAIS", "TRAGE"],
2539
+ "shapeFrom": "G_PRENOM",
2540
+ "inFilter": "true"
2541
+ },
2542
+
2543
+ {
2544
+ "variableType": "CALCULATED",
2545
+ "name": "FILTER_RESULT_SEXE",
2546
+ "expression": { "value": "true", "type": "VTL" },
2547
+ "shapeFrom": "SEXE",
2548
+ "inFilter": "false"
2549
+ },
2550
+
2551
+ {
2552
+ "variableType": "CALCULATED",
2553
+ "name": "FILTER_RESULT_DATENAIS",
2554
+ "expression": { "value": "true", "type": "VTL" },
2555
+ "shapeFrom": "SEXE",
2556
+ "inFilter": "false"
2557
+ },
2558
+
2559
+ {
2560
+ "variableType": "CALCULATED",
2561
+ "name": "FILTER_RESULT_TRAGE",
2562
+ "expression": { "value": "(isnull(DATENAIS))", "type": "VTL" },
2563
+ "bindingDependencies": ["DATENAIS"],
2564
+ "shapeFrom": "SEXE",
2565
+ "inFilter": "false"
2566
+ },
2567
+
2568
+ {
2569
+ "variableType": "CALCULATED",
2570
+ "name": "FILTER_RESULT_LNAIS",
2571
+ "expression": { "value": "true", "type": "VTL" },
2572
+ "shapeFrom": "SEXE",
2573
+ "inFilter": "false"
2574
+ },
2575
+
2576
+ {
2577
+ "variableType": "CALCULATED",
2578
+ "name": "FILTER_RESULT_DEPNAIS",
2579
+ "expression": { "value": "(LNAIS = \"1\")", "type": "VTL" },
2580
+ "bindingDependencies": ["LNAIS"],
2581
+ "shapeFrom": "SEXE",
2582
+ "inFilter": "false"
2583
+ },
2584
+
2585
+ {
2586
+ "variableType": "CALCULATED",
2587
+ "name": "FILTER_RESULT_PAYSNAIS",
2588
+ "expression": { "value": "(LNAIS = \"2\")", "type": "VTL" },
2589
+ "bindingDependencies": ["LNAIS"],
2590
+ "shapeFrom": "SEXE",
2591
+ "inFilter": "false"
2592
+ },
2593
+
2594
+ {
2595
+ "variableType": "CALCULATED",
2596
+ "name": "FILTER_RESULT_NATION",
2597
+ "expression": { "value": "true", "type": "VTL" },
2598
+ "shapeFrom": "SEXE",
2599
+ "inFilter": "false"
2600
+ },
2601
+
2602
+ {
2603
+ "variableType": "CALCULATED",
2604
+ "name": "FILTER_RESULT_NATIONETR",
2605
+ "expression": { "value": "(NATION3 = true)", "type": "VTL" },
2606
+ "bindingDependencies": ["NATION3"],
2607
+ "shapeFrom": "SEXE",
2608
+ "inFilter": "false"
2609
+ },
2610
+
2611
+ {
2612
+ "variableType": "CALCULATED",
2613
+ "name": "FILTER_RESULT_VECUE",
2614
+ "expression": { "value": "(LNAIS = \"1\")", "type": "VTL" },
2615
+ "bindingDependencies": ["LNAIS"],
2616
+ "shapeFrom": "SEXE",
2617
+ "inFilter": "false"
2618
+ },
2619
+
2620
+ {
2621
+ "variableType": "CALCULATED",
2622
+ "name": "FILTER_RESULT_DATEDEPART",
2623
+ "expression": { "value": "(VECUE = \"1\")", "type": "VTL" },
2624
+ "bindingDependencies": ["VECUE"],
2625
+ "shapeFrom": "SEXE",
2626
+ "inFilter": "false"
2627
+ },
2628
+
2629
+ {
2630
+ "variableType": "CALCULATED",
2631
+ "name": "FILTER_RESULT_DATERETOUR",
2632
+ "expression": { "value": "(VECUE = \"1\")", "type": "VTL" },
2633
+ "bindingDependencies": ["VECUE"],
2634
+ "shapeFrom": "SEXE",
2635
+ "inFilter": "false"
2636
+ },
2637
+
2638
+ {
2639
+ "variableType": "CALCULATED",
2640
+ "name": "FILTER_RESULT_AGRETOUR",
2641
+ "expression": {
2642
+ "value": "(VECUE = \"1\") and (isnull(DATERETOUR))",
2643
+ "type": "VTL"
2644
+ },
2645
+ "bindingDependencies": ["VECUE", "DATERETOUR"],
2646
+ "shapeFrom": "SEXE",
2647
+ "inFilter": "false"
2648
+ },
2649
+
2650
+ {
2651
+ "variableType": "CALCULATED",
2652
+ "name": "FILTER_RESULT_ANNARIV",
2653
+ "expression": { "value": "(LNAIS = \"2\")", "type": "VTL" },
2654
+ "bindingDependencies": ["LNAIS"],
2655
+ "shapeFrom": "SEXE",
2656
+ "inFilter": "false"
2657
+ },
2658
+
2659
+ {
2660
+ "variableType": "CALCULATED",
2661
+ "name": "FILTER_RESULT_AGARRIV",
2662
+ "expression": {
2663
+ "value": "(LNAIS = \"2\") and (isnull(ANNARIV))",
2664
+ "type": "VTL"
2665
+ },
2666
+ "bindingDependencies": ["LNAIS", "ANNARIV"],
2667
+ "shapeFrom": "SEXE",
2668
+ "inFilter": "false"
2669
+ },
2670
+
2671
+ {
2672
+ "variableType": "CALCULATED",
2673
+ "name": "FILTER_RESULT_UNLOG",
2674
+ "expression": { "value": "true", "type": "VTL" },
2675
+ "shapeFrom": "UNLOG",
2676
+ "inFilter": "false"
2677
+ },
2678
+
2679
+ {
2680
+ "variableType": "CALCULATED",
2681
+ "name": "FILTER_RESULT_DURLOG",
2682
+ "expression": { "value": "(UNLOG = \"1\")", "type": "VTL" },
2683
+ "bindingDependencies": ["UNLOG"],
2684
+ "shapeFrom": "UNLOG",
2685
+ "inFilter": "false"
2686
+ },
2687
+
2688
+ {
2689
+ "variableType": "CALCULATED",
2690
+ "name": "FILTER_RESULT_MINLOGENQ",
2691
+ "expression": {
2692
+ "value": "(MINEUR = \"1\" and $NBPARL$ = \"0\")",
2693
+ "type": "VTL"
2694
+ },
2695
+ "bindingDependencies": ["MINEUR"],
2696
+ "shapeFrom": "UNLOG",
2697
+ "inFilter": "false"
2698
+ },
2699
+
2700
+ {
2701
+ "variableType": "CALCULATED",
2702
+ "name": "FILTER_RESULT_MINLOGAUT",
2703
+ "expression": {
2704
+ "value": "(MINEUR = \"1\" and UNLOG = \"1\")",
2705
+ "type": "VTL"
2706
+ },
2707
+ "bindingDependencies": ["MINEUR", "UNLOG"],
2708
+ "shapeFrom": "UNLOG",
2709
+ "inFilter": "false"
2710
+ },
2711
+
2712
+ {
2713
+ "variableType": "CALCULATED",
2714
+ "name": "FILTER_RESULT_GARDE",
2715
+ "expression": {
2716
+ "value": "(DURLOG = \"2\" and $NBPARL$ = \"1\" and MINLOGAUT = \"1\")",
2717
+ "type": "VTL"
2718
+ },
2719
+ "bindingDependencies": ["DURLOG", "MINLOGAUT"],
2720
+ "shapeFrom": "UNLOG",
2721
+ "inFilter": "false"
2722
+ },
2723
+
2724
+ {
2725
+ "variableType": "CALCULATED",
2726
+ "name": "FILTER_RESULT_DORM",
2727
+ "expression": { "value": "(GARDE = \"1\")", "type": "VTL" },
2728
+ "bindingDependencies": ["GARDE"],
2729
+ "shapeFrom": "UNLOG",
2730
+ "inFilter": "false"
2731
+ },
2732
+
2733
+ {
2734
+ "variableType": "CALCULATED",
2735
+ "name": "FILTER_RESULT_MAJLOGENQ",
2736
+ "expression": {
2737
+ "value": "(UNLOG = \"1\" and MINEUR = \"2\")",
2738
+ "type": "VTL"
2739
+ },
2740
+ "bindingDependencies": ["UNLOG", "MINEUR"],
2741
+ "shapeFrom": "UNLOG",
2742
+ "inFilter": "false"
2743
+ },
2744
+
2745
+ {
2746
+ "variableType": "CALCULATED",
2747
+ "name": "FILTER_RESULT_MAJLOGAUT",
2748
+ "expression": {
2749
+ "value": "(UNLOG = \"1\" and MINEUR = \"2\")",
2750
+ "type": "VTL"
2751
+ },
2752
+ "bindingDependencies": ["UNLOG", "MINEUR"],
2753
+ "shapeFrom": "UNLOG",
2754
+ "inFilter": "false"
2755
+ },
2756
+
2757
+ {
2758
+ "variableType": "CALCULATED",
2759
+ "name": "FILTER_RESULT_LOGCO",
2760
+ "expression": {
2761
+ "value": "(MINLOGAUT =\"2\" or MINLOGAUT =\"3\" or MINLOGAUT =\"4\" or MINLOGAUT =\"5\" or MINLOGAUT =\"6\" or MAJLOGAUT=\"1\" or MAJLOGAUT=\"2\" or MAJLOGAUT=\"3\" or MAJLOGAUT=\"6\")",
2762
+ "type": "VTL"
2763
+ },
2764
+ "bindingDependencies": ["MINLOGAUT", "MAJLOGAUT"],
2765
+ "shapeFrom": "UNLOG",
2766
+ "inFilter": "false"
2767
+ },
2768
+
2769
+ {
2770
+ "variableType": "CALCULATED",
2771
+ "name": "FILTER_RESULT_TYPLOGCO",
2772
+ "expression": { "value": "(LOGCO = \"1\")", "type": "VTL" },
2773
+ "bindingDependencies": ["LOGCO"],
2774
+ "shapeFrom": "UNLOG",
2775
+ "inFilter": "false"
2776
+ },
2777
+
2778
+ {
2779
+ "variableType": "CALCULATED",
2780
+ "name": "PRENOMREF",
2781
+ "expression": { "value": "first_value(G_PRENOM over())", "type": "VTL" },
2782
+ "bindingDependencies": ["G_PRENOM"],
2783
+ "inFilter": "false"
2784
+ },
2785
+
2786
+ {
2787
+ "variableType": "CALCULATED",
2788
+ "name": "NBHAB",
2789
+ "expression": {
2790
+ "value": "if isnull(NHAB) then \"1\" else NHAB",
2791
+ "type": "VTL"
2792
+ },
2793
+ "bindingDependencies": ["NHAB"],
2794
+ "inFilter": "true"
2795
+ }
2796
+ ],
2797
+ "cleaning": {
2798
+ "DATENAIS": {
2799
+ "TRAGE": "(isnull(DATENAIS))",
2800
+ "MINLOGAUT": "(MINEUR = \"1\" and UNLOG = \"1\")",
2801
+ "MAJLOGENQ": "(UNLOG = \"1\" and MINEUR = \"2\")",
2802
+ "MAJLOGAUT": "(UNLOG = \"1\" and MINEUR = \"2\")"
2803
+ },
2804
+ "LNAIS": {
2805
+ "DEPNAIS": "(LNAIS = \"1\")",
2806
+ "PAYSNAIS": "(LNAIS = \"2\")",
2807
+ "VECUE": "(LNAIS = \"1\")",
2808
+ "ANNARIV": "(LNAIS = \"2\")",
2809
+ "AGARRIV": "(LNAIS = \"2\") and (isnull(ANNARIV))"
2810
+ },
2811
+ "NATION3": { "NATIONETR": "(NATION3 = true)" },
2812
+ "VECUE": {
2813
+ "DATEDEPART": "(VECUE = \"1\")",
2814
+ "DATERETOUR": "(VECUE = \"1\")",
2815
+ "AGRETOUR": "(VECUE = \"1\") and (isnull(DATERETOUR))"
2816
+ },
2817
+ "DATERETOUR": { "AGRETOUR": "(VECUE = \"1\") and (isnull(DATERETOUR))" },
2818
+ "ANNARIV": { "AGARRIV": "(LNAIS = \"2\") and (isnull(ANNARIV))" },
2819
+ "UNLOG": {
2820
+ "DURLOG": "(UNLOG = \"1\")",
2821
+ "MINLOGAUT": "(MINEUR = \"1\" and UNLOG = \"1\")",
2822
+ "MAJLOGENQ": "(UNLOG = \"1\" and MINEUR = \"2\")",
2823
+ "MAJLOGAUT": "(UNLOG = \"1\" and MINEUR = \"2\")"
2824
+ },
2825
+ "MINEUR": {
2826
+ "MINLOGAUT": "(MINEUR = \"1\" and UNLOG = \"1\")",
2827
+ "MAJLOGENQ": "(UNLOG = \"1\" and MINEUR = \"2\")",
2828
+ "MAJLOGAUT": "(UNLOG = \"1\" and MINEUR = \"2\")"
2829
+ },
2830
+ "TRAGE6": {
2831
+ "MINLOGAUT": "(MINEUR = \"1\" and UNLOG = \"1\")",
2832
+ "MAJLOGENQ": "(UNLOG = \"1\" and MINEUR = \"2\")",
2833
+ "MAJLOGAUT": "(UNLOG = \"1\" and MINEUR = \"2\")"
2834
+ },
2835
+ "TRAGE": {
2836
+ "MINLOGAUT": "(MINEUR = \"1\" and UNLOG = \"1\")",
2837
+ "MAJLOGENQ": "(UNLOG = \"1\" and MINEUR = \"2\")",
2838
+ "MAJLOGAUT": "(UNLOG = \"1\" and MINEUR = \"2\")"
2839
+ },
2840
+ "DURLOG": {
2841
+ "GARDE": "(DURLOG = \"2\" and $NBPARL$ = \"1\" and MINLOGAUT = \"1\")"
2842
+ },
2843
+ "MINLOGAUT": {
2844
+ "GARDE": "(DURLOG = \"2\" and $NBPARL$ = \"1\" and MINLOGAUT = \"1\")",
2845
+ "LOGCO": "(MINLOGAUT =\"2\" or MINLOGAUT =\"3\" or MINLOGAUT =\"4\" or MINLOGAUT =\"5\" or MINLOGAUT =\"6\" or MAJLOGAUT=\"1\" or MAJLOGAUT=\"2\" or MAJLOGAUT=\"3\" or MAJLOGAUT=\"6\")"
2846
+ },
2847
+ "GARDE": { "DORM": "(GARDE = \"1\")" },
2848
+ "MAJLOGAUT": {
2849
+ "LOGCO": "(MINLOGAUT =\"2\" or MINLOGAUT =\"3\" or MINLOGAUT =\"4\" or MINLOGAUT =\"5\" or MINLOGAUT =\"6\" or MAJLOGAUT=\"1\" or MAJLOGAUT=\"2\" or MAJLOGAUT=\"3\" or MAJLOGAUT=\"6\")"
2850
+ },
2851
+ "LOGCO": { "TYPLOGCO": "(LOGCO = \"1\")" }
2852
+ },
2853
+ "resizing": {
2854
+ "NHAB": {
2855
+ "size": "cast(NBHAB, integer)",
2856
+ "variables": [
2857
+ "G_PRENOM",
2858
+ "SEXE",
2859
+ "DATENAIS",
2860
+ "TRAGE",
2861
+ "LNAIS",
2862
+ "DEPNAIS",
2863
+ "PAYSNAIS",
2864
+ "NATION1",
2865
+ "NATION2",
2866
+ "NATION3",
2867
+ "NATION4",
2868
+ "NATIONETR",
2869
+ "VECUE",
2870
+ "DATEDEPART",
2871
+ "DATERETOUR",
2872
+ "AGRETOUR",
2873
+ "ANNARIV",
2874
+ "AGARRIV",
2875
+ "UNLOG",
2876
+ "DURLOG",
2877
+ "MINLOGENQ1",
2878
+ "MINLOGENQ2",
2879
+ "MINLOGENQ3",
2880
+ "MINLOGENQ4",
2881
+ "MINLOGENQ5",
2882
+ "MINLOGAUT",
2883
+ "GARDE",
2884
+ "DORM",
2885
+ "MAJLOGENQ",
2886
+ "MAJLOGAUT",
2887
+ "LOGCO",
2888
+ "TYPLOGCO"
2889
+ ]
2890
+ }
2891
+ }
2892
+ }