@redneckz/wildless-cms-uni-blocks 0.14.989 → 0.14.990

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 (633) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +8 -2
  2. package/bundle/api/getSubmitBody.d.ts +201 -97
  3. package/bundle/api/sendFile.d.ts +16 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +562 -50
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  8. package/bundle/components/ApplicationForm/constants.d.ts +7 -0
  9. package/bundle/components/ApplicationForm/handlers.d.ts +3 -2
  10. package/bundle/hooks/useDragAndDrop.d.ts +16 -0
  11. package/bundle/model/FormTypeFieldDef.d.ts +1 -1
  12. package/bundle/model/InputTypes.d.ts +1 -1
  13. package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  14. package/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  15. package/bundle/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  16. package/bundle/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  17. package/bundle/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  18. package/bundle/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  19. package/bundle/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  20. package/bundle/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  21. package/bundle/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  22. package/bundle/ui-kit/FormField/InputsMap.d.ts +62 -0
  23. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  24. package/bundle/ui-kit/FormField/constants.d.ts +3 -0
  25. package/bundle/ui-kit/FormField/validators.d.ts +1 -0
  26. package/bundle/ui-kit/Input/InputFile.d.ts +2 -0
  27. package/bundle/ui-kit/Input/InputFileControl.d.ts +2 -0
  28. package/bundle/ui-kit/Input/InputProps.d.ts +6 -1
  29. package/bundle/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  30. package/bundle/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  31. package/bundle/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  32. package/bundle/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  33. package/bundle/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  34. package/bundle/ui-kit/Input/constants.d.ts +6 -0
  35. package/bundle/ui-kit/Input/renderFileInput.d.ts +12 -0
  36. package/bundle/ui-kit/Input/renderInfoText.d.ts +1 -0
  37. package/bundle/ui-kit/Input/styles.d.ts +2 -0
  38. package/bundle/ui-kit/Input/useVerifyFile.d.ts +17 -0
  39. package/bundle/ui-kit/PreventableEvent.d.ts +4 -0
  40. package/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  41. package/bundle/utils/animateStepWithMinDuration.d.ts +8 -0
  42. package/bundle/utils/isDateValid.d.ts +4 -0
  43. package/dist/api/LeadServiceAPI.d.ts +8 -2
  44. package/dist/api/LeadServiceAPI.js +18 -8
  45. package/dist/api/LeadServiceAPI.js.map +1 -1
  46. package/dist/api/getSubmitBody.d.ts +201 -97
  47. package/dist/api/getSubmitBody.js +13 -6
  48. package/dist/api/getSubmitBody.js.map +1 -1
  49. package/dist/api/sendFile.d.ts +16 -0
  50. package/dist/api/sendFile.js +78 -0
  51. package/dist/api/sendFile.js.map +1 -0
  52. package/dist/components/ApplicationForm/ApplicationForm.js +5 -6
  53. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  54. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  55. package/dist/components/ApplicationForm/constants.d.ts +7 -0
  56. package/dist/components/ApplicationForm/constants.js +29 -0
  57. package/dist/components/ApplicationForm/constants.js.map +1 -0
  58. package/dist/components/ApplicationForm/handlers.d.ts +3 -2
  59. package/dist/components/ApplicationForm/handlers.js +3 -3
  60. package/dist/components/ApplicationForm/handlers.js.map +1 -1
  61. package/dist/hooks/useDragAndDrop.d.ts +16 -0
  62. package/dist/hooks/useDragAndDrop.js +29 -0
  63. package/dist/hooks/useDragAndDrop.js.map +1 -0
  64. package/dist/model/FormTypeFieldDef.d.ts +1 -1
  65. package/dist/model/InputTypes.d.ts +1 -1
  66. package/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  67. package/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  68. package/dist/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  69. package/dist/ui-kit/FormField/Fields/AverageGradeField.js +9 -0
  70. package/dist/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
  71. package/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -1
  72. package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
  73. package/dist/ui-kit/FormField/Fields/CommentField.js +1 -1
  74. package/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -1
  75. package/dist/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  76. package/dist/ui-kit/FormField/Fields/FileIdField.js +7 -0
  77. package/dist/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
  78. package/dist/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  79. package/dist/ui-kit/FormField/Fields/FileUpload.js +14 -0
  80. package/dist/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
  81. package/dist/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  82. package/dist/ui-kit/FormField/Fields/InternshipEndDateField.js +23 -0
  83. package/dist/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
  84. package/dist/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  85. package/dist/ui-kit/FormField/Fields/InternshipStartDateField.js +23 -0
  86. package/dist/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
  87. package/dist/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  88. package/dist/ui-kit/FormField/Fields/SelectField.js +7 -0
  89. package/dist/ui-kit/FormField/Fields/SelectField.js.map +1 -0
  90. package/dist/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  91. package/dist/ui-kit/FormField/Fields/TextField.js +7 -0
  92. package/dist/ui-kit/FormField/Fields/TextField.js.map +1 -0
  93. package/dist/ui-kit/FormField/InputsMap.d.ts +62 -0
  94. package/dist/ui-kit/FormField/InputsMap.js +119 -0
  95. package/dist/ui-kit/FormField/InputsMap.js.map +1 -0
  96. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  97. package/dist/ui-kit/FormField/constants.d.ts +3 -0
  98. package/dist/ui-kit/FormField/constants.js +27 -1
  99. package/dist/ui-kit/FormField/constants.js.map +1 -1
  100. package/dist/ui-kit/FormField/getField.js +2 -94
  101. package/dist/ui-kit/FormField/getField.js.map +1 -1
  102. package/dist/ui-kit/FormField/getObjectValidator.js +15 -1
  103. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  104. package/dist/ui-kit/FormField/validators.d.ts +1 -0
  105. package/dist/ui-kit/FormField/validators.js +4 -1
  106. package/dist/ui-kit/FormField/validators.js.map +1 -1
  107. package/dist/ui-kit/Input/Input.js +2 -2
  108. package/dist/ui-kit/Input/Input.js.map +1 -1
  109. package/dist/ui-kit/Input/InputFile.d.ts +2 -0
  110. package/dist/ui-kit/Input/InputFile.js +75 -0
  111. package/dist/ui-kit/Input/InputFile.js.map +1 -0
  112. package/dist/ui-kit/Input/InputFileControl.d.ts +2 -0
  113. package/dist/ui-kit/Input/InputFileControl.js +10 -0
  114. package/dist/ui-kit/Input/InputFileControl.js.map +1 -0
  115. package/dist/ui-kit/Input/InputProps.d.ts +6 -1
  116. package/dist/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  117. package/dist/ui-kit/Input/checks/checkFIleExtension.js +12 -0
  118. package/dist/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
  119. package/dist/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  120. package/dist/ui-kit/Input/checks/checkFileMimeType.js +20 -0
  121. package/dist/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
  122. package/dist/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  123. package/dist/ui-kit/Input/checks/checkFileSignature.js +25 -0
  124. package/dist/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
  125. package/dist/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  126. package/dist/ui-kit/Input/checks/checkFileSize.js +13 -0
  127. package/dist/ui-kit/Input/checks/checkFileSize.js.map +1 -0
  128. package/dist/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  129. package/dist/ui-kit/Input/checks/getFileSignature.js +19 -0
  130. package/dist/ui-kit/Input/checks/getFileSignature.js.map +1 -0
  131. package/dist/ui-kit/Input/constants.d.ts +6 -0
  132. package/dist/ui-kit/Input/constants.js +9 -0
  133. package/dist/ui-kit/Input/constants.js.map +1 -0
  134. package/dist/ui-kit/Input/renderFileInput.d.ts +12 -0
  135. package/dist/ui-kit/Input/renderFileInput.js +33 -0
  136. package/dist/ui-kit/Input/renderFileInput.js.map +1 -0
  137. package/dist/ui-kit/Input/renderInfoText.d.ts +1 -0
  138. package/dist/ui-kit/Input/renderInfoText.js +14 -0
  139. package/dist/ui-kit/Input/renderInfoText.js.map +1 -0
  140. package/dist/ui-kit/Input/styles.d.ts +2 -0
  141. package/dist/ui-kit/Input/styles.js +5 -0
  142. package/dist/ui-kit/Input/styles.js.map +1 -0
  143. package/dist/ui-kit/Input/useVerifyFile.d.ts +17 -0
  144. package/dist/ui-kit/Input/useVerifyFile.js +64 -0
  145. package/dist/ui-kit/Input/useVerifyFile.js.map +1 -0
  146. package/dist/ui-kit/PreventableEvent.d.ts +4 -0
  147. package/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  148. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  149. package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  150. package/dist/utils/animateStepWithMinDuration.d.ts +8 -0
  151. package/dist/utils/animateStepWithMinDuration.js +26 -0
  152. package/dist/utils/animateStepWithMinDuration.js.map +1 -0
  153. package/dist/utils/isDateValid.d.ts +4 -0
  154. package/dist/utils/isDateValid.js +24 -0
  155. package/dist/utils/isDateValid.js.map +1 -0
  156. package/lib/api/LeadServiceAPI.d.ts +8 -2
  157. package/lib/api/LeadServiceAPI.js +18 -8
  158. package/lib/api/LeadServiceAPI.js.map +1 -1
  159. package/lib/api/getSubmitBody.d.ts +201 -97
  160. package/lib/api/getSubmitBody.js +13 -6
  161. package/lib/api/getSubmitBody.js.map +1 -1
  162. package/lib/api/sendFile.d.ts +16 -0
  163. package/lib/api/sendFile.js +75 -0
  164. package/lib/api/sendFile.js.map +1 -0
  165. package/lib/common.css +1 -1
  166. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +2 -0
  167. package/lib/components/ApplicationForm/ApplicationForm.js +5 -6
  168. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  169. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  170. package/lib/components/ApplicationForm/constants.d.ts +7 -0
  171. package/lib/components/ApplicationForm/constants.js +27 -0
  172. package/lib/components/ApplicationForm/constants.js.map +1 -0
  173. package/lib/components/ApplicationForm/handlers.d.ts +3 -2
  174. package/lib/components/ApplicationForm/handlers.js +3 -3
  175. package/lib/components/ApplicationForm/handlers.js.map +1 -1
  176. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  177. package/lib/hooks/useDragAndDrop.d.ts +16 -0
  178. package/lib/hooks/useDragAndDrop.js +26 -0
  179. package/lib/hooks/useDragAndDrop.js.map +1 -0
  180. package/lib/model/FormTypeFieldDef.d.ts +1 -1
  181. package/lib/model/InputTypes.d.ts +1 -1
  182. package/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  183. package/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  184. package/lib/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  185. package/lib/ui-kit/FormField/Fields/AverageGradeField.js +7 -0
  186. package/lib/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
  187. package/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -1
  188. package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
  189. package/lib/ui-kit/FormField/Fields/CommentField.js +1 -1
  190. package/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -1
  191. package/lib/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  192. package/lib/ui-kit/FormField/Fields/FileIdField.js +5 -0
  193. package/lib/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
  194. package/lib/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  195. package/lib/ui-kit/FormField/Fields/FileUpload.js +12 -0
  196. package/lib/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
  197. package/lib/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  198. package/lib/ui-kit/FormField/Fields/InternshipEndDateField.js +21 -0
  199. package/lib/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
  200. package/lib/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  201. package/lib/ui-kit/FormField/Fields/InternshipStartDateField.js +21 -0
  202. package/lib/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
  203. package/lib/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  204. package/lib/ui-kit/FormField/Fields/SelectField.js +5 -0
  205. package/lib/ui-kit/FormField/Fields/SelectField.js.map +1 -0
  206. package/lib/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  207. package/lib/ui-kit/FormField/Fields/TextField.js +5 -0
  208. package/lib/ui-kit/FormField/Fields/TextField.js.map +1 -0
  209. package/lib/ui-kit/FormField/InputsMap.d.ts +62 -0
  210. package/lib/ui-kit/FormField/InputsMap.js +117 -0
  211. package/lib/ui-kit/FormField/InputsMap.js.map +1 -0
  212. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  213. package/lib/ui-kit/FormField/constants.d.ts +3 -0
  214. package/lib/ui-kit/FormField/constants.js +26 -0
  215. package/lib/ui-kit/FormField/constants.js.map +1 -1
  216. package/lib/ui-kit/FormField/getField.js +1 -93
  217. package/lib/ui-kit/FormField/getField.js.map +1 -1
  218. package/lib/ui-kit/FormField/getObjectValidator.js +16 -2
  219. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  220. package/lib/ui-kit/FormField/validators.d.ts +1 -0
  221. package/lib/ui-kit/FormField/validators.js +2 -0
  222. package/lib/ui-kit/FormField/validators.js.map +1 -1
  223. package/lib/ui-kit/Input/Input.js +1 -1
  224. package/lib/ui-kit/Input/Input.js.map +1 -1
  225. package/lib/ui-kit/Input/InputFile.d.ts +2 -0
  226. package/lib/ui-kit/Input/InputFile.js +73 -0
  227. package/lib/ui-kit/Input/InputFile.js.map +1 -0
  228. package/lib/ui-kit/Input/InputFileControl.d.ts +2 -0
  229. package/lib/ui-kit/Input/InputFileControl.js +8 -0
  230. package/lib/ui-kit/Input/InputFileControl.js.map +1 -0
  231. package/lib/ui-kit/Input/InputProps.d.ts +6 -1
  232. package/lib/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  233. package/lib/ui-kit/Input/checks/checkFIleExtension.js +9 -0
  234. package/lib/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
  235. package/lib/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  236. package/lib/ui-kit/Input/checks/checkFileMimeType.js +17 -0
  237. package/lib/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
  238. package/lib/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  239. package/lib/ui-kit/Input/checks/checkFileSignature.js +22 -0
  240. package/lib/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
  241. package/lib/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  242. package/lib/ui-kit/Input/checks/checkFileSize.js +10 -0
  243. package/lib/ui-kit/Input/checks/checkFileSize.js.map +1 -0
  244. package/lib/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  245. package/lib/ui-kit/Input/checks/getFileSignature.js +16 -0
  246. package/lib/ui-kit/Input/checks/getFileSignature.js.map +1 -0
  247. package/lib/ui-kit/Input/constants.d.ts +6 -0
  248. package/lib/ui-kit/Input/constants.js +7 -0
  249. package/lib/ui-kit/Input/constants.js.map +1 -0
  250. package/lib/ui-kit/Input/renderFileInput.d.ts +12 -0
  251. package/lib/ui-kit/Input/renderFileInput.js +30 -0
  252. package/lib/ui-kit/Input/renderFileInput.js.map +1 -0
  253. package/lib/ui-kit/Input/renderInfoText.d.ts +1 -0
  254. package/lib/ui-kit/Input/renderInfoText.js +11 -0
  255. package/lib/ui-kit/Input/renderInfoText.js.map +1 -0
  256. package/lib/ui-kit/Input/styles.d.ts +2 -0
  257. package/lib/ui-kit/Input/styles.js +3 -0
  258. package/lib/ui-kit/Input/styles.js.map +1 -0
  259. package/lib/ui-kit/Input/useVerifyFile.d.ts +17 -0
  260. package/lib/ui-kit/Input/useVerifyFile.js +61 -0
  261. package/lib/ui-kit/Input/useVerifyFile.js.map +1 -0
  262. package/lib/ui-kit/PreventableEvent.d.ts +4 -0
  263. package/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  264. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  265. package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  266. package/lib/utils/animateStepWithMinDuration.d.ts +8 -0
  267. package/lib/utils/animateStepWithMinDuration.js +23 -0
  268. package/lib/utils/animateStepWithMinDuration.js.map +1 -0
  269. package/lib/utils/isDateValid.d.ts +4 -0
  270. package/lib/utils/isDateValid.js +21 -0
  271. package/lib/utils/isDateValid.js.map +1 -0
  272. package/mobile/bundle/api/LeadServiceAPI.d.ts +8 -2
  273. package/mobile/bundle/api/getSubmitBody.d.ts +201 -97
  274. package/mobile/bundle/api/sendFile.d.ts +16 -0
  275. package/mobile/bundle/bundle.umd.js +562 -50
  276. package/mobile/bundle/bundle.umd.min.js +1 -1
  277. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  278. package/mobile/bundle/components/ApplicationForm/constants.d.ts +7 -0
  279. package/mobile/bundle/components/ApplicationForm/handlers.d.ts +3 -2
  280. package/mobile/bundle/hooks/useDragAndDrop.d.ts +16 -0
  281. package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
  282. package/mobile/bundle/model/InputTypes.d.ts +1 -1
  283. package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  284. package/mobile/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  285. package/mobile/bundle/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  286. package/mobile/bundle/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  287. package/mobile/bundle/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  288. package/mobile/bundle/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  289. package/mobile/bundle/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  290. package/mobile/bundle/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  291. package/mobile/bundle/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  292. package/mobile/bundle/ui-kit/FormField/InputsMap.d.ts +62 -0
  293. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  294. package/mobile/bundle/ui-kit/FormField/constants.d.ts +3 -0
  295. package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
  296. package/mobile/bundle/ui-kit/Input/InputFile.d.ts +2 -0
  297. package/mobile/bundle/ui-kit/Input/InputFileControl.d.ts +2 -0
  298. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +6 -1
  299. package/mobile/bundle/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  300. package/mobile/bundle/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  301. package/mobile/bundle/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  302. package/mobile/bundle/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  303. package/mobile/bundle/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  304. package/mobile/bundle/ui-kit/Input/constants.d.ts +6 -0
  305. package/mobile/bundle/ui-kit/Input/renderFileInput.d.ts +12 -0
  306. package/mobile/bundle/ui-kit/Input/renderInfoText.d.ts +1 -0
  307. package/mobile/bundle/ui-kit/Input/styles.d.ts +2 -0
  308. package/mobile/bundle/ui-kit/Input/useVerifyFile.d.ts +17 -0
  309. package/mobile/bundle/ui-kit/PreventableEvent.d.ts +4 -0
  310. package/mobile/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  311. package/mobile/bundle/utils/animateStepWithMinDuration.d.ts +8 -0
  312. package/mobile/bundle/utils/isDateValid.d.ts +4 -0
  313. package/mobile/dist/api/LeadServiceAPI.d.ts +8 -2
  314. package/mobile/dist/api/LeadServiceAPI.js +18 -8
  315. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  316. package/mobile/dist/api/getSubmitBody.d.ts +201 -97
  317. package/mobile/dist/api/getSubmitBody.js +13 -6
  318. package/mobile/dist/api/getSubmitBody.js.map +1 -1
  319. package/mobile/dist/api/sendFile.d.ts +16 -0
  320. package/mobile/dist/api/sendFile.js +78 -0
  321. package/mobile/dist/api/sendFile.js.map +1 -0
  322. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +5 -6
  323. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  324. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  325. package/mobile/dist/components/ApplicationForm/constants.d.ts +7 -0
  326. package/mobile/dist/components/ApplicationForm/constants.js +29 -0
  327. package/mobile/dist/components/ApplicationForm/constants.js.map +1 -0
  328. package/mobile/dist/components/ApplicationForm/handlers.d.ts +3 -2
  329. package/mobile/dist/components/ApplicationForm/handlers.js +3 -3
  330. package/mobile/dist/components/ApplicationForm/handlers.js.map +1 -1
  331. package/mobile/dist/hooks/useDragAndDrop.d.ts +16 -0
  332. package/mobile/dist/hooks/useDragAndDrop.js +29 -0
  333. package/mobile/dist/hooks/useDragAndDrop.js.map +1 -0
  334. package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
  335. package/mobile/dist/model/InputTypes.d.ts +1 -1
  336. package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  337. package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  338. package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  339. package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.js +9 -0
  340. package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
  341. package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -1
  342. package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
  343. package/mobile/dist/ui-kit/FormField/Fields/CommentField.js +1 -1
  344. package/mobile/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -1
  345. package/mobile/dist/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  346. package/mobile/dist/ui-kit/FormField/Fields/FileIdField.js +7 -0
  347. package/mobile/dist/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
  348. package/mobile/dist/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  349. package/mobile/dist/ui-kit/FormField/Fields/FileUpload.js +14 -0
  350. package/mobile/dist/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
  351. package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  352. package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.js +23 -0
  353. package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
  354. package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  355. package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.js +23 -0
  356. package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
  357. package/mobile/dist/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  358. package/mobile/dist/ui-kit/FormField/Fields/SelectField.js +7 -0
  359. package/mobile/dist/ui-kit/FormField/Fields/SelectField.js.map +1 -0
  360. package/mobile/dist/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  361. package/mobile/dist/ui-kit/FormField/Fields/TextField.js +7 -0
  362. package/mobile/dist/ui-kit/FormField/Fields/TextField.js.map +1 -0
  363. package/mobile/dist/ui-kit/FormField/InputsMap.d.ts +62 -0
  364. package/mobile/dist/ui-kit/FormField/InputsMap.js +119 -0
  365. package/mobile/dist/ui-kit/FormField/InputsMap.js.map +1 -0
  366. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  367. package/mobile/dist/ui-kit/FormField/constants.d.ts +3 -0
  368. package/mobile/dist/ui-kit/FormField/constants.js +27 -1
  369. package/mobile/dist/ui-kit/FormField/constants.js.map +1 -1
  370. package/mobile/dist/ui-kit/FormField/getField.js +2 -94
  371. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  372. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +15 -1
  373. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  374. package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
  375. package/mobile/dist/ui-kit/FormField/validators.js +4 -1
  376. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  377. package/mobile/dist/ui-kit/Input/Input.js +2 -2
  378. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  379. package/mobile/dist/ui-kit/Input/InputFile.d.ts +2 -0
  380. package/mobile/dist/ui-kit/Input/InputFile.js +75 -0
  381. package/mobile/dist/ui-kit/Input/InputFile.js.map +1 -0
  382. package/mobile/dist/ui-kit/Input/InputFileControl.d.ts +2 -0
  383. package/mobile/dist/ui-kit/Input/InputFileControl.js +10 -0
  384. package/mobile/dist/ui-kit/Input/InputFileControl.js.map +1 -0
  385. package/mobile/dist/ui-kit/Input/InputProps.d.ts +6 -1
  386. package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  387. package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.js +12 -0
  388. package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
  389. package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  390. package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.js +20 -0
  391. package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
  392. package/mobile/dist/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  393. package/mobile/dist/ui-kit/Input/checks/checkFileSignature.js +25 -0
  394. package/mobile/dist/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
  395. package/mobile/dist/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  396. package/mobile/dist/ui-kit/Input/checks/checkFileSize.js +13 -0
  397. package/mobile/dist/ui-kit/Input/checks/checkFileSize.js.map +1 -0
  398. package/mobile/dist/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  399. package/mobile/dist/ui-kit/Input/checks/getFileSignature.js +19 -0
  400. package/mobile/dist/ui-kit/Input/checks/getFileSignature.js.map +1 -0
  401. package/mobile/dist/ui-kit/Input/constants.d.ts +6 -0
  402. package/mobile/dist/ui-kit/Input/constants.js +9 -0
  403. package/mobile/dist/ui-kit/Input/constants.js.map +1 -0
  404. package/mobile/dist/ui-kit/Input/renderFileInput.d.ts +12 -0
  405. package/mobile/dist/ui-kit/Input/renderFileInput.js +33 -0
  406. package/mobile/dist/ui-kit/Input/renderFileInput.js.map +1 -0
  407. package/mobile/dist/ui-kit/Input/renderInfoText.d.ts +1 -0
  408. package/mobile/dist/ui-kit/Input/renderInfoText.js +14 -0
  409. package/mobile/dist/ui-kit/Input/renderInfoText.js.map +1 -0
  410. package/mobile/dist/ui-kit/Input/styles.d.ts +2 -0
  411. package/mobile/dist/ui-kit/Input/styles.js +5 -0
  412. package/mobile/dist/ui-kit/Input/styles.js.map +1 -0
  413. package/mobile/dist/ui-kit/Input/useVerifyFile.d.ts +17 -0
  414. package/mobile/dist/ui-kit/Input/useVerifyFile.js +64 -0
  415. package/mobile/dist/ui-kit/Input/useVerifyFile.js.map +1 -0
  416. package/mobile/dist/ui-kit/PreventableEvent.d.ts +4 -0
  417. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  418. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  419. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  420. package/mobile/dist/utils/animateStepWithMinDuration.d.ts +8 -0
  421. package/mobile/dist/utils/animateStepWithMinDuration.js +26 -0
  422. package/mobile/dist/utils/animateStepWithMinDuration.js.map +1 -0
  423. package/mobile/dist/utils/isDateValid.d.ts +4 -0
  424. package/mobile/dist/utils/isDateValid.js +24 -0
  425. package/mobile/dist/utils/isDateValid.js.map +1 -0
  426. package/mobile/lib/api/LeadServiceAPI.d.ts +8 -2
  427. package/mobile/lib/api/LeadServiceAPI.js +18 -8
  428. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  429. package/mobile/lib/api/getSubmitBody.d.ts +201 -97
  430. package/mobile/lib/api/getSubmitBody.js +13 -6
  431. package/mobile/lib/api/getSubmitBody.js.map +1 -1
  432. package/mobile/lib/api/sendFile.d.ts +16 -0
  433. package/mobile/lib/api/sendFile.js +75 -0
  434. package/mobile/lib/api/sendFile.js.map +1 -0
  435. package/mobile/lib/common.css +1 -1
  436. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +5 -6
  437. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  438. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
  439. package/mobile/lib/components/ApplicationForm/constants.d.ts +7 -0
  440. package/mobile/lib/components/ApplicationForm/constants.js +27 -0
  441. package/mobile/lib/components/ApplicationForm/constants.js.map +1 -0
  442. package/mobile/lib/components/ApplicationForm/handlers.d.ts +3 -2
  443. package/mobile/lib/components/ApplicationForm/handlers.js +3 -3
  444. package/mobile/lib/components/ApplicationForm/handlers.js.map +1 -1
  445. package/mobile/lib/hooks/useDragAndDrop.d.ts +16 -0
  446. package/mobile/lib/hooks/useDragAndDrop.js +26 -0
  447. package/mobile/lib/hooks/useDragAndDrop.js.map +1 -0
  448. package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
  449. package/mobile/lib/model/InputTypes.d.ts +1 -1
  450. package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  451. package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
  452. package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
  453. package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.js +7 -0
  454. package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
  455. package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -1
  456. package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
  457. package/mobile/lib/ui-kit/FormField/Fields/CommentField.js +1 -1
  458. package/mobile/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -1
  459. package/mobile/lib/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
  460. package/mobile/lib/ui-kit/FormField/Fields/FileIdField.js +5 -0
  461. package/mobile/lib/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
  462. package/mobile/lib/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
  463. package/mobile/lib/ui-kit/FormField/Fields/FileUpload.js +12 -0
  464. package/mobile/lib/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
  465. package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
  466. package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.js +21 -0
  467. package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
  468. package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
  469. package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.js +21 -0
  470. package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
  471. package/mobile/lib/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
  472. package/mobile/lib/ui-kit/FormField/Fields/SelectField.js +5 -0
  473. package/mobile/lib/ui-kit/FormField/Fields/SelectField.js.map +1 -0
  474. package/mobile/lib/ui-kit/FormField/Fields/TextField.d.ts +2 -0
  475. package/mobile/lib/ui-kit/FormField/Fields/TextField.js +5 -0
  476. package/mobile/lib/ui-kit/FormField/Fields/TextField.js.map +1 -0
  477. package/mobile/lib/ui-kit/FormField/InputsMap.d.ts +62 -0
  478. package/mobile/lib/ui-kit/FormField/InputsMap.js +117 -0
  479. package/mobile/lib/ui-kit/FormField/InputsMap.js.map +1 -0
  480. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  481. package/mobile/lib/ui-kit/FormField/constants.d.ts +3 -0
  482. package/mobile/lib/ui-kit/FormField/constants.js +26 -0
  483. package/mobile/lib/ui-kit/FormField/constants.js.map +1 -1
  484. package/mobile/lib/ui-kit/FormField/getField.js +1 -93
  485. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  486. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +16 -2
  487. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  488. package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
  489. package/mobile/lib/ui-kit/FormField/validators.js +2 -0
  490. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  491. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  492. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  493. package/mobile/lib/ui-kit/Input/InputFile.d.ts +2 -0
  494. package/mobile/lib/ui-kit/Input/InputFile.js +73 -0
  495. package/mobile/lib/ui-kit/Input/InputFile.js.map +1 -0
  496. package/mobile/lib/ui-kit/Input/InputFileControl.d.ts +2 -0
  497. package/mobile/lib/ui-kit/Input/InputFileControl.js +8 -0
  498. package/mobile/lib/ui-kit/Input/InputFileControl.js.map +1 -0
  499. package/mobile/lib/ui-kit/Input/InputProps.d.ts +6 -1
  500. package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
  501. package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.js +9 -0
  502. package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
  503. package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
  504. package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.js +17 -0
  505. package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
  506. package/mobile/lib/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
  507. package/mobile/lib/ui-kit/Input/checks/checkFileSignature.js +22 -0
  508. package/mobile/lib/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
  509. package/mobile/lib/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
  510. package/mobile/lib/ui-kit/Input/checks/checkFileSize.js +10 -0
  511. package/mobile/lib/ui-kit/Input/checks/checkFileSize.js.map +1 -0
  512. package/mobile/lib/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
  513. package/mobile/lib/ui-kit/Input/checks/getFileSignature.js +16 -0
  514. package/mobile/lib/ui-kit/Input/checks/getFileSignature.js.map +1 -0
  515. package/mobile/lib/ui-kit/Input/constants.d.ts +6 -0
  516. package/mobile/lib/ui-kit/Input/constants.js +7 -0
  517. package/mobile/lib/ui-kit/Input/constants.js.map +1 -0
  518. package/mobile/lib/ui-kit/Input/renderFileInput.d.ts +12 -0
  519. package/mobile/lib/ui-kit/Input/renderFileInput.js +30 -0
  520. package/mobile/lib/ui-kit/Input/renderFileInput.js.map +1 -0
  521. package/mobile/lib/ui-kit/Input/renderInfoText.d.ts +1 -0
  522. package/mobile/lib/ui-kit/Input/renderInfoText.js +11 -0
  523. package/mobile/lib/ui-kit/Input/renderInfoText.js.map +1 -0
  524. package/mobile/lib/ui-kit/Input/styles.d.ts +2 -0
  525. package/mobile/lib/ui-kit/Input/styles.js +3 -0
  526. package/mobile/lib/ui-kit/Input/styles.js.map +1 -0
  527. package/mobile/lib/ui-kit/Input/useVerifyFile.d.ts +17 -0
  528. package/mobile/lib/ui-kit/Input/useVerifyFile.js +61 -0
  529. package/mobile/lib/ui-kit/Input/useVerifyFile.js.map +1 -0
  530. package/mobile/lib/ui-kit/PreventableEvent.d.ts +4 -0
  531. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  532. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  533. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  534. package/mobile/lib/utils/animateStepWithMinDuration.d.ts +8 -0
  535. package/mobile/lib/utils/animateStepWithMinDuration.js +23 -0
  536. package/mobile/lib/utils/animateStepWithMinDuration.js.map +1 -0
  537. package/mobile/lib/utils/isDateValid.d.ts +4 -0
  538. package/mobile/lib/utils/isDateValid.js +21 -0
  539. package/mobile/lib/utils/isDateValid.js.map +1 -0
  540. package/mobile/src/api/LeadServiceAPI.ts +29 -9
  541. package/mobile/src/api/getSubmitBody.ts +28 -7
  542. package/mobile/src/api/sendFile.ts +97 -0
  543. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +192 -0
  544. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +22 -16
  545. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -2
  546. package/mobile/src/components/ApplicationForm/constants.ts +33 -0
  547. package/mobile/src/components/ApplicationForm/handlers.ts +5 -3
  548. package/mobile/src/hooks/useDragAndDrop.ts +48 -0
  549. package/mobile/src/model/FormTypeFieldDef.ts +2 -1
  550. package/mobile/src/model/InputTypes.ts +1 -1
  551. package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
  552. package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +1 -1
  553. package/mobile/src/ui-kit/FormField/Fields/AverageGradeField.tsx +14 -0
  554. package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -7
  555. package/mobile/src/ui-kit/FormField/Fields/CommentField.tsx +1 -1
  556. package/mobile/src/ui-kit/FormField/Fields/FileIdField.tsx +7 -0
  557. package/mobile/src/ui-kit/FormField/Fields/FileUpload.tsx +22 -0
  558. package/mobile/src/ui-kit/FormField/Fields/InternshipEndDateField.tsx +38 -0
  559. package/mobile/src/ui-kit/FormField/Fields/InternshipStartDateField.tsx +38 -0
  560. package/mobile/src/ui-kit/FormField/Fields/SelectField.tsx +12 -0
  561. package/mobile/src/ui-kit/FormField/Fields/TextField.tsx +7 -0
  562. package/mobile/src/ui-kit/FormField/InputsMap.tsx +133 -0
  563. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +17 -1
  564. package/mobile/src/ui-kit/FormField/constants.tsx +29 -0
  565. package/mobile/src/ui-kit/FormField/getField.tsx +1 -105
  566. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +16 -1
  567. package/mobile/src/ui-kit/FormField/validators.ts +4 -0
  568. package/mobile/src/ui-kit/Input/Input.tsx +1 -2
  569. package/mobile/src/ui-kit/Input/InputFile.tsx +132 -0
  570. package/mobile/src/ui-kit/Input/InputFileControl.tsx +22 -0
  571. package/mobile/src/ui-kit/Input/InputProps.ts +10 -1
  572. package/mobile/src/ui-kit/Input/checks/checkFIleExtension.ts +9 -0
  573. package/mobile/src/ui-kit/Input/checks/checkFileMimeType.ts +20 -0
  574. package/mobile/src/ui-kit/Input/checks/checkFileSignature.ts +30 -0
  575. package/mobile/src/ui-kit/Input/checks/checkFileSize.ts +10 -0
  576. package/mobile/src/ui-kit/Input/checks/getFileSignature.ts +16 -0
  577. package/mobile/src/ui-kit/Input/constants.ts +6 -0
  578. package/mobile/src/ui-kit/Input/renderFileInput.tsx +87 -0
  579. package/mobile/src/ui-kit/Input/renderInfoText.tsx +15 -0
  580. package/mobile/src/ui-kit/Input/styles.ts +2 -0
  581. package/mobile/src/ui-kit/Input/useVerifyFile.ts +100 -0
  582. package/mobile/src/ui-kit/PreventableEvent.ts +5 -0
  583. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +7 -2
  584. package/mobile/src/utils/animateStepWithMinDuration.ts +38 -0
  585. package/mobile/src/utils/isDateValid.ts +33 -0
  586. package/package.json +2 -2
  587. package/src/api/LeadServiceAPI.ts +29 -9
  588. package/src/api/getSubmitBody.ts +28 -7
  589. package/src/api/sendFile.ts +97 -0
  590. package/src/components/ApplicationForm/ApplicationForm.example.json +192 -0
  591. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +132 -0
  592. package/src/components/ApplicationForm/ApplicationForm.tsx +22 -16
  593. package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -2
  594. package/src/components/ApplicationForm/constants.ts +33 -0
  595. package/src/components/ApplicationForm/handlers.ts +5 -3
  596. package/src/hooks/useDragAndDrop.ts +48 -0
  597. package/src/model/FormTypeFieldDef.ts +2 -1
  598. package/src/model/InputTypes.ts +1 -1
  599. package/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
  600. package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +1 -1
  601. package/src/ui-kit/FormField/Fields/AverageGradeField.tsx +14 -0
  602. package/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -7
  603. package/src/ui-kit/FormField/Fields/CommentField.tsx +1 -1
  604. package/src/ui-kit/FormField/Fields/FileIdField.tsx +7 -0
  605. package/src/ui-kit/FormField/Fields/FileUpload.tsx +22 -0
  606. package/src/ui-kit/FormField/Fields/InternshipEndDateField.tsx +38 -0
  607. package/src/ui-kit/FormField/Fields/InternshipStartDateField.tsx +38 -0
  608. package/src/ui-kit/FormField/Fields/SelectField.tsx +12 -0
  609. package/src/ui-kit/FormField/Fields/TextField.tsx +7 -0
  610. package/src/ui-kit/FormField/InputsMap.tsx +133 -0
  611. package/src/ui-kit/FormField/NameFieldDef.ts +17 -1
  612. package/src/ui-kit/FormField/constants.tsx +29 -0
  613. package/src/ui-kit/FormField/getField.tsx +1 -105
  614. package/src/ui-kit/FormField/getObjectValidator.tsx +16 -1
  615. package/src/ui-kit/FormField/validators.ts +4 -0
  616. package/src/ui-kit/Input/Input.tsx +1 -2
  617. package/src/ui-kit/Input/InputFile.tsx +132 -0
  618. package/src/ui-kit/Input/InputFileControl.tsx +22 -0
  619. package/src/ui-kit/Input/InputProps.ts +10 -1
  620. package/src/ui-kit/Input/checks/checkFIleExtension.ts +9 -0
  621. package/src/ui-kit/Input/checks/checkFileMimeType.ts +20 -0
  622. package/src/ui-kit/Input/checks/checkFileSignature.ts +30 -0
  623. package/src/ui-kit/Input/checks/checkFileSize.ts +10 -0
  624. package/src/ui-kit/Input/checks/getFileSignature.ts +16 -0
  625. package/src/ui-kit/Input/constants.ts +6 -0
  626. package/src/ui-kit/Input/renderFileInput.tsx +87 -0
  627. package/src/ui-kit/Input/renderInfoText.tsx +15 -0
  628. package/src/ui-kit/Input/styles.ts +2 -0
  629. package/src/ui-kit/Input/useVerifyFile.ts +100 -0
  630. package/src/ui-kit/PreventableEvent.ts +5 -0
  631. package/src/ui-kit/ProgressBar/ProgressBar.tsx +7 -2
  632. package/src/utils/animateStepWithMinDuration.ts +38 -0
  633. package/src/utils/isDateValid.ts +33 -0
