@inseefr/lunatic 3.5.0-rc.3 → 3.5.1-rc.1743691949561

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 (434) hide show
  1. package/components/Datepicker/Datepicker.js +1 -1
  2. package/components/Datepicker/Datepicker.js.map +1 -1
  3. package/components/Duration/Duration.js +3 -2
  4. package/components/Duration/Duration.js.map +1 -1
  5. package/components/Duration/durationUtils.d.ts +0 -1
  6. package/components/Duration/durationUtils.js.map +1 -1
  7. package/components/Duration/getDurationFromValue.d.ts +3 -2
  8. package/components/Duration/getDurationFromValue.js.map +1 -1
  9. package/components/Input/Input.js +6 -3
  10. package/components/Input/Input.js.map +1 -1
  11. package/components/Input/Input.spec.js +25 -0
  12. package/components/Input/Input.spec.js.map +1 -1
  13. package/components/InputNumber/InputNumber.js +1 -1
  14. package/components/InputNumber/InputNumber.js.map +1 -1
  15. package/components/InputNumber/InputNumber.spec.js +9 -1
  16. package/components/InputNumber/InputNumber.spec.js.map +1 -1
  17. package/components/InputNumber/InputNumberThousand.d.ts +2 -1
  18. package/components/InputNumber/InputNumberThousand.js +8 -2
  19. package/components/InputNumber/InputNumberThousand.js.map +1 -1
  20. package/components/Loop/Loop.js +1 -1
  21. package/components/Loop/Loop.js.map +1 -1
  22. package/components/Loop/Loop.spec.d.ts +1 -0
  23. package/components/Loop/Loop.spec.js +39 -0
  24. package/components/Loop/Loop.spec.js.map +1 -0
  25. package/components/Roundabout/CustomRoundabout.d.ts +1 -1
  26. package/components/Roundabout/CustomRoundabout.js +4 -3
  27. package/components/Roundabout/CustomRoundabout.js.map +1 -1
  28. package/components/Roundabout/roundabout.spec.js +3 -1
  29. package/components/Roundabout/roundabout.spec.js.map +1 -1
  30. package/components/Textarea/Textarea.js +4 -1
  31. package/components/Textarea/Textarea.js.map +1 -1
  32. package/components/Textarea/Textarea.spec.js +13 -0
  33. package/components/Textarea/Textarea.spec.js.map +1 -1
  34. package/components/shared/CharactersCount/CharactersCount.d.ts +7 -0
  35. package/components/shared/CharactersCount/CharactersCount.js +20 -0
  36. package/components/shared/CharactersCount/CharactersCount.js.map +1 -0
  37. package/components/shared/CharactersCount/CharactersCount.spec.d.ts +1 -0
  38. package/components/shared/CharactersCount/CharactersCount.spec.js +28 -0
  39. package/components/shared/CharactersCount/CharactersCount.spec.js.map +1 -0
  40. package/components/shared/Label/Label.js +1 -1
  41. package/components/shared/Label/Label.js.map +1 -1
  42. package/components/shared/Label/Label.spec.js +11 -3
  43. package/components/shared/Label/Label.spec.js.map +1 -1
  44. package/components/shared/utils/getCharactersCountId.d.ts +4 -0
  45. package/components/shared/utils/getCharactersCountId.js +10 -0
  46. package/components/shared/utils/getCharactersCountId.js.map +1 -0
  47. package/components/type.d.ts +3 -3
  48. package/esm/components/Datepicker/Datepicker.js +1 -1
  49. package/esm/components/Datepicker/Datepicker.js.map +1 -1
  50. package/esm/components/Duration/Duration.js +3 -2
  51. package/esm/components/Duration/Duration.js.map +1 -1
  52. package/esm/components/Duration/durationUtils.d.ts +0 -1
  53. package/esm/components/Duration/durationUtils.js.map +1 -1
  54. package/esm/components/Duration/getDurationFromValue.d.ts +3 -2
  55. package/esm/components/Duration/getDurationFromValue.js.map +1 -1
  56. package/esm/components/Input/Input.js +6 -3
  57. package/esm/components/Input/Input.js.map +1 -1
  58. package/esm/components/Input/Input.spec.js +25 -0
  59. package/esm/components/Input/Input.spec.js.map +1 -1
  60. package/esm/components/InputNumber/InputNumber.js +1 -1
  61. package/esm/components/InputNumber/InputNumber.js.map +1 -1
  62. package/esm/components/InputNumber/InputNumber.spec.js +9 -1
  63. package/esm/components/InputNumber/InputNumber.spec.js.map +1 -1
  64. package/esm/components/InputNumber/InputNumberThousand.d.ts +2 -1
  65. package/esm/components/InputNumber/InputNumberThousand.js +8 -2
  66. package/esm/components/InputNumber/InputNumberThousand.js.map +1 -1
  67. package/esm/components/Loop/Loop.js +1 -1
  68. package/esm/components/Loop/Loop.js.map +1 -1
  69. package/esm/components/Loop/Loop.spec.d.ts +1 -0
  70. package/esm/components/Loop/Loop.spec.js +37 -0
  71. package/esm/components/Loop/Loop.spec.js.map +1 -0
  72. package/esm/components/Roundabout/CustomRoundabout.d.ts +1 -1
  73. package/esm/components/Roundabout/CustomRoundabout.js +4 -3
  74. package/esm/components/Roundabout/CustomRoundabout.js.map +1 -1
  75. package/esm/components/Roundabout/roundabout.spec.js +3 -1
  76. package/esm/components/Roundabout/roundabout.spec.js.map +1 -1
  77. package/esm/components/Textarea/Textarea.js +4 -1
  78. package/esm/components/Textarea/Textarea.js.map +1 -1
  79. package/esm/components/Textarea/Textarea.spec.js +13 -0
  80. package/esm/components/Textarea/Textarea.spec.js.map +1 -1
  81. package/esm/components/shared/CharactersCount/CharactersCount.d.ts +7 -0
  82. package/esm/components/shared/CharactersCount/CharactersCount.js +15 -0
  83. package/esm/components/shared/CharactersCount/CharactersCount.js.map +1 -0
  84. package/esm/components/shared/CharactersCount/CharactersCount.spec.d.ts +1 -0
  85. package/esm/components/shared/CharactersCount/CharactersCount.spec.js +26 -0
  86. package/esm/components/shared/CharactersCount/CharactersCount.spec.js.map +1 -0
  87. package/esm/components/shared/Label/Label.js +1 -1
  88. package/esm/components/shared/Label/Label.js.map +1 -1
  89. package/esm/components/shared/Label/Label.spec.js +11 -3
  90. package/esm/components/shared/Label/Label.spec.js.map +1 -1
  91. package/esm/components/shared/utils/getCharactersCountId.d.ts +4 -0
  92. package/esm/components/shared/utils/getCharactersCountId.js +7 -0
  93. package/esm/components/shared/utils/getCharactersCountId.js.map +1 -0
  94. package/esm/components/type.d.ts +3 -3
  95. package/esm/index.d.ts +0 -1
  96. package/esm/index.js +0 -1
  97. package/esm/index.js.map +1 -1
  98. package/esm/main.css +20 -0
  99. package/esm/main.css.map +1 -1
  100. package/esm/stories/overview/sourceWithHierarchy.json +5151 -0
  101. package/esm/tests/utils/lunatic.d.ts +0 -4
  102. package/esm/tests/utils/lunatic.js +0 -4
  103. package/esm/tests/utils/lunatic.js.map +1 -1
  104. package/esm/type.source.d.ts +6 -6
  105. package/esm/type.source.js +0 -1
  106. package/esm/type.source.js.map +1 -1
  107. package/esm/use-lunatic/commons/fill-components/fill-components.d.ts +2 -0
  108. package/esm/use-lunatic/commons/fill-components/fill-components.js +1 -1
  109. package/esm/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
  110. package/esm/use-lunatic/commons/page.js +8 -0
  111. package/esm/use-lunatic/commons/page.js.map +1 -1
  112. package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +1 -1
  113. package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +111 -14
  114. package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
  115. package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +3 -3
  116. package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
  117. package/esm/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
  118. package/esm/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
  119. package/esm/use-lunatic/commons/variables/lunatic-variables-store.d.ts +2 -2
  120. package/esm/use-lunatic/commons/variables/lunatic-variables-store.js +5 -3
  121. package/esm/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
  122. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +181 -9
  123. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  124. package/esm/use-lunatic/hooks/use-page-has-response.js +50 -35
  125. package/esm/use-lunatic/hooks/use-page-has-response.js.map +1 -1
  126. package/esm/use-lunatic/hooks/useOverview.d.ts +1 -1
  127. package/esm/use-lunatic/hooks/useOverview.js +19 -14
  128. package/esm/use-lunatic/hooks/useOverview.js.map +1 -1
  129. package/esm/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
  130. package/esm/use-lunatic/hooks/useOverview.spec.js +38 -0
  131. package/esm/use-lunatic/hooks/useOverview.spec.js.map +1 -0
  132. package/esm/use-lunatic/props/getComponentTypeProps.d.ts +2 -1
  133. package/esm/use-lunatic/props/propOptions.d.ts +2 -1
  134. package/esm/use-lunatic/props/propOptions.js +23 -3
  135. package/esm/use-lunatic/props/propOptions.js.map +1 -1
  136. package/esm/use-lunatic/props/propOptions.spec.js +46 -5
  137. package/esm/use-lunatic/props/propOptions.spec.js.map +1 -1
  138. package/esm/use-lunatic/props/propValue.js +18 -6
  139. package/esm/use-lunatic/props/propValue.js.map +1 -1
  140. package/esm/use-lunatic/props/propValue.spec.js +97 -2
  141. package/esm/use-lunatic/props/propValue.spec.js.map +1 -1
  142. package/esm/use-lunatic/reducer/reducerInitializer.d.ts +2 -2
  143. package/esm/use-lunatic/reducer/reducerInitializer.js +25 -32
  144. package/esm/use-lunatic/reducer/reducerInitializer.js.map +1 -1
  145. package/esm/use-lunatic/test.utils.d.ts +2 -0
  146. package/esm/use-lunatic/test.utils.js +13 -0
  147. package/esm/use-lunatic/test.utils.js.map +1 -0
  148. package/esm/use-lunatic/type.d.ts +18 -8
  149. package/esm/use-lunatic/use-lunatic.d.ts +1 -2
  150. package/esm/use-lunatic/use-lunatic.js +2 -3
  151. package/esm/use-lunatic/use-lunatic.js.map +1 -1
  152. package/esm/utils/cast.d.ts +19 -0
  153. package/esm/utils/cast.js +63 -0
  154. package/esm/utils/cast.js.map +1 -0
  155. package/esm/utils/constants/variable-status.d.ts +0 -4
  156. package/esm/utils/constants/variable-status.js +0 -4
  157. package/esm/utils/constants/variable-status.js.map +1 -1
  158. package/esm/utils/variables.spec.js +0 -8
  159. package/esm/utils/variables.spec.js.map +1 -1
  160. package/index.d.ts +0 -1
  161. package/index.js +1 -3
  162. package/index.js.map +1 -1
  163. package/main.css +20 -0
  164. package/main.css.map +1 -1
  165. package/package.json +60 -69
  166. package/src/components/Datepicker/Datepicker.tsx +1 -1
  167. package/src/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +2 -2
  168. package/src/components/Duration/Duration.test.tsx +52 -0
  169. package/src/components/Duration/Duration.tsx +17 -4
  170. package/src/components/Duration/durationUtils.ts +0 -2
  171. package/src/components/Duration/getDurationFromValue.ts +4 -3
  172. package/src/components/Input/Input.spec.tsx +34 -0
  173. package/src/components/Input/Input.tsx +26 -18
  174. package/src/components/Input/__snapshots__/Input.spec.tsx.snap +38 -19
  175. package/src/components/InputNumber/InputNumber.spec.tsx +15 -1
  176. package/src/components/InputNumber/InputNumber.tsx +1 -0
  177. package/src/components/InputNumber/InputNumberThousand.tsx +11 -1
  178. package/src/components/Loop/Loop.spec.tsx +77 -0
  179. package/src/components/Loop/Loop.tsx +1 -1
  180. package/src/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +42 -20
  181. package/src/components/Roundabout/CustomRoundabout.tsx +13 -4
  182. package/src/components/Roundabout/roundabout.spec.tsx +3 -0
  183. package/src/components/Textarea/Textarea.spec.tsx +18 -0
  184. package/src/components/Textarea/Textarea.tsx +21 -13
  185. package/src/components/Textarea/__snapshots__/Textarea.spec.tsx.snap +21 -11
  186. package/src/components/shared/CharactersCount/CharactersCount.spec.tsx +31 -0
  187. package/src/components/shared/CharactersCount/CharactersCount.tsx +27 -0
  188. package/src/components/shared/Label/Label.spec.tsx +15 -3
  189. package/src/components/shared/Label/Label.tsx +1 -1
  190. package/src/components/shared/utils/getCharactersCountId.test.ts +14 -0
  191. package/src/components/shared/utils/getCharactersCountId.ts +6 -0
  192. package/src/components/type.ts +3 -2
  193. package/src/css/components/Input.scss +10 -0
  194. package/src/css/components/Roundabout.scss +10 -0
  195. package/src/index.ts +0 -1
  196. package/src/stories/accordion/source.json +1 -5
  197. package/src/stories/behaviour/cleaning/cleaning.stories.jsx +11 -0
  198. package/src/stories/behaviour/cleaning/loop.json +246 -0
  199. package/src/stories/behaviour/cleaning/source-loop.json +3 -15
  200. package/src/stories/behaviour/cleaning/source.json +2 -10
  201. package/src/stories/behaviour/controls/boucles-n.json +2 -10
  202. package/src/stories/behaviour/controls/loop.json +2 -10
  203. package/src/stories/behaviour/controls/roundabout.json +3 -15
  204. package/src/stories/behaviour/controls/simple-numeric.json +19 -95
  205. package/src/stories/behaviour/controls/simple.json +7 -35
  206. package/src/stories/behaviour/filter/dataLoop.json +0 -8
  207. package/src/stories/behaviour/filter/source.json +0 -12
  208. package/src/stories/behaviour/filter/sourceLoop.json +0 -12
  209. package/src/stories/behaviour/missing/source.json +12 -60
  210. package/src/stories/behaviour/others/V2_DeclarationsSimples.json +14 -70
  211. package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +5 -25
  212. package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +107 -535
  213. package/src/stories/behaviour/others/V2_TCMRallyeGames.json +33 -165
  214. package/src/stories/behaviour/others/test-dylan.json +5 -25
  215. package/src/stories/behaviour/paste/source.json +1 -5
  216. package/src/stories/behaviour/performance/performance.stories.jsx +2 -2
  217. package/src/stories/behaviour/performance/source.json +4 -20
  218. package/src/stories/behaviour/resizing/source-resizing-cleaning.json +2 -10
  219. package/src/stories/behaviour/resizing/source.json +5 -25
  220. package/src/stories/checkbox-boolean/source.json +1 -5
  221. package/src/stories/checkbox-group/source.json +16 -80
  222. package/src/stories/checkbox-group/sourceCondition.json +3 -15
  223. package/src/stories/checkbox-group/sourceDetail.json +18 -90
  224. package/src/stories/checkbox-group/sourceLoop.json +2 -10
  225. package/src/stories/checkbox-one/source.json +1 -5
  226. package/src/stories/checkbox-one/sourceDetail.json +2 -10
  227. package/src/stories/date-picker/source.json +1 -5
  228. package/src/stories/declaration/source.json +2 -10
  229. package/src/stories/disabled/data.json +0 -16
  230. package/src/stories/disabled/source.json +7 -35
  231. package/src/stories/dropdown/data.json +2 -10
  232. package/src/stories/dropdown/source.json +2 -10
  233. package/src/stories/duration/mois.json +1 -5
  234. package/src/stories/duration/time.json +1 -5
  235. package/src/stories/filter-description/source-options.json +3 -15
  236. package/src/stories/input/source.json +1 -5
  237. package/src/stories/input-number/input-number.stories.jsx +5 -0
  238. package/src/stories/input-number/source-big-number.json +27 -0
  239. package/src/stories/input-number/source-euro.json +2 -6
  240. package/src/stories/input-number/source.json +1 -5
  241. package/src/stories/loop/source-bloc.json +2 -10
  242. package/src/stories/loop/source-paginated.json +2 -10
  243. package/src/stories/loop/source-roster.json +2 -10
  244. package/src/stories/loop/source-with-header.json +2 -10
  245. package/src/stories/overview/dataLoop.json +24 -120
  246. package/src/stories/overview/overview.stories.jsx +9 -0
  247. package/src/stories/overview/source.json +1 -5
  248. package/src/stories/overview/sourceLoop.json +24 -120
  249. package/src/stories/overview/sourceWithHierarchy.json +164 -820
  250. package/src/stories/pairwise/source.json +5 -25
  251. package/src/stories/question/source.json +2 -10
  252. package/src/stories/questionnaires/logement/data.json +0 -1288
  253. package/src/stories/questionnaires/logement/source-sequence.json +564 -2820
  254. package/src/stories/questionnaires/logement/source-sum.json +280 -1400
  255. package/src/stories/questionnaires/logement/source.json +564 -2820
  256. package/src/stories/questionnaires/recensement/source.json +106 -530
  257. package/src/stories/questionnaires/rp/source.json +8 -40
  258. package/src/stories/questionnaires/simpsons/source.json +104 -520
  259. package/src/stories/radio/source.json +1 -5
  260. package/src/stories/radio/sourceCondition.json +2 -10
  261. package/src/stories/radio/sourceDetail.json +2 -10
  262. package/src/stories/radio/sourceHorizontal.json +1 -5
  263. package/src/stories/roundabout/data1.json +0 -12
  264. package/src/stories/roundabout/data2.json +0 -16
  265. package/src/stories/roundabout/source.json +11 -35
  266. package/src/stories/suggester/source-arbitrary-response.json +6 -30
  267. package/src/stories/suggester/source-error.json +6 -30
  268. package/src/stories/suggester/source-multiline.json +0 -16
  269. package/src/stories/suggester/source-option-responses.json +5 -25
  270. package/src/stories/suggester/source.json +7 -35
  271. package/src/stories/summary/data.json +0 -16
  272. package/src/stories/summary/source.json +7 -35
  273. package/src/stories/switch/data-forced.json +2 -10
  274. package/src/stories/switch/source.json +4 -20
  275. package/src/stories/table/source-colspan.json +8 -40
  276. package/src/stories/table/table-dynamique.json +1 -5
  277. package/src/stories/text/source-roster.json +3 -15
  278. package/src/stories/text/source-table.json +9 -45
  279. package/src/stories/textarea/source.json +1 -5
  280. package/src/stories/utils/{SchemaValidator.tsx → SchemaValidator.jsx} +1 -1
  281. package/src/stories/utils/{orchestrator.tsx → orchestrator.jsx} +9 -13
  282. package/src/stories/utils/{overview.tsx → overview.jsx} +0 -2
  283. package/src/tests/utils/lunatic.ts +0 -4
  284. package/src/type.source.ts +8 -7
  285. package/src/use-lunatic/__snapshots__/use-lunatic.test.ts.snap +0 -1159
  286. package/src/use-lunatic/commons/fill-components/fill-components.ts +4 -1
  287. package/src/use-lunatic/commons/page.ts +10 -0
  288. package/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.ts +182 -24
  289. package/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.ts +2 -5
  290. package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +0 -12
  291. package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +207 -9
  292. package/src/use-lunatic/commons/variables/lunatic-variables-store.ts +7 -4
  293. package/src/use-lunatic/hooks/use-page-has-response.test.ts +200 -0
  294. package/src/use-lunatic/hooks/use-page-has-response.ts +67 -44
  295. package/src/use-lunatic/hooks/useOverview.spec.ts +42 -0
  296. package/src/use-lunatic/hooks/useOverview.ts +41 -18
  297. package/src/use-lunatic/props/propOptions.spec.ts +71 -5
  298. package/src/use-lunatic/props/propOptions.ts +23 -3
  299. package/src/use-lunatic/props/propValue.spec.ts +105 -2
  300. package/src/use-lunatic/props/propValue.ts +26 -8
  301. package/src/use-lunatic/reducer/reducerInitializer.tsx +31 -41
  302. package/src/use-lunatic/test.utils.ts +17 -0
  303. package/src/use-lunatic/type.ts +18 -8
  304. package/src/use-lunatic/use-lunatic.test.ts +15 -44
  305. package/src/use-lunatic/use-lunatic.ts +7 -7
  306. package/src/utils/cast.ts +67 -0
  307. package/src/utils/constants/variable-status.ts +0 -4
  308. package/src/utils/variables.spec.ts +0 -8
  309. package/stories/overview/sourceWithHierarchy.json +5151 -0
  310. package/tests/utils/lunatic.d.ts +0 -4
  311. package/tests/utils/lunatic.js +0 -4
  312. package/tests/utils/lunatic.js.map +1 -1
  313. package/tsconfig.build.tsbuildinfo +1 -1
  314. package/type.source.d.ts +6 -6
  315. package/type.source.js +0 -1
  316. package/type.source.js.map +1 -1
  317. package/use-lunatic/commons/fill-components/fill-components.d.ts +2 -0
  318. package/use-lunatic/commons/fill-components/fill-components.js +1 -1
  319. package/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
  320. package/use-lunatic/commons/page.js +8 -0
  321. package/use-lunatic/commons/page.js.map +1 -1
  322. package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +1 -1
  323. package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +111 -14
  324. package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
  325. package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +3 -3
  326. package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
  327. package/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
  328. package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
  329. package/use-lunatic/commons/variables/lunatic-variables-store.d.ts +2 -2
  330. package/use-lunatic/commons/variables/lunatic-variables-store.js +5 -3
  331. package/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
  332. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +204 -9
  333. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  334. package/use-lunatic/hooks/use-page-has-response.js +49 -34
  335. package/use-lunatic/hooks/use-page-has-response.js.map +1 -1
  336. package/use-lunatic/hooks/useOverview.d.ts +1 -1
  337. package/use-lunatic/hooks/useOverview.js +19 -14
  338. package/use-lunatic/hooks/useOverview.js.map +1 -1
  339. package/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
  340. package/use-lunatic/hooks/useOverview.spec.js +43 -0
  341. package/use-lunatic/hooks/useOverview.spec.js.map +1 -0
  342. package/use-lunatic/props/getComponentTypeProps.d.ts +2 -1
  343. package/use-lunatic/props/propOptions.d.ts +2 -1
  344. package/use-lunatic/props/propOptions.js +23 -3
  345. package/use-lunatic/props/propOptions.js.map +1 -1
  346. package/use-lunatic/props/propOptions.spec.js +46 -5
  347. package/use-lunatic/props/propOptions.spec.js.map +1 -1
  348. package/use-lunatic/props/propValue.js +18 -6
  349. package/use-lunatic/props/propValue.js.map +1 -1
  350. package/use-lunatic/props/propValue.spec.js +97 -2
  351. package/use-lunatic/props/propValue.spec.js.map +1 -1
  352. package/use-lunatic/reducer/reducerInitializer.d.ts +2 -2
  353. package/use-lunatic/reducer/reducerInitializer.js +25 -32
  354. package/use-lunatic/reducer/reducerInitializer.js.map +1 -1
  355. package/use-lunatic/test.utils.d.ts +2 -0
  356. package/use-lunatic/test.utils.js +17 -0
  357. package/use-lunatic/test.utils.js.map +1 -0
  358. package/use-lunatic/type.d.ts +18 -8
  359. package/use-lunatic/use-lunatic.d.ts +1 -2
  360. package/use-lunatic/use-lunatic.js +2 -3
  361. package/use-lunatic/use-lunatic.js.map +1 -1
  362. package/utils/cast.d.ts +19 -0
  363. package/utils/cast.js +70 -0
  364. package/utils/cast.js.map +1 -0
  365. package/utils/constants/variable-status.d.ts +0 -4
  366. package/utils/constants/variable-status.js +1 -5
  367. package/utils/constants/variable-status.js.map +1 -1
  368. package/utils/variables.spec.js +0 -8
  369. package/utils/variables.spec.js.map +1 -1
  370. package/constants/component-types.d.ts +0 -1
  371. package/constants/component-types.js +0 -5
  372. package/constants/component-types.js.map +0 -1
  373. package/constants/declarations.d.ts +0 -9
  374. package/constants/declarations.js +0 -15
  375. package/constants/declarations.js.map +0 -1
  376. package/constants/event-types.d.ts +0 -10
  377. package/constants/event-types.js +0 -16
  378. package/constants/event-types.js.map +0 -1
  379. package/constants/index.d.ts +0 -5
  380. package/constants/index.js +0 -22
  381. package/constants/index.js.map +0 -1
  382. package/constants/indexedDBStore.d.ts +0 -21
  383. package/constants/indexedDBStore.js +0 -22
  384. package/constants/indexedDBStore.js.map +0 -1
  385. package/constants/supported-preferences.d.ts +0 -1
  386. package/constants/supported-preferences.js +0 -36
  387. package/constants/supported-preferences.js.map +0 -1
  388. package/constants/value-types.d.ts +0 -5
  389. package/constants/value-types.js +0 -9
  390. package/constants/value-types.js.map +0 -1
  391. package/constants/variable-types.d.ts +0 -2
  392. package/constants/variable-types.js +0 -8
  393. package/constants/variable-types.js.map +0 -1
  394. package/esm/constants/component-types.d.ts +0 -1
  395. package/esm/constants/component-types.js +0 -2
  396. package/esm/constants/component-types.js.map +0 -1
  397. package/esm/constants/declarations.d.ts +0 -9
  398. package/esm/constants/declarations.js +0 -12
  399. package/esm/constants/declarations.js.map +0 -1
  400. package/esm/constants/event-types.d.ts +0 -10
  401. package/esm/constants/event-types.js +0 -13
  402. package/esm/constants/event-types.js.map +0 -1
  403. package/esm/constants/index.d.ts +0 -5
  404. package/esm/constants/index.js +0 -6
  405. package/esm/constants/index.js.map +0 -1
  406. package/esm/constants/indexedDBStore.d.ts +0 -21
  407. package/esm/constants/indexedDBStore.js +0 -19
  408. package/esm/constants/indexedDBStore.js.map +0 -1
  409. package/esm/constants/supported-preferences.d.ts +0 -1
  410. package/esm/constants/supported-preferences.js +0 -10
  411. package/esm/constants/supported-preferences.js.map +0 -1
  412. package/esm/constants/value-types.d.ts +0 -5
  413. package/esm/constants/value-types.js +0 -6
  414. package/esm/constants/value-types.js.map +0 -1
  415. package/esm/constants/variable-types.d.ts +0 -2
  416. package/esm/constants/variable-types.js +0 -5
  417. package/esm/constants/variable-types.js.map +0 -1
  418. package/esm/utils/getArticulation.d.ts +0 -58
  419. package/esm/utils/getArticulation.js +0 -78
  420. package/esm/utils/getArticulation.js.map +0 -1
  421. package/src/constants/component-types.ts +0 -1
  422. package/src/constants/declarations.ts +0 -14
  423. package/src/constants/event-types.ts +0 -13
  424. package/src/constants/index.ts +0 -5
  425. package/src/constants/indexedDBStore.ts +0 -20
  426. package/src/constants/supported-preferences.ts +0 -10
  427. package/src/constants/value-types.ts +0 -5
  428. package/src/constants/variable-types.ts +0 -4
  429. package/src/stories/behaviour/articulation/articulation.stories.tsx +0 -108
  430. package/src/stories/behaviour/articulation/roundabout.json +0 -348
  431. package/src/utils/getArticulation.ts +0 -117
  432. package/utils/getArticulation.d.ts +0 -58
  433. package/utils/getArticulation.js +0 -77
  434. package/utils/getArticulation.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Cast functions that force an unknown type to a specific type
