@redneckz/wildless-cms-uni-blocks 0.14.651 → 0.14.653

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 (652) hide show
  1. package/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  3. package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +959 -119
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  9. package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  10. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  11. package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  12. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  13. package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  14. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  15. package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  16. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  17. package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  18. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  19. package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  20. package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  21. package/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  22. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  23. package/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  24. package/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  25. package/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  26. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  27. package/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  28. package/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  29. package/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  30. package/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  31. package/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  32. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  33. package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  34. package/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  35. package/bundle/hooks/useInterval.d.ts +1 -0
  36. package/bundle/model/InputSectionsType.d.ts +9 -1
  37. package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  38. package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  39. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  40. package/dist/api/RetailAPI/doRequest.js +1 -0
  41. package/dist/api/RetailAPI/doRequest.js.map +1 -1
  42. package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  43. package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  44. package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  45. package/dist/api/RetailAPI/updateRefreshToken.js +31 -0
  46. package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  47. package/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  48. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  49. package/dist/api/dadataHints/hintsListsOptions.js +1 -0
  50. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  51. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  52. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  53. package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  54. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  55. package/dist/components/Blocks.js +2 -0
  56. package/dist/components/Blocks.js.map +1 -1
  57. package/dist/components/Blocks.mobile.js +2 -0
  58. package/dist/components/Blocks.mobile.js.map +1 -1
  59. package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  60. package/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  61. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  62. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  63. package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  64. package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  65. package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  66. package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  67. package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  68. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  69. package/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  70. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  71. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  72. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  73. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  74. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  75. package/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  76. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  77. package/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  78. package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  79. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  80. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  81. package/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  82. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  83. package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  84. package/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  85. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  86. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  87. package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  88. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  89. package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  90. package/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  91. package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  92. package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  93. package/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  94. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  95. package/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  96. package/dist/components/CreditCardForm/formStateMap.js +93 -0
  97. package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  98. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  99. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  100. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  101. package/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  102. package/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  103. package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  104. package/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  105. package/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  106. package/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  107. package/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  108. package/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  109. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  110. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  111. package/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  112. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  113. package/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  114. package/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  115. package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  116. package/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  117. package/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  118. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  119. package/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  120. package/dist/components/CreditCardForm/renderInfo.js +12 -0
  121. package/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  122. package/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  123. package/dist/components/CreditCardForm/renderInputs.js +6 -0
  124. package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  125. package/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  126. package/dist/components/CreditCardForm/renderStep.js +19 -0
  127. package/dist/components/CreditCardForm/renderStep.js.map +1 -0
  128. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  129. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  130. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  131. package/dist/components/CreditForm/CreditForm.js +2 -0
  132. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  133. package/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
  134. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  135. package/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  136. package/dist/components/CreditForm/FailedStatusContent.js +1 -1
  137. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  138. package/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  139. package/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  140. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  141. package/dist/hooks/useInterval.d.ts +1 -0
  142. package/dist/hooks/useInterval.js +14 -0
  143. package/dist/hooks/useInterval.js.map +1 -0
  144. package/dist/model/InputSectionsType.d.ts +9 -1
  145. package/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  146. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  147. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  148. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  149. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  150. package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  151. package/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  152. package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  153. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  154. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  155. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  156. package/dist/ui-kit/FormField/getField.js +5 -0
  157. package/dist/ui-kit/FormField/getField.js.map +1 -1
  158. package/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  159. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  160. package/lib/api/RetailAPI/doRequest.js +1 -0
  161. package/lib/api/RetailAPI/doRequest.js.map +1 -1
  162. package/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  163. package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  164. package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  165. package/lib/api/RetailAPI/updateRefreshToken.js +28 -0
  166. package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  167. package/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  168. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  169. package/lib/api/dadataHints/hintsListsOptions.js +1 -0
  170. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  171. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  172. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  173. package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  174. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  175. package/lib/components/Blocks.js +2 -0
  176. package/lib/components/Blocks.js.map +1 -1
  177. package/lib/components/Blocks.mobile.js +2 -0
  178. package/lib/components/Blocks.mobile.js.map +1 -1
  179. package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  180. package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +6 -0
  181. package/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  182. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  183. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  184. package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  185. package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  186. package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  187. package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  188. package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  189. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  190. package/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  191. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  192. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  193. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  194. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  195. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  196. package/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  197. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  198. package/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  199. package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  200. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  201. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  202. package/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  203. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  204. package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  205. package/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  206. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  207. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  208. package/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  209. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  210. package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  211. package/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  212. package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  213. package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  214. package/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  215. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  216. package/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  217. package/lib/components/CreditCardForm/formStateMap.js +91 -0
  218. package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  219. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  220. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  221. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  222. package/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  223. package/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  224. package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  225. package/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  226. package/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  227. package/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  228. package/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  229. package/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  230. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  231. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  232. package/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  233. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  234. package/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  235. package/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  236. package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  237. package/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  238. package/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  239. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  240. package/lib/components/CreditCardForm/renderInfo.d.ts +2 -0
  241. package/lib/components/CreditCardForm/renderInfo.js +9 -0
  242. package/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  243. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -0
  244. package/lib/components/CreditCardForm/renderInputs.js +3 -0
  245. package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  246. package/lib/components/CreditCardForm/renderStep.d.ts +12 -0
  247. package/lib/components/CreditCardForm/renderStep.js +16 -0
  248. package/lib/components/CreditCardForm/renderStep.js.map +1 -0
  249. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  250. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  251. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  252. package/lib/components/CreditForm/CreditForm.js +3 -1
  253. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  254. package/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
  255. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  256. package/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  257. package/lib/components/CreditForm/FailedStatusContent.js +1 -1
  258. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  259. package/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  260. package/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  261. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  262. package/lib/hooks/useInterval.d.ts +1 -0
  263. package/lib/hooks/useInterval.js +11 -0
  264. package/lib/hooks/useInterval.js.map +1 -0
  265. package/lib/model/InputSectionsType.d.ts +9 -1
  266. package/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  267. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  268. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  269. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  270. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  271. package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  272. package/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  273. package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  274. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  275. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  276. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  277. package/lib/ui-kit/FormField/getField.js +5 -0
  278. package/lib/ui-kit/FormField/getField.js.map +1 -1
  279. package/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  280. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  281. package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  282. package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  283. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  284. package/mobile/bundle/bundle.umd.js +955 -115
  285. package/mobile/bundle/bundle.umd.min.js +1 -1
  286. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  287. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  288. package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  289. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  290. package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  291. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  292. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  293. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  294. package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  295. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  296. package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  297. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  298. package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  299. package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  300. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  301. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  302. package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  303. package/mobile/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  304. package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  305. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  306. package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  307. package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  308. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  309. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  310. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  311. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  312. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  313. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  314. package/mobile/bundle/hooks/useInterval.d.ts +1 -0
  315. package/mobile/bundle/model/InputSectionsType.d.ts +9 -1
  316. package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  317. package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  318. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  319. package/mobile/dist/api/RetailAPI/doRequest.js +1 -0
  320. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
  321. package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  322. package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  323. package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  324. package/mobile/dist/api/RetailAPI/updateRefreshToken.js +31 -0
  325. package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  326. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  327. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  328. package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
  329. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  330. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  331. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  332. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  333. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  334. package/mobile/dist/components/Blocks.js +2 -0
  335. package/mobile/dist/components/Blocks.js.map +1 -1
  336. package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  337. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  338. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  339. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  340. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  341. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  342. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  343. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  344. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  345. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  346. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  347. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  348. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  349. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  350. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  351. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  352. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  353. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  354. package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  355. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  356. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  357. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  358. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  359. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  360. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  361. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  362. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  363. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  364. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  365. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  366. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  367. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  368. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  369. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  370. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  371. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  372. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  373. package/mobile/dist/components/CreditCardForm/formStateMap.js +93 -0
  374. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  375. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  376. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  377. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  378. package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  379. package/mobile/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  380. package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  381. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  382. package/mobile/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  383. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  384. package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  385. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  386. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  387. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  388. package/mobile/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  389. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  390. package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  391. package/mobile/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  392. package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  393. package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  394. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  395. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  396. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  397. package/mobile/dist/components/CreditCardForm/renderInfo.js +12 -0
  398. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  399. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  400. package/mobile/dist/components/CreditCardForm/renderInputs.js +6 -0
  401. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  402. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  403. package/mobile/dist/components/CreditCardForm/renderStep.js +19 -0
  404. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
  405. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  406. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  407. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  408. package/mobile/dist/components/CreditForm/CreditForm.js +2 -0
  409. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  410. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
  411. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  412. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  413. package/mobile/dist/components/CreditForm/FailedStatusContent.js +1 -1
  414. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  415. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  416. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  417. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  418. package/mobile/dist/hooks/useInterval.d.ts +1 -0
  419. package/mobile/dist/hooks/useInterval.js +14 -0
  420. package/mobile/dist/hooks/useInterval.js.map +1 -0
  421. package/mobile/dist/model/InputSectionsType.d.ts +9 -1
  422. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  423. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  424. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  425. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  426. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  427. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  428. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  429. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  430. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  431. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  432. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  433. package/mobile/dist/ui-kit/FormField/getField.js +5 -0
  434. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  435. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  436. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  437. package/mobile/lib/api/RetailAPI/doRequest.js +1 -0
  438. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
  439. package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  440. package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  441. package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  442. package/mobile/lib/api/RetailAPI/updateRefreshToken.js +28 -0
  443. package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  444. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  445. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  446. package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
  447. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  448. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  449. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  450. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  451. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  452. package/mobile/lib/components/Blocks.js +2 -0
  453. package/mobile/lib/components/Blocks.js.map +1 -1
  454. package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  455. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  456. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  457. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  458. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  459. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  460. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  461. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  462. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  463. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  464. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  465. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  466. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  467. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  468. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  469. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  470. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  471. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  472. package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  473. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  474. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  475. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  476. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  477. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  478. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  479. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  480. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  481. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  482. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  483. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  484. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  485. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  486. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  487. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  488. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  489. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  490. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  491. package/mobile/lib/components/CreditCardForm/formStateMap.js +91 -0
  492. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  493. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  494. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  495. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  496. package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  497. package/mobile/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  498. package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  499. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  500. package/mobile/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  501. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  502. package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  503. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  504. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  505. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  506. package/mobile/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  507. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  508. package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  509. package/mobile/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  510. package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  511. package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  512. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  513. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  514. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +3 -0
  515. package/mobile/lib/components/CreditCardForm/renderInfo.js +9 -0
  516. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  517. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +3 -0
  518. package/mobile/lib/components/CreditCardForm/renderInputs.js +3 -0
  519. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  520. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +13 -0
  521. package/mobile/lib/components/CreditCardForm/renderStep.js +16 -0
  522. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
  523. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  524. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  525. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  526. package/mobile/lib/components/CreditForm/CreditForm.js +3 -1
  527. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  528. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
  529. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  530. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  531. package/mobile/lib/components/CreditForm/FailedStatusContent.js +1 -1
  532. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  533. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  534. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  535. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  536. package/mobile/lib/hooks/useInterval.d.ts +1 -0
  537. package/mobile/lib/hooks/useInterval.js +11 -0
  538. package/mobile/lib/hooks/useInterval.js.map +1 -0
  539. package/mobile/lib/model/InputSectionsType.d.ts +9 -1
  540. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  541. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  542. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  543. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  544. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  545. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  546. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  547. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  548. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  549. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  550. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  551. package/mobile/lib/ui-kit/FormField/getField.js +5 -0
  552. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  553. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  554. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  555. package/mobile/src/api/RetailAPI/doRequest.ts +1 -0
  556. package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
  557. package/mobile/src/api/RetailAPI/updateRefreshToken.ts +42 -0
  558. package/mobile/src/api/RetailAPI/updateUserTask.ts +4 -0
  559. package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
  560. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  561. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  562. package/mobile/src/components/Blocks.ts +2 -0
  563. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  564. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  565. package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  566. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  567. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  568. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  569. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  570. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  571. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  572. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  573. package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  574. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  575. package/mobile/src/components/CreditCardForm/formStateMap.tsx +165 -0
  576. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  577. package/mobile/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  578. package/mobile/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  579. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  580. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  581. package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  582. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  583. package/mobile/src/components/CreditCardForm/renderInfo.tsx +10 -0
  584. package/mobile/src/components/CreditCardForm/renderInputs.tsx +5 -0
  585. package/mobile/src/components/CreditCardForm/renderStep.tsx +43 -0
  586. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  587. package/mobile/src/components/CreditForm/CreditForm.tsx +6 -5
  588. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -2
  589. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -1
  590. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  591. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  592. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  593. package/mobile/src/hooks/useInterval.ts +14 -0
  594. package/mobile/src/model/InputSectionsType.ts +13 -1
  595. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  596. package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  597. package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  598. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  599. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  600. package/mobile/src/ui-kit/FormField/getField.tsx +6 -0
  601. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
  602. package/package.json +2 -2
  603. package/src/api/RetailAPI/doRequest.ts +1 -0
  604. package/src/api/RetailAPI/getTaskStatus.ts +1 -1
  605. package/src/api/RetailAPI/updateRefreshToken.ts +42 -0
  606. package/src/api/RetailAPI/updateUserTask.ts +4 -0
  607. package/src/api/dadataHints/hintsListsOptions.ts +1 -0
  608. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  609. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  610. package/src/components/Blocks.mobile.ts +2 -0
  611. package/src/components/Blocks.ts +2 -0
  612. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -0
  613. package/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  614. package/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  615. package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  616. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  617. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  618. package/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  619. package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  620. package/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  621. package/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  622. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  623. package/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  624. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  625. package/src/components/CreditCardForm/formStateMap.tsx +165 -0
  626. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  627. package/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  628. package/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  629. package/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  630. package/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  631. package/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  632. package/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  633. package/src/components/CreditCardForm/renderInfo.tsx +10 -0
  634. package/src/components/CreditCardForm/renderInputs.tsx +5 -0
  635. package/src/components/CreditCardForm/renderStep.tsx +43 -0
  636. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  637. package/src/components/CreditForm/CreditForm.fixture.tsx +7 -0
  638. package/src/components/CreditForm/CreditForm.tsx +6 -5
  639. package/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -2
  640. package/src/components/CreditForm/CreditFormStep.tsx +1 -1
  641. package/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  642. package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  643. package/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  644. package/src/hooks/useInterval.ts +14 -0
  645. package/src/model/InputSectionsType.ts +13 -1
  646. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  647. package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  648. package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  649. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  650. package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  651. package/src/ui-kit/FormField/getField.tsx +6 -0
  652. package/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
