@inseefr/lunatic 3.5.7 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/components/shared/Combobox/Combobox.stories.d.ts +3 -2
  2. package/components/shared/Combobox/Combobox.stories.js +26 -21
  3. package/components/shared/Combobox/Combobox.stories.js.map +1 -1
  4. package/esm/components/shared/Combobox/Combobox.stories.d.ts +3 -2
  5. package/esm/components/shared/Combobox/Combobox.stories.js +28 -24
  6. package/esm/components/shared/Combobox/Combobox.stories.js.map +1 -1
  7. package/esm/hooks/useLocalStorage.d.ts +1 -0
  8. package/esm/hooks/useLocalStorage.js +31 -0
  9. package/esm/hooks/useLocalStorage.js.map +1 -0
  10. package/esm/type.source.d.ts +8 -1
  11. package/esm/use-lunatic/commons/compile-controls.js +22 -14
  12. package/esm/use-lunatic/commons/compile-controls.js.map +1 -1
  13. package/esm/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +1 -1
  14. package/esm/use-lunatic/commons/fill-components/fill-component-expressions.js +5 -2
  15. package/esm/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -1
  16. package/esm/use-lunatic/commons/fill-components/fill-component.spec.js +42 -0
  17. package/esm/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
  18. package/esm/use-lunatic/commons/fill-components/fill-components.d.ts +2 -2
  19. package/esm/use-lunatic/commons/fill-components/fill-components.js +15 -3
  20. package/esm/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
  21. package/esm/use-lunatic/hooks/use-page-has-response.js +1 -1
  22. package/esm/use-lunatic/hooks/use-page-has-response.js.map +1 -1
  23. package/esm/use-lunatic/hooks/useOverview.spec.js +2 -2
  24. package/esm/use-lunatic/hooks/useOverview.spec.js.map +1 -1
  25. package/esm/use-lunatic/props/getComponentTypeProps.js +1 -1
  26. package/esm/use-lunatic/props/getComponentTypeProps.js.map +1 -1
  27. package/esm/utils/number.d.ts +4 -0
  28. package/esm/utils/number.js +12 -0
  29. package/esm/utils/number.js.map +1 -1
  30. package/esm/utils/object.d.ts +10 -0
  31. package/esm/utils/object.js +26 -0
  32. package/esm/utils/object.js.map +1 -1
  33. package/hooks/useLocalStorage.d.ts +1 -0
  34. package/hooks/useLocalStorage.js +34 -0
  35. package/hooks/useLocalStorage.js.map +1 -0
  36. package/package.json +76 -137
  37. package/src/components/shared/Combobox/Combobox.stories.tsx +48 -49
  38. package/src/hooks/useLocalStorage.ts +37 -0
  39. package/src/json.d.ts +16 -0
  40. package/src/stories/accordion/accordion.stories.tsx +21 -0
  41. package/src/stories/behaviour/cleaning/cleaning.stories.tsx +40 -0
  42. package/src/stories/behaviour/controls/controls.stories.tsx +51 -0
  43. package/src/stories/behaviour/disabled/disabled.stories.tsx +29 -0
  44. package/src/stories/behaviour/filter/filter.stories.tsx +34 -0
  45. package/src/stories/behaviour/missing/missing.stories.tsx +31 -0
  46. package/src/stories/behaviour/overview/overview.stories.tsx +61 -0
  47. package/src/stories/{overview/sourceWithHierarchy.json → behaviour/overview/source.json} +1 -1
  48. package/src/stories/{overview → behaviour/overview}/sourceLoop.json +1 -1
  49. package/src/stories/behaviour/performance/performance.stories.tsx +29 -0
  50. package/src/stories/behaviour/resizing/resizing.stories.tsx +34 -0
  51. package/src/stories/behaviour/slots.stories.tsx +34 -0
  52. package/src/stories/checkbox/checkbox.stories.tsx +75 -0
  53. package/src/stories/{checkbox-group/sourceLoop.json → checkbox/sourceGroupLoop.json} +1 -1
  54. package/src/stories/datepicker/datepicker.stories.tsx +21 -0
  55. package/src/stories/declaration/declaration.stories.tsx +27 -0
  56. package/src/stories/dropdown/dropdown.stories.tsx +27 -0
  57. package/src/stories/duration/duration.stories.tsx +27 -0
  58. package/src/stories/filter-description/filter-description.stories.tsx +28 -0
  59. package/src/stories/input/input.stories.tsx +21 -0
  60. package/src/stories/input-number/input-number.stories.tsx +35 -0
  61. package/src/stories/loop/loop.stories.tsx +35 -0
  62. package/src/stories/loop/roster-for-loop.stories.tsx +59 -0
  63. package/src/stories/pairwise/pairwise.stories.tsx +30 -0
  64. package/src/stories/paste.stories.tsx +85 -0
  65. package/src/stories/question/question.stories.tsx +21 -0
  66. package/src/stories/questionnaires/logement/logement.stories.tsx +26 -0
  67. package/src/stories/questionnaires/recensement/recensement.stories.tsx +28 -0
  68. package/src/stories/questionnaires/rp/rp.stories.tsx +21 -0
  69. package/src/stories/questionnaires/simpsons/simpsons.stories.tsx +31 -0
  70. package/src/stories/radio/radio.stories.tsx +53 -0
  71. package/src/stories/roundabout/roundabout.stories.tsx +37 -0
  72. package/src/stories/roundabout/source.json +1 -0
  73. package/src/stories/sequence/sequence.stories.tsx +28 -0
  74. package/src/stories/suggester/source-option-responses.json +1 -1
  75. package/src/stories/suggester/suggester.stories.tsx +68 -0
  76. package/src/stories/summary/source.json +22 -1
  77. package/src/stories/summary/summary.stories.tsx +31 -0
  78. package/src/stories/table/table.stories.tsx +35 -0
  79. package/src/stories/text/text.stories.tsx +38 -0
  80. package/src/stories/textarea/textarea.stories.tsx +21 -0
  81. package/src/stories/utils/Orchestrator.tsx +310 -0
  82. package/src/stories/utils/OrchestratorData.tsx +176 -0
  83. package/src/stories/utils/OrchestratorOverview.tsx +70 -0
  84. package/src/stories/utils/OrchestratorSidebar.tsx +119 -0
  85. package/src/stories/utils/SchemaValidator.tsx +29 -0
  86. package/src/stories/utils/referentiel.ts +9 -0
  87. package/src/type.source.ts +8 -1
  88. package/src/use-lunatic/commons/compile-controls.ts +36 -18
  89. package/src/use-lunatic/commons/fill-components/fill-component-expressions.ts +6 -2
  90. package/src/use-lunatic/commons/fill-components/fill-component.spec.ts +52 -0
  91. package/src/use-lunatic/commons/fill-components/fill-components.ts +19 -3
  92. package/src/use-lunatic/hooks/use-page-has-response.ts +1 -1
  93. package/src/use-lunatic/hooks/useOverview.spec.ts +3 -2
  94. package/src/use-lunatic/props/getComponentTypeProps.ts +2 -1
  95. package/src/use-lunatic/use-lunatic.test.ts +53 -40
  96. package/src/utils/number.ts +13 -0
  97. package/src/utils/object.ts +40 -0
  98. package/tsconfig.build.tsbuildinfo +1 -1
  99. package/type.source.d.ts +8 -1
  100. package/use-lunatic/commons/compile-controls.js +21 -13
  101. package/use-lunatic/commons/compile-controls.js.map +1 -1
  102. package/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +1 -1
  103. package/use-lunatic/commons/fill-components/fill-component-expressions.js +6 -3
  104. package/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -1
  105. package/use-lunatic/commons/fill-components/fill-component.spec.js +42 -0
  106. package/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
  107. package/use-lunatic/commons/fill-components/fill-components.d.ts +2 -2
  108. package/use-lunatic/commons/fill-components/fill-components.js +15 -3
  109. package/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
  110. package/use-lunatic/hooks/use-page-has-response.js +2 -2
  111. package/use-lunatic/hooks/use-page-has-response.js.map +1 -1
  112. package/use-lunatic/hooks/useOverview.spec.js +8 -8
  113. package/use-lunatic/hooks/useOverview.spec.js.map +1 -1
  114. package/use-lunatic/props/getComponentTypeProps.js +1 -1
  115. package/use-lunatic/props/getComponentTypeProps.js.map +1 -1
  116. package/utils/number.d.ts +4 -0
  117. package/utils/number.js +13 -0
  118. package/utils/number.js.map +1 -1
  119. package/utils/object.d.ts +10 -0
  120. package/utils/object.js +30 -0
  121. package/utils/object.js.map +1 -1
  122. package/esm/stories/overview/sourceWithHierarchy.json +0 -5151
  123. package/esm/tests/utils/lunatic.d.ts +0 -15
  124. package/esm/tests/utils/lunatic.js +0 -27
  125. package/esm/tests/utils/lunatic.js.map +0 -1
  126. package/esm/use-lunatic/replace-component-sequence.d.ts +0 -36
  127. package/esm/use-lunatic/replace-component-sequence.js +0 -19
  128. package/esm/use-lunatic/replace-component-sequence.js.map +0 -1
  129. package/esm/use-lunatic/test.utils.d.ts +0 -2
  130. package/esm/use-lunatic/test.utils.js +0 -13
  131. package/esm/use-lunatic/test.utils.js.map +0 -1
  132. package/esm/utils/is-object.d.ts +0 -4
  133. package/esm/utils/is-object.js +0 -7
  134. package/esm/utils/is-object.js.map +0 -1
  135. package/esm/utils/to-number.d.ts +0 -4
  136. package/esm/utils/to-number.js +0 -13
  137. package/esm/utils/to-number.js.map +0 -1
  138. package/src/stories/accordion/accordion.stories.jsx +0 -17
  139. package/src/stories/behaviour/cleaning/cleaning.stories.jsx +0 -69
  140. package/src/stories/behaviour/controls/controls.stories.jsx +0 -81
  141. package/src/stories/behaviour/filter/dataLoop.json +0 -14
  142. package/src/stories/behaviour/filter/filter.stories.jsx +0 -36
  143. package/src/stories/behaviour/missing/missing.stories.jsx +0 -69
  144. package/src/stories/behaviour/others/V2_DeclarationsSimples.json +0 -908
  145. package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +0 -489
  146. package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +0 -3919
  147. package/src/stories/behaviour/others/V2_TCMRallyeGames.json +0 -2760
  148. package/src/stories/behaviour/others/test-dylan.json +0 -538
  149. package/src/stories/behaviour/others/test.stories.jsx +0 -78
  150. package/src/stories/behaviour/paste/source.json +0 -32
  151. package/src/stories/behaviour/paste/test.stories.jsx +0 -62
  152. package/src/stories/behaviour/performance/performance.stories.jsx +0 -26
  153. package/src/stories/behaviour/resizing/resizing.stories.jsx +0 -60
  154. package/src/stories/behaviour/slots.stories.jsx +0 -32
  155. package/src/stories/checkbox-boolean/checkboxBoolean.stories.jsx +0 -17
  156. package/src/stories/checkbox-group/checkbox-group.stories.jsx +0 -77
  157. package/src/stories/checkbox-one/checkboxOne.stories.jsx +0 -53
  158. package/src/stories/date-picker/data.json +0 -3
  159. package/src/stories/date-picker/datepicker.stories.jsx +0 -26
  160. package/src/stories/declaration/data.json +0 -1
  161. package/src/stories/declaration/input.stories.jsx +0 -18
  162. package/src/stories/disabled/data.json +0 -16
  163. package/src/stories/disabled/disabled.stories.jsx +0 -18
  164. package/src/stories/dropdown/data.json +0 -8
  165. package/src/stories/dropdown/dropdown.stories.jsx +0 -25
  166. package/src/stories/duration/duration.stories.jsx +0 -25
  167. package/src/stories/filter-description/filter-description.stories.jsx +0 -37
  168. package/src/stories/input/data.json +0 -1
  169. package/src/stories/input/input.stories.jsx +0 -18
  170. package/src/stories/input-number/input-number.stories.jsx +0 -23
  171. package/src/stories/loop/loop.stories.jsx +0 -29
  172. package/src/stories/loop/roster-for-loop.stories.jsx +0 -46
  173. package/src/stories/markdown/markdown.stories.jsx +0 -20
  174. package/src/stories/overview/data.json +0 -1
  175. package/src/stories/overview/dataLoop.json +0 -93
  176. package/src/stories/overview/overview.stories.jsx +0 -44
  177. package/src/stories/overview/source.json +0 -25
  178. package/src/stories/pairwise/data.json +0 -12
  179. package/src/stories/pairwise/pairwise-links.stories.jsx +0 -48
  180. package/src/stories/question/question.stories.jsx +0 -16
  181. package/src/stories/questionnaires/logement/logement.stories.jsx +0 -59
  182. package/src/stories/questionnaires/recensement/data.json +0 -12
  183. package/src/stories/questionnaires/recensement/recensement.stories.jsx +0 -35
  184. package/src/stories/questionnaires/rp/data.json +0 -5
  185. package/src/stories/questionnaires/rp/rp.stories.jsx +0 -23
  186. package/src/stories/questionnaires/simpsons/simpsons.stories.jsx +0 -246
  187. package/src/stories/radio/radio.stories.jsx +0 -78
  188. package/src/stories/roundabout/data1.json +0 -13
  189. package/src/stories/roundabout/data2.json +0 -16
  190. package/src/stories/roundabout/roundabout.stories.jsx +0 -32
  191. package/src/stories/sequence/sequence.stories.jsx +0 -29
  192. package/src/stories/suggester/suggester.stories.jsx +0 -71
  193. package/src/stories/summary/data.json +0 -16
  194. package/src/stories/summary/summary.stories.jsx +0 -23
  195. package/src/stories/switch/README.md +0 -29
  196. package/src/stories/switch/data-forced.json +0 -40
  197. package/src/stories/switch/source.json +0 -64
  198. package/src/stories/switch/switch.stories.jsx +0 -17
  199. package/src/stories/table/data.json +0 -1
  200. package/src/stories/table/table.stories.jsx +0 -30
  201. package/src/stories/text/data-roster.json +0 -5
  202. package/src/stories/text/text.stories.jsx +0 -20
  203. package/src/stories/textarea/data.json +0 -1
  204. package/src/stories/textarea/textarea.stories.jsx +0 -18
  205. package/src/stories/utils/SchemaValidator.jsx +0 -40
  206. package/src/stories/utils/default-arg-types.js +0 -39
  207. package/src/stories/utils/default-args.js +0 -3
  208. package/src/stories/utils/options.js +0 -19
  209. package/src/stories/utils/orchestrator.jsx +0 -267
  210. package/src/stories/utils/orchestrator.scss +0 -66
  211. package/src/stories/utils/overview.jsx +0 -39
  212. package/src/stories/utils/overview.scss +0 -37
  213. package/src/stories/utils/referentiel.js +0 -7
  214. package/src/tests/utils/e2e.js +0 -91
  215. package/src/tests/utils/lunatic.ts +0 -33
  216. package/src/use-lunatic/replace-component-sequence.ts +0 -25
  217. package/src/use-lunatic/test.utils.ts +0 -17
  218. package/src/utils/is-object.ts +0 -6
  219. package/src/utils/to-number.ts +0 -12
  220. package/stories/overview/sourceWithHierarchy.json +0 -5151
  221. package/tests/utils/lunatic.d.ts +0 -15
  222. package/tests/utils/lunatic.js +0 -31
  223. package/tests/utils/lunatic.js.map +0 -1
  224. package/use-lunatic/replace-component-sequence.d.ts +0 -36
  225. package/use-lunatic/replace-component-sequence.js +0 -22
  226. package/use-lunatic/replace-component-sequence.js.map +0 -1
  227. package/use-lunatic/test.utils.d.ts +0 -2
  228. package/use-lunatic/test.utils.js +0 -17
  229. package/use-lunatic/test.utils.js.map +0 -1
  230. package/utils/is-object.d.ts +0 -4
  231. package/utils/is-object.js +0 -10
  232. package/utils/is-object.js.map +0 -1
  233. package/utils/to-number.d.ts +0 -4
  234. package/utils/to-number.js +0 -16
  235. package/utils/to-number.js.map +0 -1
  236. /package/src/stories/behaviour/cleaning/{loop.json → source-loop-scopes.json} +0 -0
  237. /package/src/stories/behaviour/controls/{boucles-n.json → source-boucles-n.json} +0 -0
  238. /package/src/stories/behaviour/controls/{loop.json → source-loop.json} +0 -0
  239. /package/src/stories/behaviour/controls/{roundabout.json → source-roundabout.json} +0 -0
  240. /package/src/stories/behaviour/controls/{simple-numeric.json → source-simple-numeric.json} +0 -0
  241. /package/src/stories/behaviour/controls/{simple.json → source-simple.json} +0 -0
  242. /package/src/stories/{disabled → behaviour/disabled}/source.json +0 -0
  243. /package/src/stories/{checkbox-boolean → checkbox}/source.json +0 -0
  244. /package/src/stories/{checkbox-group/source.json → checkbox/sourceGroup.json} +0 -0
  245. /package/src/stories/{checkbox-group/sourceCondition.json → checkbox/sourceGroupCondition.json} +0 -0
  246. /package/src/stories/{checkbox-group/sourceDetail.json → checkbox/sourceGroupDetail.json} +0 -0
  247. /package/src/stories/{checkbox-one/source.json → checkbox/sourceOne.json} +0 -0
  248. /package/src/stories/{checkbox-one/sourceDetail.json → checkbox/sourceOneDetail.json} +0 -0
  249. /package/src/stories/{date-picker → datepicker}/source.json +0 -0
  250. /package/src/stories/{markdown/source.json → declaration/sourceMarkdown.json} +0 -0
  251. /package/src/stories/duration/{mois.json → sourceMonths.json} +0 -0
  252. /package/src/stories/duration/{time.json → sourceTime.json} +0 -0
  253. /package/src/stories/filter-description/{source-options.json → sourceOptions.json} +0 -0
  254. /package/src/stories/table/{table-dynamique.json → source-dynamic.json} +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.