3
+ */
4
+ /**
5
+ * Force a number (throw if it cannot be converted)
6
+ */
7
+ export declare function castNumber(v: unknown): number;
8
+ /**
9
+ * Force a number, with a default value if an unmanageable type is encountered
10
+ */
11
+ export declare const castNumberWithDefault: (initial?: number) => (v: unknown) => number;
12
+ /**
13
+ * Force a bool
14
+ */
15
+ export declare function castBool(v: unknown): boolean;
16
+ /**
17
+ * Force a string
18
+ */
19
+ export declare function castString(v: unknown): string;
package/utils/cast.js ADDED
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /**
3
+ * Cast functions that force an unknown type to a specific type
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.castNumberWithDefault = void 0;
7
+ exports.castNumber = castNumber;
8
+ exports.castBool = castBool;
9
+ exports.castString = castString;
10
+ /**
11
+ * Force a number (throw if it cannot be converted)
12
+ */
13
+ function castNumber(v) {
14
+ if (typeof v === 'number') {
15
+ return v;
16
+ }
17
+ if (typeof v === 'string') {
18
+ return parseInt(v, 10);
19
+ }
20
+ if (Array.isArray(v) && v.length > 0) {
21
+ return castNumber(v[0]);
22
+ }
23
+ throw new Error(`Cannot cast "${v}" to number`);
24
+ }
25
+ /**
26
+ * Force a number, with a default value if an unmanageable type is encountered
27
+ */
28
+ const castNumberWithDefault = (initial = 0) => (v) => {
29
+ try {
30
+ return castNumber(v);
31
+ }
32
+ catch {
33
+ return initial;
34
+ }
35
+ };
36
+ exports.castNumberWithDefault = castNumberWithDefault;
37
+ /**
38
+ * Force a bool
39
+ */
40
+ function castBool(v) {
41
+ if (typeof v === 'boolean') {
42
+ return v;
43
+ }
44
+ if (Array.isArray(v) && v.length > 0) {
45
+ return castBool(v[0]);
46
+ }
47
+ if (Array.isArray(v)) {
48
+ return false;
49
+ }
50
+ return Boolean(v);
51
+ }
52
+ /**
53
+ * Force a string
54
+ */
55
+ function castString(v) {
56
+ if (typeof v === 'string') {
57
+ return v;
58
+ }
59
+ if (typeof v === 'number') {
60
+ return v.toString();
61
+ }
62
+ if (Array.isArray(v)) {
63
+ return v.map(castString).join(', ');
64
+ }
65
+ if (!v) {
66
+ return '';
67
+ }
68
+ return v.toString();
69
+ }
70
+ //# sourceMappingURL=cast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cast.js","sourceRoot":"","sources":["../src/utils/cast.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAKH,gCAWC;AAkBD,4BAWC;AAKD,gCAcC;AA9DD;;GAEG;AACH,SAAgB,UAAU,CAAC,CAAU;IACpC,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,CAAC,CAAC;IACV,CAAC;IACD,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACI,MAAM,qBAAqB,GACjC,CAAC,UAAkB,CAAC,EAAE,EAAE,CACxB,CAAC,CAAU,EAAU,EAAE;IACtB,IAAI,CAAC;QACJ,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,OAAO,CAAC;IAChB,CAAC;AACF,CAAC,CAAC;AARU,QAAA,qBAAqB,yBAQ/B;AAEH;;GAEG;AACH,SAAgB,QAAQ,CAAC,CAAU;IAClC,IAAI,OAAO,CAAC,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,CAAC,CAAC;IACV,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,CAAU;IACpC,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,CAAC,CAAC;IACV,CAAC;IACD,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,CAAC,CAAC,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACX,CAAC;IACD,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;AACrB,CAAC"}
@@ -1,5 +1 @@
1
- export declare const PREVIOUS: "PREVIOUS";
2
1
  export declare const COLLECTED: "COLLECTED";
