@redneckz/wildless-cms-uni-blocks 0.14.603 → 0.14.605

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 (375) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +367 -56
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  5. package/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  8. package/bundle/components/CreditForm/CreditForm.d.ts +13 -0
  9. package/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
  10. package/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
  11. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  12. package/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
  13. package/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  14. package/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  15. package/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  16. package/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  17. package/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  18. package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  19. package/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  20. package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  21. package/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  22. package/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  23. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  24. package/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  25. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  26. package/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
  27. package/dist/components/ApplicationForm/renderInputs.js +16 -0
  28. package/dist/components/ApplicationForm/renderInputs.js.map +1 -0
  29. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
  30. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  31. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  32. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  33. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  34. package/dist/components/Blocks.js +2 -0
  35. package/dist/components/Blocks.js.map +1 -1
  36. package/dist/components/Blocks.mobile.js +2 -0
  37. package/dist/components/Blocks.mobile.js.map +1 -1
  38. package/dist/components/CreditForm/CreditForm.d.ts +13 -0
  39. package/dist/components/CreditForm/CreditForm.js +40 -0
  40. package/dist/components/CreditForm/CreditForm.js.map +1 -0
  41. package/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
  42. package/dist/components/CreditForm/CreditFormContent.js +2 -0
  43. package/dist/components/CreditForm/CreditFormContent.js.map +1 -0
  44. package/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
  45. package/dist/components/CreditForm/CreditFormProgress.js +11 -0
  46. package/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
  47. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  48. package/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
  49. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  50. package/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
  51. package/dist/components/CreditForm/creditFormStepsData.js +217 -0
  52. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
  53. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  54. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
  55. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  56. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  57. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
  58. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  59. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  60. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
  61. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  62. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  63. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
  64. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  65. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  66. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
  67. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  68. package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  69. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
  70. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
  71. package/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  72. package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
  73. package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  74. package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  75. package/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
  76. package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
  77. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  78. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
  79. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  80. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  81. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
  82. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  83. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  84. package/dist/ui-kit/FormField/getField.js +20 -0
  85. package/dist/ui-kit/FormField/getField.js.map +1 -1
  86. package/dist/ui-kit/FormField/getObjectValidator.js +9 -0
  87. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  88. package/dist/ui-kit/InfoCard/InfoCard.js +1 -1
  89. package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  90. package/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  91. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  92. package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  93. package/lib/common.css +1 -1
  94. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  95. package/lib/components/ApplicationForm/renderInputs.d.ts +2 -0
  96. package/lib/components/ApplicationForm/renderInputs.js +13 -0
  97. package/lib/components/ApplicationForm/renderInputs.js.map +1 -0
  98. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
  99. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  100. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  101. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  102. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  103. package/lib/components/Blocks.js +2 -0
  104. package/lib/components/Blocks.js.map +1 -1
  105. package/lib/components/Blocks.mobile.js +2 -0
  106. package/lib/components/Blocks.mobile.js.map +1 -1
  107. package/lib/components/CreditForm/CreditForm.d.ts +13 -0
  108. package/lib/components/CreditForm/CreditForm.fixture.d.ts +6 -0
  109. package/lib/components/CreditForm/CreditForm.js +38 -0
  110. package/lib/components/CreditForm/CreditForm.js.map +1 -0
  111. package/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
  112. package/lib/components/CreditForm/CreditFormContent.js +2 -0
  113. package/lib/components/CreditForm/CreditFormContent.js.map +1 -0
  114. package/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
  115. package/lib/components/CreditForm/CreditFormProgress.js +9 -0
  116. package/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
  117. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  118. package/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
  119. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  120. package/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
  121. package/lib/components/CreditForm/creditFormStepsData.js +215 -0
  122. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
  123. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  124. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
  125. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  126. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  127. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
  128. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  129. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  130. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
  131. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  132. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  133. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
  134. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  135. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  136. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
  137. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  138. package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  139. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
  140. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
  141. package/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  142. package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
  143. package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  144. package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  145. package/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
  146. package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
  147. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  148. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
  149. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  150. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  151. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
  152. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  153. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  154. package/lib/ui-kit/FormField/getField.js +20 -0
  155. package/lib/ui-kit/FormField/getField.js.map +1 -1
  156. package/lib/ui-kit/FormField/getObjectValidator.js +9 -0
  157. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  158. package/lib/ui-kit/InfoCard/InfoCard.js +1 -1
  159. package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  160. package/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  161. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  162. package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  163. package/mobile/bundle/bundle.umd.js +367 -56
  164. package/mobile/bundle/bundle.umd.min.js +1 -1
  165. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  166. package/mobile/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
  167. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  168. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  169. package/mobile/bundle/components/CreditForm/CreditForm.d.ts +13 -0
  170. package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
  171. package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
  172. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  173. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
  174. package/mobile/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  175. package/mobile/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  176. package/mobile/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  177. package/mobile/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  178. package/mobile/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  179. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  180. package/mobile/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  181. package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  182. package/mobile/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  183. package/mobile/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  184. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  185. package/mobile/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  186. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  187. package/mobile/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
  188. package/mobile/dist/components/ApplicationForm/renderInputs.js +16 -0
  189. package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -0
  190. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
  191. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  192. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  193. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  194. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  195. package/mobile/dist/components/Blocks.js +2 -0
  196. package/mobile/dist/components/Blocks.js.map +1 -1
  197. package/mobile/dist/components/CreditForm/CreditForm.d.ts +13 -0
  198. package/mobile/dist/components/CreditForm/CreditForm.js +40 -0
  199. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -0
  200. package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
  201. package/mobile/dist/components/CreditForm/CreditFormContent.js +2 -0
  202. package/mobile/dist/components/CreditForm/CreditFormContent.js.map +1 -0
  203. package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
  204. package/mobile/dist/components/CreditForm/CreditFormProgress.js +11 -0
  205. package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
  206. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  207. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
  208. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  209. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
  210. package/mobile/dist/components/CreditForm/creditFormStepsData.js +217 -0
  211. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
  212. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  213. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
  214. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  215. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  216. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
  217. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  218. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  219. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
  220. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  221. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  222. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
  223. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  224. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  225. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
  226. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  227. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  228. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
  229. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
  230. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  231. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
  232. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  233. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  234. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
  235. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
  236. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  237. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
  238. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  239. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  240. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
  241. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  242. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  243. package/mobile/dist/ui-kit/FormField/getField.js +20 -0
  244. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  245. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +9 -0
  246. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  247. package/mobile/dist/ui-kit/InfoCard/InfoCard.js +1 -1
  248. package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  249. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  250. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  251. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  252. package/mobile/lib/common.css +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
  254. package/mobile/lib/components/ApplicationForm/renderInputs.d.ts +3 -0
  255. package/mobile/lib/components/ApplicationForm/renderInputs.js +13 -0
  256. package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -0
  257. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
  258. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  259. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
  260. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
  261. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  262. package/mobile/lib/components/Blocks.js +2 -0
  263. package/mobile/lib/components/Blocks.js.map +1 -1
  264. package/mobile/lib/components/CreditForm/CreditForm.d.ts +13 -0
  265. package/mobile/lib/components/CreditForm/CreditForm.js +38 -0
  266. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -0
  267. package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
  268. package/mobile/lib/components/CreditForm/CreditFormContent.js +2 -0
  269. package/mobile/lib/components/CreditForm/CreditFormContent.js.map +1 -0
  270. package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
  271. package/mobile/lib/components/CreditForm/CreditFormProgress.js +9 -0
  272. package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
  273. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  274. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
  275. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  276. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
  277. package/mobile/lib/components/CreditForm/creditFormStepsData.js +215 -0
  278. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
  279. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  280. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
  281. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  282. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  283. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
  284. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  285. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  286. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
  287. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  288. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  289. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
  290. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  291. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  292. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
  293. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  294. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
  295. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
  296. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
  297. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  298. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
  299. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  300. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
  301. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
  302. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
  303. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  304. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
  305. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  306. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  307. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
  308. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  309. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  310. package/mobile/lib/ui-kit/FormField/getField.js +20 -0
  311. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  312. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +9 -0
  313. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  314. package/mobile/lib/ui-kit/InfoCard/InfoCard.js +1 -1
  315. package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  316. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
  317. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  318. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  319. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  320. package/mobile/src/components/ApplicationForm/renderInputs.tsx +25 -0
  321. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
  322. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
  323. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
  324. package/mobile/src/components/Blocks.ts +2 -0
  325. package/mobile/src/components/CreditForm/CreditForm.tsx +76 -0
  326. package/mobile/src/components/CreditForm/CreditFormContent.ts +34 -0
  327. package/mobile/src/components/CreditForm/CreditFormProgress.tsx +27 -0
  328. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
  329. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +215 -0
  330. package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
  331. package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
  332. package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
  333. package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
  334. package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
  335. package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
  336. package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
  337. package/mobile/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
  338. package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
  339. package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
  340. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +11 -1
  341. package/mobile/src/ui-kit/FormField/getField.tsx +21 -0
  342. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
  343. package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
  344. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
  345. package/package.json +2 -2
  346. package/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  347. package/src/components/ApplicationForm/renderInputs.tsx +25 -0
  348. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
  349. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
  350. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
  351. package/src/components/Blocks.mobile.ts +2 -0
  352. package/src/components/Blocks.ts +2 -0
  353. package/src/components/CreditForm/CreditForm.fixture.tsx +6 -0
  354. package/src/components/CreditForm/CreditForm.tsx +76 -0
  355. package/src/components/CreditForm/CreditFormContent.ts +34 -0
  356. package/src/components/CreditForm/CreditFormProgress.tsx +27 -0
  357. package/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
  358. package/src/components/CreditForm/creditFormStepsData.tsx +215 -0
  359. package/src/icons/IconName.ts +6 -356
  360. package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
  361. package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
  362. package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
  363. package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
  364. package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
  365. package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
  366. package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
  367. package/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
  368. package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
  369. package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
  370. package/src/ui-kit/FormField/NameFieldDef.ts +11 -1
  371. package/src/ui-kit/FormField/getField.tsx +21 -0
  372. package/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
  373. package/src/ui-kit/InfoCard/InfoCard.fixture.tsx +1 -1
  374. package/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
  375. package/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
