@inseefr/lunatic 3.0.0-rc.9 → 3.0.1-rc.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 (1252) hide show
  1. package/README.md +19 -59
  2. package/lib/components/CheckboxBoolean/CheckboxBoolean.d.ts +11 -0
  3. package/lib/components/CheckboxBoolean/CheckboxBoolean.js +18 -64
  4. package/lib/components/CheckboxBoolean/CheckboxBoolean.js.map +1 -0
  5. package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js +37 -71
  6. package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js.map +1 -0
  7. package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  8. package/lib/components/CheckboxGroup/CheckboxGroup.js +25 -49
  9. package/lib/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
  10. package/lib/components/CheckboxGroup/CustomCheckboxGroup.d.ts +10 -0
  11. package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +13 -43
  12. package/lib/components/CheckboxGroup/CustomCheckboxGroup.js.map +1 -0
  13. package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +45 -46
  14. package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js.map +1 -0
  15. package/lib/components/CheckboxOne/CheckboxOne.d.ts +5 -0
  16. package/lib/components/CheckboxOne/CheckboxOne.js +7 -35
  17. package/lib/components/CheckboxOne/CheckboxOne.js.map +1 -0
  18. package/lib/components/CheckboxOne/CheckboxOne.spec.js +27 -53
  19. package/lib/components/CheckboxOne/CheckboxOne.spec.js.map +1 -0
  20. package/lib/components/Datepicker/Datepicker.d.ts +10 -0
  21. package/lib/components/Datepicker/Datepicker.js +60 -155
  22. package/lib/components/Datepicker/Datepicker.js.map +1 -0
  23. package/lib/components/Datepicker/Datepicker.spec.js +70 -87
  24. package/lib/components/Datepicker/Datepicker.spec.js.map +1 -0
  25. package/lib/components/Datepicker/DatepickerField.js +13 -47
  26. package/lib/components/Datepicker/DatepickerField.js.map +1 -0
  27. package/lib/components/Dropdown/Dropdown.d.ts +10 -0
  28. package/lib/components/Dropdown/Dropdown.js +14 -62
  29. package/lib/components/Dropdown/Dropdown.js.map +1 -0
  30. package/lib/components/Dropdown/Dropdown.spec.js +38 -49
  31. package/lib/components/Dropdown/Dropdown.spec.js.map +1 -0
  32. package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js +17 -32
  33. package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js.map +1 -0
  34. package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js +10 -40
  35. package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js.map +1 -0
  36. package/lib/components/Duration/Duration.d.ts +10 -0
  37. package/lib/components/Duration/Duration.js +29 -102
  38. package/lib/components/Duration/Duration.js.map +1 -0
  39. package/lib/components/Duration/durationUtils.js +22 -55
  40. package/lib/components/Duration/durationUtils.js.map +1 -0
  41. package/lib/components/Duration/formatDuration.js +17 -26
  42. package/lib/components/Duration/formatDuration.js.map +1 -0
  43. package/lib/components/Duration/formatDuration.spec.js +16 -38
  44. package/lib/components/Duration/formatDuration.spec.js.map +1 -0
  45. package/lib/components/Duration/getDurationFromValue.js +24 -49
  46. package/lib/components/Duration/getDurationFromValue.js.map +1 -0
  47. package/lib/components/FilterDescription/FilterDescription.js +4 -17
  48. package/lib/components/FilterDescription/FilterDescription.js.map +1 -0
  49. package/lib/components/FilterDescription/FilterDescription.spec.js +16 -21
  50. package/lib/components/FilterDescription/FilterDescription.spec.js.map +1 -0
  51. package/lib/components/Input/Input.d.ts +10 -0
  52. package/lib/components/Input/Input.js +14 -78
  53. package/lib/components/Input/Input.js.map +1 -0
  54. package/lib/components/Input/Input.spec.js +51 -83
  55. package/lib/components/Input/Input.spec.js.map +1 -0
  56. package/lib/components/InputNumber/InputNumber.d.ts +10 -0
  57. package/lib/components/InputNumber/InputNumber.js +14 -79
  58. package/lib/components/InputNumber/InputNumber.js.map +1 -0
  59. package/lib/components/InputNumber/InputNumber.spec.js +75 -112
  60. package/lib/components/InputNumber/InputNumber.spec.js.map +1 -0
  61. package/lib/components/InputNumber/InputNumberThousand.js +19 -55
  62. package/lib/components/InputNumber/InputNumberThousand.js.map +1 -0
  63. package/lib/components/Loop/Loop.d.ts +15 -0
  64. package/lib/components/Loop/Loop.js +49 -125
  65. package/lib/components/Loop/Loop.js.map +1 -0
  66. package/lib/components/Loop/constant.js +7 -7
  67. package/lib/components/Loop/constant.js.map +1 -0
  68. package/lib/components/LunaticComponents.d.ts +22 -0
  69. package/lib/components/LunaticComponents.js +72 -119
  70. package/lib/components/LunaticComponents.js.map +1 -0
  71. package/lib/components/PairwiseLinks/PairwiseLinks.js +42 -54
  72. package/lib/components/PairwiseLinks/PairwiseLinks.js.map +1 -0
  73. package/lib/components/Question/Question.js +16 -50
  74. package/lib/components/Question/Question.js.map +1 -0
  75. package/lib/components/Radio/Radio.d.ts +13 -0
  76. package/lib/components/Radio/Radio.js +8 -39
  77. package/lib/components/Radio/Radio.js.map +1 -0
  78. package/lib/components/RosterForLoop/RosterForLoop.js +53 -131
  79. package/lib/components/RosterForLoop/RosterForLoop.js.map +1 -0
  80. package/lib/components/RosterForLoop/RosterForLoop.spec.js +27 -45
  81. package/lib/components/RosterForLoop/RosterForLoop.spec.js.map +1 -0
  82. package/lib/components/Roundabout/CustomRoundabout.js +19 -66
  83. package/lib/components/Roundabout/CustomRoundabout.js.map +1 -0
  84. package/lib/components/Roundabout/Roundabout.js +15 -32
  85. package/lib/components/Roundabout/Roundabout.js.map +1 -0
  86. package/lib/components/Roundabout/RoundaboutItButton.js +37 -72
  87. package/lib/components/Roundabout/RoundaboutItButton.js.map +1 -0
  88. package/lib/components/Roundabout/RoundaboutItButton.spec.js +48 -101
  89. package/lib/components/Roundabout/RoundaboutItButton.spec.js.map +1 -0
  90. package/lib/components/Roundabout/RoundaboutRedirect.js +11 -21
  91. package/lib/components/Roundabout/RoundaboutRedirect.js.map +1 -0
  92. package/lib/components/Roundabout/extra.js +9 -44
  93. package/lib/components/Roundabout/extra.js.map +1 -0
  94. package/lib/components/Roundabout/redirect.spec.js +13 -17
  95. package/lib/components/Roundabout/redirect.spec.js.map +1 -0
  96. package/lib/components/Roundabout/roundabout.spec.js +49 -70
  97. package/lib/components/Roundabout/roundabout.spec.js.map +1 -0
  98. package/lib/components/Sequence/Sequence.d.ts +4 -0
  99. package/lib/components/Sequence/Sequence.js +8 -31
  100. package/lib/components/Sequence/Sequence.js.map +1 -0
  101. package/lib/components/Subsequence/Subsequence.d.ts +4 -0
  102. package/lib/components/Subsequence/Subsequence.js +7 -26
  103. package/lib/components/Subsequence/Subsequence.js.map +1 -0
  104. package/lib/components/Subsequence/Subsequence.spec.js +42 -59
  105. package/lib/components/Subsequence/Subsequence.spec.js.map +1 -0
  106. package/lib/components/Suggester/CustomSuggester.d.ts +31 -0
  107. package/lib/components/Suggester/CustomSuggester.js +15 -119
  108. package/lib/components/Suggester/CustomSuggester.js.map +1 -0
  109. package/lib/components/Suggester/Suggester.d.ts +2 -0
  110. package/lib/components/Suggester/Suggester.js +99 -136
  111. package/lib/components/Suggester/Suggester.js.map +1 -0
  112. package/lib/components/Suggester/SuggesterNotification.d.ts +9 -0
  113. package/lib/components/Suggester/SuggesterNotification.js +15 -59
  114. package/lib/components/Suggester/SuggesterNotification.js.map +1 -0
  115. package/lib/components/Suggester/SuggesterType.d.ts +5 -0
  116. package/lib/components/Suggester/SuggesterType.js +2 -5
  117. package/lib/components/Suggester/SuggesterType.js.map +1 -0
  118. package/lib/components/Suggester/useSuggestions.d.ts +17 -0
  119. package/lib/components/Suggester/useSuggestions.js +85 -0
  120. package/lib/components/Suggester/useSuggestions.js.map +1 -0
  121. package/lib/components/Summary/Summary.js +55 -105
  122. package/lib/components/Summary/Summary.js.map +1 -0
  123. package/lib/components/Switch/Switch.d.ts +20 -0
  124. package/lib/components/Switch/Switch.js +29 -105
  125. package/lib/components/Switch/Switch.js.map +1 -0
  126. package/lib/components/Table/Table.js +12 -65
  127. package/lib/components/Table/Table.js.map +1 -0
  128. package/lib/components/Text/Text.d.ts +3 -0
  129. package/lib/components/Text/Text.js +4 -0
  130. package/lib/components/Text/Text.js.map +1 -0
  131. package/lib/components/Textarea/Textarea.d.ts +10 -0
  132. package/lib/components/Textarea/Textarea.js +13 -78
  133. package/lib/components/Textarea/Textarea.js.map +1 -0
  134. package/lib/components/Textarea/Textarea.spec.js +31 -46
  135. package/lib/components/Textarea/Textarea.spec.js.map +1 -0
  136. package/lib/components/library.d.ts +106 -0
  137. package/lib/components/library.js +49 -52
  138. package/lib/components/library.js.map +1 -0
  139. package/lib/components/shared/Button/Button.d.ts +13 -0
  140. package/lib/components/shared/Button/Button.js +13 -44
  141. package/lib/components/shared/Button/Button.js.map +1 -0
  142. package/lib/components/shared/Button/Button.spec.js +51 -85
  143. package/lib/components/shared/Button/Button.spec.js.map +1 -0
  144. package/lib/components/shared/Button/IconButton.js +7 -32
  145. package/lib/components/shared/Button/IconButton.js.map +1 -0
  146. package/lib/components/shared/Button/IconButton.spec.js +53 -101
  147. package/lib/components/shared/Button/IconButton.spec.js.map +1 -0
  148. package/lib/components/shared/Checkbox/CheckboxOption.d.ts +15 -0
  149. package/lib/components/shared/Checkbox/CheckboxOption.js +24 -69
  150. package/lib/components/shared/Checkbox/CheckboxOption.js.map +1 -0
  151. package/lib/components/shared/Checkbox/CheckboxOption.spec.js +51 -68
  152. package/lib/components/shared/Checkbox/CheckboxOption.spec.js.map +1 -0
  153. package/lib/components/shared/Checkbox/getShortcutKey.js +3 -10
  154. package/lib/components/shared/Checkbox/getShortcutKey.js.map +1 -0
  155. package/lib/components/shared/Combobox/Combobox.d.ts +23 -0
  156. package/lib/components/shared/Combobox/Combobox.js +87 -199
  157. package/lib/components/shared/Combobox/Combobox.js.map +1 -0
  158. package/lib/components/shared/Combobox/Combobox.stories.js +42 -105
  159. package/lib/components/shared/Combobox/Combobox.stories.js.map +1 -0
  160. package/lib/components/shared/Combobox/ComboboxContainer.js +6 -27
  161. package/lib/components/shared/Combobox/ComboboxContainer.js.map +1 -0
  162. package/lib/components/shared/Combobox/ComboboxContainer.spec.js +24 -43
  163. package/lib/components/shared/Combobox/ComboboxContainer.spec.js.map +1 -0
  164. package/lib/components/shared/Combobox/ComboboxContent.js +33 -62
  165. package/lib/components/shared/Combobox/ComboboxContent.js.map +1 -0
  166. package/lib/components/shared/Combobox/ComboboxContentBox.js +8 -22
  167. package/lib/components/shared/Combobox/ComboboxContentBox.js.map +1 -0
  168. package/lib/components/shared/Combobox/ComboboxType.d.ts +51 -0
  169. package/lib/components/shared/Combobox/ComboboxType.js +2 -5
  170. package/lib/components/shared/Combobox/ComboboxType.js.map +1 -0
  171. package/lib/components/shared/Combobox/Panel/ComboboxOption.js +14 -41
  172. package/lib/components/shared/Combobox/Panel/ComboboxOption.js.map +1 -0
  173. package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js +33 -63
  174. package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js.map +1 -0
  175. package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js +30 -50
  176. package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js.map +1 -0
  177. package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js +18 -26
  178. package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js.map +1 -0
  179. package/lib/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
  180. package/lib/components/shared/Combobox/Panel/ComboboxPanel.js +24 -41
  181. package/lib/components/shared/Combobox/Panel/ComboboxPanel.js.map +1 -0
  182. package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js +55 -108
  183. package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js.map +1 -0
  184. package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +9 -26
  185. package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js.map +1 -0
  186. package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js +31 -57
  187. package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js.map +1 -0
  188. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.d.ts +9 -0
  189. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +22 -43
  190. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js.map +1 -0
  191. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js +52 -121
  192. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js.map +1 -0
  193. package/lib/components/shared/Combobox/Selection/ComboboxInput.js +20 -56
  194. package/lib/components/shared/Combobox/Selection/ComboboxInput.js.map +1 -0
  195. package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +28 -43
  196. package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js.map +1 -0
  197. package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js +26 -40
  198. package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js.map +1 -0
  199. package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +14 -64
  200. package/lib/components/shared/Combobox/Selection/ComboboxSelection.js.map +1 -0
  201. package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js +36 -68
  202. package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js.map +1 -0
  203. package/lib/components/shared/Combobox/constants.js +10 -15
  204. package/lib/components/shared/Combobox/constants.js.map +1 -0
  205. package/lib/components/shared/Combobox/index.js +2 -1
  206. package/lib/components/shared/Combobox/index.js.map +1 -0
  207. package/lib/components/shared/ComponentErrors/ComponentErrors.js +19 -45
  208. package/lib/components/shared/ComponentErrors/ComponentErrors.js.map +1 -0
  209. package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +40 -44
  210. package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js.map +1 -0
  211. package/lib/components/shared/ComponentWrapper.d.ts +25 -0
  212. package/lib/components/shared/ComponentWrapper.js +14 -53
  213. package/lib/components/shared/ComponentWrapper.js.map +1 -0
  214. package/lib/components/shared/Declarations/Declarations.js +13 -45
  215. package/lib/components/shared/Declarations/Declarations.js.map +1 -0
  216. package/lib/components/shared/Declarations/Declarations.spec.js +54 -77
  217. package/lib/components/shared/Declarations/Declarations.spec.js.map +1 -0
  218. package/lib/components/shared/Fieldset/Fieldset.js +25 -39
  219. package/lib/components/shared/Fieldset/Fieldset.js.map +1 -0
  220. package/lib/components/shared/Fieldset/Fieldset.spec.js +25 -37
  221. package/lib/components/shared/Fieldset/Fieldset.spec.js.map +1 -0
  222. package/lib/components/shared/HOC/slottableComponent.d.ts +107 -0
  223. package/lib/components/shared/HOC/slottableComponent.js +22 -45
  224. package/lib/components/shared/HOC/slottableComponent.js.map +1 -0
  225. package/lib/components/shared/Icons/checkbox-checked-icon.js +7 -35
  226. package/lib/components/shared/Icons/checkbox-checked-icon.js.map +1 -0
  227. package/lib/components/shared/Icons/checkbox-disabled-icon.d.ts +2 -0
  228. package/lib/components/shared/Icons/checkbox-disabled-icon.js +7 -0
  229. package/lib/components/shared/Icons/checkbox-disabled-icon.js.map +1 -0
  230. package/lib/components/shared/Icons/checkbox-unchecked-icon.js +7 -35
  231. package/lib/components/shared/Icons/checkbox-unchecked-icon.js.map +1 -0
  232. package/lib/components/shared/Icons/closed-icon.js +7 -32
  233. package/lib/components/shared/Icons/closed-icon.js.map +1 -0
  234. package/lib/components/shared/Icons/cross-icon.js +7 -32
  235. package/lib/components/shared/Icons/cross-icon.js.map +1 -0
  236. package/lib/components/shared/Icons/icon-props.js +2 -5
  237. package/lib/components/shared/Icons/icon-props.js.map +1 -0
  238. package/lib/components/shared/Icons/index.js +11 -75
  239. package/lib/components/shared/Icons/index.js.map +1 -0
  240. package/lib/components/shared/Icons/load-icon.js +7 -32
  241. package/lib/components/shared/Icons/load-icon.js.map +1 -0
  242. package/lib/components/shared/Icons/lunatic-icon.js +7 -17
  243. package/lib/components/shared/Icons/lunatic-icon.js.map +1 -0
  244. package/lib/components/shared/Icons/network-icon.js +7 -32
  245. package/lib/components/shared/Icons/network-icon.js.map +1 -0
  246. package/lib/components/shared/Icons/on-drag-icon.js +7 -32
  247. package/lib/components/shared/Icons/on-drag-icon.js.map +1 -0
  248. package/lib/components/shared/Icons/opened-icon.js +7 -32
  249. package/lib/components/shared/Icons/opened-icon.js.map +1 -0
  250. package/lib/components/shared/Icons/radio-checked-icon.js +7 -36
  251. package/lib/components/shared/Icons/radio-checked-icon.js.map +1 -0
  252. package/lib/components/shared/Icons/radio-unchecked-icon.js +7 -35
  253. package/lib/components/shared/Icons/radio-unchecked-icon.js.map +1 -0
  254. package/lib/components/shared/Label/Label.js +12 -31
  255. package/lib/components/shared/Label/Label.js.map +1 -0
  256. package/lib/components/shared/Label/Label.spec.js +19 -45
  257. package/lib/components/shared/Label/Label.spec.js.map +1 -0
  258. package/lib/components/shared/LabelDescription.js +11 -21
  259. package/lib/components/shared/LabelDescription.js.map +1 -0
  260. package/lib/components/shared/MDLabel/MDLabel.d.ts +5 -0
  261. package/lib/components/shared/MDLabel/MDLabel.js +19 -44
  262. package/lib/components/shared/MDLabel/MDLabel.js.map +1 -0
  263. package/lib/components/shared/MDLabel/MDLabel.spec.js +105 -101
  264. package/lib/components/shared/MDLabel/MDLabel.spec.js.map +1 -0
  265. package/lib/components/shared/MDLabel/MarkdownLink.d.ts +8 -0
  266. package/lib/components/shared/MDLabel/MarkdownLink.js +20 -0
  267. package/lib/components/shared/MDLabel/MarkdownLink.js.map +1 -0
  268. package/lib/components/shared/MDLabel/RouterLink.js +6 -26
  269. package/lib/components/shared/MDLabel/RouterLink.js.map +1 -0
  270. package/lib/components/shared/MDLabel/generateUniqueId.js +2 -1
  271. package/lib/components/shared/MDLabel/generateUniqueId.js.map +1 -0
  272. package/lib/components/shared/Missing/Missing.d.ts +14 -0
  273. package/lib/components/shared/Missing/Missing.js +48 -81
  274. package/lib/components/shared/Missing/Missing.js.map +1 -0
  275. package/lib/components/shared/Missing/Missing.spec.js +43 -79
  276. package/lib/components/shared/Missing/Missing.spec.js.map +1 -0
  277. package/lib/components/shared/ModalControls/ModalControls.d.ts +10 -0
  278. package/lib/components/shared/ModalControls/ModalControls.js +27 -81
  279. package/lib/components/shared/ModalControls/ModalControls.js.map +1 -0
  280. package/lib/components/shared/ModalControls/ModalControls.spec.js +61 -69
  281. package/lib/components/shared/ModalControls/ModalControls.spec.js.map +1 -0
  282. package/lib/components/shared/Notification.js +8 -28
  283. package/lib/components/shared/Notification.js.map +1 -0
  284. package/lib/components/shared/Radio/RadioGroup.d.ts +9 -0
  285. package/lib/components/shared/Radio/RadioGroup.js +19 -63
  286. package/lib/components/shared/Radio/RadioGroup.js.map +1 -0
  287. package/lib/components/shared/Radio/RadioOption.js +34 -113
  288. package/lib/components/shared/Radio/RadioOption.js.map +1 -0
  289. package/lib/components/shared/Radio/RadioOption.spec.js +45 -86
  290. package/lib/components/shared/Radio/RadioOption.spec.js.map +1 -0
  291. package/lib/components/shared/Table/Table.js +8 -21
  292. package/lib/components/shared/Table/Table.js.map +1 -0
  293. package/lib/components/shared/Table/Table.spec.js +15 -23
  294. package/lib/components/shared/Table/Table.spec.js.map +1 -0
  295. package/lib/components/shared/Table/TableHeader.d.ts +2 -0
  296. package/lib/components/shared/Table/TableHeader.js +14 -38
  297. package/lib/components/shared/Table/TableHeader.js.map +1 -0
  298. package/lib/components/shared/Table/Tbody.d.ts +6 -0
  299. package/lib/components/shared/Table/Tbody.js +7 -20
  300. package/lib/components/shared/Table/Tbody.js.map +1 -0
  301. package/lib/components/shared/Table/Tbody.spec.js +22 -32
  302. package/lib/components/shared/Table/Tbody.spec.js.map +1 -0
  303. package/lib/components/shared/Table/Td.d.ts +10 -0
  304. package/lib/components/shared/Table/Td.js +7 -26
  305. package/lib/components/shared/Table/Td.js.map +1 -0
  306. package/lib/components/shared/Table/Td.spec.js +20 -40
  307. package/lib/components/shared/Table/Td.spec.js.map +1 -0
  308. package/lib/components/shared/Table/Th.d.ts +10 -0
  309. package/lib/components/shared/Table/Th.js +7 -25
  310. package/lib/components/shared/Table/Th.js.map +1 -0
  311. package/lib/components/shared/Table/Th.spec.js +25 -44
  312. package/lib/components/shared/Table/Th.spec.js.map +1 -0
  313. package/lib/components/shared/Table/Thead.d.ts +6 -0
  314. package/lib/components/shared/Table/Thead.js +8 -20
  315. package/lib/components/shared/Table/Thead.js.map +1 -0
  316. package/lib/components/shared/Table/Thead.spec.js +12 -29
  317. package/lib/components/shared/Table/Thead.spec.js.map +1 -0
  318. package/lib/components/shared/Table/Tr.d.ts +7 -0
  319. package/lib/components/shared/Table/Tr.js +7 -21
  320. package/lib/components/shared/Table/Tr.js.map +1 -0
  321. package/lib/components/shared/Table/Tr.spec.js +19 -39
  322. package/lib/components/shared/Table/Tr.spec.js.map +1 -0
  323. package/lib/components/shared/Table/index.js +8 -54
  324. package/lib/components/shared/Table/index.js.map +1 -0
  325. package/lib/components/type.d.ts +296 -0
  326. package/lib/components/type.js +2 -5
  327. package/lib/components/type.js.map +1 -0
  328. package/lib/constants/component-types.js +2 -7
  329. package/lib/constants/component-types.js.map +1 -0
  330. package/lib/constants/declarations.js +10 -18
  331. package/lib/constants/declarations.js.map +1 -0
  332. package/lib/constants/event-types.js +11 -17
  333. package/lib/constants/event-types.js.map +1 -0
  334. package/lib/constants/index.js +6 -60
  335. package/lib/constants/index.js.map +1 -0
  336. package/lib/constants/indexedDBStore.js +17 -22
  337. package/lib/constants/indexedDBStore.js.map +1 -0
  338. package/lib/constants/supported-preferences.js +9 -11
  339. package/lib/constants/supported-preferences.js.map +1 -0
  340. package/lib/constants/value-types.js +6 -11
  341. package/lib/constants/value-types.js.map +1 -0
  342. package/lib/constants/variable-types.js +4 -9
  343. package/lib/constants/variable-types.js.map +1 -0
  344. package/lib/hooks/use-auto-focus.js +16 -23
  345. package/lib/hooks/use-auto-focus.js.map +1 -0
  346. package/lib/hooks/use-track-changes.d.ts +17 -0
  347. package/lib/hooks/use-track-changes.js +37 -46
  348. package/lib/hooks/use-track-changes.js.map +1 -0
  349. package/lib/hooks/use-why-render.js +10 -16
  350. package/lib/hooks/use-why-render.js.map +1 -0
  351. package/lib/hooks/useDebounce.d.ts +4 -0
  352. package/lib/hooks/useDebounce.js +24 -0
  353. package/lib/hooks/useDebounce.js.map +1 -0
  354. package/lib/hooks/useDocumentEvent.js +16 -21
  355. package/lib/hooks/useDocumentEvent.js.map +1 -0
  356. package/lib/hooks/useKeyboardKey.d.ts +4 -0
  357. package/lib/hooks/useKeyboardKey.js +25 -0
  358. package/lib/hooks/useKeyboardKey.js.map +1 -0
  359. package/lib/hooks/useListKeyboardHandler.js +15 -21
  360. package/lib/hooks/useListKeyboardHandler.js.map +1 -0
  361. package/lib/hooks/useRefSync.js +10 -0
  362. package/lib/hooks/useRefSync.js.map +1 -0
  363. package/lib/i18n/build-dictionary.js +17 -35
  364. package/lib/i18n/build-dictionary.js.map +1 -0
  365. package/lib/i18n/dictionary.d.ts +57 -0
  366. package/lib/i18n/dictionary.js +26 -36
  367. package/lib/i18n/dictionary.js.map +1 -0
  368. package/lib/i18n/index.d.ts +7 -0
  369. package/lib/i18n/index.js +13 -26
  370. package/lib/i18n/index.js.map +1 -0
  371. package/lib/i18n/inputNumberProps.js +6 -17
  372. package/lib/i18n/inputNumberProps.js.map +1 -0
  373. package/lib/index.d.ts +13 -0
  374. package/lib/index.js +10 -41
  375. package/lib/index.js.map +1 -0
  376. package/lib/main.css +77 -28
  377. package/lib/main.css.map +1 -1
  378. package/lib/tests/setup.d.ts +1 -0
  379. package/lib/tests/setup.js +18 -0
  380. package/lib/tests/setup.js.map +1 -0
  381. package/lib/tests/utils/lunatic.d.ts +19 -0
  382. package/lib/tests/utils/lunatic.js +31 -0
  383. package/lib/tests/utils/lunatic.js.map +1 -0
  384. package/lib/tests/utils/timer.d.ts +1 -0
  385. package/lib/tests/utils/timer.js +4 -0
  386. package/lib/tests/utils/timer.js.map +1 -0
  387. package/lib/type.source.d.ts +382 -0
  388. package/lib/type.source.js +8 -0
  389. package/lib/type.source.js.map +1 -0
  390. package/lib/type.utils.js +2 -5
  391. package/lib/type.utils.js.map +1 -0
  392. package/lib/use-lunatic/actions.d.ts +49 -0
  393. package/lib/use-lunatic/actions.js +21 -47
  394. package/lib/use-lunatic/actions.js.map +1 -0
  395. package/lib/use-lunatic/commons/check-loops.d.ts +30 -0
  396. package/lib/use-lunatic/commons/check-loops.js +55 -90
  397. package/lib/use-lunatic/commons/check-loops.js.map +1 -0
  398. package/lib/use-lunatic/commons/check-pager.d.ts +5 -0
  399. package/lib/use-lunatic/commons/check-pager.js +14 -20
  400. package/lib/use-lunatic/commons/check-pager.js.map +1 -0
  401. package/lib/use-lunatic/commons/compile-controls.d.ts +9 -0
  402. package/lib/use-lunatic/commons/compile-controls.js +117 -143
  403. package/lib/use-lunatic/commons/compile-controls.js.map +1 -0
  404. package/lib/use-lunatic/commons/component.js +19 -19
  405. package/lib/use-lunatic/commons/component.js.map +1 -0
  406. package/lib/use-lunatic/commons/compose.d.ts +3 -0
  407. package/lib/use-lunatic/commons/compose.js +6 -18
  408. package/lib/use-lunatic/commons/compose.js.map +1 -0
  409. package/lib/use-lunatic/commons/create-map-pages.d.ts +6 -0
  410. package/lib/use-lunatic/commons/create-map-pages.js +40 -62
  411. package/lib/use-lunatic/commons/create-map-pages.js.map +1 -0
  412. package/lib/use-lunatic/commons/execute-condition-filter.d.ts +3 -0
  413. package/lib/use-lunatic/commons/execute-condition-filter.js +9 -19
  414. package/lib/use-lunatic/commons/execute-condition-filter.js.map +1 -0
  415. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +34 -0
  416. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +129 -110
  417. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -0
  418. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +81 -38
  419. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +1 -0
  420. package/lib/use-lunatic/commons/fill-components/fill-components.d.ts +25 -0
  421. package/lib/use-lunatic/commons/fill-components/fill-components.js +31 -47
  422. package/lib/use-lunatic/commons/fill-components/fill-components.js.map +1 -0
  423. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +12 -21
  424. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js.map +1 -0
  425. package/lib/use-lunatic/commons/get-components-from-state.d.ts +5 -0
  426. package/lib/use-lunatic/commons/get-components-from-state.js +16 -40
  427. package/lib/use-lunatic/commons/get-components-from-state.js.map +1 -0
  428. package/lib/use-lunatic/commons/index.d.ts +6 -0
  429. package/lib/use-lunatic/commons/index.js +7 -81
  430. package/lib/use-lunatic/commons/index.js.map +1 -0
  431. package/lib/use-lunatic/commons/is-First-last-page.d.ts +6 -0
  432. package/lib/use-lunatic/commons/is-First-last-page.js +6 -15
  433. package/lib/use-lunatic/commons/is-First-last-page.js.map +1 -0
  434. package/lib/use-lunatic/commons/is-paginated-loop.js +3 -8
  435. package/lib/use-lunatic/commons/is-paginated-loop.js.map +1 -0
  436. package/lib/use-lunatic/commons/is-roundabout.js +5 -10
  437. package/lib/use-lunatic/commons/is-roundabout.js.map +1 -0
  438. package/lib/use-lunatic/commons/page-navigation.d.ts +7 -0
  439. package/lib/use-lunatic/commons/page-navigation.js +87 -103
  440. package/lib/use-lunatic/commons/page-navigation.js.map +1 -0
  441. package/lib/use-lunatic/commons/page-navigation.spec.js +134 -127
  442. package/lib/use-lunatic/commons/page-navigation.spec.js.map +1 -0
  443. package/lib/use-lunatic/commons/page-tag.d.ts +23 -0
  444. package/lib/use-lunatic/commons/page-tag.js +60 -65
  445. package/lib/use-lunatic/commons/page-tag.js.map +1 -0
  446. package/lib/use-lunatic/commons/page-tag.spec.js +38 -0
  447. package/lib/use-lunatic/commons/page-tag.spec.js.map +1 -0
  448. package/lib/use-lunatic/commons/page.d.ts +11 -0
  449. package/lib/use-lunatic/commons/page.js +25 -41
  450. package/lib/use-lunatic/commons/page.js.map +1 -0
  451. package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +7 -0
  452. package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +44 -50
  453. package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -0
  454. package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +7 -0
  455. package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +21 -42
  456. package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js.map +1 -0
  457. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +7 -0
  458. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +51 -74
  459. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -0
  460. package/lib/use-lunatic/commons/variables/get-questionnaire-data.d.ts +3 -0
  461. package/lib/use-lunatic/commons/variables/get-questionnaire-data.js +51 -68
  462. package/lib/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -0
  463. package/lib/use-lunatic/commons/variables/lunatic-variables-store.d.ts +88 -0
  464. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +284 -364
  465. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -0
  466. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +354 -382
  467. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -0
  468. package/lib/use-lunatic/hooks/use-loop-variables.d.ts +5 -0
  469. package/lib/use-lunatic/hooks/use-loop-variables.js +14 -23
  470. package/lib/use-lunatic/hooks/use-loop-variables.js.map +1 -0
  471. package/lib/use-lunatic/hooks/use-page-has-response.d.ts +6 -0
  472. package/lib/use-lunatic/hooks/use-page-has-response.js +66 -107
  473. package/lib/use-lunatic/hooks/use-page-has-response.js.map +1 -0
  474. package/lib/use-lunatic/hooks/useOverview.d.ts +16 -0
  475. package/lib/use-lunatic/hooks/useOverview.js +91 -0
  476. package/lib/use-lunatic/hooks/useOverview.js.map +1 -0
  477. package/lib/use-lunatic/index.js +2 -13
  478. package/lib/use-lunatic/index.js.map +1 -0
  479. package/lib/use-lunatic/lunatic-context.js +38 -66
  480. package/lib/use-lunatic/lunatic-context.js.map +1 -0
  481. package/lib/use-lunatic/props/getComponentTypeProps.d.ts +314 -0
  482. package/lib/use-lunatic/props/getComponentTypeProps.js +164 -0
  483. package/lib/use-lunatic/props/getComponentTypeProps.js.map +1 -0
  484. package/lib/use-lunatic/props/propIterations.d.ts +7 -0
  485. package/lib/use-lunatic/props/propIterations.js +26 -0
  486. package/lib/use-lunatic/props/propIterations.js.map +1 -0
  487. package/lib/use-lunatic/props/propMissingResponse.d.ts +9 -0
  488. package/lib/use-lunatic/props/propMissingResponse.js +13 -0
  489. package/lib/use-lunatic/props/propMissingResponse.js.map +1 -0
  490. package/lib/use-lunatic/props/propValue.d.ts +6 -0
  491. package/lib/use-lunatic/props/propValue.js +28 -0
  492. package/lib/use-lunatic/props/propValue.js.map +1 -0
  493. package/lib/use-lunatic/props/propValue.spec.js +54 -0
  494. package/lib/use-lunatic/props/propValue.spec.js.map +1 -0
  495. package/lib/use-lunatic/reducer/commons/auto-explore-loop.d.ts +5 -0
  496. package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +42 -52
  497. package/lib/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -0
  498. package/lib/use-lunatic/reducer/commons/index.js +3 -28
  499. package/lib/use-lunatic/reducer/commons/index.js.map +1 -0
  500. package/lib/use-lunatic/reducer/commons/resize-array-variable.js +16 -26
  501. package/lib/use-lunatic/reducer/commons/resize-array-variable.js.map +1 -0
  502. package/lib/use-lunatic/reducer/commons/validate-condition-filter.d.ts +6 -0
  503. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +11 -28
  504. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js.map +1 -0
  505. package/lib/use-lunatic/reducer/controls/check-base-control.d.ts +2 -0
  506. package/lib/use-lunatic/reducer/controls/check-base-control.js +35 -39
  507. package/lib/use-lunatic/reducer/controls/check-base-control.js.map +1 -0
  508. package/lib/use-lunatic/reducer/controls/check-roundabout-control.d.ts +9 -0
  509. package/lib/use-lunatic/reducer/controls/check-roundabout-control.js +16 -46
  510. package/lib/use-lunatic/reducer/controls/check-roundabout-control.js.map +1 -0
  511. package/lib/use-lunatic/reducer/overview/overviewOnInit.d.ts +6 -0
  512. package/lib/use-lunatic/reducer/overview/overviewOnInit.js +49 -0
  513. package/lib/use-lunatic/reducer/overview/overviewOnInit.js.map +1 -0
  514. package/lib/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -0
  515. package/lib/use-lunatic/reducer/reduce-go-next-page.js +32 -52
  516. package/lib/use-lunatic/reducer/reduce-go-next-page.js.map +1 -0
  517. package/lib/use-lunatic/reducer/reduce-go-previous-page.d.ts +2 -0
  518. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +28 -46
  519. package/lib/use-lunatic/reducer/reduce-go-previous-page.js.map +1 -0
  520. package/lib/use-lunatic/reducer/reduce-go-to-page.d.ts +3 -0
  521. package/lib/use-lunatic/reducer/reduce-go-to-page.js +52 -68
  522. package/lib/use-lunatic/reducer/reduce-go-to-page.js.map +1 -0
  523. package/lib/use-lunatic/reducer/reduce-handle-changes.d.ts +6 -0
  524. package/lib/use-lunatic/reducer/reduce-handle-changes.js +24 -0
  525. package/lib/use-lunatic/reducer/reduce-handle-changes.js.map +1 -0
  526. package/lib/use-lunatic/reducer/reducer.d.ts +3 -0
  527. package/lib/use-lunatic/reducer/reducer.js +19 -35
  528. package/lib/use-lunatic/reducer/reducer.js.map +1 -0
  529. package/lib/use-lunatic/reducer/reducerInitializer.d.ts +11 -0
  530. package/lib/use-lunatic/reducer/reducerInitializer.js +121 -0
  531. package/lib/use-lunatic/reducer/reducerInitializer.js.map +1 -0
  532. package/lib/use-lunatic/replace-component-sequence.d.ts +9 -0
  533. package/lib/use-lunatic/replace-component-sequence.js +12 -23
  534. package/lib/use-lunatic/replace-component-sequence.js.map +1 -0
  535. package/lib/use-lunatic/type.d.ts +165 -0
  536. package/lib/use-lunatic/type.js +2 -5
  537. package/lib/use-lunatic/type.js.map +1 -0
  538. package/lib/use-lunatic/use-lunatic.d.ts +56 -0
  539. package/lib/use-lunatic/use-lunatic.js +135 -214
  540. package/lib/use-lunatic/use-lunatic.js.map +1 -0
  541. package/lib/utils/array.d.ts +28 -0
  542. package/lib/utils/array.js +63 -102
  543. package/lib/utils/array.js.map +1 -0
  544. package/lib/utils/array.spec.js +39 -32
  545. package/lib/utils/array.spec.js.map +1 -0
  546. package/lib/utils/constants/alphabet.js +2 -7
  547. package/lib/utils/constants/alphabet.js.map +1 -0
  548. package/lib/utils/constants/features.d.ts +4 -0
  549. package/lib/utils/constants/features.js +5 -9
  550. package/lib/utils/constants/features.js.map +1 -0
  551. package/lib/utils/constants/index.js +6 -60
  552. package/lib/utils/constants/index.js.map +1 -0
  553. package/lib/utils/constants/links.js +3 -8
  554. package/lib/utils/constants/links.js.map +1 -0
  555. package/lib/utils/constants/missing.js +3 -8
  556. package/lib/utils/constants/missing.js.map +1 -0
  557. package/lib/utils/constants/variable-status.js +6 -11
  558. package/lib/utils/constants/variable-status.js.map +1 -0
  559. package/lib/utils/constants/variable-types.js +2 -7
  560. package/lib/utils/constants/variable-types.js.map +1 -0
  561. package/lib/utils/dom.js +16 -20
  562. package/lib/utils/dom.js.map +1 -0
  563. package/lib/utils/env.js +13 -17
  564. package/lib/utils/env.js.map +1 -0
  565. package/lib/utils/function.d.ts +5 -0
  566. package/lib/utils/function.js +20 -7
  567. package/lib/utils/function.js.map +1 -0
  568. package/lib/utils/is-element.js +5 -9
  569. package/lib/utils/is-element.js.map +1 -0
  570. package/lib/utils/is-object.js +4 -10
  571. package/lib/utils/is-object.js.map +1 -0
  572. package/lib/utils/logger.js +11 -39
  573. package/lib/utils/logger.js.map +1 -0
  574. package/lib/utils/number.js +23 -33
  575. package/lib/utils/number.js.map +1 -0
  576. package/lib/utils/number.spec.js +10 -11
  577. package/lib/utils/number.spec.js.map +1 -0
  578. package/lib/utils/object.d.ts +6 -0
  579. package/lib/utils/object.js +20 -31
  580. package/lib/utils/object.js.map +1 -0
  581. package/lib/utils/search/SearchInterface.d.ts +12 -0
  582. package/lib/utils/search/SearchInterface.js +2 -0
  583. package/lib/utils/search/SearchInterface.js.map +1 -0
  584. package/lib/utils/search/SearchMinisearch.d.ts +11 -0
  585. package/lib/utils/search/SearchMinisearch.js +40 -0
  586. package/lib/utils/search/SearchMinisearch.js.map +1 -0
  587. package/lib/utils/search/SuggestersDatabase.d.ts +15 -0
  588. package/lib/utils/search/SuggestersDatabase.js +37 -0
  589. package/lib/utils/search/SuggestersDatabase.js.map +1 -0
  590. package/lib/utils/search/melauto.d.ts +15 -0
  591. package/lib/utils/search/melauto.js +41 -0
  592. package/lib/utils/search/melauto.js.map +1 -0
  593. package/lib/utils/search/tokenizer.d.ts +14 -0
  594. package/lib/utils/search/tokenizer.js +57 -0
  595. package/lib/utils/search/tokenizer.js.map +1 -0
  596. package/lib/utils/to-number.js +10 -15
  597. package/lib/utils/to-number.js.map +1 -0
  598. package/lib/utils/variables.d.ts +13 -0
  599. package/lib/utils/variables.js +16 -23
  600. package/lib/utils/variables.js.map +1 -0
  601. package/lib/utils/variables.spec.js +75 -66
  602. package/lib/utils/variables.spec.js.map +1 -0
  603. package/lib/utils/vtl.js +76 -83
  604. package/lib/utils/vtl.js.map +1 -0
  605. package/package.json +54 -107
  606. package/README.fr.md +0 -186
  607. package/lib/components/CheckboxGroup/CheckboxGroup.scss +0 -13
  608. package/lib/components/CheckboxOne/CheckboxOne.scss +0 -19
  609. package/lib/components/Datepicker/Datepicker.scss +0 -19
  610. package/lib/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +0 -166
  611. package/lib/components/Dropdown/Dropdown.scss +0 -38
  612. package/lib/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap +0 -85
  613. package/lib/components/Dropdown/helpers.js +0 -94
  614. package/lib/components/Duration/Duration.scss +0 -9
  615. package/lib/components/Input/Input.scss +0 -42
  616. package/lib/components/Input/__snapshots__/Input.spec.tsx.snap +0 -36
  617. package/lib/components/InputNumber/InputNumber.scss +0 -11
  618. package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -40
  619. package/lib/components/Radio/Radio.scss +0 -19
  620. package/lib/components/RosterForLoop/RosterForLoop.scss +0 -39
  621. package/lib/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +0 -95
  622. package/lib/components/Roundabout/Roundabout.scss +0 -13
  623. package/lib/components/Sequence/Sequence.scss +0 -10
  624. package/lib/components/Suggester/Suggester.scss +0 -170
  625. package/lib/components/Suggester/SuggesterStatus.js +0 -46
  626. package/lib/components/Suggester/helpers.js +0 -50
  627. package/lib/components/Switch/switch.scss +0 -45
  628. package/lib/components/Textarea/Textarea.scss +0 -8
  629. package/lib/components/Textarea/__snapshots__/Textarea.spec.tsx.snap +0 -32
  630. package/lib/components/index.scss +0 -154
  631. package/lib/components/shared/Button/Button.scss +0 -24
  632. package/lib/components/shared/Button/IconButton.scss +0 -33
  633. package/lib/components/shared/Button/__snapshots__/Button.spec.tsx.snap +0 -80
  634. package/lib/components/shared/Checkbox/CheckboxOption.scss +0 -19
  635. package/lib/components/shared/Combobox/Combobox.scss +0 -206
  636. package/lib/components/shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap +0 -76
  637. package/lib/components/shared/ComponentErrors/ComponentErrors.scss +0 -5
  638. package/lib/components/shared/Declarations/Declarations.scss +0 -42
  639. package/lib/components/shared/Fieldset/Fieldset.scss +0 -5
  640. package/lib/components/shared/Icons/lunatic-icon.scss +0 -4
  641. package/lib/components/shared/Label/Label.scss +0 -6
  642. package/lib/components/shared/MDLabel/MDLabelLink.js +0 -75
  643. package/lib/components/shared/Missing/Missing.scss +0 -27
  644. package/lib/components/shared/ModalControls/ModalControls.scss +0 -48
  645. package/lib/components/shared/Radio/RadioGroup.scss +0 -21
  646. package/lib/components/shared/Table/Table.scss +0 -27
  647. package/lib/components/shared/VariableStatus/VariableStatus.js +0 -72
  648. package/lib/components/shared/VariableStatus/VariableStatus.scss +0 -39
  649. package/lib/components/shared/VariableStatus/VariableStatus.spec.js +0 -24
  650. package/lib/components/shared/VariableStatus/icons/edited.png +0 -0
  651. package/lib/components/shared/VariableStatus/icons/forced.png +0 -0
  652. package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -84
  653. package/lib/components/shared/suggester-loader-widget/dragger/dragger.scss +0 -8
  654. package/lib/components/shared/suggester-loader-widget/dragger/dragger.spec.js +0 -89
  655. package/lib/components/shared/suggester-loader-widget/dragger/index.js +0 -13
  656. package/lib/components/shared/suggester-loader-widget/index.js +0 -13
  657. package/lib/components/shared/suggester-loader-widget/is-network/index.js +0 -13
  658. package/lib/components/shared/suggester-loader-widget/is-network/is-network.js +0 -52
  659. package/lib/components/shared/suggester-loader-widget/is-network/is-network.spec.js +0 -34
  660. package/lib/components/shared/suggester-loader-widget/is-network/use-online-status.js +0 -45
  661. package/lib/components/shared/suggester-loader-widget/is-network/use-online-status.spec.js +0 -40
  662. package/lib/components/shared/suggester-loader-widget/loader-row.js +0 -103
  663. package/lib/components/shared/suggester-loader-widget/loader.js +0 -132
  664. package/lib/components/shared/suggester-loader-widget/progress.js +0 -40
  665. package/lib/components/shared/suggester-loader-widget/tools/action-tool.js +0 -29
  666. package/lib/components/shared/suggester-loader-widget/tools/index.js +0 -20
  667. package/lib/components/shared/suggester-loader-widget/tools/tools.js +0 -17
  668. package/lib/components/shared/suggester-loader-widget/widget-container.js +0 -43
  669. package/lib/components/shared/suggester-loader-widget/widget.js +0 -133
  670. package/lib/components/shared/suggester-loader-widget/widget.scss +0 -176
  671. package/lib/css/components/Button.scss +0 -24
  672. package/lib/css/components/CheckboxGroup.scss +0 -13
  673. package/lib/css/components/CheckboxOne.scss +0 -19
  674. package/lib/css/components/CheckboxOption.scss +0 -19
  675. package/lib/css/components/Combobox.scss +0 -206
  676. package/lib/css/components/ComponentErrors.scss +0 -5
  677. package/lib/css/components/Datepicker.scss +0 -19
  678. package/lib/css/components/Declarations.scss +0 -42
  679. package/lib/css/components/Dragger.scss +0 -8
  680. package/lib/css/components/Dropdown.scss +0 -38
  681. package/lib/css/components/Duration.scss +0 -9
  682. package/lib/css/components/Fieldset.scss +0 -5
  683. package/lib/css/components/IconButton.scss +0 -38
  684. package/lib/css/components/Input.scss +0 -42
  685. package/lib/css/components/InputNumber.scss +0 -11
  686. package/lib/css/components/Label.scss +0 -6
  687. package/lib/css/components/Missing.scss +0 -27
  688. package/lib/css/components/ModalControls.scss +0 -48
  689. package/lib/css/components/RadioGroup.scss +0 -21
  690. package/lib/css/components/RosterForLoop.scss +0 -39
  691. package/lib/css/components/Roundabout.scss +0 -13
  692. package/lib/css/components/Sequence.scss +0 -10
  693. package/lib/css/components/Suggester.scss +0 -170
  694. package/lib/css/components/SuggesterWidget.scss +0 -176
  695. package/lib/css/components/Table.scss +0 -27
  696. package/lib/css/components/Textarea.scss +0 -8
  697. package/lib/css/components/VariableStatus.scss +0 -36
  698. package/lib/css/main.scss +0 -181
  699. package/lib/hooks/use-ref-sync.js +0 -15
  700. package/lib/hooks/useSuggesterInfo.js +0 -69
  701. package/lib/insee.d.js +0 -1
  702. package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +0 -11
  703. package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +0 -11
  704. package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +0 -13
  705. package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +0 -5
  706. package/lib/src/components/Datepicker/Datepicker.d.ts +0 -10
  707. package/lib/src/components/Dropdown/Dropdown.d.ts +0 -10
  708. package/lib/src/components/Dropdown/helpers.d.ts +0 -19
  709. package/lib/src/components/Duration/Duration.d.ts +0 -10
  710. package/lib/src/components/Input/Input.d.ts +0 -10
  711. package/lib/src/components/InputNumber/InputNumber.d.ts +0 -10
  712. package/lib/src/components/Loop/Loop.d.ts +0 -15
  713. package/lib/src/components/LunaticComponents.d.ts +0 -25
  714. package/lib/src/components/Radio/Radio.d.ts +0 -12
  715. package/lib/src/components/Sequence/Sequence.d.ts +0 -2
  716. package/lib/src/components/Subsequence/Subsequence.d.ts +0 -2
  717. package/lib/src/components/Suggester/CustomSuggester.d.ts +0 -29
  718. package/lib/src/components/Suggester/Suggester.d.ts +0 -2
  719. package/lib/src/components/Suggester/SuggesterNotification.d.ts +0 -10
  720. package/lib/src/components/Suggester/SuggesterStatus.d.ts +0 -23
  721. package/lib/src/components/Suggester/SuggesterType.d.ts +0 -6
  722. package/lib/src/components/Suggester/helpers.d.ts +0 -6
  723. package/lib/src/components/Switch/Switch.d.ts +0 -19
  724. package/lib/src/components/Textarea/Textarea.d.ts +0 -10
  725. package/lib/src/components/library.d.ts +0 -94
  726. package/lib/src/components/shared/Button/Button.d.ts +0 -11
  727. package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -14
  728. package/lib/src/components/shared/Combobox/Combobox.d.ts +0 -21
  729. package/lib/src/components/shared/Combobox/ComboboxType.d.ts +0 -50
  730. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +0 -5
  731. package/lib/src/components/shared/Combobox/Selection/ComboboxClearButton.d.ts +0 -9
  732. package/lib/src/components/shared/ComponentWrapper.d.ts +0 -26
  733. package/lib/src/components/shared/HOC/slottableComponent.d.ts +0 -105
  734. package/lib/src/components/shared/MDLabel/MDLabel.d.ts +0 -7
  735. package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +0 -8
  736. package/lib/src/components/shared/Missing/Missing.d.ts +0 -13
  737. package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -10
  738. package/lib/src/components/shared/Radio/RadioGroup.d.ts +0 -22
  739. package/lib/src/components/shared/Table/TableHeader.d.ts +0 -2
  740. package/lib/src/components/shared/Table/Tbody.d.ts +0 -7
  741. package/lib/src/components/shared/Table/Td.d.ts +0 -11
  742. package/lib/src/components/shared/Table/Th.d.ts +0 -11
  743. package/lib/src/components/shared/Table/Thead.d.ts +0 -7
  744. package/lib/src/components/shared/Table/Tr.d.ts +0 -8
  745. package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -6
  746. package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -16
  747. package/lib/src/components/shared/suggester-loader-widget/dragger/index.d.ts +0 -1
  748. package/lib/src/components/shared/suggester-loader-widget/index.d.ts +0 -1
  749. package/lib/src/components/shared/suggester-loader-widget/is-network/index.d.ts +0 -1
  750. package/lib/src/components/shared/suggester-loader-widget/is-network/is-network.d.ts +0 -6
  751. package/lib/src/components/shared/suggester-loader-widget/is-network/is-network.spec.d.ts +0 -1
  752. package/lib/src/components/shared/suggester-loader-widget/is-network/use-online-status.d.ts +0 -2
  753. package/lib/src/components/shared/suggester-loader-widget/is-network/use-online-status.spec.d.ts +0 -1
  754. package/lib/src/components/shared/suggester-loader-widget/loader-row.d.ts +0 -11
  755. package/lib/src/components/shared/suggester-loader-widget/loader.d.ts +0 -13
  756. package/lib/src/components/shared/suggester-loader-widget/progress.d.ts +0 -7
  757. package/lib/src/components/shared/suggester-loader-widget/tools/action-tool.d.ts +0 -9
  758. package/lib/src/components/shared/suggester-loader-widget/tools/index.d.ts +0 -2
  759. package/lib/src/components/shared/suggester-loader-widget/tools/tools.d.ts +0 -3
  760. package/lib/src/components/shared/suggester-loader-widget/widget-container.d.ts +0 -8
  761. package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -15
  762. package/lib/src/components/type.d.ts +0 -275
  763. package/lib/src/hooks/use-track-changes.d.ts +0 -17
  764. package/lib/src/hooks/useSuggesterInfo.d.ts +0 -9
  765. package/lib/src/i18n/dictionary.d.ts +0 -41
  766. package/lib/src/i18n/index.d.ts +0 -7
  767. package/lib/src/index.d.ts +0 -13
  768. package/lib/src/use-lunatic/actions.d.ts +0 -117
  769. package/lib/src/use-lunatic/commons/check-loops.d.ts +0 -3
  770. package/lib/src/use-lunatic/commons/check-pager.d.ts +0 -5
  771. package/lib/src/use-lunatic/commons/compile-controls.d.ts +0 -9
  772. package/lib/src/use-lunatic/commons/compose.d.ts +0 -3
  773. package/lib/src/use-lunatic/commons/create-map-pages.d.ts +0 -7
  774. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +0 -3
  775. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +0 -15
  776. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +0 -419
  777. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +0 -5
  778. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.spec.d.ts +0 -1
  779. package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +0 -23
  780. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -827
  781. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +0 -122
  782. package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +0 -6
  783. package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +0 -12
  784. package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +0 -9
  785. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -1200
  786. package/lib/src/use-lunatic/commons/fill-components/index.d.ts +0 -1
  787. package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +0 -6
  788. package/lib/src/use-lunatic/commons/getOverview.d.ts +0 -19
  789. package/lib/src/use-lunatic/commons/index.d.ts +0 -9
  790. package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +0 -6
  791. package/lib/src/use-lunatic/commons/page-navigation.d.ts +0 -7
  792. package/lib/src/use-lunatic/commons/page-tag.d.ts +0 -12
  793. package/lib/src/use-lunatic/commons/page.d.ts +0 -11
  794. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +0 -3
  795. package/lib/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +0 -7
  796. package/lib/src/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +0 -7
  797. package/lib/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +0 -7
  798. package/lib/src/use-lunatic/commons/variables/get-questionnaire-data.d.ts +0 -4
  799. package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +0 -86
  800. package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +0 -5
  801. package/lib/src/use-lunatic/hooks/use-page-has-response.d.ts +0 -6
  802. package/lib/src/use-lunatic/initial-state.d.ts +0 -3
  803. package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +0 -5
  804. package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +0 -6
  805. package/lib/src/use-lunatic/reducer/controls/check-base-control.d.ts +0 -2
  806. package/lib/src/use-lunatic/reducer/controls/check-roundabout-control.d.ts +0 -10
  807. package/lib/src/use-lunatic/reducer/index.d.ts +0 -1
  808. package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +0 -2
  809. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +0 -107
  810. package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +0 -2
  811. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +0 -3
  812. package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +0 -4
  813. package/lib/src/use-lunatic/reducer/reduce-handle-change.d.ts +0 -6
  814. package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +0 -4
  815. package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +0 -4
  816. package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +0 -3
  817. package/lib/src/use-lunatic/reducer/reducer.d.ts +0 -4
  818. package/lib/src/use-lunatic/replace-component-sequence.d.ts +0 -29
  819. package/lib/src/use-lunatic/type-source.d.ts +0 -304
  820. package/lib/src/use-lunatic/type.d.ts +0 -148
  821. package/lib/src/use-lunatic/use-lunatic.d.ts +0 -589
  822. package/lib/src/use-lunatic/use-lunatic.test.d.ts +0 -1
  823. package/lib/src/use-lunatic/use-suggesters.d.ts +0 -20
  824. package/lib/src/utils/array.d.ts +0 -28
  825. package/lib/src/utils/constants/features.d.ts +0 -3
  826. package/lib/src/utils/function.d.ts +0 -4
  827. package/lib/src/utils/idb-tools/clear-store.d.ts +0 -2
  828. package/lib/src/utils/idb-tools/create-db-opener.d.ts +0 -13
  829. package/lib/src/utils/idb-tools/create-open-db.d.ts +0 -2
  830. package/lib/src/utils/idb-tools/get-entity.d.ts +0 -2
  831. package/lib/src/utils/idb-tools/get-idb.d.ts +0 -2
  832. package/lib/src/utils/idb-tools/idb-bulk-insert.d.ts +0 -16
  833. package/lib/src/utils/idb-tools/idb-types.d.ts +0 -16
  834. package/lib/src/utils/idb-tools/index.d.ts +0 -7
  835. package/lib/src/utils/idb-tools/insert-entity.d.ts +0 -2
  836. package/lib/src/utils/idb-tools/open-db.d.ts +0 -2
  837. package/lib/src/utils/idb-tools/open-or-create-db.d.ts +0 -2
  838. package/lib/src/utils/object.d.ts +0 -5
  839. package/lib/src/utils/store-tools/clear-store-data.d.ts +0 -2
  840. package/lib/src/utils/store-tools/clear-store-info.d.ts +0 -2
  841. package/lib/src/utils/store-tools/create/create.d.ts +0 -4
  842. package/lib/src/utils/store-tools/create/index.d.ts +0 -2
  843. package/lib/src/utils/store-tools/create/update-store-info.d.ts +0 -2
  844. package/lib/src/utils/store-tools/get-store-count.d.ts +0 -2
  845. package/lib/src/utils/store-tools/index.d.ts +0 -7
  846. package/lib/src/utils/store-tools/initStore.d.ts +0 -2
  847. package/lib/src/utils/store-tools/open-or-create-store.d.ts +0 -2
  848. package/lib/src/utils/store-tools/use-store-index.d.ts +0 -4
  849. package/lib/src/utils/suggester-workers/append-to-index/append.d.ts +0 -6
  850. package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +0 -7
  851. package/lib/src/utils/suggester-workers/append-to-index/index.d.ts +0 -2
  852. package/lib/src/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.d.ts +0 -2
  853. package/lib/src/utils/suggester-workers/create-worker.d.ts +0 -1
  854. package/lib/src/utils/suggester-workers/searching/compute-score.d.ts +0 -3
  855. package/lib/src/utils/suggester-workers/searching/meloto-order.d.ts +0 -25
  856. package/lib/src/utils/suggester-workers/worker-path.d.ts +0 -6
  857. package/lib/src/utils/variables.d.ts +0 -13
  858. package/lib/stories/behaviour/cleaning/cleaning.stories.js +0 -90
  859. package/lib/stories/behaviour/cleaning/source-loop.json +0 -130
  860. package/lib/stories/behaviour/cleaning/source.json +0 -151
  861. package/lib/stories/behaviour/controls/V2_Controles_BouclesLiees2_PasPageFin.json +0 -709
  862. package/lib/stories/behaviour/controls/boucles-n.json +0 -202
  863. package/lib/stories/behaviour/controls/controls-externes.json +0 -75
  864. package/lib/stories/behaviour/controls/controls-externes.stories.js +0 -60
  865. package/lib/stories/behaviour/controls/controls.stories.js +0 -98
  866. package/lib/stories/behaviour/controls/loop.json +0 -130
  867. package/lib/stories/behaviour/controls/simple-numeric.json +0 -1966
  868. package/lib/stories/behaviour/controls/simple.json +0 -666
  869. package/lib/stories/behaviour/missing/missing.stories.js +0 -90
  870. package/lib/stories/behaviour/missing/source.json +0 -822
  871. package/lib/stories/behaviour/others/V2_DeclarationsSimples.json +0 -964
  872. package/lib/stories/behaviour/others/V2_MinMaxSum_Boucles.json +0 -509
  873. package/lib/stories/behaviour/others/V2_QuestSimple_Boucles.json +0 -4354
  874. package/lib/stories/behaviour/others/V2_TCMRallyeGames.json +0 -2892
  875. package/lib/stories/behaviour/others/test-dylan.json +0 -558
  876. package/lib/stories/behaviour/others/test.stories.js +0 -87
  877. package/lib/stories/behaviour/paste/source.json +0 -44949
  878. package/lib/stories/behaviour/paste/test.stories.js +0 -83
  879. package/lib/stories/behaviour/performance/performance.stories.js +0 -47
  880. package/lib/stories/behaviour/performance/source.json +0 -172
  881. package/lib/stories/behaviour/resizing/resizing.stories.js +0 -90
  882. package/lib/stories/behaviour/resizing/source-resizing-cleaning.json +0 -171
  883. package/lib/stories/behaviour/resizing/source.json +0 -789
  884. package/lib/stories/behaviour/slots.stories.js +0 -64
  885. package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +0 -32
  886. package/lib/stories/checkbox-boolean/source.json +0 -58
  887. package/lib/stories/checkbox-group/checkbox-group.stories.js +0 -46
  888. package/lib/stories/checkbox-group/source.json +0 -402
  889. package/lib/stories/checkbox-group/sourceLoop.json +0 -83
  890. package/lib/stories/checkbox-one/checkboxOne.stories.js +0 -41
  891. package/lib/stories/checkbox-one/source.json +0 -52
  892. package/lib/stories/date-picker/data.json +0 -3
  893. package/lib/stories/date-picker/datepicker.stories.js +0 -38
  894. package/lib/stories/date-picker/source.json +0 -65
  895. package/lib/stories/declaration/data.json +0 -1
  896. package/lib/stories/declaration/input.stories.js +0 -34
  897. package/lib/stories/declaration/source.json +0 -84
  898. package/lib/stories/disabled/data.json +0 -32
  899. package/lib/stories/disabled/disabled.stories.js +0 -34
  900. package/lib/stories/disabled/source.json +0 -382
  901. package/lib/stories/dropdown/data.json +0 -16
  902. package/lib/stories/dropdown/dropdown.stories.js +0 -37
  903. package/lib/stories/dropdown/source.json +0 -141
  904. package/lib/stories/duration/duration.stories.js +0 -38
  905. package/lib/stories/duration/mois.json +0 -32
  906. package/lib/stories/duration/time.json +0 -32
  907. package/lib/stories/filter-description/filter-description.stories.js +0 -47
  908. package/lib/stories/filter-description/source-options.json +0 -81
  909. package/lib/stories/filter-description/source.json +0 -12
  910. package/lib/stories/input/data.json +0 -1
  911. package/lib/stories/input/input.stories.js +0 -34
  912. package/lib/stories/input/source.json +0 -35
  913. package/lib/stories/input-number/input-number.stories.js +0 -32
  914. package/lib/stories/input-number/source.json +0 -31
  915. package/lib/stories/loop/loop.stories.js +0 -46
  916. package/lib/stories/loop/roster-for-loop.stories.js +0 -126
  917. package/lib/stories/loop/source-bloc.json +0 -85
  918. package/lib/stories/loop/source-paginated.json +0 -113
  919. package/lib/stories/loop/source-roster.json +0 -114
  920. package/lib/stories/loop/source-with-header.json +0 -127
  921. package/lib/stories/markdown/markdown.stories.js +0 -32
  922. package/lib/stories/markdown/source.json +0 -40
  923. package/lib/stories/overview/data.json +0 -1
  924. package/lib/stories/overview/overview.stories.js +0 -35
  925. package/lib/stories/overview/source.json +0 -28
  926. package/lib/stories/overview/sourceWithHierarchy.json +0 -6298
  927. package/lib/stories/pairwise/data.json +0 -12
  928. package/lib/stories/pairwise/pairwise-links.stories.js +0 -134
  929. package/lib/stories/pairwise/source.json +0 -266
  930. package/lib/stories/question/question.stories.js +0 -28
  931. package/lib/stories/question/source.json +0 -220
  932. package/lib/stories/questionnaires/logement/data.json +0 -2686
  933. package/lib/stories/questionnaires/logement/logement.stories.js +0 -72
  934. package/lib/stories/questionnaires/logement/source-sequence.json +0 -34181
  935. package/lib/stories/questionnaires/logement/source-sum.json +0 -31806
  936. package/lib/stories/questionnaires/logement/source.json +0 -34191
  937. package/lib/stories/questionnaires/recensement/data.json +0 -12
  938. package/lib/stories/questionnaires/recensement/recensement.stories.js +0 -50
  939. package/lib/stories/questionnaires/recensement/source.json +0 -15190
  940. package/lib/stories/questionnaires/rp/data.json +0 -5
  941. package/lib/stories/questionnaires/rp/rp.stories.js +0 -35
  942. package/lib/stories/questionnaires/rp/source.json +0 -262
  943. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +0 -547
  944. package/lib/stories/questionnaires/simpsons/source.json +0 -6296
  945. package/lib/stories/questionnaires2023/bySequence/source.json +0 -5054
  946. package/lib/stories/questionnaires2023/bySequence/ticWeb.stories.js +0 -62
  947. package/lib/stories/questionnaires2023/famille/famille.stories.js +0 -62
  948. package/lib/stories/questionnaires2023/famille/source.json +0 -50344
  949. package/lib/stories/questionnaires2023/simpsons/simpsons.stories.js +0 -62
  950. package/lib/stories/questionnaires2023/simpsons/source.json +0 -5176
  951. package/lib/stories/questionnaires2023/ticTel/source.json +0 -12888
  952. package/lib/stories/questionnaires2023/ticTel/ticWeb.stories.js +0 -62
  953. package/lib/stories/questionnaires2023/ticWeb/source.json +0 -11331
  954. package/lib/stories/questionnaires2023/ticWeb/ticWeb.stories.js +0 -62
  955. package/lib/stories/radio/radio.stories.js +0 -41
  956. package/lib/stories/radio/source.json +0 -51
  957. package/lib/stories/roundabout/data1.json +0 -25
  958. package/lib/stories/roundabout/data2.json +0 -25
  959. package/lib/stories/roundabout/roundabout.stories.js +0 -42
  960. package/lib/stories/roundabout/source.json +0 -286
  961. package/lib/stories/sequence/sequence.stories.js +0 -38
  962. package/lib/stories/sequence/source-declarations.json +0 -40
  963. package/lib/stories/sequence/source.json +0 -17
  964. package/lib/stories/suggester/SuggesterNotification.js +0 -26
  965. package/lib/stories/suggester/fakeReferentiel.json +0 -12
  966. package/lib/stories/suggester/source-option-responses.json +0 -145
  967. package/lib/stories/suggester/source.json +0 -398
  968. package/lib/stories/suggester/suggester-workers.stories.js +0 -249
  969. package/lib/stories/suggester/suggester.stories.js +0 -81
  970. package/lib/stories/summary/data.json +0 -32
  971. package/lib/stories/summary/source.json +0 -368
  972. package/lib/stories/summary/summary.stories.js +0 -35
  973. package/lib/stories/switch/README.md +0 -31
  974. package/lib/stories/switch/data-forced.json +0 -48
  975. package/lib/stories/switch/source.json +0 -80
  976. package/lib/stories/switch/switch.stories.js +0 -32
  977. package/lib/stories/table/data-roster.json +0 -1
  978. package/lib/stories/table/data.json +0 -1
  979. package/lib/stories/table/source-colspan.json +0 -314
  980. package/lib/stories/table/source-roster.json +0 -513
  981. package/lib/stories/table/source.json +0 -31
  982. package/lib/stories/table/table-dynamique.json +0 -67
  983. package/lib/stories/table/table.stories.js +0 -54
  984. package/lib/stories/textarea/data.json +0 -1
  985. package/lib/stories/textarea/source.json +0 -35
  986. package/lib/stories/textarea/textarea.stories.js +0 -34
  987. package/lib/stories/utils/custom-lunatic.scss +0 -28
  988. package/lib/stories/utils/default-arg-types.js +0 -21
  989. package/lib/stories/utils/options.js +0 -28
  990. package/lib/stories/utils/orchestrator.js +0 -319
  991. package/lib/stories/utils/orchestrator.scss +0 -54
  992. package/lib/stories/utils/overview.js +0 -53
  993. package/lib/stories/utils/overview.scss +0 -30
  994. package/lib/stories/utils/referentiel.js +0 -33
  995. package/lib/stories/utils/waiting/index.js +0 -13
  996. package/lib/stories/utils/waiting/preloader.svg +0 -1
  997. package/lib/stories/utils/waiting/waiting.js +0 -32
  998. package/lib/stories/utils/waiting/waiting.scss +0 -21
  999. package/lib/test.d.js +0 -3
  1000. package/lib/use-lunatic/commons/fill-components/fill-component-required.js +0 -23
  1001. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +0 -46
  1002. package/lib/use-lunatic/commons/fill-components/fill-component-value.spec.js +0 -67
  1003. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +0 -38
  1004. package/lib/use-lunatic/commons/fill-components/fill-iterations.js +0 -45
  1005. package/lib/use-lunatic/commons/fill-components/fill-management.js +0 -22
  1006. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +0 -29
  1007. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +0 -23
  1008. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -162
  1009. package/lib/use-lunatic/commons/fill-components/index.js +0 -13
  1010. package/lib/use-lunatic/commons/getOverview.js +0 -39
  1011. package/lib/use-lunatic/commons/use-components-from-state.js +0 -28
  1012. package/lib/use-lunatic/initial-state.js +0 -54
  1013. package/lib/use-lunatic/reducer/index.js +0 -13
  1014. package/lib/use-lunatic/reducer/overview/overview-on-change.js +0 -48
  1015. package/lib/use-lunatic/reducer/overview/overview-on-init.js +0 -106
  1016. package/lib/use-lunatic/reducer/reduce-handle-change.js +0 -29
  1017. package/lib/use-lunatic/reducer/reduce-on-init.js +0 -148
  1018. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +0 -20
  1019. package/lib/use-lunatic/reducer/reduce-update-state.js +0 -22
  1020. package/lib/use-lunatic/type-source.js +0 -5
  1021. package/lib/use-lunatic/use-lunatic.test.js +0 -352
  1022. package/lib/use-lunatic/use-suggesters.js +0 -178
  1023. package/lib/utils/idb-tools/clear-store.js +0 -39
  1024. package/lib/utils/idb-tools/create-db-opener.js +0 -53
  1025. package/lib/utils/idb-tools/create-open-db.js +0 -28
  1026. package/lib/utils/idb-tools/get-entity.js +0 -20
  1027. package/lib/utils/idb-tools/get-idb.js +0 -12
  1028. package/lib/utils/idb-tools/idb-bulk-insert.js +0 -126
  1029. package/lib/utils/idb-tools/idb-types.js +0 -5
  1030. package/lib/utils/idb-tools/index.js +0 -64
  1031. package/lib/utils/idb-tools/insert-entity.js +0 -20
  1032. package/lib/utils/idb-tools/open-db.js +0 -24
  1033. package/lib/utils/idb-tools/open-or-create-db.js +0 -43
  1034. package/lib/utils/store-tools/clear-store-data.js +0 -32
  1035. package/lib/utils/store-tools/clear-store-info.js +0 -32
  1036. package/lib/utils/store-tools/create/create.js +0 -50
  1037. package/lib/utils/store-tools/create/index.js +0 -20
  1038. package/lib/utils/store-tools/create/update-store-info.js +0 -26
  1039. package/lib/utils/store-tools/get-store-count.js +0 -23
  1040. package/lib/utils/store-tools/index.js +0 -54
  1041. package/lib/utils/store-tools/initStore.js +0 -57
  1042. package/lib/utils/store-tools/open-or-create-store.js +0 -51
  1043. package/lib/utils/store-tools/use-store-index.js +0 -57
  1044. package/lib/utils/suggester-workers/append-to-index/append.js +0 -78
  1045. package/lib/utils/suggester-workers/append-to-index/append.worker.js +0 -32
  1046. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +0 -70
  1047. package/lib/utils/suggester-workers/append-to-index/index.js +0 -20
  1048. package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +0 -87
  1049. package/lib/utils/suggester-workers/append-to-index/store-messages.js +0 -44
  1050. package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +0 -53
  1051. package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +0 -76
  1052. package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +0 -35
  1053. package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +0 -20
  1054. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +0 -35
  1055. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +0 -15
  1056. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +0 -18
  1057. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +0 -17
  1058. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +0 -24
  1059. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +0 -24
  1060. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +0 -14
  1061. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +0 -24
  1062. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +0 -22
  1063. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +0 -17
  1064. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +0 -52
  1065. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +0 -13
  1066. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +0 -15
  1067. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +0 -15
  1068. package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +0 -20
  1069. package/lib/utils/suggester-workers/commons-tokenizer/filters/stop-words.js +0 -8
  1070. package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +0 -13
  1071. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +0 -22
  1072. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.spec.js +0 -11
  1073. package/lib/utils/suggester-workers/commons-tokenizer/index.js +0 -69
  1074. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +0 -17
  1075. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.spec.js +0 -10
  1076. package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +0 -11
  1077. package/lib/utils/suggester-workers/create-worker.js +0 -60
  1078. package/lib/utils/suggester-workers/find-best-label/find-best-label.js +0 -62
  1079. package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +0 -53
  1080. package/lib/utils/suggester-workers/find-best-label/index.js +0 -1
  1081. package/lib/utils/suggester-workers/find-best-label/tokenize.js +0 -44
  1082. package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +0 -25
  1083. package/lib/utils/suggester-workers/searching/compute-score.js +0 -30
  1084. package/lib/utils/suggester-workers/searching/get-db.js +0 -47
  1085. package/lib/utils/suggester-workers/searching/index.js +0 -13
  1086. package/lib/utils/suggester-workers/searching/meloto-order.js +0 -54
  1087. package/lib/utils/suggester-workers/searching/meloto-order.spec.js +0 -67
  1088. package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +0 -27
  1089. package/lib/utils/suggester-workers/searching/order/index.js +0 -24
  1090. package/lib/utils/suggester-workers/searching/query-parser/index.js +0 -20
  1091. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +0 -11
  1092. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +0 -27
  1093. package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +0 -34
  1094. package/lib/utils/suggester-workers/searching/resolve-query-parser.js +0 -56
  1095. package/lib/utils/suggester-workers/searching/search-in-index.js +0 -21
  1096. package/lib/utils/suggester-workers/searching/searching.js +0 -150
  1097. package/lib/utils/suggester-workers/searching/searching.worker.js +0 -26
  1098. package/lib/utils/suggester-workers/worker-path.js +0 -29
  1099. package/scripts/build/add-workers-to-public.js +0 -44
  1100. package/scripts/build/workers-paths.js +0 -53
  1101. package/workers-release/lunatic-append-worker-0.3.0.js +0 -2
  1102. package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -24
  1103. package/workers-release/lunatic-label-worker-0.3.0.js +0 -2
  1104. package/workers-release/lunatic-label-worker-0.3.0.js.LICENSE.txt +0 -13
  1105. package/workers-release/lunatic-search-worker-0.3.0.js +0 -2
  1106. package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -24
  1107. /package/lib/{src/components → components}/CheckboxBoolean/CheckboxBoolean.spec.d.ts +0 -0
  1108. /package/lib/{src/components → components}/CheckboxGroup/CustomCheckboxGroup.spec.d.ts +0 -0
  1109. /package/lib/{src/components → components}/CheckboxOne/CheckboxOne.spec.d.ts +0 -0
  1110. /package/lib/{src/components → components}/Datepicker/Datepicker.spec.d.ts +0 -0
  1111. /package/lib/{src/components → components}/Datepicker/DatepickerField.d.ts +0 -0
  1112. /package/lib/{src/components → components}/Dropdown/Dropdown.spec.d.ts +0 -0
  1113. /package/lib/{src/components → components}/Dropdown/renderer/SimpleLabelRenderer.d.ts +0 -0
  1114. /package/lib/{src/components → components}/Dropdown/renderer/SimpleOptionRenderer.d.ts +0 -0
  1115. /package/lib/{src/components → components}/Duration/durationUtils.d.ts +0 -0
  1116. /package/lib/{src/components → components}/Duration/formatDuration.d.ts +0 -0
  1117. /package/lib/{src/components → components}/Duration/formatDuration.spec.d.ts +0 -0
  1118. /package/lib/{src/components → components}/Duration/getDurationFromValue.d.ts +0 -0
  1119. /package/lib/{src/components → components}/FilterDescription/FilterDescription.d.ts +0 -0
  1120. /package/lib/{src/components → components}/FilterDescription/FilterDescription.spec.d.ts +0 -0
  1121. /package/lib/{src/components → components}/Input/Input.spec.d.ts +0 -0
  1122. /package/lib/{src/components → components}/InputNumber/InputNumber.spec.d.ts +0 -0
  1123. /package/lib/{src/components → components}/InputNumber/InputNumberThousand.d.ts +0 -0
  1124. /package/lib/{src/components → components}/Loop/constant.d.ts +0 -0
  1125. /package/lib/{src/components → components}/PairwiseLinks/PairwiseLinks.d.ts +0 -0
  1126. /package/lib/{src/components → components}/Question/Question.d.ts +0 -0
  1127. /package/lib/{src/components → components}/RosterForLoop/RosterForLoop.d.ts +0 -0
  1128. /package/lib/{src/components → components}/RosterForLoop/RosterForLoop.spec.d.ts +0 -0
  1129. /package/lib/{src/components → components}/Roundabout/CustomRoundabout.d.ts +0 -0
  1130. /package/lib/{src/components → components}/Roundabout/Roundabout.d.ts +0 -0
  1131. /package/lib/{src/components → components}/Roundabout/RoundaboutItButton.d.ts +0 -0
  1132. /package/lib/{src/components → components}/Roundabout/RoundaboutItButton.spec.d.ts +0 -0
  1133. /package/lib/{src/components → components}/Roundabout/RoundaboutRedirect.d.ts +0 -0
  1134. /package/lib/{src/components → components}/Roundabout/extra.d.ts +0 -0
  1135. /package/lib/{src/components → components}/Roundabout/redirect.spec.d.ts +0 -0
  1136. /package/lib/{src/components → components}/Roundabout/roundabout.spec.d.ts +0 -0
  1137. /package/lib/{src/components → components}/Subsequence/Subsequence.spec.d.ts +0 -0
  1138. /package/lib/{src/components → components}/Summary/Summary.d.ts +0 -0
  1139. /package/lib/{src/components → components}/Table/Table.d.ts +0 -0
  1140. /package/lib/{src/components → components}/Textarea/Textarea.spec.d.ts +0 -0
  1141. /package/lib/{src/components → components}/shared/Button/Button.spec.d.ts +0 -0
  1142. /package/lib/{src/components → components}/shared/Button/IconButton.d.ts +0 -0
  1143. /package/lib/{src/components → components}/shared/Button/IconButton.spec.d.ts +0 -0
  1144. /package/lib/{src/components → components}/shared/Checkbox/CheckboxOption.spec.d.ts +0 -0
  1145. /package/lib/{src/components → components}/shared/Checkbox/getShortcutKey.d.ts +0 -0
  1146. /package/lib/{src/components → components}/shared/Combobox/Combobox.stories.d.ts +0 -0
  1147. /package/lib/{src/components → components}/shared/Combobox/ComboboxContainer.d.ts +0 -0
  1148. /package/lib/{src/components → components}/shared/Combobox/ComboboxContainer.spec.d.ts +0 -0
  1149. /package/lib/{src/components → components}/shared/Combobox/ComboboxContent.d.ts +0 -0
  1150. /package/lib/{src/components → components}/shared/Combobox/ComboboxContentBox.d.ts +0 -0
  1151. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOption.d.ts +0 -0
  1152. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOption.spec.d.ts +0 -0
  1153. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.d.ts +0 -0
  1154. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts +0 -0
  1155. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanel.spec.d.ts +0 -0
  1156. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.d.ts +0 -0
  1157. /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts +0 -0
  1158. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxClearButton.spec.d.ts +0 -0
  1159. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxInput.d.ts +0 -0
  1160. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +0 -0
  1161. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts +0 -0
  1162. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxSelection.d.ts +0 -0
  1163. /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxSelection.spec.d.ts +0 -0
  1164. /package/lib/{src/components → components}/shared/Combobox/constants.d.ts +0 -0
  1165. /package/lib/{src/components → components}/shared/Combobox/index.d.ts +0 -0
  1166. /package/lib/{src/components → components}/shared/ComponentErrors/ComponentErrors.d.ts +0 -0
  1167. /package/lib/{src/components → components}/shared/ComponentErrors/ComponentErrors.spec.d.ts +0 -0
  1168. /package/lib/{src/components → components}/shared/Declarations/Declarations.d.ts +0 -0
  1169. /package/lib/{src/components → components}/shared/Declarations/Declarations.spec.d.ts +0 -0
  1170. /package/lib/{src/components → components}/shared/Fieldset/Fieldset.d.ts +0 -0
  1171. /package/lib/{src/components → components}/shared/Fieldset/Fieldset.spec.d.ts +0 -0
  1172. /package/lib/{src/components → components}/shared/Icons/checkbox-checked-icon.d.ts +0 -0
  1173. /package/lib/{src/components → components}/shared/Icons/checkbox-unchecked-icon.d.ts +0 -0
  1174. /package/lib/{src/components → components}/shared/Icons/closed-icon.d.ts +0 -0
  1175. /package/lib/{src/components → components}/shared/Icons/cross-icon.d.ts +0 -0
  1176. /package/lib/{src/components → components}/shared/Icons/icon-props.d.ts +0 -0
  1177. /package/lib/{src/components → components}/shared/Icons/index.d.ts +0 -0
  1178. /package/lib/{src/components → components}/shared/Icons/load-icon.d.ts +0 -0
  1179. /package/lib/{src/components → components}/shared/Icons/lunatic-icon.d.ts +0 -0
  1180. /package/lib/{src/components → components}/shared/Icons/network-icon.d.ts +0 -0
  1181. /package/lib/{src/components → components}/shared/Icons/on-drag-icon.d.ts +0 -0
  1182. /package/lib/{src/components → components}/shared/Icons/opened-icon.d.ts +0 -0
  1183. /package/lib/{src/components → components}/shared/Icons/radio-checked-icon.d.ts +0 -0
  1184. /package/lib/{src/components → components}/shared/Icons/radio-unchecked-icon.d.ts +0 -0
  1185. /package/lib/{src/components → components}/shared/Label/Label.d.ts +0 -0
  1186. /package/lib/{src/components → components}/shared/Label/Label.spec.d.ts +0 -0
  1187. /package/lib/{src/components → components}/shared/LabelDescription.d.ts +0 -0
  1188. /package/lib/{src/components → components}/shared/MDLabel/MDLabel.spec.d.ts +0 -0
  1189. /package/lib/{src/components → components}/shared/MDLabel/RouterLink.d.ts +0 -0
  1190. /package/lib/{src/components → components}/shared/MDLabel/generateUniqueId.d.ts +0 -0
  1191. /package/lib/{src/components → components}/shared/Missing/Missing.spec.d.ts +0 -0
  1192. /package/lib/{src/components → components}/shared/ModalControls/ModalControls.spec.d.ts +0 -0
  1193. /package/lib/{src/components → components}/shared/Notification.d.ts +0 -0
  1194. /package/lib/{src/components → components}/shared/Radio/RadioOption.d.ts +0 -0
  1195. /package/lib/{src/components → components}/shared/Radio/RadioOption.spec.d.ts +0 -0
  1196. /package/lib/{src/components → components}/shared/Table/Table.d.ts +0 -0
  1197. /package/lib/{src/components → components}/shared/Table/Table.spec.d.ts +0 -0
  1198. /package/lib/{src/components → components}/shared/Table/Tbody.spec.d.ts +0 -0
  1199. /package/lib/{src/components → components}/shared/Table/Td.spec.d.ts +0 -0
  1200. /package/lib/{src/components → components}/shared/Table/Th.spec.d.ts +0 -0
  1201. /package/lib/{src/components → components}/shared/Table/Thead.spec.d.ts +0 -0
  1202. /package/lib/{src/components → components}/shared/Table/Tr.spec.d.ts +0 -0
  1203. /package/lib/{src/components → components}/shared/Table/index.d.ts +0 -0
  1204. /package/lib/{src/constants → constants}/component-types.d.ts +0 -0
  1205. /package/lib/{src/constants → constants}/declarations.d.ts +0 -0
  1206. /package/lib/{src/constants → constants}/event-types.d.ts +0 -0
  1207. /package/lib/{src/constants → constants}/index.d.ts +0 -0
  1208. /package/lib/{src/constants → constants}/indexedDBStore.d.ts +0 -0
  1209. /package/lib/{src/constants → constants}/supported-preferences.d.ts +0 -0
  1210. /package/lib/{src/constants → constants}/value-types.d.ts +0 -0
  1211. /package/lib/{src/constants → constants}/variable-types.d.ts +0 -0
  1212. /package/lib/{src/hooks → hooks}/use-auto-focus.d.ts +0 -0
  1213. /package/lib/{src/hooks → hooks}/use-why-render.d.ts +0 -0
  1214. /package/lib/{src/hooks → hooks}/useDocumentEvent.d.ts +0 -0
  1215. /package/lib/{src/hooks → hooks}/useListKeyboardHandler.d.ts +0 -0
  1216. /package/lib/{src/hooks/use-ref-sync.d.ts → hooks/useRefSync.d.ts} +0 -0
  1217. /package/lib/{src/i18n → i18n}/build-dictionary.d.ts +0 -0
  1218. /package/lib/{src/i18n → i18n}/inputNumberProps.d.ts +0 -0
  1219. /package/lib/{components/Suggester/icons → icons}/alert-icon.svg +0 -0
  1220. /package/lib/{components/Suggester/icons → icons}/wait-icon.svg +0 -0
  1221. /package/lib/{components/Suggester/icons → icons}/warn-icon.svg +0 -0
  1222. /package/lib/{src/type.utils.d.ts → type.utils.d.ts} +0 -0
  1223. /package/lib/{src/use-lunatic → use-lunatic}/commons/component.d.ts +0 -0
  1224. /package/lib/{src/use-lunatic → use-lunatic}/commons/fill-components/fill-component-expressions.spec.d.ts +0 -0
  1225. /package/lib/{src/use-lunatic → use-lunatic}/commons/get-compatible-vtl-expression.d.ts +0 -0
  1226. /package/lib/{src/use-lunatic → use-lunatic}/commons/is-paginated-loop.d.ts +0 -0
  1227. /package/lib/{src/use-lunatic → use-lunatic}/commons/is-roundabout.d.ts +0 -0
  1228. /package/lib/{src/use-lunatic → use-lunatic}/commons/page-navigation.spec.d.ts +0 -0
  1229. /package/lib/{src/components/shared/VariableStatus/VariableStatus.spec.d.ts → use-lunatic/commons/page-tag.spec.d.ts} +0 -0
  1230. /package/lib/{src/use-lunatic → use-lunatic}/commons/variables/lunatic-variables-store.spec.d.ts +0 -0
  1231. /package/lib/{src/use-lunatic → use-lunatic}/index.d.ts +0 -0
  1232. /package/lib/{src/use-lunatic → use-lunatic}/lunatic-context.d.ts +0 -0
  1233. /package/lib/{src/components/shared/suggester-loader-widget/dragger/dragger.spec.d.ts → use-lunatic/props/propValue.spec.d.ts} +0 -0
  1234. /package/lib/{src/use-lunatic → use-lunatic}/reducer/commons/index.d.ts +0 -0
  1235. /package/lib/{src/use-lunatic → use-lunatic}/reducer/commons/resize-array-variable.d.ts +0 -0
  1236. /package/lib/{src/utils → utils}/array.spec.d.ts +0 -0
  1237. /package/lib/{src/utils → utils}/constants/alphabet.d.ts +0 -0
  1238. /package/lib/{src/utils → utils}/constants/index.d.ts +0 -0
  1239. /package/lib/{src/utils → utils}/constants/links.d.ts +0 -0
  1240. /package/lib/{src/utils → utils}/constants/missing.d.ts +0 -0
  1241. /package/lib/{src/utils → utils}/constants/variable-status.d.ts +0 -0
  1242. /package/lib/{src/utils → utils}/constants/variable-types.d.ts +0 -0
  1243. /package/lib/{src/utils → utils}/dom.d.ts +0 -0
  1244. /package/lib/{src/utils → utils}/env.d.ts +0 -0
  1245. /package/lib/{src/utils → utils}/is-element.d.ts +0 -0
  1246. /package/lib/{src/utils → utils}/is-object.d.ts +0 -0
  1247. /package/lib/{src/utils → utils}/logger.d.ts +0 -0
  1248. /package/lib/{src/utils → utils}/number.d.ts +0 -0
  1249. /package/lib/{src/utils → utils}/number.spec.d.ts +0 -0
  1250. /package/lib/{src/utils → utils}/to-number.d.ts +0 -0
  1251. /package/lib/{src/utils → utils}/variables.spec.d.ts +0 -0
  1252. /package/lib/{src/utils → utils}/vtl.d.ts +0 -0