3
- export declare const FORCED: "FORCED";
4
- export declare const EDITED: "EDITED";
5
- export declare const INPUTTED: "INPUTTED";
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INPUTTED = exports.EDITED = exports.FORCED = exports.COLLECTED = exports.PREVIOUS = void 0;
4
- exports.PREVIOUS = 'PREVIOUS';
3
+ exports.COLLECTED = void 0;
5
4
  exports.COLLECTED = 'COLLECTED';
6
- exports.FORCED = 'FORCED';
7
- exports.EDITED = 'EDITED';
8
- exports.INPUTTED = 'INPUTTED';
9
5
  //# sourceMappingURL=variable-status.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"variable-status.js","sourceRoot":"","sources":["../../src/utils/constants/variable-status.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,UAAmB,CAAC;AAC/B,QAAA,SAAS,GAAG,WAAoB,CAAC;AACjC,QAAA,MAAM,GAAG,QAAiB,CAAC;AAC3B,QAAA,MAAM,GAAG,QAAiB,CAAC;AAC3B,QAAA,QAAQ,GAAG,UAAmB,CAAC"}
1
+ {"version":3,"file":"variable-status.js","sourceRoot":"","sources":["../../src/utils/constants/variable-status.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,WAAoB,CAAC"}
@@ -15,10 +15,6 @@ const data = {
15
15
  },
16
16
  PRENOMS: {
17
17
  COLLECTED: ['Paul', 'Pierre'],
18
- EDITED: [],
19
- INPUTTED: [],
20
- FORCED: [],
21
- PREVIOUS: [],
22
18
  },
23
19
  AGE: {},
24
20
  },
