@arquimedes.co/eureka-forms 2.0.99 → 3.0.0-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 (339) hide show
  1. package/dist/App/App.js +21 -46
  2. package/dist/App/AppFunctions.js +177 -328
  3. package/dist/App/AppFunctions.test.js +638 -0
  4. package/dist/App/AppHooks.js +127 -223
  5. package/dist/App/AppHooks.test.js +154 -0
  6. package/dist/Contexts/CustomContext.js +1 -1
  7. package/dist/Contexts/FormContext.js +3 -2
  8. package/dist/Contexts/SectionContext.js +1 -1
  9. package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +43 -62
  10. package/dist/Form/Form.js +75 -160
  11. package/dist/Form/FormFunctions.js +64 -114
  12. package/dist/Form/FormFunctions.test.js +454 -0
  13. package/dist/Form/FormHooks.js +14 -21
  14. package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +34 -105
  15. package/dist/Form/FormTypes/StepperForm/StepperForm.js +48 -110
  16. package/dist/Form/Section/MaterialSection/MaterialSection.js +10 -23
  17. package/dist/Form/Section/MaterialSection/MaterialSection.module.css +0 -2
  18. package/dist/Form/Section/Section.js +4 -15
  19. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.js +30 -65
  20. package/dist/Form/Terms/Term/Term.js +2 -13
  21. package/dist/Form/Terms/Terms.js +11 -27
  22. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.js +36 -106
  23. package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +2 -13
  24. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +12 -40
  25. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +57 -77
  26. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.js +46 -111
  27. package/dist/FormSteps/AYFStepMapper.js +63 -127
  28. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.js +2 -13
  29. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +63 -165
  30. package/dist/FormSteps/CBRStepMapper.js +61 -152
  31. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.js +2 -13
  32. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +19 -37
  33. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.js +2 -13
  34. package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +47 -80
  35. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.js +3 -26
  36. package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +33 -61
  37. package/dist/FormSteps/CustomStep.js +17 -31
  38. package/dist/FormSteps/DatePickerStep/DatePickerStep.js +2 -13
  39. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +7 -20
  40. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.js +2 -13
  41. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.js +16 -32
  42. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +94 -180
  43. package/dist/FormSteps/FileUploadStep/FileUploadStep.js +2 -13
  44. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +33 -95
  45. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileFunctions.js +3 -0
  46. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +86 -180
  47. package/dist/FormSteps/MapperStep/MapperStep.js +2 -13
  48. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +16 -38
  49. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElementComponent.js +21 -31
  50. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.js +89 -175
  51. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +20 -47
  52. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.js +81 -117
  53. package/dist/FormSteps/PhoneInputStep/MaterialTextInputStep/MaterialPhoneInputStep.js +15 -33
  54. package/dist/FormSteps/PhoneInputStep/PhoneInputStep.js +2 -13
  55. package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.js +17 -31
  56. package/dist/FormSteps/RatingStep/RatingStep.js +2 -13
  57. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +35 -61
  58. package/dist/FormSteps/SelectorStep/SelectorStep.js +2 -13
  59. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +2 -3
  60. package/dist/FormSteps/SeparatorStep/SeparatorStep.js +2 -13
  61. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +77 -142
  62. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.js +2 -13
  63. package/dist/FormSteps/Step.js +29 -58
  64. package/dist/FormSteps/StepFunctions.js +149 -204
  65. package/dist/FormSteps/StepFunctions.test.js +695 -0
  66. package/dist/FormSteps/StepHooks.js +94 -146
  67. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +38 -74
  68. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +12 -28
  69. package/dist/FormSteps/TextAreaStep/TextAreaStep.js +3 -14
  70. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +12 -30
  71. package/dist/FormSteps/TextInputStep/TextInputStep.js +2 -13
  72. package/dist/FormSteps/TimePickerStep/MaterialTimePickerStep/MaterialTimePickerStep.js +9 -26
  73. package/dist/FormSteps/TimePickerStep/TimePickerStep.js +2 -13
  74. package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.js +13 -26
  75. package/dist/FormSteps/TitleStep/TitleStep.js +2 -13
  76. package/dist/FormSteps/Utils/@StepFiller/StepFiller.js +14 -26
  77. package/dist/FormSteps/Utils/MaterialInputContainer/MaterialInputContainer.js +6 -18
  78. package/dist/Icons/ArrowLeftIcon.js +6 -0
  79. package/dist/Icons/ArrowRightIcon.js +6 -0
  80. package/dist/Icons/CalendarIcon.js +3 -14
  81. package/dist/Icons/CheckCircleIcon.js +6 -0
  82. package/dist/Icons/CheckboxCheckedIcon.js +6 -0
  83. package/dist/Icons/CheckboxUncheckedIcon.js +6 -0
  84. package/dist/Icons/ClockIcon.js +6 -0
  85. package/dist/Icons/CloseIcon.js +6 -0
  86. package/dist/Icons/Construction/LeakIcon.js +3 -14
  87. package/dist/Icons/Construction/ProjectIcon.js +3 -14
  88. package/dist/Icons/Construction/PropertyIcon.js +3 -14
  89. package/dist/Icons/Construction/SpaceIcon.js +3 -14
  90. package/dist/Icons/DeleteIcon.js +6 -0
  91. package/dist/Icons/DocumentIcon.js +3 -14
  92. package/dist/Icons/Entities/CheckListIcon.js +3 -14
  93. package/dist/Icons/Entities/GenericEntityIcon.js +4 -15
  94. package/dist/Icons/Entities/HandshakeIcon.js +4 -15
  95. package/dist/Icons/Entities/SupplierIcon.js +4 -15
  96. package/dist/Icons/ErkIcon.module.css +9 -0
  97. package/dist/Icons/ErrorIcon.js +6 -0
  98. package/dist/Icons/ExpandLessIcon.js +6 -0
  99. package/dist/Icons/ExpandMoreIcon.js +6 -0
  100. package/dist/Icons/FileIcon.js +6 -0
  101. package/dist/Icons/InfoIcon.js +6 -0
  102. package/dist/Icons/LocationIcon.js +3 -14
  103. package/dist/Icons/PersonIcon.js +4 -15
  104. package/dist/Icons/Ratings/DislikeIcon.js +6 -0
  105. package/dist/Icons/Ratings/DissatisfiedIcon.js +6 -0
  106. package/dist/Icons/Ratings/LikeIcon.js +6 -0
  107. package/dist/Icons/Ratings/SatisfiedIcon.js +6 -0
  108. package/dist/Icons/Ratings/StarIcon.js +6 -0
  109. package/dist/Icons/Ratings/VeryDissatisfiedIcon.js +6 -0
  110. package/dist/Icons/Ratings/VerySatisfiedIcon.js +6 -0
  111. package/dist/Icons/WarningIcon.js +6 -0
  112. package/dist/Init.js +2 -0
  113. package/dist/Services/FileService.js +29 -86
  114. package/dist/Services/FormService.js +11 -56
  115. package/dist/Services/OrganizationService.js +11 -62
  116. package/dist/Shared/CustomBtn/CustomBtn.js +25 -88
  117. package/dist/Shared/ErkButton/ErkButton.js +31 -0
  118. package/dist/Shared/{RoundedButton/RoundedButton.stories.js → ErkButton/ErkButton.stories.js} +6 -6
  119. package/dist/Shared/ErkCheckbox/ErkCheckBox.js +30 -0
  120. package/dist/Shared/ErkCheckbox/ErkCheckBox.stories.js +37 -0
  121. package/dist/Shared/ErkDatePicker/ErkDatePicker.js +210 -0
  122. package/dist/Shared/ErkDatePicker/ErkDatePicker.stories.js +103 -0
  123. package/dist/Shared/ErkPhoneInput/EkrPhoneInput.js +83 -0
  124. package/dist/Shared/ErkSelect/ErkSelect.js +90 -0
  125. package/dist/Shared/ErkSelect/ErkSelect.stories.js +64 -0
  126. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.js +56 -0
  127. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.stories.js +167 -0
  128. package/dist/Shared/ErkTextField/ErkTextField.js +111 -0
  129. package/dist/Shared/ErkTextField/ErkTextField.stories.js +105 -0
  130. package/dist/Shared/ErkTimePicker/ErkTimePicker.js +131 -0
  131. package/dist/Shared/InputIcon/InputIcon.js +25 -48
  132. package/dist/Shared/Loader/Loader.js +6 -18
  133. package/dist/Shared/Navbar/Navbar.js +2 -14
  134. package/dist/Shared/Navbar/Navbar.stories.js +2 -2
  135. package/dist/Shared/Rating/Rating.js +4 -27
  136. package/dist/Shared/Rating/Rating.stories.js +13 -19
  137. package/dist/Shared/Rating/Ratings/LikeRating.js +19 -33
  138. package/dist/Shared/Rating/Ratings/SatisfactionRating.js +27 -47
  139. package/dist/Shared/Rating/Ratings/ScaleRating.js +23 -54
  140. package/dist/Shared/Toggle/Toggle.js +11 -34
  141. package/dist/States/GlobalSlice.js +6 -17
  142. package/dist/States/SiteSlice.js +58 -76
  143. package/dist/States/WidthStatsSlice.js +8 -9
  144. package/dist/Utils/AxiosAPI.js +3 -3
  145. package/dist/Utils/AxiosWidget.js +4 -4
  146. package/dist/Utils/CBRFunctions.js +29 -30
  147. package/dist/Utils/DraftFunctions.js +102 -143
  148. package/dist/Utils/FormStepFunctions.js +27 -45
  149. package/dist/Utils/LocaleUtils.js +12 -0
  150. package/dist/Utils/MaterialProviders.js +43 -28
  151. package/dist/Utils/MuiClassnameSetup.js +3 -0
  152. package/dist/Utils/PhoneFunctions.js +5 -5
  153. package/dist/Utils/TestUtils.js +22 -51
  154. package/dist/Utils/store.js +10 -65
  155. package/dist/Widget.js +15 -26
  156. package/dist/constants/Files/FileExtensions.js +3 -3
  157. package/dist/constants/Files/FileMaxSize.js +1 -1
  158. package/dist/constants/InternalFormStyle.js +1 -1
  159. package/dist/hooks.js +14 -16
  160. package/dist/index.css +4 -0
  161. package/dist/main.js +22 -0
  162. package/package.json +108 -124
  163. package/dist/@Types/@Types.d.ts +0 -2
  164. package/dist/@Types/AYFFormStep.d.ts +0 -19
  165. package/dist/@Types/Branding.d.ts +0 -13
  166. package/dist/@Types/CBRFormStep.d.ts +0 -74
  167. package/dist/@Types/Condition.d.ts +0 -143
  168. package/dist/@Types/Draft/Draft.d.ts +0 -12
  169. package/dist/@Types/Draft/DraftEntityData.d.ts +0 -54
  170. package/dist/@Types/Entity.d.ts +0 -36
  171. package/dist/@Types/Form.d.ts +0 -75
  172. package/dist/@Types/FormStep.d.ts +0 -219
  173. package/dist/@Types/GenericFormSteps.d.ts +0 -84
  174. package/dist/@Types/MapperElement.d.ts +0 -8
  175. package/dist/@Types/Organization.d.ts +0 -11
  176. package/dist/@Types/Time.d.ts +0 -6
  177. package/dist/@Types/index.d.ts +0 -1
  178. package/dist/App/App.d.ts +0 -59
  179. package/dist/App/AppFunctions.d.ts +0 -23
  180. package/dist/App/AppHooks.d.ts +0 -10
  181. package/dist/Contexts/CustomContext.d.ts +0 -12
  182. package/dist/Contexts/FormContext.d.ts +0 -6
  183. package/dist/Contexts/SectionContext.d.ts +0 -3
  184. package/dist/Form/ConfirmationDialog/ConfirmationDialog.d.ts +0 -12
  185. package/dist/Form/Form.d.ts +0 -40
  186. package/dist/Form/FormFunctions.d.ts +0 -12
  187. package/dist/Form/FormHooks.d.ts +0 -3
  188. package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +0 -4
  189. package/dist/Form/FormTypes/StepperForm/StepperForm.d.ts +0 -4
  190. package/dist/Form/Section/MaterialSection/MaterialSection.d.ts +0 -4
  191. package/dist/Form/Section/Section.d.ts +0 -6
  192. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.d.ts +0 -4
  193. package/dist/Form/Terms/Term/Term.d.ts +0 -8
  194. package/dist/Form/Terms/Terms.d.ts +0 -3
  195. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.d.ts +0 -8
  196. package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +0 -9
  197. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -8
  198. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -11
  199. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +0 -8
  200. package/dist/FormSteps/AYFStepMapper.d.ts +0 -12
  201. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.d.ts +0 -15
  202. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.d.ts +0 -4
  203. package/dist/FormSteps/CBRStepMapper.d.ts +0 -13
  204. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.d.ts +0 -9
  205. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -4
  206. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +0 -9
  207. package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +0 -4
  208. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.d.ts +0 -9
  209. package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -4
  210. package/dist/FormSteps/CustomStep.d.ts +0 -27
  211. package/dist/FormSteps/DatePickerStep/DatePickerStep.d.ts +0 -11
  212. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +0 -4
  213. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.d.ts +0 -15
  214. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.d.ts +0 -12
  215. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +0 -4
  216. package/dist/FormSteps/FileUploadStep/FileUploadStep.d.ts +0 -9
  217. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +0 -14
  218. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -18
  219. package/dist/FormSteps/MapperStep/MapperStep.d.ts +0 -18
  220. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +0 -5
  221. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElementComponent.d.ts +0 -15
  222. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.d.ts +0 -5
  223. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +0 -5
  224. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +0 -21
  225. package/dist/FormSteps/PhoneInputStep/MaterialTextInputStep/MaterialPhoneInputStep.d.ts +0 -4
  226. package/dist/FormSteps/PhoneInputStep/PhoneInputStep.d.ts +0 -11
  227. package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -4
  228. package/dist/FormSteps/RatingStep/RatingStep.d.ts +0 -9
  229. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -4
  230. package/dist/FormSteps/SelectorStep/SelectorStep.d.ts +0 -9
  231. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -4
  232. package/dist/FormSteps/SeparatorStep/SeparatorStep.d.ts +0 -9
  233. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +0 -5
  234. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.d.ts +0 -35
  235. package/dist/FormSteps/Step.d.ts +0 -8
  236. package/dist/FormSteps/StepFunctions.d.ts +0 -29
  237. package/dist/FormSteps/StepHooks.d.ts +0 -55
  238. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.d.ts +0 -10
  239. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +0 -8
  240. package/dist/FormSteps/TextAreaStep/TextAreaStep.d.ts +0 -10
  241. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +0 -4
  242. package/dist/FormSteps/TextInputStep/TextInputStep.d.ts +0 -17
  243. package/dist/FormSteps/TimePickerStep/MaterialTimePickerStep/MaterialTimePickerStep.d.ts +0 -4
  244. package/dist/FormSteps/TimePickerStep/TimePickerStep.d.ts +0 -12
  245. package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -4
  246. package/dist/FormSteps/TitleStep/TitleStep.d.ts +0 -9
  247. package/dist/FormSteps/Utils/@StepFiller/StepFiller.d.ts +0 -9
  248. package/dist/FormSteps/Utils/MaterialInputContainer/MaterialInputContainer.d.ts +0 -12
  249. package/dist/Icons/@IconTypes.d.ts +0 -7
  250. package/dist/Icons/CalendarIcon.d.ts +0 -4
  251. package/dist/Icons/Construction/LeakIcon.d.ts +0 -3
  252. package/dist/Icons/Construction/ProjectIcon.d.ts +0 -3
  253. package/dist/Icons/Construction/PropertyIcon.d.ts +0 -3
  254. package/dist/Icons/Construction/SpaceIcon.d.ts +0 -3
  255. package/dist/Icons/DocumentIcon.d.ts +0 -3
  256. package/dist/Icons/Entities/CheckListIcon.d.ts +0 -3
  257. package/dist/Icons/Entities/GenericEntityIcon.d.ts +0 -3
  258. package/dist/Icons/Entities/HandshakeIcon.d.ts +0 -3
  259. package/dist/Icons/Entities/SupplierIcon.d.ts +0 -3
  260. package/dist/Icons/LocationIcon.d.ts +0 -4
  261. package/dist/Icons/PersonIcon.d.ts +0 -4
  262. package/dist/Services/FileService.d.ts +0 -5
  263. package/dist/Services/FormService.d.ts +0 -5
  264. package/dist/Services/OrganizationService.d.ts +0 -2
  265. package/dist/Shared/CustomBtn/CustomBtn.d.ts +0 -18
  266. package/dist/Shared/InputIcon/InputIcon.d.ts +0 -7
  267. package/dist/Shared/Loader/Loader.d.ts +0 -18
  268. package/dist/Shared/Navbar/Navbar.d.ts +0 -9
  269. package/dist/Shared/Navbar/Navbar.stories.d.ts +0 -13
  270. package/dist/Shared/Rating/Rating.d.ts +0 -15
  271. package/dist/Shared/Rating/Rating.stories.d.ts +0 -15
  272. package/dist/Shared/Rating/Ratings/LikeRating.d.ts +0 -4
  273. package/dist/Shared/Rating/Ratings/SatisfactionRating.d.ts +0 -4
  274. package/dist/Shared/Rating/Ratings/ScaleRating.d.ts +0 -4
  275. package/dist/Shared/RoundedButton/RoundedButton.d.ts +0 -30
  276. package/dist/Shared/RoundedButton/RoundedButton.js +0 -45
  277. package/dist/Shared/RoundedButton/RoundedButton.stories.d.ts +0 -23
  278. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.d.ts +0 -24
  279. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.js +0 -101
  280. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.stories.d.ts +0 -21
  281. package/dist/Shared/RoundedCheckBox/RoundedCheckBox.stories.js +0 -50
  282. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.d.ts +0 -49
  283. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.js +0 -351
  284. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.stories.d.ts +0 -36
  285. package/dist/Shared/RoundedDatePicker/RoundedDatePicker.stories.js +0 -223
  286. package/dist/Shared/RoundedPhoneInput/RoundedPhoneInput.d.ts +0 -43
  287. package/dist/Shared/RoundedPhoneInput/RoundedPhoneInput.js +0 -226
  288. package/dist/Shared/RoundedSelect/RoundedSelect.d.ts +0 -68
  289. package/dist/Shared/RoundedSelect/RoundedSelect.js +0 -214
  290. package/dist/Shared/RoundedSelect/RoundedSelect.stories.d.ts +0 -28
  291. package/dist/Shared/RoundedSelect/RoundedSelect.stories.js +0 -91
  292. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +0 -63
  293. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.js +0 -236
  294. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.stories.d.ts +0 -36
  295. package/dist/Shared/RoundedSmartSelect/RoundedSmartSelect.stories.js +0 -318
  296. package/dist/Shared/RoundedTextField/RoundedTextField.d.ts +0 -45
  297. package/dist/Shared/RoundedTextField/RoundedTextField.js +0 -175
  298. package/dist/Shared/RoundedTextField/RoundedTextField.stories.d.ts +0 -37
  299. package/dist/Shared/RoundedTextField/RoundedTextField.stories.js +0 -224
  300. package/dist/Shared/RoundedTimePicker/RoundedTimePicker.d.ts +0 -41
  301. package/dist/Shared/RoundedTimePicker/RoundedTimePicker.js +0 -314
  302. package/dist/Shared/Toggle/Toggle.d.ts +0 -18
  303. package/dist/States/GlobalSlice.d.ts +0 -46
  304. package/dist/States/SiteSlice.d.ts +0 -95
  305. package/dist/States/WidthStatsSlice.d.ts +0 -7
  306. package/dist/Utils/AxiosAPI.d.ts +0 -2
  307. package/dist/Utils/AxiosWidget.d.ts +0 -2
  308. package/dist/Utils/CBRFunctions.d.ts +0 -8
  309. package/dist/Utils/DraftFunctions.d.ts +0 -56
  310. package/dist/Utils/FormStepFunctions.d.ts +0 -15
  311. package/dist/Utils/MaterialProviders.d.ts +0 -6
  312. package/dist/Utils/PhoneFunctions.d.ts +0 -2
  313. package/dist/Utils/TestUtils.d.ts +0 -77
  314. package/dist/Utils/store.d.ts +0 -27
  315. package/dist/Widget.d.ts +0 -1
  316. package/dist/__mocks__/axios.d.ts +0 -2
  317. package/dist/__mocks__/axios.js +0 -2
  318. package/dist/constants/AYFFormStepTypes.d.ts +0 -9
  319. package/dist/constants/CBRFormStepTypes.d.ts +0 -21
  320. package/dist/constants/ConditionTypes.d.ts +0 -27
  321. package/dist/constants/Draft/DraftEntityDataTypes.d.ts +0 -11
  322. package/dist/constants/Draft/DraftEntityTypes.d.ts +0 -3
  323. package/dist/constants/Draft/DraftStyleTypes.d.ts +0 -7
  324. package/dist/constants/EntityPropertyTypes.d.ts +0 -10
  325. package/dist/constants/Files/FileExtensions.d.ts +0 -3
  326. package/dist/constants/Files/FileMaxSize.d.ts +0 -2
  327. package/dist/constants/FormStepTypes.d.ts +0 -64
  328. package/dist/constants/IconTypes.d.ts +0 -15
  329. package/dist/constants/InternalFormStyle.d.ts +0 -3
  330. package/dist/constants/MaterialClassNameSeed.d.ts +0 -1
  331. package/dist/constants/MaterialClassNameSeed.js +0 -1
  332. package/dist/constants/TicketPropertyTypes.d.ts +0 -3
  333. package/dist/hooks.d.ts +0 -7
  334. package/dist/index.d.ts +0 -1
  335. package/dist/index.js +0 -31
  336. package/dist/index.lib.d.ts +0 -7
  337. package/dist/setupTests.d.ts +0 -1
  338. /package/dist/Shared/{RoundedTimePicker/RoundedTimePicker.module.css → ErkTimePicker/ErkTimePicker.module.css} +0 -0
  339. /package/dist/{setupTests.js → __tests__/setup.js} +0 -0