@@ -1,84 +1,51 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.MissingPure = exports.Missing = void 0;
7
- var _react = require("react");
8
- var _constants = require("../../../utils/constants");
9
- var _reactKeyboardEventHandler = _interopRequireDefault(require("react-keyboard-event-handler"));
10
- var _lunaticContext = require("../../../use-lunatic/lunatic-context");
11
- var _Button = require("../Button/Button");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- var Missing = exports.Missing = function Missing(props) {
21
- var propsContext = (0, _lunaticContext.useLunaticMissing)();
22
- if (!propsContext.missing || !props.missingResponse) {
23
- return null;
24
- }
25
- if (props.componentType === 'Loop' && props.paginatedLoop) {
26
- return null;
27
- }
28
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(MissingPure, _objectSpread(_objectSpread({}, props), propsContext));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback } from 'react';
3
+ import { DK, RF } from '../../../utils/constants';
4
+ import { useLunaticMissing } from '../../../use-lunatic/lunatic-context';
5
+ import { Button } from '../Button/Button';
6
+ import { useKeyboardKey } from '../../../hooks/useKeyboardKey';
7
+ export const Missing = (props) => {
8
+ const propsContext = useLunaticMissing();
9
+ if (!propsContext.missing || !props.missingResponse) {
10
+ return null;
11
+ }
12
+ if (props.componentType === 'Loop' && props.paginatedLoop) {
13
+ return null;
14
+ }
15
+ return _jsx(MissingPure, { ...props, ...propsContext });
29
16
  };
