@inseefr/lunatic 2.3.1 → 2.4.1-beta

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 (1039) 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-with-label.js +88 -0
  127. package/lib/components/commons/components/lunatic-component-without-label.js +87 -0
  128. package/lib/components/commons/components/md-label/index.js +13 -0
  129. package/lib/components/commons/components/md-label/link.js +54 -0
  130. package/lib/components/commons/components/md-label/md-label.js +45 -0
  131. package/lib/components/commons/components/missing/index.js +13 -0
  132. package/lib/components/commons/components/missing/missing.js +87 -0
  133. package/lib/components/commons/components/missing/missing.scss +30 -0
  134. package/lib/components/commons/components/missing/missing.spec.js +81 -0
  135. package/lib/components/commons/components/nothing-to-display.js +16 -0
  136. package/lib/components/commons/components/nothing-to-display.spec.js +16 -0
  137. package/lib/components/commons/components/orchestrated-component.js +62 -0
  138. package/lib/components/commons/components/variable-status/img/index.js +20 -0
  139. package/lib/components/commons/components/variable-status/index.js +13 -0
  140. package/lib/components/commons/components/variable-status/variable-status.js +85 -0
  141. package/lib/components/commons/components/variable-status/variable-status.scss +39 -0
  142. package/lib/components/commons/components/variable-status/variable-status.spec.js +24 -0
  143. package/lib/components/commons/create-customizable-field.js +29 -0
  144. package/lib/components/commons/create-row-orchestrator.js +51 -0
  145. package/lib/components/commons/icons/checkbox-checked.icon.js +39 -0
  146. package/lib/components/commons/icons/checkbox-unchecked.icon.js +39 -0
  147. package/lib/components/commons/icons/closed.icon.js +36 -0
  148. package/lib/components/commons/icons/cross.icon.js +36 -0
  149. package/lib/components/commons/icons/index.js +76 -0
  150. package/lib/components/commons/icons/load.icon.js +36 -0
  151. package/lib/components/commons/icons/lunatic-icon.js +21 -0
  152. package/lib/components/commons/icons/lunatic-icon.scss +3 -0
  153. package/lib/components/commons/icons/network.icon.js +36 -0
  154. package/lib/components/commons/icons/on-drag.icon.js +36 -0
  155. package/lib/components/commons/icons/opened.icon.js +36 -0
  156. package/lib/components/commons/icons/radio-checked.icon.js +39 -0
  157. package/lib/components/commons/icons/radio-unchecked.icon.js +39 -0
  158. package/lib/components/commons/index.js +131 -0
  159. package/lib/components/commons/prop-types/declarations.js +19 -0
  160. package/lib/components/commons/prop-types/index.js +41 -0
  161. package/lib/components/commons/prop-types/lines.js +13 -0
  162. package/lib/components/commons/prop-types/options.js +13 -0
  163. package/lib/components/commons/prop-types/response.js +13 -0
  164. package/lib/components/commons/prop-types/value-type.js +14 -0
  165. package/lib/components/commons/safety-label.js +26 -0
  166. package/lib/components/commons/use-document-add-event-listener.js +84 -0
  167. package/lib/components/commons/use-on-handle-change.js +19 -0
  168. package/lib/components/commons/use-on-handle-change.spec.js +46 -0
  169. package/lib/components/commons/use-options-keydown.js +24 -0
  170. package/lib/components/commons/use-previous.js +16 -0
  171. package/lib/components/components.js +171 -0
  172. package/lib/components/datepicker/html/datepicker-container.js +18 -0
  173. package/lib/components/datepicker/html/datepicker-input.js +37 -0
  174. package/lib/components/datepicker/html/datepicker.js +69 -0
  175. package/lib/components/datepicker/html/datepicker.scss +1 -0
  176. package/lib/components/datepicker/index.js +13 -0
  177. package/lib/components/datepicker/lunatic-datepicker.js +61 -0
  178. package/lib/components/declarations/declaration.js +22 -0
  179. package/lib/components/declarations/declaration.spec.js +30 -0
  180. package/lib/components/declarations/declarations-after-text.js +25 -0
  181. package/lib/components/declarations/declarations-before-text.js +25 -0
  182. package/lib/components/declarations/declarations-detachable.js +25 -0
  183. package/lib/components/declarations/declarations.js +50 -0
  184. package/lib/components/declarations/declarations.scss +36 -0
  185. package/lib/components/declarations/declarations.spec.js +79 -0
  186. package/lib/components/declarations/index.js +43 -0
  187. package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +39 -0
  188. package/lib/components/dropdown/html/dropdown-simple/index.js +13 -0
  189. package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +46 -0
  190. package/lib/components/dropdown/html/dropdown-simple/simple-option-renderer.js +45 -0
  191. package/lib/components/dropdown/html/dropdown-writable/dropdown-writable.js +62 -0
  192. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +37 -0
  193. package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +24 -0
  194. package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +29 -0
  195. package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +22 -0
  196. package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +13 -0
  197. package/lib/components/dropdown/html/dropdown-writable/index.js +13 -0
  198. package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +52 -0
  199. package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +146 -0
  200. package/lib/components/dropdown/html/dropdown.js +51 -0
  201. package/lib/components/dropdown/html/dropdown.scss +41 -0
  202. package/lib/components/dropdown/index.js +13 -0
  203. package/lib/components/dropdown/lunatic-dropdown.js +75 -0
  204. package/lib/components/filter-description/component.js +22 -0
  205. package/lib/components/filter-description/component.spec.js +23 -0
  206. package/lib/components/filter-description/index.js +13 -0
  207. package/lib/components/index.js +28 -0
  208. package/lib/components/index.scss +136 -0
  209. package/lib/components/input/html/input.js +79 -0
  210. package/lib/components/input/html/input.scss +42 -0
  211. package/lib/components/input/index.js +13 -0
  212. package/lib/components/input/lunatic-input.js +57 -0
  213. package/lib/components/input-number/html/__snapshots__/inpute-number.spec.jsx.snap +92 -0
  214. package/lib/components/input-number/html/input-number-default.js +78 -0
  215. package/lib/components/input-number/html/input-number-thousand.js +54 -0
  216. package/lib/components/input-number/html/input-number.js +102 -0
  217. package/lib/components/input-number/html/input-number.scss +11 -0
  218. package/lib/components/input-number/html/inpute-number.spec.js +110 -0
  219. package/lib/components/input-number/index.js +13 -0
  220. package/lib/components/input-number/lunatic-input-number.js +64 -0
  221. package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +12 -0
  222. package/lib/components/loop/block-for-loop/block-for-loop.js +140 -0
  223. package/lib/components/loop/block-for-loop/index.js +13 -0
  224. package/lib/components/loop/block-for-loop/row.js +66 -0
  225. package/lib/components/loop/commons/get-init-length.js +16 -0
  226. package/lib/components/loop/commons/handle-row-button.js +22 -0
  227. package/lib/components/loop/commons/index.js +20 -0
  228. package/lib/components/loop/commons/row-component.js +70 -0
  229. package/lib/components/loop/index.js +13 -0
  230. package/lib/components/loop/loop.js +82 -0
  231. package/lib/components/loop/roster-for-loop/body.js +56 -0
  232. package/lib/components/loop/roster-for-loop/header.js +34 -0
  233. package/lib/components/loop/roster-for-loop/index.js +13 -0
  234. package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +12 -0
  235. package/lib/components/loop/roster-for-loop/roster-for-loop.js +124 -0
  236. package/lib/components/loop/roster-for-loop/roster-table.js +48 -0
  237. package/lib/components/loop/roster-for-loop/roster.scss +42 -0
  238. package/lib/components/loop/roster-for-loop/row.js +73 -0
  239. package/lib/components/modal-controls/close-or-skip.js +41 -0
  240. package/lib/components/modal-controls/close-or-skip.spec.js +52 -0
  241. package/lib/components/modal-controls/index.js +13 -0
  242. package/lib/components/modal-controls/modal-container.js +22 -0
  243. package/lib/components/modal-controls/modal-container.spec.js +24 -0
  244. package/lib/components/modal-controls/modal-controls.js +78 -0
  245. package/lib/components/modal-controls/modal-controls.scss +48 -0
  246. package/lib/components/modal-controls/modal-controls.spec.js +77 -0
  247. package/lib/components/pairwise-links/index.js +13 -0
  248. package/lib/components/pairwise-links/orchestrator.js +70 -0
  249. package/lib/components/pairwise-links/pairwise-links.js +65 -0
  250. package/lib/components/pairwise-links/row.js +78 -0
  251. package/lib/components/radio/html/dist/radio-group.css +12 -0
  252. package/lib/components/radio/html/radio-group-content.js +45 -0
  253. package/lib/components/radio/html/radio-group-content.spec.js +86 -0
  254. package/lib/components/radio/html/radio-group.js +67 -0
  255. package/lib/components/radio/html/radio-group.scss +21 -0
  256. package/lib/components/radio/html/radio-option.js +105 -0
  257. package/lib/components/radio/html/radio-option.spec.js +80 -0
  258. package/lib/components/radio/index.js +13 -0
  259. package/lib/components/radio/lunatic-radio-group.js +64 -0
  260. package/lib/components/radio/radio-group.js +48 -0
  261. package/lib/components/radio/radio.scss +19 -0
  262. package/lib/components/roundabout/components/roundabout-container.js +20 -0
  263. package/lib/components/roundabout/components/roundabout-container.spec.js +23 -0
  264. package/lib/components/roundabout/components/roundabout-it-button.js +80 -0
  265. package/lib/components/roundabout/components/roundabout-it-button.spec.js +102 -0
  266. package/lib/components/roundabout/components/roundabout-it-container.js +19 -0
  267. package/lib/components/roundabout/components/roundabout-it-container.spec.js +23 -0
  268. package/lib/components/roundabout/components/roundabout-it-title.js +19 -0
  269. package/lib/components/roundabout/components/roundabout-it-title.spec.js +18 -0
  270. package/lib/components/roundabout/components/roundabout-label.js +19 -0
  271. package/lib/components/roundabout/components/roundabout-label.spec.js +18 -0
  272. package/lib/components/roundabout/components/roundabout-pending.js +18 -0
  273. package/lib/components/roundabout/components/roundabout-pending.spec.js +15 -0
  274. package/lib/components/roundabout/components/roundabout.scss +16 -0
  275. package/lib/components/roundabout/index.js +13 -0
  276. package/lib/components/roundabout/lunatic-roundabout.js +62 -0
  277. package/lib/components/roundabout/redirect.js +23 -0
  278. package/lib/components/roundabout/redirect.spec.js +19 -0
  279. package/lib/components/roundabout/roundabout.js +89 -0
  280. package/lib/components/roundabout/roundabout.spec.js +71 -0
  281. package/lib/components/sequence/index.js +13 -0
  282. package/lib/components/sequence/sequence.js +37 -0
  283. package/lib/components/sequence/sequence.scss +10 -0
  284. package/lib/components/sequence/sequence.spec.js +79 -0
  285. package/lib/components/subsequence/index.js +13 -0
  286. package/lib/components/subsequence/subsequence.js +35 -0
  287. package/lib/components/subsequence/subsequence.spec.js +79 -0
  288. package/lib/components/suggester/find-best-label/find-best-label.js +55 -0
  289. package/lib/components/suggester/find-best-label/index.js +13 -0
  290. package/lib/components/suggester/html/alert-icon.svg +2 -0
  291. package/lib/components/suggester/html/default-style.scss +175 -0
  292. package/lib/components/suggester/html/notification.js +31 -0
  293. package/lib/components/suggester/html/suggester.js +142 -0
  294. package/lib/components/suggester/html/wait-icon.svg +17 -0
  295. package/lib/components/suggester/html/warn-icon.svg +1 -0
  296. package/lib/components/suggester/idb-suggester/check-store.js +107 -0
  297. package/lib/components/suggester/idb-suggester/dist/index.dev.js +12 -0
  298. package/lib/components/suggester/idb-suggester/idb-suggester.js +90 -0
  299. package/lib/components/suggester/idb-suggester/index.js +12 -0
  300. package/lib/components/suggester/idb-suggester/suggester-notification.js +61 -0
  301. package/lib/components/suggester/idb-suggester/suggester-status.js +52 -0
  302. package/lib/components/suggester/index.js +13 -0
  303. package/lib/components/suggester/lunatic-suggester.js +106 -0
  304. package/lib/components/suggester/searching/create-searching.js +73 -0
  305. package/lib/components/suggester/searching/index.js +13 -0
  306. package/lib/components/suggester-loader-widget/index.js +13 -0
  307. package/lib/components/suggester-loader-widget/loader-row.js +129 -0
  308. package/lib/components/suggester-loader-widget/loader.js +136 -0
  309. package/lib/components/suggester-loader-widget/progress.js +41 -0
  310. package/lib/components/suggester-loader-widget/tools/action-tool.js +30 -0
  311. package/lib/components/suggester-loader-widget/tools/index.js +20 -0
  312. package/lib/components/suggester-loader-widget/tools/tools.js +18 -0
  313. package/lib/components/suggester-loader-widget/widget-container.js +44 -0
  314. package/lib/components/suggester-loader-widget/widget.js +145 -0
  315. package/lib/components/suggester-loader-widget/widget.scss +176 -0
  316. package/lib/components/switch/html/switch.js +95 -0
  317. package/lib/components/switch/html/switch.scss +47 -0
  318. package/lib/components/switch/index.js +13 -0
  319. package/lib/components/switch/lunatic-switch.js +66 -0
  320. package/lib/components/table/cell.js +102 -0
  321. package/lib/components/table/header.js +40 -0
  322. package/lib/components/table/index.js +13 -0
  323. package/lib/components/table/lunatic-table.js +97 -0
  324. package/lib/components/table/row.js +43 -0
  325. package/lib/components/table/table-orchestrator.js +48 -0
  326. package/lib/components/textarea/html/textarea.js +54 -0
  327. package/lib/components/textarea/html/textarea.scss +8 -0
  328. package/lib/components/textarea/index.js +13 -0
  329. package/lib/components/textarea/lunatic-textarea.js +72 -0
  330. package/lib/components/type.js +5 -0
  331. package/lib/constants/component-types.js +8 -0
  332. package/lib/constants/declarations.js +28 -0
  333. package/lib/constants/event-types.js +29 -0
  334. package/lib/constants/index.js +60 -0
  335. package/lib/constants/supported-preferences.js +13 -0
  336. package/lib/constants/value-types.js +16 -0
  337. package/lib/constants/variable-types.js +12 -0
  338. package/lib/dist/index.dev.js +31 -0
  339. package/lib/i18n/build-dictionary.js +59 -0
  340. package/lib/i18n/dictionary.js +34 -0
  341. package/lib/i18n/index.js +28 -0
  342. package/lib/i18n/inputNumberProps.js +20 -0
  343. package/lib/index.js +28 -33
  344. package/lib/insee.d.js +1 -0
  345. package/lib/src/components/commons/components/md-label/index.d.ts +1 -0
  346. package/lib/src/components/commons/components/md-label/link.d.ts +7 -0
  347. package/lib/src/components/commons/components/md-label/md-label.d.ts +8 -0
  348. package/lib/src/components/type.d.ts +195 -0
  349. package/lib/src/constants/component-types.d.ts +1 -0
  350. package/lib/src/constants/declarations.d.ts +9 -0
  351. package/lib/src/constants/event-types.d.ts +10 -0
  352. package/lib/src/constants/index.d.ts +5 -0
  353. package/lib/src/constants/supported-preferences.d.ts +1 -0
  354. package/lib/src/constants/value-types.d.ts +5 -0
  355. package/lib/src/constants/variable-types.d.ts +2 -0
  356. package/lib/src/i18n/build-dictionary.d.ts +24 -0
  357. package/lib/src/i18n/dictionary.d.ts +37 -0
  358. package/lib/src/i18n/index.d.ts +7 -0
  359. package/lib/src/i18n/inputNumberProps.d.ts +13 -0
  360. package/lib/src/index.d.ts +3 -0
  361. package/lib/src/type.utils.d.ts +1 -0
  362. package/lib/src/use-lunatic/actions.d.ts +289 -0
  363. package/lib/src/use-lunatic/commons/calculated-variables.d.ts +8 -0
  364. package/lib/src/use-lunatic/commons/check-loops.d.ts +3 -0
  365. package/lib/src/use-lunatic/commons/check-pager.d.ts +5 -0
  366. package/lib/src/use-lunatic/commons/compile-controls.d.ts +7 -0
  367. package/lib/src/use-lunatic/commons/compose.d.ts +3 -0
  368. package/lib/src/use-lunatic/commons/create-map-pages.d.ts +7 -0
  369. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +3 -0
  370. package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +9 -0
  371. package/lib/src/use-lunatic/commons/execute-expression/create-memoizer.d.ts +8 -0
  372. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +24 -0
  373. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +11 -0
  374. package/lib/src/use-lunatic/commons/execute-expression/execute-expression.spec.d.ts +1 -0
  375. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.d.ts +7 -0
  376. package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.spec.d.ts +1 -0
  377. package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +6 -0
  378. package/lib/src/use-lunatic/commons/execute-expression/index.d.ts +1 -0
  379. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +9 -0
  380. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.spec.d.ts +1 -0
  381. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +6 -0
  382. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +12 -0
  383. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +699 -0
  384. package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +6 -0
  385. package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +11 -0
  386. package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +9 -0
  387. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +571 -0
  388. package/lib/src/use-lunatic/commons/fill-components/index.d.ts +1 -0
  389. package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +6 -0
  390. package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +6 -0
  391. package/lib/src/use-lunatic/commons/get-component-value/index.d.ts +1 -0
  392. package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +7 -0
  393. package/lib/src/use-lunatic/commons/get-data.d.ts +26 -0
  394. package/lib/src/use-lunatic/commons/get-errors-without-empty-value.d.ts +6 -0
  395. package/lib/src/use-lunatic/commons/getOverview.d.ts +19 -0
  396. package/lib/src/use-lunatic/commons/index.d.ts +13 -0
  397. package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +6 -0
  398. package/lib/src/use-lunatic/commons/is-paginated-loop.d.ts +6 -0
  399. package/lib/src/use-lunatic/commons/is-roundabout.d.ts +2 -0
  400. package/lib/src/use-lunatic/commons/page-tag.d.ts +12 -0
  401. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +4 -0
  402. package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +5 -0
  403. package/lib/src/use-lunatic/index.d.ts +1 -0
  404. package/lib/src/use-lunatic/initial-state.d.ts +3 -0
  405. package/lib/src/use-lunatic/lunatic-context.d.ts +31 -0
  406. package/lib/src/use-lunatic/reducer/commons/index.d.ts +4 -0
  407. package/lib/src/use-lunatic/reducer/commons/is-empty-on-empty-page.d.ts +3 -0
  408. package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +12 -0
  409. package/lib/src/use-lunatic/reducer/commons/resize-array-variable.d.ts +5 -0
  410. package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +6 -0
  411. package/lib/src/use-lunatic/reducer/index.d.ts +1 -0
  412. package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +2 -0
  413. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +99 -0
  414. package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +4 -0
  415. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +3 -0
  416. package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +4 -0
  417. package/lib/src/use-lunatic/reducer/reduce-handle-change/index.d.ts +1 -0
  418. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +7 -0
  419. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.d.ts +1 -0
  420. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +4 -0
  421. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +15 -0
  422. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +7 -0
  423. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +4 -0
  424. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +14 -0
  425. package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +9 -0
  426. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +15 -0
  427. package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +4 -0
  428. package/lib/src/use-lunatic/reducer/reduce-roundabout.d.ts +99 -0
  429. package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +3 -0
  430. package/lib/src/use-lunatic/reducer/reducer.d.ts +4 -0
  431. package/lib/src/use-lunatic/reducer/validate-controls/validation-utils.d.ts +6 -0
  432. package/lib/src/use-lunatic/type-source.d.ts +281 -0
  433. package/lib/src/use-lunatic/type.d.ts +143 -0
  434. package/lib/src/use-lunatic/use-lunatic.d.ts +84 -0
  435. package/lib/src/use-lunatic/use-lunatic.test.d.ts +1 -0
  436. package/lib/src/use-lunatic/use-suggesters.d.ts +19 -0
  437. package/lib/src/utils/constants/features.d.ts +3 -0
  438. package/lib/src/utils/constants/index.d.ts +5 -0
  439. package/lib/src/utils/constants/links.d.ts +2 -0
  440. package/lib/src/utils/constants/missing.d.ts +2 -0
  441. package/lib/src/utils/constants/variable-status.d.ts +5 -0
  442. package/lib/src/utils/constants/variable-types.d.ts +1 -0
  443. package/lib/src/utils/idb-tools/clear-store.d.ts +2 -0
  444. package/lib/src/utils/idb-tools/get-idb.d.ts +2 -0
  445. package/lib/src/utils/idb-tools/insert-entity.d.ts +2 -0
  446. package/lib/src/utils/is-element.d.ts +3 -0
  447. package/lib/src/utils/is-object.d.ts +4 -0
  448. package/lib/src/utils/object.d.ts +4 -0
  449. package/lib/src/utils/store-tools/constantes.d.ts +21 -0
  450. package/lib/src/utils/store-tools/initStore.d.ts +2 -0
  451. package/lib/src/utils/store-tools/open-or-create-store.d.ts +2 -0
  452. package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +7 -0
  453. package/lib/src/utils/suggester-workers/create-worker-ts.d.ts +1 -0
  454. package/lib/src/utils/to-number.d.ts +4 -0
  455. package/lib/src/utils/vtl/dataset-builder.d.ts +5 -0
  456. package/lib/src/utils/vtl/index.d.ts +1 -0
  457. package/lib/stories/Introduction.stories.mdx +114 -0
  458. package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +34 -0
  459. package/lib/stories/checkbox-boolean/source.json +58 -0
  460. package/lib/stories/checkbox-group/checkbox-group.stories.js +34 -0
  461. package/lib/stories/checkbox-group/source.json +86 -0
  462. package/lib/stories/checkbox-one/checkboxOne.stories.js +43 -0
  463. package/lib/stories/checkbox-one/source.json +52 -0
  464. package/lib/stories/checkboxGroup/checkboxGroup.stories.js +43 -0
  465. package/lib/stories/checkboxGroup/source.json +403 -0
  466. package/lib/stories/custom-mui/checkbox-boolean-mui.js +32 -0
  467. package/lib/stories/custom-mui/checkbox-group-mui.js +68 -0
  468. package/lib/stories/custom-mui/checkbox-one-mui.js +16 -0
  469. package/lib/stories/custom-mui/index.js +111 -0
  470. package/lib/stories/custom-mui/input-mui.js +52 -0
  471. package/lib/stories/custom-mui/input-number-mui.js +40 -0
  472. package/lib/stories/custom-mui/radio-mui.js +62 -0
  473. package/lib/stories/custom-mui/suggester-mui/index.js +13 -0
  474. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +304 -0
  475. package/lib/stories/custom-mui/switch-mui.js +47 -0
  476. package/lib/stories/custom-mui/table-mui.js +28 -0
  477. package/lib/stories/custom-mui/tbody-mui.js +23 -0
  478. package/lib/stories/custom-mui/td-mui.js +25 -0
  479. package/lib/stories/custom-mui/textarea-mui.js +43 -0
  480. package/lib/stories/custom-mui/th-mui.js +24 -0
  481. package/lib/stories/custom-mui/thead-mui.js +23 -0
  482. package/lib/stories/custom-mui/tr-mui.js +33 -0
  483. package/lib/stories/date-picker/data.json +3 -0
  484. package/lib/stories/date-picker/datepicker.stories.js +38 -0
  485. package/lib/stories/date-picker/source.json +110 -0
  486. package/lib/stories/declaration/data.json +1 -0
  487. package/lib/stories/declaration/input.stories.js +36 -0
  488. package/lib/stories/declaration/source.json +74 -0
  489. package/lib/stories/dropdown/data.json +16 -0
  490. package/lib/stories/dropdown/dropdown.stories.js +39 -0
  491. package/lib/stories/dropdown/source.json +158 -0
  492. package/lib/stories/filter-description/filter-description.stories.js +50 -0
  493. package/lib/stories/filter-description/source-options.json +81 -0
  494. package/lib/stories/filter-description/source.json +11 -0
  495. package/lib/stories/input/data.json +1 -0
  496. package/lib/stories/input/input.stories.js +36 -0
  497. package/lib/stories/input/source.json +91 -0
  498. package/lib/stories/input-number/input-number.stories.js +56 -0
  499. package/lib/stories/input-number/source-euros.json +37 -0
  500. package/lib/stories/input-number/source-thansand.json +34 -0
  501. package/lib/stories/input-number/source.json +33 -0
  502. package/lib/stories/loop/block-for-loop.stories.js +41 -0
  503. package/lib/stories/loop/roster-for-loop.stories.js +34 -0
  504. package/lib/stories/loop/source-bloc.json +114 -0
  505. package/lib/stories/loop/source-roster.json +114 -0
  506. package/lib/stories/loop/source-with-header.json +127 -0
  507. package/lib/stories/overview/data.json +1 -0
  508. package/lib/stories/overview/overview.stories.js +37 -0
  509. package/lib/stories/overview/source.json +28 -0
  510. package/lib/stories/overview/sourceWithHierarchy.json +6290 -0
  511. package/lib/stories/pairwise/data.json +12 -0
  512. package/lib/stories/pairwise/links.json +270 -0
  513. package/lib/stories/pairwise/pairwise-links.stories.js +137 -0
  514. package/lib/stories/paste-questionnaire/source.json +6290 -0
  515. package/lib/stories/paste-questionnaire/test.stories.js +84 -0
  516. package/lib/stories/questionnaires/logement/data.json +2686 -0
  517. package/lib/stories/questionnaires/logement/logement.stories.js +76 -0
  518. package/lib/stories/questionnaires/logement/source-sequence.json +34181 -0
  519. package/lib/stories/questionnaires/logement/source-sum.json +34612 -0
  520. package/lib/stories/questionnaires/logement/source.json +34191 -0
  521. package/lib/stories/questionnaires/recensement/data.json +12 -0
  522. package/lib/stories/questionnaires/recensement/recensement.stories.js +52 -0
  523. package/lib/stories/questionnaires/recensement/source.json +15190 -0
  524. package/lib/stories/questionnaires/rp/data.json +5 -0
  525. package/lib/stories/questionnaires/rp/rp.stories.js +37 -0
  526. package/lib/stories/questionnaires/rp/source.json +262 -0
  527. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +553 -0
  528. package/lib/stories/questionnaires/simpsons/source.json +6296 -0
  529. package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +848 -0
  530. package/lib/stories/questionnaires-test/V2_MinMaxSum_Boucles.json +509 -0
  531. package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4091 -0
  532. package/lib/stories/questionnaires-test/V2_TCMRallyeGames.json +2892 -0
  533. package/lib/stories/questionnaires-test/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +666 -0
  534. package/lib/stories/questionnaires-test/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +1966 -0
  535. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees2_PasPageFin.json +709 -0
  536. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +533 -0
  537. package/lib/stories/questionnaires-test/controls/boucles-n.json +202 -0
  538. package/lib/stories/questionnaires-test/controls/controls.stories.js +97 -0
  539. package/lib/stories/questionnaires-test/test-dylan.json +558 -0
  540. package/lib/stories/questionnaires-test/test.stories.js +93 -0
  541. package/lib/stories/radio/radio.stories.js +43 -0
  542. package/lib/stories/radio/source.json +51 -0
  543. package/lib/stories/roundabout/data.json +25 -0
  544. package/lib/stories/roundabout/roundabout.stories.js +36 -0
  545. package/lib/stories/roundabout/source.json +273 -0
  546. package/lib/stories/suggester/simple.json +146 -0
  547. package/lib/stories/suggester/source.json +254 -0
  548. package/lib/stories/suggester/suggester-workers.stories.js +208 -0
  549. package/lib/stories/suggester/suggester.stories.js +84 -0
  550. package/lib/stories/switch/README.md +31 -0
  551. package/lib/stories/switch/data-forced.json +48 -0
  552. package/lib/stories/switch/source.json +80 -0
  553. package/lib/stories/switch/switch.stories.js +39 -0
  554. package/lib/stories/table/data-roster.json +1 -0
  555. package/lib/stories/table/data.json +1 -0
  556. package/lib/stories/table/source-roster.json +513 -0
  557. package/lib/stories/table/source.json +31 -0
  558. package/lib/stories/table/table-dynamique.json +67 -0
  559. package/lib/stories/table/table.stories.js +63 -0
  560. package/lib/stories/textarea/data.json +1 -0
  561. package/lib/stories/textarea/source.json +51 -0
  562. package/lib/stories/textarea/textarea.stories.js +36 -0
  563. package/lib/stories/utils/custom-lunatic.scss +28 -0
  564. package/lib/stories/utils/default-arg-types.js +22 -0
  565. package/lib/stories/utils/options.js +32 -0
  566. package/lib/stories/utils/orchestrator.js +263 -0
  567. package/lib/stories/utils/orchestrator.scss +5 -0
  568. package/lib/stories/utils/overview.js +54 -0
  569. package/lib/stories/utils/overview.scss +30 -0
  570. package/lib/stories/utils/waiting/index.js +13 -0
  571. package/lib/stories/utils/waiting/preloader.svg +1 -0
  572. package/lib/stories/utils/waiting/waiting.js +33 -0
  573. package/lib/stories/utils/waiting/waiting.scss +21 -0
  574. package/lib/tests/utils/lunatic.d.ts +11 -0
  575. package/lib/type.utils.js +5 -0
  576. package/lib/use-lunatic/actions.js +60 -0
  577. package/lib/use-lunatic/commons/calculated-variables.js +104 -0
  578. package/lib/use-lunatic/commons/check-loops.js +99 -0
  579. package/lib/use-lunatic/commons/check-pager.js +24 -0
  580. package/lib/use-lunatic/commons/compile-controls.js +72 -0
  581. package/lib/use-lunatic/commons/compose.js +20 -0
  582. package/lib/use-lunatic/commons/create-map-pages.js +81 -0
  583. package/lib/use-lunatic/commons/execute-condition-filter.js +27 -0
  584. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +268 -0
  585. package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +63 -0
  586. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +148 -0
  587. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +91 -0
  588. package/lib/use-lunatic/commons/execute-expression/execute-expression.spec.js +38 -0
  589. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +40 -0
  590. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.spec.js +31 -0
  591. package/lib/use-lunatic/commons/execute-expression/get-safety-expression.js +35 -0
  592. package/lib/use-lunatic/commons/execute-expression/index.js +13 -0
  593. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +111 -0
  594. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +42 -0
  595. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +22 -0
  596. package/lib/use-lunatic/commons/fill-components/fill-components.js +45 -0
  597. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +30 -0
  598. package/lib/use-lunatic/commons/fill-components/fill-management.js +23 -0
  599. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +35 -0
  600. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +24 -0
  601. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +46 -0
  602. package/lib/use-lunatic/commons/fill-components/index.js +13 -0
  603. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +28 -0
  604. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +176 -0
  605. package/lib/use-lunatic/commons/get-component-value/index.js +13 -0
  606. package/lib/use-lunatic/commons/get-components-from-state.js +47 -0
  607. package/lib/use-lunatic/commons/get-data.js +80 -0
  608. package/lib/use-lunatic/commons/get-errors-without-empty-value.js +25 -0
  609. package/lib/use-lunatic/commons/getOverview.js +40 -0
  610. package/lib/use-lunatic/commons/index.js +109 -0
  611. package/lib/use-lunatic/commons/is-First-last-page.js +18 -0
  612. package/lib/use-lunatic/commons/is-paginated-loop.js +11 -0
  613. package/lib/use-lunatic/commons/is-roundabout.js +10 -0
  614. package/lib/use-lunatic/commons/load-suggesters.js +158 -0
  615. package/lib/use-lunatic/commons/page-tag.js +72 -0
  616. package/lib/use-lunatic/commons/use-components-from-state.js +41 -0
  617. package/lib/use-lunatic/hooks/use-loop-variables.js +26 -0
  618. package/lib/use-lunatic/index.js +13 -0
  619. package/lib/use-lunatic/initial-state.js +49 -0
  620. package/lib/use-lunatic/lunatic-context.js +83 -0
  621. package/lib/use-lunatic/reducer/commons/index.js +44 -0
  622. package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +32 -0
  623. package/lib/use-lunatic/reducer/commons/is-loop-component.js +10 -0
  624. package/lib/use-lunatic/reducer/commons/resize-array-variable.js +32 -0
  625. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +29 -0
  626. package/lib/use-lunatic/reducer/index.js +13 -0
  627. package/lib/use-lunatic/reducer/overview/overview-on-change.js +49 -0
  628. package/lib/use-lunatic/reducer/overview/overview-on-init.js +104 -0
  629. package/lib/use-lunatic/reducer/reduce-go-next-page.js +181 -0
  630. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +146 -0
  631. package/lib/use-lunatic/reducer/reduce-go-to-page.js +79 -0
  632. package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +926 -0
  633. package/lib/use-lunatic/reducer/reduce-handle-change/index.js +13 -0
  634. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +72 -0
  635. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.js +46 -0
  636. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +115 -0
  637. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +89 -0
  638. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +88 -0
  639. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +113 -0
  640. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.js +44 -0
  641. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +28 -0
  642. package/lib/use-lunatic/reducer/reduce-on-init.js +238 -0
  643. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +21 -0
  644. package/lib/use-lunatic/reducer/reduce-roundabout.js +29 -0
  645. package/lib/use-lunatic/reducer/reduce-update-state.js +22 -0
  646. package/lib/use-lunatic/reducer/reducer.js +37 -0
  647. package/lib/use-lunatic/reducer/validate-controls/validation-utils.js +62 -0
  648. package/lib/use-lunatic/type-source.js +24 -0
  649. package/lib/use-lunatic/type.js +5 -0
  650. package/lib/use-lunatic/use-lunatic.js +189 -0
  651. package/lib/use-lunatic/use-lunatic.test.js +168 -0
  652. package/lib/use-lunatic/use-suggesters.js +158 -0
  653. package/lib/utils/constants/alphabet.js +8 -0
  654. package/lib/utils/constants/features.js +12 -0
  655. package/lib/utils/constants/index.js +60 -0
  656. package/lib/utils/constants/links.js +10 -0
  657. package/lib/utils/constants/missing.js +10 -0
  658. package/lib/utils/constants/variable-status.js +16 -0
  659. package/lib/utils/constants/variable-types.js +8 -0
  660. package/lib/utils/idb-tools/clear-store.js +40 -0
  661. package/lib/utils/idb-tools/create-db-opener.js +47 -0
  662. package/lib/utils/idb-tools/create-open-db.js +29 -0
  663. package/lib/utils/idb-tools/get-entity.js +21 -0
  664. package/lib/utils/idb-tools/get-idb.js +13 -0
  665. package/lib/utils/idb-tools/idb-bulk-insert.js +134 -0
  666. package/lib/utils/idb-tools/index.js +64 -0
  667. package/lib/utils/idb-tools/insert-entity.js +21 -0
  668. package/lib/utils/idb-tools/open-db.js +24 -0
  669. package/lib/utils/idb-tools/open-or-create-db.js +42 -0
  670. package/lib/utils/is-element.js +10 -0
  671. package/lib/utils/is-object.js +13 -0
  672. package/lib/utils/object.js +31 -0
  673. package/lib/utils/store-tools/auto-load.js +162 -0
  674. package/lib/utils/store-tools/clear-store-data.js +33 -0
  675. package/lib/utils/store-tools/clear-store-info.js +33 -0
  676. package/lib/utils/store-tools/constantes.js +31 -0
  677. package/lib/utils/store-tools/create/create.js +51 -0
  678. package/lib/utils/store-tools/create/index.js +20 -0
  679. package/lib/utils/store-tools/create/update-store-info.js +27 -0
  680. package/lib/utils/store-tools/get-store-count.js +24 -0
  681. package/lib/utils/store-tools/index.js +54 -0
  682. package/lib/utils/store-tools/initStore.js +56 -0
  683. package/lib/utils/store-tools/open-or-create-store.js +52 -0
  684. package/lib/utils/store-tools/use-store-index.js +58 -0
  685. package/lib/utils/suggester-workers/append-to-index/append.js +78 -0
  686. package/lib/utils/suggester-workers/append-to-index/append.worker.js +33 -0
  687. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +66 -0
  688. package/lib/utils/suggester-workers/append-to-index/dist/append.worker.dev.js +37 -0
  689. package/lib/utils/suggester-workers/append-to-index/dist/create-append-task.js +69 -0
  690. package/lib/utils/suggester-workers/append-to-index/dist/index.dev.js +24 -0
  691. package/lib/utils/suggester-workers/append-to-index/index.js +20 -0
  692. package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +88 -0
  693. package/lib/utils/suggester-workers/append-to-index/store-messages.js +45 -0
  694. package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +54 -0
  695. package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +77 -0
  696. package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +36 -0
  697. package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +21 -0
  698. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +36 -0
  699. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +15 -0
  700. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +19 -0
  701. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +17 -0
  702. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +25 -0
  703. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +24 -0
  704. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +15 -0
  705. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +24 -0
  706. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +23 -0
  707. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +17 -0
  708. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +53 -0
  709. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +15 -0
  710. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +16 -0
  711. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +15 -0
  712. package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +20 -0
  713. package/lib/utils/suggester-workers/commons-tokenizer/filters/stop-words.js +9 -0
  714. package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +14 -0
  715. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +23 -0
  716. package/lib/utils/suggester-workers/commons-tokenizer/index.js +69 -0
  717. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +18 -0
  718. package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +12 -0
  719. package/lib/utils/suggester-workers/create-worker-ts.js +54 -0
  720. package/lib/utils/suggester-workers/create-worker.js +54 -0
  721. package/lib/utils/suggester-workers/find-best-label/find-best-label.js +63 -0
  722. package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +53 -0
  723. package/lib/utils/suggester-workers/find-best-label/index.js +1 -0
  724. package/lib/utils/suggester-workers/find-best-label/tokenize.js +45 -0
  725. package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +25 -0
  726. package/lib/utils/suggester-workers/searching/compute-score.js +36 -0
  727. package/lib/utils/suggester-workers/searching/get-db.js +48 -0
  728. package/lib/utils/suggester-workers/searching/index.js +13 -0
  729. package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +28 -0
  730. package/lib/utils/suggester-workers/searching/order/index.js +25 -0
  731. package/lib/utils/suggester-workers/searching/query-parser/index.js +20 -0
  732. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +12 -0
  733. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +27 -0
  734. package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +35 -0
  735. package/lib/utils/suggester-workers/searching/resolve-query-parser.js +57 -0
  736. package/lib/utils/suggester-workers/searching/search-in-index.js +22 -0
  737. package/lib/utils/suggester-workers/searching/searching.js +141 -0
  738. package/lib/utils/suggester-workers/searching/searching.worker.js +20 -0
  739. package/lib/utils/to-number.js +18 -0
  740. package/lib/utils/vtl/dataset-builder.js +27 -0
  741. package/lib/utils/vtl/index.js +13 -0
  742. package/package.json +164 -143
  743. package/lib/index.js.map +0 -1
  744. package/src/components/breadcrumb/breadcrumb.scss +0 -20
  745. package/src/components/breadcrumb/component.js +0 -29
  746. package/src/components/breadcrumb/index.js +0 -1
  747. package/src/components/button/button.scss +0 -24
  748. package/src/components/button/component.js +0 -25
  749. package/src/components/button/index.js +0 -1
  750. package/src/components/checkbox/boolean.js +0 -152
  751. package/src/components/checkbox/checkbox.scss +0 -71
  752. package/src/components/checkbox/group.js +0 -187
  753. package/src/components/checkbox/index.js +0 -3
  754. package/src/components/checkbox/one.js +0 -10
  755. package/src/components/components.js +0 -17
  756. package/src/components/datepicker/component.js +0 -10
  757. package/src/components/datepicker/datepicker.scss +0 -1
  758. package/src/components/datepicker/index.js +0 -1
  759. package/src/components/declarations/component.js +0 -38
  760. package/src/components/declarations/declarations.scss +0 -38
  761. package/src/components/declarations/index.js +0 -1
  762. package/src/components/declarations/wrappers/index.js +0 -3
  763. package/src/components/declarations/wrappers/input-declarations-wrapper.js +0 -229
  764. package/src/components/declarations/wrappers/list-declarations-wrapper.js +0 -203
  765. package/src/components/declarations/wrappers/simple-declarations-wrapper.js +0 -54
  766. package/src/components/dropdown/commons/actions.js +0 -56
  767. package/src/components/dropdown/commons/children-to-option.js +0 -9
  768. package/src/components/dropdown/commons/cleaner-callbacks.js +0 -58
  769. package/src/components/dropdown/commons/components/closed.icon.js +0 -24
  770. package/src/components/dropdown/commons/components/dropdown-container.js +0 -29
  771. package/src/components/dropdown/commons/components/dropdown-field.js +0 -46
  772. package/src/components/dropdown/commons/components/dropdown.js +0 -183
  773. package/src/components/dropdown/commons/components/label.js +0 -28
  774. package/src/components/dropdown/commons/components/opened.icon.js +0 -24
  775. package/src/components/dropdown/commons/components/panel.js +0 -78
  776. package/src/components/dropdown/commons/event-callbacks/index.js +0 -5
  777. package/src/components/dropdown/commons/event-callbacks/on-keydown-callback.js +0 -29
  778. package/src/components/dropdown/commons/event-callbacks/on-mousedown-callback.js +0 -11
  779. package/src/components/dropdown/commons/reducer.js +0 -149
  780. package/src/components/dropdown/commons/tools/index.js +0 -17
  781. package/src/components/dropdown/component.js +0 -125
  782. package/src/components/dropdown/dropdown-edit/cross.icon.js +0 -20
  783. package/src/components/dropdown/dropdown-edit/dropdown-edit.js +0 -190
  784. package/src/components/dropdown/dropdown-edit/icone.js +0 -33
  785. package/src/components/dropdown/dropdown-edit/index.js +0 -11
  786. package/src/components/dropdown/dropdown-edit/option.js +0 -62
  787. package/src/components/dropdown/dropdown-edit/prefix-tools.js +0 -51
  788. package/src/components/dropdown/dropdown-simple/dropdown.js +0 -155
  789. package/src/components/dropdown/dropdown-simple/index.js +0 -20
  790. package/src/components/dropdown/dropdown-simple/option.js +0 -15
  791. package/src/components/dropdown/dropdown.scss +0 -175
  792. package/src/components/dropdown/index.js +0 -1
  793. package/src/components/filter-description/component.js +0 -41
  794. package/src/components/filter-description/index.js +0 -1
  795. package/src/components/icon/assets/checkbox-checked.js +0 -16
  796. package/src/components/icon/assets/checkbox-unchecked.js +0 -16
  797. package/src/components/icon/assets/index.js +0 -4
  798. package/src/components/icon/assets/radio-checked.js +0 -16
  799. package/src/components/icon/assets/radio-unchecked.js +0 -16
  800. package/src/components/icon/component.js +0 -33
  801. package/src/components/icon/icon.scss +0 -13
  802. package/src/components/icon/index.js +0 -1
  803. package/src/components/index.js +0 -4
  804. package/src/components/index.scss +0 -141
  805. package/src/components/input/index.js +0 -2
  806. package/src/components/input/input-number.js +0 -44
  807. package/src/components/input/input.js +0 -10
  808. package/src/components/input/input.scss +0 -35
  809. package/src/components/loop/component.js +0 -105
  810. package/src/components/loop/index.js +0 -1
  811. package/src/components/loop/loop.scss +0 -11
  812. package/src/components/loop/paginated-component.js +0 -205
  813. package/src/components/loop/wrapper.js +0 -15
  814. package/src/components/loop-constructor/block/block.scss +0 -8
  815. package/src/components/loop-constructor/block/component.js +0 -8
  816. package/src/components/loop-constructor/block/index.js +0 -1
  817. package/src/components/loop-constructor/index.js +0 -1
  818. package/src/components/loop-constructor/roster/component.js +0 -7
  819. package/src/components/loop-constructor/roster/index.js +0 -1
  820. package/src/components/loop-constructor/wrapper/body-component.js +0 -118
  821. package/src/components/loop-constructor/wrapper/build-components.js +0 -33
  822. package/src/components/loop-constructor/wrapper/component.js +0 -154
  823. package/src/components/loop-constructor/wrapper/index.js +0 -1
  824. package/src/components/progress-bar/component.js +0 -28
  825. package/src/components/progress-bar/index.js +0 -1
  826. package/src/components/progress-bar/progress-bar.scss +0 -52
  827. package/src/components/radio/component.js +0 -8
  828. package/src/components/radio/index.js +0 -1
  829. package/src/components/radio/radio.scss +0 -57
  830. package/src/components/sequence/component.js +0 -41
  831. package/src/components/sequence/index.js +0 -1
  832. package/src/components/sequence/sequence.scss +0 -8
  833. package/src/components/subsequence/component.js +0 -47
  834. package/src/components/subsequence/index.js +0 -1
  835. package/src/components/suggester/component.js +0 -103
  836. package/src/components/suggester/index.js +0 -1
  837. package/src/components/table/index.js +0 -1
  838. package/src/components/table/table.js +0 -162
  839. package/src/components/table/table.scss +0 -24
  840. package/src/components/textarea/component.js +0 -10
  841. package/src/components/textarea/index.js +0 -1
  842. package/src/components/textarea/textarea.scss +0 -6
  843. package/src/components/tooltip/img/index.js +0 -4
  844. package/src/components/tooltip/index.js +0 -1
  845. package/src/components/tooltip/response.js +0 -52
  846. package/src/components/tooltip/tooltip.scss +0 -27
  847. package/src/constants/component-types.js +0 -1
  848. package/src/constants/declarations.js +0 -14
  849. package/src/constants/index.js +0 -4
  850. package/src/constants/supported-preferences.js +0 -10
  851. package/src/constants/value-types.js +0 -5
  852. package/src/constants/variable-types.js +0 -4
  853. package/src/stories/breadcrumb/README.md +0 -14
  854. package/src/stories/breadcrumb/breadcrumb.stories.js +0 -19
  855. package/src/stories/button/README.md +0 -14
  856. package/src/stories/button/button.stories.js +0 -27
  857. package/src/stories/checkbox-boolean/README.md +0 -27
  858. package/src/stories/checkbox-boolean/checkbox-boolean.stories.js +0 -30
  859. package/src/stories/checkbox-boolean/data.json +0 -48
  860. package/src/stories/checkbox-group/README.md +0 -29
  861. package/src/stories/checkbox-group/checkbox-group.stories.js +0 -35
  862. package/src/stories/checkbox-group/data-vtl.json +0 -89
  863. package/src/stories/checkbox-group/data.json +0 -89
  864. package/src/stories/checkbox-one/README.md +0 -31
  865. package/src/stories/checkbox-one/checkbox-one.stories.js +0 -32
  866. package/src/stories/checkbox-one/data-vtl.json +0 -33
  867. package/src/stories/checkbox-one/data.json +0 -33
  868. package/src/stories/datepicker/README.md +0 -31
  869. package/src/stories/datepicker/data.json +0 -28
  870. package/src/stories/datepicker/datepicker.stories.js +0 -36
  871. package/src/stories/declarations/README.md +0 -19
  872. package/src/stories/declarations/declarations.stories.js +0 -112
  873. package/src/stories/dropdown/README.md +0 -44
  874. package/src/stories/dropdown/data-naf.json +0 -6963
  875. package/src/stories/dropdown/data-props.json +0 -81
  876. package/src/stories/dropdown/data.json +0 -78
  877. package/src/stories/dropdown/dropdown.stories.js +0 -65
  878. package/src/stories/filter-description/README.md +0 -15
  879. package/src/stories/filter-description/filter-description.stories.js +0 -53
  880. package/src/stories/input/README.md +0 -33
  881. package/src/stories/input/data.json +0 -28
  882. package/src/stories/input/input.stories.js +0 -44
  883. package/src/stories/input-number/README.md +0 -37
  884. package/src/stories/input-number/data.json +0 -30
  885. package/src/stories/input-number/input-number.stories.js +0 -53
  886. package/src/stories/loop/README.md +0 -25
  887. package/src/stories/loop/loop.stories.js +0 -80
  888. package/src/stories/loop/with-loop/data-loop-deeper.json +0 -298
  889. package/src/stories/loop/with-loop/data-loop.json +0 -211
  890. package/src/stories/loop/with-loop/data-vqs.json +0 -1384
  891. package/src/stories/loop/with-loop/index.js +0 -3
  892. package/src/stories/loop/with-roster/data-loop-deeper.json +0 -298
  893. package/src/stories/loop/with-roster/data-loop.json +0 -213
  894. package/src/stories/loop/with-roster/data-vqs.json +0 -1383
  895. package/src/stories/loop/with-roster/index.js +0 -3
  896. package/src/stories/loop-constructor/README.md +0 -27
  897. package/src/stories/loop-constructor/data-input.json +0 -64
  898. package/src/stories/loop-constructor/data-loop.json +0 -66
  899. package/src/stories/loop-constructor/data-roster.json +0 -68
  900. package/src/stories/loop-constructor/loop-constructor.stories.js +0 -59
  901. package/src/stories/pagination/deeper-loop.json +0 -327
  902. package/src/stories/pagination/pagination.stories.js +0 -57
  903. package/src/stories/pagination/simple-loop.json +0 -277
  904. package/src/stories/pagination/simpsons-question.json +0 -4262
  905. package/src/stories/pagination/simpsons-sequence.json +0 -4362
  906. package/src/stories/progress-bar/README.md +0 -13
  907. package/src/stories/progress-bar/progress-bar.stories.js +0 -24
  908. package/src/stories/questionnaire/fat.json +0 -6558
  909. package/src/stories/questionnaire/questionnaire.stories.js +0 -25
  910. package/src/stories/radio/README.md +0 -31
  911. package/src/stories/radio/data-vtl.json +0 -32
  912. package/src/stories/radio/data.json +0 -32
  913. package/src/stories/radio/radio.stories.js +0 -35
  914. package/src/stories/sequence/README.md +0 -18
  915. package/src/stories/sequence/sequence.stories.js +0 -28
  916. package/src/stories/subsequence/README.md +0 -18
  917. package/src/stories/subsequence/subsequence.stories.js +0 -28
  918. package/src/stories/suggester/README.md +0 -29
  919. package/src/stories/suggester/data-vtl.json +0 -28
  920. package/src/stories/suggester/data.json +0 -28
  921. package/src/stories/suggester/suggester.stories.js +0 -38
  922. package/src/stories/table/README.md +0 -29
  923. package/src/stories/table/data-default.json +0 -19
  924. package/src/stories/table/data-one-axis-one-measure.json +0 -124
  925. package/src/stories/table/data-one-axis-two-measures.json +0 -193
  926. package/src/stories/table/data-one-hierarchical-axis.json +0 -204
  927. package/src/stories/table/data-roster.json +0 -471
  928. package/src/stories/table/data-two-axis-one-measure.json +0 -492
  929. package/src/stories/table/table.stories.js +0 -77
  930. package/src/stories/textarea/README.md +0 -33
  931. package/src/stories/textarea/data-forced.json +0 -28
  932. package/src/stories/textarea/data.json +0 -28
  933. package/src/stories/textarea/textarea.stories.js +0 -67
  934. package/src/stories/tooltip-response/README.md +0 -14
  935. package/src/stories/tooltip-response/md-link.json +0 -31
  936. package/src/stories/tooltip-response/md-tooltip.json +0 -31
  937. package/src/stories/tooltip-response/tooltip.stories.js +0 -83
  938. package/src/stories/utils/custom-lunatic.scss +0 -23
  939. package/src/stories/utils/img/arrow.png +0 -0
  940. package/src/stories/utils/img/check_box.svg +0 -1
  941. package/src/stories/utils/img/check_box_outline.svg +0 -1
  942. package/src/stories/utils/img/lunatic-logo.png +0 -0
  943. package/src/stories/utils/img/menu-down.svg +0 -1
  944. package/src/stories/utils/img/menu-up.svg +0 -1
  945. package/src/stories/utils/img/radio_button_checked.svg +0 -1
  946. package/src/stories/utils/img/radio_button_unchecked.svg +0 -1
  947. package/src/stories/utils/options.js +0 -25
  948. package/src/stories/utils/orchestrator.js +0 -83
  949. package/src/tests/components/breadcrumb.spec.js +0 -13
  950. package/src/tests/components/button.spec.js +0 -11
  951. package/src/tests/components/checkbox-boolean.spec.js +0 -45
  952. package/src/tests/components/checkbox-group.spec.js +0 -53
  953. package/src/tests/components/checkbox-one.spec.js +0 -32
  954. package/src/tests/components/datepicker.spec.js +0 -22
  955. package/src/tests/components/declarations-wrappers/input-declarations-wrapper.spec.js +0 -67
  956. package/src/tests/components/declarations-wrappers/list-declarations-wrapper.spec.js +0 -52
  957. package/src/tests/components/declarations-wrappers/simple-declarations-wrapper.spec.js +0 -21
  958. package/src/tests/components/declarations.spec.js +0 -46
  959. package/src/tests/components/input-number.spec.js +0 -194
  960. package/src/tests/components/input.spec.js +0 -18
  961. package/src/tests/components/progress-bar.spec.js +0 -15
  962. package/src/tests/components/radio.spec.js +0 -27
  963. package/src/tests/components/sequence.spec.js +0 -9
  964. package/src/tests/components/subsequence.spec.js +0 -9
  965. package/src/tests/components/table.spec.js +0 -11
  966. package/src/tests/components/textarea.spec.js +0 -18
  967. package/src/tests/components/tooltip.spec.js +0 -25
  968. package/src/tests/setup/setupTests.js +0 -4
  969. package/src/tests/utils/lib/alphabet.spec.js +0 -36
  970. package/src/tests/utils/lib/checkbox/group.spec.js +0 -72
  971. package/src/tests/utils/lib/decorator/title-decorator.spec.js +0 -12
  972. package/src/tests/utils/lib/items-positioning.spec.js +0 -17
  973. package/src/tests/utils/lib/label-position.spec.js +0 -22
  974. package/src/tests/utils/lib/loops/bindings.spec.js +0 -60
  975. package/src/tests/utils/lib/loops/shared.spec.js +0 -78
  976. package/src/tests/utils/lib/pagination/shared.spec.js +0 -42
  977. package/src/tests/utils/lib/responses.spec.js +0 -64
  978. package/src/tests/utils/lib/style.spec.js +0 -26
  979. package/src/tests/utils/lib/table/roster.spec.js +0 -25
  980. package/src/tests/utils/lib/tooltip/build-response.spec.js +0 -95
  981. package/src/tests/utils/lib/tooltip/content.spec.js +0 -109
  982. package/src/tests/utils/to-expose/handler/handler.spec.js +0 -86
  983. package/src/tests/utils/to-expose/handler/questionnaire.json +0 -154
  984. package/src/tests/utils/to-expose/handler/results/index.js +0 -6
  985. package/src/tests/utils/to-expose/handler/results/res-double.json +0 -157
  986. package/src/tests/utils/to-expose/handler/results/res-input-collected.json +0 -154
  987. package/src/tests/utils/to-expose/handler/results/res-input-edited.json +0 -157
  988. package/src/tests/utils/to-expose/handler/results/res-loop.json +0 -157
  989. package/src/tests/utils/to-expose/handler/results/res-matrix.json +0 -157
  990. package/src/tests/utils/to-expose/handler/results/res-responses.json +0 -157
  991. package/src/tests/utils/to-expose/init-questionnaire/data.json +0 -12
  992. package/src/tests/utils/to-expose/init-questionnaire/init-questionnaire.spec.js +0 -19
  993. package/src/tests/utils/to-expose/init-questionnaire/questionnaire.json +0 -129
  994. package/src/tests/utils/to-expose/init-questionnaire/result.json +0 -162
  995. package/src/tests/utils/to-expose/interpret/interpret.spec.js +0 -66
  996. package/src/tests/utils/to-expose/state/questionnaire.json +0 -61
  997. package/src/tests/utils/to-expose/state/results.js +0 -78
  998. package/src/tests/utils/to-expose/state/state.spec.js +0 -59
  999. package/src/utils/lib/alphabet.js +0 -1
  1000. package/src/utils/lib/checkbox/group.js +0 -21
  1001. package/src/utils/lib/checkbox/index.js +0 -1
  1002. package/src/utils/lib/decorator/index.js +0 -1
  1003. package/src/utils/lib/decorator/title-decorator.js +0 -16
  1004. package/src/utils/lib/index.js +0 -13
  1005. package/src/utils/lib/label-position.js +0 -12
  1006. package/src/utils/lib/loops/bindings.js +0 -53
  1007. package/src/utils/lib/loops/build-components.js +0 -33
  1008. package/src/utils/lib/loops/index.js +0 -3
  1009. package/src/utils/lib/loops/shared.js +0 -43
  1010. package/src/utils/lib/memo-check.js +0 -24
  1011. package/src/utils/lib/options-positioning.js +0 -9
  1012. package/src/utils/lib/pagination/flow.js +0 -2
  1013. package/src/utils/lib/pagination/index.js +0 -2
  1014. package/src/utils/lib/pagination/navigation/index.js +0 -1
  1015. package/src/utils/lib/pagination/navigation/shared.js +0 -107
  1016. package/src/utils/lib/prop-types/declarations.js +0 -22
  1017. package/src/utils/lib/prop-types/index.js +0 -5
  1018. package/src/utils/lib/prop-types/lines.js +0 -6
  1019. package/src/utils/lib/prop-types/options.js +0 -8
  1020. package/src/utils/lib/prop-types/response.js +0 -6
  1021. package/src/utils/lib/prop-types/value-type.js +0 -9
  1022. package/src/utils/lib/responses.js +0 -9
  1023. package/src/utils/lib/style.js +0 -10
  1024. package/src/utils/lib/table/index.js +0 -1
  1025. package/src/utils/lib/table/roster.js +0 -23
  1026. package/src/utils/lib/tooltip/build-response.js +0 -41
  1027. package/src/utils/lib/tooltip/content.js +0 -55
  1028. package/src/utils/lib/tooltip/index.js +0 -6
  1029. package/src/utils/to-expose/handler.js +0 -99
  1030. package/src/utils/to-expose/hook.js +0 -153
  1031. package/src/utils/to-expose/index.js +0 -11
  1032. package/src/utils/to-expose/init-questionnaire.js +0 -116
  1033. package/src/utils/to-expose/interpret/index.js +0 -1
  1034. package/src/utils/to-expose/interpret/main.js +0 -36
  1035. package/src/utils/to-expose/interpret/md.js +0 -42
  1036. package/src/utils/to-expose/interpret/vtl.js +0 -43
  1037. package/src/utils/to-expose/state.js +0 -58
  1038. /package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/edited.png +0 -0
  1039. /package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/forced.png +0 -0