@@ -1,75 +0,0 @@
1
- import { FormStyleTypes, FormTypes } from '../constants/FormStepTypes';
2
- import { Branding } from './Branding';
3
- import { FormStep } from './FormStep';
4
- import { Entity } from './Entity';
5
- import { EurekaDraft } from './Draft/Draft';
6
- export interface Form {
7
- apiKey?: string;
8
- name?: string;
9
- sections: Record<string, Section>;
10
- steps: Record<string, FormStep>;
11
- size: FormSize;
12
- firstSection: string;
13
- type?: FormTypes;
14
- hasCaptcha?: boolean;
15
- isStandAlone?: boolean;
16
- style?: FormStyle;
17
- branding?: Branding;
18
- classifiers?: Record<string, Classifier>;
19
- entities?: Record<string, Entity>;
20
- terms?: Term[];
21
- hiddenSteps?: string[];
22
- confirmationMessage?: EurekaDraft;
23
- showLink?: boolean;
24
- nextSectionLabel?: string;
25
- prevSectionLabel?: string;
26
- }
27
- export interface FormSize {
28
- blockNum: 1 | 2 | 3 | 4;
29
- blockSize: number;
30
- spacingSize: number;
31
- }
32
- export interface Term {
33
- id: string;
34
- message: string;
35
- clickEffect?: TermDialog | TermLink;
36
- }
37
- interface TermDialog {
38
- type: 'DIALOG';
39
- title: string;
40
- text: string;
41
- }
42
- interface TermLink {
43
- type: 'LINK';
44
- url: string;
45
- }
46
- export interface Classifier {
47
- _id: string;
48
- name: string;
49
- clientName?: string;
50
- children: string[];
51
- }
52
- export type FormStyle = MaterialStyle;
53
- export type StyleKeys = keyof Omit<FormStyle, 'type'>;
54
- export interface MaterialStyle {
55
- type: FormStyleTypes.MATERIAL;
56
- standAloneBackgroundColor: string;
57
- backgroundColor: string;
58
- primaryColor: string;
59
- secondaryColor: string;
60
- errorColor: string;
61
- primaryContrastColor: string;
62
- secondaryContrastColor: string;
63
- textColor: string;
64
- outlineColor: string;
65
- stepBackgroundColor: string;
66
- descriptionTextColor: string;
67
- }
68
- export interface Section {
69
- id: string;
70
- name: string | null;
71
- title?: string;
72
- steps: string[];
73
- nextSection: string | null;
74
- }
75
- export {};
@@ -1,219 +0,0 @@
1
- import FormStepTypes, { ClassifierOptionTypes, OptionTypes, RatingTypes, MapperStyleTypes, EntityValueOptionTypes, EntityValueDataTypes, ApiSelectorOptionTypes, ApiSelectorParamTypes } from '../constants/FormStepTypes';
2
- import IconTypes from '../constants/IconTypes';
3
- import { Condition } from './Condition';
4
- import { EurekaDraft } from './Draft/Draft';
5
- import * as GSteps from './GenericFormSteps';
6
- import { Time } from './Time';
7
- export type FormStep = Title | TimePicker | Rating | CheckBox | TextArea | TextInput | DatePicker | FileUpload | Separator | FormSelector | ClassifierSelector | Collapsible | EntityValuePicker | ApiSelector | Mapper;
8
- export interface Title extends GSteps.GBaseStep {
9
- type: FormStepTypes.TITLE;
10
- title: string;
11
- description: string | null;
12
- size?: 1 | 2 | 3 | 4;
13
- }
14
- export interface TimePicker extends GSteps.GTimePicker {
15
- type: FormStepTypes.TIMEPICKER;
16
- defaultValue?: Time;
17
- }
18
- export interface CheckBox extends GSteps.GCheckBox {
19
- type: FormStepTypes.CHECKBOX;
20
- steps?: string[];
21
- uncheckedSteps?: string[];
22
- maxSize?: number;
23
- defaultValue?: boolean;
24
- }
25
- export interface Rating extends GSteps.GBaseStep {
26
- type: FormStepTypes.RATING;
27
- label: string;
28
- description: string;
29
- required: boolean;
30
- ratingType: RatingTypes;
31
- nestedSteps: string[][] | null;
32
- }
33
- export interface FileUpload extends GSteps.GBaseStep {
34
- type: FormStepTypes.FILEUPLOAD;
35
- label: string;
36
- description: string | null;
37
- required: boolean;
38
- }
39
- export interface Separator extends GSteps.GSeparator {
40
- type: FormStepTypes.SEPARATOR;
41
- }
42
- export interface TextArea extends GSteps.GTextArea {
43
- type: FormStepTypes.TEXTAREA;
44
- }
45
- export interface TextInput extends GSteps.GTextInput {
46
- type: FormStepTypes.TEXTINPUT;
47
- }
48
- export interface DatePicker extends GSteps.GDatePicker {
49
- type: FormStepTypes.DATEPICKER;
50
- }
51
- export interface Collapsible extends GSteps.GBaseStep {
52
- type: FormStepTypes.COLLAPSIBLE;
53
- label: string;
54
- steps: string[];
55
- defaultValue?: boolean;
56
- }
57
- export interface FormSelector extends GSteps.GBaseStep {
58
- type: FormStepTypes.SELECTOR;
59
- label: string;
60
- description: string;
61
- required: boolean;
62
- searchable: boolean;
63
- options: FormSelectorOption[];
64
- size: 1 | 2 | 3 | 4;
65
- maxSize?: number;
66
- defaultValue?: string;
67
- }
68
- export type FormSelectorOption = DefaultFormSelectorOption | NestedStepOption;
69
- interface DefaultFormSelectorOption {
70
- label: string;
71
- value: string;
72
- type: OptionTypes.DEFAULT;
73
- condition?: Condition;
74
- }
75
- export interface NestedStepOption {
76
- label: string;
77
- value: string;
78
- type: OptionTypes.NESTED;
79
- steps: string[];
80
- condition?: Condition;
81
- }
82
- export interface ClassifierSelector extends GSteps.GBaseStep {
83
- type: FormStepTypes.CLASSIFIER_SELECTOR;
84
- idClassifier: string | null;
85
- label: string;
86
- description: string;
87
- searchable: boolean;
88
- options: Record<string, FormClassifierSelectorOption>;
89
- required: boolean;
90
- size: 1 | 2 | 3 | 4;
91
- maxSize?: number;
92
- }
93
- export type FormClassifierSelectorOption = DefaultClassifierOption | NestedStepClassifierOption | HideValueOption;
94
- interface DefaultClassifierOption {
95
- type: ClassifierOptionTypes.DEFAULT;
96
- idClassifier: string;
97
- condition?: Condition;
98
- }
99
- interface NestedStepClassifierOption {
100
- type: ClassifierOptionTypes.NESTED;
101
- idClassifier: string;
102
- steps: string[];
103
- condition?: Condition;
104
- }
105
- interface HideValueOption {
106
- type: ClassifierOptionTypes.HIDE;
107
- idClassifier: string;
108
- }
109
- export interface EntityValuePicker extends GSteps.GSmartSelect {
110
- type: FormStepTypes.ENTITYVALUEPICKER;
111
- idEntity: string;
112
- icon: string | null;
113
- filters: EntityValuePickerFilter[];
114
- path: EntityValuePickerPath[];
115
- options: Record<string, FormEntityValuePickerOption>;
116
- maxSize?: number;
117
- dialogs?: EntityValuePickerDialog[];
118
- }
119
- export type FormEntityValuePickerOption = DefaultEntityValuePickerOption | NestedEntityValuePickerOption | HideFormEntityValuePickerOption;
120
- export interface EntityValuePickerDialog {
121
- type: 'WARNING' | 'INFO';
122
- message: EurekaDraft;
123
- condition?: Condition;
124
- }
125
- interface DefaultEntityValuePickerOption {
126
- type: EntityValueOptionTypes.DEFAULT;
127
- condition?: Condition;
128
- }
129
- interface NestedEntityValuePickerOption {
130
- type: EntityValueOptionTypes.NESTED;
131
- steps: string[];
132
- condition?: Condition;
133
- }
134
- interface HideFormEntityValuePickerOption {
135
- type: EntityValueOptionTypes.HIDE;
136
- }
137
- export type EntityValuePickerPath = StepEntityValuePickerPath | ValueEntityValuePickerPath;
138
- export interface StepEntityValuePickerPath {
139
- idEntity: string;
140
- type: EntityValueDataTypes.STEP;
141
- idStep: string;
142
- any: boolean;
143
- }
144
- export interface ValueEntityValuePickerPath {
145
- idEntity: string;
146
- type: EntityValueDataTypes.VALUE;
147
- idEntityValue: string | null;
148
- }
149
- export type EntityValuePickerFilter = StepEntityValuePickerFilter | ValueEntityValuePickerFilter;
150
- export interface StepEntityValuePickerFilter {
151
- idProperty: string;
152
- type: EntityValueDataTypes.STEP;
153
- idStep: string;
154
- any: boolean;
155
- required: boolean;
156
- }
157
- export interface ValueEntityValuePickerFilter {
158
- idProperty: string;
159
- type: EntityValueDataTypes.VALUE;
160
- value: any;
161
- }
162
- export interface ApiSelector extends GSteps.GSmartSelect {
163
- type: FormStepTypes.API_SELECTOR;
164
- icon?: IconTypes;
165
- url: string;
166
- pathParams: ApiSelectorParam[];
167
- queryParams: ApiSelectorParam[];
168
- /** Headers? Body, etc?? */
169
- labelAttribute: string;
170
- idAttribute: string;
171
- /** Only has maxSize if level === 0 */
172
- maxSize?: number;
173
- options: Record<string, ApiSelectorOption>;
174
- defaultValue?: any;
175
- }
176
- export type ApiSelectorOption = DefaultApiSelectorOption | NestedApiSelectorOption | HideApiSelectorOption;
177
- interface DefaultApiSelectorOption {
178
- type: ApiSelectorOptionTypes.DEFAULT;
179
- condition?: Condition;
180
- }
181
- interface NestedApiSelectorOption {
182
- type: ApiSelectorOptionTypes.NESTED;
183
- steps: string[];
184
- condition?: Condition;
185
- }
186
- interface HideApiSelectorOption {
187
- type: ApiSelectorOptionTypes.HIDE;
188
- idOption: string;
189
- }
190
- export type ApiSelectorParam = StepApiSelectorParam | ValueApiSelectorParam;
191
- export interface StepApiSelectorParam {
192
- type: ApiSelectorParamTypes.STEP;
193
- key: string;
194
- idStep: string;
195
- required: boolean;
196
- }
197
- export interface ValueApiSelectorParam {
198
- type: ApiSelectorParamTypes.VALUE;
199
- key: string;
200
- value: string;
201
- }
202
- export interface Mapper extends GSteps.GBaseStep {
203
- type: FormStepTypes.MAPPER;
204
- style: {
205
- type: MapperStyleTypes;
206
- size?: number;
207
- };
208
- label: string;
209
- description: string | null;
210
- addBtnLabel: string;
211
- rootSteps: string[];
212
- steps: Record<string, FormStep>;
213
- required: boolean;
214
- unitLabel: string;
215
- creatable?: boolean;
216
- deletable?: boolean;
217
- max?: number;
218
- }
219
- export {};
@@ -1,84 +0,0 @@
1
- import { Condition } from './Condition';
2
- export interface GBaseStep {
3
- id: string;
4
- idSection: string;
5
- type: string;
6
- editable?: boolean;
7
- partial?: boolean;
8
- clientInfoType?: string;
9
- dependencies?: string[];
10
- condition?: Condition;
11
- }
12
- export interface GTitle extends GBaseStep {
13
- title: string;
14
- description: string | null;
15
- }
16
- export interface GCheckBox extends GBaseStep {
17
- label: string;
18
- description: string | null;
19
- required: boolean;
20
- isList?: boolean;
21
- size: 1 | 2 | 3 | 4;
22
- }
23
- export interface GSeparator extends GBaseStep {
24
- transparent: boolean;
25
- }
26
- export interface GTextArea extends GBaseStep {
27
- label: string;
28
- description: string | null;
29
- required: boolean;
30
- hasTextEditor: boolean;
31
- }
32
- export interface GTextInput extends GBaseStep {
33
- label: string;
34
- description: string | null;
35
- validation?: {
36
- message: string;
37
- value: string;
38
- type: 'EMAIL' | 'PHONE' | 'OTHER';
39
- };
40
- required: boolean;
41
- showIcon?: boolean;
42
- size: 1 | 2 | 3 | 4;
43
- maxLength?: number;
44
- defaultValue?: string;
45
- }
46
- export interface GDatePicker extends GBaseStep {
47
- label: string;
48
- description: string | null;
49
- pickTime: boolean;
50
- required: boolean;
51
- size: 1 | 2 | 3 | 4;
52
- }
53
- export interface GTimePicker extends GBaseStep {
54
- label: string;
55
- description: string | null;
56
- required: boolean;
57
- size: 1 | 2 | 3 | 4;
58
- pickDays: boolean;
59
- minDays?: number;
60
- maxDays?: number;
61
- pickHours: boolean;
62
- minHours?: number;
63
- maxHours?: number;
64
- pickMinutes: boolean;
65
- minMinutes?: number;
66
- maxMinutes?: number;
67
- /** Undefined if user can choose */
68
- working?: boolean;
69
- }
70
- export interface GAgentPicker extends GBaseStep {
71
- label: string;
72
- description: string | null;
73
- required: boolean;
74
- multiple: boolean;
75
- size: 1 | 2 | 3 | 4;
76
- }
77
- export interface GSmartSelect extends GBaseStep {
78
- label: string;
79
- description: string | null;
80
- showIcon: boolean;
81
- required: boolean;
82
- searchable: boolean;
83
- size: 1 | 2 | 3 | 4;
84
- }
@@ -1,8 +0,0 @@
1
- export interface MapperElement<Type> {
2
- id: string;
3
- ids: Record<string, string>;
4
- deleted?: boolean;
5
- value?: Type;
6
- originalValues: Record<string, any>;
7
- isOriginal: boolean;
8
- }
@@ -1,11 +0,0 @@
1
- import { CountryCode } from 'libphonenumber-js';
2
- import { Branding } from './Branding';
3
- export interface Organization {
4
- /** The Organization's id */
5
- idOrganization: string;
6
- /** The Organization's name */
7
- name: string;
8
- branding: Branding;
9
- customBrandings: boolean;
10
- countryCode?: CountryCode;
11
- }
@@ -1,6 +0,0 @@
1
- export interface Time {
2
- days?: number;
3
- hours?: number;
4
- minutes?: number;
5
- working?: boolean;
6
- }
@@ -1 +0,0 @@
1
- export * from './@Types';
package/dist/App/App.d.ts DELETED
@@ -1,59 +0,0 @@
1
- import React from 'react';
2
- import { Classifier, Form } from '../@Types/Form';
3
- import './App.css';
4
- import { CustomStep, CustomStepProps } from '../FormSteps/CustomStep';
5
- import { EditorState } from 'draft-js';
6
- import { CountryCode } from 'libphonenumber-js';
7
- export interface AppProps {
8
- /** If the app is currently a widget */
9
- isWidget?: boolean;
10
- /** The apikey of the Form */
11
- apiKey?: string;
12
- /** The id of the form's organization */
13
- idOrganization?: string;
14
- /** The form to display, (used for postviews) */
15
- formData?: Form;
16
- /** If the widget is usedInternally */
17
- internal?: boolean;
18
- /** If the widget is a postview (view what the user filled)*/
19
- postview?: boolean;
20
- /** If postview should only show steps with values*/
21
- partial?: boolean;
22
- /** If the widget is a preview (view from admin)*/
23
- preview?: boolean;
24
- /** If the form can be edited (For entities) */
25
- editable?: boolean;
26
- /** The custom send label to display */
27
- sendLabel?: string;
28
- /** The data to fill the form with */
29
- valuesData?: Record<string, unknown>;
30
- /** Custom steps to display */
31
- customSteps?: Record<string, CustomStep>;
32
- /** Custom steps to display */
33
- customStepProps?: Record<string, unknown>;
34
- /** Classifiers dict */
35
- classifiers?: Record<string, Classifier>;
36
- /** Custom Confirmation Content */
37
- customConfirmation?: (confirmation: {
38
- url: string;
39
- caseNumber: string;
40
- }, renderIcon: () => JSX.Element, renderConfirmation: (state?: EditorState) => JSX.Element | void, renderLink: () => JSX.Element | void, onClose: () => void) => JSX.Element;
41
- customClientInfoStep?: (props: CustomStepProps) => JSX.Element;
42
- /** Custom function to call on send */
43
- customSubmit?: (values: Record<string, unknown>, reload: () => void) => Promise<void>;
44
- /** Custom submit function, when passed it is called */
45
- setSubmit?: (submit: () => Promise<void | Record<string, any>>) => void;
46
- /** Custom submit buttons */
47
- customSubmitBtns?: null | ((onSubmit: () => Promise<Record<string, any> | void>, loading: boolean) => JSX.Element);
48
- /** Function to call on postview to fetch the download url of a file */
49
- fetchDownloadUrl?: (S3Key: string, fileName: string) => Promise<string>;
50
- /** Function to call after the confimation dialog has been closed */
51
- handleConfirmed?: () => void;
52
- /** Function called to scroll to the top */
53
- scrollToTop?: () => void;
54
- /** The default country to use in phone pickers */
55
- countryCode?: CountryCode;
56
- }
57
- export declare const IdFormContext: React.Context<string>;
58
- declare function AppComponent({ formData, valuesData, ...props }: AppProps): JSX.Element;
59
- export default AppComponent;
@@ -1,23 +0,0 @@
1
- import { Form } from '../@Types';
2
- import { FormStep, Mapper } from '../@Types/FormStep';
3
- import { SiteState, ValuesStore } from '../States/SiteSlice';
4
- import { CustomStep } from '../FormSteps/CustomStep';
5
- import { MapperElement } from '../@Types/MapperElement';
6
- import { MapperValue } from '../FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep';
7
- import { CountryCode } from 'libphonenumber-js/max';
8
- export declare const calcValuesStore: (orgInfo: {
9
- idOrganization: string;
10
- countryCode: CountryCode;
11
- }, form: Readonly<Form>, originalValues?: Record<string, any>, postview?: boolean, customSteps?: Record<string, CustomStep>) => Promise<ValuesStore>;
12
- export declare const addMapperStep: <Type>(step: Mapper, customSteps: Record<string, CustomStep>, path?: string) => {
13
- element: MapperElement<Type>;
14
- /** Record of all the new mapper values created */
15
- mappers: Record<string, MapperValue<Type>>;
16
- /** Record of all the new steps created */
17
- steps: Record<string, FormStep>;
18
- };
19
- export declare const mapOriginalValue: (orgInfo: {
20
- idOrganization: string;
21
- countryCode: CountryCode;
22
- }, step: FormStep, value: any, values: ValuesStore, form?: Readonly<Form>, path?: string) => Promise<any>;
23
- export declare const calcInitialSections: (form: Form) => Pick<SiteState, 'previousSections' | 'idCurrentSection' | 'nextSections'>;
@@ -1,10 +0,0 @@
1
- import { Form, Organization } from '../@Types';
2
- import { AppProps } from './App';
3
- import { Branding } from '../@Types/Branding';
4
- export declare const useSetupApp: (isEmbedded: boolean, { preview, internal, postview, partial, editable, handleConfirmed, customSteps, valuesData, apiKey, formData, classifiers, ...others }: Omit<AppProps, 'isWidget'>) => {
5
- form: Form | undefined | null;
6
- organization: Organization | undefined | null;
7
- branding: Branding | undefined;
8
- reload: () => void;
9
- };
10
- export declare const useLogRocket: (organization: Organization | null | undefined, form: Form | null | undefined, { apiKey, internal, postview, preview, }: Pick<AppProps, 'apiKey' | 'internal' | 'postview' | 'preview'>) => void;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomStep, CustomStepProps } from '../FormSteps/CustomStep';
3
- export interface CustomContextData {
4
- sendLabel?: string;
5
- customStepProps: Record<string, unknown>;
6
- customSteps: Record<string, CustomStep>;
7
- customClientInfoStep?: (props: CustomStepProps) => JSX.Element;
8
- /** Function to call on postview to fetch the download url of a file */
9
- fetchDownloadUrl?: (S3Key: string, fileName: string) => Promise<string>;
10
- }
11
- declare const CustomContext: import("react").Context<CustomContextData>;
12
- export default CustomContext;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Form } from '../@Types';
3
- import { EurekaDraft } from '../@Types/Draft/Draft';
4
- export declare const BaseConfirmationMessage: EurekaDraft;
5
- declare const FormContext: import("react").Context<Form>;
6
- export default FormContext;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const SectionContext: import("react").Context<string>;
3
- export default SectionContext;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { AppProps } from '../../App/App';
3
- interface ConfirmationDialogProps {
4
- confirmation: {
5
- case: string;
6
- url: string;
7
- };
8
- customConfirmation?: AppProps['customConfirmation'];
9
- onClose: () => void;
10
- }
11
- declare function ConfirmationDialog({ onClose, confirmation, customConfirmation, }: ConfirmationDialogProps): JSX.Element;
12
- export default ConfirmationDialog;
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import { Branding } from '../@Types/Branding';
3
- import FormStepTypes from '../constants/FormStepTypes';
4
- import { FieldValues } from 'react-hook-form';
5
- import { AppProps } from '../App/App';
6
- import CBRFormStepTypes from '../constants/CBRFormStepTypes';
7
- import { Form } from '../@Types';
8
- import { FormStep } from '../@Types/FormStep';
9
- import { CBRFormStep } from '../@Types/CBRFormStep';
10
- export declare const getLocale: () => any;
11
- export interface StepDependency {
12
- dependents: (FormStep | CBRFormStep)[];
13
- value: any | undefined;
14
- type: FormStepTypes | CBRFormStepTypes | 'ORIGINAL';
15
- empty?: boolean;
16
- }
17
- export type DependencyStore = Record<string, StepDependency>;
18
- export interface WidthStats {
19
- currentBreakPoint: number;
20
- isResponsive: boolean;
21
- isMobile: boolean;
22
- }
23
- type CustomAppProps = Pick<AppProps, 'customSteps' | 'customSubmitBtns' | 'setSubmit' | 'customConfirmation'>;
24
- export interface BaseFormProps extends CustomAppProps {
25
- form: Form;
26
- branding?: Branding;
27
- reload: () => void;
28
- isWidget: boolean;
29
- apiKey: string | undefined;
30
- customSubmit: AppProps['customSubmit'];
31
- containerRef: React.RefObject<HTMLDivElement>;
32
- scrollToTop?: () => void;
33
- }
34
- export interface FormComponentProps extends CustomAppProps {
35
- /** Function called when users clicks submit */
36
- onSubmit: (values: FieldValues) => Promise<any>;
37
- scrollToTop?: () => void;
38
- }
39
- declare function FormComponent({ form, apiKey, reload, isWidget, branding, setSubmit, scrollToTop, customSteps, containerRef, customSubmit, customSubmitBtns, customConfirmation, }: BaseFormProps): JSX.Element;
40
- export default FormComponent;
@@ -1,12 +0,0 @@
1
- import { FormStep, Mapper } from '../@Types/FormStep';
2
- import { DependencyStore } from './Form';
3
- import { CustomStep } from '../FormSteps/CustomStep';
4
- import { CBRFormStep } from '../@Types/CBRFormStep';
5
- import { MapperElement } from '../@Types/MapperElement';
6
- import { ValuesStore } from '../States/SiteSlice';
7
- /**
8
- * Function that cals the value of a step to output on submit
9
- */
10
- export declare const calcValue: (idStep: string, steps: Record<string, FormStep>, values: Record<string, any>, customSteps: Record<string, CustomStep> | undefined, deleteIds: string[], value?: any) => any;
11
- export declare function calcDependencies(steps: Record<string, FormStep | CBRFormStep>, customSteps?: Record<string, CustomStep>, allSteps?: Record<string, FormStep | CBRFormStep>, dependencies?: DependencyStore, values?: ValuesStore, addDependents?: boolean): DependencyStore;
12
- export declare const calcMapperSubSteps: (step: Mapper, elements: MapperElement<any>[] | undefined, customSteps: Record<string, CustomStep>) => Record<string, FormStep>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { Form } from '../@Types';
3
- export declare function useWidthStats(containerRef: React.RefObject<HTMLDivElement>, form: Form, postview: boolean, internal: boolean): void;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../../Form';
3
- declare function ColumnForm({ onSubmit, customSubmitBtns, ...props }: FormComponentProps): JSX.Element;
4
- export default ColumnForm;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../../Form';
3
- declare function StepperForm({ onSubmit, scrollToTop, }: FormComponentProps): JSX.Element;
4
- export default StepperForm;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SectionComponentProps } from '../Section';
3
- declare function MaterialSection({ idSection }: SectionComponentProps): JSX.Element;
4
- export default MaterialSection;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface SectionComponentProps {
3
- idSection: string;
4
- }
5
- declare function SectionComponent(props: SectionComponentProps): JSX.Element;
6
- export default SectionComponent;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { TermComponentProps } from '../Term';
3
- declare function TermComponent({ term, tempError }: TermComponentProps): JSX.Element;
4
- export default TermComponent;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Term } from '../../../@Types/Form';
3
- export interface TermComponentProps {
4
- term: Term;
5
- tempError: boolean;
6
- }
7
- declare function TermComponent(props: TermComponentProps): JSX.Element;
8
- export default TermComponent;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function Terms(): JSX.Element;
3
- export default Terms;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { StepProps } from '../../Step';
3
- import { CBRElementStep } from '../../../@Types/CBRFormStep';
4
- export interface ElementStepProps extends Omit<StepProps, 'step'> {
5
- step: CBRElementStep;
6
- }
7
- declare function CBRElementStepComponent(props: ElementStepProps): JSX.Element;
8
- export default CBRElementStepComponent;