@arquimedes.co/eureka-forms 2.0.99 → 3.0.1-refactor

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 (334) hide show
  1. package/dist/@Types/FormStep.d.ts +1 -1
  2. package/dist/App/App.d.ts +1 -3
  3. package/dist/App/App.js +21 -46
  4. package/dist/App/AppFunctions.d.ts +1 -1
  5. package/dist/App/AppFunctions.js +177 -328
  6. package/dist/App/AppFunctions.test.js +638 -0
  7. package/dist/App/AppHooks.d.ts +2 -2
  8. package/dist/App/AppHooks.js +127 -223
  9. package/dist/App/AppHooks.test.d.ts +1 -0
  10. package/dist/App/AppHooks.test.js +154 -0
  11. package/dist/Contexts/CustomContext.d.ts +0 -1
  12. package/dist/Contexts/CustomContext.js +1 -1
  13. package/dist/Contexts/FormContext.d.ts +1 -1
  14. package/dist/Contexts/FormContext.js +3 -2
  15. package/dist/Contexts/SectionContext.d.ts +0 -1
  16. package/dist/Contexts/SectionContext.js +1 -1
  17. package/dist/Form/ConfirmationDialog/ConfirmationDialog.d.ts +0 -1
  18. package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +43 -62
  19. package/dist/Form/Form.d.ts +1 -2
  20. package/dist/Form/Form.js +75 -160
  21. package/dist/Form/FormFunctions.js +64 -114
  22. package/dist/Form/FormFunctions.test.d.ts +1 -0
  23. package/dist/Form/FormFunctions.test.js +454 -0
  24. package/dist/Form/FormHooks.d.ts +0 -1
  25. package/dist/Form/FormHooks.js +14 -21
  26. package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +0 -1
  27. package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +34 -105
  28. package/dist/Form/FormTypes/StepperForm/StepperForm.d.ts +1 -2
  29. package/dist/Form/FormTypes/StepperForm/StepperForm.js +48 -110
  30. package/dist/Form/Section/MaterialSection/MaterialSection.d.ts +0 -1
  31. package/dist/Form/Section/MaterialSection/MaterialSection.js +10 -23
  32. package/dist/Form/Section/MaterialSection/MaterialSection.module.css +0 -2
  33. package/dist/Form/Section/Section.d.ts +0 -1
  34. package/dist/Form/Section/Section.js +4 -15
  35. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.d.ts +0 -1
  36. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.js +30 -65
  37. package/dist/Form/Terms/Term/Term.d.ts +0 -1
  38. package/dist/Form/Terms/Term/Term.js +2 -13
  39. package/dist/Form/Terms/Terms.d.ts +0 -1
  40. package/dist/Form/Terms/Terms.js +11 -27
  41. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.d.ts +0 -1
  42. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.js +36 -106
  43. package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +0 -1
  44. package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +2 -13
  45. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -1
  46. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +12 -40
  47. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -1
  48. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +57 -77
  49. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +0 -1
  50. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.js +46 -111
  51. package/dist/FormSteps/AYFStepMapper.d.ts +0 -1
  52. package/dist/FormSteps/AYFStepMapper.js +63 -127
  53. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.d.ts +0 -1
  54. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.js +2 -13
  55. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.d.ts +0 -1
  56. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +63 -165
  57. package/dist/FormSteps/CBRStepMapper.d.ts +0 -1
  58. package/dist/FormSteps/CBRStepMapper.js +61 -152
  59. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.d.ts +0 -1
  60. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.js +2 -13
  61. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -1
  62. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +19 -37
  63. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +0 -1
  64. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.js +2 -13
  65. package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +1 -2
  66. package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +47 -80
  67. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.d.ts +0 -1
  68. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.js +3 -26
  69. package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -1
  70. package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +33 -61
  71. package/dist/FormSteps/CustomStep.d.ts +0 -1
  72. package/dist/FormSteps/CustomStep.js +17 -31
  73. package/dist/FormSteps/DatePickerStep/DatePickerStep.d.ts +0 -1
  74. package/dist/FormSteps/DatePickerStep/DatePickerStep.js +2 -13
  75. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +1 -2
  76. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +7 -20
  77. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.d.ts +0 -1
  78. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.js +2 -13
  79. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.d.ts +0 -1
  80. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.js +16 -32
  81. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +1 -2
  82. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +94 -180
  83. package/dist/FormSteps/FileUploadStep/FileUploadStep.d.ts +0 -1
  84. package/dist/FormSteps/FileUploadStep/FileUploadStep.js +2 -13
  85. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +0 -1
  86. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +33 -95
  87. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileFunctions.d.ts +2 -0
  88. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileFunctions.js +3 -0
  89. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -2
  90. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +86 -180
  91. package/dist/FormSteps/MapperStep/MapperStep.d.ts +0 -1
  92. package/dist/FormSteps/MapperStep/MapperStep.js +2 -13
  93. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +0 -1
  94. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +16 -38
  95. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElementComponent.js +21 -31
  96. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.d.ts +0 -1
  97. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.js +89 -175
  98. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +0 -1
  99. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +20 -47
  100. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +0 -1
  101. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.js +81 -117
  102. package/dist/FormSteps/PhoneInputStep/MaterialTextInputStep/MaterialPhoneInputStep.d.ts +1 -2
  103. package/dist/FormSteps/PhoneInputStep/MaterialTextInputStep/MaterialPhoneInputStep.js +15 -33
  104. package/dist/FormSteps/PhoneInputStep/PhoneInputStep.d.ts +0 -1
  105. package/dist/FormSteps/PhoneInputStep/PhoneInputStep.js +2 -13
  106. package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -1
  107. package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.js +17 -31
  108. package/dist/FormSteps/RatingStep/RatingStep.d.ts +0 -1
  109. package/dist/FormSteps/RatingStep/RatingStep.js +2 -13
  110. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -1
  111. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +35 -61
  112. package/dist/FormSteps/SelectorStep/SelectorStep.d.ts +0 -1
  113. package/dist/FormSteps/SelectorStep/SelectorStep.js +2 -13
  114. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -1
  115. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +2 -3
  116. package/dist/FormSteps/SeparatorStep/SeparatorStep.d.ts +0 -1
  117. package/dist/FormSteps/SeparatorStep/SeparatorStep.js +2 -13
  118. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +1 -2
  119. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +77 -142
  120. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.d.ts +5 -5
  121. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.js +2 -13
  122. package/dist/FormSteps/Step.d.ts +0 -1
  123. package/dist/FormSteps/Step.js +29 -58
  124. package/dist/FormSteps/StepFunctions.d.ts +4 -6
  125. package/dist/FormSteps/StepFunctions.js +149 -204
  126. package/dist/FormSteps/StepFunctions.test.d.ts +1 -0
  127. package/dist/FormSteps/StepFunctions.test.js +695 -0
  128. package/dist/FormSteps/StepHooks.d.ts +68 -14
  129. package/dist/FormSteps/StepHooks.js +94 -146
  130. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.d.ts +0 -1
  131. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +38 -74
  132. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +1 -2
  133. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +12 -28
  134. package/dist/FormSteps/TextAreaStep/TextAreaStep.d.ts +0 -1
  135. package/dist/FormSteps/TextAreaStep/TextAreaStep.js +3 -14
  136. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +1 -2
  137. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +12 -30
  138. package/dist/FormSteps/TextInputStep/TextInputStep.d.ts +1 -2
  139. package/dist/FormSteps/TextInputStep/TextInputStep.js +2 -13
  140. package/dist/FormSteps/TimePickerStep/MaterialTimePickerStep/MaterialTimePickerStep.d.ts +1 -2
  141. package/dist/FormSteps/TimePickerStep/MaterialTimePickerStep/MaterialTimePickerStep.js +9 -26
  142. package/dist/FormSteps/TimePickerStep/TimePickerStep.d.ts +0 -1
  143. package/dist/FormSteps/TimePickerStep/TimePickerStep.js +2 -13
  144. package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -1
  145. package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.js +13 -26
  146. package/dist/FormSteps/TitleStep/TitleStep.d.ts +0 -1
  147. package/dist/FormSteps/TitleStep/TitleStep.js +2 -13
  148. package/dist/FormSteps/Utils/@StepFiller/StepFiller.d.ts +1 -1
  149. package/dist/FormSteps/Utils/@StepFiller/StepFiller.js +14 -26
  150. package/dist/FormSteps/Utils/MaterialInputContainer/MaterialInputContainer.d.ts +0 -1
  151. package/dist/FormSteps/Utils/MaterialInputContainer/MaterialInputContainer.js +6 -18
  152. package/dist/Icons/@IconTypes.d.ts +0 -1
  153. package/dist/Icons/ArrowLeftIcon.d.ts +3 -0
  154. package/dist/Icons/ArrowLeftIcon.js +6 -0
  155. package/dist/Icons/ArrowRightIcon.d.ts +3 -0
  156. package/dist/Icons/ArrowRightIcon.js +6 -0
  157. package/dist/Icons/CalendarIcon.d.ts +1 -2
  158. package/dist/Icons/CalendarIcon.js +3 -14
  159. package/dist/Icons/CheckCircleIcon.d.ts +3 -0
  160. package/dist/Icons/CheckCircleIcon.js +6 -0
  161. package/dist/Icons/CheckboxCheckedIcon.d.ts +3 -0
  162. package/dist/Icons/CheckboxCheckedIcon.js +6 -0
  163. package/dist/Icons/CheckboxUncheckedIcon.d.ts +3 -0
  164. package/dist/Icons/CheckboxUncheckedIcon.js +6 -0
  165. package/dist/Icons/ClockIcon.d.ts +3 -0
  166. package/dist/Icons/ClockIcon.js +6 -0
  167. package/dist/Icons/CloseIcon.d.ts +3 -0
  168. package/dist/Icons/CloseIcon.js +6 -0
  169. package/dist/Icons/Construction/LeakIcon.d.ts +2 -2
  170. package/dist/Icons/Construction/LeakIcon.js +3 -14
  171. package/dist/Icons/Construction/ProjectIcon.d.ts +2 -2
  172. package/dist/Icons/Construction/ProjectIcon.js +3 -14
  173. package/dist/Icons/Construction/PropertyIcon.d.ts +2 -2
  174. package/dist/Icons/Construction/PropertyIcon.js +3 -14
  175. package/dist/Icons/Construction/SpaceIcon.d.ts +2 -2
  176. package/dist/Icons/Construction/SpaceIcon.js +3 -14
  177. package/dist/Icons/DeleteIcon.d.ts +3 -0
  178. package/dist/Icons/DeleteIcon.js +6 -0
  179. package/dist/Icons/DocumentIcon.d.ts +2 -2
  180. package/dist/Icons/DocumentIcon.js +3 -14
  181. package/dist/Icons/Entities/CheckListIcon.d.ts +2 -2
  182. package/dist/Icons/Entities/CheckListIcon.js +3 -14
  183. package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -2
  184. package/dist/Icons/Entities/GenericEntityIcon.js +4 -15
  185. package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -2
  186. package/dist/Icons/Entities/HandshakeIcon.js +4 -15
  187. package/dist/Icons/Entities/SupplierIcon.d.ts +2 -2
  188. package/dist/Icons/Entities/SupplierIcon.js +4 -15
  189. package/dist/Icons/ErkIcon.module.css +9 -0
  190. package/dist/Icons/ErrorIcon.d.ts +3 -0
  191. package/dist/Icons/ErrorIcon.js +6 -0
  192. package/dist/Icons/ExpandLessIcon.d.ts +3 -0
  193. package/dist/Icons/ExpandLessIcon.js +6 -0
  194. package/dist/Icons/ExpandMoreIcon.d.ts +3 -0
  195. package/dist/Icons/ExpandMoreIcon.js +6 -0
  196. package/dist/Icons/FileIcon.d.ts +3 -0
  197. package/dist/Icons/FileIcon.js +6 -0
  198. package/dist/Icons/InfoIcon.d.ts +3 -0
  199. package/dist/Icons/InfoIcon.js +6 -0
  200. package/dist/Icons/LocationIcon.d.ts +1 -2
  201. package/dist/Icons/LocationIcon.js +3 -14
  202. package/dist/Icons/PersonIcon.d.ts +1 -2
  203. package/dist/Icons/PersonIcon.js +4 -15
  204. package/dist/Icons/Ratings/DislikeIcon.d.ts +3 -0
  205. package/dist/Icons/Ratings/DislikeIcon.js +6 -0
  206. package/dist/Icons/Ratings/DissatisfiedIcon.d.ts +3 -0
  207. package/dist/Icons/Ratings/DissatisfiedIcon.js +6 -0
  208. package/dist/Icons/Ratings/LikeIcon.d.ts +3 -0
  209. package/dist/Icons/Ratings/LikeIcon.js +6 -0
  210. package/dist/Icons/Ratings/SatisfiedIcon.d.ts +3 -0
  211. package/dist/Icons/Ratings/SatisfiedIcon.js +6 -0
  212. package/dist/Icons/Ratings/StarIcon.d.ts +3 -0
  213. package/dist/Icons/Ratings/StarIcon.js +6 -0
  214. package/dist/Icons/Ratings/VeryDissatisfiedIcon.d.ts +3 -0
  215. package/dist/Icons/Ratings/VeryDissatisfiedIcon.js +6 -0
  216. package/dist/Icons/Ratings/VerySatisfiedIcon.d.ts +3 -0
  217. package/dist/Icons/Ratings/VerySatisfiedIcon.js +6 -0
  218. package/dist/Icons/WarningIcon.d.ts +3 -0
  219. package/dist/Icons/WarningIcon.js +6 -0
  220. package/dist/Init.d.ts +1 -0
  221. package/dist/Init.js +2 -0
  222. package/dist/Services/FileService.d.ts +1 -1
  223. package/dist/Services/FileService.js +29 -86
  224. package/dist/Services/FormService.js +11 -56
  225. package/dist/Services/OrganizationService.js +11 -62
  226. package/dist/Shared/CustomBtn/CustomBtn.d.ts +1 -2
  227. package/dist/Shared/CustomBtn/CustomBtn.js +25 -88
  228. package/dist/Shared/{RoundedButton/RoundedButton.d.ts → ErkButton/ErkButton.d.ts} +6 -5
  229. package/dist/Shared/ErkButton/ErkButton.js +31 -0
  230. package/dist/Shared/{RoundedButton/RoundedButton.stories.d.ts → ErkButton/ErkButton.stories.d.ts} +2 -2
  231. package/dist/Shared/{RoundedButton/RoundedButton.stories.js → ErkButton/ErkButton.stories.js} +6 -6
  232. package/dist/Shared/ErkCheckbox/ErkCheckBox.d.ts +19 -0
  233. package/dist/Shared/ErkCheckbox/ErkCheckBox.js +30 -0
  234. package/dist/Shared/{RoundedCheckBox/RoundedCheckBox.stories.d.ts → ErkCheckbox/ErkCheckBox.stories.d.ts} +2 -7
  235. package/dist/Shared/ErkCheckbox/ErkCheckBox.stories.js +37 -0
  236. package/dist/Shared/ErkDatePicker/ErkDatePicker.d.ts +16 -0
  237. package/dist/Shared/ErkDatePicker/ErkDatePicker.js +210 -0
  238. package/dist/Shared/{RoundedDatePicker/RoundedDatePicker.stories.d.ts → ErkDatePicker/ErkDatePicker.stories.d.ts} +3 -16
  239. package/dist/Shared/ErkDatePicker/ErkDatePicker.stories.js +103 -0
  240. package/dist/Shared/ErkPhoneInput/EkrPhoneInput.d.ts +16 -0
  241. package/dist/Shared/ErkPhoneInput/EkrPhoneInput.js +83 -0
  242. package/dist/Shared/ErkSelect/ErkSelect.d.ts +39 -0
  243. package/dist/Shared/ErkSelect/ErkSelect.js +90 -0
  244. package/dist/Shared/{RoundedSelect/RoundedSelect.stories.d.ts → ErkSelect/ErkSelect.stories.d.ts} +2 -12
  245. package/dist/Shared/ErkSelect/ErkSelect.stories.js +64 -0
  246. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.d.ts +28 -0
  247. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.js +56 -0
  248. package/dist/Shared/{RoundedSmartSelect/RoundedSmartSelect.stories.d.ts → ErkSmartSelect/ErkSmartSelect.stories.d.ts} +2 -12
  249. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.stories.js +167 -0
  250. package/dist/Shared/ErkTextField/ErkTextField.d.ts +26 -0
  251. package/dist/Shared/ErkTextField/ErkTextField.js +111 -0
  252. package/dist/Shared/{RoundedTextField/RoundedTextField.stories.d.ts → ErkTextField/ErkTextField.stories.d.ts} +3 -16
  253. package/dist/Shared/ErkTextField/ErkTextField.stories.js +105 -0
  254. package/dist/Shared/{RoundedTimePicker/RoundedTimePicker.d.ts → ErkTimePicker/ErkTimePicker.d.ts} +6 -16
  255. package/dist/Shared/ErkTimePicker/ErkTimePicker.js +131 -0
  256. package/dist/Shared/InputIcon/InputIcon.d.ts +2 -2
  257. package/dist/Shared/InputIcon/InputIcon.js +25 -48
  258. package/dist/Shared/Loader/Loader.d.ts +0 -1
  259. package/dist/Shared/Loader/Loader.js +6 -18
  260. package/dist/Shared/Navbar/Navbar.d.ts +0 -1
  261. package/dist/Shared/Navbar/Navbar.js +2 -14
  262. package/dist/Shared/Navbar/Navbar.stories.js +2 -2
  263. package/dist/Shared/Rating/Rating.d.ts +3 -5
  264. package/dist/Shared/Rating/Rating.js +4 -27
  265. package/dist/Shared/Rating/Rating.stories.js +13 -19
  266. package/dist/Shared/Rating/Ratings/LikeRating.d.ts +1 -2
  267. package/dist/Shared/Rating/Ratings/LikeRating.js +19 -33
  268. package/dist/Shared/Rating/Ratings/SatisfactionRating.d.ts +1 -2
  269. package/dist/Shared/Rating/Ratings/SatisfactionRating.js +27 -47
  270. package/dist/Shared/Rating/Ratings/ScaleRating.d.ts +1 -2
  271. package/dist/Shared/Rating/Ratings/ScaleRating.js +23 -54
  272. package/dist/Shared/Toggle/Toggle.d.ts +4 -14
  273. package/dist/Shared/Toggle/Toggle.js +11 -34
  274. package/dist/States/GlobalSlice.d.ts +4 -4
  275. package/dist/States/GlobalSlice.js +6 -17
  276. package/dist/States/SiteSlice.d.ts +30 -48
  277. package/dist/States/SiteSlice.js +58 -76
  278. package/dist/States/WidthStatsSlice.d.ts +2 -2
  279. package/dist/States/WidthStatsSlice.js +8 -9
  280. package/dist/Utils/AxiosAPI.js +3 -3
  281. package/dist/Utils/AxiosWidget.js +4 -4
  282. package/dist/Utils/CBRFunctions.js +29 -30
  283. package/dist/Utils/DraftFunctions.d.ts +3 -3
  284. package/dist/Utils/DraftFunctions.js +102 -143
  285. package/dist/Utils/FormStepFunctions.d.ts +1 -1
  286. package/dist/Utils/FormStepFunctions.js +27 -45
  287. package/dist/Utils/LocaleUtils.d.ts +2 -0
  288. package/dist/Utils/LocaleUtils.js +12 -0
  289. package/dist/Utils/MaterialProviders.d.ts +20 -1
  290. package/dist/Utils/MaterialProviders.js +43 -28
  291. package/dist/Utils/MuiClassnameSetup.js +3 -0
  292. package/dist/Utils/PhoneFunctions.js +5 -5
  293. package/dist/Utils/TestUtils.d.ts +55 -62
  294. package/dist/Utils/TestUtils.js +22 -51
  295. package/dist/Utils/store.d.ts +4 -2
  296. package/dist/Utils/store.js +10 -65
  297. package/dist/Widget.js +15 -26
  298. package/dist/constants/Draft/DraftEntityDataTypes.d.ts +3 -3
  299. package/dist/constants/Files/FileExtensions.js +3 -3
  300. package/dist/constants/Files/FileMaxSize.js +1 -1
  301. package/dist/constants/InternalFormStyle.js +1 -1
  302. package/dist/hooks.js +14 -16
  303. package/dist/index.css +4 -0
  304. package/dist/main.d.ts +2 -0
  305. package/dist/main.js +22 -0
  306. package/package.json +108 -124
  307. package/dist/Shared/RoundedButton/RoundedButton.js +0 -45
  308. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.d.ts +0 -24
  309. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.js +0 -101
  310. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.stories.js +0 -50
  311. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.d.ts +0 -49
  312. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.js +0 -351
  313. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.stories.js +0 -223
  314. package/dist/Shared/RoundedPhoneInput/RoundedPhoneInput.d.ts +0 -43
  315. package/dist/Shared/RoundedPhoneInput/RoundedPhoneInput.js +0 -226
  316. package/dist/Shared/RoundedSelect/RoundedSelect.d.ts +0 -68
  317. package/dist/Shared/RoundedSelect/RoundedSelect.js +0 -214
  318. package/dist/Shared/RoundedSelect/RoundedSelect.stories.js +0 -91
  319. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +0 -63
  320. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.js +0 -236
  321. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.stories.js +0 -318
  322. package/dist/Shared/RoundedTextField/RoundedTextField.d.ts +0 -45
  323. package/dist/Shared/RoundedTextField/RoundedTextField.js +0 -175
  324. package/dist/Shared/RoundedTextField/RoundedTextField.stories.js +0 -224
  325. package/dist/Shared/RoundedTimePicker/RoundedTimePicker.js +0 -314
  326. package/dist/__mocks__/axios.d.ts +0 -2
  327. package/dist/__mocks__/axios.js +0 -2
  328. package/dist/constants/MaterialClassNameSeed.js +0 -1
  329. package/dist/index.js +0 -31
  330. /package/dist/{index.d.ts → App/AppFunctions.test.d.ts} +0 -0
  331. /package/dist/Shared/{RoundedTimePicker/RoundedTimePicker.module.css → ErkTimePicker/ErkTimePicker.module.css} +0 -0
  332. /package/dist/{constants/MaterialClassNameSeed.d.ts → Utils/MuiClassnameSetup.d.ts} +0 -0
  333. /package/dist/{setupTests.d.ts → __tests__/setup.d.ts} +0 -0
  334. /package/dist/{setupTests.js → __tests__/setup.js} +0 -0
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { TextAreaStepProps } from '../TextAreaStep';
3
2
  export interface Payload {
4
3
  text: string;
5
4
  draft: any;
6
5
  }