@@ -0,0 +1,1966 @@
1
+ {
2
+ "id": "kzfezgxb",
3
+ "modele": "QTESTCONTR",
4
+ "enoCoreVersion": "2.3.7-dev-lunatic-v2",
5
+ "lunaticModelVersion": "2.2.13-dev-lunatic-v2",
6
+ "generatingDate": "19-07-2022 10:10:33",
7
+ "missing": false,
8
+ "pagination": "question",
9
+ "maxPage": "21",
10
+ "label": {
11
+ "value": "\"QNONREG Controles Numériques VTL\"",
12
+ "type": "VTL|MD"
13
+ },
14
+ "components": [
15
+ {
16
+ "id": "kd09v80w",
17
+ "componentType": "Sequence",
18
+ "page": "1",
19
+ "label": {
20
+ "value": "\"Tests sur variables numériques\"",
21
+ "type": "VTL|MD"
22
+ },
23
+ "conditionFilter": { "value": "true", "type": "VTL" },
24
+ "hierarchy": {
25
+ "sequence": {
26
+ "id": "kd09v80w",
27
+ "page": "1",
28
+ "label": {
29
+ "value": "\"Tests sur variables numériques\"",
30
+ "type": "VTL|MD"
31
+ }
32
+ }
33
+ }
34
+ },
35
+
36
+ {
37
+ "id": "kd0cbson",
38
+ "componentType": "Subsequence",
39
+ "goToPage": "2",
40
+ "label": {
41
+ "value": "\"Tests simples sur des entiers\"",
42
+ "type": "VTL|MD"
43
+ },
44
+ "conditionFilter": { "value": "true", "type": "VTL" },
45
+ "hierarchy": {
46
+ "sequence": {
47
+ "id": "kd09v80w",
48
+ "page": "1",
49
+ "label": {
50
+ "value": "\"Tests sur variables numériques\"",
51
+ "type": "VTL|MD"
52
+ }
53
+ },
54
+ "subSequence": {
55
+ "id": "kd0cbson",
56
+ "page": "2",
57
+ "label": {
58
+ "value": "\"Tests simples sur des entiers\"",
59
+ "type": "VTL|MD"
60
+ }
61
+ }
62
+ }
63
+ },
64
+
65
+ {
66
+ "id": "k0dzbfek",
67
+ "componentType": "InputNumber",
68
+ "mandatory": false,
69
+ "page": "2",
70
+ "min": 0,
71
+ "max": 100,
72
+ "decimals": 0,
73
+ "label": {
74
+ "value": "\"➡ 1. \" || \"Test de supériorité stricte - Saisie d’un nombre compris entre 0 et 100 - Si valeur supérieure à 5 message d’info. si superieur à 6,5 autre message \"",
75
+ "type": "VTL|MD"
76
+ },
77
+ "declarations": [
78
+ {
79
+ "id": "k0dzbfek-kzgzg0bk",
80
+ "declarationType": "HELP",
81
+ "position": "AFTER_QUESTION_TEXT",
82
+ "label": {
83
+ "value": "\"Tester 2 et 20 (pour vérifier ordre numérique et lexico)\"",
84
+ "type": "VTL|MD"
85
+ }
86
+ }
87
+ ],
88
+ "conditionFilter": { "value": "true", "type": "VTL" },
89
+ "controls": [
90
+ {
91
+ "id": "k0dzbfek-CI-0",
92
+ "criticality": "WARN",
93
+ "control": {
94
+ "value": "not(cast(nvl(QNUM,0),integer) > 5)",
95
+ "type": "VTL"
96
+ },
97
+ "errorMessage": { "value": "\"sup à 5\"", "type": "VTL|MD" },
98
+ "bindingDependencies": ["QNUM"]
99
+ },
100
+
101
+ {
102
+ "id": "k0dzbfek-CI-1",
103
+ "criticality": "WARN",
104
+ "control": {
105
+ "value": "not(cast(nvl(QNUM,0),integer) > 6.5)",
106
+ "type": "VTL"
107
+ },
108
+ "errorMessage": { "value": "\"superieur à 6.5\"", "type": "VTL|MD" },
109
+ "bindingDependencies": ["QNUM"]
110
+ }
111
+ ],
112
+ "hierarchy": {
113
+ "sequence": {
114
+ "id": "kd09v80w",
115
+ "page": "1",
116
+ "label": {
117
+ "value": "\"Tests sur variables numériques\"",
118
+ "type": "VTL|MD"
119
+ }
120
+ },
121
+ "subSequence": {
122
+ "id": "kd0cbson",
123
+ "page": "2",
124
+ "label": {
125
+ "value": "\"Tests simples sur des entiers\"",
126
+ "type": "VTL|MD"
127
+ }
128
+ }
129
+ },
130
+ "bindingDependencies": ["QNUM"],
131
+ "response": { "name": "QNUM" }
132
+ },
133
+
134
+ {
135
+ "id": "kd0a6rn3",
136
+ "componentType": "InputNumber",
137
+ "mandatory": false,
138
+ "page": "3",
139
+ "min": 0,
140
+ "max": 100,
141
+ "decimals": 0,
142
+ "label": {
143
+ "value": "\"➡ 2. \" || \"Test sur valeur numérique vide\"",
144
+ "type": "VTL|MD"
145
+ },
146
+ "conditionFilter": { "value": "true", "type": "VTL" },
147
+ "controls": [
148
+ {
149
+ "id": "kd0a6rn3-CI-0",
150
+ "criticality": "WARN",
151
+ "control": { "value": "not(isnull(QNUM2))", "type": "VTL" },
152
+ "errorMessage": {
153
+ "value": "\"vous n’avez pas répondu à la question\"",
154
+ "type": "VTL|MD"
155
+ },
156
+ "bindingDependencies": ["QNUM2"]
157
+ }
158
+ ],
159
+ "hierarchy": {
160
+ "sequence": {
161
+ "id": "kd09v80w",
162
+ "page": "1",
163
+ "label": {
164
+ "value": "\"Tests sur variables numériques\"",
165
+ "type": "VTL|MD"
166
+ }
167
+ },
168
+ "subSequence": {
169
+ "id": "kd0cbson",
170
+ "page": "2",
171
+ "label": {
172
+ "value": "\"Tests simples sur des entiers\"",
173
+ "type": "VTL|MD"
174
+ }
175
+ }
176
+ },
177
+ "bindingDependencies": ["QNUM2"],
178
+ "response": { "name": "QNUM2" }
179
+ },
180
+
181
+ {
182
+ "id": "kd0a8h62",
183
+ "componentType": "InputNumber",
184
+ "mandatory": false,
185
+ "page": "4",
186
+ "min": 0,
187
+ "max": 100,
188
+ "decimals": 0,
189
+ "label": {
190
+ "value": "\"➡ 3. \" || \"Test d’infériorité stricte - Saisie d’un nombre compris entre 0 et 100 - Message si valeur inférieure à 8 \"",
191
+ "type": "VTL|MD"
192
+ },
193
+ "declarations": [
194
+ {
195
+ "id": "kd0a8h62-kzgzr5b4",
196
+ "declarationType": "HELP",
197
+ "position": "AFTER_QUESTION_TEXT",
198
+ "label": {
199
+ "value": "\"Tester 2 et 20 (pour vérifier ordre numérique et lexico)\"",
200
+ "type": "VTL|MD"
201
+ }
202
+ }
203
+ ],
204
+ "conditionFilter": { "value": "true", "type": "VTL" },
205
+ "controls": [
206
+ {
207
+ "id": "kd0a8h62-CI-0",
208
+ "criticality": "WARN",
209
+ "control": {
210
+ "value": "not(cast(nvl(QNUM3,0),integer) < 8)",
211
+ "type": "VTL"
212
+ },
213
+ "errorMessage": {
214
+ "value": "\"le nombre saisi est inférieur à 8\"",
215
+ "type": "VTL|MD"
216
+ },
217
+ "bindingDependencies": ["QNUM3"]
218
+ }
219
+ ],
220
+ "hierarchy": {
221
+ "sequence": {
222
+ "id": "kd09v80w",
223
+ "page": "1",
224
+ "label": {
225
+ "value": "\"Tests sur variables numériques\"",
226
+ "type": "VTL|MD"
227
+ }
228
+ },
229
+ "subSequence": {
230
+ "id": "kd0cbson",
231
+ "page": "2",
232
+ "label": {
233
+ "value": "\"Tests simples sur des entiers\"",
234
+ "type": "VTL|MD"
235
+ }
236
+ }
237
+ },
238
+ "bindingDependencies": ["QNUM3"],
239
+ "response": { "name": "QNUM3" }
240
+ },
241
+
242
+ {
243
+ "id": "kd0a4t4f",
244
+ "componentType": "InputNumber",
245
+ "mandatory": false,
246
+ "page": "5",
247
+ "min": 0,
248
+ "max": 100,
249
+ "decimals": 0,
250
+ "label": {
251
+ "value": "\"➡ 4. \" || \"Test de supériorité non stricte - Saisie d’un nombre compris entre 0 et 100 - Test si valeur supérieure à 5 \"",
252
+ "type": "VTL|MD"
253
+ },
254
+ "declarations": [
255
+ {
256
+ "id": "kd0a4t4f-kzgzrq25",
257
+ "declarationType": "HELP",
258
+ "position": "AFTER_QUESTION_TEXT",
259
+ "label": {
260
+ "value": "\"Tester 2 et 20 (pour vérifier ordre numérique et lexico) Tester pour le cas d’égalité\"",
261
+ "type": "VTL|MD"
262
+ }
263
+ }
264
+ ],
265
+ "conditionFilter": { "value": "true", "type": "VTL" },
266
+ "controls": [
267
+ {
268
+ "id": "kd0a4t4f-CI-0",
269
+ "criticality": "WARN",
270
+ "control": {
271
+ "value": "not(cast(nvl(QNUM4,0),integer) >=5)",
272
+ "type": "VTL"
273
+ },
274
+ "errorMessage": {
275
+ "value": "\"la valeur saisie est supérieure ou égale à 5\"",
276
+ "type": "VTL|MD"
277
+ },
278
+ "bindingDependencies": ["QNUM4"]
279
+ }
280
+ ],
281
+ "hierarchy": {
282
+ "sequence": {
283
+ "id": "kd09v80w",
284
+ "page": "1",
285
+ "label": {
286
+ "value": "\"Tests sur variables numériques\"",
287
+ "type": "VTL|MD"
288
+ }
289
+ },
290
+ "subSequence": {
291
+ "id": "kd0cbson",
292
+ "page": "2",
293
+ "label": {
294
+ "value": "\"Tests simples sur des entiers\"",
295
+ "type": "VTL|MD"
296
+ }
297
+ }
298
+ },
299
+ "bindingDependencies": ["QNUM4"],
300
+ "response": { "name": "QNUM4" }
301
+ },
302
+
303
+ {
304
+ "id": "kd0ac92p",
305
+ "componentType": "InputNumber",
306
+ "mandatory": false,
307
+ "page": "6",
308
+ "min": 0,
309
+ "max": 100,
310
+ "decimals": 0,
311
+ "label": {
312
+ "value": "\"➡ 5. \" || \"Test d’infériorité non stricte - Saisie d’un nombre compris entre 0 et 100 - Test si valeur inférieure à 8 \"",
313
+ "type": "VTL|MD"
314
+ },
315
+ "declarations": [
316
+ {
317
+ "id": "kd0ac92p-kzgzp1k0",
318
+ "declarationType": "HELP",
319
+ "position": "AFTER_QUESTION_TEXT",
320
+ "label": {
321
+ "value": "\"Tester 2 et 20 (pour vérifier ordre numérique et lexico) Tester 8 pour le cas égalité\"",
322
+ "type": "VTL|MD"
323
+ }
324
+ }
325
+ ],
326
+ "conditionFilter": { "value": "true", "type": "VTL" },
327
+ "controls": [
328
+ {
329
+ "id": "kd0ac92p-CI-0",
330
+ "criticality": "WARN",
331
+ "control": {
332
+ "value": "not(cast(nvl(QNUM5,0),integer) <= 8)",
333
+ "type": "VTL"
334
+ },
335
+ "errorMessage": {
336
+ "value": "\"La valeur saisie est inférieure ou égale à 8\"",
337
+ "type": "VTL|MD"
338
+ },
339
+ "bindingDependencies": ["QNUM5"]
340
+ }
341
+ ],
342
+ "hierarchy": {
343
+ "sequence": {
344
+ "id": "kd09v80w",
345
+ "page": "1",
346
+ "label": {
347
+ "value": "\"Tests sur variables numériques\"",
348
+ "type": "VTL|MD"
349
+ }
350
+ },
351
+ "subSequence": {
352
+ "id": "kd0cbson",
353
+ "page": "2",
354
+ "label": {
355
+ "value": "\"Tests simples sur des entiers\"",
356
+ "type": "VTL|MD"
357
+ }
358
+ }
359
+ },
360
+ "bindingDependencies": ["QNUM5"],
361
+ "response": { "name": "QNUM5" }
362
+ },
363
+
364
+ {
365
+ "id": "k1cahy88",
366
+ "componentType": "InputNumber",
367
+ "mandatory": false,
368
+ "page": "7",
369
+ "min": 0,
370
+ "max": 9,
371
+ "decimals": 0,
372
+ "label": {
373
+ "value": "\"➡ 6. \" || \"Test d’égalité - Message si = 4\"",
374
+ "type": "VTL|MD"
375
+ },
376
+ "conditionFilter": { "value": "true", "type": "VTL" },
377
+ "controls": [
378
+ {
379
+ "id": "k1cahy88-CI-0",
380
+ "criticality": "WARN",
381
+ "control": {
382
+ "value": "not(cast(nvl(QNUM6,0),integer) = 4)",
383
+ "type": "VTL"
384
+ },
385
+ "errorMessage": {
386
+ "value": "\"la valeur est égale à 4\"",
387
+ "type": "VTL|MD"
388
+ },
389
+ "bindingDependencies": ["QNUM6"]
390
+ }
391
+ ],
392
+ "hierarchy": {
393
+ "sequence": {
394
+ "id": "kd09v80w",
395
+ "page": "1",
396
+ "label": {
397
+ "value": "\"Tests sur variables numériques\"",
398
+ "type": "VTL|MD"
399
+ }
400
+ },
401
+ "subSequence": {
402
+ "id": "kd0cbson",
403
+ "page": "2",
404
+ "label": {
405
+ "value": "\"Tests simples sur des entiers\"",
406
+ "type": "VTL|MD"
407
+ }
408
+ }
409
+ },
410
+ "bindingDependencies": ["QNUM6"],
411
+ "response": { "name": "QNUM6" }
412
+ },
413
+
414
+ {
415
+ "id": "kd0ch7pf",
416
+ "componentType": "InputNumber",
417
+ "mandatory": false,
418
+ "page": "8",
419
+ "min": 0,
420
+ "max": 9,
421
+ "decimals": 0,
422
+ "label": {
423
+ "value": "\"➡ 7. \" || \"Test d’égalité à 0 - Message si = 0 \"",
424
+ "type": "VTL|MD"
425
+ },
426
+ "declarations": [
427
+ {
428
+ "id": "kd0ch7pf-kzgzyu8d",
429
+ "declarationType": "HELP",
430
+ "position": "AFTER_QUESTION_TEXT",
431
+ "label": {
432
+ "value": "\"Tester 0 Tester aussi en vidant la valeur\"",
433
+ "type": "VTL|MD"
434
+ }
435
+ }
436
+ ],
437
+ "conditionFilter": { "value": "true", "type": "VTL" },
438
+ "controls": [
439
+ {
440
+ "id": "kd0ch7pf-CI-0",
441
+ "criticality": "WARN",
442
+ "control": { "value": "not(cast(QNUM7,integer) = 0)", "type": "VTL" },
443
+ "errorMessage": { "value": "\"La valeur est 0\"", "type": "VTL|MD" },
444
+ "bindingDependencies": ["QNUM7"]
445
+ },
446
+
447
+ {
448
+ "id": "kd0ch7pf-CI-1",
449
+ "criticality": "WARN",
450
+ "control": { "value": "not(isnull(QNUM7))", "type": "VTL" },
451
+ "errorMessage": { "value": "\"valeur vide\"", "type": "VTL|MD" },
452
+ "bindingDependencies": ["QNUM7"]
453
+ }
454
+ ],
455
+ "hierarchy": {
456
+ "sequence": {
457
+ "id": "kd09v80w",
458
+ "page": "1",
459
+ "label": {
460
+ "value": "\"Tests sur variables numériques\"",
461
+ "type": "VTL|MD"
462
+ }
463
+ },
464
+ "subSequence": {
465
+ "id": "kd0cbson",
466
+ "page": "2",
467
+ "label": {
468
+ "value": "Tests simples sur des entiers",
469
+ "type": "VTL|MD"
470
+ }
471
+ }
472
+ },
473
+ "bindingDependencies": ["QNUM7"],
474
+ "response": { "name": "QNUM7" }
475
+ },
476
+
477
+ {
478
+ "id": "kd0aamy0",
479
+ "componentType": "InputNumber",
480
+ "mandatory": false,
481
+ "page": "9",
482
+ "min": -100,
483
+ "max": 100,
484
+ "decimals": 2,
485
+ "label": {
486
+ "value": "\"➡ 8. \" || \"TestS d’un relatif par rapport à une constante neg\"",
487
+ "type": "VTL|MD"
488
+ },
489
+ "declarations": [
490
+ {
491
+ "id": "kd0aamy0-kzgzjdlf",
492
+ "declarationType": "HELP",
493
+ "position": "AFTER_QUESTION_TEXT",
494
+ "label": {
495
+ "value": "\"test des positionnements par rapport à -4\"",
496
+ "type": "VTL|MD"
497
+ }
498
+ },
499
+
500
+ {
501
+ "id": "kd0aamy0-l5qs4feh",
502
+ "declarationType": "HELP",
503
+ "position": "AFTER_QUESTION_TEXT",
504
+ "label": {
505
+ "value": "En LunaticV1 impossible saisir un négatif",
506
+ "type": "VTL|MD"
507
+ }
508
+ }
509
+ ],
510
+ "conditionFilter": { "value": "true", "type": "VTL" },
511
+ "controls": [
512
+ {
513
+ "id": "kd0aamy0-CI-0",
514
+ "criticality": "WARN",
515
+ "control": {
516
+ "value": "not(cast(nvl(REL,0),number) > -4)",
517
+ "type": "VTL"
518
+ },
519
+ "errorMessage": {
520
+ "value": "c’est supérieur strict",
521
+ "type": "VTL|MD"
522
+ },
523
+ "bindingDependencies": ["REL"]
524
+ },
525
+
526
+ {
527
+ "id": "kd0aamy0-CI-1",
528
+ "criticality": "WARN",
529
+ "control": {
530
+ "value": "not(cast(nvl(REL,0),number) >= -4)",
531
+ "type": "VTL"
532
+ },
533
+ "errorMessage": {
534
+ "value": "c’est supérieur ou égal",
535
+ "type": "VTL|MD"
536
+ },
537
+ "bindingDependencies": ["REL"]
538
+ },
539
+
540
+ {
541
+ "id": "kd0aamy0-CI-2",
542
+ "criticality": "WARN",
543
+ "control": {
544
+ "value": "not(cast(nvl(REL,0),number) < -4)",
545
+ "type": "VTL"
546
+ },
547
+ "errorMessage": {
548
+ "value": "c’est inférieur strict",
549
+ "type": "VTL|MD"
550
+ },
551
+ "bindingDependencies": ["REL"]
552
+ },
553
+
554
+ {
555
+ "id": "kd0aamy0-CI-3",
556
+ "criticality": "WARN",
557
+ "control": {
558
+ "value": "not(cast(nvl(REL,0),number) <= -4)",
559
+ "type": "VTL"
560
+ },
561
+ "errorMessage": {
562
+ "value": "c’est inférieur ou égal",
563
+ "type": "VTL|MD"
564
+ },
565
+ "bindingDependencies": ["REL"]
566
+ },
567
+
568
+ {
569
+ "id": "kd0aamy0-CI-4",
570
+ "criticality": "WARN",
571
+ "control": {
572
+ "value": "not(cast(nvl(REL,0),number) = -4)",
573
+ "type": "VTL"
574
+ },
575
+ "errorMessage": { "value": "c’est égal", "type": "VTL|MD" },
576
+ "bindingDependencies": ["REL"]
577
+ },
578
+
579
+ {
580
+ "id": "kd0aamy0-CI-5",
581
+ "criticality": "WARN",
582
+ "control": {
583
+ "value": "not(cast(nvl(REL,0),number) <> -4)",
584
+ "type": "VTL"
585
+ },
586
+ "errorMessage": { "value": "c’est différent", "type": "VTL|MD" },
587
+ "bindingDependencies": ["REL"]
588
+ }
589
+ ],
590
+ "hierarchy": {
591
+ "sequence": {
592
+ "id": "kd09v80w",
593
+ "page": "1",
594
+ "label": {
595
+ "value": "Tests sur variables numériques",
596
+ "type": "VTL|MD"
597
+ }
598
+ },
599
+ "subSequence": {
600
+ "id": "kd0cbson",
601
+ "page": "2",
602
+ "label": {
603
+ "value": "Tests simples sur des entiers",
604
+ "type": "VTL|MD"
605
+ }
606
+ }
607
+ },
608
+ "bindingDependencies": ["REL"],
609
+ "response": { "name": "REL" }
610
+ },
611
+
612
+ {
613
+ "id": "kd0cdj48",
614
+ "componentType": "Subsequence",
615
+ "goToPage": "10",
616
+ "label": {
617
+ "value": "Tests sur des relatifs et des réels",
618
+ "type": "VTL|MD"
619
+ },
620
+ "conditionFilter": { "value": "true", "type": "VTL" },
621
+ "hierarchy": {
622
+ "sequence": {
623
+ "id": "kd09v80w",
624
+ "page": "1",
625
+ "label": {
626
+ "value": "Tests sur variables numériques",
627
+ "type": "VTL|MD"
628
+ }
629
+ },
630
+ "subSequence": {
631
+ "id": "kd0cdj48",
632
+ "page": "10",
633
+ "label": {
634
+ "value": "Tests sur des relatifs et des réels",
635
+ "type": "VTL|MD"
636
+ }
637
+ }
638
+ }
639
+ },
640
+
641
+ {
642
+ "id": "kd0aa5ah",
643
+ "componentType": "InputNumber",
644
+ "mandatory": false,
645
+ "page": "10",
646
+ "min": -100,
647
+ "max": 100,
648
+ "decimals": 2,
649
+ "label": {
650
+ "value": "\"➡ 9. \" || \"Test d’un réel par rapport à une constante - test des positionnements par rapport à -4.51 (sup, inf, égal)\"",
651
+ "type": "VTL|MD"
652
+ },
653
+ "conditionFilter": { "value": "true", "type": "VTL" },
654
+ "controls": [
655
+ {
656
+ "id": "kd0aa5ah-CI-0",
657
+ "criticality": "WARN",
658
+ "control": {
659
+ "value": "not(cast(nvl(REEL,0),number) > -4.51)",
660
+ "type": "VTL"
661
+ },
662
+ "errorMessage": {
663
+ "value": "la valeur est supérieure à -4.51",
664
+ "type": "VTL|MD"
665
+ },
666
+ "bindingDependencies": ["REEL"]
667
+ },
668
+
669
+ {
670
+ "id": "kd0aa5ah-CI-1",
671
+ "criticality": "WARN",
672
+ "control": {
673
+ "value": "not(cast(nvl(REEL,0),number) = -4.51)",
674
+ "type": "VTL"
675
+ },
676
+ "errorMessage": {
677
+ "value": "la valeur est égale à -4.51",
678
+ "type": "VTL|MD"
679
+ },
680
+ "bindingDependencies": ["REEL"]
681
+ },
682
+
683
+ {
684
+ "id": "kd0aa5ah-CI-2",
685
+ "criticality": "WARN",
686
+ "control": {
687
+ "value": "not(cast(nvl(REEL,0),number) < -4.51)",
688
+ "type": "VTL"
689
+ },
690
+ "errorMessage": {
691
+ "value": "la valeur est inférieure à -4.51",
692
+ "type": "VTL|MD"
693
+ },
694
+ "bindingDependencies": ["REEL"]
695
+ }
696
+ ],
697
+ "hierarchy": {
698
+ "sequence": {
699
+ "id": "kd09v80w",
700
+ "page": "1",
701
+ "label": {
702
+ "value": "Tests sur variables numériques",
703
+ "type": "VTL|MD"
704
+ }
705
+ },
706
+ "subSequence": {
707
+ "id": "kd0cdj48",
708
+ "page": "10",
709
+ "label": {
710
+ "value": "Tests sur des relatifs et des réels",
711
+ "type": "VTL|MD"
712
+ }
713
+ }
714
+ },
715
+ "bindingDependencies": ["REEL"],
716
+ "response": { "name": "REEL" }
717
+ },
718
+
719
+ {
720
+ "id": "l5qvuk9e",
721
+ "componentType": "InputNumber",
722
+ "mandatory": false,
723
+ "page": "11",
724
+ "min": -100,
725
+ "max": 100,
726
+ "decimals": 2,
727
+ "label": {
728
+ "value": "\"➡ 10. \" || \"Test d’un réel par rapport à une constante - test des positionnements par rapport à 4.51 (sup, inf, égal)\"",
729
+ "type": "VTL|MD"
730
+ },
731
+ "conditionFilter": { "value": "true", "type": "VTL" },
732
+ "controls": [
733
+ {
734
+ "id": "l5qvuk9e-CI-0",
735
+ "criticality": "WARN",
736
+ "control": {
737
+ "value": "not(cast(nvl(REEL2,0),number) > 4.51)",
738
+ "type": "VTL"
739
+ },
740
+ "errorMessage": { "value": "superieur à 4.51", "type": "VTL|MD" },
741
+ "bindingDependencies": ["REEL2"]
742
+ },
743
+
744
+ {
745
+ "id": "l5qvuk9e-CI-1",
746
+ "criticality": "WARN",
747
+ "control": {
748
+ "value": "not(cast(nvl(REEL2,0),number) < 4.51)",
749
+ "type": "VTL"
750
+ },
751
+ "errorMessage": { "value": "inferieur à 4.51", "type": "VTL|MD" },
752
+ "bindingDependencies": ["REEL2"]
753
+ }
754
+ ],
755
+ "hierarchy": {
756
+ "sequence": {
757
+ "id": "kd09v80w",
758
+ "page": "1",
759
+ "label": {
760
+ "value": "Tests sur variables numériques",
761
+ "type": "VTL|MD"
762
+ }
763
+ },
764
+ "subSequence": {
765
+ "id": "kd0cdj48",
766
+ "page": "10",
767
+ "label": {
768
+ "value": "Tests sur des relatifs et des réels",
769
+ "type": "VTL|MD"
770
+ }
771
+ }
772
+ },
773
+ "bindingDependencies": ["REEL2"],
774
+ "response": { "name": "REEL2" }
775
+ },
776
+
777
+ {
778
+ "id": "l5qvtc2l",
779
+ "componentType": "InputNumber",
780
+ "mandatory": false,
781
+ "page": "12",
782
+ "min": -100,
783
+ "max": 100,
784
+ "decimals": 2,
785
+ "label": {
786
+ "value": "\"➡ 11. \" || \"Test d’un réel par rapport à une constante - test des positionnements par rapport à 4 (sup, égal)\"",
787
+ "type": "VTL|MD"
788
+ },
789
+ "conditionFilter": { "value": "true", "type": "VTL" },
790
+ "controls": [
791
+ {
792
+ "id": "l5qvtc2l-CI-0",
793
+ "criticality": "WARN",
794
+ "control": {
795
+ "value": "not(cast(nvl(REEL3,0),number) > 4)",
796
+ "type": "VTL"
797
+ },
798
+ "errorMessage": { "value": "superieur à 4", "type": "VTL|MD" },
799
+ "bindingDependencies": ["REEL3"]
800
+ },
801
+
802
+ {
803
+ "id": "l5qvtc2l-CI-1",
804
+ "criticality": "WARN",
805
+ "control": {
806
+ "value": "not(cast(nvl(REEL3,0),number) < 4)",
807
+ "type": "VTL"
808
+ },
809
+ "errorMessage": { "value": "inferieur à 4", "type": "VTL|MD" },
810
+ "bindingDependencies": ["REEL3"]
811
+ }
812
+ ],
813
+ "hierarchy": {
814
+ "sequence": {
815
+ "id": "kd09v80w",
816
+ "page": "1",
817
+ "label": {
818
+ "value": "Tests sur variables numériques",
819
+ "type": "VTL|MD"
820
+ }
821
+ },
822
+ "subSequence": {
823
+ "id": "kd0cdj48",
824
+ "page": "10",
825
+ "label": {
826
+ "value": "Tests sur des relatifs et des réels",
827
+ "type": "VTL|MD"
828
+ }
829
+ }
830
+ },
831
+ "bindingDependencies": ["REEL3"],
832
+ "response": { "name": "REEL3" }
833
+ },
834
+
835
+ {
836
+ "id": "kd0c3h3b",
837
+ "componentType": "InputNumber",
838
+ "mandatory": false,
839
+ "page": "13",
840
+ "min": 0,
841
+ "max": 1.0e9,
842
+ "decimals": 2,
843
+ "label": {
844
+ "value": "\"➡ 12. \" || \"Test d’un grand réel par rapport à une constante (max = 1000000000) - test des positionnements par rapport à 1000 - Personnalisation du message d’erreur avec la valeur (précision = 2, max = 1000000000)\"",
845
+ "type": "VTL|MD"
846
+ },
847
+ "declarations": [
848
+ {
849
+ "id": "kd0c3h3b-l5qsemyu",
850
+ "declarationType": "HELP",
851
+ "position": "AFTER_QUESTION_TEXT",
852
+ "label": {
853
+ "value": "Rappel : posait souci dans Orbeon",
854
+ "type": "VTL|MD"
855
+ }
856
+ }
857
+ ],
858
+ "conditionFilter": { "value": "true", "type": "VTL" },
859
+ "controls": [
860
+ {
861
+ "id": "kd0c3h3b-CI-0",
862
+ "criticality": "WARN",
863
+ "control": {
864
+ "value": "not(cast(nvl(GRAND,0),number) > 1000)",
865
+ "type": "VTL"
866
+ },
867
+ "errorMessage": {
868
+ "value": "la valeur saisie GRAND est supérieure à 1000 ",
869
+ "type": "VTL|MD"
870
+ },
871
+ "bindingDependencies": ["GRAND"]
872
+ }
873
+ ],
874
+ "hierarchy": {
875
+ "sequence": {
876
+ "id": "kd09v80w",
877
+ "page": "1",
878
+ "label": {
879
+ "value": "Tests sur variables numériques",
880
+ "type": "VTL|MD"
881
+ }
882
+ },
883
+ "subSequence": {
884
+ "id": "kd0cdj48",
885
+ "page": "10",
886
+ "label": {
887
+ "value": "Tests sur des relatifs et des réels",
888
+ "type": "VTL|MD"
889
+ }
890
+ }
891
+ },
892
+ "bindingDependencies": ["GRAND"],
893
+ "response": { "name": "GRAND" }
894
+ },
895
+
896
+ {
897
+ "id": "kd0a5rkr",
898
+ "componentType": "Subsequence",
899
+ "page": "14",
900
+ "goToPage": "14",
901
+ "label": {
902
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
903
+ "type": "VTL|MD"
904
+ },
905
+ "declarations": [
906
+ {
907
+ "id": "kd0a5rkr-kzh01fub",
908
+ "declarationType": "HELP",
909
+ "position": "AFTER_QUESTION_TEXT",
910
+ "label": {
911
+ "value": "Les nombres sont QREL et QREL2 Leur somme vaut CALC_SOMME - Leur produit vaut CALC_PRODUIT - Leur différence vaut CALC_DIFFERENCE - Leur division vaut CALC_RATIO",
912
+ "type": "VTL|MD"
913
+ }
914
+ }
915
+ ],
916
+ "conditionFilter": { "value": "true", "type": "VTL" },
917
+ "hierarchy": {
918
+ "sequence": {
919
+ "id": "kd09v80w",
920
+ "page": "1",
921
+ "label": {
922
+ "value": "Tests sur variables numériques",
923
+ "type": "VTL|MD"
924
+ }
925
+ },
926
+ "subSequence": {
927
+ "id": "kd0a5rkr",
928
+ "page": "14",
929
+ "label": {
930
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
931
+ "type": "VTL|MD"
932
+ }
933
+ }
934
+ },
935
+ "bindingDependencies": [
936
+ "QREL",
937
+ "QREL2",
938
+ "CALC_SOMME",
939
+ "CALC_PRODUIT",
940
+ "CALC_DIFFERENCE",
941
+ "CALC_RATIO"
942
+ ]
943
+ },
944
+
945
+ {
946
+ "id": "kd0achk0",
947
+ "componentType": "InputNumber",
948
+ "mandatory": false,
949
+ "page": "15",
950
+ "min": -100,
951
+ "max": 100,
952
+ "decimals": 0,
953
+ "label": {
954
+ "value": "\"➡ 13. \" || \"Test sur ordre de deux variables - partie 1 - les contrôles portent sur la question suivante&#xd;\"",
955
+ "type": "VTL|MD"
956
+ },
957
+ "declarations": [
958
+ {
959
+ "id": "kd0achk0-l5qs57q7",
960
+ "declarationType": "HELP",
961
+ "position": "AFTER_QUESTION_TEXT",
962
+ "label": {
963
+ "value": "Saisir un nombre entier relatif entre -100 et 100",
964
+ "type": "VTL|MD"
965
+ }
966
+ }
967
+ ],
968
+ "conditionFilter": { "value": "true", "type": "VTL" },
969
+ "hierarchy": {
970
+ "sequence": {
971
+ "id": "kd09v80w",
972
+ "page": "1",
973
+ "label": {
974
+ "value": "Tests sur variables numériques",
975
+ "type": "VTL|MD"
976
+ }
977
+ },
978
+ "subSequence": {
979
+ "id": "kd0a5rkr",
980
+ "page": "14",
981
+ "label": {
982
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
983
+ "type": "VTL|MD"
984
+ }
985
+ }
986
+ },
987
+ "bindingDependencies": ["QREL"],
988
+ "response": { "name": "QREL" }
989
+ },
990
+
991
+ {
992
+ "id": "kd0bl558",
993
+ "componentType": "InputNumber",
994
+ "mandatory": false,
995
+ "page": "16",
996
+ "min": -100,
997
+ "max": 100,
998
+ "decimals": 2,
999
+ "label": {
1000
+ "value": "\"➡ 14. \" || \"Test sur ordre de deux variables - partie 2 \"",
1001
+ "type": "VTL|MD"
1002
+ },
1003
+ "declarations": [
1004
+ {
1005
+ "id": "kd0bl558-kzgp1ckr",
1006
+ "declarationType": "HELP",
1007
+ "position": "AFTER_QUESTION_TEXT",
1008
+ "label": {
1009
+ "value": "MEttre 2 chiffres après virgule",
1010
+ "type": "VTL|MD"
1011
+ }
1012
+ },
1013
+
1014
+ {
1015
+ "id": "kd0bl558-kzgzuob9",
1016
+ "declarationType": "HELP",
1017
+ "position": "AFTER_QUESTION_TEXT",
1018
+ "label": {
1019
+ "value": "Saisir un deuxième nombre relatif entre -100 et 100",
1020
+ "type": "VTL|MD"
1021
+ }
1022
+ },
1023
+
1024
+ {
1025
+ "id": "kd0bl558-kzgzzsbo",
1026
+ "declarationType": "HELP",
1027
+ "position": "AFTER_QUESTION_TEXT",
1028
+ "label": {
1029
+ "value": "Tester supérieur, inférieur, identique",
1030
+ "type": "VTL|MD"
1031
+ }
1032
+ },
1033
+
1034
+ {
1035
+ "id": "kd0bl558-kzgzn873",
1036
+ "declarationType": "HELP",
1037
+ "position": "AFTER_QUESTION_TEXT",
1038
+ "label": {
1039
+ "value": "Ne pas oublier de tester ordre numérique et ordre lexicographique",
1040
+ "type": "VTL|MD"
1041
+ }
1042
+ }
1043
+ ],
1044
+ "conditionFilter": { "value": "true", "type": "VTL" },
1045
+ "controls": [
1046
+ {
1047
+ "id": "kd0bl558-CI-0",
1048
+ "criticality": "WARN",
1049
+ "control": {
1050
+ "value": "not(cast(QREL,number) > cast(QREL2,number))",
1051
+ "type": "VTL"
1052
+ },
1053
+ "errorMessage": {
1054
+ "value": "le premier nombre est supérieur",
1055
+ "type": "VTL|MD"
1056
+ },
1057
+ "bindingDependencies": ["QREL", "QREL2"]
1058
+ },
1059
+
1060
+ {
1061
+ "id": "kd0bl558-CI-1",
1062
+ "criticality": "WARN",
1063
+ "control": {
1064
+ "value": "not(cast(QREL,number) < cast(QREL2,number))",
1065
+ "type": "VTL"
1066
+ },
1067
+ "errorMessage": {
1068
+ "value": "le premier nombre est inférieur",
1069
+ "type": "VTL|MD"
1070
+ },
1071
+ "bindingDependencies": ["QREL", "QREL2"]
1072
+ },
1073
+
1074
+ {
1075
+ "id": "kd0bl558-CI-2",
1076
+ "criticality": "WARN",
1077
+ "control": {
1078
+ "value": "not(cast(QREL,number) = cast(QREL2,number))",
1079
+ "type": "VTL"
1080
+ },
1081
+ "errorMessage": {
1082
+ "value": "les deux nombres sont égaux",
1083
+ "type": "VTL|MD"
1084
+ },
1085
+ "bindingDependencies": ["QREL", "QREL2"]
1086
+ }
1087
+ ],
1088
+ "hierarchy": {
1089
+ "sequence": {
1090
+ "id": "kd09v80w",
1091
+ "page": "1",
1092
+ "label": {
1093
+ "value": "Tests sur variables numériques",
1094
+ "type": "VTL|MD"
1095
+ }
1096
+ },
1097
+ "subSequence": {
1098
+ "id": "kd0a5rkr",
1099
+ "page": "14",
1100
+ "label": {
1101
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1102
+ "type": "VTL|MD"
1103
+ }
1104
+ }
1105
+ },
1106
+ "bindingDependencies": ["QREL2"],
1107
+ "response": { "name": "QREL2" }
1108
+ },
1109
+
1110
+ {
1111
+ "id": "l5qt3xu9",
1112
+ "componentType": "InputNumber",
1113
+ "mandatory": false,
1114
+ "page": "17",
1115
+ "min": 0,
1116
+ "max": 100,
1117
+ "decimals": 0,
1118
+ "label": {
1119
+ "value": "\"➡ 15. \" || \"Test entre un entier et un réel - saisir entre 0 et 100 - controle sur saisie > QREL2\"",
1120
+ "type": "VTL|MD"
1121
+ },
1122
+ "declarations": [
1123
+ {
1124
+ "id": "l5qt3xu9-l5qt5usw",
1125
+ "declarationType": "HELP",
1126
+ "position": "AFTER_QUESTION_TEXT",
1127
+ "label": {
1128
+ "value": "\"rappel QREL2 : \" || cast(QREL2,string)",
1129
+ "type": "VTL|MD"
1130
+ }
1131
+ }
1132
+ ],
1133
+ "conditionFilter": { "value": "true", "type": "VTL" },
1134
+ "controls": [
1135
+ {
1136
+ "id": "l5qt3xu9-CI-0",
1137
+ "criticality": "WARN",
1138
+ "control": {
1139
+ "value": "not(cast(nvl(QNUMBIS,0),number) > cast(nvl(QREL2,0),number))",
1140
+ "type": "VTL"
1141
+ },
1142
+ "errorMessage": { "value": "saisie > QREL2", "type": "VTL|MD" },
1143
+ "bindingDependencies": ["QNUMBIS", "QREL2"]
1144
+ }
1145
+ ],
1146
+ "hierarchy": {
1147
+ "sequence": {
1148
+ "id": "kd09v80w",
1149
+ "page": "1",
1150
+ "label": {
1151
+ "value": "Tests sur variables numériques",
1152
+ "type": "VTL|MD"
1153
+ }
1154
+ },
1155
+ "subSequence": {
1156
+ "id": "kd0a5rkr",
1157
+ "page": "14",
1158
+ "label": {
1159
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1160
+ "type": "VTL|MD"
1161
+ }
1162
+ }
1163
+ },
1164
+ "bindingDependencies": ["QREL2", "QNUMBIS"],
1165
+ "response": { "name": "QNUMBIS" }
1166
+ },
1167
+
1168
+ {
1169
+ "id": "kd0bu8xz",
1170
+ "componentType": "InputNumber",
1171
+ "mandatory": false,
1172
+ "page": "18",
1173
+ "min": -400,
1174
+ "max": 400,
1175
+ "decimals": 0,
1176
+ "label": {
1177
+ "value": "\"➡ 16. \" || \"test avec une variable calculée : le ratio - Saisissez une valeur pour la comparer au produit des deux nombres précédents\"",
1178
+ "type": "VTL|MD"
1179
+ },
1180
+ "declarations": [
1181
+ {
1182
+ "id": "kd0bu8xz-l5qsfsto",
1183
+ "declarationType": "HELP",
1184
+ "position": "AFTER_QUESTION_TEXT",
1185
+ "label": {
1186
+ "value": "\"QREL \" || cast(QREL,string)",
1187
+ "type": "VTL|MD"
1188
+ }
1189
+ },
1190
+
1191
+ {
1192
+ "id": "kd0bu8xz-l5qsl50s",
1193
+ "declarationType": "HELP",
1194
+ "position": "AFTER_QUESTION_TEXT",
1195
+ "label": {
1196
+ "value": "\"QREL2 \" || cast(QREL2,string)",
1197
+ "type": "VTL|MD"
1198
+ }
1199
+ },
1200
+
1201
+ {
1202
+ "id": "kd0bu8xz-l5qtjjss",
1203
+ "declarationType": "HELP",
1204
+ "position": "AFTER_QUESTION_TEXT",
1205
+ "label": {
1206
+ "value": "\"ratio calculé : \" || cast(CALC_RATIO,string)",
1207
+ "type": "VTL|MD"
1208
+ }
1209
+ }
1210
+ ],
1211
+ "conditionFilter": { "value": "true", "type": "VTL" },
1212
+ "controls": [
1213
+ {
1214
+ "id": "kd0bu8xz-CI-0",
1215
+ "criticality": "WARN",
1216
+ "control": {
1217
+ "value": "not(cast(CALC_RATIO,number)<>cast(nvl(QRATIO,0),number))",
1218
+ "type": "VTL"
1219
+ },
1220
+ "errorMessage": { "value": "RAtio différent", "type": "VTL|MD" },
1221
+ "bindingDependencies": ["CALC_RATIO", "QRATIO"]
1222
+ },
1223
+
1224
+ {
1225
+ "id": "kd0bu8xz-CI-1",
1226
+ "criticality": "WARN",
1227
+ "control": {
1228
+ "value": "not(cast(CALC_RATIO,number)=cast(nvl(QRATIO,0),number))",
1229
+ "type": "VTL"
1230
+ },
1231
+ "errorMessage": { "value": "RAtio identique", "type": "VTL|MD" },
1232
+ "bindingDependencies": ["CALC_RATIO", "QRATIO"]
1233
+ }
1234
+ ],
1235
+ "hierarchy": {
1236
+ "sequence": {
1237
+ "id": "kd09v80w",
1238
+ "page": "1",
1239
+ "label": {
1240
+ "value": "Tests sur variables numériques",
1241
+ "type": "VTL|MD"
1242
+ }
1243
+ },
1244
+ "subSequence": {
1245
+ "id": "kd0a5rkr",
1246
+ "page": "14",
1247
+ "label": {
1248
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1249
+ "type": "VTL|MD"
1250
+ }
1251
+ }
1252
+ },
1253
+ "bindingDependencies": ["QREL", "QREL2", "CALC_RATIO", "QRATIO"],
1254
+ "response": { "name": "QRATIO" }
1255
+ },
1256
+
1257
+ {
1258
+ "id": "k0gj7g4v",
1259
+ "componentType": "InputNumber",
1260
+ "mandatory": false,
1261
+ "page": "19",
1262
+ "min": -200,
1263
+ "max": 200,
1264
+ "decimals": 1,
1265
+ "label": {
1266
+ "value": "\"➡ 17. \" || \"test avec une variable calculée : la somme - Saisissez une valeur pour la comparer à la somme des deux nombres précédents \"",
1267
+ "type": "VTL|MD"
1268
+ },
1269
+ "declarations": [
1270
+ {
1271
+ "id": "k0gj7g4v-kzs9lmqk",
1272
+ "declarationType": "HELP",
1273
+ "position": "AFTER_QUESTION_TEXT",
1274
+ "label": {
1275
+ "value": "\"somme calculée : \" ||cast(CALC_SOMME,string)",
1276
+ "type": "VTL|MD"
1277
+ }
1278
+ },
1279
+
1280
+ {
1281
+ "id": "k0gj7g4v-l5qsqev9",
1282
+ "declarationType": "HELP",
1283
+ "position": "AFTER_QUESTION_TEXT",
1284
+ "label": {
1285
+ "value": "\"QREL \" || cast(QREL,string)",
1286
+ "type": "VTL|MD"
1287
+ }
1288
+ },
1289
+
1290
+ {
1291
+ "id": "k0gj7g4v-l5qsn0zd",
1292
+ "declarationType": "HELP",
1293
+ "position": "AFTER_QUESTION_TEXT",
1294
+ "label": {
1295
+ "value": "\"QREL2 \" || cast(QREL2,string)",
1296
+ "type": "VTL|MD"
1297
+ }
1298
+ }
1299
+ ],
1300
+ "conditionFilter": { "value": "true", "type": "VTL" },
1301
+ "controls": [
1302
+ {
1303
+ "id": "k0gj7g4v-CI-0",
1304
+ "criticality": "WARN",
1305
+ "control": {
1306
+ "value": "not(cast(nvl(QSOMME,0),number) = cast(CALC_SOMME,number))",
1307
+ "type": "VTL"
1308
+ },
1309
+ "errorMessage": {
1310
+ "value": "Bravo vous savez faire une addition",
1311
+ "type": "VTL|MD"
1312
+ },
1313
+ "bindingDependencies": ["QSOMME", "CALC_SOMME"]
1314
+ },
1315
+
1316
+ {
1317
+ "id": "k0gj7g4v-CI-1",
1318
+ "criticality": "WARN",
1319
+ "control": {
1320
+ "value": "not(cast(nvl(QSOMME,0),number) < cast(CALC_SOMME,number))",
1321
+ "type": "VTL"
1322
+ },
1323
+ "errorMessage": {
1324
+ "value": "la valeur saisie est inférieure à la somme",
1325
+ "type": "VTL|MD"
1326
+ },
1327
+ "bindingDependencies": ["QSOMME", "CALC_SOMME"]
1328
+ },
1329
+
1330
+ {
1331
+ "id": "k0gj7g4v-CI-2",
1332
+ "criticality": "WARN",
1333
+ "control": {
1334
+ "value": "not(cast(nvl(QSOMME,0),number) > cast(CALC_SOMME,number))",
1335
+ "type": "VTL"
1336
+ },
1337
+ "errorMessage": {
1338
+ "value": "La valeur saisie est supérieure à la somme",
1339
+ "type": "VTL|MD"
1340
+ },
1341
+ "bindingDependencies": ["QSOMME", "CALC_SOMME"]
1342
+ }
1343
+ ],
1344
+ "hierarchy": {
1345
+ "sequence": {
1346
+ "id": "kd09v80w",
1347
+ "page": "1",
1348
+ "label": {
1349
+ "value": "Tests sur variables numériques",
1350
+ "type": "VTL|MD"
1351
+ }
1352
+ },
1353
+ "subSequence": {
1354
+ "id": "kd0a5rkr",
1355
+ "page": "14",
1356
+ "label": {
1357
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1358
+ "type": "VTL|MD"
1359
+ }
1360
+ }
1361
+ },
1362
+ "bindingDependencies": ["CALC_SOMME", "QREL", "QREL2", "QSOMME"],
1363
+ "response": { "name": "QSOMME" }
1364
+ },
1365
+
1366
+ {
1367
+ "id": "kd0bx24r",
1368
+ "componentType": "InputNumber",
1369
+ "mandatory": false,
1370
+ "page": "20",
1371
+ "min": -400,
1372
+ "max": 400,
1373
+ "decimals": 2,
1374
+ "label": {
1375
+ "value": "\"➡ 18. \" || \"test avec une variable calculée : le produit - Saisissez une valeur pour la comparer au produit des deux nombres précédents\"",
1376
+ "type": "VTL|MD"
1377
+ },
1378
+ "declarations": [
1379
+ {
1380
+ "id": "kd0bx24r-l5qsnxn1",
1381
+ "declarationType": "HELP",
1382
+ "position": "AFTER_QUESTION_TEXT",
1383
+ "label": {
1384
+ "value": "\"QREL \" || cast(QREL,string)",
1385
+ "type": "VTL|MD"
1386
+ }
1387
+ },
1388
+
1389
+ {
1390
+ "id": "kd0bx24r-l5qs6s2e",
1391
+ "declarationType": "HELP",
1392
+ "position": "AFTER_QUESTION_TEXT",
1393
+ "label": {
1394
+ "value": "\"QREL2 \" || cast(QREL2,string)",
1395
+ "type": "VTL|MD"
1396
+ }
1397
+ },
1398
+
1399
+ {
1400
+ "id": "kd0bx24r-l5qsojx6",
1401
+ "declarationType": "HELP",
1402
+ "position": "AFTER_QUESTION_TEXT",
1403
+ "label": {
1404
+ "value": "\"produit calculé : \" ||cast(CALC_PRODUIT,string)",
1405
+ "type": "VTL|MD"
1406
+ }
1407
+ }
1408
+ ],
1409
+ "conditionFilter": { "value": "true", "type": "VTL" },
1410
+ "controls": [
1411
+ {
1412
+ "id": "kd0bx24r-CI-0",
1413
+ "criticality": "WARN",
1414
+ "control": {
1415
+ "value": "not(cast(nvl(QPRODUIT,0),number) >= cast(CALC_PRODUIT,number))",
1416
+ "type": "VTL"
1417
+ },
1418
+ "errorMessage": {
1419
+ "value": "la valeur saisie est supérieure ou égale au produit",
1420
+ "type": "VTL|MD"
1421
+ },
1422
+ "bindingDependencies": ["QPRODUIT", "CALC_PRODUIT"]
1423
+ },
1424
+
1425
+ {
1426
+ "id": "kd0bx24r-CI-1",
1427
+ "criticality": "WARN",
1428
+ "control": {
1429
+ "value": "not(cast(nvl(QPRODUIT,0),number)<= cast(CALC_PRODUIT,number))",
1430
+ "type": "VTL"
1431
+ },
1432
+ "errorMessage": {
1433
+ "value": "la valeur saisie est inférieure ou égale au produit",
1434
+ "type": "VTL|MD"
1435
+ },
1436
+ "bindingDependencies": ["QPRODUIT", "CALC_PRODUIT"]
1437
+ }
1438
+ ],
1439
+ "hierarchy": {
1440
+ "sequence": {
1441
+ "id": "kd09v80w",
1442
+ "page": "1",
1443
+ "label": {
1444
+ "value": "Tests sur variables numériques",
1445
+ "type": "VTL|MD"
1446
+ }
1447
+ },
1448
+ "subSequence": {
1449
+ "id": "kd0a5rkr",
1450
+ "page": "14",
1451
+ "label": {
1452
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1453
+ "type": "VTL|MD"
1454
+ }
1455
+ }
1456
+ },
1457
+ "bindingDependencies": ["QREL", "QREL2", "CALC_PRODUIT", "QPRODUIT"],
1458
+ "response": { "name": "QPRODUIT" }
1459
+ },
1460
+
1461
+ {
1462
+ "id": "kd0c2j4a",
1463
+ "componentType": "InputNumber",
1464
+ "mandatory": false,
1465
+ "page": "21",
1466
+ "min": -400,
1467
+ "max": 400,
1468
+ "decimals": 2,
1469
+ "label": {
1470
+ "value": "\"➡ 19. \" || \"test avec une variable calculée : la différence - Saisissez une valeur pour la comparer au produit des deux nombres précédents\"",
1471
+ "type": "VTL|MD"
1472
+ },
1473
+ "declarations": [
1474
+ {
1475
+ "id": "kd0c2j4a-l5qsky9a",
1476
+ "declarationType": "HELP",
1477
+ "position": "AFTER_QUESTION_TEXT",
1478
+ "label": {
1479
+ "value": "\"QREL \" || cast(QREL,string)",
1480
+ "type": "VTL|MD"
1481
+ }
1482
+ },
1483
+
1484
+ {
1485
+ "id": "kd0c2j4a-l5qspruc",
1486
+ "declarationType": "HELP",
1487
+ "position": "AFTER_QUESTION_TEXT",
1488
+ "label": {
1489
+ "value": "\"QREL2 \" || cast(QREL2,string)",
1490
+ "type": "VTL|MD"
1491
+ }
1492
+ },
1493
+
1494
+ {
1495
+ "id": "kd0c2j4a-l5qt39hp",
1496
+ "declarationType": "HELP",
1497
+ "position": "AFTER_QUESTION_TEXT",
1498
+ "label": {
1499
+ "value": "\"diff calculée : \" || cast(CALC_DIFFERENCE,string)",
1500
+ "type": "VTL|MD"
1501
+ }
1502
+ }
1503
+ ],
1504
+ "conditionFilter": { "value": "true", "type": "VTL" },
1505
+ "controls": [
1506
+ {
1507
+ "id": "kd0c2j4a-CI-0",
1508
+ "criticality": "WARN",
1509
+ "control": {
1510
+ "value": "not(cast(nvl(QDIFFERENCE,0),number) = cast(CALC_DIFFERENCE,number))",
1511
+ "type": "VTL"
1512
+ },
1513
+ "errorMessage": { "value": "Différence : idem", "type": "VTL|MD" },
1514
+ "bindingDependencies": ["QDIFFERENCE", "CALC_DIFFERENCE"]
1515
+ },
1516
+
1517
+ {
1518
+ "id": "kd0c2j4a-CI-1",
1519
+ "criticality": "WARN",
1520
+ "control": {
1521
+ "value": "not(cast(nvl(QDIFFERENCE,0),number) <> cast(CALC_DIFFERENCE,number))",
1522
+ "type": "VTL"
1523
+ },
1524
+ "errorMessage": {
1525
+ "value": "Différence différente",
1526
+ "type": "VTL|MD"
1527
+ },
1528
+ "bindingDependencies": ["QDIFFERENCE", "CALC_DIFFERENCE"]
1529
+ }
1530
+ ],
1531
+ "hierarchy": {
1532
+ "sequence": {
1533
+ "id": "kd09v80w",
1534
+ "page": "1",
1535
+ "label": {
1536
+ "value": "Tests sur variables numériques",
1537
+ "type": "VTL|MD"
1538
+ }
1539
+ },
1540
+ "subSequence": {
1541
+ "id": "kd0a5rkr",
1542
+ "page": "14",
1543
+ "label": {
1544
+ "value": "Tests sur variables collectées, ordre relatif et variables calculées",
1545
+ "type": "VTL|MD"
1546
+ }
1547
+ }
1548
+ },
1549
+ "bindingDependencies": [
1550
+ "QREL",
1551
+ "QREL2",
1552
+ "CALC_DIFFERENCE",
1553
+ "QDIFFERENCE"
1554
+ ],
1555
+ "response": { "name": "QDIFFERENCE" }
1556
+ }
1557
+ ],
1558
+ "variables": [
1559
+ {
1560
+ "variableType": "COLLECTED",
1561
+ "name": "QNUM",
1562
+ "values": {
1563
+ "PREVIOUS": null,
1564
+ "COLLECTED": null,
1565
+ "FORCED": null,
1566
+ "EDITED": null,
1567
+ "INPUTED": null
1568
+ }
1569
+ },
1570
+
1571
+ {
1572
+ "variableType": "COLLECTED",
1573
+ "name": "QNUM2",
1574
+ "values": {
1575
+ "PREVIOUS": null,
1576
+ "COLLECTED": null,
1577
+ "FORCED": null,
1578
+ "EDITED": null,
1579
+ "INPUTED": null
1580
+ }
1581
+ },
1582
+
1583
+ {
1584
+ "variableType": "COLLECTED",
1585
+ "name": "QNUM3",
1586
+ "values": {
1587
+ "PREVIOUS": null,
1588
+ "COLLECTED": null,
1589
+ "FORCED": null,
1590
+ "EDITED": null,
1591
+ "INPUTED": null
1592
+ }
1593
+ },
1594
+
1595
+ {
1596
+ "variableType": "COLLECTED",
1597
+ "name": "QNUM4",
1598
+ "values": {
1599
+ "PREVIOUS": null,
1600
+ "COLLECTED": null,
1601
+ "FORCED": null,
1602
+ "EDITED": null,
1603
+ "INPUTED": null
1604
+ }
1605
+ },
1606
+
1607
+ {
1608
+ "variableType": "COLLECTED",
1609
+ "name": "QNUM5",
1610
+ "values": {
1611
+ "PREVIOUS": null,
1612
+ "COLLECTED": null,
1613
+ "FORCED": null,
1614
+ "EDITED": null,
1615
+ "INPUTED": null
1616
+ }
1617
+ },
1618
+
1619
+ {
1620
+ "variableType": "COLLECTED",
1621
+ "name": "QNUM6",
1622
+ "values": {
1623
+ "PREVIOUS": null,
1624
+ "COLLECTED": null,
1625
+ "FORCED": null,
1626
+ "EDITED": null,
1627
+ "INPUTED": null
1628
+ }
1629
+ },
1630
+
1631
+ {
1632
+ "variableType": "COLLECTED",
1633
+ "name": "QNUM7",
1634
+ "values": {
1635
+ "PREVIOUS": null,
1636
+ "COLLECTED": null,
1637
+ "FORCED": null,
1638
+ "EDITED": null,
1639
+ "INPUTED": null
1640
+ }
1641
+ },
1642
+
1643
+ {
1644
+ "variableType": "COLLECTED",
1645
+ "name": "REL",
1646
+ "values": {
1647
+ "PREVIOUS": null,
1648
+ "COLLECTED": null,
1649
+ "FORCED": null,
1650
+ "EDITED": null,
1651
+ "INPUTED": null
1652
+ }
1653
+ },
1654
+
1655
+ {
1656
+ "variableType": "COLLECTED",
1657
+ "name": "REEL",
1658
+ "values": {
1659
+ "PREVIOUS": null,
1660
+ "COLLECTED": null,
1661
+ "FORCED": null,
1662
+ "EDITED": null,
1663
+ "INPUTED": null
1664
+ }
1665
+ },
1666
+
1667
+ {
1668
+ "variableType": "COLLECTED",
1669
+ "name": "REEL2",
1670
+ "values": {
1671
+ "PREVIOUS": null,
1672
+ "COLLECTED": null,
1673
+ "FORCED": null,
1674
+ "EDITED": null,
1675
+ "INPUTED": null
1676
+ }
1677
+ },
1678
+
1679
+ {
1680
+ "variableType": "COLLECTED",
1681
+ "name": "REEL3",
1682
+ "values": {
1683
+ "PREVIOUS": null,
1684
+ "COLLECTED": null,
1685
+ "FORCED": null,
1686
+ "EDITED": null,
1687
+ "INPUTED": null
1688
+ }
1689
+ },
1690
+
1691
+ {
1692
+ "variableType": "COLLECTED",
1693
+ "name": "GRAND",
1694
+ "values": {
1695
+ "PREVIOUS": null,
1696
+ "COLLECTED": null,
1697
+ "FORCED": null,
1698
+ "EDITED": null,
1699
+ "INPUTED": null
1700
+ }
1701
+ },
1702
+
1703
+ {
1704
+ "variableType": "COLLECTED",
1705
+ "name": "QREL",
1706
+ "values": {
1707
+ "PREVIOUS": null,
1708
+ "COLLECTED": null,
1709
+ "FORCED": null,
1710
+ "EDITED": null,
1711
+ "INPUTED": null
1712
+ }
1713
+ },
1714
+
1715
+ {
1716
+ "variableType": "COLLECTED",
1717
+ "name": "QREL2",
1718
+ "values": {
1719
+ "PREVIOUS": null,
1720
+ "COLLECTED": null,
1721
+ "FORCED": null,
1722
+ "EDITED": null,
1723
+ "INPUTED": null
1724
+ }
1725
+ },
1726
+
1727
+ {
1728
+ "variableType": "COLLECTED",
1729
+ "name": "QNUMBIS",
1730
+ "values": {
1731
+ "PREVIOUS": null,
1732
+ "COLLECTED": null,
1733
+ "FORCED": null,
1734
+ "EDITED": null,
1735
+ "INPUTED": null
1736
+ }
1737
+ },
1738
+
1739
+ {
1740
+ "variableType": "COLLECTED",
1741
+ "name": "QRATIO",
1742
+ "values": {
1743
+ "PREVIOUS": null,
1744
+ "COLLECTED": null,
1745
+ "FORCED": null,
1746
+ "EDITED": null,
1747
+ "INPUTED": null
1748
+ }
1749
+ },
1750
+
1751
+ {
1752
+ "variableType": "COLLECTED",
1753
+ "name": "QSOMME",
1754
+ "values": {
1755
+ "PREVIOUS": null,
1756
+ "COLLECTED": null,
1757
+ "FORCED": null,
1758
+ "EDITED": null,
1759
+ "INPUTED": null
1760
+ }
1761
+ },
1762
+
1763
+ {
1764
+ "variableType": "COLLECTED",
1765
+ "name": "QPRODUIT",
1766
+ "values": {
1767
+ "PREVIOUS": null,
1768
+ "COLLECTED": null,
1769
+ "FORCED": null,
1770
+ "EDITED": null,
1771
+ "INPUTED": null
1772
+ }
1773
+ },
1774
+
1775
+ {
1776
+ "variableType": "COLLECTED",
1777
+ "name": "QDIFFERENCE",
1778
+ "values": {
1779
+ "PREVIOUS": null,
1780
+ "COLLECTED": null,
1781
+ "FORCED": null,
1782
+ "EDITED": null,
1783
+ "INPUTED": null
1784
+ }
1785
+ },
1786
+
1787
+ {
1788
+ "variableType": "CALCULATED",
1789
+ "name": "FILTER_RESULT_QNUM",
1790
+ "expression": { "value": "true", "type": "VTL" },
1791
+ "inFilter": "false"
1792
+ },
1793
+
1794
+ {
1795
+ "variableType": "CALCULATED",
1796
+ "name": "FILTER_RESULT_QNUM2",
1797
+ "expression": { "value": "true", "type": "VTL" },
1798
+ "inFilter": "false"
1799
+ },
1800
+
1801
+ {
1802
+ "variableType": "CALCULATED",
1803
+ "name": "FILTER_RESULT_QNUM3",
1804
+ "expression": { "value": "true", "type": "VTL" },
1805
+ "inFilter": "false"
1806
+ },
1807
+
1808
+ {
1809
+ "variableType": "CALCULATED",
1810
+ "name": "FILTER_RESULT_QNUM4",
1811
+ "expression": { "value": "true", "type": "VTL" },
1812
+ "inFilter": "false"
1813
+ },
1814
+
1815
+ {
1816
+ "variableType": "CALCULATED",
1817
+ "name": "FILTER_RESULT_QNUM5",
1818
+ "expression": { "value": "true", "type": "VTL" },
1819
+ "inFilter": "false"
1820
+ },
1821
+
1822
+ {
1823
+ "variableType": "CALCULATED",
1824
+ "name": "FILTER_RESULT_QNUM6",
1825
+ "expression": { "value": "true", "type": "VTL" },
1826
+ "inFilter": "false"
1827
+ },
1828
+
1829
+ {
1830
+ "variableType": "CALCULATED",
1831
+ "name": "FILTER_RESULT_QNUM7",
1832
+ "expression": { "value": "true", "type": "VTL" },
1833
+ "inFilter": "false"
1834
+ },
1835
+
1836
+ {
1837
+ "variableType": "CALCULATED",
1838
+ "name": "FILTER_RESULT_REL",
1839
+ "expression": { "value": "true", "type": "VTL" },
1840
+ "inFilter": "false"
1841
+ },
1842
+
1843
+ {
1844
+ "variableType": "CALCULATED",
1845
+ "name": "FILTER_RESULT_REEL",
1846
+ "expression": { "value": "true", "type": "VTL" },
1847
+ "inFilter": "false"
1848
+ },
1849
+
1850
+ {
1851
+ "variableType": "CALCULATED",
1852
+ "name": "FILTER_RESULT_REEL2",
1853
+ "expression": { "value": "true", "type": "VTL" },
1854
+ "inFilter": "false"
1855
+ },
1856
+
1857
+ {
1858
+ "variableType": "CALCULATED",
1859
+ "name": "FILTER_RESULT_REEL3",
1860
+ "expression": { "value": "true", "type": "VTL" },
1861
+ "inFilter": "false"
1862
+ },
1863
+
1864
+ {
1865
+ "variableType": "CALCULATED",
1866
+ "name": "FILTER_RESULT_GRAND",
1867
+ "expression": { "value": "true", "type": "VTL" },
1868
+ "inFilter": "false"
1869
+ },
1870
+
1871
+ {
1872
+ "variableType": "CALCULATED",
1873
+ "name": "FILTER_RESULT_QREL",
1874
+ "expression": { "value": "true", "type": "VTL" },
1875
+ "inFilter": "false"
1876
+ },
1877
+
1878
+ {
1879
+ "variableType": "CALCULATED",
1880
+ "name": "FILTER_RESULT_QREL2",
1881
+ "expression": { "value": "true", "type": "VTL" },
1882
+ "inFilter": "false"
1883
+ },
1884
+
1885
+ {
1886
+ "variableType": "CALCULATED",
1887
+ "name": "FILTER_RESULT_QNUMBIS",
1888
+ "expression": { "value": "true", "type": "VTL" },
1889
+ "inFilter": "false"
1890
+ },
1891
+
1892
+ {
1893
+ "variableType": "CALCULATED",
1894
+ "name": "FILTER_RESULT_QRATIO",
1895
+ "expression": { "value": "true", "type": "VTL" },
1896
+ "inFilter": "false"
1897
+ },
1898
+
1899
+ {
1900
+ "variableType": "CALCULATED",
1901
+ "name": "FILTER_RESULT_QSOMME",
1902
+ "expression": { "value": "true", "type": "VTL" },
1903
+ "inFilter": "false"
1904
+ },
1905
+
1906
+ {
1907
+ "variableType": "CALCULATED",
1908
+ "name": "FILTER_RESULT_QPRODUIT",
1909
+ "expression": { "value": "true", "type": "VTL" },
1910
+ "inFilter": "false"
1911
+ },
1912
+
1913
+ {
1914
+ "variableType": "CALCULATED",
1915
+ "name": "FILTER_RESULT_QDIFFERENCE",
1916
+ "expression": { "value": "true", "type": "VTL" },
1917
+ "inFilter": "false"
1918
+ },
1919
+
1920
+ {
1921
+ "variableType": "CALCULATED",
1922
+ "name": "CALC_SOMME",
1923
+ "expression": {
1924
+ "value": "cast(nvl(QREL,0),number) + cast(nvl(QREL2,0),number)",
1925
+ "type": "VTL"
1926
+ },
1927
+ "bindingDependencies": ["QREL", "QREL2"],
1928
+ "inFilter": "false"
1929
+ },
1930
+
1931
+ {
1932
+ "variableType": "CALCULATED",
1933
+ "name": "CALC_PRODUIT",
1934
+ "expression": {
1935
+ "value": "cast(nvl(QREL,0),number) * cast(nvl(QREL2,0),number)",
1936
+ "type": "VTL"
1937
+ },
1938
+ "bindingDependencies": ["QREL", "QREL2"],
1939
+ "inFilter": "false"
1940
+ },
1941
+
1942
+ {
1943
+ "variableType": "CALCULATED",
1944
+ "name": "CALC_DIFFERENCE",
1945
+ "expression": {
1946
+ "value": "cast(nvl(QREL,0),number) - cast(nvl(QREL2,0),number)",
1947
+ "type": "VTL"
1948
+ },
1949
+ "bindingDependencies": ["QREL", "QREL2"],
1950
+ "inFilter": "false"
1951
+ },
1952
+
1953
+ {
1954
+ "variableType": "CALCULATED",
1955
+ "name": "CALC_RATIO",
1956
+ "expression": {
1957
+ "value": "cast(nvl(QREL,0),number) / cast(nvl(QREL2,0),number)",
1958
+ "type": "VTL"
1959
+ },
1960
+ "bindingDependencies": ["QREL", "QREL2"],
1961
+ "inFilter": "false"
1962
+ }
1963
+ ],
1964
+ "cleaning": {},
1965
+ "resizing": {}
1966
+ }