@@ -0,0 +1,28 @@
1
+ import { formStateMap, type FormStateMap } from './formStateMap';
2
+
3
+ export const getInitialFormState = <Step extends keyof FormStateMap>(
4
+ step: Step,
5
+ localStorageData: Record<string, any> | null,
6
+ ): FormStateMap[Step] => {
7
+ if (localStorageData) {
8
+ // TODO: Fill in for other fields with type Date
9
+ // TODO: Take it out to the helper
10
+ localStorageData.birthday = localStorageData.birthday
11
+ ? new Date(localStorageData.birthday as string)
12
+ : undefined;
13
+ localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
14
+ ? new Date(localStorageData.dulIssueDateField as string)
15
+ : undefined;
16
+ localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
17
+ ? new Date(localStorageData.participantDateRegistration as string)
18
+ : undefined;
19
+ localStorageData.beginDate = localStorageData?.beginDate
20
+ ? new Date(localStorageData.beginDate as string)
21
+ : undefined;
22
+ }
23
+
24
+ return {
25
+ ...formStateMap[step],
26
+ ...localStorageData,
27
+ };
28
+ };
@@ -0,0 +1,54 @@
1
+ import { type Participant } from '../../api/RetailAPI/updateUserTask';
2
+ import { formatDate } from '../../utils/formatDate';
3
+ import { formatPhone } from '../../utils/formatPhone';
4
+ import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
5
+ import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
6
+
7
+ export const getSecondStepData = (formData: FormState): Partial<Participant> => {
8
+ const {
9
+ name,
10
+ surname,
11
+ middleName,
12
+ birthday = '',
13
+ phone = '',
14
+ email,
15
+ sex,
16
+ birthPlace,
17
+ dulIssueDateField = '',
18
+ dulIssuedBy,
19
+ dulNumber,
20
+ dulSerie,
21
+ dulSubdivisionCode,
22
+ education,
23
+ participantDateRegistration = '',
24
+ housing,
25
+ addressRegistration,
26
+ addressFact,
27
+ } = formData;
28
+
29
+ return {
30
+ birthDate: formatDate(birthday, true),
31
+ midname: middleName,
32
+ name,
33
+ surname,
34
+ birthPlace,
35
+ dulIssueDate: formatDate(dulIssueDateField, true),
36
+ dulIssuedBy,
37
+ dulNumber,
38
+ dulSerie,
39
+ dulSubdivisionCode,
40
+ educationLevelCd: education,
41
+ registrationDate: formatDate(participantDateRegistration, true),
42
+ houseTypeCd: housing,
43
+ participantContacts: getParticipantContacts({
44
+ phone: formatPhone(phone),
45
+ email,
46
+ }),
47
+ participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
48
+ genderCd: sex
49
+ ? {
50
+ key: sex === 'male' ? 'MAN' : 'WOMAN',
51
+ }
52
+ : undefined,
53
+ };
54
+ };
@@ -0,0 +1,44 @@
1
+ import { type Participant } from '../../api/RetailAPI/updateUserTask';
2
+ import { formatPhone } from '../../utils/formatPhone';
3
+ import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
4
+ import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
5
+
6
+ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
7
+ const {
8
+ employment,
9
+ organizationName,
10
+ inn,
11
+ legalForm,
12
+ organization,
13
+ amountWorkers,
14
+ employerActivities,
15
+ employerOrganization,
16
+ generalSeniority,
17
+ lastJobExperience,
18
+ experience5Years,
19
+ jobsNumber,
20
+ organizationPhone,
21
+ organizationAddress,
22
+ positionOrganization,
23
+ } = formData;
24
+
25
+ return {
26
+ employmentTypeCd: employment,
27
+ organizationName,
28
+ organizationInn: inn,
29
+ organizationActivityTypeCd: employerActivities,
30
+ organizationTypeCd: organization,
31
+ organizationKindCd: employerOrganization,
32
+ employeesNumberCd: amountWorkers,
33
+ opf: legalForm,
34
+ seniority: generalSeniority,
35
+ generalSeniority: experience5Years,
36
+ jobsNumber,
37
+ lastWorkDuration: lastJobExperience,
38
+ positionCd: positionOrganization,
39
+ participantContacts: getParticipantContacts({
40
+ organizationPhone: organizationPhone && formatPhone(organizationPhone),
41
+ }),
42
+ participantAddresses: getParticipantAddresses({ organizationAddress }),
43
+ };
44
+ };
@@ -0,0 +1,10 @@
1
+ import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
2
+ import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
3
+
4
+ export const renderInfo = (inputs: FieldDef[] = []) => {
5
+ const infoInputs = inputs.filter((_) => _.fieldType === 'info');
6
+
7
+ return infoInputs.length
8
+ ? infoInputs.map(({ text, name }, i) => <InfoCard key={`${name}_${i}`} __html={text} />)
9
+ : null;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { getField } from '../../ui-kit/FormField/getField';
2
+ import { type RenderInputsProps } from './CreditCardFormContent';
3
+
4
+ export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
5
+ (inputs || [])?.map(getField(field, ''));
@@ -0,0 +1,43 @@
1
+ import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
2
+ import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
3
+ import { renderTitle } from '../../ui-kit/FormField/renderTitle';
4
+ import { style } from '../../utils/style';
5
+ import { type CreditCardSectionsProps } from './CreditCardFormContent';
6
+ import { type FormStateMap } from './formStateMap';
7
+ import { renderInfo } from './renderInfo';
8
+ import { renderInputs } from './renderInputs';
9
+
10
+ export type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
11
+
12
+ export interface StepProps {
13
+ sections?: CreditCardSectionsProps[];
14
+ field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
15
+ registerSubmit?: (submit: CustomSubmit) => void;
16
+ isLastStep?: boolean;
17
+ methodObtain?: string;
18
+ }
19
+
20
+ const renderLastStep = ({ sections, field, methodObtain }: StepProps) =>
21
+ sections
22
+ ?.filter(({ type }) => type === methodObtain || !type)
23
+ .map(({ inputs, columns, title }, i) => (
24
+ <div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
25
+ {renderInfo(inputs)}
26
+ {renderTitle(title)}
27
+ {renderInputs({ field, inputs })}
28
+ </div>
29
+ ));
30
+
31
+ export const renderStep = ({ sections, field, isLastStep, methodObtain }: StepProps) => {
32
+ if (isLastStep) {
33
+ return renderLastStep({ sections, field, methodObtain });
34
+ }
35
+
36
+ return sections?.map(({ inputs, columns, title }, i) => (
37
+ <div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
38
+ {renderInfo(inputs)}
39
+ {renderTitle(title)}
40
+ {renderInputs({ field, inputs })}
41
+ </div>
42
+ ));
43
+ };
@@ -0,0 +1,75 @@
1
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { updateUserTask } from '../../api/RetailAPI/updateUserTask';
3
+ import { useLocalStorage } from '../../hooks/useLocalStorage';
4
+ import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
5
+ import { objectValidator } from '../../validation/objectValidator';
6
+ import { isValidationSuccess } from '../../validation/validator';
7
+ import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
8
+ import { type FormStateMap } from './formStateMap';
9
+ import { getCreditCardFormTaskData } from './getCreditCardFormTaskData';
10
+
11
+ type CreditCardFormApiProps = {
12
+ step: number;
13
+ inputs: FieldDef[];
14
+ onNextStep: () => void;
15
+ saveStep: (value: Record<string, any>) => void;
16
+ finishForm?: (bool: boolean) => void;
17
+ };
18
+
19
+ export const useCreditCardFormAPI = ({
20
+ step,
21
+ inputs,
22
+ onNextStep,
23
+ saveStep,
24
+ finishForm,
25
+ }: CreditCardFormApiProps) => {
26
+ const [taskId] = useLocalStorage<number>('taskId');
27
+ const [profileId] = useLocalStorage<number>('profileId');
28
+ const [participantId] = useLocalStorage<number>('participantId');
29
+
30
+ const handleSubmit = useCallback(async (formData: FormStateMap[keyof FormStateMap]) => {
31
+ const feedbackValidator = objectValidator(
32
+ getObjectValidator(calculateInputs(formData, inputs, step)),
33
+ );
34
+ if (!isValidationSuccess(feedbackValidator(formData))) {
35
+ return console.warn('validation fail');
36
+ }
37
+
38
+ saveStep(formData);
39
+
40
+ try {
41
+ if (taskId && profileId && participantId) {
42
+ await updateUserTask(
43
+ getCreditCardFormTaskData({
44
+ participantId,
45
+ taskId,
46
+ profileId,
47
+ step,
48
+ formData: formData as any,
49
+ }),
50
+ );
51
+ }
52
+ } catch (ex) {
53
+ return 'Fail';
54
+ }
55
+
56
+ onNextStep();
57
+
58
+ if (step === 5) {
59
+ finishForm?.(true);
60
+ }
61
+
62
+ return 'OK';
63
+ }, []);
64
+
65
+ return {
66
+ handleSubmit,
67
+ };
68
+ };
69
+
70
+ const calculateInputs = (
71
+ formData: FormStateMap[keyof FormStateMap],
72
+ inputs: FieldDef[],
73
+ step: number,
74
+ ) =>
75
+ step === 2 && 'employment' in formData && formData?.employment?.key === 'RETIREE' ? [] : inputs;
@@ -3,6 +3,13 @@ import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
3
3
  import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
4
4
  import { CreditForm } from './CreditForm';
5
5
 
6
+ const MOCK_TOKEN = 'mockKEY';
7
+ const MOCK_TASK_ID = '111111';
8
+
9
+ globalThis.sessionStorage?.setItem('refreshToken', MOCK_TOKEN);
10
+ globalThis.sessionStorage?.setItem('accessToken', MOCK_TOKEN);
11
+ globalThis.localStorage.setItem('taskId', MOCK_TASK_ID);
12
+
6
13
  export default {
7
14
  default: (
8
15
  <div>
@@ -1,12 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
4
+ import { type SectionsProps } from '../../model/InputSectionsType';
3
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
6
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
5
7
  import { style } from '../../utils/style';
6
- import {
7
- type FieldDef,
8
- type SectionsProps,
9
- } from '../ApplicationLeadForm/ApplicationLeadFormContent';
8
+ import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
10
9
  import { CalculatorCredit } from '../CalculatorCredit/CalculatorCredit';
11
10
  import { type CreditFormContent } from './CreditFormContent';
12
11
  import { CreditFormProgress } from './CreditFormProgress';
@@ -29,6 +28,8 @@ const WIZARD_TITLES = [
29
28
  export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) => {
30
29
  const [step, setStep] = useState(0);
31
30
 
31
+ useEffect(updateRefreshToken, []);
32
+
32
33
  const handleNextStep = useCallback(() => {
33
34
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
34
35
  }, []);
@@ -8,7 +8,6 @@ import { PendingStatusContent } from './PendingStatusContent';
8
8
  import { ReworkStatusContent } from './ReworkStatusContent';
9
9
  import { SuccessStatusContent } from './SuccessStatusContent';
10
10
 
11
- const TASK_ID = 2816419;
12
11
  const SIGNAL_TYPES: SignalType[] = [
13
12
  'CREATE_APPLICATION_SHORT_SIGNAL',
14
13
  'CREATE_APPLICATION_LOAN_V3_SIGNAL',
@@ -24,7 +23,8 @@ export const CreditFormStatusTracker = JSX(() => {
24
23
  }
25
24
 
26
25
  const trackStatus = () =>
27
- getTaskStatus({ taskId: TASK_ID }).then((res) => {
26
+ taskId &&
27
+ getTaskStatus({ taskId }).then((res) => {
28
28
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
29
29
  clearInterval(pullingInterval);
30
30
  setStatus(res.statusCd);
@@ -32,6 +32,8 @@ export const CreditFormStatusTracker = JSX(() => {
32
32
  });
33
33
 
34
34
  const pullingInterval = setInterval(trackStatus, 30000);
35
+
36
+ return () => clearInterval(pullingInterval);
35
37
  }, []);
36
38
 
37
39
  return renderStatus(status);
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm';
4
4
  import { useLocalStorage } from '../../hooks/useLocalStorage';
5
- import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
5
+ import { type SectionsProps } from '../../model/InputSectionsType';
6
6
  import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
7
7
  import { CreditFormStatusTracker } from './CreditFormStatusTracker';
8
8
  import { type FormStateMap } from './formStateMap';
@@ -4,8 +4,7 @@ import { CreditFormStatus } from './CreditFormStatus';
4
4
  export const FailedStatusContent = JSX(() => (
5
5
  <CreditFormStatus
6
6
  title="Благодарим Вас за ожидание"
7
- description="В настоящий момент Банк не может одобрить Вашу заявку на кредит.
8
- Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
7
+ description="В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
9
8
  buttonText="Вернуться на главную"
10
9
  />
11
10
  ));
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable max-lines */
2
2
  /* eslint-disable max-len */
3
3
 
4
- import { type SectionsProps } from '../ApplicationLeadForm/ApplicationLeadFormContent';
4
+ import { type SectionsProps } from '../../model/InputSectionsType';
5
5
 
6
6
  export const stepsSectionsMap: SectionsProps[][] = [
7
7
  [
@@ -57,6 +57,6 @@ const getCurrentStepData = (step: number, formData: FormState): Partial<Particip
57
57
  case 4:
58
58
  return getFourthStepData(formData);
59
59
  default:
60
- return getFirstStepData(formData);
60
+ return {};
61
61
  }
62
62
  };
@@ -0,0 +1,14 @@
1
+ import { useCallback, useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
2
+
3
+ export const useInterval = (handler: (stop: () => void) => void, period: number) => {
4
+ const timer = useRef<any | null>(null);
5
+ const clearTimer = useCallback(() => timer.current && clearInterval(timer.current as number), []);
6
+
7
+ useEffect(() => {
8
+ timer.current = setInterval(() => handler(clearTimer), period);
9
+
10
+ return clearTimer;
11
+ }, [handler, period]);
12
+
13
+ return clearTimer;
14
+ };
@@ -1,4 +1,16 @@
1
- import { type SectionsProps } from '../components/ApplicationForm/ApplicationFormContent';
1
+ import {
2
+ type FieldDef,
3
+ type FormColumnsCount,
4
+ } from '../components/ApplicationLeadForm/ApplicationLeadFormContent';
5
+ import { type TitleProps } from './HeadlineType';
6
+
7
+ /**
8
+ * @title Секция полей ввода
9
+ */
10
+ export type SectionsProps = TitleProps & {
11
+ columns?: FormColumnsCount;
12
+ inputs?: FieldDef[];
13
+ };
2
14
 
3
15
  export interface InputSectionsType {
4
16
  /** @hidden */
@@ -1,24 +1,23 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { RadioButtonGroup, type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
3
- import { Text } from '../../Text/Text';
2
+ import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
3
+ import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
4
4
  import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+ import { getValidation } from '../getValidation';
5
7
 
6
8
  export const CURRENCY_TYPES: RadioButtonItem[] = [{ id: 'rub', text: 'Рубль' }];
7
9
 
8
- export const CurrencyField = JSX<CustomFieldProps>(({ field }) => {
9
- const { value } = field('currency');
10
+ export const CurrencyField = JSX<CustomFieldProps>(({ field, input }) => {
11
+ const { value, onChange } = field('currency');
10
12
 
11
13
  return (
12
- <div className="">
13
- <Text font="font-light">Валюта дебетовой карты</Text>
14
- <div className="py-m gap-m grid @xl:flex @xl:items-center">
15
- <RadioButtonGroup
16
- className="whitespace-normal"
17
- orientation="horizontal"
18
- items={CURRENCY_TYPES}
19
- value={value ?? 'rub'}
20
- />
21
- </div>
22
- </div>
14
+ <RadioButtonGroupControl
15
+ label="Валюта"
16
+ orientation="horizontal"
17
+ items={CURRENCY_TYPES}
18
+ value={value}
19
+ onChange={(_) => onChange?.(_)}
20
+ {...getValidation(field('currency'), validatorObj.currency, input?.required)}
21
+ />
23
22
  );
24
23
  });
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { DatePickerControl } from '../../DatePicker/DatePickerControl';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { validatorObj } from '../getObjectValidator';
5
+ import { getValidation } from '../getValidation';
6
+
7
+ export const DeliveryDateFiels = JSX<CustomFieldProps>(({ field, input }) => (
8
+ <DatePickerControl
9
+ label="Дата доставки"
10
+ {...getValidation(field('deliveryDate'), validatorObj.deliveryDate, input?.required)}
11
+ />
12
+ ));
@@ -0,0 +1,19 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
3
+ import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+ import { getValidation } from '../getValidation';
7
+
8
+ export const METHODS_OF_OBTAIN: RadioButtonItem[] = [
9
+ { id: 'office', text: 'В отделении Банка' },
10
+ { id: 'courier', text: 'Курьерская доставка' },
11
+ ];
12
+
13
+ export const MethodObtainField = JSX<CustomFieldProps>(({ field, input }) => (
14
+ <RadioButtonGroupControl
15
+ orientation="horizontal"
16
+ items={METHODS_OF_OBTAIN}
17
+ {...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required)}
18
+ />
19
+ ));
@@ -1,31 +1,29 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { RadioButtonGroup, type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
3
- import { Text } from '../../Text/Text';
2
+ import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
3
+ import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
4
4
  import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+ import { getValidation } from '../getValidation';
5
7
 
6
8
  export const PAYMENT_SYSTEM_TYPES: RadioButtonItem[] = [
7
9
  { id: 'mir', text: 'Карта МИР' },
8
10
  { id: 'union_pay', text: 'UnionPay' },
9
11
  { id: 'payment_system_j', text: 'Платежная система (Дж)' },
10
- { id: 'payment_system_b', text: 'Платежная система (B)* ' },
12
+ { id: 'payment_system_b', text: 'Платежная система (B) ' },
11
13
  { id: 'free_card', text: 'Бесплатная карта' },
12
14
  ];
13
15
 
14
- export const PaymentSystemField = JSX<CustomFieldProps>(({ field }) => {
16
+ export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
15
17
  const { value, onChange } = field('paymentSystem');
16
18
 
17
19
  return (
18
- <div className="">
19
- <Text font="font-light">Платежная система</Text>
20
- <div className="py-m gap-m grid @xl:flex @xl:items-center">
21
- <RadioButtonGroup
22
- className="whitespace-normal"
23
- orientation="horizontal"
24
- items={PAYMENT_SYSTEM_TYPES}
25
- value={value ?? 'mir'}
26
- onChange={(_) => onChange && onChange(_)}
27
- />
28
- </div>
29
- </div>
20
+ <RadioButtonGroupControl
21
+ label="Платежная система"
22
+ orientation="horizontal"
23
+ items={PAYMENT_SYSTEM_TYPES}
24
+ value={value}
25
+ onChange={(_) => onChange?.(_)}
26
+ {...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required)}
27
+ />
30
28
  );
31
29
  });
@@ -88,6 +88,9 @@ export type NameFieldDef =
88
88
  | 'regionRetail'
89
89
  | 'addressRetail'
90
90
  | 'addressMatch'
91
+ | 'addressCourier'
92
+ | 'deliveryDate'
93
+ | 'methodObtain'
91
94
  | 'paymentSystem'
92
95
  | 'currency'
93
96
  | 'cardCategory'
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable max-lines */
2
2
  /* eslint-disable max-lines-per-function */
3
+ //TODO: Убрать обращение к компонентам т.к. ApplicationForm
3
4
  import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
4
5
  import { getRegionUrl } from '../../components/ApplicationForm/getRegionUrl';
5
6
  import { type FormFieldRegisterer } from '../../hooks/useForm';
@@ -29,6 +30,7 @@ import { ConscriptionField } from './Fields/ConscriptionField';
29
30
  import { ConsentField } from './Fields/ConsentField';
30
31
  import { CreditInRshbCdField } from './Fields/CreditInRshbCdField';
31
32
  import { CurrencyField } from './Fields/CurrencyField';
33
+ import { DeliveryDateFiels } from './Fields/DeliveryDateFiels';
32
34
  import { DependentsField } from './Fields/DependentsField';
33
35
  import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
34
36
  import { DisablePeopleFlgField } from './Fields/DisablePeopleFlgField';
@@ -58,6 +60,7 @@ import { LegalEntityNameField } from './Fields/LegalEntityNameField';
58
60
  import { LegalFormField } from './Fields/LegalFormField';
59
61
  import { LocalitiesField } from './Fields/LocalitiesField';
60
62
  import { MandatoryIncomeField } from './Fields/MandatoryIncome';
63
+ import { MethodObtainField } from './Fields/MethodObtainField';
61
64
  import { MiddleNameField } from './Fields/MiddleNameField';
62
65
  import { NameField } from './Fields/NameField';
63
66
  import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
@@ -177,6 +180,7 @@ export const getField =
177
180
  dulSubdivisionCode: <DulSubdivisionCodeField field={field} input={input} />,
178
181
  dulIssuedBy: <DulIssuedByField field={field} input={input} />,
179
182
  addressRegistration: <AddressField field={field} input={input} />,
183
+ addressCourier: <AddressField field={field} input={input} />,
180
184
  participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
181
185
  retirementIncome: <RetirementIncomeField field={field} input={input} />,
182
186
  otherIncome: <OtherIncomeField field={field} input={input} />,
@@ -197,6 +201,8 @@ export const getField =
197
201
  cardCategory: <CardCategoryField field={field} input={input} />,
198
202
  codeWord: <CodeWordField field={field} input={input} />,
199
203
  confirmationIncome: <ConfirmationIncomeField field={field} input={input} />,
204
+ methodObtain: <MethodObtainField field={field} input={input} />,
205
+ deliveryDate: <DeliveryDateFiels field={field} input={input} />,
200
206
  };
201
207
 
202
208
  return isRenderField({ input, field }) ? (
@@ -84,6 +84,8 @@ export const validatorObj: Record<string, Validator> = {
84
84
  sex: defaultValidator('Укажите свой пол'),
85
85
  addressRegistration: addressDaDataValidator(),
86
86
  organizationAddress: addressDaDataValidator(),
87
+ deliveryDate: defaultValidator('Укажите дату доставки'),
88
+ addressCourier: addressDaDataValidator(),
87
89
  participantDateRegistration: defaultValidator('Укажите дату регистрации'),
88
90
  retirementIncome: defaultValidator(),
89
91
  otherIncome: defaultValidator(),
@@ -98,7 +100,10 @@ export const validatorObj: Record<string, Validator> = {
98
100
  regionRetail: defaultSelectValidator('Выберите филиал банка'),
99
101
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
100
102
  addressMatch: defaultValidator(),
101
- codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
103
+ codeWord: codeWordValidator('Необходимо ввести кодовое слово латиницей'),
104
+ currency: defaultValidator(),
105
+ paymentSystem: defaultValidator(),
106
+ cardCategory: defaultSelectValidator(),
102
107
  confirmationIncome: defaultValidator(),
103
108
  };
104
109