@inseefr/lunatic 2.0.0-rc8 → 2.0.0-v2

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 (725) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +25 -22
  3. package/lib/components/button/button.scss +24 -0
  4. package/lib/components/button/index.js +15 -0
  5. package/lib/components/button/lunatic-button.js +62 -0
  6. package/lib/components/checkbox/checkbox-boolean/checkbox-boolean.js +34 -0
  7. package/lib/components/checkbox/checkbox-boolean/index.js +15 -0
  8. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +47 -0
  9. package/lib/components/checkbox/checkbox-group/checkbox-group.js +96 -0
  10. package/lib/components/checkbox/checkbox-group/checkbox-option.js +57 -0
  11. package/lib/components/checkbox/checkbox-group/checkbox.scss +3 -0
  12. package/lib/components/checkbox/checkbox-group/index.js +15 -0
  13. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +41 -0
  14. package/lib/components/checkbox/checkbox-one/index.js +15 -0
  15. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +36 -0
  16. package/lib/components/checkbox/checkbox.scss +1 -0
  17. package/lib/components/checkbox/commons/checkbox-option.js +59 -0
  18. package/lib/components/checkbox/commons/index.js +15 -0
  19. package/lib/components/checkbox/index.js +31 -0
  20. package/lib/components/commons/build-style-object.js +36 -0
  21. package/lib/components/commons/components/combo-box/combo-box-container.js +37 -0
  22. package/lib/components/commons/components/combo-box/combo-box-content.js +73 -0
  23. package/lib/components/commons/components/combo-box/combo-box.js +222 -0
  24. package/lib/components/commons/components/combo-box/combo-box.scss +215 -0
  25. package/lib/components/commons/components/combo-box/index.js +15 -0
  26. package/lib/components/commons/components/combo-box/panel/index.js +15 -0
  27. package/lib/components/commons/components/combo-box/panel/option-container.js +77 -0
  28. package/lib/components/commons/components/combo-box/panel/panel-container.js +31 -0
  29. package/lib/components/commons/components/combo-box/panel/panel.js +70 -0
  30. package/lib/components/commons/components/combo-box/selection/delete.js +69 -0
  31. package/lib/components/commons/components/combo-box/selection/displayLabelOrInput.js +30 -0
  32. package/lib/components/commons/components/combo-box/selection/index.js +15 -0
  33. package/lib/components/commons/components/combo-box/selection/input.js +68 -0
  34. package/lib/components/commons/components/combo-box/selection/label-selection.js +39 -0
  35. package/lib/components/commons/components/combo-box/selection/selection-container.js +40 -0
  36. package/lib/components/commons/components/combo-box/selection/selection.js +71 -0
  37. package/lib/components/commons/components/combo-box/state-management/actions.js +98 -0
  38. package/lib/components/commons/components/combo-box/state-management/combo-box-context.js +20 -0
  39. package/lib/components/commons/components/combo-box/state-management/index.js +42 -0
  40. package/lib/components/commons/components/combo-box/state-management/initial-state.js +14 -0
  41. package/lib/components/commons/components/combo-box/state-management/reducer/index.js +15 -0
  42. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-blur.js +22 -0
  43. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-change.js +24 -0
  44. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-delete.js +23 -0
  45. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-focus.js +22 -0
  46. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-init.js +46 -0
  47. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/index.js +15 -0
  48. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/keyboard-key-codes.js +18 -0
  49. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-down.js +37 -0
  50. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-up.js +37 -0
  51. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-end.js +28 -0
  52. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-enter.js +23 -0
  53. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-escape.js +22 -0
  54. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-home.js +28 -0
  55. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-tab.js +22 -0
  56. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/reduce-on-keydown.js +59 -0
  57. package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-select.js +24 -0
  58. package/lib/components/commons/components/combo-box/state-management/reducer/reducer.js +63 -0
  59. package/lib/components/commons/components/create-lunatic-component/create-lunatic-component.js +75 -0
  60. package/lib/components/commons/components/create-lunatic-component/index.js +14 -0
  61. package/lib/components/commons/components/default-label-renderer.js +54 -0
  62. package/lib/components/commons/components/default-option-renderer.js +43 -0
  63. package/lib/components/commons/components/dragger/dragger.js +118 -0
  64. package/lib/components/commons/components/dragger/dragger.scss +8 -0
  65. package/lib/components/commons/components/dragger/index.js +15 -0
  66. package/lib/components/commons/components/errors/errors.js +35 -0
  67. package/lib/components/commons/components/errors/errors.scss +5 -0
  68. package/lib/components/commons/components/errors/index.js +15 -0
  69. package/lib/components/commons/components/fab/fab.js +56 -0
  70. package/lib/components/commons/components/fab/fab.scss +32 -0
  71. package/lib/components/commons/components/fab/index.js +15 -0
  72. package/lib/components/commons/components/field-container/field-container.js +48 -0
  73. package/lib/components/commons/components/field-container/field-container.scss +0 -0
  74. package/lib/components/commons/components/field-container/index.js +15 -0
  75. package/lib/components/commons/components/fieldset.js +26 -0
  76. package/lib/components/commons/components/fieldset.scss +3 -0
  77. package/lib/components/commons/components/html-table/index.js +55 -0
  78. package/lib/components/commons/components/html-table/table.js +38 -0
  79. package/lib/components/commons/components/html-table/tbody.js +38 -0
  80. package/lib/components/commons/components/html-table/td.js +50 -0
  81. package/lib/components/commons/components/html-table/th.js +48 -0
  82. package/lib/components/commons/components/html-table/thead.js +38 -0
  83. package/lib/components/commons/components/html-table/tr.js +40 -0
  84. package/lib/components/commons/components/is-network/index.js +15 -0
  85. package/lib/components/commons/components/is-network/is-network.js +70 -0
  86. package/lib/components/commons/components/is-network/use-online-status.js +55 -0
  87. package/lib/components/commons/components/label.js +35 -0
  88. package/lib/components/commons/components/lunatic-component.js +67 -0
  89. package/lib/components/commons/components/lunatic-fieldset-component.js +60 -0
  90. package/lib/components/commons/components/md-label/index.js +15 -0
  91. package/lib/components/commons/components/md-label/link.js +57 -0
  92. package/lib/components/commons/components/md-label/md-label.js +52 -0
  93. package/lib/components/commons/components/missing/index.js +15 -0
  94. package/lib/components/commons/components/missing/missing.js +90 -0
  95. package/lib/components/commons/components/missing/missing.scss +30 -0
  96. package/lib/components/commons/components/nothing-to-display.js +17 -0
  97. package/lib/components/commons/components/orchestrated-component.js +69 -0
  98. package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/edited.png +0 -0
  99. package/{src/components/tooltip → lib/components/commons/components/variable-status}/img/forced.png +0 -0
  100. package/lib/components/commons/components/variable-status/img/index.js +23 -0
  101. package/lib/components/commons/components/variable-status/index.js +15 -0
  102. package/lib/components/commons/components/variable-status/variable-status.js +95 -0
  103. package/lib/components/commons/components/variable-status/variable-status.scss +39 -0
  104. package/lib/components/commons/create-customizable-field.js +38 -0
  105. package/lib/components/commons/create-row-orchestrator.js +58 -0
  106. package/lib/components/commons/icons/checkbox-checked.icon.js +41 -0
  107. package/lib/components/commons/icons/checkbox-unchecked.icon.js +41 -0
  108. package/lib/components/commons/icons/closed.icon.js +38 -0
  109. package/lib/components/commons/icons/cross.icon.js +38 -0
  110. package/lib/components/commons/icons/index.js +87 -0
  111. package/lib/components/commons/icons/load.icon.js +38 -0
  112. package/lib/components/commons/icons/lunatic-icon.js +25 -0
  113. package/lib/components/commons/icons/lunatic-icon.scss +3 -0
  114. package/lib/components/commons/icons/network.icon.js +38 -0
  115. package/lib/components/commons/icons/on-drag.icon.js +38 -0
  116. package/lib/components/commons/icons/opened.icon.js +38 -0
  117. package/lib/components/commons/icons/radio-checked.icon.js +41 -0
  118. package/lib/components/commons/icons/radio-unchecked.icon.js +41 -0
  119. package/lib/components/commons/index.js +162 -0
  120. package/lib/components/commons/prop-types/declarations.js +27 -0
  121. package/lib/components/commons/prop-types/index.js +47 -0
  122. package/lib/components/commons/prop-types/lines.js +17 -0
  123. package/lib/components/commons/prop-types/options.js +17 -0
  124. package/lib/components/commons/prop-types/response.js +17 -0
  125. package/lib/components/commons/prop-types/value-type.js +22 -0
  126. package/lib/components/commons/safety-label.js +34 -0
  127. package/lib/components/commons/use-document-add-event-listener.js +108 -0
  128. package/lib/components/commons/use-on-handle-change.js +22 -0
  129. package/lib/components/commons/use-options-keydown.js +29 -0
  130. package/lib/components/commons/use-previous.js +19 -0
  131. package/lib/components/components.js +188 -0
  132. package/lib/components/datepicker/datepicker.js +53 -0
  133. package/lib/components/datepicker/datepicker.scss +1 -0
  134. package/lib/components/datepicker/index.js +15 -0
  135. package/lib/components/datepicker/lunatic-datepicker.js +37 -0
  136. package/lib/components/declarations/declaration.js +26 -0
  137. package/lib/components/declarations/declarations-after-text.js +29 -0
  138. package/lib/components/declarations/declarations-before-text.js +29 -0
  139. package/lib/components/declarations/declarations-detachable.js +29 -0
  140. package/lib/components/declarations/declarations.js +57 -0
  141. package/lib/components/declarations/declarations.scss +36 -0
  142. package/lib/components/declarations/index.js +51 -0
  143. package/lib/components/dropdown/dropdown-simple/dropdown-simple.js +43 -0
  144. package/lib/components/dropdown/dropdown-simple/index.js +15 -0
  145. package/lib/components/dropdown/dropdown-simple/simple-label-renderer.js +53 -0
  146. package/lib/components/dropdown/dropdown-simple/simple-option-renderer.js +42 -0
  147. package/lib/components/dropdown/dropdown-writable/dropdown-writable.js +79 -0
  148. package/lib/components/dropdown/dropdown-writable/filter-tools/filter-options.js +47 -0
  149. package/lib/components/dropdown/dropdown-writable/filter-tools/letters-matching.js +40 -0
  150. package/lib/components/dropdown/dropdown-writable/filter-tools/match.js +27 -0
  151. package/lib/components/dropdown/dropdown-writable/filter-tools/prepare-prefix.js +17 -0
  152. package/lib/components/dropdown/dropdown-writable/index.js +15 -0
  153. package/lib/components/dropdown/dropdown-writable/writable-label-renderer.js +53 -0
  154. package/lib/components/dropdown/dropdown-writable/writable-option-renderer.js +170 -0
  155. package/lib/components/dropdown/dropdown.js +58 -0
  156. package/lib/components/dropdown/dropdown.scss +41 -0
  157. package/lib/components/dropdown/index.js +15 -0
  158. package/lib/components/dropdown/lunatic-dropdown.js +61 -0
  159. package/lib/components/filter-description/component.js +23 -0
  160. package/lib/components/filter-description/index.js +15 -0
  161. package/lib/components/index.js +32 -0
  162. package/lib/components/index.scss +136 -0
  163. package/lib/components/input/index.js +15 -0
  164. package/lib/components/input/input.js +61 -0
  165. package/lib/components/input/input.scss +32 -0
  166. package/lib/components/input/lunatic-input.js +41 -0
  167. package/lib/components/input-number/index.js +15 -0
  168. package/lib/components/input-number/input-number.js +61 -0
  169. package/lib/components/input-number/input-number.scss +7 -0
  170. package/lib/components/input-number/lunatic-input-number.js +35 -0
  171. package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +16 -0
  172. package/lib/components/loop/block-for-loop/block-for-loop.js +178 -0
  173. package/lib/components/loop/block-for-loop/index.js +15 -0
  174. package/lib/components/loop/block-for-loop/row.js +82 -0
  175. package/lib/components/loop/commons/get-init-length.js +19 -0
  176. package/lib/components/loop/commons/handle-row-button.js +25 -0
  177. package/lib/components/loop/commons/index.js +23 -0
  178. package/lib/components/loop/commons/row-component.js +86 -0
  179. package/lib/components/loop/index.js +15 -0
  180. package/lib/components/loop/loop.js +94 -0
  181. package/lib/components/loop/roster-for-loop/body.js +69 -0
  182. package/lib/components/loop/roster-for-loop/header.js +42 -0
  183. package/lib/components/loop/roster-for-loop/index.js +15 -0
  184. package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +16 -0
  185. package/lib/components/loop/roster-for-loop/roster-for-loop.js +153 -0
  186. package/lib/components/loop/roster-for-loop/roster-table.js +61 -0
  187. package/lib/components/loop/roster-for-loop/roster.scss +42 -0
  188. package/lib/components/loop/roster-for-loop/row.js +86 -0
  189. package/lib/components/modal-controls/close-or-skip.js +46 -0
  190. package/lib/components/modal-controls/index.js +15 -0
  191. package/lib/components/modal-controls/modal-container.js +24 -0
  192. package/lib/components/modal-controls/modal-controls.js +94 -0
  193. package/lib/components/modal-controls/modal-controls.scss +68 -0
  194. package/lib/components/pairwise/block/index.js +15 -0
  195. package/lib/components/pairwise/block/pairwise-block.js +17 -0
  196. package/lib/components/pairwise/index.js +23 -0
  197. package/lib/components/pairwise/links/index.js +15 -0
  198. package/lib/components/pairwise/links/links-orchestrator.js +16 -0
  199. package/lib/components/pairwise/links/pairwise-links.js +77 -0
  200. package/lib/components/pairwise/links/row.js +95 -0
  201. package/lib/components/radio/index.js +15 -0
  202. package/lib/components/radio/lunatic-radio-group.js +44 -0
  203. package/lib/components/radio/radio-group.js +50 -0
  204. package/lib/components/radio/radio-option.js +90 -0
  205. package/lib/components/radio/radio.scss +64 -0
  206. package/lib/components/sequence/index.js +15 -0
  207. package/lib/components/sequence/sequence.js +38 -0
  208. package/lib/components/sequence/sequence.scss +10 -0
  209. package/lib/components/subsequence/index.js +15 -0
  210. package/lib/components/subsequence/subsequence.js +35 -0
  211. package/lib/components/suggester/check-store.js +154 -0
  212. package/lib/components/suggester/default-style.scss +125 -0
  213. package/lib/components/suggester/find-best-label/find-best-label.js +67 -0
  214. package/lib/components/suggester/find-best-label/index.js +15 -0
  215. package/lib/components/suggester/idb-suggester.js +95 -0
  216. package/lib/components/suggester/index.js +15 -0
  217. package/lib/components/suggester/lunatic-suggester.js +93 -0
  218. package/lib/components/suggester/searching/create-searching.js +88 -0
  219. package/lib/components/suggester/searching/index.js +15 -0
  220. package/lib/components/suggester/suggester.js +172 -0
  221. package/lib/components/suggester-loader-widget/index.js +15 -0
  222. package/lib/components/suggester-loader-widget/loader-row.js +150 -0
  223. package/lib/components/suggester-loader-widget/loader.js +180 -0
  224. package/lib/components/suggester-loader-widget/progress.js +45 -0
  225. package/lib/components/suggester-loader-widget/tools/action-tool.js +35 -0
  226. package/lib/components/suggester-loader-widget/tools/index.js +23 -0
  227. package/lib/components/suggester-loader-widget/tools/tools.js +20 -0
  228. package/lib/components/suggester-loader-widget/widget-container.js +48 -0
  229. package/lib/components/suggester-loader-widget/widget.js +170 -0
  230. package/lib/components/suggester-loader-widget/widget.scss +176 -0
  231. package/lib/components/switch/index.js +15 -0
  232. package/lib/components/switch/lunatic-switch.js +59 -0
  233. package/lib/components/switch/switch.js +92 -0
  234. package/lib/components/switch/switch.scss +47 -0
  235. package/lib/components/table/cell.js +113 -0
  236. package/lib/components/table/components/cell.js +113 -0
  237. package/lib/components/table/components/header.js +48 -0
  238. package/lib/components/table/components/row.js +47 -0
  239. package/lib/components/table/components/table.js +38 -0
  240. package/lib/components/table/components/table.scss +27 -0
  241. package/lib/components/table/index.js +15 -0
  242. package/lib/components/table/lunatic-table.js +94 -0
  243. package/lib/components/table/table-orchestrator.js +55 -0
  244. package/lib/components/textarea/index.js +15 -0
  245. package/lib/components/textarea/lunatic-textarea.js +50 -0
  246. package/lib/components/textarea/textarea.js +54 -0
  247. package/lib/components/textarea/textarea.scss +8 -0
  248. package/lib/constants/component-types.js +8 -0
  249. package/lib/constants/declarations.js +26 -0
  250. package/lib/constants/event-types.js +28 -0
  251. package/lib/constants/index.js +70 -0
  252. package/lib/constants/supported-preferences.js +18 -0
  253. package/lib/constants/value-types.js +16 -0
  254. package/lib/constants/variable-types.js +12 -0
  255. package/lib/i18n/build-dictionary.js +56 -0
  256. package/lib/i18n/dictionary.js +26 -0
  257. package/lib/i18n/index.js +19 -0
  258. package/lib/index.js +20 -4028
  259. package/lib/stories/Introduction.stories.mdx +114 -0
  260. package/lib/stories/checkboxOne/checkboxOne.stories.js +35 -0
  261. package/lib/stories/checkboxOne/source.json +36 -0
  262. package/lib/stories/custom-mui/checkbox-boolean-mui.js +39 -0
  263. package/lib/stories/custom-mui/checkbox-group-mui.js +80 -0
  264. package/lib/stories/custom-mui/checkbox-one-mui.js +17 -0
  265. package/lib/stories/custom-mui/index.js +127 -0
  266. package/lib/stories/custom-mui/input-mui.js +61 -0
  267. package/lib/stories/custom-mui/input-number-mui.js +47 -0
  268. package/lib/stories/custom-mui/radio-mui.js +75 -0
  269. package/lib/stories/custom-mui/suggester-mui/index.js +15 -0
  270. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +328 -0
  271. package/lib/stories/custom-mui/switch-mui.js +51 -0
  272. package/lib/stories/custom-mui/table-mui.js +33 -0
  273. package/lib/stories/custom-mui/tbody-mui.js +27 -0
  274. package/lib/stories/custom-mui/td-mui.js +29 -0
  275. package/lib/stories/custom-mui/textarea-mui.js +51 -0
  276. package/lib/stories/custom-mui/th-mui.js +28 -0
  277. package/lib/stories/custom-mui/thead-mui.js +27 -0
  278. package/lib/stories/custom-mui/tr-mui.js +38 -0
  279. package/lib/stories/date-picker/data.json +3 -0
  280. package/lib/stories/date-picker/datepicker.stories.js +38 -0
  281. package/lib/stories/date-picker/source.json +140 -0
  282. package/lib/stories/dropdown/data.json +16 -0
  283. package/lib/stories/dropdown/dropdown.stories.js +38 -0
  284. package/lib/stories/dropdown/source.json +122 -0
  285. package/lib/stories/filter-description/filter-description.stories.js +58 -0
  286. package/lib/stories/filter-description/source-options.json +81 -0
  287. package/lib/stories/filter-description/source.json +11 -0
  288. package/lib/stories/input/data.json +1 -0
  289. package/lib/stories/input/input.stories.js +38 -0
  290. package/lib/stories/input/source.json +28 -0
  291. package/lib/stories/input-number/input-number.stories.js +43 -0
  292. package/lib/stories/input-number/source-euros.json +38 -0
  293. package/lib/stories/input-number/source.json +37 -0
  294. package/lib/stories/pairwise/block/block.json +3 -0
  295. package/lib/stories/pairwise/block/pairwise-block.stories.js +36 -0
  296. package/lib/stories/pairwise/links/data.json +12 -0
  297. package/lib/stories/pairwise/links/links.json +141 -0
  298. package/lib/stories/pairwise/links/pairwise-links.stories.js +39 -0
  299. package/lib/stories/paste-questionnaire/source.json +6290 -0
  300. package/lib/stories/paste-questionnaire/test.stories.js +91 -0
  301. package/lib/stories/questionnaires/logement/data.json +2691 -0
  302. package/lib/stories/questionnaires/logement/logement.stories.js +86 -0
  303. package/lib/stories/questionnaires/logement/source-sequence.json +34181 -0
  304. package/lib/stories/questionnaires/logement/source-sum.json +34612 -0
  305. package/lib/stories/questionnaires/logement/source.json +34191 -0
  306. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +71 -0
  307. package/lib/stories/questionnaires/simpsons/source.json +6290 -0
  308. package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +848 -0
  309. package/lib/stories/questionnaires-test/V2_MinMaxSum_Boucles.json +509 -0
  310. package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4091 -0
  311. package/lib/stories/questionnaires-test/V2_TCMRallyeGames.json +2892 -0
  312. package/lib/stories/questionnaires-test/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +666 -0
  313. package/lib/stories/questionnaires-test/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +1957 -0
  314. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees2_PasPageFin.json +709 -0
  315. package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +572 -0
  316. package/lib/stories/questionnaires-test/controls/boucles-n.json +572 -0
  317. package/lib/stories/questionnaires-test/controls/controls.stories.js +108 -0
  318. package/lib/stories/questionnaires-test/test-dylan.json +558 -0
  319. package/lib/stories/questionnaires-test/test.stories.js +104 -0
  320. package/lib/stories/radio/radio.stories.js +35 -0
  321. package/lib/stories/radio/source.json +36 -0
  322. package/lib/stories/roster-for-loop/roster-for-loop.stories.js +35 -0
  323. package/lib/stories/roster-for-loop/source.json +114 -0
  324. package/lib/stories/suggester/source.json +234 -0
  325. package/lib/stories/suggester/suggester.stories.js +59 -0
  326. package/{src/stories/checkbox-one → lib/stories/switch}/README.md +31 -31
  327. package/lib/stories/switch/SwitchMaterialUI.js +51 -0
  328. package/{src/stories/checkbox-boolean/data.json → lib/stories/switch/data-forced.json} +48 -48
  329. package/lib/stories/switch/data.json +80 -0
  330. package/lib/stories/switch/switch.js +108 -0
  331. package/lib/stories/table/data-roster.json +1 -0
  332. package/lib/stories/table/data.json +1 -0
  333. package/{src/stories/table/data-roster.json → lib/stories/table/source-roster.json} +504 -461
  334. package/{src/stories/table/data-default.json → lib/stories/table/source.json} +19 -19
  335. package/lib/stories/table/table.stories.js +65 -0
  336. package/lib/stories/utils/custom-lunatic.scss +28 -0
  337. package/lib/stories/utils/default-arg-types.js +23 -0
  338. package/lib/stories/utils/options.js +32 -0
  339. package/lib/stories/utils/orchestrator.js +188 -0
  340. package/lib/stories/utils/waiting/index.js +15 -0
  341. package/lib/stories/utils/waiting/preloader.svg +1 -0
  342. package/lib/stories/utils/waiting/waiting.js +40 -0
  343. package/lib/stories/utils/waiting/waiting.scss +21 -0
  344. package/lib/tests/sample.spec.js +7 -0
  345. package/lib/use-lunatic/actions.js +102 -0
  346. package/lib/use-lunatic/commons/calculated-variables.js +124 -0
  347. package/lib/use-lunatic/commons/check-loops.js +111 -0
  348. package/lib/use-lunatic/commons/compose.js +28 -0
  349. package/lib/use-lunatic/commons/create-map-pages.js +108 -0
  350. package/lib/use-lunatic/commons/execute-condition-filter.js +34 -0
  351. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +308 -0
  352. package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +78 -0
  353. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +160 -0
  354. package/lib/use-lunatic/commons/execute-expression/execute-expression.js +118 -0
  355. package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +51 -0
  356. package/lib/use-lunatic/commons/execute-expression/get-safety-expression.js +37 -0
  357. package/lib/use-lunatic/commons/execute-expression/index.js +15 -0
  358. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +149 -0
  359. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +26 -0
  360. package/lib/use-lunatic/commons/fill-components/fill-components.js +47 -0
  361. package/lib/use-lunatic/commons/fill-components/fill-errors.js +31 -0
  362. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +26 -0
  363. package/lib/use-lunatic/commons/fill-components/fill-management.js +27 -0
  364. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +37 -0
  365. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +23 -0
  366. package/lib/use-lunatic/commons/fill-components/index.js +15 -0
  367. package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +32 -0
  368. package/lib/use-lunatic/commons/get-component-value/get-component-value.js +217 -0
  369. package/lib/use-lunatic/commons/get-component-value/index.js +15 -0
  370. package/lib/use-lunatic/commons/get-components-from-state.js +44 -0
  371. package/lib/use-lunatic/commons/get-data.js +90 -0
  372. package/lib/use-lunatic/commons/index.js +115 -0
  373. package/lib/use-lunatic/commons/is-First-last-page.js +20 -0
  374. package/lib/use-lunatic/commons/is-paginated-loop.js +15 -0
  375. package/lib/use-lunatic/commons/load-suggesters.js +199 -0
  376. package/lib/use-lunatic/commons/page-tag.js +83 -0
  377. package/lib/use-lunatic/commons/use-components-from-state.js +49 -0
  378. package/lib/use-lunatic/index.js +15 -0
  379. package/lib/use-lunatic/initial-state.js +43 -0
  380. package/lib/use-lunatic/reducer/commons/index.js +41 -0
  381. package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +49 -0
  382. package/lib/use-lunatic/reducer/commons/resize-array-variable.js +48 -0
  383. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +41 -0
  384. package/lib/use-lunatic/reducer/index.js +15 -0
  385. package/lib/use-lunatic/reducer/reduce-go-next-page.js +211 -0
  386. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +164 -0
  387. package/lib/use-lunatic/reducer/reduce-go-to-page.js +60 -0
  388. package/lib/use-lunatic/reducer/reduce-handle-change/index.js +15 -0
  389. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +77 -0
  390. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +135 -0
  391. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +53 -0
  392. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +90 -0
  393. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +118 -0
  394. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.js +50 -0
  395. package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +29 -0
  396. package/lib/use-lunatic/reducer/reduce-on-init.js +260 -0
  397. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +23 -0
  398. package/lib/use-lunatic/reducer/reducer.js +58 -0
  399. package/lib/use-lunatic/reducer/validate-controls/create-controls-reducer.js +59 -0
  400. package/lib/use-lunatic/reducer/validate-controls/create-modal-controls-reducer.js +88 -0
  401. package/lib/use-lunatic/reducer/validate-controls/index.js +23 -0
  402. package/lib/use-lunatic/reducer/validate-controls/validation-utils.js +71 -0
  403. package/lib/use-lunatic/use-lunatic.js +215 -0
  404. package/lib/utils/constants/features.js +12 -0
  405. package/lib/utils/constants/index.js +70 -0
  406. package/lib/utils/constants/links.js +10 -0
  407. package/lib/utils/constants/missing.js +10 -0
  408. package/lib/utils/constants/variable-status.js +16 -0
  409. package/lib/utils/constants/variable-types.js +8 -0
  410. package/lib/utils/idb-tools/clear-store.js +52 -0
  411. package/lib/utils/idb-tools/create-db-opener.js +60 -0
  412. package/lib/utils/idb-tools/create-open-db.js +35 -0
  413. package/lib/utils/idb-tools/get-entity.js +25 -0
  414. package/lib/utils/idb-tools/get-idb.js +15 -0
  415. package/lib/utils/idb-tools/idb-bulk-insert.js +157 -0
  416. package/lib/utils/idb-tools/index.js +75 -0
  417. package/lib/utils/idb-tools/insert-entity.js +25 -0
  418. package/lib/utils/idb-tools/open-db.js +29 -0
  419. package/lib/utils/idb-tools/open-or-create-db.js +49 -0
  420. package/lib/utils/is-element.js +12 -0
  421. package/lib/utils/store-tools/auto-load.js +209 -0
  422. package/lib/utils/store-tools/clear-store-data.js +46 -0
  423. package/lib/utils/store-tools/clear-store-info.js +46 -0
  424. package/lib/utils/store-tools/constantes.js +31 -0
  425. package/lib/utils/store-tools/create/create.js +70 -0
  426. package/lib/utils/store-tools/create/index.js +23 -0
  427. package/lib/utils/store-tools/create/update-store-info.js +33 -0
  428. package/lib/utils/store-tools/get-store-count.js +29 -0
  429. package/lib/utils/store-tools/index.js +66 -0
  430. package/lib/utils/store-tools/open-or-create-store.js +60 -0
  431. package/lib/utils/store-tools/use-store-index.js +82 -0
  432. package/lib/utils/suggester-workers/append-to-index/append.js +96 -0
  433. package/lib/utils/suggester-workers/append-to-index/append.worker.js +31 -0
  434. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +66 -0
  435. package/lib/utils/suggester-workers/append-to-index/index.js +23 -0
  436. package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +114 -0
  437. package/lib/utils/suggester-workers/append-to-index/store-messages.js +48 -0
  438. package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +64 -0
  439. package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +103 -0
  440. package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +47 -0
  441. package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +24 -0
  442. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +47 -0
  443. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +16 -0
  444. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +24 -0
  445. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +18 -0
  446. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +34 -0
  447. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +25 -0
  448. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +17 -0
  449. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +25 -0
  450. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +29 -0
  451. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +18 -0
  452. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +71 -0
  453. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +15 -0
  454. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +19 -0
  455. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +16 -0
  456. package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +23 -0
  457. package/lib/utils/suggester-workers/commons-tokenizer/filters/stop-words.js +9 -0
  458. package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +17 -0
  459. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +31 -0
  460. package/lib/utils/suggester-workers/commons-tokenizer/index.js +79 -0
  461. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +24 -0
  462. package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +15 -0
  463. package/lib/utils/suggester-workers/create-worker.js +64 -0
  464. package/lib/utils/suggester-workers/find-best-label/find-best-label.js +81 -0
  465. package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +67 -0
  466. package/lib/utils/suggester-workers/find-best-label/index.js +1 -0
  467. package/lib/utils/suggester-workers/find-best-label/tokenize.js +62 -0
  468. package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +26 -0
  469. package/lib/utils/suggester-workers/searching/compute-score.js +63 -0
  470. package/lib/utils/suggester-workers/searching/get-db.js +64 -0
  471. package/lib/utils/suggester-workers/searching/index.js +15 -0
  472. package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +33 -0
  473. package/lib/utils/suggester-workers/searching/order/index.js +33 -0
  474. package/lib/utils/suggester-workers/searching/query-parser/index.js +23 -0
  475. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +15 -0
  476. package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +28 -0
  477. package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +51 -0
  478. package/lib/utils/suggester-workers/searching/resolve-query-parser.js +73 -0
  479. package/lib/utils/suggester-workers/searching/search-in-index.js +25 -0
  480. package/lib/utils/suggester-workers/searching/searching.js +170 -0
  481. package/lib/utils/suggester-workers/searching/searching.worker.js +23 -0
  482. package/lib/utils/vtl/dataset-builder.js +28 -0
  483. package/lib/utils/vtl/index.js +15 -0
  484. package/package.json +160 -140
  485. package/lib/index.js.map +0 -1
  486. package/src/components/breadcrumb/breadcrumb.scss +0 -22
  487. package/src/components/breadcrumb/component.js +0 -29
  488. package/src/components/breadcrumb/index.js +0 -1
  489. package/src/components/button/button.scss +0 -26
  490. package/src/components/button/component.js +0 -25
  491. package/src/components/button/index.js +0 -1
  492. package/src/components/checkbox/boolean.js +0 -139
  493. package/src/components/checkbox/checkbox.scss +0 -43
  494. package/src/components/checkbox/group.js +0 -168
  495. package/src/components/checkbox/index.js +0 -3
  496. package/src/components/checkbox/one.js +0 -27
  497. package/src/components/components.js +0 -15
  498. package/src/components/datepicker/component.js +0 -10
  499. package/src/components/datepicker/datepicker.scss +0 -16
  500. package/src/components/datepicker/index.js +0 -1
  501. package/src/components/declarations/component.js +0 -38
  502. package/src/components/declarations/declarations.scss +0 -34
  503. package/src/components/declarations/index.js +0 -1
  504. package/src/components/declarations/wrappers/index.js +0 -3
  505. package/src/components/declarations/wrappers/input-declarations-wrapper.js +0 -157
  506. package/src/components/declarations/wrappers/list-declarations-wrapper.js +0 -159
  507. package/src/components/declarations/wrappers/simple-declarations-wrapper.js +0 -54
  508. package/src/components/dropdown/commons/actions.js +0 -56
  509. package/src/components/dropdown/commons/children-to-option.js +0 -9
  510. package/src/components/dropdown/commons/cleaner-callbacks.js +0 -58
  511. package/src/components/dropdown/commons/components/closed.icon.js +0 -24
  512. package/src/components/dropdown/commons/components/dropdown-container.js +0 -169
  513. package/src/components/dropdown/commons/components/label.js +0 -21
  514. package/src/components/dropdown/commons/components/opened.icon.js +0 -24
  515. package/src/components/dropdown/commons/components/panel.js +0 -78
  516. package/src/components/dropdown/commons/event-callbacks/index.js +0 -5
  517. package/src/components/dropdown/commons/event-callbacks/on-keydown-callback.js +0 -30
  518. package/src/components/dropdown/commons/event-callbacks/on-mousedown-callback.js +0 -11
  519. package/src/components/dropdown/commons/reducer.js +0 -149
  520. package/src/components/dropdown/commons/tools/index.js +0 -17
  521. package/src/components/dropdown/component.js +0 -117
  522. package/src/components/dropdown/dropdown-edit/cross.icon.js +0 -20
  523. package/src/components/dropdown/dropdown-edit/dropdown-edit.js +0 -174
  524. package/src/components/dropdown/dropdown-edit/icone.js +0 -33
  525. package/src/components/dropdown/dropdown-edit/index.js +0 -11
  526. package/src/components/dropdown/dropdown-edit/option.js +0 -62
  527. package/src/components/dropdown/dropdown-edit/prefix-tools.js +0 -51
  528. package/src/components/dropdown/dropdown-simple/dropdown.js +0 -155
  529. package/src/components/dropdown/dropdown-simple/index.js +0 -20
  530. package/src/components/dropdown/dropdown-simple/option.js +0 -15
  531. package/src/components/dropdown/dropdown.scss +0 -183
  532. package/src/components/dropdown/index.js +0 -1
  533. package/src/components/filter-description/component.js +0 -41
  534. package/src/components/filter-description/index.js +0 -1
  535. package/src/components/index.js +0 -4
  536. package/src/components/index.scss +0 -76
  537. package/src/components/input/index.js +0 -2
  538. package/src/components/input/input-number.js +0 -223
  539. package/src/components/input/input.js +0 -10
  540. package/src/components/input/input.scss +0 -27
  541. package/src/components/loops/index.js +0 -2
  542. package/src/components/loops/loop/build-components.js +0 -33
  543. package/src/components/loops/loop/component.js +0 -88
  544. package/src/components/loops/loop/index.js +0 -1
  545. package/src/components/loops/loop/loop.scss +0 -17
  546. package/src/components/loops/roster/build-components.js +0 -26
  547. package/src/components/loops/roster/component.js +0 -199
  548. package/src/components/loops/roster/index.js +0 -1
  549. package/src/components/progress-bar/component.js +0 -28
  550. package/src/components/progress-bar/index.js +0 -1
  551. package/src/components/progress-bar/progress-bar.scss +0 -54
  552. package/src/components/radio/component.js +0 -8
  553. package/src/components/radio/index.js +0 -1
  554. package/src/components/radio/radio.scss +0 -24
  555. package/src/components/sequence/component.js +0 -41
  556. package/src/components/sequence/index.js +0 -1
  557. package/src/components/sequence/sequence.scss +0 -15
  558. package/src/components/subsequence/component.js +0 -48
  559. package/src/components/subsequence/index.js +0 -1
  560. package/src/components/subsequence/subsequence.scss +0 -15
  561. package/src/components/table/index.js +0 -1
  562. package/src/components/table/table.js +0 -160
  563. package/src/components/table/table.scss +0 -23
  564. package/src/components/textarea/component.js +0 -10
  565. package/src/components/textarea/index.js +0 -1
  566. package/src/components/textarea/textarea.scss +0 -16
  567. package/src/components/tooltip/img/index.js +0 -4
  568. package/src/components/tooltip/index.js +0 -1
  569. package/src/components/tooltip/response.js +0 -42
  570. package/src/components/tooltip/tooltip.scss +0 -35
  571. package/src/constants/component-types.js +0 -1
  572. package/src/constants/declarations.js +0 -14
  573. package/src/constants/index.js +0 -4
  574. package/src/constants/supported-preferences.js +0 -10
  575. package/src/constants/value-types.js +0 -5
  576. package/src/constants/variable-types.js +0 -4
  577. package/src/stories/breadcrumb/README.md +0 -14
  578. package/src/stories/breadcrumb/breadcrumb.stories.js +0 -33
  579. package/src/stories/button/README.md +0 -14
  580. package/src/stories/button/button.stories.js +0 -63
  581. package/src/stories/checkbox-boolean/README.md +0 -27
  582. package/src/stories/checkbox-boolean/checkbox-boolean.stories.js +0 -33
  583. package/src/stories/checkbox-group/README.md +0 -29
  584. package/src/stories/checkbox-group/checkbox-group.stories.js +0 -81
  585. package/src/stories/checkbox-group/data-vtl.json +0 -89
  586. package/src/stories/checkbox-group/data.json +0 -89
  587. package/src/stories/checkbox-one/checkbox-one.stories.js +0 -77
  588. package/src/stories/checkbox-one/data-vtl.json +0 -33
  589. package/src/stories/checkbox-one/data.json +0 -33
  590. package/src/stories/datepicker/README.md +0 -31
  591. package/src/stories/datepicker/data.json +0 -28
  592. package/src/stories/datepicker/datepicker.stories.js +0 -65
  593. package/src/stories/declarations/README.md +0 -19
  594. package/src/stories/declarations/declarations.stories.js +0 -112
  595. package/src/stories/dropdown/README.md +0 -44
  596. package/src/stories/dropdown/data-naf.json +0 -6963
  597. package/src/stories/dropdown/data-props.json +0 -81
  598. package/src/stories/dropdown/data.json +0 -78
  599. package/src/stories/dropdown/dropdown.stories.js +0 -65
  600. package/src/stories/filter-description/README.md +0 -15
  601. package/src/stories/filter-description/filter-description.stories.js +0 -70
  602. package/src/stories/input/README.md +0 -33
  603. package/src/stories/input/data.json +0 -28
  604. package/src/stories/input/input.stories.js +0 -67
  605. package/src/stories/input-number/README.md +0 -37
  606. package/src/stories/input-number/data.json +0 -30
  607. package/src/stories/input-number/input-number.stories.js +0 -75
  608. package/src/stories/loops/README.md +0 -29
  609. package/src/stories/loops/custom-lunatic.scss +0 -789
  610. package/src/stories/loops/data-loop-deeper.json +0 -298
  611. package/src/stories/loops/data-loop.json +0 -213
  612. package/src/stories/loops/data-roster.json +0 -69
  613. package/src/stories/loops/img/arrow.png +0 -0
  614. package/src/stories/loops/img/check_box.svg +0 -1
  615. package/src/stories/loops/img/check_box_outline.svg +0 -1
  616. package/src/stories/loops/img/lunatic-logo.png +0 -0
  617. package/src/stories/loops/img/menu-down.svg +0 -1
  618. package/src/stories/loops/img/menu-up.svg +0 -1
  619. package/src/stories/loops/img/radio_button_checked.svg +0 -1
  620. package/src/stories/loops/img/radio_button_unchecked.svg +0 -1
  621. package/src/stories/loops/loop.stories.js +0 -56
  622. package/src/stories/loops/vqs.json +0 -846
  623. package/src/stories/progress-bar/README.md +0 -13
  624. package/src/stories/progress-bar/progress-bar.stories.js +0 -24
  625. package/src/stories/radio/README.md +0 -31
  626. package/src/stories/radio/data-vtl.json +0 -32
  627. package/src/stories/radio/data.json +0 -32
  628. package/src/stories/radio/radio.stories.js +0 -81
  629. package/src/stories/sequence/README.md +0 -18
  630. package/src/stories/sequence/sequence.stories.js +0 -58
  631. package/src/stories/subsequence/README.md +0 -18
  632. package/src/stories/subsequence/subsequence.stories.js +0 -58
  633. package/src/stories/table/README.md +0 -29
  634. package/src/stories/table/data-one-axis-one-measure.json +0 -124
  635. package/src/stories/table/data-one-axis-two-measures.json +0 -193
  636. package/src/stories/table/data-one-hierarchical-axis.json +0 -204
  637. package/src/stories/table/data-two-axis-one-measure.json +0 -492
  638. package/src/stories/table/table.stories.js +0 -77
  639. package/src/stories/textarea/README.md +0 -33
  640. package/src/stories/textarea/data.json +0 -28
  641. package/src/stories/textarea/textarea.stories.js +0 -67
  642. package/src/stories/tooltip-response/README.md +0 -14
  643. package/src/stories/tooltip-response/tooltip.stories.js +0 -43
  644. package/src/stories/utils/options.js +0 -21
  645. package/src/stories/utils/orchestrator.js +0 -55
  646. package/src/tests/components/breadcrumb.spec.js +0 -13
  647. package/src/tests/components/button.spec.js +0 -11
  648. package/src/tests/components/checkbox-boolean.spec.js +0 -40
  649. package/src/tests/components/checkbox-group.spec.js +0 -48
  650. package/src/tests/components/checkbox-one.spec.js +0 -32
  651. package/src/tests/components/datepicker.spec.js +0 -22
  652. package/src/tests/components/declarations-wrappers/input-declarations-wrapper.spec.js +0 -65
  653. package/src/tests/components/declarations-wrappers/list-declarations-wrapper.spec.js +0 -47
  654. package/src/tests/components/declarations-wrappers/simple-declarations-wrapper.spec.js +0 -21
  655. package/src/tests/components/declarations.spec.js +0 -46
  656. package/src/tests/components/input-number.spec.js +0 -173
  657. package/src/tests/components/input.spec.js +0 -18
  658. package/src/tests/components/progress-bar.spec.js +0 -15
  659. package/src/tests/components/radio.spec.js +0 -27
  660. package/src/tests/components/sequence.spec.js +0 -9
  661. package/src/tests/components/subsequence.spec.js +0 -9
  662. package/src/tests/components/table.spec.js +0 -11
  663. package/src/tests/components/textarea.spec.js +0 -18
  664. package/src/tests/components/tooltip.spec.js +0 -25
  665. package/src/tests/setup/setupTests.js +0 -4
  666. package/src/tests/utils/lib/alphabet.spec.js +0 -36
  667. package/src/tests/utils/lib/checkbox/group.spec.js +0 -72
  668. package/src/tests/utils/lib/decorator/title-decorator.spec.js +0 -12
  669. package/src/tests/utils/lib/items-positioning.spec.js +0 -17
  670. package/src/tests/utils/lib/label-position.spec.js +0 -22
  671. package/src/tests/utils/lib/loops/bindings.spec.js +0 -60
  672. package/src/tests/utils/lib/loops/shared.spec.js +0 -77
  673. package/src/tests/utils/lib/responses.spec.js +0 -58
  674. package/src/tests/utils/lib/style.spec.js +0 -26
  675. package/src/tests/utils/lib/table/roster.spec.js +0 -25
  676. package/src/tests/utils/lib/tooltip/build-response.spec.js +0 -95
  677. package/src/tests/utils/lib/tooltip/content.spec.js +0 -109
  678. package/src/tests/utils/to-expose/handler/handler.spec.js +0 -86
  679. package/src/tests/utils/to-expose/handler/questionnaire.json +0 -154
  680. package/src/tests/utils/to-expose/handler/results/index.js +0 -6
  681. package/src/tests/utils/to-expose/handler/results/res-double.json +0 -157
  682. package/src/tests/utils/to-expose/handler/results/res-input-collected.json +0 -154
  683. package/src/tests/utils/to-expose/handler/results/res-input-edited.json +0 -157
  684. package/src/tests/utils/to-expose/handler/results/res-loop.json +0 -157
  685. package/src/tests/utils/to-expose/handler/results/res-matrix.json +0 -157
  686. package/src/tests/utils/to-expose/handler/results/res-responses.json +0 -157
  687. package/src/tests/utils/to-expose/init-questionnaire/data.json +0 -12
  688. package/src/tests/utils/to-expose/init-questionnaire/init-questionnaire.spec.js +0 -19
  689. package/src/tests/utils/to-expose/init-questionnaire/questionnaire.json +0 -129
  690. package/src/tests/utils/to-expose/init-questionnaire/result.json +0 -162
  691. package/src/tests/utils/to-expose/interpret.spec.js +0 -42
  692. package/src/tests/utils/to-expose/state/questionnaire.json +0 -61
  693. package/src/tests/utils/to-expose/state/results.js +0 -78
  694. package/src/tests/utils/to-expose/state/state.spec.js +0 -59
  695. package/src/utils/lib/alphabet.js +0 -1
  696. package/src/utils/lib/checkbox/group.js +0 -21
  697. package/src/utils/lib/checkbox/index.js +0 -1
  698. package/src/utils/lib/decorator/index.js +0 -1
  699. package/src/utils/lib/decorator/title-decorator.js +0 -16
  700. package/src/utils/lib/index.js +0 -12
  701. package/src/utils/lib/label-position.js +0 -12
  702. package/src/utils/lib/loops/bindings.js +0 -47
  703. package/src/utils/lib/loops/index.js +0 -2
  704. package/src/utils/lib/loops/shared.js +0 -43
  705. package/src/utils/lib/memo-check.js +0 -24
  706. package/src/utils/lib/options-positioning.js +0 -9
  707. package/src/utils/lib/prop-types/declarations.js +0 -22
  708. package/src/utils/lib/prop-types/index.js +0 -5
  709. package/src/utils/lib/prop-types/lines.js +0 -6
  710. package/src/utils/lib/prop-types/options.js +0 -8
  711. package/src/utils/lib/prop-types/response.js +0 -6
  712. package/src/utils/lib/prop-types/value-type.js +0 -9
  713. package/src/utils/lib/responses.js +0 -9
  714. package/src/utils/lib/style.js +0 -10
  715. package/src/utils/lib/table/index.js +0 -1
  716. package/src/utils/lib/table/roster.js +0 -18
  717. package/src/utils/lib/tooltip/build-response.js +0 -23
  718. package/src/utils/lib/tooltip/content.js +0 -52
  719. package/src/utils/lib/tooltip/index.js +0 -5
  720. package/src/utils/to-expose/handler.js +0 -99
  721. package/src/utils/to-expose/hook.js +0 -55
  722. package/src/utils/to-expose/index.js +0 -10
  723. package/src/utils/to-expose/init-questionnaire.js +0 -114
  724. package/src/utils/to-expose/interpret.js +0 -32
  725. package/src/utils/to-expose/state.js +0 -58