30
- var MissingPure = exports.MissingPure = function MissingPure(props) {
31
- var missingResponse = props.missingResponse,
32
- handleChange = props.handleChange,
33
- missingStrategy = props.missingStrategy,
34
- shortcut = props.shortcut,
35
- missingShortcut = props.missingShortcut,
36
- dontKnowButton = props.dontKnowButton,
37
- refusedButton = props.refusedButton,
38
- disabled = props.disabled;
39
- var value = missingResponse === null || missingResponse === void 0 ? void 0 : missingResponse.value;
40
- var onClick = function onClick(value) {
41
- handleChange(missingResponse !== null && missingResponse !== void 0 ? missingResponse : {
42
- name: 'UNKNOWN'
43
- }, value);
44
- };
45
- var handleMissingStrategy = (0, _react.useCallback)(function () {
46
- if (missingStrategy) missingStrategy();
47
- }, [missingStrategy]);
48
- var onClickDK = function onClickDK() {
49
- onClick(_constants.DK);
50
- handleMissingStrategy();
51
- };
52
- var onClickRF = function onClickRF() {
53
- onClick(_constants.RF);
54
- handleMissingStrategy();
55
- };
56
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
57
- className: "missing-buttons",
58
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
59
- className: "missing-button".concat(value === _constants.DK ? '-active' : '', " missing-button-dk").concat(value === _constants.DK ? '-active' : ''),
60
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
61
- disabled: disabled,
62
- label: dontKnowButton,
63
- onClick: onClickDK
64
- })
65
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
66
- className: "missing-button".concat(value === _constants.RF ? '-active' : '', " missing-button-rf").concat(value === _constants.RF ? '-active' : ''),
67
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
68
- disabled: disabled,
69
- label: refusedButton,
70
- onClick: onClickRF
71
- })
72
- }), shortcut && missingShortcut && missingShortcut.dontKnow && missingShortcut.refused && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactKeyboardEventHandler["default"], {
73
- handleKeys: Object.values(missingShortcut),
74
- handleEventType: "keydown",
75
- onKeyEvent: function onKeyEvent(key, e) {
17
+ export const MissingPure = (props) => {
18
+ const { missingResponse, handleChanges, missingStrategy, shortcut, missingShortcut, dontKnowButton, refusedButton, disabled, readOnly, } = props;
19
+ const value = missingResponse?.value;
20
+ const onClick = (value) => {
21
+ handleChanges([{ name: missingResponse?.name ?? 'UNKNOWN', value }]);
22
+ };
23
+ const handleMissingStrategy = useCallback(() => {
24
+ if (missingStrategy)
25
+ missingStrategy();
26
+ }, [missingStrategy]);
27
+ const onClickDK = () => {
28
+ onClick(DK);
29
+ handleMissingStrategy();
30
+ };
31
+ const onClickRF = () => {
32
+ onClick(RF);
33
+ handleMissingStrategy();
34
+ };
35
+ const hasKeyboardShortcut = Boolean(shortcut &&
36
+ !disabled &&
37
+ !readOnly &&
38
+ missingShortcut &&
39
+ missingShortcut.dontKnow &&
40
+ missingShortcut.refused);
41
+ useKeyboardKey(Object.values(missingShortcut), (e) => {
76
42
  e.preventDefault();
77
- if (key === missingShortcut.dontKnow) onClickDK();
78
- if (key === missingShortcut.refused) onClickRF();
79
- },
80
- handleFocusableElements: true
81
- })]
82
- });
43
+ if (e.key.toLowerCase() === missingShortcut.dontKnow.toLowerCase())
44
+ onClickDK();
45
+ if (e.key.toLowerCase() === missingShortcut.refused.toLowerCase())
46
+ onClickRF();
47
+ }, hasKeyboardShortcut);
48
+ return (_jsxs("div", { className: "missing-buttons", children: [_jsx("span", { className: `missing-button${value === DK ? '-active' : ''} missing-button-dk${value === DK ? '-active' : ''}`, children: _jsx(Button, { selected: value === DK, disabled: disabled, readOnly: readOnly, label: dontKnowButton, onClick: onClickDK }) }), _jsx("span", { className: `missing-button${value === RF ? '-active' : ''} missing-button-rf${value === RF ? '-active' : ''}`, children: _jsx(Button, { selected: value === RF, disabled: disabled, readOnly: readOnly, label: refusedButton, onClick: onClickRF }) })] }));
83
49
  };