@@ -45,11 +45,19 @@ export declare type FieldVedDef = FieldDefaultDef & {
45
45
  fieldType: 'ved';
46
46
  defaultValue?: VedTypes;
47
47
  };
48
+ /**
49
+ * @title Текст для отображения в карточке информации
50
+ * @default {"fieldType": "info"}
51
+ */
52
+ export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
53
+ /** @default "info" */
54
+ fieldType: 'info';
55
+ };
48
56
  /**
49
57
  * @title Поле
50
58
  * @default { "fieldType": "common" }
51
59
  */
52
- export declare type FieldDef = FieldCommonDef | FieldVedDef;
60
+ export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
53
61
  /** @hidden */
54
62
  declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
55
63
  /**
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { GroupedConsentsProps } from '../ApplicationLeadForm/ApplicationLeadFormContent';
3
+ export declare const renderInputs: ({ field, typeForm, inputs }: GroupedConsentsProps) => JSX.Element | (JSX.Element | null)[];
@@ -20,7 +20,7 @@ export declare type ConditionFieldProps = {
20
20
  values: string[];
21
21
  };
22
22
  };
23
- export declare type FieldDefaultDef = Required & LabelProps & ConditionFieldProps & {
23
+ export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & {
24
24
  name: NameFieldDef;
25
25
  };
26
26
  /**
@@ -46,13 +46,21 @@ export declare type FieldVedDef = FieldDefaultDef & {
46
46
  fieldType: 'ved';
47
47
  defaultValue?: VedTypes;
48
48
  };
49
+ /**
50
+ * @title Текст для отображения в карточке информации
51
+ * @default {"fieldType": "info"}
52
+ */
53
+ export declare type FieldInfoDef = FieldDefaultDef & {
54
+ /** @default "info" */
55
+ fieldType: 'info';
56
+ };
49
57
  /**
50
58
  * @title Поле
51
59
  * @default { "fieldType": "common" }
52
60
  */