7
- declare function TextAreaStep({ step, editable, maxLength, }: TextAreaStepProps): JSX.Element;
6
+ declare function TextAreaStep({ step, editable, maxLength }: TextAreaStepProps): JSX.Element;
8
7
  export default TextAreaStep;
@@ -1,47 +1,31 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import RoundedTextField from '../../../Shared/RoundedTextField/RoundedTextField';
2
+ import ErkTextField from '../../../Shared/ErkTextField/ErkTextField';
14
3
  import styles from './MaterialTextAreaStep.module.css';
15
4
  import React from 'react';
16
5
  import { useAppSelector } from '../../../hooks';
17
6
  import { useFormStep } from '../../StepHooks';
18
- function TextAreaStep(_a) {
19
- var _b, _c;
20
- var step = _a.step, editable = _a.editable, maxLength = _a.maxLength;
21
- var _d = useAppSelector(function (state) { return state.global; }), formStyle = _d.formStyle, postview = _d.postview, partial = _d.partial;
22
- var _e = useFormStep(step, {
7
+ function TextAreaStep({ step, editable, maxLength }) {
8
+ const { formStyle, postview, partial } = useAppSelector((state) => state.global);
9
+ const { ref, value, onChange, error, field } = useFormStep(step, {
23
10
  debounce: true,
24
11
  defaultValue: '',
25
12
  rules: {
26
13
  required: step.required ? 'Este campo es obligatorio' : undefined,
27
14
  },
28
- }), ref = _e.ref, value = _e.value, onChange = _e.onChange, error = _e.error, field = _e.field;
29
- var canEdit = editable && !postview;
30
- return (_jsxs("div", __assign({ className: styles.container, style: {
31
- paddingBottom: step.required || step.description || !!error
32
- ? '0px'
33
- : '5px',
34
- } }, { children: [_jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { inputRef: ref, value: value, onChange: function (e) { return onChange(e.target.value); }, "data-testid": step.id, maxLength: maxLength, label: step.label, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: (_c = (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description) !== null && _c !== void 0 ? _c : (step.required ? ' ' : null), error: !!error })) })), _jsxs("div", __assign({ className: styles.print }, { children: [value && (_jsxs(React.Fragment, { children: [_jsx("div", __assign({ className: styles.printLbl, style: {
15
+ });
16
+ return (_jsxs("div", { className: styles.container, style: {
17
+ paddingBottom: step.required || step.description || !!error ? '0px' : '5px',
18
+ }, children: [_jsx("div", { className: styles.erkTextArea, children: _jsx(ErkTextField, { ...field, multiline: true, value: value, inputRef: ref, error: !!error, label: step.label, onChange: onChange, "data-testid": step.id, maxLength: maxLength, required: step.required, disabled: !editable || postview, minRows: postview && partial ? undefined : 4, helperText: error?.message ?? step.description ?? (step.required ? ' ' : null) }) }), _jsxs("div", { className: styles.print, children: [value && (_jsxs(React.Fragment, { children: [_jsx("div", { className: styles.printLbl, style: {
35
19
  color: formStyle.descriptionTextColor,
36
- } }, { children: step.label })), _jsx("div", __assign({ className: styles.printLine, style: {
20
+ }, children: step.label }), _jsx("div", { className: styles.printLine, style: {
37
21
  color: formStyle.stepBackgroundColor,
38
22
  backgroundColor: formStyle.stepBackgroundColor,
39
- } }, { children: step.label }))] })), !value && (_jsx("div", __assign({ className: styles.emptyPrintLbl, style: {
23
+ }, children: step.label })] })), !value && (_jsx("div", { className: styles.emptyPrintLbl, style: {
40
24
  color: formStyle.textColor + '8a',
41
- } }, { children: step.label }))), _jsx("p", __assign({ className: styles.printContainer, style: {
25
+ }, children: step.label })), _jsx("p", { className: styles.printContainer, style: {
42
26
  backgroundColor: formStyle.stepBackgroundColor,
43
27
  borderColor: formStyle.outlineColor,
44
28
  whiteSpace: 'pre-wrap',
45
- } }, { children: value }))] }))] })));
29
+ }, children: value })] })] }));
46
30
  }