84
- var _default = exports["default"] = Missing;
50
+ export default Missing;
51
+ //# sourceMappingURL=Missing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Missing.js","sourceRoot":"","sources":["../../../../src/components/shared/Missing/Missing.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAoB/D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,MAAM,YAAY,GAAG,iBAAiB,EAAE,CAAC;IACzC,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,IAAI,KAAK,CAAC,aAAa,KAAK,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC3D,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,KAAC,WAAW,OAAK,KAAK,KAAM,YAAY,GAAI,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAC1B,KAIiB,EAChB,EAAE;IACH,MAAM,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,eAAe,EACf,cAAc,EACd,aAAa,EACb,QAAQ,EACR,QAAQ,GACR,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,eAAe,EAAE,KAAK,CAAC;IACrC,MAAM,OAAO,GAAG,CAAC,KAAkB,EAAE,EAAE;QACtC,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,IAAI,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9C,IAAI,eAAe;YAAE,eAAe,EAAE,CAAC;IACxC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,SAAS,GAAG,GAAG,EAAE;QACtB,OAAO,CAAC,EAAE,CAAC,CAAC;QACZ,qBAAqB,EAAE,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,GAAG,EAAE;QACtB,OAAO,CAAC,EAAE,CAAC,CAAC;QACZ,qBAAqB,EAAE,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,OAAO,CAClC,QAAQ;QACP,CAAC,QAAQ;QACT,CAAC,QAAQ;QACT,eAAe;QACf,eAAe,CAAC,QAAQ;QACxB,eAAe,CAAC,OAAO,CACxB,CAAC;IAEF,cAAc,CACb,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAC9B,CAAC,CAAC,EAAE,EAAE;QACL,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,eAAe,CAAC,QAAQ,CAAC,WAAW,EAAE;YACjE,SAAS,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,eAAe,CAAC,OAAO,CAAC,WAAW,EAAE;YAChE,SAAS,EAAE,CAAC;IACd,CAAC,EACD,mBAAmB,CACnB,CAAC;IAEF,OAAO,CACN,eAAK,SAAS,EAAC,iBAAiB,aAC/B,eACC,SAAS,EAAE,iBACV,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,qBAAqB,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,YAEpD,KAAC,MAAM,IACN,QAAQ,EAAE,KAAK,KAAK,EAAE,EACtB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,SAAS,GACjB,GACI,EACP,eACC,SAAS,EAAE,iBACV,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,qBAAqB,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,YAEpD,KAAC,MAAM,IACN,QAAQ,EAAE,KAAK,KAAK,EAAE,EACtB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,SAAS,GACjB,GACI,IACF,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,81 +1,45 @@
1
- "use strict";
2
-
3
- var _react = require("@testing-library/react");
4
- var _Missing = require("./Missing");
5
- var _vitest = require("vitest");
6
- var _jsxRuntime = require("react/jsx-runtime");
7
- (0, _vitest.describe)('Missing', function () {
8
- var handleChange = _vitest.vi.fn();
9
- var missingResponse = {
10
- name: 'Demo',
11
- value: ''
12
- };
13
- var dontKnowButton = "Don't know";
14
- var refusedButton = 'Refused';
15
- (0, _vitest.afterEach)(function () {
16
- _vitest.vi.clearAllMocks();
17
- });
18
- (0, _vitest.it)('should render the "Don\'t Know" and "Refused" buttons', function () {
19
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
20
- dontKnowButton: dontKnowButton,
21
- refusedButton: refusedButton,
22
- missingResponse: missingResponse,
23
- handleChange: handleChange,
24
- missingShortcut: {
25
- dontKnow: '',
26
- refused: ''
27
- },
28
- missingStrategy: function missingStrategy() {},
29
- shortcut: false
30
- })),
31
- getByText = _render.getByText;
32
- var dontKnow = getByText(dontKnowButton);
33
- var refused = getByText(refusedButton);
34
- (0, _vitest.expect)(dontKnow).toBeInTheDocument();
35
- (0, _vitest.expect)(refused).toBeInTheDocument();
36
- });
37
- (0, _vitest.it)('should call the handleChange function when a button is clicked', function () {
38
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
39
- dontKnowButton: dontKnowButton,
40
- refusedButton: refusedButton,
41
- missingResponse: missingResponse,
42
- handleChange: handleChange,
43
- missingShortcut: {
44
- dontKnow: '',
45
- refused: ''
46
- },
47
- missingStrategy: function missingStrategy() {},
48
- shortcut: false
49
- })),
50
- getByText = _render2.getByText;
51
- var dontKnow = getByText(dontKnowButton);
52
- var refused = getByText(refusedButton);
53
- _react.fireEvent.click(dontKnow);
54
- _react.fireEvent.click(refused);
55
- (0, _vitest.expect)(handleChange).toHaveBeenCalledTimes(2);
56
- (0, _vitest.expect)(handleChange).toHaveBeenCalledWith(missingResponse, 'DK');
57
- (0, _vitest.expect)(handleChange).toHaveBeenCalledWith(missingResponse, 'RF');
58
- });
59
- (0, _vitest.it)('should not handle keyboard shortcuts when a shortcut is not provided', function () {
60
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
61
- dontKnowButton: dontKnowButton,
62
- refusedButton: refusedButton,
63
- missingResponse: missingResponse,
64
- handleChange: handleChange,
65
- missingShortcut: {
66
- dontKnow: '',
67
- refused: ''
68
- },
69
- missingStrategy: function missingStrategy() {},
70
- shortcut: false
71
- }));
72
- var body = document.body;
73
- _react.fireEvent.click(body, {
74
- key: 'd'
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render, fireEvent } from '@testing-library/react';
3
+ import { MissingPure } from './Missing';
4
+ import { describe, it, expect, vi, afterEach } from 'vitest';
5
+ describe('Missing', () => {
6
+ const handleChanges = vi.fn();
7
+ const missingResponse = {
8
+ name: 'Demo',
9
+ value: '',
10
+ };
11
+ const dontKnowButton = "Don't know";
12
+ const refusedButton = 'Refused';
13
+ afterEach(() => {
14
+ vi.clearAllMocks();
75
15
  });
76
- _react.fireEvent.click(body, {
77
- key: 'r'
16
+ it('should render the "Don\'t Know" and "Refused" buttons', () => {
17
+ const { getByText } = render(_jsx(MissingPure, { dontKnowButton: dontKnowButton, refusedButton: refusedButton, missingResponse: missingResponse, handleChanges: handleChanges, missingShortcut: { dontKnow: '', refused: '' }, missingStrategy: () => { }, shortcut: false }));
18
+ const dontKnow = getByText(dontKnowButton);
19
+ const refused = getByText(refusedButton);
20
+ expect(dontKnow).toBeInTheDocument();
21
+ expect(refused).toBeInTheDocument();
78
22
  });
79
- (0, _vitest.expect)(handleChange).toHaveBeenCalledTimes(0);
80
- });
81
- });
23
+ it('should call the handleChanges function when a button is clicked', () => {
24
+ const { getByText } = render(_jsx(MissingPure, { dontKnowButton: dontKnowButton, refusedButton: refusedButton, missingResponse: missingResponse, handleChanges: handleChanges, missingShortcut: { dontKnow: '', refused: '' }, missingStrategy: () => { }, shortcut: false }));
25
+ const dontKnow = getByText(dontKnowButton);
26
+ const refused = getByText(refusedButton);
27
+ fireEvent.click(dontKnow);
28
+ fireEvent.click(refused);
29
+ expect(handleChanges).toHaveBeenCalledTimes(2);
30
+ expect(handleChanges).toHaveBeenCalledWith([
31
+ { ...missingResponse, value: 'DK' },
32
+ ]);
33
+ expect(handleChanges).toHaveBeenCalledWith([
34
+ { ...missingResponse, value: 'RF' },
35
+ ]);
36
+ });
37
+ it('should not handle keyboard shortcuts when a shortcut is not provided', () => {
38
+ render(_jsx(MissingPure, { dontKnowButton: dontKnowButton, refusedButton: refusedButton, missingResponse: missingResponse, handleChanges: handleChanges, missingShortcut: { dontKnow: '', refused: '' }, missingStrategy: () => { }, shortcut: false }));
39
+ const body = document.body;
40
+ fireEvent.click(body, { key: 'd' });
41
+ fireEvent.click(body, { key: 'r' });
42
+ expect(handleChanges).toHaveBeenCalledTimes(0);
43
+ });
44
+ });
45
+ //# sourceMappingURL=Missing.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Missing.spec.js","sourceRoot":"","sources":["../../../../src/components/shared/Missing/Missing.spec.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE7D,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACxB,MAAM,aAAa,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;IAC9B,MAAM,eAAe,GAAG;QACvB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACT,CAAC;IACF,MAAM,cAAc,GAAG,YAAY,CAAC;IACpC,MAAM,aAAa,GAAG,SAAS,CAAC;IAEhC,SAAS,CAAC,GAAG,EAAE;QACd,EAAE,CAAC,aAAa,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAChE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC3B,KAAC,WAAW,IACX,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAC9C,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC,EACzB,QAAQ,EAAE,KAAK,GACd,CACF,CAAC;QACF,MAAM,QAAQ,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QAC1E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC3B,KAAC,WAAW,IACX,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAC9C,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC,EACzB,QAAQ,EAAE,KAAK,GACd,CACF,CAAC;QACF,MAAM,QAAQ,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;QACzC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC1B,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC/C,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC;YAC1C,EAAE,GAAG,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE;SACnC,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC;YAC1C,EAAE,GAAG,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE;SACnC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,GAAG,EAAE;QAC/E,MAAM,CACL,KAAC,WAAW,IACX,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAC9C,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC,EACzB,QAAQ,EAAE,KAAK,GACd,CACF,CAAC;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC3B,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QACpC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QACpC,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type MouseEventHandler, type ReactPortal } from 'react';
2
+ import type { LunaticError } from '../../../use-lunatic/type';
3
+ type Props = {
4
+ goNext: MouseEventHandler;
5
+ onClose: MouseEventHandler;
6
+ isCritical?: boolean;
7
+ errors: Record<string, LunaticError[]>;
8
+ };
9
+ export declare function ModalControls(props: Props): ReactPortal | null;
10
+ export {};
@@ -1,84 +1,30 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ModalControls = ModalControls;
7
- var _classnames = _interopRequireDefault(require("classnames"));
8
- var _reactDom = _interopRequireDefault(require("react-dom"));
9
- var _Button = require("../Button/Button");
10
- var _i18n = _interopRequireDefault(require("../../../i18n"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- var _react = require("react");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- function ErrorItem(_ref) {
21
- var criticality = _ref.criticality,
22
- errorMessage = _ref.errorMessage;
23
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
24
- className: (0, _classnames["default"])(criticality),
25
- children: errorMessage
26
- });
1
+ import { createElement as _createElement } from "react";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import classnames from 'classnames';
4
+ import {} from 'react';
5
+ import ReactDOM from 'react-dom';
6
+ import { Button } from '../Button/Button';
7
+ import D from '../../../i18n';
8
+ function ErrorItem({ criticality, errorMessage }) {
9
+ return _jsx("li", { className: classnames(criticality), children: errorMessage });
27
10
  }
28
- function ComponentErrors(_ref2) {
29
- var errors = _ref2.errors;
30
- var content = errors.map(function (error, index) {
31
- return /*#__PURE__*/(0, _react.createElement)(ErrorItem, _objectSpread(_objectSpread({}, error), {}, {
32
- key: index
33
- }));
34
- }, []);
35
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
36
- className: (0, _classnames["default"])('errors'),
37
- children: content
38
- });
11
+ function ComponentErrors({ errors }) {
12
+ const content = errors.map(function (error, index) {
13
+ return _createElement(ErrorItem, { ...error, key: index });
14
+ }, []);
15
+ return _jsx("ul", { className: classnames('errors'), children: content });
39
16
  }
