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

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 (605) hide show
  1. package/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +928 -119
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  8. package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  9. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  10. package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  11. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  12. package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  13. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  14. package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  15. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  16. package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  17. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  18. package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  19. package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  20. package/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  21. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  22. package/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  23. package/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  24. package/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  25. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  26. package/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  27. package/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  28. package/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  29. package/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  30. package/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  31. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  32. package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  33. package/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  34. package/bundle/model/InputSectionsType.d.ts +9 -1
  35. package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  36. package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  37. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  38. package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  39. package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  40. package/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  41. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  42. package/dist/api/dadataHints/hintsListsOptions.js +1 -0
  43. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  44. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  45. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  46. package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  47. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  48. package/dist/components/Blocks.js +2 -0
  49. package/dist/components/Blocks.js.map +1 -1
  50. package/dist/components/Blocks.mobile.js +2 -0
  51. package/dist/components/Blocks.mobile.js.map +1 -1
  52. package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  53. package/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  54. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  55. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  56. package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  57. package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  58. package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  59. package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  60. package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  61. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  62. package/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  63. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  64. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  65. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  66. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  67. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  68. package/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  69. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  70. package/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  71. package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  72. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  73. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  74. package/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  75. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  76. package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  77. package/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  78. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  79. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  80. package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  81. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  82. package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  83. package/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  84. package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  85. package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  86. package/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  87. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  88. package/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  89. package/dist/components/CreditCardForm/formStateMap.js +93 -0
  90. package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  91. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  92. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  93. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  94. package/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  95. package/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  96. package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  97. package/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  98. package/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  99. package/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  100. package/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  101. package/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  102. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  103. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  104. package/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  105. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  106. package/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  107. package/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  108. package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  109. package/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  110. package/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  111. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  112. package/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  113. package/dist/components/CreditCardForm/renderInfo.js +12 -0
  114. package/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  115. package/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  116. package/dist/components/CreditCardForm/renderInputs.js +6 -0
  117. package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  118. package/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  119. package/dist/components/CreditCardForm/renderStep.js +19 -0
  120. package/dist/components/CreditCardForm/renderStep.js.map +1 -0
  121. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  122. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  123. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  124. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  125. package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
  126. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  127. package/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  128. package/dist/components/CreditForm/FailedStatusContent.js +1 -1
  129. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  130. package/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  131. package/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  132. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  133. package/dist/model/InputSectionsType.d.ts +9 -1
  134. package/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  135. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  136. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  137. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  138. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  139. package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  140. package/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  141. package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  142. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  143. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  144. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  145. package/dist/ui-kit/FormField/getField.js +5 -0
  146. package/dist/ui-kit/FormField/getField.js.map +1 -1
  147. package/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  148. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  149. package/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  150. package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  151. package/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  152. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  153. package/lib/api/dadataHints/hintsListsOptions.js +1 -0
  154. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  155. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  156. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  157. package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  158. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  159. package/lib/components/Blocks.js +2 -0
  160. package/lib/components/Blocks.js.map +1 -1
  161. package/lib/components/Blocks.mobile.js +2 -0
  162. package/lib/components/Blocks.mobile.js.map +1 -1
  163. package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  164. package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +6 -0
  165. package/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  166. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  167. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  168. package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  169. package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  170. package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  171. package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  172. package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  173. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  174. package/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  175. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  176. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  177. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  178. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  179. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  180. package/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  181. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  182. package/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  183. package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  184. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  185. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  186. package/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  187. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  188. package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  189. package/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  190. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  191. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  192. package/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  193. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  194. package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  195. package/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  196. package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  197. package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  198. package/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  199. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  200. package/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  201. package/lib/components/CreditCardForm/formStateMap.js +91 -0
  202. package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  203. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  204. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  205. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  206. package/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  207. package/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  208. package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  209. package/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  210. package/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  211. package/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  212. package/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  213. package/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  214. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  215. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  216. package/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  217. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  218. package/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  219. package/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  220. package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  221. package/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  222. package/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  223. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  224. package/lib/components/CreditCardForm/renderInfo.d.ts +2 -0
  225. package/lib/components/CreditCardForm/renderInfo.js +9 -0
  226. package/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  227. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -0
  228. package/lib/components/CreditCardForm/renderInputs.js +3 -0
  229. package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  230. package/lib/components/CreditCardForm/renderStep.d.ts +12 -0
  231. package/lib/components/CreditCardForm/renderStep.js +16 -0
  232. package/lib/components/CreditCardForm/renderStep.js.map +1 -0
  233. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  234. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  235. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  236. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  237. package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
  238. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  239. package/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  240. package/lib/components/CreditForm/FailedStatusContent.js +1 -1
  241. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  242. package/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  243. package/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  244. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  245. package/lib/model/InputSectionsType.d.ts +9 -1
  246. package/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  247. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  248. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  249. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  250. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  251. package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  252. package/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  253. package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  254. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  255. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  256. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  257. package/lib/ui-kit/FormField/getField.js +5 -0
  258. package/lib/ui-kit/FormField/getField.js.map +1 -1
  259. package/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  260. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  261. package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  262. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  263. package/mobile/bundle/bundle.umd.js +924 -115
  264. package/mobile/bundle/bundle.umd.min.js +1 -1
  265. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  266. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  267. package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  268. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  269. package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  270. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  271. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  272. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  273. package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  274. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  275. package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  276. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  277. package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  278. package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  279. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  280. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  281. package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  282. package/mobile/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  283. package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  284. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  285. package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  286. package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  287. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  288. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  289. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  290. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  291. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  292. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  293. package/mobile/bundle/model/InputSectionsType.d.ts +9 -1
  294. package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  295. package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  296. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  297. package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  298. package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  299. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  300. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  301. package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
  302. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  303. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  304. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  305. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  306. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  307. package/mobile/dist/components/Blocks.js +2 -0
  308. package/mobile/dist/components/Blocks.js.map +1 -1
  309. package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  310. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  311. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  312. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  313. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  314. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  315. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  316. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  317. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  318. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  319. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  320. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  321. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  322. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  323. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  324. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  325. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  326. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  327. package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  328. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  329. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  330. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  331. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  332. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  333. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  334. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  335. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  336. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  337. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  338. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  339. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  340. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  341. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  342. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  343. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  344. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  345. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  346. package/mobile/dist/components/CreditCardForm/formStateMap.js +93 -0
  347. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  348. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  349. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  350. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  351. package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  352. package/mobile/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  353. package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  354. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  355. package/mobile/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  356. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  357. package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  358. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  359. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  360. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  361. package/mobile/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  362. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  363. package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  364. package/mobile/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  365. package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  366. package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  367. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  368. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  369. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  370. package/mobile/dist/components/CreditCardForm/renderInfo.js +12 -0
  371. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  372. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  373. package/mobile/dist/components/CreditCardForm/renderInputs.js +6 -0
  374. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  375. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  376. package/mobile/dist/components/CreditCardForm/renderStep.js +19 -0
  377. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
  378. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  379. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  380. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  381. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  382. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
  383. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  384. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  385. package/mobile/dist/components/CreditForm/FailedStatusContent.js +1 -1
  386. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  387. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  388. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  389. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  390. package/mobile/dist/model/InputSectionsType.d.ts +9 -1
  391. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  392. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  393. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  394. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  395. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  396. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  397. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  398. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  399. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  400. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  401. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  402. package/mobile/dist/ui-kit/FormField/getField.js +5 -0
  403. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  404. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  405. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  406. package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  407. package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  408. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  409. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  410. package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
  411. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  412. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  413. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  414. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  415. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  416. package/mobile/lib/components/Blocks.js +2 -0
  417. package/mobile/lib/components/Blocks.js.map +1 -1
  418. package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  419. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  420. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  421. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  422. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  423. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  424. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  425. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  426. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  427. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  428. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  429. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  430. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  431. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  432. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  433. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  434. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  435. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  436. package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  437. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  438. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  439. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  440. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  441. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  442. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  443. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  444. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  445. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  446. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  447. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  448. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  449. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  450. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  451. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  452. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  453. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  454. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  455. package/mobile/lib/components/CreditCardForm/formStateMap.js +91 -0
  456. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  457. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  458. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  459. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  460. package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  461. package/mobile/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  462. package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  463. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  464. package/mobile/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  465. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  466. package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  467. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  468. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  469. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  470. package/mobile/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  471. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  472. package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  473. package/mobile/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  474. package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  475. package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  476. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  477. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  478. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +3 -0
  479. package/mobile/lib/components/CreditCardForm/renderInfo.js +9 -0
  480. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  481. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +3 -0
  482. package/mobile/lib/components/CreditCardForm/renderInputs.js +3 -0
  483. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  484. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +13 -0
  485. package/mobile/lib/components/CreditCardForm/renderStep.js +16 -0
  486. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
  487. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  488. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  489. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  490. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  491. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
  492. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  493. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  494. package/mobile/lib/components/CreditForm/FailedStatusContent.js +1 -1
  495. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  496. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  497. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  498. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  499. package/mobile/lib/model/InputSectionsType.d.ts +9 -1
  500. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  501. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  502. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  503. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  504. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  505. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  506. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  507. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  508. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  509. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  510. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  511. package/mobile/lib/ui-kit/FormField/getField.js +5 -0
  512. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  513. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  514. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  515. package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
  516. package/mobile/src/api/RetailAPI/updateUserTask.ts +4 -0
  517. package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
  518. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  519. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  520. package/mobile/src/components/Blocks.ts +2 -0
  521. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  522. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  523. package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  524. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  525. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  526. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  527. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  528. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  529. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  530. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  531. package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  532. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  533. package/mobile/src/components/CreditCardForm/formStateMap.tsx +165 -0
  534. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  535. package/mobile/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  536. package/mobile/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  537. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  538. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  539. package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  540. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  541. package/mobile/src/components/CreditCardForm/renderInfo.tsx +10 -0
  542. package/mobile/src/components/CreditCardForm/renderInputs.tsx +5 -0
  543. package/mobile/src/components/CreditCardForm/renderStep.tsx +43 -0
  544. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  545. package/mobile/src/components/CreditForm/CreditForm.tsx +2 -4
  546. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
  547. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -1
  548. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  549. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  550. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  551. package/mobile/src/model/InputSectionsType.ts +13 -1
  552. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  553. package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  554. package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  555. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  556. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  557. package/mobile/src/ui-kit/FormField/getField.tsx +6 -0
  558. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
  559. package/package.json +2 -2
  560. package/src/api/RetailAPI/getTaskStatus.ts +1 -1
  561. package/src/api/RetailAPI/updateUserTask.ts +4 -0
  562. package/src/api/dadataHints/hintsListsOptions.ts +1 -0
  563. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  564. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  565. package/src/components/Blocks.mobile.ts +2 -0
  566. package/src/components/Blocks.ts +2 -0
  567. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -0
  568. package/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  569. package/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  570. package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  571. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  572. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  573. package/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  574. package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  575. package/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  576. package/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  577. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  578. package/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  579. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  580. package/src/components/CreditCardForm/formStateMap.tsx +165 -0
  581. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  582. package/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  583. package/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  584. package/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  585. package/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  586. package/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  587. package/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  588. package/src/components/CreditCardForm/renderInfo.tsx +10 -0
  589. package/src/components/CreditCardForm/renderInputs.tsx +5 -0
  590. package/src/components/CreditCardForm/renderStep.tsx +43 -0
  591. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  592. package/src/components/CreditForm/CreditForm.tsx +2 -4
  593. package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
  594. package/src/components/CreditForm/CreditFormStep.tsx +1 -1
  595. package/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  596. package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  597. package/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  598. package/src/model/InputSectionsType.ts +13 -1
  599. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  600. package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  601. package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  602. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  603. package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  604. package/src/ui-kit/FormField/getField.tsx +6 -0
  605. package/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.651",