47
31
  export default TextAreaStep;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextArea } from '../../@Types/FormStep';
3
2
  import { StepProps } from '../Step';
4
3
  export interface TextAreaStepProps extends StepProps {
@@ -1,28 +1,17 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { useAppSelector } from '../../hooks';
14
3
  import { FormStyleTypes } from '../../constants/FormStepTypes';
15
4
  import MaterialTextAreaStep from './MaterialTextAreaStep/MaterialTextAreaStep';
16
5
  import MaterialTextAreaEditorStep from './MaterialTextAreaStep/MaterialTextAreaEditorStep';
17
6
  function TextAreaStep(props) {
18
- var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
7
+ const { formStyle } = useAppSelector((state) => state.global);
19
8
  switch (formStyle.type) {
20
9
  case FormStyleTypes.MATERIAL:
21
10
  default: {
22
11
  if (props.step.hasTextEditor)
23
- return _jsx(MaterialTextAreaEditorStep, __assign({}, props));
12
+ return _jsx(MaterialTextAreaEditorStep, { ...props });
24
13
  else
25
- return _jsx(MaterialTextAreaStep, __assign({}, props));
14
+ return _jsx(MaterialTextAreaStep, { ...props });
26
15
  }
27
16
  }
28
17
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextInputStepProps } from '../TextInputStep';
3
- declare function TextInputStep({ icon, step, editable, maxLength, defaultValue, validation, }: TextInputStepProps): JSX.Element;
2
+ declare function TextInputStep({ step, editable, maxLength, IconComponent, defaultValue, validation, }: TextInputStepProps): JSX.Element;
4
3
  export default TextInputStep;
@@ -1,30 +1,17 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import RoundedTextField from '../../../Shared/RoundedTextField/RoundedTextField';
2
+ import ErkTextField from '../../../Shared/ErkTextField/ErkTextField';
14
3
  import styles from './MaterialTextInputStep.module.css';
15
4
  import { calcStepWidth } from '../../StepFunctions';
16
5
  import { useContext } from 'react';
17
6
  import FormContext from '../../../Contexts/FormContext';
18
7
  import { selectBreakPoint, useAppSelector } from '../../../hooks';
19
8
  import { useFormStep } from '../../StepHooks';
20
- function TextInputStep(_a) {
21
- var _b;
22
- var icon = _a.icon, step = _a.step, editable = _a.editable, maxLength = _a.maxLength, _c = _a.defaultValue, defaultValue = _c === void 0 ? step.defaultValue : _c, _d = _a.validation, validation = _d === void 0 ? step.validation : _d;
23
- var currentBreakPoint = useAppSelector(selectBreakPoint);
24
- var _e = useAppSelector(function (state) { return state.global; }), formStyle = _e.formStyle, postview = _e.postview;
25
- var form = useContext(FormContext);
26
- var _f = useFormStep(step, {
27
- defaultValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : '',
9
+ function TextInputStep({ step, editable, maxLength, IconComponent, defaultValue = step.defaultValue, validation = step.validation, }) {
10
+ const currentBreakPoint = useAppSelector(selectBreakPoint);
11
+ const { postview } = useAppSelector((state) => state.global);
12
+ const form = useContext(FormContext);
13
+ const { ref, value, onChange, error, field } = useFormStep(step, {
14
+ defaultValue: defaultValue ?? '',
28
15
  debounce: true,
29
16
  rules: {
30
17
  required: step.required ? 'Este campo es obligatorio' : undefined,
@@ -38,15 +25,10 @@ function TextInputStep(_a) {
38
25
  }
39
26
  : undefined,
40
27
  },
41
- }), ref = _f.ref, value = _f.value, onChange = _f.onChange, error = _f.error, field = _f.field;
42
- return (_jsx("div", __assign({ className: styles.container, style: {
43
- width: currentBreakPoint <= step.size
44
- ? '100%'
45
- : calcStepWidth(step.size, form.size),
46
- minHeight: step.description ||
47
- (!postview && editable && (step.required || validation))
48
- ? '55px'
49
- : '43px',
50
- } }, { children: _jsx(RoundedTextField, __assign({}, field, { inputRef: ref, value: value, onChange: function (e) { return onChange(e.target.value); }, maxLength: maxLength, "data-testid": step.id, label: step.label, cantEdit: !editable || postview, required: step.required, fontWeight: 400, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperText: (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description, helperTextColor: formStyle.descriptionTextColor, error: !!error, icon: step.showIcon ? icon : undefined })) })));
28
+ });
29
+ return (_jsx("div", { className: styles.container, style: {
30
+ width: currentBreakPoint <= step.size ? '100%' : calcStepWidth(step.size, form.size),
31
+ minHeight: step.description || (!postview && editable && (step.required || validation)) ? '55px' : '43px',
32
+ }, children: _jsx(ErkTextField, { ...field, inputRef: ref, value: value, maxLength: maxLength, "data-testid": step.id, label: step.label, readOnly: !editable || postview, required: step.required, error: !!error, IconComponent: step.showIcon ? IconComponent : undefined, onChange: onChange, helperText: error?.message ?? step.description }) }));
51
33
  }
52
34
  export default TextInputStep;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { TextInput } from '../../@Types/FormStep';
3
2
  import { StepProps } from '../Step';
4
3
  export interface TextInputStepProps extends StepProps {
5
4
  /** The TextInputStep to display */
6
5
  step: TextInput;
7
6
  /** The icon to display */
8
- icon?: React.ReactNode;
7
+ IconComponent?: React.ElementType;
9
8
  /** Default value to display */
10
9
  defaultValue?: string;
11
10
  /** Custom Validation to display */
@@ -1,24 +1,13 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { FormStyleTypes } from '../../constants/FormStepTypes';
14
3
  import MaterialTextInputStep from './MaterialTextInputStep/MaterialTextInputStep';
15
4
  import { useAppSelector } from '../../hooks';
16
5
  function TextInputStep(props) {
17
- var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
6
+ const { formStyle } = useAppSelector((state) => state.global);
18
7
  switch (formStyle.type) {
19
8
  case FormStyleTypes.MATERIAL:
20
9
  default: {
21
- return _jsx(MaterialTextInputStep, __assign({}, props));
10
+ return _jsx(MaterialTextInputStep, { ...props });
22
11
  }
23
12
  }
24
13
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TimePickerStepProps } from '../TimePickerStep';
3
- declare function TimePickerStep({ step, editable, defaultValue, }: TimePickerStepProps): JSX.Element;
2
+ declare function TimePickerStep({ step, editable, defaultValue }: TimePickerStepProps): JSX.Element;
4
3
  export default TimePickerStep;
@@ -1,40 +1,23 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import RoundedTimePicker from '../../../Shared/RoundedTimePicker/RoundedTimePicker';
2
+ import ErkTimePicker from '../../../Shared/ErkTimePicker/ErkTimePicker';
14
3
  import { useAppSelector } from '../../../hooks';
15
4
  import { useFormStep } from '../../StepHooks';
16
5
  import MaterialInputContainer from '../../Utils/MaterialInputContainer/MaterialInputContainer';
17
- function TimePickerStep(_a) {
18
- var _b;
19
- var step = _a.step, editable = _a.editable, defaultValue = _a.defaultValue;
20
- var _c = useAppSelector(function (state) { return state.global; }), formStyle = _c.formStyle, postview = _c.postview;
21
- var _d = useFormStep(step, {
22
- defaultValue: defaultValue,
6
+ function TimePickerStep({ step, editable, defaultValue }) {
7
+ const postview = useAppSelector((state) => state.global.postview);
8
+ const { ref, value, onChange, error, field } = useFormStep(step, {
9
+ defaultValue,
23
10
  rules: {
24
- validate: function (value) {
11
+ validate: (value) => {
25
12
  if (step.required) {
26
- if (!value ||
27
- !(value.hours ||
28
- value.minutes ||
29
- value.days ||
30
- value.working !== undefined)) {
13
+ if (!value || !(value.hours || value.minutes || value.days || value.working !== undefined)) {
31
14
  return 'Este campo es obligatorio';
32
15
  }
33
16
  }
34
17
  return true;
35
18
  },
36
19
  },
37
- }), ref = _d.ref, value = _d.value, onChange = _d.onChange, error = _d.error, field = _d.field;
38
- return (_jsx(MaterialInputContainer, __assign({ step: step, editable: editable }, { children: _jsx(RoundedTimePicker, __assign({}, field, { value: value, onChange: onChange, inputRef: ref, cantEdit: !editable || postview, errorColor: formStyle.errorColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, helperTextColor: formStyle.descriptionTextColor, backgroundColor: formStyle.stepBackgroundColor, fontWeight: 400, height: '31px', containerMargin: "0px", label: step.label, helperText: (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description, error: !!error, required: step.required, pickDays: step.pickDays, minDays: step.minDays, maxDays: step.maxDays, pickHours: step.pickHours, minHours: step.minHours, maxHours: step.maxHours, pickMinutes: step.pickMinutes, minMinutes: step.minMinutes, maxMinutes: step.maxMinutes, working: step.working })) })));
20
+ });
21
+ return (_jsx(MaterialInputContainer, { step: step, editable: editable, children: _jsx(ErkTimePicker, { ...field, value: value, onChange: onChange, inputRef: ref, readOnly: !editable || postview, label: step.label, helperText: error?.message ?? step.description, error: !!error, required: step.required, pickDays: step.pickDays, minDays: step.minDays, maxDays: step.maxDays, pickHours: step.pickHours, minHours: step.minHours, maxHours: step.maxHours, pickMinutes: step.pickMinutes, minMinutes: step.minMinutes, maxMinutes: step.maxMinutes, working: step.working }) }));
39
22
  }
40
23
  export default TimePickerStep;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TimePicker } from '../../@Types/FormStep';
3
2
  import { StepProps } from '../Step';
4
3
  import { Time } from '../../@Types/Time';
@@ -1,24 +1,13 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { FormStyleTypes } from '../../constants/FormStepTypes';
14
3
  import { useAppSelector } from '../../hooks';
15
4
  import MaterialTimePickerStep from './MaterialTimePickerStep/MaterialTimePickerStep';
16
5
  function TimePickerStep(props) {
17
- var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
6
+ const { formStyle } = useAppSelector((state) => state.global);
18
7
  switch (formStyle.type) {
19
8
  case FormStyleTypes.MATERIAL:
20
9
  default: {
21
- return _jsx(MaterialTimePickerStep, __assign({}, props));
10
+ return _jsx(MaterialTimePickerStep, { ...props });
22
11
  }
23
12
  }
24
13
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TitleStepProps } from '../TitleStep';
3
2
  declare function TitleStep({ step }: TitleStepProps): JSX.Element;
4
3
  export default TitleStep;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { calcStepWidth } from '../../StepFunctions';
14
3
  import styles from './MaterialTitleStep.module.css';
@@ -16,30 +5,28 @@ import { useAppSelector } from '../../../hooks';
16
5
  import FormContext from '../../../Contexts/FormContext';
17
6
  import { useContext } from 'react';
18
7
  import { useFormStep } from '../../StepHooks';
19
- function TitleStep(_a) {
20
- var _b, _c, _d;
21
- var step = _a.step;
22
- var value = useFormStep(step, {
8
+ function TitleStep({ step }) {
9
+ const { value } = useFormStep(step, {
23
10
  defaultValue: undefined,
24
- }).value;
25
- var title = (_b = value === null || value === void 0 ? void 0 : value.title) !== null && _b !== void 0 ? _b : step.title;
26
- var description = (_c = value === null || value === void 0 ? void 0 : value.description) !== null && _c !== void 0 ? _c : step.description;
27
- var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
28
- var form = useContext(FormContext);
29
- var widthStats = useAppSelector(function (state) { return state.widthStats; });
30
- var size = (_d = step.size) !== null && _d !== void 0 ? _d : form.size.blockNum;
31
- return (_jsxs("div", __assign({ className: styles.container, style: {
11
+ });
12
+ const title = value?.title ?? step.title;
13
+ const description = value?.description ?? step.description;
14
+ const { formStyle } = useAppSelector((state) => state.global);
15
+ const form = useContext(FormContext);
16
+ const widthStats = useAppSelector((state) => state.widthStats);
17
+ const size = step.size ?? form.size.blockNum;
18
+ return (_jsxs("div", { className: styles.container, style: {
32
19
  color: formStyle.textColor,
33
20
  width: widthStats.currentBreakPoint <= size
34
21
  ? '100%'
35
22
  : calcStepWidth(size, form.size),
36
- } }, { children: [title && (_jsx("div", __assign({ className: styles.titleLbl, style: {
23
+ }, children: [title && (_jsx("div", { className: styles.titleLbl, style: {
37
24
  textAlign: widthStats.isMobile &&
38
25
  widthStats.currentBreakPoint <= size
39
26
  ? 'center'
40
27
  : 'start',
41
- } }, { children: title }))), description && (_jsx("p", __assign({ className: styles.descriptionPar, style: {
28
+ }, children: title })), description && (_jsx("p", { className: styles.descriptionPar, style: {
42
29
  margin: title ? '10px 0px' : '0px 0px 5px 0px',
43
- } }, { children: description })))] })));
30
+ }, children: description }))] }));
44
31
  }
45
32
  export default TitleStep;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Title } from '../../@Types/FormStep';
3
2
  import { StepProps } from '../Step';
4
3
  export interface TitleStepProps extends StepProps {
@@ -1,24 +1,13 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { FormStyleTypes } from '../../constants/FormStepTypes';
14
3
  import MaterialTitleStep from './MaterialTitleStep/MaterialTitleStep';
15
4
  import { useAppSelector } from '../../hooks';
16
5
  function TitleStep(props) {
17
- var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
6
+ const { formStyle } = useAppSelector((state) => state.global);
18
7
  switch (formStyle.type) {
19
8
  case FormStyleTypes.MATERIAL:
20
9
  default: {
21
- return _jsx(MaterialTitleStep, __assign({}, props));
10
+ return _jsx(MaterialTitleStep, { ...props });
22
11
  }
23
12
  }
24
13
  }
@@ -5,5 +5,5 @@ export interface StepFillerContainerProps {
5
5
  step: FillerSteps;
6
6
  children: React.ReactNode;
7
7
  }
8
- declare function StepFillerContainer({ step, children, }: StepFillerContainerProps): JSX.Element;
8
+ declare function StepFillerContainer({ step, children }: StepFillerContainerProps): JSX.Element;
9
9
  export default StepFillerContainer;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
2
  import { createContext, useCallback, useContext, useState } from 'react';
14
3
  import { useFormContext } from 'react-hook-form';
@@ -16,30 +5,29 @@ import { calcFillerSize } from '../../StepFunctions';
16
5
  import FormContext from '../../../Contexts/FormContext';
17
6
  import styles from './StepFiller.module.css';
18
7
  import { selectBreakPoint, useAppSelector } from '../../../hooks';
19
- export var SizeChangeContext = createContext(undefined);
20
- function StepFiller(_a) {
21
- var step = _a.step, children = _a.children;
22
- var getValues = useFormContext().getValues;
23
- var form = useContext(FormContext);
24
- var _b = useState(calcFillerSize(step, form.steps, getValues(), form.size)), fillerSize = _b[0], setFillerSize = _b[1];
25
- var currentBreakPoint = useAppSelector(selectBreakPoint);
26
- var handleSizeChange = useCallback(function () {
8
+ export const SizeChangeContext = createContext(undefined);
9
+ function StepFiller({ step, children }) {
10
+ const { getValues } = useFormContext();
11
+ const form = useContext(FormContext);
12
+ const [fillerSize, setFillerSize] = useState(calcFillerSize(step, form.steps, getValues(), form.size));
13
+ const currentBreakPoint = useAppSelector(selectBreakPoint);
14
+ const handleSizeChange = useCallback(() => {
27
15
  setFillerSize(calcFillerSize(step, form.steps, getValues(), form.size));
16
+ // eslint-disable-next-line react-hooks/exhaustive-deps
28
17
  }, []);
29
18
  if (step.maxSize && step.maxSize < form.size.blockNum) {
30
- return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
19
+ return (_jsxs("div", { className: styles.firstLvlContainer, style: {
31
20
  width: currentBreakPoint <= step.size ? '100%' : 'fit-content',
32
- } }, { children: [_jsx(SizeChangeContext.Provider, __assign({ value: handleSizeChange }, { children: children })), fillerSize > 0 && (_jsx("div", { className: styles.smallSeparator, style: {
21
+ }, children: [_jsx(SizeChangeContext.Provider, { value: handleSizeChange, children: children }), fillerSize > 0 && (_jsx("div", { className: styles.smallSeparator, style: {
33
22
  width: fillerSize,
34
- } }))] })));
23
+ } }))] }));
35
24
  }
36
25
  else {
37
- return (_jsxs(SizeChangeContext.Provider, __assign({ value: handleSizeChange }, { children: [children, step.maxSize && _jsx("div", { className: styles.separator })] })));
26
+ return (_jsxs(SizeChangeContext.Provider, { value: handleSizeChange, children: [children, step.maxSize && _jsx("div", { className: styles.separator })] }));
38
27
  }
39
28
  }
40
- function StepFillerContainer(_a) {
41
- var step = _a.step, children = _a.children;
42
- var handleSizeChange = useContext(SizeChangeContext);
29
+ function StepFillerContainer({ step, children }) {
30
+ const handleSizeChange = useContext(SizeChangeContext);
43
31
  if (handleSizeChange)
44
32
  return _jsx(_Fragment, { children: children });
45
33
  else
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GSmartSelect } from '../../../@Types/GenericFormSteps';
3
2
  import { CheckBox, DatePicker, ClassifierSelector, FormSelector, TimePicker } from '../../../@Types/FormStep';
4
3
  interface MaterialInputProps {
@@ -1,26 +1,14 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { useContext } from 'react';
14
3
  import FormContext from '../../../Contexts/FormContext';
15
4
  import { useAppSelector, selectBreakPoint } from '../../../hooks';
16
5
  import { calcStepWidth } from '../../StepFunctions';
17
6
  import styles from './MaterialInputContainer.module.css';
18
- function MaterialInputContainer(_a) {
19
- var step = _a.step, editable = _a.editable, children = _a.children, onClick = _a.onClick, _b = _a.maxHeight, maxHeight = _b === void 0 ? true : _b;
20
- var form = useContext(FormContext);
21
- var currentBreakPoint = useAppSelector(selectBreakPoint);
22
- var postview = useAppSelector(function (state) { return state.global.postview; });
23
- return (_jsx("div", __assign({ className: styles.container, style: {
7
+ function MaterialInputContainer({ step, editable, children, onClick, maxHeight = true, }) {
8
+ const form = useContext(FormContext);
9
+ const currentBreakPoint = useAppSelector(selectBreakPoint);
10
+ const postview = useAppSelector((state) => state.global.postview);
11
+ return (_jsx("div", { className: styles.container, style: {
24
12
  width: currentBreakPoint <= step.size
25
13
  ? '100%'
26
14
  : calcStepWidth(step.size, form.size),
@@ -30,6 +18,6 @@ function MaterialInputContainer(_a) {
30
18
  ? '55px'
31
19
  : '43px'
32
20
  : undefined,
33
- }, onClick: onClick, "data-testid": step.id }, { children: children })));
21
+ }, onClick: onClick, "data-testid": step.id, children: children }));
34
22
  }
35
23
  export default MaterialInputContainer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IconProps {
3
2
  fill?: string;
4
3
  contrast?: string;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './@IconTypes';
2
+ declare function ArrowLeftIcon({ className, ...props }: IconProps): JSX.Element;
3
+ export default ArrowLeftIcon;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './ErkIcon.module.css';
3
+ function ArrowLeftIcon({ className = styles.ErkIcon, ...props }) {
4
+ return (_jsx("svg", { ...props, className: className, version: "1.1", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M14.71 15.88L10.83 12l3.88-3.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 00-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z" }) }));
5
+ }
6
+ export default ArrowLeftIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './@IconTypes';
2
+ declare function ArrowRightIcon({ className, ...props }: IconProps): JSX.Element;
3
+ export default ArrowRightIcon;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './ErkIcon.module.css';
3
+ function ArrowRightIcon({ className = styles.ErkIcon, ...props }) {
4
+ return (_jsx("svg", { ...props, className: className, version: "1.1", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M9.29 15.88L13.17 12 9.29 8.12a.9959.9959 0 010-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z" }) }));
5
+ }
6
+ export default ArrowRightIcon;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconProps } from './@IconTypes';
3
- declare function CalendarIcon({ className, style, fill }: IconProps): JSX.Element;
2
+ declare function CalendarIcon({ className, ...props }: IconProps): JSX.Element;
4
3
  export default CalendarIcon;
@@ -1,17 +1,6 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
- function CalendarIcon(_a) {
14
- var className = _a.className, style = _a.style, fill = _a.fill;
15
- return (_jsx("svg", __assign({ fill: fill, style: style, className: className, xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "-1 -1 26 26", width: "24" }, { children: _jsx("path", { d: "M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z" }) })));
2
+ import styles from './ErkIcon.module.css';
3
+ function CalendarIcon({ className = styles.ErkIcon, ...props }) {
4
+ return (_jsx("svg", { ...props, className: className, xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "-1 -1 26 26", width: "24", children: _jsx("path", { d: "M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z" }) }));
16
5
  }
17
6
  export default CalendarIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './@IconTypes';
2
+ declare function CheckCircleIcon({ className, ...props }: IconProps): JSX.Element;
3
+ export default CheckCircleIcon;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './ErkIcon.module.css';
3
+ function CheckCircleIcon({ className = styles.ErkIcon, ...props }) {
4
+ return (_jsx("svg", { ...props, className: className, version: "1.1", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.88-11.71L10 14.17l-1.88-1.88a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7c.39-.39.39-1.02 0-1.41-.39-.39-1.03-.39-1.42 0z" }) }));
5
+ }
6
+ export default CheckCircleIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './@IconTypes';
2
+ declare function CheckboxCheckedIcon({ className, ...props }: IconProps): JSX.Element;
3
+ export default CheckboxCheckedIcon;