40
- function ModalControls(props) {
41
- if (_typeof(props.errors) !== 'object') {
42
- return null;
43
- }
44
- var errors = Object.values(props.errors).flat();
45
- return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
46
- className: "lunatic-modal-controls",
47
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
48
- className: "modal-content",
49
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
- className: "body",
51
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentErrors, {
52
- errors: errors
53
- })
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseOrSkip, _objectSpread({}, props))]
55
- })
56
- }), document.body);
17
+ export function ModalControls(props) {
18
+ if (typeof props.errors !== 'object') {
19
+ return null;
20
+ }
21
+ const errors = Object.values(props.errors).flat();
22
+ return ReactDOM.createPortal(_jsx("div", { className: "lunatic-modal-controls", children: _jsxs("div", { className: "modal-content", children: [_jsx("div", { className: "body", children: _jsx(ComponentErrors, { errors: errors }) }), _jsx(CloseOrSkip, { ...props })] }) }), document.body);
57
23
  }
58
- function CloseOrSkip(_ref3) {
59
- var onClose = _ref3.onClose,
60
- goNext = _ref3.goNext,
61
- isCritical = _ref3.isCritical;
62
- if (isCritical) {
63
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
64
- className: "modal-buttons",
65
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
66
- className: "modal-button",
67
- onClick: onClose,
68
- children: _i18n["default"].MODAL_CORRECT
69
- })
70
- });
71
- }
72
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
73
- className: "modal-buttons",
74
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
75
- className: "modal-button",
76
- onClick: onClose,
77
- children: _i18n["default"].MODAL_CORRECT
78
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
79
- className: "modal-button",
80
- onClick: goNext,
81
- children: _i18n["default"].MODAL_IGNORE
82
- })]
83
- });
84
- }
24
+ function CloseOrSkip({ onClose, goNext, isCritical }) {
25
+ if (isCritical) {
26
+ return (_jsx("div", { className: "modal-buttons", children: _jsx(Button, { className: "modal-button", onClick: onClose, children: D.MODAL_CORRECT }) }));
27
+ }
28
+ return (_jsxs("div", { className: "modal-buttons", children: [_jsx(Button, { className: "modal-button", onClick: onClose, children: D.MODAL_CORRECT }), _jsx(Button, { className: "modal-button", onClick: goNext, children: D.MODAL_IGNORE })] }));
29
+ }
30
+ //# sourceMappingURL=ModalControls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalControls.js","sourceRoot":"","sources":["../../../../src/components/shared/ModalControls/ModalControls.tsx"],"names":[],"mappings":";;AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAA4C,MAAM,OAAO,CAAC;AAEjE,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,CAAC,MAAM,eAAe,CAAC;AAS9B,SAAS,SAAS,CAAC,EAAE,WAAW,EAAE,YAAY,EAAgB;IAC7D,OAAO,aAAI,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,YAAG,YAAY,GAAM,CAAC;AACpE,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,MAAM,EAA8B;IAC9D,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,KAAK,EAAE,KAAK;QAChD,OAAO,eAAC,SAAS,OAAK,KAAK,EAAE,GAAG,EAAE,KAAK,GAAI,CAAC;IAC7C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,aAAI,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAG,OAAO,GAAM,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAY;IACzC,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAElD,OAAO,QAAQ,CAAC,YAAY,CAC3B,cAAK,SAAS,EAAC,wBAAwB,YACtC,eAAK,SAAS,EAAC,eAAe,aAC7B,cAAK,SAAS,EAAC,MAAM,YACpB,KAAC,eAAe,IAAC,MAAM,EAAE,MAAM,GAAI,GAC9B,EACN,KAAC,WAAW,OAAK,KAAK,GAAI,IACrB,GACD,EACN,QAAQ,CAAC,IAAI,CACb,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAS;IAC1D,IAAI,UAAU,EAAE,CAAC;QAChB,OAAO,CACN,cAAK,SAAS,EAAC,eAAe,YAC7B,KAAC,MAAM,IAAC,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,OAAO,YAC/C,CAAC,CAAC,aAAa,GACR,GACJ,CACN,CAAC;IACH,CAAC;IACD,OAAO,CACN,eAAK,SAAS,EAAC,eAAe,aAC7B,KAAC,MAAM,IAAC,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,OAAO,YAC/C,CAAC,CAAC,aAAa,GACR,EACT,KAAC,MAAM,IAAC,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,MAAM,YAC9C,CAAC,CAAC,YAAY,GACP,IACJ,CACN,CAAC;AACH,CAAC"}
@@ -1,69 +1,61 @@
1
- "use strict";
2
-
3
- var _react = require("@testing-library/react");
4
- var _ModalControls = require("./ModalControls");
5
- var _vitest = require("vitest");
6
- var _jsxRuntime = require("react/jsx-runtime");
7
- (0, _vitest.describe)('ModalControls component', function () {
8
- (0, _vitest.it)('should render correctly when there are errors', function () {
9
- var errors = {
10
- field1: [{
11
- id: 'message1',
12
- criticality: 'ERROR',
13
- errorMessage: 'Error message 1',
14
- typeOfControl: 'CONSISTENCY'
15
- }],
16
- field2: [{
17
- id: 'message2',
18
- criticality: 'ERROR',
19
- errorMessage: 'Error message 2',
20
- typeOfControl: 'CONSISTENCY'
21
- }]
22
- };
23
- var goNext = _vitest.vi.fn();
24
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
25
- errors: errors,
26
- goNext: goNext,
27
- onClose: function onClose() {}
28
- })),
29
- getByText = _render.getByText;
30
- (0, _vitest.expect)(getByText('Error message 1')).toBeInTheDocument();
31
- (0, _vitest.expect)(getByText('Error message 2')).toBeInTheDocument();
32
- });
33
- (0, _vitest.it)('should render correctly when there are no errors', function () {
34
- var goNext = _vitest.vi.fn();
35
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
36
- errors: {},
37
- goNext: goNext,
38
- onClose: function onClose() {}
39
- })),
40
- queryByText = _render2.queryByText;
41
- (0, _vitest.expect)(queryByText('Error message 1')).toBeNull();
42
- (0, _vitest.expect)(queryByText('Error message 2')).toBeNull();
43
- });
44
- (0, _vitest.it)('should call the goNext function when the skip button is clicked', function () {
45
- var errors = {
46
- field1: [{
47
- criticality: 'ERROR',
48
- errorMessage: 'Error message 1',
49
- id: 'message1',
50
- typeOfControl: 'CONSISTENCY'
51
- }],
52
- field2: [{
53
- criticality: 'ERROR',
54
- errorMessage: 'Error message 2',
55
- id: 'message2',
56
- typeOfControl: 'CONSISTENCY'
57
- }]
58
- };
59
- var goNext = _vitest.vi.fn();
60
- var _render3 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
61
- errors: errors,
62
- goNext: goNext,
63
- onClose: function onClose() {}
64
- })),
65
- getByText = _render3.getByText;
66
- _react.fireEvent.click(getByText('Ignore'));
67
- (0, _vitest.expect)(goNext).toHaveBeenCalled();
68
- });
69
- });
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fireEvent, render } from '@testing-library/react';
3
+ import { ModalControls } from './ModalControls';
4
+ import { describe, expect, it, vi } from 'vitest';
5
+ describe('ModalControls component', () => {
6
+ it('should render correctly when there are errors', () => {
7
+ const errors = {
8
+ field1: [
9
+ {
10
+ id: 'message1',
11
+ criticality: 'ERROR',
12
+ errorMessage: 'Error message 1',
13
+ typeOfControl: 'CONSISTENCY',
14
+ },
15
+ ],
16
+ field2: [
17
+ {
18
+ id: 'message2',
19
+ criticality: 'ERROR',
20
+ errorMessage: 'Error message 2',
21
+ typeOfControl: 'CONSISTENCY',
22
+ },
23
+ ],
24
+ };
25
+ const goNext = vi.fn();
26
+ const { getByText } = render(_jsx(ModalControls, { errors: errors, goNext: goNext, onClose: () => { } }));
27
+ expect(getByText('Error message 1')).toBeInTheDocument();
28
+ expect(getByText('Error message 2')).toBeInTheDocument();
29
+ });
30
+ it('should render correctly when there are no errors', () => {
31
+ const goNext = vi.fn();
32
+ const { queryByText } = render(_jsx(ModalControls, { errors: {}, goNext: goNext, onClose: () => { } }));
33
+ expect(queryByText('Error message 1')).toBeNull();
34
+ expect(queryByText('Error message 2')).toBeNull();
35
+ });
36
+ it('should call the goNext function when the skip button is clicked', () => {
37
+ const errors = {
38
+ field1: [
39
+ {
40
+ criticality: 'ERROR',
41
+ errorMessage: 'Error message 1',
42
+ id: 'message1',
43
+ typeOfControl: 'CONSISTENCY',
44
+ },
45
+ ],
46
+ field2: [
47
+ {
48
+ criticality: 'ERROR',
49
+ errorMessage: 'Error message 2',
50
+ id: 'message2',
51
+ typeOfControl: 'CONSISTENCY',
52
+ },
53
+ ],
54
+ };
55
+ const goNext = vi.fn();
56
+ const { getByText } = render(_jsx(ModalControls, { errors: errors, goNext: goNext, onClose: () => { } }));
57
+ fireEvent.click(getByText('Ignore'));
58
+ expect(goNext).toHaveBeenCalled();
59
+ });
60
+ });
61
+ //# sourceMappingURL=ModalControls.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalControls.spec.js","sourceRoot":"","sources":["../../../../src/components/shared/ModalControls/ModalControls.spec.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAGlD,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACxD,MAAM,MAAM,GAAG;YACd,MAAM,EAAE;gBACP;oBACC,EAAE,EAAE,UAAU;oBACd,WAAW,EAAE,OAAO;oBACpB,YAAY,EAAE,iBAAiB;oBAC/B,aAAa,EAAE,aAAa;iBAC5B;aACD;YACD,MAAM,EAAE;gBACP;oBACC,EAAE,EAAE,UAAU;oBACd,WAAW,EAAE,OAAO;oBACpB,YAAY,EAAE,iBAAiB;oBAC/B,aAAa,EAAE,aAAa;iBAC5B;aACD;SACwC,CAAC;QAC3C,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACvB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC3B,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CACpE,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACzD,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC3D,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACvB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAC7B,KAAC,aAAa,IAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAChE,CAAC;QACF,MAAM,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAClD,MAAM,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QAC1E,MAAM,MAAM,GAAG;YACd,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,OAAO;oBACpB,YAAY,EAAE,iBAAiB;oBAC/B,EAAE,EAAE,UAAU;oBACd,aAAa,EAAE,aAAa;iBAC5B;aACD;YACD,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,OAAO;oBACpB,YAAY,EAAE,iBAAiB;oBAC/B,EAAE,EAAE,UAAU;oBACd,aAAa,EAAE,aAAa;iBAC5B;aACD;SACwC,CAAC;QAC3C,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACvB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC3B,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CACpE,CAAC;QACF,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,29 +1,9 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Notification = void 0;
7
- var _classnames = _interopRequireDefault(require("classnames"));
8
- var _slottableComponent = require("./HOC/slottableComponent");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- function LunaticNotification(_ref) {
12
- var className = _ref.className,
13
- title = _ref.title,
14
- description = _ref.description;
15
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
16
- className: (0, _classnames["default"])('lunatic-notification', className),
17
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
18
- className: "lunatic-notification-container",
19
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
20
- className: "title",
21
- children: title
22
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
23
- className: "descripttion",
24
- children: description
25
- })]
26
- })
27
- });
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from 'react';
3
+ import classnames from 'classnames';
4
+ import { slottableComponent } from './HOC/slottableComponent';
5
+ function LunaticNotification({ className, title, description }) {
6
+ return (_jsx("div", { className: classnames('lunatic-notification', className), children: _jsxs("div", { className: "lunatic-notification-container", children: [_jsx("div", { className: "title", children: title }), _jsx("div", { className: "descripttion", children: description })] }) }));
28
7
  }