@@ -45,10 +41,6 @@ const loopCollectedVariable = {
45
41
  variableType: 'COLLECTED',
46
42
  values: {
47
43
  COLLECTED: [],
48
- PREVIOUS: [],
49
- FORCED: [],
50
- EDITED: [],
51
- INPUTTED: [],
52
44
  },
53
45
  name: 'PRENOMS',
54
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"variables.spec.js","sourceRoot":"","sources":["../src/utils/variables.spec.ts"],"names":[],"mappings":";;AAAA,mCAA8C;AAC9C,2CAAsD;AAGtD,MAAM,IAAI,GAAG;IACZ,QAAQ,EAAE;QACT,OAAO,EAAE,aAAa;KACtB;IACD,UAAU,EAAE;QACX,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;KAC5B;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,SAAS,EAAE,CAAC;SACZ;QACD,OAAO,EAAE;YACR,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;YAC7B,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;SACZ;QACD,GAAG,EAAE,EAAE;KACP;CACqB,CAAC;AAExB,MAAM,gBAAgB,GAAG;IACxB,YAAY,EAAE,UAAU;IACxB,IAAI,EAAE,SAAS;CACI,CAAC;AAErB,MAAM,kBAAkB,GAAG;IAC1B,YAAY,EAAE,YAAY;IAC1B,mBAAmB,EAAE,CAAC,SAAS,CAAC;IAChC,UAAU,EAAE;QACX,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,SAAS;KAChB;IACD,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,SAAS;CACD,CAAC;AAErB,MAAM,uBAAuB,GAAG;IAC/B,YAAY,EAAE,WAAW;IACzB,IAAI,EAAE,QAAQ;CACK,CAAC;AAErB,MAAM,qBAAqB,GAAG;IAC7B,YAAY,EAAE,WAAW;IACzB,MAAM,EAAE;QACP,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,EAAE;KACZ;IACD,IAAI,EAAE,SAAS;CACI,CAAC;AAErB,MAAM,sBAAsB,GAAG;IAC9B,YAAY,EAAE,WAAW;IACzB,IAAI,EAAE,KAAK;CACQ,CAAC;AAErB,IAAA,iBAAQ,EAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,IAAA,WAAE,EAAC,8BAA8B,EAAE,GAAG,EAAE;QACvC,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAC9D,aAAa,CACb,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,gCAAgC,EAAE,GAAG,EAAE;QACzC,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;YACjE,MAAM;YACN,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,6CAA6C,EAAE,GAAG,EAAE;QACtD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,mDAAmD,EAAE,GAAG,EAAE;QAC5D,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;YACpE,MAAM;YACN,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,6CAA6C,EAAE,GAAG,EAAE;QACtD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CACpE,SAAS,CACT,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,uCAAuC,EAAE,GAAG,EAAE;QAChD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,uBAAuB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"variables.spec.js","sourceRoot":"","sources":["../src/utils/variables.spec.ts"],"names":[],"mappings":";;AAAA,mCAA8C;AAC9C,2CAAsD;AAGtD,MAAM,IAAI,GAAG;IACZ,QAAQ,EAAE;QACT,OAAO,EAAE,aAAa;KACtB;IACD,UAAU,EAAE;QACX,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;KAC5B;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,SAAS,EAAE,CAAC;SACZ;QACD,OAAO,EAAE;YACR,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SAC7B;QACD,GAAG,EAAE,EAAE;KACP;CACqB,CAAC;AAExB,MAAM,gBAAgB,GAAG;IACxB,YAAY,EAAE,UAAU;IACxB,IAAI,EAAE,SAAS;CACI,CAAC;AAErB,MAAM,kBAAkB,GAAG;IAC1B,YAAY,EAAE,YAAY;IAC1B,mBAAmB,EAAE,CAAC,SAAS,CAAC;IAChC,UAAU,EAAE;QACX,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,SAAS;KAChB;IACD,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,SAAS;CACD,CAAC;AAErB,MAAM,uBAAuB,GAAG;IAC/B,YAAY,EAAE,WAAW;IACzB,IAAI,EAAE,QAAQ;CACK,CAAC;AAErB,MAAM,qBAAqB,GAAG;IAC7B,YAAY,EAAE,WAAW;IACzB,MAAM,EAAE;QACP,SAAS,EAAE,EAAE;KACb;IACD,IAAI,EAAE,SAAS;CACI,CAAC;AAErB,MAAM,sBAAsB,GAAG;IAC9B,YAAY,EAAE,WAAW;IACzB,IAAI,EAAE,KAAK;CACQ,CAAC;AAErB,IAAA,iBAAQ,EAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,IAAA,WAAE,EAAC,8BAA8B,EAAE,GAAG,EAAE;QACvC,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAC9D,aAAa,CACb,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,gCAAgC,EAAE,GAAG,EAAE;QACzC,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;YACjE,MAAM;YACN,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,6CAA6C,EAAE,GAAG,EAAE;QACtD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,mDAAmD,EAAE,GAAG,EAAE;QAC5D,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;YACpE,MAAM;YACN,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,6CAA6C,EAAE,GAAG,EAAE;QACtD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CACpE,SAAS,CACT,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,uCAAuC,EAAE,GAAG,EAAE;QAChD,IAAA,eAAM,EAAC,IAAA,mCAAuB,EAAC,uBAAuB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare const CHECKBOX_GROUP = "CheckboxGroup";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHECKBOX_GROUP = void 0;
4
- exports.CHECKBOX_GROUP = 'CheckboxGroup';
5
- //# sourceMappingURL=component-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-types.js","sourceRoot":"","sources":["../src/constants/component-types.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,eAAe,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const BEFORE_QUESTION_TEXT = "BEFORE_QUESTION_TEXT";
2
- export declare const AFTER_QUESTION_TEXT = "AFTER_QUESTION_TEXT";
3
- export declare const DETACHABLE = "DETACHABLE";
4
- export declare const INSTRUCTION = "INSTRUCTION";
5
- export declare const COMMENT = "COMMENT";
6
- export declare const HELP = "HELP";
7
- export declare const WARNING = "WARNING";
8
- export declare const MESSAGE_FILTER = "MESSAGE_FILTER";
9
- export declare const STATEMENT = "STATEMENT";
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // Declaration position
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.STATEMENT = exports.MESSAGE_FILTER = exports.WARNING = exports.HELP = exports.COMMENT = exports.INSTRUCTION = exports.DETACHABLE = exports.AFTER_QUESTION_TEXT = exports.BEFORE_QUESTION_TEXT = void 0;
5
- exports.BEFORE_QUESTION_TEXT = 'BEFORE_QUESTION_TEXT';
6
- exports.AFTER_QUESTION_TEXT = 'AFTER_QUESTION_TEXT';
7
- exports.DETACHABLE = 'DETACHABLE';
8
- // Declaration types
9
- exports.INSTRUCTION = 'INSTRUCTION';
10
- exports.COMMENT = 'COMMENT';
11
- exports.HELP = 'HELP';
12
- exports.WARNING = 'WARNING';
13
- exports.MESSAGE_FILTER = 'MESSAGE_FILTER';
14
- exports.STATEMENT = 'STATEMENT';
15
- //# sourceMappingURL=declarations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"declarations.js","sourceRoot":"","sources":["../src/constants/declarations.ts"],"names":[],"mappings":";AAAA,uBAAuB;;;AAEV,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,UAAU,GAAG,YAAY,CAAC;AAEvC,oBAAoB;AAEP,QAAA,WAAW,GAAG,aAAa,CAAC;AAC5B,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,SAAS,GAAG,WAAW,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const EVENT_FOCUS_IN = "focus-in";
2
- export declare const EVENT_FOCUS_OUT = "focus-out";
3
- export declare const EVENT_SELECTION = "selection";
4
- export declare const EVENT_CLICK = "click";
5
- export declare const EVENT_VALUE_CHANGE = "value-changed";
6
- export declare const INPUT_CATEGORY = "lunatic-input";
7
- export declare const BUTTON_CATEGORY = "lunatic-button";
8
- export declare const LINK_CATEGORY = "lunatic-link";
9
- export declare const TOOLTIP_CATEGORY = "lunatic-tooltip";
10
- export declare const CALCULATED_VAR_CATEGORY = "lunatic-calculated-var";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CALCULATED_VAR_CATEGORY = exports.TOOLTIP_CATEGORY = exports.LINK_CATEGORY = exports.BUTTON_CATEGORY = exports.INPUT_CATEGORY = exports.EVENT_VALUE_CHANGE = exports.EVENT_CLICK = exports.EVENT_SELECTION = exports.EVENT_FOCUS_OUT = exports.EVENT_FOCUS_IN = void 0;
4
- // Event types for paradata
5
- exports.EVENT_FOCUS_IN = 'focus-in';
6
- exports.EVENT_FOCUS_OUT = 'focus-out';
7
- exports.EVENT_SELECTION = 'selection';
8
- exports.EVENT_CLICK = 'click';
9
- exports.EVENT_VALUE_CHANGE = 'value-changed';
10
- // Category of object
11
- exports.INPUT_CATEGORY = 'lunatic-input';
12
- exports.BUTTON_CATEGORY = 'lunatic-button';
13
- exports.LINK_CATEGORY = 'lunatic-link';
14
- exports.TOOLTIP_CATEGORY = 'lunatic-tooltip';
15
- exports.CALCULATED_VAR_CATEGORY = 'lunatic-calculated-var';
16
- //# sourceMappingURL=event-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-types.js","sourceRoot":"","sources":["../src/constants/event-types.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,eAAe,GAAG,WAAW,CAAC;AAC9B,QAAA,eAAe,GAAG,WAAW,CAAC;AAC9B,QAAA,WAAW,GAAG,OAAO,CAAC;AACtB,QAAA,kBAAkB,GAAG,eAAe,CAAC;AAElD,qBAAqB;AACR,QAAA,cAAc,GAAG,eAAe,CAAC;AACjC,QAAA,eAAe,GAAG,gBAAgB,CAAC;AACnC,QAAA,aAAa,GAAG,cAAc,CAAC;AAC/B,QAAA,gBAAgB,GAAG,iBAAiB,CAAC;AACrC,QAAA,uBAAuB,GAAG,wBAAwB,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './component-types';
2
- export * from './declarations';
3
- export * from './value-types';
4
- export * from './variable-types';
5
- export * from './event-types';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component-types"), exports);
18
- __exportStar(require("./declarations"), exports);
19
- __exportStar(require("./value-types"), exports);
20
- __exportStar(require("./variable-types"), exports);
21
- __exportStar(require("./event-types"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC;AACjC,gDAA8B"}
@@ -1,21 +0,0 @@
1
- export declare const STORE_DATA_NAME = "store/entities";
2
- export declare const STORE_INFO_NAME = "store/info";
3
- export declare const STORE_INDEX_NAME = "store/entities/index";
4
- export declare const STORE_INDEX_PATH = "searching";
5
- export declare const MAX_STRING: string;
6
- export declare const SEARCH_TYPES: {
7
- prefix: string;
8
- tokens: string;
9
- };
10
- declare const IndexedDBStore: {
11
- STORE_DATA_NAME: string;
12
- STORE_INDEX_NAME: string;
13
- STORE_INDEX_PATH: string;
14
- MAX_STRING: string;
15
- SEARCH_TYPES: {
16
- prefix: string;
17
- tokens: string;
18
- };
19
- STORE_INFO_NAME: string;
20
- };
21
- export default IndexedDBStore;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_TYPES = exports.MAX_STRING = exports.STORE_INDEX_PATH = exports.STORE_INDEX_NAME = exports.STORE_INFO_NAME = exports.STORE_DATA_NAME = void 0;
4
- exports.STORE_DATA_NAME = 'store/entities';
5
- exports.STORE_INFO_NAME = 'store/info';
6
- exports.STORE_INDEX_NAME = 'store/entities/index';
7
- exports.STORE_INDEX_PATH = 'searching';
8
- exports.MAX_STRING = String.fromCharCode(65535);
9
- exports.SEARCH_TYPES = {
10
- prefix: 'search/prefix',
11
- tokens: 'search/tokens',
12
- };
13
- const IndexedDBStore = {
14
- STORE_DATA_NAME: exports.STORE_DATA_NAME,
15
- STORE_INDEX_NAME: exports.STORE_INDEX_NAME,
16
- STORE_INDEX_PATH: exports.STORE_INDEX_PATH,
17
- MAX_STRING: exports.MAX_STRING,
18
- SEARCH_TYPES: exports.SEARCH_TYPES,
19
- STORE_INFO_NAME: exports.STORE_INFO_NAME,
20
- };
21
- exports.default = IndexedDBStore;
22
- //# sourceMappingURL=indexedDBStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexedDBStore.js","sourceRoot":"","sources":["../src/constants/indexedDBStore.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,gBAAgB,CAAC;AACnC,QAAA,eAAe,GAAG,YAAY,CAAC;AAC/B,QAAA,gBAAgB,GAAG,sBAAsB,CAAC;AAC1C,QAAA,gBAAgB,GAAG,WAAW,CAAC;AAC/B,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AACxC,QAAA,YAAY,GAAG;IAC3B,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;CACvB,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,eAAe,EAAf,uBAAe;IACf,gBAAgB,EAAhB,wBAAgB;IAChB,gBAAgB,EAAhB,wBAAgB;IAChB,UAAU,EAAV,kBAAU;IACV,YAAY,EAAZ,oBAAY;IACZ,eAAe,EAAf,uBAAe;CACf,CAAC;AAEF,kBAAe,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- export declare const supportedPreferences: string[];
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.supportedPreferences = void 0;
27
- const C = __importStar(require("./value-types"));
28
- // ORDERED ARRAY
29
- exports.supportedPreferences = [
30
- C.PREVIOUS,
31
- C.COLLECTED,
32
- C.FORCED,
33
- C.EDITED,
34
- C.INPUTTED,
35
- ];
36
- //# sourceMappingURL=supported-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"supported-preferences.js","sourceRoot":"","sources":["../src/constants/supported-preferences.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,gBAAgB;AACH,QAAA,oBAAoB,GAAG;IACnC,CAAC,CAAC,QAAQ;IACV,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,QAAQ;CACV,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const PREVIOUS = "PREVIOUS";
2
- export declare const COLLECTED = "COLLECTED";
3
- export declare const FORCED = "FORCED";
4
- export declare const EDITED = "EDITED";
5
- export declare const INPUTTED = "INPUTTED";
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INPUTTED = exports.EDITED = exports.FORCED = exports.COLLECTED = exports.PREVIOUS = void 0;
4
- exports.PREVIOUS = 'PREVIOUS';
5
- exports.COLLECTED = 'COLLECTED';
6
- exports.FORCED = 'FORCED';
7
- exports.EDITED = 'EDITED';
8
- exports.INPUTTED = 'INPUTTED';
9
- //# sourceMappingURL=value-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"value-types.js","sourceRoot":"","sources":["../src/constants/value-types.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,UAAU,CAAC;AACtB,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,MAAM,GAAG,QAAQ,CAAC;AAClB,QAAA,MAAM,GAAG,QAAQ,CAAC;AAClB,QAAA,QAAQ,GAAG,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const EXTERNAL: "EXTERNAL";
2
- export declare const CALCULATED: "CALCULATED";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CALCULATED = exports.EXTERNAL = void 0;
4
- exports.EXTERNAL = 'EXTERNAL';
5
- exports.CALCULATED = 'CALCULATED';
6
- // Already define in value-types
7
- //export const COLLECTED = 'COLLECTED';
8
- //# sourceMappingURL=variable-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variable-types.js","sourceRoot":"","sources":["../src/constants/variable-types.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,UAAmB,CAAC;AAC/B,QAAA,UAAU,GAAG,YAAqB,CAAC;AAChD,gCAAgC;AAChC,uCAAuC"}
@@ -1 +0,0 @@
1
- export declare const CHECKBOX_GROUP = "CheckboxGroup";
@@ -1,2 +0,0 @@
1
- export const CHECKBOX_GROUP = 'CheckboxGroup';
2
- //# sourceMappingURL=component-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-types.js","sourceRoot":"","sources":["../../src/constants/component-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const BEFORE_QUESTION_TEXT = "BEFORE_QUESTION_TEXT";
2
- export declare const AFTER_QUESTION_TEXT = "AFTER_QUESTION_TEXT";
3
- export declare const DETACHABLE = "DETACHABLE";
4
- export declare const INSTRUCTION = "INSTRUCTION";
5
- export declare const COMMENT = "COMMENT";
6
- export declare const HELP = "HELP";
7
- export declare const WARNING = "WARNING";
8
- export declare const MESSAGE_FILTER = "MESSAGE_FILTER";
9
- export declare const STATEMENT = "STATEMENT";
@@ -1,12 +0,0 @@
1
- // Declaration position
2
- export const BEFORE_QUESTION_TEXT = 'BEFORE_QUESTION_TEXT';
3
- export const AFTER_QUESTION_TEXT = 'AFTER_QUESTION_TEXT';
4
- export const DETACHABLE = 'DETACHABLE';
5
- // Declaration types
6
- export const INSTRUCTION = 'INSTRUCTION';
7
- export const COMMENT = 'COMMENT';
8
- export const HELP = 'HELP';
9
- export const WARNING = 'WARNING';
10
- export const MESSAGE_FILTER = 'MESSAGE_FILTER';
11
- export const STATEMENT = 'STATEMENT';
12
- //# sourceMappingURL=declarations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"declarations.js","sourceRoot":"","sources":["../../src/constants/declarations.ts"],"names":[],"mappings":"AAAA,uBAAuB;AAEvB,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC,oBAAoB;AAEpB,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAC/C,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const EVENT_FOCUS_IN = "focus-in";
2
- export declare const EVENT_FOCUS_OUT = "focus-out";
3
- export declare const EVENT_SELECTION = "selection";
4
- export declare const EVENT_CLICK = "click";
5
- export declare const EVENT_VALUE_CHANGE = "value-changed";
6
- export declare const INPUT_CATEGORY = "lunatic-input";
7
- export declare const BUTTON_CATEGORY = "lunatic-button";
8
- export declare const LINK_CATEGORY = "lunatic-link";
9
- export declare const TOOLTIP_CATEGORY = "lunatic-tooltip";
10
- export declare const CALCULATED_VAR_CATEGORY = "lunatic-calculated-var";
@@ -1,13 +0,0 @@
1
- // Event types for paradata
2
- export const EVENT_FOCUS_IN = 'focus-in';
3
- export const EVENT_FOCUS_OUT = 'focus-out';
4
- export const EVENT_SELECTION = 'selection';
5
- export const EVENT_CLICK = 'click';
6
- export const EVENT_VALUE_CHANGE = 'value-changed';
7
- // Category of object
8
- export const INPUT_CATEGORY = 'lunatic-input';
9
- export const BUTTON_CATEGORY = 'lunatic-button';
10
- export const LINK_CATEGORY = 'lunatic-link';
11
- export const TOOLTIP_CATEGORY = 'lunatic-tooltip';
12
- export const CALCULATED_VAR_CATEGORY = 'lunatic-calculated-var';
13
- //# sourceMappingURL=event-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-types.js","sourceRoot":"","sources":["../../src/constants/event-types.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AACnC,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAElD,qBAAqB;AACrB,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './component-types';
2
- export * from './declarations';
3
- export * from './value-types';
4
- export * from './variable-types';
5
- export * from './event-types';
@@ -1,6 +0,0 @@
1
- export * from './component-types';
2
- export * from './declarations';
3
- export * from './value-types';
4
- export * from './variable-types';
5
- export * from './event-types';
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const STORE_DATA_NAME = "store/entities";
2
- export declare const STORE_INFO_NAME = "store/info";
3
- export declare const STORE_INDEX_NAME = "store/entities/index";
4
- export declare const STORE_INDEX_PATH = "searching";
5
- export declare const MAX_STRING: string;
6
- export declare const SEARCH_TYPES: {
7
- prefix: string;
8
- tokens: string;
9
- };
10
- declare const IndexedDBStore: {
11
- STORE_DATA_NAME: string;
12
- STORE_INDEX_NAME: string;
13
- STORE_INDEX_PATH: string;
14
- MAX_STRING: string;
15
- SEARCH_TYPES: {
16
- prefix: string;
17
- tokens: string;
18
- };
19
- STORE_INFO_NAME: string;
20
- };
21
- export default IndexedDBStore;
@@ -1,19 +0,0 @@
1
- export const STORE_DATA_NAME = 'store/entities';
2
- export const STORE_INFO_NAME = 'store/info';
3
- export const STORE_INDEX_NAME = 'store/entities/index';
4
- export const STORE_INDEX_PATH = 'searching';
5
- export const MAX_STRING = String.fromCharCode(65535);
6
- export const SEARCH_TYPES = {
7
- prefix: 'search/prefix',
8
- tokens: 'search/tokens',
9
- };
10
- const IndexedDBStore = {
11
- STORE_DATA_NAME,
12
- STORE_INDEX_NAME,
13
- STORE_INDEX_PATH,
14
- MAX_STRING,
15
- SEARCH_TYPES,
16
- STORE_INFO_NAME,
17
- };
18
- export default IndexedDBStore;
19
- //# sourceMappingURL=indexedDBStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexedDBStore.js","sourceRoot":"","sources":["../../src/constants/indexedDBStore.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;CACvB,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;IACV,YAAY;IACZ,eAAe;CACf,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- export declare const supportedPreferences: string[];
@@ -1,10 +0,0 @@
1
- import * as C from './value-types';
2
- // ORDERED ARRAY
3
- export const supportedPreferences = [
4
- C.PREVIOUS,
5
- C.COLLECTED,
6
- C.FORCED,
7
- C.EDITED,
8
- C.INPUTTED,
9
- ];
10
- //# sourceMappingURL=supported-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"supported-preferences.js","sourceRoot":"","sources":["../../src/constants/supported-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,eAAe,CAAC;AAEnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,CAAC,CAAC,QAAQ;IACV,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,QAAQ;CACV,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const PREVIOUS = "PREVIOUS";
2
- export declare const COLLECTED = "COLLECTED";
3
- export declare const FORCED = "FORCED";
4
- export declare const EDITED = "EDITED";
5
- export declare const INPUTTED = "INPUTTED";
@@ -1,6 +0,0 @@
1
- export const PREVIOUS = 'PREVIOUS';
2
- export const COLLECTED = 'COLLECTED';
3
- export const FORCED = 'FORCED';
4
- export const EDITED = 'EDITED';
5
- export const INPUTTED = 'INPUTTED';
6
- //# sourceMappingURL=value-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"value-types.js","sourceRoot":"","sources":["../../src/constants/value-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const EXTERNAL: "EXTERNAL";
2
- export declare const CALCULATED: "CALCULATED";
@@ -1,5 +0,0 @@
1
- export const EXTERNAL = 'EXTERNAL';
2
- export const CALCULATED = 'CALCULATED';
3
- // Already define in value-types
4
- //export const COLLECTED = 'COLLECTED';
5
- //# sourceMappingURL=variable-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variable-types.js","sourceRoot":"","sources":["../../src/constants/variable-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAmB,CAAC;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG,YAAqB,CAAC;AAChD,gCAAgC;AAChC,uCAAuC"}