@@ -27,13 +27,19 @@ export declare type FilledByEsiaProps = {
27
27
  /** @title Заполняется через госуслуги */
28
28
  filledByEsia?: boolean;
29
29
  };
30
- export declare type FieldDef = Required & LabelProps & ConditionFieldProps & FilledByEsiaProps & PlaceholderProps & {
30
+ /** @hidden */
31
+ export declare type FileProps = {
32
+ maxSize?: number;
33
+ extensions?: string[];
34
+ };
35
+ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & FilledByEsiaProps & PlaceholderProps & FileProps & {
31
36
  name?: NameFieldDef;
32
37
  dadata?: boolean;
33
38
  defaultValue?: string;
39
+ customName?: string;
34
40
  };
35
41
  /** @hidden */
36
- export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback';
42
+ export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
37
43
  /**
38
44
  * @title Секция полей ввода
39
45
  */
@@ -0,0 +1,7 @@
1
+ import type { EndpointType } from './ApplicationFormContent';
2
+ declare type EndpointInfo = {
3
+ withTypeForm: boolean;
4
+ isNaturalEndpoint: boolean;
5
+ };
6
+ export declare const ENDPOINT_MAPPING: Record<EndpointType, EndpointInfo>;
7
+ export {};
@@ -3,8 +3,10 @@ import { type Router } from '../../external/useRouter';
3
3
  import { type Aspects } from '../../hooks/useAspects/useAspects';
4
4
  import { type AspectsDef } from '../../model/AspectsProps';
5
5
  import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
6
+ import { type EndpointType } from './ApplicationFormContent';
6
7
  export declare type HandlerProps = {
7
8
  formatData: LeadRequest;
9
+ endpoint?: EndpointType;
8
10
  data?: AspectsDef[];
9
11
  aspects?: Aspects;
10
12
  ev: PreventableEventWithTarget;
@@ -13,9 +15,8 @@ export declare type HandlerProps = {
13
15
  verifyPhoneDialog?: any;
14
16
  responseTypeDialog?: any;
15
17
  onSuccess?: () => void;
16
- endpoint?: string;
17
18
  withSnowplow?: boolean;
18
19
  };
19
20
  export declare const handleInitCorporateLead: ({ formatData, typeForm, responseTypeDialog, verifyPhoneDialog, data, aspects, ev, }: HandlerProps) => Promise<void>;
20
- export declare const handleCallback: ({ formatData, data, aspects, ev, typeForm, responseTypeDialog, onSuccess, }: HandlerProps) => Promise<void>;
21
+ export declare const handleCallback: ({ formatData, data, aspects, ev, typeForm, responseTypeDialog, onSuccess, endpoint, }: HandlerProps) => Promise<void>;
21
22
  export declare const handleDefault: ({ formatData, data, aspects, ev, router, responseTypeDialog, endpoint, withSnowplow, }: HandlerProps) => Promise<void>;
@@ -0,0 +1,16 @@
1
+ import type { ResponseData } from '../api/sendFile';
2
+ import { type VerifyFileParams } from '../ui-kit/Input/useVerifyFile';
3
+ import type { PreventableEventWithTarget, PreventableEventWithTargetFiles } from '../ui-kit/PreventableEvent';
4
+ interface DragAndDropProps {
5
+ onFileSelected: (props: VerifyFileParams) => Promise<void>;
6
+ onReset: () => void;
7
+ uploadResponse: ResponseData | null;
8
+ onFileChanged?: (value: string) => void;
9
+ }
10
+ export declare const useDragAndDrop: ({ onFileSelected, onReset, uploadResponse, onFileChanged, }: DragAndDropProps) => {
11
+ handleDrag: (e: PreventableEventWithTarget) => void;
12
+ handleLeave: () => void;
13
+ handleDrop: (e: PreventableEventWithTargetFiles) => Promise<void>;
14
+ isDragActive: boolean;
15
+ };
16
+ export {};
@@ -1,2 +1,2 @@
1
1
  /** @hidden */
2
- export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF' | 'UNIVERSAL';
2
+ export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF' | 'UNIVERSAL' | 'PRACTICE';
@@ -1 +1 @@
1
- export declare type InputTypes = 'text' | 'number' | 'hidden';
1
+ export declare type InputTypes = 'text' | 'number' | 'hidden' | 'file';
@@ -6,6 +6,7 @@ export interface CustomFieldProps {
6
6
  input?: FieldDef;
7
7
  url?: string;
8
8
  params?: Record<string, any>;
9
+ label?: string;
9
10
  }
10
11
  export interface CustomFieldPropsWithTypeForm extends CustomFieldProps {
11
12
  typeForm?: FormTypeFieldDef;
@@ -1,6 +1,5 @@
1
1
  import { type CustomFieldProps } from '../CustomFieldProps';
2
- interface RegionFieldProps extends CustomFieldProps {
2
+ export interface RegionFieldProps extends CustomFieldProps {
3
3
  isPremium?: boolean;
4
4
  }
5
5
  export declare const AddressBranchField: import("@redneckz/uni-jsx").UNIComponent<RegionFieldProps, any, any>;
6
- export {};
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const AverageGradeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type PartnerFieldWithRefProps } from './PartnerSymbolCodeField';
2
+ export declare const FileIdField: import("../../../UniBlock/UniBlock").UniBlockComponent<PartnerFieldWithRefProps>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const FileUploadField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const InternshipEndDateField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const InternshipStartDateField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,6 @@
1
+ import { type Option } from '../../Select/Option';
2
+ import { type CustomFieldProps } from '../CustomFieldProps';
3
+ export interface SelectFieldProps extends CustomFieldProps {
4
+ options: Option[];
5
+ }
6
+ export declare const SelectField: import("@redneckz/uni-jsx").UNIComponent<SelectFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const TextField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,62 @@
1
+ import type { CustomFieldProps } from './CustomFieldProps';
2
+ import { type SelectFieldProps } from './Fields/SelectField';
3
+ export declare const InputsMap: {
4
+ fullName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
5
+ addressBranch: import("@redneckz/uni-jsx").UNIComponent<import("./Fields/AddressBranchField").RegionFieldProps, any, any>;
6
+ desiredMeetingDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
7
+ product: (props: CustomFieldProps) => any;
8
+ localities: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
9
+ isClient: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
10
+ partnerComments: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
11
+ collectionCount: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
12
+ acquiringType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
13
+ onlineCheckout: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
14
+ posTerminal: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
15
+ serviceType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
16
+ term: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
17
+ amount: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
18
+ annualRevenue: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
19
+ vedTypes: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
20
+ feedbackMethod: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
21
+ serviceDirection: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
22
+ bankEmpolee: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
23
+ secondaryPhone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
24
+ applicationDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
25
+ region: (props: CustomFieldProps) => any;
26
+ consentToReceiveMaterials: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
27
+ sufferedFrom: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
28
+ situationDescription: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
29
+ representativeName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
30
+ applierType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
31
+ surname: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
32
+ name: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
33
+ middleName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
34
+ birthday: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
35
+ phone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
36
+ email: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
37
+ inn: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
38
+ comment: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
39
+ fullRegion: import("@redneckz/uni-jsx").UNIComponent<import("./Fields/FullRegionField").FullRegionFieldProps, any, any>;
40
+ partnerSymbolCode: (props: CustomFieldProps) => any;
41
+ partnerName: (props: CustomFieldProps) => any;
42
+ dadataPartyNameSelect: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
43
+ dadataPartyInnSelect: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
44
+ questionProduct: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
45
+ callbackTime: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
46
+ russianPhone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
47
+ cityOfResidence: (props: CustomFieldProps) => any;
48
+ internshipStartDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
49
+ internshipEndDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
50
+ university: (props: CustomFieldProps) => any;
51
+ courseYear: (props: CustomFieldProps) => any;
52
+ graduationYear: (props: CustomFieldProps) => any;
53
+ fieldOfStudy: (props: CustomFieldProps) => any;
54
+ educationLevel: (props: SelectFieldProps) => any;
55
+ averageGrade: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
56
+ skillsAndKnowledge: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
57
+ workExperience: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
58
+ motivationForInternship: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
59
+ internshipDirection: (props: SelectFieldProps) => any;
60
+ workingHours: (props: SelectFieldProps) => any;
61
+ fileUpload: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
62
+ };
@@ -1,3 +1,3 @@
1
- declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'partnerName' | 'dadataPartyNameSelect' | 'dadataPartyInnSelect' | 'questionProduct' | 'callbackTime' | 'russianPhone';
1
+ declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'partnerName' | 'dadataPartyNameSelect' | 'dadataPartyInnSelect' | 'questionProduct' | 'callbackTime' | 'russianPhone' | 'cityOfResidence' | 'internshipStartDate' | 'internshipEndDate' | 'university' | 'fieldOfStudy' | 'courseYear' | 'graduationYear' | 'averageGrade' | 'skillsAndKnowledge' | 'educationLevel' | 'workingHours' | 'motivationForInternship' | 'workExperience' | 'internshipDirection' | 'fileUpload' | 'fileId';
2
2
  export declare type NameFieldDef = NameFieldApplicationDef;
3
3
  export {};
@@ -14,3 +14,6 @@ export declare const CALLBACK_TIME: Option[];
14
14
  export declare const QUESTION_PRODUCT_TYPES: Option[];
15
15
  export declare const SUFFERED_FROM_TYPES: Option[];
16
16
  export declare const VED_TYPES: RadioButtonItem[];
17
+ export declare const INTERNSHIP_DIRECTION: Option[];
18
+ export declare const WORKING_HOURS: Option[];
19
+ export declare const EDUCATION_LEVEL: Option[];
@@ -14,4 +14,5 @@ export declare const phoneOptionalValidator: (errorMsg: string) => import("../..
14
14
  export declare const agreementValidator: import("../../validation/validator").Validator<any>;
15
15
  export declare const emailValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
16
16
  export declare const isValidInnLength: (value: string | undefined) => boolean;
17
+ export declare const birthdayValidator: (errorMsg: string) => import("../../validation/validator").Validator<Date>;
17
18
  export {};
@@ -0,0 +1,2 @@
1
+ import { type InputProps } from './InputProps';
2
+ export declare const InputFile: import("@redneckz/uni-jsx").UNIComponent<InputProps<string>, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type InputProps } from './InputProps';
2
+ export declare const InputFileControl: import("@redneckz/uni-jsx").UNIComponent<InputProps<string>, any, any>;
@@ -2,7 +2,12 @@ import { type ControlProps } from '../../model/ControlProps';
2
2
  import { type DefaultControlType } from '../../model/DefaultControlType';
3
3
  import { type InputTypes } from '../../model/InputTypes';
4
4
  import { type PreventableEventWithTarget } from '../PreventableEvent';
5
- export interface InputProps<V = string> extends DefaultControlType, ControlProps<V> {
5
+ export declare type FileInputProps = {
6
+ extensions?: string[];
7
+ maxSizeMB?: number;
8
+ onFileChanged?: (value: string) => void;
9
+ };
10
+ export interface InputProps<V = string> extends DefaultControlType, ControlProps<V>, FileInputProps {
6
11
  id?: string;
7
12
  name?: string;
8
13
  type?: InputTypes;
@@ -0,0 +1 @@
1
+ export declare const checkFileExtension: (file: File, extensions?: string[]) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const checkFileMimeType: (file?: File, extensions?: string[]) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ declare const SIGNATURES: Record<string, string>;
2
+ export declare const checkFileSignature: (file?: File, expectedTypes?: (keyof typeof SIGNATURES)[]) => Promise<void>;
3
+ export {};
@@ -0,0 +1 @@
1
+ export declare const checkFileSize: (file: File, maxSizeMB?: number) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const getFileSignature: (file?: File) => Promise<string>;
@@ -0,0 +1,6 @@
1
+ export declare const ACCEPTED_EXTENSIONS_TEXT = "\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0444\u043E\u0440\u043C\u0430\u0442\u044B \u0444\u0430\u0439\u043B\u043E\u0432";
2
+ export declare const MAX_SIZE_TEXT = "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430";
3
+ export declare const EMPTY_FILE_ERROR_TEXT = "\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 \u0444\u0430\u0439\u043B\u0430. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0444\u0430\u0439\u043B \u043D\u0435 \u043F\u0443\u0441\u0442\u043E\u0439";
4
+ export declare const EXTENSIONS_ERROR_TEXT = "\u0424\u0430\u0439\u043B \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u043C \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u043C";
5
+ export declare const MAX_SIZE_ERROR_TEXT = "\u0424\u0430\u0439\u043B \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440";
6
+ export declare const DEFAULT_ERROR_TEXT = "\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u0444\u0430\u0439\u043B\u0430. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B \u043F\u043E\u0437\u0434\u043D\u0435\u0435";
@@ -0,0 +1,12 @@
1
+ import { type ResponseData } from '../../api/sendFile';
2
+ import type { PreventableEvent } from '../PreventableEvent';
3
+ import type { InputProps } from './InputProps';
4
+ interface InputFileProps extends InputProps<File> {
5
+ key?: string;
6
+ uploadResponse?: ResponseData | null;
7
+ file?: File | null;
8
+ onReset?: (e: PreventableEvent) => void;
9
+ isCustomValid?: boolean;
10
+ }
11
+ export declare const renderFileInput: ({ label, inputRef, id, key, type, name, pattern, disabled, onChange, onFocus, onBlur, extensions, uploadResponse, file, }: InputFileProps) => any;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const renderInfoText: (extensions?: string[], maxSize?: number) => any;
@@ -0,0 +1,2 @@
1
+ export declare const defaultStyle = "w-full border rounded-md text-primary-text outline-none p-m";
2
+ export declare const borderStyle = "border-dashed";
@@ -0,0 +1,17 @@
1
+ import { type ResponseData } from '../../api/sendFile';
2
+ import { type FileInputProps } from './InputProps';
3
+ interface VerifyFileProps extends FileInputProps {
4
+ onUploadError?: (value: string) => void;
5
+ onFileSelected?: (value: File) => void;
6
+ onUploadResponse?: (value: ResponseData) => void;
7
+ }
8
+ export declare type VerifyFileParams = {
9
+ file: File;
10
+ onFileChanged?: (value: string) => void;
11
+ };
12
+ export declare const useVerifyFile: ({ onUploadError, onFileSelected, extensions, maxSizeMB, onUploadResponse, }: VerifyFileProps) => {
13
+ verifyFile: ({ file, onFileChanged }: VerifyFileParams) => Promise<void>;
14
+ isFileUploading: boolean;
15
+ progress: number;
16
+ };
17
+ export {};
@@ -5,3 +5,7 @@ export interface PreventableEvent {
5
5
  export declare type PreventableEventWithTarget = PreventableEvent & {
6
6
  target?: EventTarget | null;
7
7
  };
8
+ export declare type PreventableEventWithTargetFiles = PreventableEvent & {
9
+ target?: HTMLInputElement | null;
10
+ dataTransfer?: DataTransfer;
11
+ };
@@ -2,6 +2,7 @@ import type { DescriptionProps } from '../../model/HeadlineType';
2
2
  interface ProgressBarProps extends DescriptionProps {
3
3
  step?: number;
4
4
  showPercentage?: boolean;
5
+ isOnlyInteger?: boolean;
5
6
  }
6
7
  export declare const ProgressBar: import("@redneckz/uni-jsx").UNIComponent<ProgressBarProps, any, any>;
7
8
  export {};
@@ -0,0 +1,8 @@
1
+ interface AnimateProgressProps {
2
+ from: number;
3
+ to: number;
4
+ onUpdate: (value: number) => void;
5
+ minDuration: number;
6
+ }
7
+ export declare const animateStepWithMinDuration: ({ from, to, onUpdate, minDuration, }: AnimateProgressProps) => Promise<void>;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const isDateValid: (value: Date, limits: {
2
+ minLimit?: Date;
3
+ maxLimit?: Date;
4
+ }) => boolean;
@@ -1,4 +1,5 @@
1
1
  import { type JSONRecord, type JSONScalar } from '@redneckz/json-op';
2
+ import { type EndpointType } from '../components/ApplicationForm/ApplicationFormContent';
2
3
  import { type Router } from '../external/useRouter';
3
4
  export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null> & {
4
5
  typeForm?: string;
@@ -28,10 +29,15 @@ declare type CheckCodeResponse = {
28
29
  declare type PhoneOnly = {
29
30
  phone?: string;
30
31
  };
32
+ export declare type sendProps = {
33
+ body: LeadRequest;
34
+ router: Router;
35
+ endpoint?: EndpointType;
36
+ };
31
37
  export declare function LeadServiceAPI(): {
32
- send: (body: LeadRequest, router: Router, isIndividualType?: boolean) => Promise<any>;
38
+ send: ({ body, router, endpoint }: sendProps) => Promise<any>;
33
39
  sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
34
40
  checkCode: ({ reqId, code, body }: CheckCodeProps) => Promise<CheckCodeResponse>;
35
- sendPhoneCallRequest: (body: LeadRequest, isNaturalPerson?: boolean) => Promise<any>;
41
+ sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
36
42
  };
37
43
  export {};
@@ -4,11 +4,14 @@ const getTimezone_1 = require("../utils/getTimezone");
4
4
  const apiBaseUrl_1 = require("./apiBaseUrl");
5
5
  const getSubmitBody_1 = require("./getSubmitBody");
6
6
  function LeadServiceAPI() {
7
- async function send(body, router, isIndividualType = false) {
8
- const { serviceDirection } = body;
9
- const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
10
- const url = `${apiBaseUrl_1.API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
11
- const submitBody = (0, getSubmitBody_1.getSubmitBody)(body, isNaturalPerson, router);
7
+ async function send({ body, router, endpoint }) {
8
+ const calculatedEndpoint = endpoint && getEndpoint(endpoint, body);
9
+ const url = `${apiBaseUrl_1.API_BASE_URI}/${calculatedEndpoint}`;
10
+ const submitBody = (0, getSubmitBody_1.getSubmitBody)({
11
+ body,
12
+ endpoint,
13
+ router,
14
+ });
12
15
  try {
13
16
  const response = await LeadServiceFetch(url, submitBody);
14
17
  if (!response?.ok) {
@@ -39,7 +42,7 @@ function LeadServiceAPI() {
39
42
  const submitBody = {
40
43
  requestId: reqId,
41
44
  confimationCode: code,
42
- leadRequest: (0, getSubmitBody_1.getSubmitBody)(body, false),
45
+ leadRequest: (0, getSubmitBody_1.getSubmitBody)({ body }),
43
46
  };
44
47
  try {
45
48
  const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}/confirmCorporateLead`, submitBody);
@@ -49,9 +52,9 @@ function LeadServiceAPI() {
49
52
  return null;
50
53
  }
51
54
  }
52
- async function sendPhoneCallRequest(body, isNaturalPerson = false) {
55
+ async function sendPhoneCallRequest(body, endpoint) {
53
56
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
- const submitBody = (0, getSubmitBody_1.getSubmitBody)(body, isNaturalPerson);
57
+ const submitBody = (0, getSubmitBody_1.getSubmitBody)({ body, endpoint });
55
58
  const formatSubmitBody = getFormatCallbackSubmitBody(submitBody);
56
59
  try {
57
60
  const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}/callback`, formatSubmitBody);
@@ -87,4 +90,11 @@ const getFormatCallbackSubmitBody = (submitBody) => {
87
90
  clientTimezone: (0, getTimezone_1.getUserTimezoneOffset)(),
88
91
  };
89
92
  };
93
+ const getEndpoint = (endpoint, body) => {
94
+ const { serviceDirection } = body;
95
+ if (endpoint === 'lead' && serviceDirection !== 'Юридическое лицо / ИП') {
96
+ return 'lead';
97
+ }
98
+ return endpoint;
99
+ };
90
100
  //# sourceMappingURL=LeadServiceAPI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AAEA,sDAA6D;AAC7D,6CAA4C;AAC5C,mDAA8D;AA0C9D,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,IAAiB,EAAE,MAAc,EAAE,gBAAgB,GAAG,KAAK;QAC7E,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;QAElC,MAAM,eAAe,GAAG,gBAAgB,IAAI,gBAAgB,KAAK,uBAAuB,CAAC;QACzF,MAAM,GAAG,GAAG,GAAG,yBAAY,GAAG,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC;QACjF,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;QAEhE,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;YAEzD,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,KAAK,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAa;QAC1C,MAAM,UAAU,GAAG,IAAA,4BAAY,EAAC,KAAK,CAAC,CAAC;QAEvC,IAAI;YACF,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,yBAAY,oBAAoB,EAAE,UAAU,CAAC,CAAC,IAAI,CACrF,KAAK,EAAE,GAAG,EAAE,EAAE;gBACZ,IAAI,CAAC,GAAG,CAAC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