@redneckz/wildless-cms-uni-blocks 0.14.609 → 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 (550) hide show
  1. package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +384 -150
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  6. package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  7. package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  8. package/bundle/components/CreditForm/CreditForm.d.ts +2 -9
  9. package/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
  10. package/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
  11. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  12. package/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
  13. package/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
  14. package/bundle/components/CreditForm/renderInputs.d.ts +3 -0
  15. package/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
  16. package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  17. package/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
  18. package/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  19. package/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  20. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  21. package/bundle/ui-kit/FormField/validators.d.ts +1 -0
  22. package/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  23. package/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
  24. package/bundle/ui-kit/Input/InputProps.d.ts +2 -1
  25. package/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  26. package/bundle/utils/normalizeWithMask.d.ts +1 -0
  27. package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  28. package/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  29. package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  30. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  31. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  32. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  33. package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  34. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  35. package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  36. package/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
  37. package/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  38. package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  39. package/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  40. package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  41. package/dist/components/Blocks.js +2 -0
  42. package/dist/components/Blocks.js.map +1 -1
  43. package/dist/components/CreditForm/CreditForm.d.ts +2 -9
  44. package/dist/components/CreditForm/CreditForm.js +11 -19
  45. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  46. package/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
  47. package/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
  48. package/dist/components/CreditForm/CreditFormStep.js +33 -0
  49. package/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  50. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  51. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
  52. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  53. package/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
  54. package/dist/components/CreditForm/creditFormStepsData.js +31 -26
  55. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  56. package/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
  57. package/dist/components/CreditForm/getInitialFormState.js +77 -0
  58. package/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  59. package/dist/components/CreditForm/renderInputs.d.ts +3 -0
  60. package/dist/components/CreditForm/renderInputs.js +8 -0
  61. package/dist/components/CreditForm/renderInputs.js.map +1 -0
  62. package/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
  63. package/dist/components/CreditForm/useCreditFormApi.js +28 -0
  64. package/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
  65. package/dist/ui-kit/DatePicker/DatePicker.js +16 -5
  66. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  67. package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  68. package/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
  69. package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  70. package/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
  71. package/dist/ui-kit/DatePicker/getYears.js +3 -3
  72. package/dist/ui-kit/DatePicker/getYears.js.map +1 -1
  73. package/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  74. package/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  75. package/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  76. package/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
  77. package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  78. package/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  79. package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  80. package/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  81. package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  82. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  83. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  84. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  85. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  86. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  87. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  88. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  89. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  90. package/dist/ui-kit/FormField/Fields/InnField.js +2 -2
  91. package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  92. package/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  93. package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  94. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  95. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  96. package/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  97. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
  98. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  99. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  100. package/dist/ui-kit/FormField/SelectField.js +1 -1
  101. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  102. package/dist/ui-kit/FormField/getField.js +2 -0
  103. package/dist/ui-kit/FormField/getField.js.map +1 -1
  104. package/dist/ui-kit/FormField/getObjectValidator.js +6 -5
  105. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  106. package/dist/ui-kit/FormField/validators.d.ts +1 -0
  107. package/dist/ui-kit/FormField/validators.js +3 -1
  108. package/dist/ui-kit/FormField/validators.js.map +1 -1
  109. package/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  110. package/dist/ui-kit/InfoCard/InfoCard.js +2 -1
  111. package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  112. package/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
  113. package/dist/ui-kit/Input/InputNumberControl.js +10 -0
  114. package/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
  115. package/dist/ui-kit/Input/InputProps.d.ts +2 -1
  116. package/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  117. package/dist/ui-kit/InputNumber/InputNumber.js +12 -0
  118. package/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
  119. package/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
  120. package/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  121. package/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
  122. package/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  123. package/dist/utils/normalizeWithMask.d.ts +1 -0
  124. package/dist/utils/normalizeWithMask.js +20 -0
  125. package/dist/utils/normalizeWithMask.js.map +1 -0
  126. package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  127. package/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  128. package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  129. package/lib/common.css +1 -1
  130. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  131. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  132. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  133. package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  134. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  135. package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  136. package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +9 -0
  137. package/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
  138. package/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  139. package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  140. package/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  141. package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  142. package/lib/components/Blocks.js +2 -0
  143. package/lib/components/Blocks.js.map +1 -1
  144. package/lib/components/CreditForm/CreditForm.d.ts +2 -9
  145. package/lib/components/CreditForm/CreditForm.js +12 -20
  146. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  147. package/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
  148. package/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
  149. package/lib/components/CreditForm/CreditFormStep.js +31 -0
  150. package/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  151. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  152. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
  153. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  154. package/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
  155. package/lib/components/CreditForm/creditFormStepsData.js +31 -26
  156. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  157. package/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
  158. package/lib/components/CreditForm/getInitialFormState.js +74 -0
  159. package/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  160. package/lib/components/CreditForm/renderInputs.d.ts +2 -0
  161. package/lib/components/CreditForm/renderInputs.js +5 -0
  162. package/lib/components/CreditForm/renderInputs.js.map +1 -0
  163. package/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
  164. package/lib/components/CreditForm/useCreditFormApi.js +25 -0
  165. package/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
  166. package/lib/ui-kit/DatePicker/DatePicker.js +16 -5
  167. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  168. package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  169. package/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
  170. package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  171. package/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
  172. package/lib/ui-kit/DatePicker/getYears.js +1 -1
  173. package/lib/ui-kit/DatePicker/getYears.js.map +1 -1
  174. package/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  175. package/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  176. package/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  177. package/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
  178. package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  179. package/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  180. package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  181. package/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  182. package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  183. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  184. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  185. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  186. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  187. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  188. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  189. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  190. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  191. package/lib/ui-kit/FormField/Fields/InnField.js +2 -2
  192. package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  193. package/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  194. package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  195. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  196. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  197. package/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  198. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
  199. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  200. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  201. package/lib/ui-kit/FormField/SelectField.js +1 -1
  202. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  203. package/lib/ui-kit/FormField/getField.js +2 -0
  204. package/lib/ui-kit/FormField/getField.js.map +1 -1
  205. package/lib/ui-kit/FormField/getObjectValidator.js +7 -6
  206. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  207. package/lib/ui-kit/FormField/validators.d.ts +1 -0
  208. package/lib/ui-kit/FormField/validators.js +1 -0
  209. package/lib/ui-kit/FormField/validators.js.map +1 -1
  210. package/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  211. package/lib/ui-kit/InfoCard/InfoCard.js +2 -1
  212. package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  213. package/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
  214. package/lib/ui-kit/Input/InputNumberControl.js +8 -0
  215. package/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
  216. package/lib/ui-kit/Input/InputProps.d.ts +2 -1
  217. package/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  218. package/lib/ui-kit/InputNumber/InputNumber.js +10 -0
  219. package/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
  220. package/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
  221. package/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  222. package/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
  223. package/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  224. package/lib/utils/normalizeWithMask.d.ts +1 -0
  225. package/lib/utils/normalizeWithMask.js +17 -0
  226. package/lib/utils/normalizeWithMask.js.map +1 -0
  227. package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  228. package/mobile/bundle/bundle.umd.js +363 -150
  229. package/mobile/bundle/bundle.umd.min.js +1 -1
  230. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  231. package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  232. package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  233. package/mobile/bundle/components/CreditForm/CreditForm.d.ts +2 -9
  234. package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
  235. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
  236. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  237. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
  238. package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
  239. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +3 -0
  240. package/mobile/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
  241. package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  242. package/mobile/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
  243. package/mobile/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  244. package/mobile/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  245. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  246. package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
  247. package/mobile/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  248. package/mobile/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
  249. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +2 -1
  250. package/mobile/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  251. package/mobile/bundle/utils/normalizeWithMask.d.ts +1 -0
  252. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  253. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  254. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  255. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  256. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  257. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  258. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  259. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  260. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  261. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
  262. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  263. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  264. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  265. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  266. package/mobile/dist/components/CreditForm/CreditForm.d.ts +2 -9
  267. package/mobile/dist/components/CreditForm/CreditForm.js +11 -19
  268. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  269. package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
  270. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
  271. package/mobile/dist/components/CreditForm/CreditFormStep.js +33 -0
  272. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  273. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  274. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
  275. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  276. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
  277. package/mobile/dist/components/CreditForm/creditFormStepsData.js +31 -26
  278. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  279. package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
  280. package/mobile/dist/components/CreditForm/getInitialFormState.js +77 -0
  281. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  282. package/mobile/dist/components/CreditForm/renderInputs.d.ts +3 -0
  283. package/mobile/dist/components/CreditForm/renderInputs.js +8 -0
  284. package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -0
  285. package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
  286. package/mobile/dist/components/CreditForm/useCreditFormApi.js +28 -0
  287. package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
  288. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +16 -5
  289. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  290. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  291. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
  292. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  293. package/mobile/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
  294. package/mobile/dist/ui-kit/DatePicker/getYears.js +3 -3
  295. package/mobile/dist/ui-kit/DatePicker/getYears.js.map +1 -1
  296. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  297. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  298. package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  299. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
  300. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  301. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  302. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  303. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  304. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  305. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  306. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  307. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  308. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  309. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  310. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  311. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  312. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  313. package/mobile/dist/ui-kit/FormField/Fields/InnField.js +2 -2
  314. package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  315. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  316. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  317. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  318. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  319. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  320. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
  321. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  322. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  323. package/mobile/dist/ui-kit/FormField/SelectField.js +1 -1
  324. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  325. package/mobile/dist/ui-kit/FormField/getField.js +2 -0
  326. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  327. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -5
  328. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  329. package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
  330. package/mobile/dist/ui-kit/FormField/validators.js +3 -1
  331. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  332. package/mobile/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  333. package/mobile/dist/ui-kit/InfoCard/InfoCard.js +2 -1
  334. package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  335. package/mobile/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
  336. package/mobile/dist/ui-kit/Input/InputNumberControl.js +10 -0
  337. package/mobile/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
  338. package/mobile/dist/ui-kit/Input/InputProps.d.ts +2 -1
  339. package/mobile/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  340. package/mobile/dist/ui-kit/InputNumber/InputNumber.js +12 -0
  341. package/mobile/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
  342. package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
  343. package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  344. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
  345. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  346. package/mobile/dist/utils/normalizeWithMask.d.ts +1 -0
  347. package/mobile/dist/utils/normalizeWithMask.js +20 -0
  348. package/mobile/dist/utils/normalizeWithMask.js.map +1 -0
  349. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
  350. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
  351. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
  352. package/mobile/lib/common.css +1 -1
  353. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  354. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  355. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  356. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
  357. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  358. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
  359. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
  360. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
  361. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
  362. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
  363. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
  364. package/mobile/lib/components/CreditForm/CreditForm.d.ts +2 -9
  365. package/mobile/lib/components/CreditForm/CreditForm.js +12 -20
  366. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  367. package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
  368. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
  369. package/mobile/lib/components/CreditForm/CreditFormStep.js +31 -0
  370. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  371. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
  372. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
  373. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  374. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
  375. package/mobile/lib/components/CreditForm/creditFormStepsData.js +31 -26
  376. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  377. package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
  378. package/mobile/lib/components/CreditForm/getInitialFormState.js +74 -0
  379. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  380. package/mobile/lib/components/CreditForm/renderInputs.d.ts +3 -0
  381. package/mobile/lib/components/CreditForm/renderInputs.js +5 -0
  382. package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -0
  383. package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
  384. package/mobile/lib/components/CreditForm/useCreditFormApi.js +25 -0
  385. package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
  386. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +16 -5
  387. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  388. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
  389. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
  390. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
  391. package/mobile/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
  392. package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
  393. package/mobile/lib/ui-kit/DatePicker/getYears.js.map +1 -1
  394. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
  395. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
  396. package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
  397. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
  398. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
  399. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
  400. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
  401. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
  402. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
  403. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
  404. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
  405. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
  406. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  407. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
  408. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
  409. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
  410. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
  411. package/mobile/lib/ui-kit/FormField/Fields/InnField.js +2 -2
  412. package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  413. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
  414. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
  415. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
  416. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
  417. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  418. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
  419. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  420. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  421. package/mobile/lib/ui-kit/FormField/SelectField.js +1 -1
  422. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  423. package/mobile/lib/ui-kit/FormField/getField.js +2 -0
  424. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  425. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +7 -6
  426. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  427. package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
  428. package/mobile/lib/ui-kit/FormField/validators.js +1 -0
  429. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  430. package/mobile/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
  431. package/mobile/lib/ui-kit/InfoCard/InfoCard.js +2 -1
  432. package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  433. package/mobile/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
  434. package/mobile/lib/ui-kit/Input/InputNumberControl.js +8 -0
  435. package/mobile/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
  436. package/mobile/lib/ui-kit/Input/InputProps.d.ts +2 -1
  437. package/mobile/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
  438. package/mobile/lib/ui-kit/InputNumber/InputNumber.js +10 -0
  439. package/mobile/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
  440. package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
  441. package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
  442. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
  443. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  444. package/mobile/lib/utils/normalizeWithMask.d.ts +1 -0
  445. package/mobile/lib/utils/normalizeWithMask.js +17 -0
  446. package/mobile/lib/utils/normalizeWithMask.js.map +1 -0
  447. package/mobile/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
  448. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  449. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
  450. package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
  451. package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
  452. package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
  453. package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
  454. package/mobile/src/components/CreditForm/CreditForm.tsx +36 -56
  455. package/mobile/src/components/CreditForm/CreditFormContent.ts +13 -1
  456. package/mobile/src/components/CreditForm/CreditFormStep.tsx +65 -0
  457. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
  458. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +31 -26
  459. package/mobile/src/components/CreditForm/getInitialFormState.tsx +145 -0
  460. package/mobile/src/components/CreditForm/renderInputs.tsx +6 -0
  461. package/mobile/src/components/CreditForm/useCreditFormApi.tsx +36 -0
  462. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
  463. package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
  464. package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
  465. package/mobile/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
  466. package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
  467. package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
  468. package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
  469. package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
  470. package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
  471. package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
  472. package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
  473. package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
  474. package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
  475. package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
  476. package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
  477. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  478. package/mobile/src/ui-kit/FormField/SelectField.tsx +3 -1
  479. package/mobile/src/ui-kit/FormField/getField.tsx +2 -0
  480. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
  481. package/mobile/src/ui-kit/FormField/validators.ts +5 -0
  482. package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
  483. package/mobile/src/ui-kit/Input/InputNumberControl.tsx +18 -0
  484. package/mobile/src/ui-kit/Input/InputProps.ts +2 -1
  485. package/mobile/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
  486. package/mobile/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
  487. package/mobile/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
  488. package/mobile/src/utils/normalizeWithMask.ts +23 -0
  489. package/package.json +2 -2
  490. package/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
  491. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  492. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
  493. package/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
  494. package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +129 -0
  495. package/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
  496. package/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
  497. package/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
  498. package/src/components/Blocks.ts +2 -0
  499. package/src/components/CreditForm/CreditForm.fixture.tsx +27 -1
  500. package/src/components/CreditForm/CreditForm.tsx +36 -56
  501. package/src/components/CreditForm/CreditFormContent.ts +13 -1
  502. package/src/components/CreditForm/CreditFormStep.tsx +65 -0
  503. package/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
  504. package/src/components/CreditForm/creditFormStepsData.tsx +31 -26
  505. package/src/components/CreditForm/getInitialFormState.tsx +145 -0
  506. package/src/components/CreditForm/renderInputs.tsx +6 -0
  507. package/src/components/CreditForm/useCreditFormApi.tsx +36 -0
  508. package/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
  509. package/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
  510. package/src/ui-kit/DatePicker/getYears.ts +1 -1
  511. package/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
  512. package/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
  513. package/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
  514. package/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
  515. package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
  516. package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
  517. package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
  518. package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
  519. package/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
  520. package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
  521. package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
  522. package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
  523. package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  524. package/src/ui-kit/FormField/SelectField.tsx +3 -1
  525. package/src/ui-kit/FormField/getField.tsx +2 -0
  526. package/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
  527. package/src/ui-kit/FormField/validators.ts +5 -0
  528. package/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
  529. package/src/ui-kit/Input/InputNumberControl.tsx +18 -0
  530. package/src/ui-kit/Input/InputProps.ts +2 -1
  531. package/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
  532. package/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
  533. package/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
  534. package/src/utils/normalizeWithMask.ts +23 -0
  535. package/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  536. package/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  537. package/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
  538. package/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  539. package/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  540. package/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
  541. package/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  542. package/mobile/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  543. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  544. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
  545. package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  546. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
  547. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
  548. package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
  549. package/mobile/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
  550. package/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