53
- export declare type FieldDef = FieldCommonDef | FieldVedDef;
61
+ export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
54
62
  /** @hidden */
55
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
63
+ export declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
56
64
  /**
57
65
  * @title Количество колонок
58
66
  * @enumNames ["Одна", "Две"]
@@ -78,5 +78,15 @@ export interface FormState extends FormConsents {
78
78
  armyIdFlg?: boolean;
79
79
  participantAddress?: string;
80
80
  participantDateRegistration?: Date;
81
+ retirementIncome?: number;
82
+ otherIncome?: number;
83
+ mandatoryIncome?: number;
84
+ otherPayments?: number;
85
+ creditInRshbCd?: string;
86
+ disablePeopleFlg?: boolean;
87
+ bankruptcyFlg?: boolean;
88
+ shareholderFlg?: boolean;
89
+ legalEntityName?: string;
90
+ bankEmployeeCode?: number;
81
91
  }
82
92
  export declare const getInitialFormState: (inputs: FieldDef[], savedForm: string | null, typeForm?: string) => FormState;
@@ -0,0 +1,13 @@
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
+ import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
4
+ import { type FormState } from '../ApplicationForm/getInitialFormState';
5
+ import { type CreditFormContent } from './CreditFormContent';
6
+ export interface StepProps {
7
+ typeForm: string;
8
+ sections: SectionsProps[];
9
+ field: FormFieldRegisterer<FormState>;
10
+ }
11
+ export interface CreditFormProps extends CreditFormContent, UniBlockProps {
12
+ }
13
+ export declare const CreditForm: import("@redneckz/uni-jsx").UNIComponent<CreditFormProps, any, any>;
@@ -0,0 +1,28 @@
1
+ import { type TextProps, type TitleProps } from '../../model/HeadlineType';
2
+ import { type Target } from '../../model/LinkProps';
3
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
4
+ import { type EndpointType, type SectionsProps, type SubmitButtonProps } from '../ApplicationForm/ApplicationFormContent';
5
+ import { type TypeFormFieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
6
+ /**
7
+ * @title Форма заявки на потребительский кредит настраиваемая
8
+ */
9
+ export declare type CreditFormContent = UniBlockContent & TitleProps & {
10
+ /** @title Кнопка */
11
+ button?: SubmitButtonProps;
12
+ /**
13
+ * @title Условия передачи данных
14
+ * @required ["text", "href"]
15
+ */
16
+ link?: TextProps & {
17
+ /** @title URL (href) */
18
+ href?: string;
19
+ /** @default "" */
20
+ target?: Target;
21
+ };
22
+ /** @title Номер кредитной программы */
23
+ programId?: string;
24
+ typeForm?: TypeFormFieldDef;
25
+ /** @hidden */
26
+ sections?: SectionsProps[];
27
+ endpoint?: EndpointType;
28
+ };
@@ -0,0 +1,6 @@
1
+ export interface CreditFormProgressProps {
2
+ step: number;
3
+ totalSteps: number;
4
+ stepsTitles?: string[];
5
+ }
6
+ export declare const CreditFormProgress: import("@redneckz/uni-jsx").UNIComponent<CreditFormProgressProps, any, any>;
@@ -0,0 +1,6 @@
1
+ export interface StepsNavigationButtonsProps {
2
+ step: number;
3
+ setStep: (step: number) => void;
4
+ totalSteps: number;
5
+ }
6
+ export declare const StepsNavigationButtons: import("@redneckz/uni-jsx").UNIComponent<StepsNavigationButtonsProps, any, any>;
@@ -0,0 +1,140 @@
1
+ export declare const stepsSectionsMap: {
2
+ 1: ({
3
+ title: string;
4
+ columns: number;
5
+ inputs: ({
6
+ fieldType: string;
7
+ name: string;
8
+ required: boolean;
9
+ dadata: boolean;
10
+ } | {
11
+ fieldType: string;
12
+ name: string;
13
+ dadata: boolean;
14
+ required?: undefined;
15
+ } | {
16
+ fieldType: string;
17
+ name: string;
18
+ required: boolean;
19
+ dadata?: undefined;
20
+ })[];
21
+ } | {
22
+ inputs: ({
23
+ fieldType: string;
24
+ name: string;
25
+ required: boolean;
26
+ dadata: boolean;
27
+ } | {
28
+ fieldType: string;
29
+ name: string;
30
+ required: boolean;
31
+ dadata?: undefined;
32
+ })[];
33
+ title?: undefined;
34
+ columns?: undefined;
35
+ })[];
36
+ 2: ({
37
+ title: string;
38
+ inputs: never[];
39
+ columns?: undefined;
40
+ } | {
41
+ inputs: {
42
+ fieldType: string;
43
+ text: string;
44
+ }[];
45
+ title?: undefined;
46
+ columns?: undefined;
47
+ } | {
48
+ inputs: ({
49
+ fieldType: string;
50
+ name: string;
51
+ required: boolean;
52
+ dadata?: undefined;
53
+ } | {
54
+ fieldType: string;
55
+ name: string;
56
+ required: boolean;
57
+ dadata: boolean;
58
+ })[];
59
+ title?: undefined;
60
+ columns?: undefined;
61
+ } | {
62
+ columns: number;
63
+ inputs: ({
64
+ fieldType: string;
65
+ name: string;
66
+ required: boolean;
67
+ dadata: boolean;
68
+ } | {
69
+ fieldType: string;
70
+ name: string;
71
+ required: boolean;
72
+ dadata?: undefined;
73
+ })[];
74
+ title?: undefined;
75
+ } | {
76
+ inputs: ({
77
+ fieldType: string;
78
+ name: string;
79
+ label: string;
80
+ required: boolean;
81
+ } | {
82
+ fieldType: string;
83
+ name: string;
84
+ required: boolean;
85
+ label?: undefined;
86
+ })[];
87
+ title?: undefined;
88
+ columns?: undefined;
89
+ })[];
90
+ 3: ({
91
+ title: string;
92
+ columns?: undefined;
93
+ inputs?: undefined;
94
+ } | {
95
+ columns: number;
96
+ inputs: {
97
+ fieldType: string;
98
+ name: string;
99
+ }[];
100
+ title?: undefined;
101
+ } | {
102
+ inputs: {
103
+ fieldType: string;
104
+ text: string;
105
+ }[];
106
+ title?: undefined;
107
+ columns?: undefined;
108
+ })[];
109
+ 4: ({
110
+ title: string;
111
+ columns: number;
112
+ inputs: never[];
113
+ } | {
114
+ inputs: {
115
+ fieldType: string;
116
+ name: string;
117
+ }[];
118
+ title?: undefined;
119
+ columns?: undefined;
120
+ })[];
121
+ 5: ({
122
+ title: string;
123
+ columns: number;
124
+ inputs: never[];
125
+ } | {
126
+ inputs: {
127
+ fieldType: string;
128
+ name: string;
129
+ }[];
130
+ title?: undefined;
131
+ columns?: undefined;
132
+ } | {
133
+ inputs: {
134
+ fieldType: string;
135
+ text: string;
136
+ }[];
137
+ title?: undefined;
138
+ columns?: undefined;
139
+ })[];
140
+ };
@@ -0,0 +1,2 @@
1
+ import type { CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const BankEmpoleeCodeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const BankruptcyFlgField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const CreditInRshbCdField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const DisablePeopleFlgField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const LegalEntityNameField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import type { CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import type { CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const OtherIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import type { CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import type { CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const RetirementIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const ShareholderFlgField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1 +1 @@
1
- export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'education' | 'housing' | 'employment' | 'organization' | 'amountWorkers' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'birthPlace' | 'sex' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg' | 'legalForm' | 'organizationName' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'fullAddress' | 'familyStatus' | 'children' | 'familyMembers' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'participantAddress' | 'participantDateRegistration';
1
+ export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'education' | 'housing' | 'employment' | 'organization' | 'amountWorkers' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'birthPlace' | 'sex' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg' | 'legalForm' | 'organizationName' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'fullAddress' | 'familyStatus' | 'children' | 'familyMembers' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'participantAddress' | 'participantDateRegistration' | 'retirementIncome' | 'otherIncome' | 'mandatoryIncome' | 'otherPayments' | 'creditInRshbCd' | 'disablePeopleFlg' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'bankEmployeeCode';
@@ -1,6 +1,7 @@
1
1
  interface ProgressBarProps {
2
2
  step?: number;
3
3
  description?: string;
4
+ showPercentage?: boolean;
4
5
  }
5
6
  export declare const ProgressBar: import("@redneckz/uni-jsx").UNIComponent<ProgressBarProps, any, any>;
6
7
  export {};
@@ -45,11 +45,19 @@ export declare type FieldVedDef = FieldDefaultDef & {
45
45
  fieldType: 'ved';
46
46
  defaultValue?: VedTypes;
47
47
  };
48
+ /**
49
+ * @title Текст для отображения в карточке информации
50
+ * @default {"fieldType": "info"}
51
+ */
52
+ export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
53
+ /** @default "info" */
54
+ fieldType: 'info';
55
+ };
48
56
  /**
49
57
  * @title Поле
50
58
  * @default { "fieldType": "common" }
51
59
  */
52
- export declare type FieldDef = FieldCommonDef | FieldVedDef;
60
+ export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
53
61
  /** @hidden */
54
62
  declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
55
63
  /**
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { GroupedConsentsProps } from '../ApplicationLeadForm/ApplicationLeadFormContent';
3
+ export declare const renderInputs: ({ field, typeForm, inputs }: GroupedConsentsProps) => JSX.Element | (JSX.Element | null)[];
@@ -0,0 +1,16 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderInputs = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const getField_1 = require("../../ui-kit/FormField/getField");
5
+ const consents_1 = require("../ApplicationLeadForm/consents");
6
+ const GroupedConsents_1 = require("../ApplicationLeadForm/GroupedConsents");
7
+ const renderInputs = ({ field, typeForm = '', inputs }) => {
8
+ const { consentInputs, restInputs } = splitInputs(inputs || []);
9
+ return consentInputs.length > 2 ? ((0, jsx_runtime_1.jsxs)("div", { children: [restInputs.map((0, getField_1.getField)(field, typeForm)), (0, jsx_runtime_1.jsx)(GroupedConsents_1.GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map((0, getField_1.getField)(field, typeForm)));
10
+ };
11
+ exports.renderInputs = renderInputs;
12
+ const splitInputs = (inputs) => ({
13
+ consentInputs: inputs?.filter((_) => Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
14
+ restInputs: inputs?.filter((_) => !Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
15
+ });
16
+ //# sourceMappingURL=renderInputs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderInputs.tsx"],"names":[],"mappings":";;;AAAA,8DAA2D;AAK3D,8DAA2D;AAC3D,4EAAyE;AAElE,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,EAAE,EAAE,MAAM,EAAwB,EAAE,EAAE;IACrF,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAEhE,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAChC,4CACG,UAAU,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,EAC1C,uBAAC,iCAAe,IAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,IACpD,CACP,CAAC,CAAC,CAAC,CACF,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAC/C,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,YAAY,gBAWvB;AAEF,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IAC5C,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;IAClF,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;CACjF,CAAC,CAAC"}
@@ -6,14 +6,12 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
6
  const useForm_1 = require("../../hooks/useForm");
7
7
  const useLocalStorage_1 = require("../../hooks/useLocalStorage");
8
8
  const ApplicationFormLayout_1 = require("../../ui-kit/ApplicationFormLayout/ApplicationFormLayout");
9
- const getField_1 = require("../../ui-kit/FormField/getField");
10
9
  const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
11
10
  const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
12
11
  const useResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/useResponseTypeDialog");
13
12
  const style_1 = require("../../utils/style");
14
- const consents_1 = require("./consents");
13
+ const renderInputs_1 = require("../ApplicationForm/renderInputs");
15
14
  const getInitialFormState_1 = require("./getInitialFormState");
16
- const GroupedConsents_1 = require("./GroupedConsents");
17
15
  const renderSubmitButton_1 = require("./renderSubmitButton");
18
16
  const useApplicationLeadApi_1 = require("./useApplicationLeadApi");
19
17
  const useInitApplicationLead_1 = require("./useInitApplicationLead");
@@ -39,14 +37,6 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
39
37
  reset();
40
38
  }
41
39
  }, [responseType]);
42
- return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), renderInputs({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button)] }) }));
43
- });
44
- const renderInputs = ({ field, typeForm = '', inputs }) => {
45
- const { consentInputs, restInputs } = splitInputs(inputs || []);
46
- return consentInputs.length > 2 ? ((0, jsx_runtime_1.jsxs)("div", { children: [restInputs.map((0, getField_1.getField)(field, typeForm)), (0, jsx_runtime_1.jsx)(GroupedConsents_1.GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map((0, getField_1.getField)(field, typeForm)));
47
- };
48
- const splitInputs = (inputs) => ({
49
- consentInputs: inputs?.filter((_) => Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
50
- restInputs: inputs?.filter((_) => !Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
40
+ return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (0, renderInputs_1.renderInputs)({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button)] }) }));
51
41
  });
52
42
  //# sourceMappingURL=ApplicationLeadForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;AAC9D,oGAAiG;AACjG,8DAA2D;AAC3D,8EAA4E;AAC5E,oEAAiE;AACjE,iGAA8F;AAE9F,6CAA0C;AAM1C,yCAAsC;AACtC,+DAA4D;AAC5D,uDAAoD;AACpD,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAIrD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,CAAC;IACzE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAqB,EAAE,CAAC,CAAC;IACzE,IAAA,+CAAsB,GAAE,CAAC;IACzB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,iCAAe,EAAS,UAAU,CAAC,CAAC;IACpE,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACzE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,IAAA,6CAAqB,EAAC;QAC7D,MAAM;QACN,SAA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eAAe,CAAC,EAAE,CAAC,CAAC;YACpB,KAAK,EAAE,CAAC;SACT;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,uBAAC,6CAAqB,IACpB,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,KACR,IAAI,YAER,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,iCAEE,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aAE7D,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,IAAA,2BAAY,EAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAJhD,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,CAAC,IACtB,GACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -20,7 +20,7 @@ export declare type ConditionFieldProps = {
20
20
  values: string[];
21
21
  };
22
22
  };
23
- export declare type FieldDefaultDef = Required & LabelProps & ConditionFieldProps & {
23
+ export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & {
24
24
  name: NameFieldDef;
25
25
  };
26
26
  /**
@@ -46,13 +46,21 @@ export declare type FieldVedDef = FieldDefaultDef & {
46
46
  fieldType: 'ved';
47
47
  defaultValue?: VedTypes;
48
48
  };
49
+ /**
50
+ * @title Текст для отображения в карточке информации
51
+ * @default {"fieldType": "info"}
52
+ */
53
+ export declare type FieldInfoDef = FieldDefaultDef & {
54
+ /** @default "info" */
55
+ fieldType: 'info';
56
+ };
49
57
  /**
50
58
  * @title Поле
51
59
  * @default { "fieldType": "common" }
52
60
  */
53
- export declare type FieldDef = FieldCommonDef | FieldVedDef;
61
+ export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
54
62
  /** @hidden */
55
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
63
+ export declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
56
64
  /**
57
65
  * @title Количество колонок
58
66
  * @enumNames ["Одна", "Две"]
@@ -78,5 +78,15 @@ export interface FormState extends FormConsents {
78
78
  armyIdFlg?: boolean;
79
79
  participantAddress?: string;
80
80
  participantDateRegistration?: Date;
81
+ retirementIncome?: number;
82
+ otherIncome?: number;
83
+ mandatoryIncome?: number;
84
+ otherPayments?: number;
85
+ creditInRshbCd?: string;
86
+ disablePeopleFlg?: boolean;
87
+ bankruptcyFlg?: boolean;
88
+ shareholderFlg?: boolean;
89
+ legalEntityName?: string;
90
+ bankEmployeeCode?: number;
81
91
  }
82
92
  export declare const getInitialFormState: (inputs: FieldDef[], savedForm: string | null, typeForm?: string) => FormState;
@@ -1 +1 @@
1
- {"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;AAqFnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,M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AAC;QAExD,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,CAAC,SAAS,KAAK,KAAK,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC;KACvE,CAAC,CACH,CAAC;IAEF,OAAO,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC;AACvE,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
1
+ {"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;AA+FnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,gCAAe,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,yBAAa,CAAC,CAAC,CAAC;IAC7B,cAAc,EAAE,2BAAe,CAAC,CAAC,CAAC;IAClC,gBAAgB,EAAE,8BAAkB,CAAC,CAAC,CAAC;IAC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endationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
21
21
  const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
22
22
  const ContactsBlock_1 = require("./ContactsBlock/ContactsBlock");
23
+ const CreditForm_1 = require("./CreditForm/CreditForm");
23
24
  const DepositFiltration_1 = require("./DepositFiltration/DepositFiltration");
24
25
  const Depository_1 = require("./Depository/Depository");
25
26
  const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
@@ -73,6 +74,7 @@ exports.Blocks = {
73
74
  CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
74
75
  CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
75
76
  ContactsBlock: ContactsBlock_1.ContactsBlock,
77
+ CreditForm: CreditForm_1.CreditForm,
76
78
  DepositFiltration: DepositFiltration_1.DepositFiltration,
77
79
  Depository: Depository_1.Depository,
78
80
  ErrorBlock: ErrorBlock_1.ErrorBlock,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,2DAAwD;AACxD,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,iEAA8D;AAC9D,gFAA6E;AAC7E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U,EAAV,uBAAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
@@ -19,6 +19,7 @@ const CarouselCatalogCard_1 = require("./CarouselCatalogCard/CarouselCatalogCard
19
19
  const CarouselLinks_1 = require("./CarouselLinks/CarouselLinks");
20
20
  const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
21
21
  const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
22
+ const CreditForm_1 = require("./CreditForm/CreditForm");
22
23
  const DepositFiltration_1 = require("./DepositFiltration/DepositFiltration");
23
24
  const Depository_1 = require("./Depository/Depository");
24
25
  const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
@@ -67,6 +68,7 @@ exports.Blocks = {
67
68
  CarouselLinks: CarouselLinks_1.CarouselLinks,
68
69
  CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
69
70
  CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
71
+ CreditForm: CreditForm_1.CreditForm,
70
72
  DepositFiltration: DepositFiltration_1.DepositFiltration,
71
73
  Depository: Depository_1.Depository,
72
74
  ErrorBlock: ErrorBlock_1.ErrorBlock,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;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AAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;CACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
+ import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
4
+ import { type FormState } from '../ApplicationForm/getInitialFormState';
5
+ import { type CreditFormContent } from './CreditFormContent';
6
+ export interface StepProps {
7
+ typeForm: string;
8
+ sections: SectionsProps[];
9
+ field: FormFieldRegisterer<FormState>;
10
+ }
11
+ export interface CreditFormProps extends CreditFormContent, UniBlockProps {
12
+ }
13
+ export declare const CreditForm: import("@redneckz/uni-jsx").UNIComponent<CreditFormProps, any, any>;
@@ -0,0 +1,40 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CreditForm = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useForm_1 = require("../../hooks/useForm");
7
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
8
+ const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
9
+ const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
10
+ const InfoCard_1 = require("../../ui-kit/InfoCard/InfoCard");
11
+ const style_1 = require("../../utils/style");
12
+ const renderInputs_1 = require("../ApplicationForm/renderInputs");
13
+ const getInitialFormState_1 = require("../ApplicationLeadForm/getInitialFormState");
14
+ const CreditFormProgress_1 = require("./CreditFormProgress");
15
+ const creditFormStepsData_1 = require("./creditFormStepsData");
16
+ const StepsNavigationButtons_1 = require("./StepsNavigationButtons");
17
+ const STEPS_COUNT = 5;
18
+ const STEPS_TITLES = [
19
+ 'Персональные данные',
20
+ 'Данные о трудоустройстве',
21
+ 'Данные о доходах и расходах',
22
+ 'Дополнительные сведения',
23
+ 'Отделение Банка',
24
+ ];
25
+ exports.CreditForm = (0, uni_jsx_1.JSX)(({ className, typeForm = '', sections = [], ...rest }) => {
26
+ const [step, setStep] = (0, hooks_1.useState)(1);
27
+ const inputs = (sections?.flatMap((_) => _?.inputs) || []);
28
+ const initialFormState = (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm);
29
+ const handleSubmit = () => false;
30
+ const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
31
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [(0, jsx_runtime_1.jsx)(CreditFormProgress_1.CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep({ sections: creditFormStepsData_1.stepsSectionsMap[step], typeForm, field }), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, setStep: setStep, totalSteps: STEPS_COUNT })] }) })] }) }));
32
+ });
33
+ const renderStep = ({ sections, field, typeForm }) => {
34
+ return sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [renderInfo(_?.inputs), (0, renderTitle_1.renderTitle)(_?.title), (0, renderInputs_1.renderInputs)({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`)));
35
+ };
36
+ const renderInfo = (inputs = []) => {
37
+ const infoInputs = inputs.filter((_) => _.fieldType === 'info');
38
+ return infoInputs.length ? infoInputs.map(({ text }) => (0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: text })) : null;
39
+ };
40
+ //# sourceMappingURL=CreditForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreditForm.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,iDAAwE;AACxE,4DAAyD;AACzD,8EAA4E;AAC5E,oEAAiE;AACjE,6DAA0D;AAE1D,6CAA0C;AAG1C,kEAA+D;AAE/D,oFAAiF;AAEjF,6DAA0D;AAC1D,+DAAyD;AACzD,qEAAkE;AAElE,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,YAAY,GAAG;IACnB,qBAAqB;IACrB,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,iBAAiB;CAClB,CAAC;AAUW,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,CAAC;IACzE,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC/D,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC;IAEjC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,EAAE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