29
- var Notification = exports.Notification = (0, _slottableComponent.slottableComponent)('Notification', LunaticNotification);
8
+ export const Notification = slottableComponent('Notification', LunaticNotification);
9
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../src/components/shared/Notification.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,SAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAS;IACpE,OAAO,CACN,cAAK,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,YAC5D,eAAK,SAAS,EAAC,gCAAgC,aAC9C,cAAK,SAAS,EAAC,OAAO,YAAE,KAAK,GAAO,EACpC,cAAK,SAAS,EAAC,cAAc,YAAE,WAAW,GAAO,IAC5C,GACD,CACN,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAC7C,cAAc,EACd,mBAAmB,CACnB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { LunaticError } from '../../../use-lunatic/type';
3
+ import type { LunaticComponentProps } from '../../type';
4
+ export type RadioGroupProps = Pick<LunaticComponentProps<'Radio'>, 'id' | 'options' | 'value' | 'checkboxStyle' | 'label' | 'shortcut' | 'className' | 'disabled' | 'readOnly' | 'description' | 'declarations'> & {
5
+ errors?: LunaticError[];
6
+ onSelect: (v: string | null) => void;
7
+ clearable?: boolean;
8
+ };
9
+ export declare const RadioGroup: import("react").ComponentType<RadioGroupProps>;