3
+ "version": "0.14.652",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -210,7 +210,7 @@
210
210
  "path": "lib/common.css"
211
211
  },
212
212
  {
213
- "limit": "87 kB",
213
+ "limit": "89 kB",
214
214
  "path": "bundle/bundle.umd.min.js"
215
215
  }
216
216
  ],
@@ -12,5 +12,5 @@ interface GetTaskStatusResponse {
12
12
  taskId: number;
13
13
  }
14
14
 
15
- export const getTaskStatus = (body: { taskId: number }) =>
15
+ export const getTaskStatus = (body: { taskId: number | null }) =>
16
16
  doRequest<GetTaskStatusResponse>('/user-data/getTaskStatus', 'POST', body);
@@ -96,6 +96,10 @@ export type Participant = {
96
96
  key: string;
97
97
  value: string;
98
98
  };
99
+ currencyCode?: string;
100
+ paymentSystemTypeCd?: string;
101
+ classCard?: Option;
102
+ codeWord?: string;
99
103
  };
100
104
 
101
105
  export type UpdateUserTaskBody = {
@@ -64,6 +64,7 @@ export const hintsListsOptions: HintsListOptions = {
64
64
  addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
65
65
  addressFact: ADDRESS_HINTS_LIST_OPTIONS,
66
66
  organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
67
+ addressCourier: ADDRESS_HINTS_LIST_OPTIONS,
67
68
  };
68
69
 
69
70
  export type HintOption = {
@@ -104,17 +104,6 @@ export type TypeFormFieldDef =
104
104
  */
105
105
  export type FormColumnsCount = 1 | 2;
106
106
 
107
- /** @hidden */
108
- export type EndpointType = 'lead' | 'sendcorporatelead';
109
-
110
- /**
111
- * @title Секция полей ввода
112
- */
113
- export type SectionsProps = TitleProps & {
114
- columns?: FormColumnsCount;
115
- inputs?: FieldDef[];
116
- };
117
-
118
107
  /**
119
108
  * @title Форма заявки настраиваемая
120
109
  */
@@ -125,6 +125,10 @@ export interface FormState extends FormConsents {
125
125
  partInBusiness?: number;
126
126
  addressMatch?: boolean;
127
127
  confirmationIncome?: Option;
128
+ currency?: string;
129
+ paymentSystem?: string;
130
+ cardCategory?: { key: ''; text: '' };
131
+ codeWord?: string;
128
132
  esiaAccountTypeCd?: Option;
129
133
  }
130
134
 
@@ -160,6 +164,10 @@ const initialFormState = {
160
164
  consentInformFlg: false,
161
165
  addressRegistration: '',
162
166
  participantDateRegistration: undefined,
167
+ currency: '',
168
+ paymentSystem: '',
169
+ cardCategory: { key: '', text: '' },
170
+ codeWord: '',
163
171
  };
164
172
 
165
173
  export const getInitialFormState = (
@@ -19,6 +19,7 @@ import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
19
19
  import { CarouselLinks } from './CarouselLinks/CarouselLinks';
20
20
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
21
21
  import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
22
+ import { CreditCardForm } from './CreditCardForm/CreditCardForm';
22
23
  import { CreditForm } from './CreditForm/CreditForm';
23
24
  import { DepositFiltration } from './DepositFiltration/DepositFiltration';
24
25
  import { Depository } from './Depository/Depository';
@@ -69,6 +70,7 @@ export const Blocks: BlocksRegistry = {
69
70
  CarouselLinks,
70
71
  CarouselRecommendationCard,
71
72
  CarouselTariffsCard,
73
+ CreditCardForm,
72
74
  CreditForm,
73
75
  DepositFiltration,
74
76
  Depository,
@@ -21,6 +21,7 @@ import { CarouselLinks } from './CarouselLinks/CarouselLinks';
21
21
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
22
22
  import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
23
23
  import { ContactsBlock } from './ContactsBlock/ContactsBlock';
24
+ import { CreditCardForm } from './CreditCardForm/CreditCardForm';
24
25
  import { CreditForm } from './CreditForm/CreditForm';
25
26
  import { DepositFiltration } from './DepositFiltration/DepositFiltration';
26
27
  import { Depository } from './Depository/Depository';
@@ -77,6 +78,7 @@ export const Blocks: BlocksRegistry = {
77
78
  CarouselRecommendationCard,
78
79
  CarouselTariffsCard,
79
80
  ContactsBlock,
81
+ CreditCardForm,
80
82
  CreditForm,
81
83
  DepositFiltration,
82
84
  Depository,
@@ -0,0 +1,14 @@
1
+ import '../../setup-fixture';
2
+ import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
3
+ import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
4
+ import { CreditCardForm } from './CreditCardForm';
5
+
6
+ export default {
7
+ default: (
8
+ <div>
9
+ <CreditCardForm className="col-span-12" />
10
+ <PopupManager />
11
+ <DialogManager />
12
+ </div>
13
+ ),
14
+ };
@@ -0,0 +1,69 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { type SectionsProps } from '../../model/InputSectionsType';
4
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
6
+ import { style } from '../../utils/style';
7
+ import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
8
+ import { type CreditCardFormContent } from './CreditCardFormContent';
9
+ import { CreditCardFormProgress } from './CreditCardFormProgress';
10
+ import { CreditCardFormStep } from './CreditCardFormStep';
11
+ import { stepsSectionsMap } from './creditCardFormStepsData';
12
+
13
+ interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
14
+
15
+ const WIZARD_STEPS = 6;
16
+
17
+ const WIZARD_TITLES = [
18
+ 'Параметры карты',
19
+ 'Персональные данные',
20
+ 'Данные о трудоустройстве',
21
+ 'Данные о доходах и расходах',
22
+ 'Дополнительные сведения',
23
+ 'Выбор способа получения',
24
+ ];
25
+
26
+ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...rest }) => {
27
+ const [step, setStep] = useState(0);
28
+
29
+ const handleNextStep = useCallback(() => {
30
+ setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
31
+ }, []);
32
+
33
+ const handlePrevStep = useCallback(() => {
34
+ //TODO search hook - 1,
35
+ setStep((_) => Math.max(_ - 1, 0));
36
+ }, []);
37
+
38
+ const sections = useMemo(() => stepsSectionsMap[step], [step]);
39
+
40
+ const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
41
+
42
+ const [isFormFinished, setIsFormFinished] = useState(false);
43
+
44
+ return (
45
+ <BlockWrapper className={style('bg-transparent', className)} defaultPadding="p-0" {...rest}>
46
+ <div className="container grid grid-cols-12">
47
+ {isFormFinished ? null : (
48
+ <CreditCardFormProgress
49
+ stepsTitles={WIZARD_TITLES}
50
+ step={step}
51
+ totalSteps={WIZARD_STEPS}
52
+ />
53
+ )}
54
+ <div className="py-lg px-5xl mt-2xs bg-white col-span-12">
55
+ <CreditCardFormStep
56
+ key={String(step)}
57
+ step={step}
58
+ inputs={inputs}
59
+ sections={sections}
60
+ onNextStep={handleNextStep}
61
+ onPrevStep={handlePrevStep}
62
+ isFormFinished={isFormFinished}
63
+ finishForm={setIsFormFinished}
64
+ />
65
+ </div>
66
+ </div>
67
+ </BlockWrapper>
68
+ );
69
+ });
@@ -0,0 +1,27 @@
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { type TitleProps } from '../../model/HeadlineType';
3
+ import { type InputSectionsType } from '../../model/InputSectionsType';
4
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
+ import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
6
+ import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
7
+ import { type FormStateMap } from './formStateMap';
8
+
9
+ /** @hidden */
10
+ export interface RenderInputsProps {
11
+ inputs?: FieldDef[];
12
+ field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
13
+ }
14
+
15
+ export type CreditCardSectionsProps = SectionsProps & {
16
+ type?: 'courier' | 'office';
17
+ };
18
+
19
+ /**
20
+ * @title Форма заявки на потребительский кредит настраиваемая
21
+ */
22
+ export type CreditCardFormContent = UniBlockContent &
23
+ TitleProps &
24
+ InputSectionsType & {
25
+ /** @title Номер кредитной программы */
26
+ programId?: string;
27
+ };
@@ -0,0 +1,27 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { ProgressBar } from '../../ui-kit/ProgressBar/ProgressBar';
4
+
5
+ export interface CreditCardFormProgressProps {
6
+ step: number;
7
+ totalSteps?: number;
8
+ stepsTitles?: string[];
9
+ }
10
+
11
+ export const CreditCardFormProgress = JSX<CreditCardFormProgressProps>(
12
+ ({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
13
+ const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
14
+
15
+ return (
16
+ <div className="py-lg px-5xl bg-white col-span-12">
17
+ <div>
18
+ <span className="font-bold mr-s">
19
+ Шаг {step + 1} из {totalSteps}.
20
+ </span>
21
+ {stepsTitles[step] || null}
22
+ <ProgressBar step={progress} showPercentage={false} />
23
+ </div>
24
+ </div>
25
+ );
26
+ },
27
+ );
@@ -0,0 +1,119 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useMobileMode } from '../../hooks/useMobileMode';
3
+ import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
4
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
+ import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
6
+ import { InfoCard, type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
7
+ import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
8
+ import { Text } from '../../ui-kit/Text/Text';
9
+ import { TimerCircle } from '../../ui-kit/TimerCircle/TimerCircle';
10
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
11
+ import { style } from '../../utils/style';
12
+ import { Headline } from '../Headline/Headline';
13
+
14
+ type CreditCardFormStatusProps = UniBlockProps & {
15
+ title?: string;
16
+ description?: string;
17
+ interval?: number;
18
+ sectionInfoTitle?: string;
19
+ sectionInfo?: (LabelProps & DescriptionProps)[];
20
+ sectionAdditionalTitle?: string;
21
+ sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
22
+ buttonText?: string;
23
+ infoCard?: InfoCardProps;
24
+ };
25
+
26
+ export const CreditCardFormStatus = JSX<CreditCardFormStatusProps>(
27
+ ({
28
+ title,
29
+ description: dsc,
30
+ infoCard,
31
+ sectionInfoTitle,
32
+ sectionInfo,
33
+ sectionAdditionalTitle,
34
+ sectionInfoAdditional,
35
+ buttonText,
36
+ interval,
37
+ ...props
38
+ }) => (
39
+ <BlockWrapper {...props}>
40
+ <div className="flex flex-col md:flex-row items-center">
41
+ <Headline
42
+ headlineVersion="M"
43
+ title={title}
44
+ description={dsc}
45
+ align="text-left"
46
+ padding="p-xl"
47
+ className="w-full"
48
+ />
49
+ {interval ? <TimerCircle interval={interval} /> : null}
50
+ </div>
51
+ <SectionInfo title={sectionInfoTitle} items={sectionInfo} />
52
+ <SectionInfo title={sectionAdditionalTitle} items={sectionInfoAdditional} countColumns />
53
+ {infoCard?.__html ? (
54
+ <InfoCard
55
+ __html={infoCard?.__html}
56
+ icon={infoCard?.icon}
57
+ link={{
58
+ text: infoCard?.link?.text,
59
+ }}
60
+ />
61
+ ) : null}
62
+ {buttonText ? (
63
+ <LinkButton href="/natural" text={buttonText} version="primary" className="w-full mt-lg" />
64
+ ) : null}
65
+ </BlockWrapper>
66
+ ),
67
+ );
68
+
69
+ const SectionInfo = ({
70
+ title,
71
+ items,
72
+ countColumns = false,
73
+ }: {
74
+ title?: string;
75
+ items?: (LabelProps & DescriptionProps)[];
76
+ countColumns?: boolean;
77
+ }) => {
78
+ const isMobile = useMobileMode();
79
+
80
+ if (!items) {
81
+ return null;
82
+ }
83
+
84
+ return (
85
+ <div>
86
+ <hr className="w-full h-px bg-main-gray border-0" />
87
+ <div className="p-xl">
88
+ {title ? (
89
+ <Text color="text-primary-text" size="text-h5">
90
+ <div className={style({ 'mb-m': Boolean(title) })}>{title}</div>
91
+ </Text>
92
+ ) : null}
93
+ {items ? (
94
+ <div
95
+ className={style(
96
+ 'grid grid-cols-1 gap-m',
97
+ inputColumnStyles(countColumns || isMobile ? 1 : 2),
98
+ )}
99
+ >
100
+ {items.map((item, index) => (
101
+ <div key={index}>{renderItem(item)}</div>
102
+ ))}
103
+ </div>
104
+ ) : null}
105
+ </div>
106
+ </div>
107
+ );
108
+ };
109
+
110
+ const renderItem = ({ label, description }: LabelProps & DescriptionProps) => (
111
+ <div className="flex flex-col">
112
+ <Text color="text-secondary-text" size="text-l">
113
+ {label}
114
+ </Text>
115
+ <Text color="text-primary-text" size="text-xl">
116
+ {description}
117
+ </Text>
118
+ </div>
119
+ );
@@ -0,0 +1,48 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { getTaskStatus, STATUS_TYPE } from '../../api/RetailAPI/getTaskStatus';
4
+ import { sendSignalToProcess, type SignalType } from '../../api/RetailAPI/sendSignalToProcess';
5
+ import { useLocalStorage } from '../../hooks/useLocalStorage';
6
+ import { FailedStatusContent } from './FailedStatusContent';
7
+ import { PendingStatusContent } from './PendingStatusContent';
8
+ import { ReworkStatusContent } from './ReworkStatusContent';
9
+ import { SuccessStatusContent } from './SuccessStatusContent';
10
+
11
+ const SIGNAL_TYPES: SignalType[] = [
12
+ 'CREATE_APPLICATION_SHORT_SIGNAL',
13
+ 'CREATE_APPLICATION_LOAN_V3_SIGNAL',
14
+ ];
15
+
16
+ export const CreditCardFormStatusTracker = JSX(() => {
17
+ const [status, setStatus] = useState(STATUS_TYPE.process);
18
+ const [taskId] = useLocalStorage<number>('taskId');
19
+
20
+ useEffect(() => {
21
+ for (const signalType of SIGNAL_TYPES) {
22
+ sendSignalToProcess({ signalType, taskId });
23
+ }
24
+
25
+ const trackStatus = () =>
26
+ getTaskStatus({ taskId }).then((res) => {
27
+ if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
28
+ clearInterval(pullingInterval);
29
+ setStatus(res.statusCd);
30
+ }
31
+ });
32
+
33
+ const pullingInterval = setInterval(trackStatus, 30000);
34
+ }, []);
35
+
36
+ return renderStatus(status);
37
+ });
38
+
39
+ const renderStatus = (status: STATUS_TYPE) => {
40
+ const statusesMap: Record<STATUS_TYPE, JSX.Element> = {
41
+ IN_PROCESS: <PendingStatusContent />,
42
+ FAILED: <FailedStatusContent />,
43
+ OK: <SuccessStatusContent />,
44
+ REWORK: <ReworkStatusContent />,
45
+ };
46
+
47
+ return statusesMap[status] || null;
48
+ };