@@ -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
  }
@@ -0,0 +1,24 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { Input } from '../Input/Input';
4
+ import { type InputProps } from '../Input/InputProps';
5
+
6
+ export const InputNumber = JSX<InputProps>(({ children, onChange, inputLength, ...inputProps }) => {
7
+ const handleChange = useCallback(
8
+ (v: string) =>
9
+ onChange && inputLength && v.length <= inputLength && onChange(normalizeInput(v)),
10
+ [onChange],
11
+ );
12
+
13
+ return (
14
+ <Input
15
+ {...inputProps}
16
+ onChange={handleChange}
17
+ onFocus={(ev) => handleChange((ev?.target as HTMLInputElement)?.value || '')}
18
+ >
19
+ {children}
20
+ </Input>
21
+ );
22
+ });
23
+
24
+ const normalizeInput = (value: string) => value.replace(/\D/g, '');
@@ -1,12 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { normalizeWithMask } from '../../utils/normalizeWithMask';
3
4
  import { Input } from '../Input/Input';
4
5
  import { type InputProps } from '../Input/InputProps';
5
- import { normalizeSnils } from './normalizeSnils';
6
6
 
7
7
  export const SnilsInput = JSX<InputProps>(({ children, onChange, ...inputProps }) => {
8
8
  const handleChange = useCallback(
9
- (v: string) => onChange && onChange(normalizeSnils(v)),
9
+ (v: string) => onChange && onChange(normalizeWithMask(v, '___-___-___ __')),
10
10
  [onChange],
11
11
  );
12
12
  const handleBlur = useCallback((v: string) => {
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { Headline } from '../../components/Headline/Headline';
4
+ import { style } from '../../utils/style';
4
5
  import { RichText } from '../RichText/RichText';
5
6
  import { Timer } from './Timer';
6
7
 
@@ -17,20 +18,24 @@ export const TimerCircle = JSX<TimerCircleProps>(({ interval = 0, title, __html
17
18
 
18
19
  return (
19
20
  <div>
20
- <Headline title={title} headlineVersion="S" />
21
+ {title ? <Headline title={title} headlineVersion="S" /> : null}
21
22
  <div className="flex justify-center items-center flex-col">
22
- <div className="relative flex items-center justify-center w-60 h-60 rounded-full bg-gray text-transparent mb-5">
23
+ <div
24
+ className={style(
25
+ `relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5`,
26
+ )}
27
+ >
23
28
  <div
24
29
  className="absolute inset-0 rounded-full"
25
30
  style={{
26
31
  background: `conic-gradient(rgb(66, 171, 68) ${gradientPercentage}%, rgb(125, 126, 127) 0deg)`,
27
32
  }}
28
33
  />
29
- <div className="z-10 flex items-center justify-center px-4 py-2 rounded-full w-56 h-56 bg-white text-3xl text-primary-text">
34
+ <div className="z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m">
30
35
  <Timer interval={interval} time={time} setTime={setTime} />
31
36
  </div>
32
37
  </div>
33
- <RichText __html={__html} />
38
+ {__html ? <RichText __html={__html} /> : null}
34
39
  </div>
35
40
  </div>
36
41
  );
@@ -0,0 +1,23 @@
1
+ export function normalizeWithMask(value: string, pattern: string): string {
2
+ const valueNumbers = value.replace(/\D/g, '');
3
+ if (valueNumbers === '' || value?.length === pattern.length) {
4
+ return value;
5
+ }
6
+
7
+ const patternInArr = [...pattern];
8
+ const firstPlaceholderIndex = patternInArr.findIndex(isPlaceholder);
9
+ const valueWildcardIndicies = patternInArr.map((_, i) =>
10
+ isWildcard(_) ? patternInArr.slice(0, i).filter(isWildcard).length : -1,
11
+ );
12
+ const applyPlaceholder = (_: string, i: number) =>
13
+ isDigit(_) ? _ : valueNumbers.charAt(valueWildcardIndicies[i]) || _;
14
+
15
+ const resultInArr = patternInArr.map(applyPlaceholder);
16
+ const resultLength = valueWildcardIndicies.indexOf(valueNumbers.length - 1) + 1;
17
+
18
+ return resultInArr.slice(0, Math.max(firstPlaceholderIndex, resultLength)).join('');
19
+ }
20
+
21
+ const isPlaceholder = (_: string) => _ === '_';
22
+ const isDigit = (_: string) => /\d/.test(_);
23
+ const isWildcard = (_: string) => isPlaceholder(_) || isDigit(_);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.609",
3
+ "version": "0.14.616",
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": "79 kB",
213
+ "limit": "81 kB",
214
214
  "path": "bundle/bundle.umd.min.js"
215
215
  }
216
216
  ],
@@ -1,10 +1,13 @@
1
+ import { type FormState } from '../../../components/ApplicationLeadForm/getInitialFormState';
2
+ import { formatDate } from '../../../utils/formatDate';
3
+ import { formatPhone } from '../../../utils/formatPhone';
1
4
  import { type UpdateUserTaskBody } from '../updateUserTask';
2
5
 
3
6
  type getUpdateUserTaskDataType = {
4
7
  participantId: number;
5
8
  taskId: number;
6
9
  profileId: number;
7
- formData?: Record<string, any>;
10
+ formData: FormState;
8
11
  };
9
12
 
10
13
  export const getUpdateUserTaskData = ({
@@ -12,41 +15,52 @@ export const getUpdateUserTaskData = ({
12
15
  taskId,
13
16
  profileId,
14
17
  formData,
15
- }: getUpdateUserTaskDataType): UpdateUserTaskBody => ({
16
- sendToBank: true,
17
- taskKind: 'SHORT',
18
- task: {
19
- taskSource: globalThis.location.origin,
20
- id: taskId,
21
- participants: [
22
- {
23
- birthDate: formData?.birthDate,
24
- id: participantId,
25
- midname: formData?.midname,
26
- name: formData?.name,
27
- surname: formData?.surname,
28
- profile: {
29
- id: profileId,
30
- },
31
- participantContacts: [
32
- {
33
- contactTypeCd: {
34
- key: 'EMAIL',
35
- },
36
- value: formData?.email,
18
+ }: getUpdateUserTaskDataType): UpdateUserTaskBody => {
19
+ const {
20
+ name = '',
21
+ surname = '',
22
+ middleName = '',
23
+ birthday = '',
24
+ phone = '',
25
+ email = '',
26
+ } = formData;
27
+
28
+ return {
29
+ sendToBank: true,
30
+ taskKind: 'SHORT',
31
+ task: {
32
+ taskSource: globalThis.location.origin,
33
+ id: taskId,
34
+ participants: [
35
+ {
36
+ birthDate: formatDate(birthday, true),
37
+ id: participantId,
38
+ midname: middleName,
39
+ name: name,
40
+ surname: surname,
41
+ profile: {
42
+ id: profileId,
37
43
  },
38
- {
39
- contactTypeCd: {
40
- key: 'MAIN_PHONE',
44
+ participantContacts: [
45
+ {
46
+ contactTypeCd: {
47
+ key: 'EMAIL',
48
+ },
49
+ value: email,
41
50
  },
42
- value: formData?.phone,
51
+ {
52
+ contactTypeCd: {
53
+ key: 'MAIN_PHONE',
54
+ },
55
+ value: formatPhone(phone),
56
+ },
57
+ ],
58
+ roleCd: {
59
+ key: 'BORROWER',
60
+ value: 'Заемщик',
43
61
  },
44
- ],
45
- roleCd: {
46
- key: 'BORROWER',
47
- value: 'Заемщик',
48
62
  },
49
- },
50
- ],
51
- },
52
- });
63
+ ],
64
+ },
65
+ };
66
+ };
@@ -57,7 +57,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
57
57
  className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}
58
58
  >
59
59
  {renderTitle(_.title)}
60
- {renderInputs({ field, typeForm, inputs: _?.inputs })}
60
+ {renderInputs({ field, inputs: _?.inputs })}
61
61
  </div>
62
62
  ))}
63
63
  {renderSubmitButton(button)}
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-lines */
1
2
  import {
2
3
  FEEDBACK_METHOD,
3
4
  SERVICE_DIRECTIONS,
@@ -98,6 +99,7 @@ export interface FormState extends FormConsents {
98
99
  shareholderFlg?: boolean;
99
100
  legalEntityName?: string;
100
101
  bankEmployeeCode?: number;
102
+ partInBusiness?: number;
101
103
  }
102
104
 
103
105
  const initialFormState = {
@@ -139,7 +141,8 @@ export const getInitialFormState = (
139
141
  typeForm = '',
140
142
  ): FormState => {
141
143
  if (savedForm) {
142
- const formState = JSON.parse(savedForm) as FormState;
144
+ const formState =
145
+ typeof savedForm === 'string' ? (JSON.parse(savedForm) as FormState) : savedForm;
143
146
  formState.birthday = new Date(formState?.birthday || 0);
144
147
 
145
148
  return formState;
@@ -0,0 +1,6 @@
1
+ {
2
+ "content": {
3
+ "version": "primary",
4
+ "padding": ""
5
+ }
6
+ }