@redneckz/wildless-cms-uni-blocks 0.14.608 → 0.14.616

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 (676) hide show
  1. package/bundle/api/RetailAPI/updateUserProfile.d.ts +2 -0
  2. package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +483 -177
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  7. package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  8. package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  9. package/bundle/components/CreditForm/CreditForm.d.ts +2 -9
  10. package/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
  11. package/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
  12. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  13. package/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
  14. package/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
  15. package/bundle/components/CreditForm/renderInputs.d.ts +3 -0
  16. package/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
  17. package/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  18. package/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  19. package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  20. package/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
  21. package/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  22. package/bundle/ui-kit/DialogManager/openDocument.d.ts +2 -0
  23. package/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  24. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  25. package/bundle/ui-kit/FormField/validators.d.ts +1 -0
  26. package/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  27. package/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
  28. package/bundle/ui-kit/Input/InputProps.d.ts +2 -1
  29. package/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  30. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  31. package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  32. package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  33. package/bundle/utils/normalizeWithMask.d.ts +1 -0
  34. package/dist/api/RetailAPI/updateUserProfile.d.ts +2 -0
  35. package/dist/api/RetailAPI/updateUserProfile.js +1 -1
  36. package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
  37. package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  38. package/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  39. package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  40. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  41. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  42. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  43. package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  44. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  45. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
  46. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  47. package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  48. package/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
  49. package/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  50. package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  51. package/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  52. package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  53. package/dist/components/Blocks.js +2 -0
  54. package/dist/components/Blocks.js.map +1 -1
  55. package/dist/components/CreditForm/CreditForm.d.ts +2 -9
  56. package/dist/components/CreditForm/CreditForm.js +11 -19
  57. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  58. package/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
  59. package/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
  60. package/dist/components/CreditForm/CreditFormStep.js +33 -0
  61. package/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  62. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  63. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
  64. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  65. package/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
  66. package/dist/components/CreditForm/creditFormStepsData.js +31 -26
  67. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  68. package/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
  69. package/dist/components/CreditForm/getInitialFormState.js +77 -0
  70. package/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  71. package/dist/components/CreditForm/renderInputs.d.ts +3 -0
  72. package/dist/components/CreditForm/renderInputs.js +8 -0
  73. package/dist/components/CreditForm/renderInputs.js.map +1 -0
  74. package/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
  75. package/dist/components/CreditForm/useCreditFormApi.js +28 -0
  76. package/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
  77. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
  78. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  79. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  80. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +44 -0
  81. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  82. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  83. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +49 -0
  84. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  85. package/dist/ui-kit/DatePicker/DatePicker.js +16 -5
  86. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  87. package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  88. package/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
  89. package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  90. package/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
  91. package/dist/ui-kit/DatePicker/getYears.js +3 -3
  92. package/dist/ui-kit/DatePicker/getYears.js.map +1 -1
  93. package/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  94. package/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  95. package/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  96. package/dist/ui-kit/DialogManager/openDocument.d.ts +2 -0
  97. package/dist/ui-kit/DialogManager/openDocument.js +11 -0
  98. package/dist/ui-kit/DialogManager/openDocument.js.map +1 -0
  99. package/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
  100. package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  101. package/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  102. package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  103. package/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  104. package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  105. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  106. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  107. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  108. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  109. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  110. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  111. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  112. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  113. package/dist/ui-kit/FormField/Fields/InnField.js +2 -2
  114. package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  115. package/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  116. package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  117. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  118. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  119. package/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  120. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
  121. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  122. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  123. package/dist/ui-kit/FormField/SelectField.js +1 -1
  124. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  125. package/dist/ui-kit/FormField/getField.js +2 -0
  126. package/dist/ui-kit/FormField/getField.js.map +1 -1
  127. package/dist/ui-kit/FormField/getObjectValidator.js +6 -5
  128. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  129. package/dist/ui-kit/FormField/validators.d.ts +1 -0
  130. package/dist/ui-kit/FormField/validators.js +3 -1
  131. package/dist/ui-kit/FormField/validators.js.map +1 -1
  132. package/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  133. package/dist/ui-kit/InfoCard/InfoCard.js +2 -1
  134. package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  135. package/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
  136. package/dist/ui-kit/Input/InputNumberControl.js +10 -0
  137. package/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
  138. package/dist/ui-kit/Input/InputProps.d.ts +2 -1
  139. package/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  140. package/dist/ui-kit/InputNumber/InputNumber.js +12 -0
  141. package/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
  142. package/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
  143. package/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  144. package/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
  145. package/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  146. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  147. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  148. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
  149. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
  150. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  151. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
  152. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  153. package/dist/utils/normalizeWithMask.d.ts +1 -0
  154. package/dist/utils/normalizeWithMask.js +20 -0
  155. package/dist/utils/normalizeWithMask.js.map +1 -0
  156. package/lib/api/RetailAPI/updateUserProfile.d.ts +2 -0
  157. package/lib/api/RetailAPI/updateUserProfile.js +1 -1
  158. package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
  159. package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  160. package/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  161. package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  162. package/lib/common.css +1 -1
  163. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  164. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  165. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  166. package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  167. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  168. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
  169. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  170. package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  171. package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +9 -0
  172. package/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
  173. package/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  174. package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  175. package/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  176. package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  177. package/lib/components/Blocks.js +2 -0
  178. package/lib/components/Blocks.js.map +1 -1
  179. package/lib/components/CreditForm/CreditForm.d.ts +2 -9
  180. package/lib/components/CreditForm/CreditForm.js +12 -20
  181. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  182. package/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
  183. package/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
  184. package/lib/components/CreditForm/CreditFormStep.js +31 -0
  185. package/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  186. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  187. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
  188. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  189. package/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
  190. package/lib/components/CreditForm/creditFormStepsData.js +31 -26
  191. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  192. package/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
  193. package/lib/components/CreditForm/getInitialFormState.js +74 -0
  194. package/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  195. package/lib/components/CreditForm/renderInputs.d.ts +2 -0
  196. package/lib/components/CreditForm/renderInputs.js +5 -0
  197. package/lib/components/CreditForm/renderInputs.js.map +1 -0
  198. package/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
  199. package/lib/components/CreditForm/useCreditFormApi.js +25 -0
  200. package/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
  201. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
  202. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  203. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  204. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.d.ts +6 -0
  205. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
  206. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  207. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  208. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +46 -0
  209. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  210. package/lib/ui-kit/DatePicker/DatePicker.js +16 -5
  211. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  212. package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  213. package/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
  214. package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  215. package/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
  216. package/lib/ui-kit/DatePicker/getYears.js +1 -1
  217. package/lib/ui-kit/DatePicker/getYears.js.map +1 -1
  218. package/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  219. package/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  220. package/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  221. package/lib/ui-kit/DialogManager/openDocument.d.ts +2 -0
  222. package/lib/ui-kit/DialogManager/openDocument.js +8 -0
  223. package/lib/ui-kit/DialogManager/openDocument.js.map +1 -0
  224. package/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
  225. package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  226. package/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  227. package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  228. package/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  229. package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  230. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  231. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  232. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  233. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  234. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  235. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  236. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  237. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  238. package/lib/ui-kit/FormField/Fields/InnField.js +2 -2
  239. package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  240. package/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  241. package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  242. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  243. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  244. package/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  245. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
  246. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  247. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  248. package/lib/ui-kit/FormField/SelectField.js +1 -1
  249. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  250. package/lib/ui-kit/FormField/getField.js +2 -0
  251. package/lib/ui-kit/FormField/getField.js.map +1 -1
  252. package/lib/ui-kit/FormField/getObjectValidator.js +7 -6
  253. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  254. package/lib/ui-kit/FormField/validators.d.ts +1 -0
  255. package/lib/ui-kit/FormField/validators.js +1 -0
  256. package/lib/ui-kit/FormField/validators.js.map +1 -1
  257. package/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  258. package/lib/ui-kit/InfoCard/InfoCard.js +2 -1
  259. package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  260. package/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
  261. package/lib/ui-kit/Input/InputNumberControl.js +8 -0
  262. package/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
  263. package/lib/ui-kit/Input/InputProps.d.ts +2 -1
  264. package/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  265. package/lib/ui-kit/InputNumber/InputNumber.js +10 -0
  266. package/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
  267. package/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
  268. package/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  269. package/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
  270. package/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  271. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  272. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  273. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
  274. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
  275. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  276. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
  277. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  278. package/lib/utils/normalizeWithMask.d.ts +1 -0
  279. package/lib/utils/normalizeWithMask.js +17 -0
  280. package/lib/utils/normalizeWithMask.js.map +1 -0
  281. package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +2 -0
  282. package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  283. package/mobile/bundle/bundle.umd.js +462 -177
  284. package/mobile/bundle/bundle.umd.min.js +1 -1
  285. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  286. package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  287. package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  288. package/mobile/bundle/components/CreditForm/CreditForm.d.ts +2 -9
  289. package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
  290. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
  291. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  292. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
  293. package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
  294. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +3 -0
  295. package/mobile/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
  296. package/mobile/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  297. package/mobile/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  298. package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  299. package/mobile/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
  300. package/mobile/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  301. package/mobile/bundle/ui-kit/DialogManager/openDocument.d.ts +2 -0
  302. package/mobile/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  303. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  304. package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
  305. package/mobile/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  306. package/mobile/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
  307. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +2 -1
  308. package/mobile/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  309. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  310. package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  311. package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  312. package/mobile/bundle/utils/normalizeWithMask.d.ts +1 -0
  313. package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +2 -0
  314. package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
  315. package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
  316. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  317. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  318. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  319. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  320. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  321. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  322. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  323. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  324. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
  325. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  326. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  327. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
  328. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  329. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  330. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  331. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  332. package/mobile/dist/components/CreditForm/CreditForm.d.ts +2 -9
  333. package/mobile/dist/components/CreditForm/CreditForm.js +11 -19
  334. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  335. package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
  336. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
  337. package/mobile/dist/components/CreditForm/CreditFormStep.js +33 -0
  338. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  339. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  340. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
  341. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  342. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
  343. package/mobile/dist/components/CreditForm/creditFormStepsData.js +31 -26
  344. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  345. package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
  346. package/mobile/dist/components/CreditForm/getInitialFormState.js +77 -0
  347. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  348. package/mobile/dist/components/CreditForm/renderInputs.d.ts +3 -0
  349. package/mobile/dist/components/CreditForm/renderInputs.js +8 -0
  350. package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -0
  351. package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
  352. package/mobile/dist/components/CreditForm/useCreditFormApi.js +28 -0
  353. package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
  354. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
  355. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  356. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  357. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +44 -0
  358. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  359. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  360. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +49 -0
  361. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  362. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +16 -5
  363. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  364. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  365. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
  366. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  367. package/mobile/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
  368. package/mobile/dist/ui-kit/DatePicker/getYears.js +3 -3
  369. package/mobile/dist/ui-kit/DatePicker/getYears.js.map +1 -1
  370. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  371. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  372. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  373. package/mobile/dist/ui-kit/DialogManager/openDocument.d.ts +2 -0
  374. package/mobile/dist/ui-kit/DialogManager/openDocument.js +11 -0
  375. package/mobile/dist/ui-kit/DialogManager/openDocument.js.map +1 -0
  376. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
  377. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  378. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  379. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  380. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  381. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  382. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  383. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  384. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  385. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  386. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  387. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  388. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  389. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  390. package/mobile/dist/ui-kit/FormField/Fields/InnField.js +2 -2
  391. package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  392. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  393. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  394. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  395. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  396. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  397. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
  398. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  399. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  400. package/mobile/dist/ui-kit/FormField/SelectField.js +1 -1
  401. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  402. package/mobile/dist/ui-kit/FormField/getField.js +2 -0
  403. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  404. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -5
  405. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  406. package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
  407. package/mobile/dist/ui-kit/FormField/validators.js +3 -1
  408. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  409. package/mobile/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  410. package/mobile/dist/ui-kit/InfoCard/InfoCard.js +2 -1
  411. package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  412. package/mobile/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
  413. package/mobile/dist/ui-kit/Input/InputNumberControl.js +10 -0
  414. package/mobile/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
  415. package/mobile/dist/ui-kit/Input/InputProps.d.ts +2 -1
  416. package/mobile/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  417. package/mobile/dist/ui-kit/InputNumber/InputNumber.js +12 -0
  418. package/mobile/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
  419. package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
  420. package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  421. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
  422. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  423. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  424. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  425. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
  426. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
  427. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  428. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
  429. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  430. package/mobile/dist/utils/normalizeWithMask.d.ts +1 -0
  431. package/mobile/dist/utils/normalizeWithMask.js +20 -0
  432. package/mobile/dist/utils/normalizeWithMask.js.map +1 -0
  433. package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +2 -0
  434. package/mobile/lib/api/RetailAPI/updateUserProfile.js +1 -1
  435. package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
  436. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  437. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  438. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  439. package/mobile/lib/common.css +1 -1
  440. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  441. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  442. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  443. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  444. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  445. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
  446. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  447. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  448. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
  449. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  450. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  451. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  452. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  453. package/mobile/lib/components/CreditForm/CreditForm.d.ts +2 -9
  454. package/mobile/lib/components/CreditForm/CreditForm.js +12 -20
  455. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  456. package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
  457. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
  458. package/mobile/lib/components/CreditForm/CreditFormStep.js +31 -0
  459. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  460. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  461. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
  462. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  463. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
  464. package/mobile/lib/components/CreditForm/creditFormStepsData.js +31 -26
  465. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  466. package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
  467. package/mobile/lib/components/CreditForm/getInitialFormState.js +74 -0
  468. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  469. package/mobile/lib/components/CreditForm/renderInputs.d.ts +3 -0
  470. package/mobile/lib/components/CreditForm/renderInputs.js +5 -0
  471. package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -0
  472. package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
  473. package/mobile/lib/components/CreditForm/useCreditFormApi.js +25 -0
  474. package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
  475. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
  476. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  477. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  478. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
  479. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  480. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  481. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +46 -0
  482. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  483. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +16 -5
  484. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  485. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  486. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
  487. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  488. package/mobile/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
  489. package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
  490. package/mobile/lib/ui-kit/DatePicker/getYears.js.map +1 -1
  491. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  492. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  493. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  494. package/mobile/lib/ui-kit/DialogManager/openDocument.d.ts +2 -0
  495. package/mobile/lib/ui-kit/DialogManager/openDocument.js +8 -0
  496. package/mobile/lib/ui-kit/DialogManager/openDocument.js.map +1 -0
  497. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
  498. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  499. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  500. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  501. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  502. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  503. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  504. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  505. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  506. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  507. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  508. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  509. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  510. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  511. package/mobile/lib/ui-kit/FormField/Fields/InnField.js +2 -2
  512. package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  513. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  514. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  515. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  516. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  517. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  518. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
  519. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  520. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  521. package/mobile/lib/ui-kit/FormField/SelectField.js +1 -1
  522. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  523. package/mobile/lib/ui-kit/FormField/getField.js +2 -0
  524. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  525. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +7 -6
  526. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  527. package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
  528. package/mobile/lib/ui-kit/FormField/validators.js +1 -0
  529. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  530. package/mobile/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  531. package/mobile/lib/ui-kit/InfoCard/InfoCard.js +2 -1
  532. package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  533. package/mobile/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
  534. package/mobile/lib/ui-kit/Input/InputNumberControl.js +8 -0
  535. package/mobile/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
  536. package/mobile/lib/ui-kit/Input/InputProps.d.ts +2 -1
  537. package/mobile/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  538. package/mobile/lib/ui-kit/InputNumber/InputNumber.js +10 -0
  539. package/mobile/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
  540. package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
  541. package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  542. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
  543. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  544. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
  545. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
  546. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
  547. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
  548. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
  549. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
  550. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  551. package/mobile/lib/utils/normalizeWithMask.d.ts +1 -0
  552. package/mobile/lib/utils/normalizeWithMask.js +17 -0
  553. package/mobile/lib/utils/normalizeWithMask.js.map +1 -0
  554. package/mobile/src/api/RetailAPI/updateUserProfile.ts +3 -1
  555. package/mobile/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
  556. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  557. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
  558. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +12 -7
  559. package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
  560. package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
  561. package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
  562. package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
  563. package/mobile/src/components/CreditForm/CreditForm.tsx +36 -56
  564. package/mobile/src/components/CreditForm/CreditFormContent.ts +13 -1
  565. package/mobile/src/components/CreditForm/CreditFormStep.tsx +65 -0
  566. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
  567. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +31 -26
  568. package/mobile/src/components/CreditForm/getInitialFormState.tsx +145 -0
  569. package/mobile/src/components/CreditForm/renderInputs.tsx +6 -0
  570. package/mobile/src/components/CreditForm/useCreditFormApi.tsx +36 -0
  571. package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -16
  572. package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +73 -0
  573. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +58 -0
  574. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
  575. package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
  576. package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
  577. package/mobile/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
  578. package/mobile/src/ui-kit/DialogManager/openDocument.tsx +13 -0
  579. package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
  580. package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
  581. package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
  582. package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
  583. package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
  584. package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
  585. package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
  586. package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
  587. package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
  588. package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
  589. package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
  590. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  591. package/mobile/src/ui-kit/FormField/SelectField.tsx +3 -1
  592. package/mobile/src/ui-kit/FormField/getField.tsx +2 -0
  593. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
  594. package/mobile/src/ui-kit/FormField/validators.ts +5 -0
  595. package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
  596. package/mobile/src/ui-kit/Input/InputNumberControl.tsx +18 -0
  597. package/mobile/src/ui-kit/Input/InputProps.ts +2 -1
  598. package/mobile/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
  599. package/mobile/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
  600. package/mobile/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
  601. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  602. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +4 -4
  603. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
  604. package/mobile/src/utils/normalizeWithMask.ts +23 -0
  605. package/package.json +2 -2
  606. package/src/api/RetailAPI/updateUserProfile.ts +3 -1
  607. package/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
  608. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  609. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
  610. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +12 -7
  611. package/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
  612. package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +129 -0
  613. package/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
  614. package/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
  615. package/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
  616. package/src/components/Blocks.ts +2 -0
  617. package/src/components/CreditForm/CreditForm.fixture.tsx +27 -1
  618. package/src/components/CreditForm/CreditForm.tsx +36 -56
  619. package/src/components/CreditForm/CreditFormContent.ts +13 -1
  620. package/src/components/CreditForm/CreditFormStep.tsx +65 -0
  621. package/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
  622. package/src/components/CreditForm/creditFormStepsData.tsx +31 -26
  623. package/src/components/CreditForm/getInitialFormState.tsx +145 -0
  624. package/src/components/CreditForm/renderInputs.tsx +6 -0
  625. package/src/components/CreditForm/useCreditFormApi.tsx +36 -0
  626. package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -16
  627. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.tsx +7 -0
  628. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +73 -0
  629. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +58 -0
  630. package/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
  631. package/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
  632. package/src/ui-kit/DatePicker/getYears.ts +1 -1
  633. package/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
  634. package/src/ui-kit/DialogManager/openDocument.tsx +13 -0
  635. package/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
  636. package/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
  637. package/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
  638. package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
  639. package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
  640. package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
  641. package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
  642. package/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
  643. package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
  644. package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
  645. package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
  646. package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  647. package/src/ui-kit/FormField/SelectField.tsx +3 -1
  648. package/src/ui-kit/FormField/getField.tsx +2 -0
  649. package/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
  650. package/src/ui-kit/FormField/validators.ts +5 -0
  651. package/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
  652. package/src/ui-kit/Input/InputNumberControl.tsx +18 -0
  653. package/src/ui-kit/Input/InputProps.ts +2 -1
  654. package/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
  655. package/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
  656. package/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
  657. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  658. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +4 -4
  659. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
  660. package/src/utils/normalizeWithMask.ts +23 -0
  661. package/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  662. package/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  663. package/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
  664. package/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  665. package/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  666. package/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
  667. package/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  668. package/mobile/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  669. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  670. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
  671. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  672. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  673. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
  674. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  675. package/mobile/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
  676. package/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