@@ -1,789 +0,0 @@
1
- // Lunatic
2
-
3
- // Define colors
4
- $colorPrimaryDark: #2a5885;
5
- $colorPrimaryLight: rgb(81, 129, 184);
6
- $colorPrimaryMain: #4a73a4;
7
- $colorPrimaryContrastText: #ffffff;
8
-
9
- $colorVeryLight: rgb(219, 228, 239);
10
- $colorCurrentItem: #0d823e;
11
-
12
- $colorSecondaryDark: #1a293b;
13
- $colorSecondaryLight: #f7f8fa;
14
- $colorSecondaryMain: #1a293b;
15
- $colorSecondaryContrastText: #ffffff;
16
-
17
- * {
18
- box-sizing: border-box;
19
- font-family: 'Gotham SSm A', 'Gotham SSm B', sans-serif;
20
- }
21
-
22
- .lunatic input[type='number']::-webkit-inner-spin-button,
23
- .lunatic input[type='number']::-webkit-outer-spin-button {
24
- -webkit-appearance: none;
25
- margin: 0;
26
- }
27
-
28
- .lunatic input[type='number'] {
29
- text-align: left;
30
- }
31
-
32
- .lunatic textarea {
33
- border-color: $colorPrimaryDark;
34
- &:focus {
35
- outline: none;
36
- box-shadow: 0 0 10px $colorPrimaryMain;
37
- }
38
- }
39
-
40
- .lunatic .datepicker-lunatic {
41
- border-color: $colorPrimaryDark;
42
- &:focus {
43
- outline: none;
44
- box-shadow: 0 0 10px $colorPrimaryMain;
45
- }
46
- }
47
-
48
- .lunatic .table-lunatic {
49
- width: 100%;
50
- & td {
51
- border-color: $colorPrimaryDark;
52
- }
53
- & thead td {
54
- text-align: center;
55
- }
56
- }
57
- // Conteneur
58
- .component.lunatic {
59
- margin-bottom: 0.4375rem;
60
- }
61
-
62
- #componentsPrix {
63
- display: flex;
64
- flex-wrap: wrap;
65
- flex-direction: row;
66
-
67
- // border: 1px solid #39d2b4;
68
- width: 650px;
69
- }
70
-
71
- .promotionEtPrixLieQuantite {
72
- margin-left: 15px;
73
- visibility: hidden;
74
- // border: 1px solid red;
75
- }
76
-
77
- .cacher {
78
- visibility: hidden;
79
- //border: 1px solid red;
80
- }
81
- // sequence-lunatic
82
-
83
- .lunatic .sequence-lunatic {
84
- padding: 0;
85
- font-size: 0.875rem;
86
- color: $colorPrimaryLight;
87
- background-color: $colorSecondaryContrastText;
88
- border: 0;
89
- height: 1.875rem;
90
- }
91
-
92
- // FIELDSET
93
- .lunatic fieldset,
94
- .lunatic .checkbox-group,
95
- .lunatic .radio-group {
96
- border: 0;
97
- outline: 0;
98
- margin-top: 0.9375rem;
99
- }
100
-
101
- // CHECKBOXES & RADIO_BUTTONS
102
- .lunatic .checkbox-modality,
103
- .lunatic .radio-modality {
104
- margin-top: 0.375rem;
105
- }
106
-
107
- .lunatic .checkbox-lunatic,
108
- .lunatic .radio-lunatic {
109
- box-shadow: none;
110
- opacity: 0;
111
- margin-right: -1.1875rem;
112
- }
113
-
114
- .lunatic .checkbox-lunatic:focus,
115
- .lunatic .radio-lunatic:focus {
116
- box-shadow: none;
117
- }
118
-
119
- .lunatic .checkbox-lunatic + label,
120
- .lunatic .radio-lunatic + label {
121
- padding-right: 0.3125rem;
122
- padding-top: 0.125rem;
123
- }
124
-
125
- .lunatic .checkbox-lunatic:focus + label,
126
- .lunatic .radio-lunatic:focus + label {
127
- box-shadow: none;
128
- background-color: rgba(0, 0, 0, 0.05);
129
- border-right: 1px solid $colorVeryLight;
130
- padding-right: 0.3125rem;
131
- padding-top: 0.125rem;
132
- padding-bottom: 0.125rem;
133
- }
134
- .lunatic .checkbox-modality label::before,
135
- .lunatic .checkbox-lunatic + label::before,
136
- .lunatic .radio-lunatic + label::before {
137
- border: 0;
138
- transform: none;
139
- margin: 0;
140
- margin-right: 0.375rem;
141
- padding: 0;
142
- position: relative;
143
- top: 0.4375rem;
144
- }
145
-
146
- .lunatic .checkbox-lunatic + label::before {
147
- content: url(./img/check_box_outline.svg);
148
- }
149
-
150
- .lunatic .radio-lunatic + label::before {
151
- content: url(./img/radio_button_unchecked.svg);
152
- }
153
-
154
- .lunatic .checkbox-lunatic:checked + label,
155
- .lunatic .radio-lunatic:checked + label {
156
- border: 0;
157
- outline: 0;
158
- padding: 0;
159
- padding-right: 0.3125rem;
160
- padding-top: 0.125rem;
161
- padding-bottom: 0.125rem;
162
- background-color: rgba(0, 0, 0, 0.05);
163
- border-right: 1px solid $colorVeryLight;
164
- }
165
-
166
- .lunatic.checkbox-boolean .checkbox-modality {
167
- display: flex;
168
- flex-direction: row-reverse;
169
- justify-content: flex-end;
170
- }
171
-
172
- .lunatic.checkbox-boolean .checkbox-lunatic {
173
- position: relative;
174
- top: 5px;
175
- }
176
-
177
- .lunatic .checkbox-lunatic:checked + label::before {
178
- content: url(./img/check_box.svg);
179
- }
180
-
181
- .lunatic .radio-lunatic:checked + label::before {
182
- content: url(./img/radio_button_checked.svg);
183
- }
184
-
185
- // CHECKBOX BOOLEAN
186
- .lunatic .checkbox-boolean-lunatic + label::before,
187
- .lunatic .checkbox-boolean-lunatic-no-margin + label::before {
188
- content: url(./img/check_box_outline.svg);
189
- }
190
- .lunatic .checkbox-boolean-lunatic:checked + label::before,
191
- .lunatic .checkbox-boolean-lunatic-no-margin:checked + label::before {
192
- content: url(./img/check_box.svg);
193
- }
194
- .lunatic .checkbox-boolean-lunatic {
195
- box-shadow: none;
196
- opacity: 1;
197
- margin-right: -1.1875rem;
198
- & + span {
199
- padding-right: 0.3125rem;
200
- padding-top: 0.125rem;
201
- }
202
- }
203
- .lunatic .checkbox-boolean-modality label::before {
204
- border: 0;
205
- transform: none;
206
- margin: 0;
207
- margin-right: 0.375rem;
208
- padding: 0;
209
- position: relative;
210
- top: 0.4375rem;
211
- }
212
-
213
- // LABEL, LEGEND
214
- .lunatic label,
215
- .lunatic legend,
216
- .lunatic .subsequence-lunatic,
217
- .lunatic-dropdown-label {
218
- color: $colorPrimaryDark;
219
- background-color: $colorPrimaryContrastText;
220
- border: 0;
221
- padding: 0;
222
- font-size: 0.75rem;
223
- font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
224
- line-height: 0.75rem;
225
- font-weight: bold;
226
- margin-bottom: 0.375rem;
227
- }
228
-
229
- // DROPDOWN
230
-
231
- $inputHeight: 32px;
232
- $boxShadowColor: $colorPrimaryMain;
233
-
234
- @mixin defaultFont {
235
- font-family: Georgia, Times, 'Times New Roman', serif;
236
- font-size: 16px;
237
- }
238
-
239
- @mixin disableSelect {
240
- -moz-user-select: none; /* Firefox */
241
- -ms-user-select: none; /* Internet Explorer */
242
- -khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
243
- -webkit-user-select: none; /* Chrome, Safari, and Opera */
244
- -webkit-touch-callout: none; /* Disable Android and iOS callouts*/
245
- }
246
-
247
- .lunatic .lunatic-dropdown {
248
- display: block;
249
- width: 100%;
250
- &:focus {
251
- outline: none;
252
- }
253
-
254
- &.label-left {
255
- display: flex;
256
- flex-direction: row;
257
- }
258
-
259
- &.label-right {
260
- display: flex;
261
- flex-direction: row-reverse;
262
- }
263
-
264
- &.label-top {
265
- display: flex;
266
- flex-direction: column;
267
- }
268
-
269
- &.label-bottom {
270
- display: flex;
271
- flex-direction: column-reverse;
272
- }
273
-
274
- .lunatic-dropdown-label {
275
- opacity: 1;
276
- }
277
-
278
- .lunatic-dropdown-container {
279
- position: relative;
280
- height: $inputHeight;
281
- width: 100%;
282
- &:focus {
283
- outline: none;
284
- }
285
-
286
- .lunatic-dropdown-content {
287
- background-color: lavenderblush;
288
- box-shadow: 0em 0em 0.1em 0.1em $boxShadowColor;
289
- border-radius: 20px 20px;
290
- border-color: white;
291
- left: 0;
292
- top: 0;
293
- width: 100%;
294
- height: 100%;
295
- position: absolute;
296
-
297
- &.visible {
298
- border-radius: 16px 16px;
299
- height: auto;
300
- }
301
-
302
- &.focused {
303
- box-shadow: 0 0 0 0.2em $colorPrimaryMain;
304
- }
305
-
306
- &.disabled {
307
- background-color: whitesmoke;
308
- }
309
-
310
- .lunatic-dropdown-input {
311
- border-radius: 10px 10px;
312
- box-shadow: 0 0 0 0.2em $colorPrimaryDark;
313
- input {
314
- @include defaultFont();
315
- @include disableSelect();
316
- margin: 0px 25px 0px 12px;
317
- width: calc(100% - 37px);
318
- background-color: transparent;
319
- border-color: transparent;
320
- height: $inputHeight;
321
- border: none;
322
- outline: none;
323
- text-align: left;
324
- }
325
- }
326
-
327
- .lunatic-icone {
328
- cursor: pointer;
329
- position: absolute;
330
- right: 10px;
331
- top: 7px;
332
- &:focus {
333
- outline: none;
334
- }
335
- }
336
-
337
- .lunatic-transition {
338
- visibility: hidden;
339
- overflow-y: hidden;
340
- opacity: 0;
341
-
342
- &:focus {
343
- outline: none;
344
- }
345
-
346
- &.visible {
347
- visibility: visible;
348
- opacity: 1;
349
- transition: opacity 1s ease-out;
350
- }
351
-
352
- .lunatic-dropdown-panel {
353
- background-color: transparent;
354
- margin: 0 10px 12px 10px;
355
- padding-top: 3px;
356
- list-style: none;
357
- &:focus {
358
- outline: none;
359
- }
360
- max-height: 100px;
361
- overflow-y: auto;
362
-
363
- &::-webkit-scrollbar {
364
- width: 8px;
365
- }
366
- &::-webkit-scrollbar-track {
367
- background-color: $boxShadowColor;
368
- }
369
- &::-webkit-scrollbar-thumb {
370
- background: $colorPrimaryMain;
371
- }
372
- &::-webkit-scrollbar-thumb:hover {
373
- background: $colorPrimaryDark;
374
- }
375
- }
376
-
377
- /** options style */
378
- .lunatic-dropdown-option {
379
- cursor: pointer;
380
- @include defaultFont();
381
- white-space: nowrap;
382
- overflow: hidden;
383
- text-overflow: ellipsis;
384
- color: black;
385
-
386
- display: block;
387
-
388
- &.lunatic-dropdown-option-active {
389
- color: ivory;
390
- background-color: $colorPrimaryMain;
391
- .lunatic-prefix {
392
- color: darkgoldenrod;
393
- font-weight: bold;
394
- }
395
- }
396
-
397
- &.lunatic-dropdown-option-selected {
398
- color: snow;
399
- background-color: rgb(136, 19, 151);
400
- .lunatic-prefix {
401
- color: lightgray;
402
- font-weight: bold;
403
- }
404
-
405
- &.lunatic-dropdown-option-active {
406
- color: khaki;
407
- background-color: rgb(188, 90, 201);
408
- }
409
- }
410
-
411
- .lunatic-prefix {
412
- color: cornflowerblue;
413
- font-weight: bold;
414
- }
415
- }
416
- }
417
- }
418
- }
419
- }
420
-
421
- // SELECT
422
- // .lunatic .simple-select {
423
- // display: inline-block;
424
- // position: relative;
425
- // }
426
-
427
- // .lunatic .simple-select button {
428
- // width: 100%;
429
- // height: 2rem;
430
- // line-height: 1.1875rem;
431
-
432
- // color: $colorPrimaryMain;
433
- // background-color: white;
434
- // position: relative;
435
-
436
- // border: 0;
437
- // border-radius: 0;
438
- // border-bottom-width: 0.0625rem;
439
- // border-bottom-color: $colorPrimaryDark;
440
- // border-bottom-style: dotted;
441
-
442
- // margin: 0;
443
-
444
- // padding-bottom: 0.4375rem;
445
- // padding-left: 0.375rem;
446
- // padding-right: 0;
447
- // padding-top: 0.375rem;
448
-
449
- // text-decoration: none;
450
- // display: block;
451
-
452
- // text-align: left;
453
- // }
454
-
455
- // .lunatic .simple-select button:focus {
456
- // border: 0;
457
- // outline: none;
458
- // box-shadow: none;
459
- // background: rgba(0, 0, 0, 0.05);
460
- // border-bottom-width: 0.0625rem;
461
- // border-bottom-color: $colorPrimaryDark;
462
- // border-bottom-style: dotted;
463
- // }
464
- // .lunatic .simple-select button:after {
465
- // border: 0;
466
- // transform: none;
467
- // float: right;
468
- // margin-left: 0.3125rem;
469
- // content: url(./img/menu-down.svg);
470
- // color: rgba(0, 0, 0, 0.54);
471
- // padding: 0;
472
- // }
473
-
474
- // .lunatic .simple-select button[aria-expanded='true']:after {
475
- // border: 0;
476
- // transform: none;
477
- // float: right;
478
- // margin-left: 0.3125rem;
479
- // content: url(./img/menu-up.svg);
480
- // padding: 0;
481
- // }
482
-
483
- // .lunatic .simple-select ul.options,
484
- // .lunatic .simple-select ul.options:active {
485
- // box-shadow: 0 0.3125rem 0.3125rem -0.1875rem rgba(0, 0, 0, 0.2),
486
- // 0 0.5rem 0.625rem 0.0625rem rgba(0, 0, 0, 0.14),
487
- // 0 0.1875rem 0.875rem 0.125rem rgba(0, 0, 0, 0.12);
488
- // opacity: 1;
489
- // transform: scale(1, 1) translateZ(0);
490
- // transition: opacity 343ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
491
- // transform 228ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
492
- // transform-origin: 0 12.75rem 0;
493
- // padding: 0.5rem 0;
494
- // margin: 0;
495
- // background-color: white;
496
- // position: absolute;
497
- // top: -3.125rem;
498
- // list-style: none;
499
- // border: 0;
500
- // list-style-type: none;
501
-
502
- // min-width: 100%;
503
- // width: auto;
504
-
505
- // overflow-y: auto;
506
- // z-index: 1;
507
- // max-height: none;
508
- // }
509
-
510
- // .lunatic .simple-select .hidden {
511
- // display: none;
512
- // }
513
-
514
- // .lunatic .simple-select ul.options li.option {
515
- // cursor: pointer;
516
- // }
517
-
518
- // .lunatic .simple-select ul.options li.selected {
519
- // background-color: rgba(0, 0, 0, 0.14);
520
- // color: black;
521
- // }
522
-
523
- // .lunatic .simple-select .read-only {
524
- // background-color: #ebebe4;
525
- // color: black;
526
- // }
527
-
528
- // .lunatic .simple-select ul.options:focus {
529
- // border: 0;
530
- // outline: none;
531
- // background-color: white;
532
- // }
533
-
534
- // .lunatic .simple-select ul li.option {
535
- // display: flex;
536
- // justify-content: flex-start;
537
- // align-items: center;
538
-
539
- // border-color: rgba(0, 0, 0, 0.87);
540
- // border-radius: 0;
541
- // border-style: none;
542
- // border-width: 0;
543
- // border-image-outset: 0;
544
- // border-image-repeat: stretch;
545
- // border-image-slice: 100%;
546
- // border-image-source: none;
547
- // border-image-width: 1;
548
-
549
- // box-sizing: content-box;
550
- // color: rgba(0, 0, 0, 0.87);
551
- // cursor: pointer;
552
-
553
- // font-family: Roboto, Helvetica, Arial, sans-serif;
554
- // font-size: 1.1rem;
555
- // font-weight: normal;
556
- // height: 1.5rem;
557
-
558
- // line-height: 1.65rem;
559
- // list-style-image: none;
560
- // list-style-position: outside;
561
- // list-style-type: none;
562
- // margin: 0;
563
- // outline-color: rgba(0, 0, 0, 0.87);
564
- // outline-style: none;
565
- // outline-width: 0;
566
- // overflow: hidden;
567
-
568
- // padding: 0.6875rem 1rem;
569
-
570
- // position: relative;
571
- // text-align: left;
572
- // text-decoration-color: rgba(0, 0, 0, 0.87);
573
- // text-decoration-line: none;
574
- // text-decoration-style: solid;
575
- // transition-delay: 0s;
576
- // transition-duration: 0.15s;
577
- // transition-property: background-color;
578
- // transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
579
- // user-select: none;
580
- // vertical-align: middle;
581
- // white-space: nowrap;
582
- // -webkit-appearance: none;
583
- // -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
584
- // }
585
-
586
- // .lunatic .simple-select ul li:hover {
587
- // text-decoration: none;
588
- // background-color: rgba(0, 0, 0, 0.08);
589
- // }
590
-
591
- //TEXT
592
- .lunatic .input-lunatic {
593
- font: inherit;
594
- color: currentColor;
595
- border: 0;
596
- border-radius: 0;
597
- border-bottom: 0.125rem double rgba(0, 0, 0, 0.42);
598
- margin: 0;
599
- padding: 0.375rem 0 0.375rem 0.4375rem;
600
- display: block;
601
- min-width: 0;
602
- box-sizing: content-box;
603
- background: none;
604
- // -webkit-tap-highlight-color: transparent;
605
- }
606
-
607
- .lunatic .input-lunatic:hover {
608
- outline: none;
609
- box-shadow: none;
610
- border-bottom: 0.125rem solid black;
611
- }
612
-
613
- .lunatic .input-lunatic:focus {
614
- outline: none;
615
- box-shadow: none;
616
- border-bottom: 0.125rem solid $colorPrimaryMain;
617
- }
618
-
619
- // CHECKBOXES SWITCH
620
- // https://www.creativejuiz.fr/blog/tutoriels/personnaliser-aspect-boutons-radio-checkbox-css
621
-
622
- .lunatic.switch [type='checkbox']:not(:checked),
623
- .lunatic.switch [type='checkbox']:checked {
624
- opacity: 0;
625
- }
626
-
627
- .lunatic.switch [type='checkbox']:not(:checked) + label,
628
- .lunatic.switch [type='checkbox']:checked + label {
629
- position: relative;
630
- padding-left: 46px;
631
- cursor: pointer;
632
- }
633
-
634
- .lunatic.switch [type='checkbox']:not(:checked) + label:before,
635
- .lunatic.switch [type='checkbox']:checked + label:before,
636
- .lunatic.switch [type='checkbox']:not(:checked) + label:after,
637
- .lunatic.switch [type='checkbox']:checked + label:after {
638
- content: '';
639
- position: absolute;
640
- }
641
-
642
- .lunatic.switch [type='checkbox']:not(:checked) + label:before,
643
- .lunatic.switch [type='checkbox']:checked + label:before {
644
- left: 0;
645
- top: 2px;
646
- width: 34px;
647
- height: 14px;
648
- background: #dddddd;
649
- border-radius: 15px;
650
- -webkit-transition: background-color 0.2s;
651
- -moz-transition: background-color 0.2s;
652
- -ms-transition: background-color 0.2s;
653
- transition: background-color 0.2s;
654
- }
655
-
656
- .lunatic.switch [type='checkbox']:not(:checked) + label:after,
657
- .lunatic.switch [type='checkbox']:checked + label:after {
658
- width: 20px;
659
- height: 20px;
660
- -webkit-transition: all 0.2s;
661
- -moz-transition: all 0.2s;
662
- -ms-transition: all 0.2s;
663
- transition: all 0.2s;
664
- border-radius: 50%;
665
- background: #7f8c9a;
666
- top: -1px;
667
- left: 0;
668
- }
669
-
670
- /* on checked */
671
- .lunatic.switch [type='checkbox']:checked + label:before {
672
- background: #34495e;
673
- }
674
- .lunatic.switch [type='checkbox']:checked + label:after {
675
- background: $colorCurrentItem;
676
- top: -1px;
677
- left: 15px;
678
- }
679
-
680
- .lunatic.switch [type='checkbox']:checked + label .ui,
681
- .lunatic.switch [type='checkbox']:not(:checked) + label .ui:before,
682
- .lunatic.switch [type='checkbox']:checked + label .ui:after {
683
- position: absolute;
684
- left: 6px;
685
- width: 65px;
686
- border-radius: 15px;
687
- font-size: 14px;
688
- font-weight: bold;
689
- line-height: 22px;
690
- -webkit-transition: all 0.2s;
691
- -moz-transition: all 0.2s;
692
- -ms-transition: all 0.2s;
693
- transition: all 0.2s;
694
- }
695
- .lunatic.switch [type='checkbox']:not(:checked) + label .ui:before {
696
- content: 'no';
697
- left: 32px;
698
- }
699
- .lunatic.switch [type='checkbox']:checked + label .ui:after {
700
- content: 'yes';
701
- color: #39d2b4;
702
- }
703
- .lunatic.switch [type='checkbox']:focus + label:before {
704
- -webkit-box-sizing: border-box;
705
- -moz-box-sizing: border-box;
706
- -ms-box-sizing: border-box;
707
- box-sizing: border-box;
708
- }
709
-
710
- .lunatic table.table-lunatic {
711
- .table-cell-axis {
712
- text-align: left;
713
- width: 100%;
714
- }
715
- td,
716
- th {
717
- border-color: $colorPrimaryDark;
718
- padding: 0.4em;
719
- }
720
- }
721
-
722
- .lunatic .button-lunatic {
723
- color: white;
724
- background-color: $colorPrimaryDark;
725
- border-color: $colorPrimaryDark;
726
- width: 30%;
727
- &:hover {
728
- background-color: white;
729
- color: $colorPrimaryDark;
730
- border-color: $colorPrimaryDark;
731
- }
732
- &:disabled {
733
- color: $colorPrimaryDark;
734
- background-color: $colorVeryLight;
735
- border-color: $colorPrimaryDark;
736
- }
737
- }
738
-
739
- .lunatic .tooltip-lunatic {
740
- border: none;
741
- color: white;
742
- .tooltip-text {
743
- background-color: $colorPrimaryDark;
744
- }
745
- }
746
-
747
- .lunatic .filter-description-lunatic {
748
- display: inline;
749
- color: $colorPrimaryDark;
750
- background-color: #dcdcdc;
751
- font-weight: bold;
752
- padding: 0.2em;
753
- }
754
- .lunatic .filter-description-lunatic::before {
755
- content: url(./img/arrow.png);
756
- vertical-align: -40%;
757
- margin-right: 0.5em;
758
- }
759
-
760
- .field-container {
761
- width: 100%;
762
- }
763
-
764
- .field-with-tooltip {
765
- width: 90%;
766
- }
767
-
768
- .tooltip {
769
- width: 10%;
770
- }
771
-
772
- .lunatic .table-lunatic {
773
- width: 50%;
774
- .field-with-tooltip {
775
- width: 95%;
776
- }
777
- .tooltip {
778
- width: 5%;
779
- }
780
- .tooltip-lunatic {
781
- img {
782
- width: 1em;
783
- }
784
- }
785
- }
786
-
787
- .lunatic-loop {
788
- border: 1px solid $colorPrimaryMain;
789
- }