@@ -10,9 +10,9 @@ import { type ControlProps } from '../ControlProps';
10
10
  import { Icon } from '../Icon/Icon';
11
11
  import { type IconName } from '../Icon/IconProps';
12
12
  import { renderLabel } from '../Input/renderLabel';
13
- import { Paragraph } from '../Paragraph/Paragraph';
14
13
  import { Select } from '../Select/Select';
15
14
  import { Calendar } from './Calendar';
15
+ import { DatePickerInput } from './DatePickerInput';
16
16
  import { months } from './months';
17
17
  import { useDatePickerManager } from './useDatePickerManager';
18
18
 
@@ -30,7 +30,7 @@ const SELECT_PROPS: { className: string; iconVersion: IconVersion; isBorder: boo
30
30
  };
31
31
 
32
32
  const formStyle =
33
- 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
33
+ 'flex justify-between items-center h-14 py-s border rounded-md cursor-pointer ' +
34
34
  'hover:border-black active:border-black focus:border-black';
35
35
 
36
36
  interface DatePickerProps extends ControlProps<Date>, LabelProps {
@@ -41,6 +41,7 @@ interface DatePickerProps extends ControlProps<Date>, LabelProps {
41
41
  }
42
42
 
43
43
  export const DatePicker = JSX<DatePickerProps>(
44
+ // eslint-disable-next-line max-lines-per-function
44
45
  ({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
45
46
  const [showCalendar, { setValue }] = useBool(false);
46
47
  const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
@@ -64,6 +65,8 @@ export const DatePicker = JSX<DatePickerProps>(
64
65
  selectedYear,
65
66
  selectedMonth,
66
67
  showCalendar,
68
+ onChange,
69
+ value,
67
70
  });
68
71
 
69
72
  const spaceAbove = useElementSpace(ref, 370);
@@ -72,7 +75,14 @@ export const DatePicker = JSX<DatePickerProps>(
72
75
  <div className={style('space-y-xs', className)} ref={ref}>
73
76
  {renderLabel(label)}
74
77
  <div className="relative">
75
- {renderDatePickerForm(handleChangeVisibleCalendar, value, valid)}
78
+ {renderDatePickerForm({
79
+ handleChangeVisibleCalendar,
80
+ value,
81
+ valid,
82
+ onChange,
83
+ setSelectedMonth,
84
+ setSelectedYear,
85
+ })}
76
86
  {showCalendar ? (
77
87
  <div
78
88
  className={style('absolute bg-white z-20 select-none', {
@@ -116,16 +126,27 @@ export const DatePicker = JSX<DatePickerProps>(
116
126
  },
117
127
  );
118
128
 
119
- const renderDatePickerForm = (
120
- handleChangeVisibleCalendar: () => void,
121
- value: Date | undefined,
122
- valid: boolean,
123
- ) => (
124
- <div
129
+ const renderDatePickerForm = ({
130
+ handleChangeVisibleCalendar,
131
+ value,
132
+ valid,
133
+ onChange,
134
+ setSelectedMonth,
135
+ setSelectedYear,
136
+ }: {
137
+ handleChangeVisibleCalendar: () => void;
138
+ value: Date | undefined;
139
+ valid: boolean;
140
+ setSelectedMonth: (selectedMonth: number) => void;
141
+ setSelectedYear: (selectedYear: number) => void;
142
+ onChange?: (value: Date) => void;
143
+ }) => (
144
+ <DatePickerInput
145
+ onChange={onChange}
125
146
  onClick={handleChangeVisibleCalendar}
147
+ value={value && formatDate(value)}
148
+ setSelectedMonth={setSelectedMonth}
149
+ setSelectedYear={setSelectedYear}
126
150
  className={style(formStyle, valid ? 'border-gray' : 'border-error')}
127
- >
128
- <Paragraph>{value && formatDate(value)}</Paragraph>
129
- <Icon {...ICON_PROPS} name="CalendarIcon" />
130
- </div>
151
+ ></DatePickerInput>
131
152
  );
@@ -0,0 +1,100 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { type IconVersion } from '../../model/IconVersion';
4
+ import { normalizeWithMask } from '../../utils/normalizeWithMask';
5
+ import { style } from '../../utils/style';
6
+ import { Icon } from '../Icon/Icon';
7
+ import { type IconName } from '../Icon/IconProps';
8
+ import { START_YEAR } from './getYears';
9
+
10
+ const ICON_PROPS: { name: IconName; iconVersion: IconVersion; width: string; height: string } = {
11
+ name: 'CalendarIcon',
12
+ iconVersion: 'black',
13
+ width: '24',
14
+ height: '24',
15
+ };
16
+
17
+ interface DatePickerInputProps {
18
+ setSelectedMonth: (selectedMonth: number) => void;
19
+ setSelectedYear: (selectedYear: number) => void;
20
+ className?: string;
21
+ value?: string;
22
+ onChange?: (value: Date) => void;
23
+ onClick?: () => void;
24
+ }
25
+
26
+ export const DatePickerInput = JSX<DatePickerInputProps>(
27
+ ({ setSelectedMonth, setSelectedYear, className, value, onChange, onClick }) => {
28
+ const ref = useRef<HTMLInputElement | null>(null);
29
+ const [inputValue, setInputValue] = useState<string>(value || '');
30
+
31
+ const handleChange = (ev: { target?: { value?: string } }) => {
32
+ const val = ev.target?.value;
33
+ if (typeof val === 'string' && val?.length < 11) {
34
+ setInputValue(normalizeWithMask(val, '__.__.____'));
35
+ }
36
+ };
37
+
38
+ const onBlur = () => {
39
+ if (checkIsValidDate(inputValue)) {
40
+ const [day, month, year] = inputValue.split('.');
41
+ onChange?.(new Date(Number(year), Number(month) - 1, Number(day)));
42
+ setSelectedMonth(Number(month) - 1);
43
+ setSelectedYear(Number(year));
44
+ } else {
45
+ setInputValue(value || '');
46
+ }
47
+ };
48
+
49
+ const onInputClick = () => {
50
+ if (ref.current !== null) {
51
+ ref.current.focus();
52
+ }
53
+ onClick?.();
54
+ };
55
+
56
+ useEffect(() => {
57
+ setInputValue(value || '');
58
+ }, [value]);
59
+
60
+ return (
61
+ <div onClick={onInputClick} className={style('relative', className)}>
62
+ <input
63
+ ref={ref}
64
+ className="h-full w-full px-m text-l text-black focus-visible:outline-none"
65
+ value={inputValue}
66
+ type="text"
67
+ onChange={handleChange}
68
+ onBlur={onBlur}
69
+ />
70
+ <Icon className="mr-s" {...ICON_PROPS} />
71
+ </div>
72
+ );
73
+ },
74
+ );
75
+
76
+ const isValidYear = (year: string) =>
77
+ Number(year) >= START_YEAR && Number(year) <= new Date().getFullYear();
78
+
79
+ const isValidMonth = (month: string) => Number(month) > 0 && Number(month) < 13;
80
+
81
+ const checkIsValidDate = (date: string) => {
82
+ const [day, month, year] = date.split('.');
83
+
84
+ if (isValidYear(year)) {
85
+ if (isValidMonth(month)) {
86
+ const currentDate = new Date(Number(year), Number(month) - 1, 1);
87
+ let maxDateOfMonth = 0;
88
+ while (currentDate.getMonth() === Number(month) - 1) {
89
+ currentDate.setDate(currentDate.getDate() + 1);
90
+ maxDateOfMonth++;
91
+ }
92
+
93
+ if (Number(day) > 0 && Number(day) <= maxDateOfMonth) {
94
+ return true;
95
+ }
96
+ }
97
+ }
98
+
99
+ return false;
100
+ };
@@ -1,4 +1,4 @@
1
- const START_YEAR = 1940;
1
+ export const START_YEAR = 1940;
2
2
 
3
3
  export const getYears = () =>
4
4
  Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
@@ -17,6 +17,8 @@ interface UseDatePickerManagerParams {
17
17
  onMonthSelect: (num: number) => void;
18
18
  selectedYear: number;
19
19
  onYearSelect: (num: number) => void;
20
+ onChange?: (date: Date) => void;
21
+ value?: Date;
20
22
  }
21
23
 
22
24
  export const useDatePickerManager = ({
@@ -26,6 +28,8 @@ export const useDatePickerManager = ({
26
28
  onMonthSelect,
27
29
  onYearSelect,
28
30
  selectedYear,
31
+ onChange,
32
+ value,
29
33
  }: UseDatePickerManagerParams) => {
30
34
  const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
31
35
  const ref = useOutsideClick<HTMLDivElement>(close);
@@ -54,10 +58,26 @@ export const useDatePickerManager = ({
54
58
  }, [selectedMonth]);
55
59
 
56
60
  const handleSelectMonth = useCallback(
57
- ({ key }: Option) => onMonthSelect(months.indexOf(key)),
58
- [],
61
+ ({ key }: Option) => {
62
+ onMonthSelect(months.indexOf(key));
63
+ const maxDateOfMonth = calculateMaxDaysOfMonth(selectedYear, months.indexOf(key));
64
+ handleChangeMonth({
65
+ maxDateOfMonth,
66
+ selectedYear,
67
+ selectedMonth: months.indexOf(key),
68
+ value,
69
+ onChange,
70
+ });
71
+ },
72
+ [value],
73
+ );
74
+ const handleSelectYear = useCallback(
75
+ ({ key }: Option) => {
76
+ onYearSelect(Number(key));
77
+ value && onChange?.(new Date(Number(key), selectedMonth, value?.getDate()));
78
+ },
79
+ [value],
59
80
  );
60
- const handleSelectYear = useCallback(({ key }: Option) => onYearSelect(Number(key)), []);
61
81
 
62
82
  return {
63
83
  handleChangeVisibleCalendar,
@@ -70,3 +90,31 @@ export const useDatePickerManager = ({
70
90
  ref,
71
91
  };
72
92
  };
93
+
94
+ const calculateMaxDaysOfMonth = (selectedYear: number, selectedMonth: number) => {
95
+ const date = new Date(selectedYear, selectedMonth, 1);
96
+ let maxDateOfMonth = 0;
97
+ while (date.getMonth() === selectedMonth) {
98
+ maxDateOfMonth++;
99
+ date.setDate(date.getDate() + 1);
100
+ }
101
+
102
+ return maxDateOfMonth;
103
+ };
104
+
105
+ const handleChangeMonth = ({
106
+ maxDateOfMonth,
107
+ selectedYear,
108
+ selectedMonth,
109
+ value,
110
+ onChange,
111
+ }: {
112
+ maxDateOfMonth: number;
113
+ selectedYear: number;
114
+ selectedMonth: number;
115
+ value?: Date;
116
+ onChange?: (value: Date) => void;
117
+ }) => {
118
+ value &&
119
+ onChange?.(new Date(selectedYear, selectedMonth, Math.min(maxDateOfMonth, value.getDate())));
120
+ };
@@ -0,0 +1,13 @@
1
+ import { type VNode } from '../../model/VNode';
2
+ import { getDocument } from '../Checkbox/getDocument';
3
+ import { Dialog } from './Dialog';
4
+
5
+ export const openDocument = async (id: number, open: (dialog: VNode) => void) => {
6
+ const document = await getDocument(id);
7
+
8
+ open(
9
+ <Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0">
10
+ <iframe src={`${document}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
11
+ </Dialog>,
12
+ );
13
+ };
@@ -1,14 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const DependentsField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Количество иждивенцев"
10
10
  placeholder="За исключение детей до 18 лет"
11
- type="number"
11
+ inputLength={2}
12
12
  {...getValidation(field('dependents'), validatorObj.dependents, input?.required)}
13
13
  {...input}
14
14
  />
@@ -1,13 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const DulNumberField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Номер документа"
10
- type="number"
10
+ inputLength={6}
11
11
  {...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required)}
12
12
  />
13
13
  ));
@@ -1,13 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const DulSerieField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Серия документа"
10
- type="number"
10
+ inputLength={4}
11
11
  {...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required)}
12
12
  />
13
13
  ));
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
4
- import { InputControl } from '../../Input/InputControl';
4
+ import { InputNumberControl } from '../../Input/InputNumberControl';
5
5
  import { type CustomFieldProps } from '../CustomFieldProps';
6
6
  import { validatorObj } from '../getObjectValidator';
7
7
  import { getValidation } from '../getValidation';
@@ -12,10 +12,10 @@ export const DulSubdivisionCodeField = JSX<CustomFieldProps>(({ field, input })
12
12
  }, []);
13
13
 
14
14
  return (
15
- <InputControl
15
+ <InputNumberControl
16
16
  label="Код подразделения"
17
- type="number"
18
17
  {...input}
18
+ inputLength={6}
19
19
  {...getValidation(
20
20
  field('dulSubdivisionCode'),
21
21
  validatorObj.dulSubdivisionCode,
@@ -1,13 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const Experience5YearsField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Стаж"
10
10
  placeholder="За последние 5 лет"
11
+ inputLength={2}
11
12
  {...getValidation(field('experience5Years'), validatorObj.experience5Years, input?.required)}
12
13
  {...input}
13
14
  />
@@ -1,14 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const FamilyMembersField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Количество членов семьи"
10
10
  placeholder="Введите значение"
11
- type="number"
11
+ inputLength={2}
12
12
  {...getValidation(field('familyMembers'), validatorObj.familyMembers, input?.required)}
13
13
  {...input}
14
14
  />
@@ -1,12 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const GeneralSeniorityField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Общий стаж"
10
+ inputLength={2}
10
11
  placeholder="Количество лет"
11
12
  {...getValidation(field('generalSeniority'), validatorObj.generalSeniority, input?.required)}
12
13
  {...input}
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
4
- import { InputControl } from '../../Input/InputControl';
4
+ import { InputNumberControl } from '../../Input/InputNumberControl';
5
5
  import { type CustomFieldProps } from '../CustomFieldProps';
6
6
  import { validatorObj } from '../getObjectValidator';
7
7
  import { getValidation } from '../getValidation';
@@ -13,9 +13,9 @@ export const InnField = JSX<CustomFieldProps>(({ field, input }) => {
13
13
  }, []);
14
14
 
15
15
  return (
16
- <InputControl
16
+ <InputNumberControl
17
17
  label="ИНН"
18
- type="number"
18
+ inputLength={12}
19
19
  {...input}
20
20
  {...getValidation(field('inn'), validatorObj.inn, input?.required)}
21
21
  onDaDataChange={onDaDataChange}
@@ -1,14 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const JobsNumberField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
9
- label="Общий стаж"
10
- placeholder="Количество лет"
11
- type="number"
8
+ <InputNumberControl
9
+ label="Количество мест работы за последние 5 лет"
10
+ placeholder="Количество мест"
11
+ inputLength={2}
12
12
  {...getValidation(field('jobsNumber'), validatorObj.jobsNumber, input?.required)}
13
13
  {...input}
14
14
  />
@@ -1,13 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { InputControl } from '../../Input/InputControl';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
3
  import { type CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
7
  export const LastJobExperienceField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
8
+ <InputNumberControl
9
9
  label="Стаж на последнем рабочем месте"
10
10
  placeholder="Количество лет"
11
+ inputLength={2}
11
12
  {...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required)}
12
13
  {...input}
13
14
  />
@@ -0,0 +1,15 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { InputNumberControl } from '../../Input/InputNumberControl';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { validatorObj } from '../getObjectValidator';
5
+ import { getValidation } from '../getValidation';
6
+
7
+ export const PartInBusinessField = JSX<CustomFieldProps>(({ field, input }) => (
8
+ <InputNumberControl
9
+ label="Доля участия в бизнесе"
10
+ placeholder="в %"
11
+ inputLength={2}
12
+ {...getValidation(field('partInBusiness'), validatorObj.partInBusiness, input?.required)}
13
+ {...input}
14
+ />
15
+ ));
@@ -81,4 +81,5 @@ export type NameFieldDef =
81
81
  | 'bankruptcyFlg'
82
82
  | 'shareholderFlg'
83
83
  | 'legalEntityName'
84
- | 'bankEmployeeCode';
84
+ | 'bankEmployeeCode'
85
+ | 'partInBusiness';
@@ -1,5 +1,6 @@
1
1
  import { UniBlock } from '../../UniBlock/UniBlock';
2
2
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
+ import { type Option } from '../Select/Option';
3
4
  import { SelectControl } from '../Select/SelectControl';
4
5
  import { type CustomFieldProps } from './CustomFieldProps';
5
6
  import { validatorObj } from './getObjectValidator';
@@ -34,4 +35,5 @@ export const SelectField = UniBlock<SelectFieldProps>(
34
35
  },
35
36
  );
36
37
 
37
- const arrayToOptions = (array?: string[]) => (array ?? []).map((_) => ({ key: _, value: _ }));
38
+ const arrayToOptions = (array?: string[]): Option[] =>
39
+ (array ?? []).map((_) => ({ key: _, text: _ }));
@@ -60,6 +60,7 @@ import { OtherIncomeField } from './Fields/OtherIncomeField';
60
60
  import { OtherPaymentsField } from './Fields/OtherPayments';
61
61
  import { ParticipantAddressField } from './Fields/ParticipantAddressField';
62
62
  import { ParticipantDateRegistrationField } from './Fields/ParticipantDateRegistrationField';
63
+ import { PartInBusinessField } from './Fields/PartInBusinessField';
63
64
  import { PartnerCommentsField } from './Fields/PartnerCommentsField';
64
65
  import { PhoneField } from './Fields/PhoneField';
65
66
  import { PositionOrganizationField } from './Fields/PositionOrganizationField';
@@ -178,6 +179,7 @@ export const getField =
178
179
  legalEntityName: <LegalEntityNameField field={field} input={input} />,
179
180
  creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
180
181
  bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
182
+ partInBusiness: <PartInBusinessField field={field} input={input} />,
181
183
  };
182
184
 
183
185
  return isRenderField({ input, field }) ? (
@@ -7,6 +7,7 @@ import {
7
7
  defaultValidator,
8
8
  emailValidator,
9
9
  innValidator,
10
+ jobNumberValidator,
10
11
  lengthStringValidator,
11
12
  nameValidator,
12
13
  numberValidator,
@@ -44,10 +45,10 @@ export const validatorObj: Record<string, Validator> = {
44
45
  inn: innValidator('Укажите ИНН'),
45
46
  legalForm: defaultValidator('Укажите ОПФ'),
46
47
  organizationName: defaultValidator('Укажите наименование организации'),
47
- generalSeniority: defaultValidator(),
48
- lastJobExperience: defaultValidator('Укажите стаж на последнем месте работы'),
49
- experience5Years: defaultValidator('Укажите общий стаж за последние 5 лет'),
50
- jobsNumber: defaultValidator('Укажите количество лет стажа'),
48
+ generalSeniority: jobNumberValidator('Укажите количество лет стажа'),
49
+ lastJobExperience: jobNumberValidator('Укажите стаж на последнем месте работы'),
50
+ experience5Years: jobNumberValidator('Укажите общий стаж за последние 5 лет'),
51
+ jobsNumber: jobNumberValidator('Укажите количество мест работы за последние 5 лет'),
51
52
  beginDate: defaultValidator('Укажите дату заключения трудового договора'),
52
53
  fullAddress: defaultValidator(),
53
54
  partnerComments: defaultValidator(),
@@ -89,12 +90,11 @@ export const validatorObj: Record<string, Validator> = {
89
90
  shareholderFlg: defaultValidator(),
90
91
  legalEntityName: defaultValidator(),
91
92
  bankEmployeeCode: defaultValidator(),
93
+ partInBusiness: defaultValidator(),
92
94
  };
93
95
 
94
96
  export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
95
- const requiredInputs = getNamesFromInput(
96
- inputs.filter((_: FieldDef) => ('required' in _ ? _.required : false)),
97
- );
97
+ const requiredInputs = getNamesFromInput(inputs.filter((_: FieldDef) => Boolean(_?.required)));
98
98
 
99
99
  return Object.fromEntries(requiredInputs.map((_) => [_, validatorObj?.[_]]));
100
100
  };
@@ -9,6 +9,11 @@ export const defaultValidator = (errorMsg?: string) =>
9
9
 
10
10
  export const defaultSelectValidator = validator((_) => _?.key && _?.key !== '')(ERROR_MESSAGE);
11
11
 
12
+ export const jobNumberValidator = (errorMsg?: string) =>
13
+ validator((_) => typeof _ === 'string' && _.length > 0 && _.length <= 2)(
14
+ errorMsg ? errorMsg : ERROR_MESSAGE,
15
+ );
16
+
12
17
  export const nameValidator = (errorMsg?: string) =>
13
18
  validator((_) => typeof _ === 'string' && _.length > 1)(errorMsg ? errorMsg : ERROR_MESSAGE);
14
19
 
@@ -2,21 +2,27 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type IconVersion } from '../../model/IconVersion';
3
3
  import { Icon } from '../Icon/Icon';
4
4
  import { type IconName } from '../Icon/IconProps';
5
+ import { LinkButton } from '../LinkButton/LinkButton';
6
+ import { type LinkButtonProps } from '../LinkButton/LinkButtonProps';
5
7
  import { RichText } from '../RichText/RichText';
6
8
 
7
- interface InfoCardProps {
9
+ export interface InfoCardProps {
8
10
  __html?: string;
9
11
  icon?: IconName;
10
12
  iconVersion?: IconVersion;
13
+ link?: LinkButtonProps;
11
14
  }
12
15
 
13
16
  export const InfoCard = JSX<InfoCardProps>(
14
- ({ __html, icon = 'InfoCircleIcon', iconVersion = 'black' }) => (
17
+ ({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (
15
18
  <div className="flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m">
16
19
  <div className="rounded-full bg-white p-xs">
17
20
  <Icon name={icon} width="24" height="24" iconVersion={iconVersion} />
18
21
  </div>
19
- <RichText __html={__html} />
22
+ <div className="">
23
+ <RichText __html={__html} />
24
+ {link?.text ? <LinkButton className="text-primary-main">{link.text}</LinkButton> : null}
25
+ </div>
20
26
  </div>
21
27
  ),
22
28
  );
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { getRequiredLabel } from '../../utils/getRequiredLabel';
3
+ import { style } from '../../utils/style';
4
+ import { InputNumber } from '../InputNumber/InputNumber';
5
+ import { type InputProps } from './InputProps';
6
+ import { renderErrorText } from './renderErrorText';
7
+
8
+ export const InputNumberControl = JSX<InputProps>(({ className, label, error, ...rest }) => (
9
+ <div className={style('shrink-0 w-full', className)}>
10
+ <InputNumber
11
+ aria-label={label}
12
+ label={getRequiredLabel({ label, errors: rest?.errors })}
13
+ valid={Boolean(!error)}
14
+ {...rest}
15
+ />
16
+ {renderErrorText(error)}
17
+ </div>
18
+ ));
@@ -1,5 +1,5 @@
1
- import { type DefaultControlType } from '../../model/DefaultControlType';
2
1
  import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
2
+ import { type DefaultControlType } from '../../model/DefaultControlType';
3
3
  import { type InputTypes } from '../../model/InputTypes';
4
4
  import { type ControlProps } from '../ControlProps';
5
5
  import { type PreventableEventWithTarget } from '../PreventableEvent';
@@ -18,4 +18,5 @@ export interface InputProps<V = string> extends DefaultControlType, ControlProps
18
18
  autoFocus?: boolean;
19
19
  isTextarea?: boolean;
20
20
  dadata?: boolean;
21
+ inputLength?: number;
21
22
  }