@redneckz/wildless-cms-uni-blocks 0.14.730 → 0.14.732

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 (411) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +30 -64
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  6. package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  7. package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  9. package/bundle/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  10. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  11. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  12. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  13. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  14. package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
  15. package/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
  16. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  17. package/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
  18. package/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -2
  19. package/bundle/components/CreditForm/renderInputs.d.ts +2 -2
  20. package/bundle/components/CreditForm/renderStep.d.ts +3 -4
  21. package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  22. package/bundle/model/FormTypeFieldDef.d.ts +2 -0
  23. package/bundle/model/InputSectionsType.d.ts +10 -1
  24. package/bundle/services/retail/inputs.d.ts +1 -0
  25. package/bundle/services/retail/model/RetailFormContent.d.ts +3 -33
  26. package/bundle/services/retail/utils/calculateInputs.d.ts +3 -2
  27. package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  28. package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  29. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  30. package/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  31. package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  32. package/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  33. package/bundle/ui-kit/FormField/getPremium.d.ts +2 -2
  34. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  35. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  36. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  37. package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  38. package/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  39. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  40. package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  41. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  42. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  43. package/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -35
  44. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  45. package/dist/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  46. package/dist/components/ApplicationLeadForm/renderInputs.js +2 -2
  47. package/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -1
  48. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  49. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  50. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  51. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  52. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  53. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  54. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  55. package/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
  56. package/dist/components/CreditCardForm/renderStep.d.ts +1 -2
  57. package/dist/components/CreditCardForm/renderStep.js +1 -3
  58. package/dist/components/CreditCardForm/renderStep.js.map +1 -1
  59. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  60. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  61. package/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
  62. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  63. package/dist/components/CreditForm/creditFormStepsData.d.ts +2 -2
  64. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  65. package/dist/components/CreditForm/renderInputs.d.ts +2 -2
  66. package/dist/components/CreditForm/renderStep.d.ts +3 -4
  67. package/dist/components/CreditForm/renderStep.js +1 -2
  68. package/dist/components/CreditForm/renderStep.js.map +1 -1
  69. package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  70. package/dist/model/FormTypeFieldDef.d.ts +2 -0
  71. package/dist/model/FormTypeFieldDef.js +2 -0
  72. package/dist/model/FormTypeFieldDef.js.map +1 -0
  73. package/dist/model/InputSectionsType.d.ts +10 -1
  74. package/dist/services/retail/content.js +12 -8
  75. package/dist/services/retail/content.js.map +1 -1
  76. package/dist/services/retail/inputs.d.ts +1 -0
  77. package/dist/services/retail/inputs.js +2 -0
  78. package/dist/services/retail/inputs.js.map +1 -1
  79. package/dist/services/retail/model/RetailFormContent.d.ts +3 -33
  80. package/dist/services/retail/model/RetailFormContent.js +0 -2
  81. package/dist/services/retail/model/RetailFormContent.js.map +1 -1
  82. package/dist/services/retail/utils/calculateInputs.d.ts +3 -2
  83. package/dist/services/retail/utils/calculateInputs.js.map +1 -1
  84. package/dist/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  85. package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  86. package/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  87. package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  88. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  89. package/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  90. package/dist/ui-kit/FormField/getField.js.map +1 -1
  91. package/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  92. package/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  93. package/dist/ui-kit/FormField/getPremium.d.ts +2 -2
  94. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  95. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  96. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  97. package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  98. package/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  99. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  100. package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  101. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  102. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  103. package/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -35
  104. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  105. package/lib/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  106. package/lib/components/ApplicationLeadForm/renderInputs.js +2 -2
  107. package/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -1
  108. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  109. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  110. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  111. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  112. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  113. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  114. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  115. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
  116. package/lib/components/CreditCardForm/renderStep.d.ts +1 -2
  117. package/lib/components/CreditCardForm/renderStep.js +2 -4
  118. package/lib/components/CreditCardForm/renderStep.js.map +1 -1
  119. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  120. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  121. package/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
  122. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  123. package/lib/components/CreditForm/creditFormStepsData.d.ts +2 -2
  124. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  125. package/lib/components/CreditForm/renderInputs.d.ts +2 -2
  126. package/lib/components/CreditForm/renderStep.d.ts +3 -4
  127. package/lib/components/CreditForm/renderStep.js +1 -2
  128. package/lib/components/CreditForm/renderStep.js.map +1 -1
  129. package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  130. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  131. package/lib/model/FormTypeFieldDef.d.ts +2 -0
  132. package/lib/model/FormTypeFieldDef.js +2 -0
  133. package/lib/model/FormTypeFieldDef.js.map +1 -0
  134. package/lib/model/InputSectionsType.d.ts +10 -1
  135. package/lib/services/retail/content.js +12 -8
  136. package/lib/services/retail/content.js.map +1 -1
  137. package/lib/services/retail/inputs.d.ts +1 -0
  138. package/lib/services/retail/inputs.js +2 -0
  139. package/lib/services/retail/inputs.js.map +1 -1
  140. package/lib/services/retail/model/RetailFormContent.d.ts +3 -33
  141. package/lib/services/retail/model/RetailFormContent.js +0 -2
  142. package/lib/services/retail/model/RetailFormContent.js.map +1 -1
  143. package/lib/services/retail/utils/calculateInputs.d.ts +3 -2
  144. package/lib/services/retail/utils/calculateInputs.js.map +1 -1
  145. package/lib/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  146. package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  147. package/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  148. package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  149. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  150. package/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  151. package/lib/ui-kit/FormField/getField.js.map +1 -1
  152. package/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  153. package/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  154. package/lib/ui-kit/FormField/getPremium.d.ts +2 -2
  155. package/mobile/bundle/bundle.umd.js +30 -64
  156. package/mobile/bundle/bundle.umd.min.js +1 -1
  157. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  158. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  159. package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  160. package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  161. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  162. package/mobile/bundle/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  163. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  164. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  165. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  166. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  167. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
  168. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
  169. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  170. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
  171. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -2
  172. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -2
  173. package/mobile/bundle/components/CreditForm/renderStep.d.ts +3 -4
  174. package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  175. package/mobile/bundle/model/FormTypeFieldDef.d.ts +2 -0
  176. package/mobile/bundle/model/InputSectionsType.d.ts +10 -1
  177. package/mobile/bundle/services/retail/inputs.d.ts +1 -0
  178. package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +3 -33
  179. package/mobile/bundle/services/retail/utils/calculateInputs.d.ts +3 -2
  180. package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  181. package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  182. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  183. package/mobile/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  184. package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  185. package/mobile/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  186. package/mobile/bundle/ui-kit/FormField/getPremium.d.ts +2 -2
  187. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  188. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  189. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  190. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  191. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  192. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  193. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  194. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  195. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  196. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -35
  197. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  198. package/mobile/dist/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  199. package/mobile/dist/components/ApplicationLeadForm/renderInputs.js +2 -2
  200. package/mobile/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -1
  201. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  202. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  203. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  204. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  205. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  206. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  207. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  208. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
  209. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +1 -2
  210. package/mobile/dist/components/CreditCardForm/renderStep.js +1 -3
  211. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
  212. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  213. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  214. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
  215. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  216. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +2 -2
  217. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  218. package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -2
  219. package/mobile/dist/components/CreditForm/renderStep.d.ts +3 -4
  220. package/mobile/dist/components/CreditForm/renderStep.js +1 -2
  221. package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
  222. package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  223. package/mobile/dist/model/FormTypeFieldDef.d.ts +2 -0
  224. package/mobile/dist/model/FormTypeFieldDef.js +2 -0
  225. package/mobile/dist/model/FormTypeFieldDef.js.map +1 -0
  226. package/mobile/dist/model/InputSectionsType.d.ts +10 -1
  227. package/mobile/dist/services/retail/content.js +12 -8
  228. package/mobile/dist/services/retail/content.js.map +1 -1
  229. package/mobile/dist/services/retail/inputs.d.ts +1 -0
  230. package/mobile/dist/services/retail/inputs.js +2 -0
  231. package/mobile/dist/services/retail/inputs.js.map +1 -1
  232. package/mobile/dist/services/retail/model/RetailFormContent.d.ts +3 -33
  233. package/mobile/dist/services/retail/model/RetailFormContent.js +0 -2
  234. package/mobile/dist/services/retail/model/RetailFormContent.js.map +1 -1
  235. package/mobile/dist/services/retail/utils/calculateInputs.d.ts +3 -2
  236. package/mobile/dist/services/retail/utils/calculateInputs.js.map +1 -1
  237. package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  238. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  239. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  240. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  241. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  242. package/mobile/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  243. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  244. package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  245. package/mobile/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  246. package/mobile/dist/ui-kit/FormField/getPremium.d.ts +2 -2
  247. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -12
  248. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  249. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +3 -60
  250. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -3
  251. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  252. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  253. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -2
  254. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  255. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -2
  256. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -35
  257. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  258. package/mobile/lib/components/ApplicationLeadForm/renderInputs.d.ts +1 -1
  259. package/mobile/lib/components/ApplicationLeadForm/renderInputs.js +2 -2
  260. package/mobile/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -1
  261. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
  262. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  263. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +2 -2
  264. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  265. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +4 -5
  266. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +2 -2
  267. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  268. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
  269. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +1 -2
  270. package/mobile/lib/components/CreditCardForm/renderStep.js +2 -4
  271. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
  272. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  273. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  274. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
  275. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  276. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +2 -2
  277. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  278. package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -2
  279. package/mobile/lib/components/CreditForm/renderStep.d.ts +3 -4
  280. package/mobile/lib/components/CreditForm/renderStep.js +1 -2
  281. package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
  282. package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  283. package/mobile/lib/model/FormTypeFieldDef.d.ts +2 -0
  284. package/mobile/lib/model/FormTypeFieldDef.js +2 -0
  285. package/mobile/lib/model/FormTypeFieldDef.js.map +1 -0
  286. package/mobile/lib/model/InputSectionsType.d.ts +10 -1
  287. package/mobile/lib/services/retail/content.js +12 -8
  288. package/mobile/lib/services/retail/content.js.map +1 -1
  289. package/mobile/lib/services/retail/inputs.d.ts +1 -0
  290. package/mobile/lib/services/retail/inputs.js +2 -0
  291. package/mobile/lib/services/retail/inputs.js.map +1 -1
  292. package/mobile/lib/services/retail/model/RetailFormContent.d.ts +3 -33
  293. package/mobile/lib/services/retail/model/RetailFormContent.js +0 -2
  294. package/mobile/lib/services/retail/model/RetailFormContent.js.map +1 -1
  295. package/mobile/lib/services/retail/utils/calculateInputs.d.ts +3 -2
  296. package/mobile/lib/services/retail/utils/calculateInputs.js.map +1 -1
  297. package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +5 -2
  298. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  299. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  300. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  301. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  302. package/mobile/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +1 -1
  303. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  304. package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  305. package/mobile/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  306. package/mobile/lib/ui-kit/FormField/getPremium.d.ts +2 -2
  307. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -33
  308. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -2
  309. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +4 -72
  310. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +48 -54
  311. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +2 -2
  312. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -43
  313. package/mobile/src/components/ApplicationLeadForm/renderInputs.tsx +5 -5
  314. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -2
  315. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +2 -2
  316. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +4 -5
  317. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +4 -3
  318. package/mobile/src/components/CreditCardForm/renderInputs.tsx +2 -2
  319. package/mobile/src/components/CreditCardForm/renderStep.tsx +2 -11
  320. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -2
  321. package/mobile/src/components/CreditForm/CreditFormStep.tsx +4 -4
  322. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  323. package/mobile/src/components/CreditForm/renderInputs.tsx +2 -2
  324. package/mobile/src/components/CreditForm/renderStep.tsx +3 -7
  325. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +2 -2
  326. package/mobile/src/model/FormTypeFieldDef.ts +20 -0
  327. package/mobile/src/model/InputSectionsType.ts +12 -1
  328. package/mobile/src/services/retail/content.tsx +12 -8
  329. package/mobile/src/services/retail/inputs.tsx +2 -0
  330. package/mobile/src/services/retail/model/RetailFormContent.ts +4 -61
  331. package/mobile/src/services/retail/utils/calculateInputs.ts +3 -2
  332. package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +6 -5
  333. package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +2 -2
  334. package/mobile/src/ui-kit/FormField/Fields/EmailField.tsx +1 -1
  335. package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  336. package/mobile/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +1 -1
  337. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  338. package/mobile/src/ui-kit/FormField/getConsentDataProcessing.tsx +1 -1
  339. package/mobile/src/ui-kit/FormField/getField.tsx +3 -5
  340. package/mobile/src/ui-kit/FormField/getNamesFromInput.tsx +1 -1
  341. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
  342. package/mobile/src/ui-kit/FormField/getPremium.tsx +2 -2
  343. package/package.json +1 -1
  344. package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -33
  345. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -2
  346. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +4 -72
  347. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +48 -54
  348. package/src/components/ApplicationLeadForm/applicationFormData.tsx +2 -2
  349. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -43
  350. package/src/components/ApplicationLeadForm/renderInputs.tsx +5 -5
  351. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -2
  352. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +2 -2
  353. package/src/components/CreditCardForm/CreditCardFormContent.ts +4 -5
  354. package/src/components/CreditCardForm/CreditCardFormStep.tsx +4 -3
  355. package/src/components/CreditCardForm/renderInputs.tsx +2 -2
  356. package/src/components/CreditCardForm/renderStep.tsx +2 -11
  357. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -2
  358. package/src/components/CreditForm/CreditFormStep.tsx +4 -4
  359. package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  360. package/src/components/CreditForm/renderInputs.tsx +2 -2
  361. package/src/components/CreditForm/renderStep.tsx +3 -7
  362. package/src/components/CreditForm/useCreditFormAPI.tsx +2 -2
  363. package/src/model/FormTypeFieldDef.ts +20 -0
  364. package/src/model/InputSectionsType.ts +12 -1
  365. package/src/services/retail/content.tsx +12 -8
  366. package/src/services/retail/inputs.tsx +2 -0
  367. package/src/services/retail/model/RetailFormContent.ts +4 -61
  368. package/src/services/retail/utils/calculateInputs.ts +3 -2
  369. package/src/ui-kit/FormField/CustomFieldProps.ts +6 -5
  370. package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +2 -2
  371. package/src/ui-kit/FormField/Fields/EmailField.tsx +1 -1
  372. package/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  373. package/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +1 -1
  374. package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  375. package/src/ui-kit/FormField/getConsentDataProcessing.tsx +1 -1
  376. package/src/ui-kit/FormField/getField.tsx +3 -5
  377. package/src/ui-kit/FormField/getNamesFromInput.tsx +1 -1
  378. package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
  379. package/src/ui-kit/FormField/getPremium.tsx +2 -2
  380. package/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
  381. package/bundle/components/CreditForm/renderInfo.d.ts +0 -2
  382. package/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
  383. package/dist/components/CreditCardForm/renderInfo.js +0 -12
  384. package/dist/components/CreditCardForm/renderInfo.js.map +0 -1
  385. package/dist/components/CreditForm/renderInfo.d.ts +0 -2
  386. package/dist/components/CreditForm/renderInfo.js +0 -12
  387. package/dist/components/CreditForm/renderInfo.js.map +0 -1
  388. package/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
  389. package/lib/components/CreditCardForm/renderInfo.js +0 -9
  390. package/lib/components/CreditCardForm/renderInfo.js.map +0 -1
  391. package/lib/components/CreditForm/renderInfo.d.ts +0 -2
  392. package/lib/components/CreditForm/renderInfo.js +0 -9
  393. package/lib/components/CreditForm/renderInfo.js.map +0 -1
  394. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
  395. package/mobile/bundle/components/CreditForm/renderInfo.d.ts +0 -2
  396. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
  397. package/mobile/dist/components/CreditCardForm/renderInfo.js +0 -12
  398. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +0 -1
  399. package/mobile/dist/components/CreditForm/renderInfo.d.ts +0 -2
  400. package/mobile/dist/components/CreditForm/renderInfo.js +0 -12
  401. package/mobile/dist/components/CreditForm/renderInfo.js.map +0 -1
  402. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
  403. package/mobile/lib/components/CreditCardForm/renderInfo.js +0 -9
  404. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +0 -1
  405. package/mobile/lib/components/CreditForm/renderInfo.d.ts +0 -2
  406. package/mobile/lib/components/CreditForm/renderInfo.js +0 -9
  407. package/mobile/lib/components/CreditForm/renderInfo.js.map +0 -1
  408. package/mobile/src/components/CreditCardForm/renderInfo.tsx +0 -10
  409. package/mobile/src/components/CreditForm/renderInfo.tsx +0 -10
  410. package/src/components/CreditCardForm/renderInfo.tsx +0 -10
  411. package/src/components/CreditForm/renderInfo.tsx +0 -10
@@ -1,5 +1,6 @@
1
1
  import { type AspectsProps } from '../../model/AspectsProps';
2
2
  import { type ColumnsCount } from '../../model/ColumnCount';
3
+ import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
3
4
  import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
4
5
  import { type InputSectionsType } from '../../model/InputSectionsType';
5
6
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
@@ -51,21 +52,11 @@ export declare type FieldVedDef = FieldDefaultDef & {
51
52
  fieldType: 'ved';
52
53
  defaultValue?: VedTypes;
53
54
  };
54
- /**
55
- * @title Текст для отображения в карточке информации
56
- * @default {"fieldType": "info"}
57
- */
58
- export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
59
- /** @default "info" */
60
- fieldType: 'info';
61
- };
62
55
  /**
63
56
  * @title Поле
64
57
  * @default { "fieldType": "common" }
65
58
  */
66
- export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
67
- /** @hidden */
68
- export declare type TypeFormFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
59
+ export declare type FieldDef = FieldCommonDef | FieldVedDef;
69
60
  /** @hidden */
70
61
  export declare type EndpointType = 'lead' | 'sendcorporatelead';
71
62
  /**
@@ -110,7 +101,7 @@ export declare type ApplicationFormContent = UniBlockContent & TitleProps & Aspe
110
101
  /** @default "" */
111
102
  target?: Target;
112
103
  };
113
- typeForm?: TypeFormFieldDef;
104
+ typeForm?: FormTypeFieldDef;
114
105
  endpoint?: EndpointType;
115
106
  /** @title Дополнительные параметры формы */
116
107
  additionalParams?: additionalParamsType;
@@ -1,70 +1,14 @@
1
- import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
2
- import { type InputSectionsType } from '../../model/InputSectionsType';
1
+ import { type TextProps, type TitleProps } from '../../model/HeadlineType';
2
+ import { type InputRetailSectionsType } from '../../model/InputSectionsType';
3
3
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
4
- import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
5
4
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
- interface Required {
7
- /** @title Обязательно для заполнения */
8
- required?: boolean;
9
- }
10
5
  export declare type SubmitButtonProps = TextProps & {
11
6
  version?: LinkButtonVersion;
12
7
  };
13
- export declare type ConditionFieldProps = {
14
- /** @title Условия отображения полей формы */
15
- condition?: {
16
- name: NameFieldDef;
17
- /** @title Значения при которых отображаются поля */
18
- values: string[];
19
- };
20
- };
21
- export declare type FilledByEsiaProps = {
22
- /** @title Заполняется через госуслуги */
23
- filledByEsia?: boolean;
24
- };
25
- export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & FilledByEsiaProps & {
26
- name?: NameFieldDef;
27
- };
28
- /**
29
- * @title Поля ввода по умолчанию
30
- * @default {"fieldType": "common"}
31
- */
32
- export declare type FieldCommonDef = FieldDefaultDef & {
33
- /** @default "common" */
34
- fieldType: 'common';
35
- dadata?: boolean;
36
- };
37
- /**
38
- * @title Значение по умолчанию
39
- * @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
40
- */
41
- declare type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
42
- /**
43
- * @title Поле ввода ВЭД
44
- * @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
45
- */
46
- export declare type FieldVedDef = FieldDefaultDef & {
47
- /** @default "ved" */
48
- fieldType: 'ved';
49
- defaultValue?: VedTypes;
50
- };
51
- /**
52
- * @title Текст для отображения в карточке информации
53
- * @default {"fieldType": "info"}
54
- */
55
- export declare type FieldInfoDef = FieldDefaultDef & {
56
- /** @default "info" */
57
- fieldType: 'info';
58
- };
59
- /**
60
- * @title Поле
61
- * @default { "fieldType": "common" }
62
- */
63
- export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
64
8
  /**
65
9
  * @title Форма заявки настраиваемая
66
10
  */
67
- export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps & InputSectionsType & {
11
+ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps & InputRetailSectionsType & {
68
12
  /** @title Кнопка */
69
13
  button?: SubmitButtonProps;
70
14
  /** @title Номер кредитной программы */
@@ -72,4 +16,3 @@ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps &
72
16
  /** @title адресс следующей страницы заявки */
73
17
  nextStepLink?: string;
74
18
  };
75
- export {};
@@ -1,9 +1,8 @@
1
1
  import { type FormFieldRegisterer } from '../../services/retail/external/types';
2
2
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
- import { type FieldDef, type TypeFormFieldDef } from '../../services/retail/model/RetailFormContent';
3
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
4
4
  export interface GroupedConsentsProps {
5
- inputs?: FieldDef[];
6
- typeForm?: TypeFormFieldDef;
5
+ inputs?: FieldRetailDef[];
7
6
  field: FormFieldRegisterer<LeadFormState>;
8
7
  }
9
8
  export declare const GroupedConsents: import("@redneckz/uni-jsx").UNIComponent<GroupedConsentsProps, any, any>;
@@ -1,2 +1,2 @@
1
- import { type SectionsProps } from '../../model/InputSectionsType';
2
- export declare const applicationFormData: SectionsProps[];
1
+ import { type SectionsRetailProps } from '../../model/InputSectionsType';
2
+ export declare const applicationFormData: SectionsRetailProps[];
@@ -1,3 +1,3 @@
1
1
  import type { LeadFormState } from '../../services/retail/model/LeadFormState';
2
- import { type FieldDef } from './ApplicationLeadFormContent';
3
- export declare const getInitialFormState: (inputs: FieldDef[], savedForm: LeadFormState | null) => LeadFormState;
2
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
3
+ export declare const getInitialFormState: (inputs: FieldRetailDef[], savedForm: LeadFormState | null) => LeadFormState;
@@ -1,2 +1,2 @@
1
1
  import { type GroupedConsentsProps } from './GroupedConsents';
2
- export declare const renderInputs: ({ field, typeForm, inputs }: GroupedConsentsProps) => any;
2
+ export declare const renderInputs: ({ field, inputs }: GroupedConsentsProps) => any;
@@ -1,7 +1,7 @@
1
1
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
2
- import { type FieldDef } from './ApplicationLeadFormContent';
2
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
3
3
  interface ApplicationLeadApiProps {
4
- inputs: FieldDef[];
4
+ inputs: FieldRetailDef[];
5
5
  programId: string;
6
6
  nextStepLink: string;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
2
- import { type FieldDef } from './ApplicationLeadFormContent';
3
- export declare const useInitApplicationLead: (inputs: FieldDef[], nextStepLink: string) => [LeadFormState, {
2
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
3
+ export declare const useInitApplicationLead: (inputs: FieldRetailDef[], nextStepLink: string) => [LeadFormState, {
4
4
  isLoading: boolean;
5
5
  }];
@@ -1,16 +1,15 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { type TitleProps } from '../../model/HeadlineType';
3
- import { type InputSectionsType } from '../../model/InputSectionsType';
3
+ import { type InputSectionsType, type SectionsRetailProps } from '../../model/InputSectionsType';
4
4
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
5
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
5
6
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
- import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
7
- import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
8
7
  /** @hidden */
9
8
  export interface RenderInputsProps {
10
- inputs?: FieldDef[];
9
+ inputs?: FieldRetailDef[];
11
10
  field: FormFieldRegisterer<LeadFormState>;
12
11
  }
13
- export declare type CreditCardSectionsProps = SectionsProps & {
12
+ export declare type CreditCardSectionsProps = SectionsRetailProps & {
14
13
  type?: 'courier' | 'office';
15
14
  };
16
15
  /**
@@ -1,7 +1,7 @@
1
- import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
1
+ import { type SectionsRetailProps } from '../../model/InputSectionsType';
2
2
  export interface CreditCardFormStepProps {
3
3
  step: number;
4
- sections: SectionsProps[];
4
+ sections: SectionsRetailProps[];
5
5
  isFormFinished: boolean;
6
6
  onNextStep: () => void;
7
7
  onPrevStep: () => void;
@@ -1,8 +1,8 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
- import { type FieldDef } from '../../services/retail/model/RetailFormContent';
3
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
4
4
  export interface RenderInputsProps {
5
- inputs: FieldDef[];
5
+ inputs: FieldRetailDef[];
6
6
  field: FormFieldRegisterer<LeadFormState>;
7
7
  params?: Record<string, any>;
8
8
  }
@@ -1,7 +1,6 @@
1
- import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
3
  import { type CreditCardSectionsProps } from './CreditCardFormContent';
4
- export declare type CustomSubmit = FormOperatorProps<LeadFormState>['onSubmit'];
5
4
  export interface StepProps {
6
5
  sections?: CreditCardSectionsProps[];
7
6
  field: FormFieldRegisterer<LeadFormState>;
@@ -1,8 +1,8 @@
1
1
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
2
- import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
2
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
3
3
  interface CreditFormApiProps {
4
4
  step: number;
5
- inputs: FieldDef[];
5
+ inputs: FieldRetailDef[];
6
6
  onNextStep: () => void;
7
7
  onFinish?: () => void;
8
8
  }
@@ -1,8 +1,8 @@
1
- import { type SectionsProps } from '../../model/InputSectionsType';
1
+ import { type SectionsRetailProps } from '../../model/InputSectionsType';
2
2
  import { type ProgramsSourceProps } from './ProgramsSourceProps';
3
3
  export interface CreditFormStepProps {
4
4
  step: number;
5
- sections: SectionsProps[];
5
+ sections: SectionsRetailProps[];
6
6
  isFormFinished?: boolean;
7
7
  programsSource?: ProgramsSourceProps;
8
8
  onNextStep: () => void;
@@ -1,2 +1,2 @@
1
- import { type SectionsProps } from '../../model/InputSectionsType';
2
- export declare const stepsSectionsMap: SectionsProps[][];
1
+ import { type SectionsRetailProps } from '../../model/InputSectionsType';
2
+ export declare const stepsSectionsMap: SectionsRetailProps[][];
@@ -1,8 +1,8 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
- import { type FieldDef } from '../../services/retail/model/RetailFormContent';
3
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
4
4
  export interface RenderInputsProps {
5
- inputs: FieldDef[];
5
+ inputs: FieldRetailDef[];
6
6
  field: FormFieldRegisterer<LeadFormState>;
7
7
  params?: Record<string, any>;
8
8
  }
@@ -1,9 +1,8 @@
1
- import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { type SectionsRetailProps } from '../../model/InputSectionsType';
2
3
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
- import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
4
- export declare type CustomSubmit = FormOperatorProps<LeadFormState>['onSubmit'];
5
4
  export interface StepProps {
6
- sections?: SectionsProps[];
5
+ sections?: SectionsRetailProps[];
7
6
  field: FormFieldRegisterer<LeadFormState>;
8
7
  step: number;
9
8
  params?: Record<string, any>;
@@ -1,8 +1,8 @@
1
1
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
2
- import { type FieldDef } from '../../services/retail/model/RetailFormContent';
2
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
3
3
  interface CreditFormApiProps {
4
4
  step: number;
5
- inputs: FieldDef[];
5
+ inputs: FieldRetailDef[];
6
6
  onNextStep: () => void;
7
7
  onFinish?: () => void;
8
8
  }
@@ -0,0 +1,2 @@
1
+ /** @hidden */
2
+ export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
@@ -1,4 +1,5 @@
1
- import { type FieldDef } from '../components/ApplicationLeadForm/ApplicationLeadFormContent';
1
+ import { type FieldDef } from '../components/ApplicationForm/ApplicationFormContent';
2
+ import { type FieldRetailDef } from '../services/retail/model/RetailFormContent';
2
3
  import { type ColumnsCount } from './ColumnCount';
3
4
  import { type TitleProps } from './HeadlineType';
4
5
  /**
@@ -12,3 +13,11 @@ export interface InputSectionsType {
12
13
  /** @hidden */
13
14
  sections?: SectionsProps[];
14
15
  }
16
+ export declare type SectionsRetailProps = TitleProps & {
17
+ columns?: ColumnsCount;
18
+ inputs?: FieldRetailDef[];
19
+ };
20
+ export interface InputRetailSectionsType {
21
+ /** @hidden */
22
+ sections?: SectionsRetailProps[];
23
+ }
@@ -61,6 +61,7 @@ export declare const InputsRetailMap: {
61
61
  bankEmployeeCode: (props: CustomFieldProps) => any;
62
62
  partInBusiness: (props: CustomFieldProps) => any;
63
63
  regionRetail: (props: CustomFieldProps) => any;
64
+ infoCard: (props: CustomFieldProps) => any;
64
65
  calculator: (props: CustomFieldProps) => any;
65
66
  };
66
67
  export declare const InputRetailCardMap: {
@@ -24,40 +24,10 @@ export declare type FieldDefaultDef = Required & TextProps & LabelProps & Condit
24
24
  dadata?: boolean;
25
25
  };
26
26
  /**
27
- * @title Поля ввода по умолчанию
28
- * @default {"fieldType": "common"}
27
+ * @title Поле ввода
28
+ * @default { "fieldType": "common" }
29
29
  */
30
- export declare type FieldCommonDef = FieldDefaultDef & {
31
- /** @default "common" */
30
+ export declare type FieldRetailDef = FieldDefaultDef & TextProps & {
32
31
  fieldType: 'common';
33
32
  };
34
- /**
35
- * @title Значение по умолчанию
36
- * @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
37
- */
38
- declare type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
39
- /**
40
- * @title Поле ввода ВЭД
41
- * @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
42
- */
43
- export declare type FieldVedDef = FieldDefaultDef & {
44
- /** @default "ved" */
45
- fieldType: 'ved';
46
- defaultValue?: VedTypes;
47
- };
48
- /**
49
- * @title Текст для отображения в карточке информации
50
- * @default {"fieldType": "info"}
51
- */
52
- export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
53
- /** @default "info" */
54
- fieldType: 'info';
55
- };
56
- /**
57
- * @title Поле
58
- * @default { "fieldType": "common" }
59
- */
60
- export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
61
- /** @hidden */
62
- export declare type TypeFormFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
63
33
  export {};
@@ -1,5 +1,6 @@
1
+ import { type FieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
1
2
  import { type LeadFormState } from '../model/LeadFormState';
2
- import { type FieldDef } from '../model/RetailFormContent';
3
+ import { type FieldRetailDef } from '../model/RetailFormContent';
3
4
  export declare type GetValue = <K extends keyof LeadFormState>(name: K) => LeadFormState[K];
4
- export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldDef[], step: number) => FieldDef[];
5
+ export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldRetailDef[], step: number) => FieldRetailDef[];
5
6
  export declare const checkCondition: ({ condition }: FieldDef, getValue: GetValue) => boolean | undefined;
@@ -1,9 +1,12 @@
1
+ import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
1
2
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
- import { type FieldDef, type TypeFormFieldDef } from '../../services/retail/model/RetailFormContent';
3
+ import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
3
4
  export interface CustomFieldProps {
4
5
  field: FormFieldRegisterer<any>;
5
6
  input?: FieldDef;
6
7
  url?: string;
7
8
  params?: Record<string, any>;
8
- typeForm?: TypeFormFieldDef;
9
+ }
10
+ export interface CustomFieldPropsWithTypeForm extends CustomFieldProps {
11
+ typeForm?: FormTypeFieldDef;
9
12
  }
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const InfoCardField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,6 +1,6 @@
1
1
  declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg';
2
2
  declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate';
3
- declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'limitedBirthday' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'incomeAverage' | 'disablePeopleFlg' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator';
3
+ declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'limitedBirthday' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'incomeAverage' | 'disablePeopleFlg' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard';
4
4
  declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentToReceiveMaterials' | 'consentDataProcessing';
5
5
  export declare type NameFieldDef = NameFieldApplicationDef | NameFieldRetailDef | NameFieldCreditCardDef | NameFieldConsentDef;
6
6
  export {};
@@ -1,2 +1,2 @@
1
- import type { FieldDef } from '../../components/ApplicationLeadForm/ApplicationLeadFormContent';
1
+ import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
2
2
  export declare const getConsentDataProcessing: (inputs: FieldDef[]) => FieldDef | undefined;
@@ -1,2 +1,2 @@
1
- import { type FieldDef } from '../../services/retail/model/RetailFormContent';
1
+ import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
2
2
  export declare const getNamesFromInput: (inputs: FieldDef[]) => (import("./NameFieldDef").NameFieldDef | undefined)[];
@@ -1,4 +1,4 @@
1
- import { type FieldDef } from '../../services/retail/model/RetailFormContent';
1
+ import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
2
2
  import { type Validator } from '../../validation/validator';
3
3
  export declare const validatorObj: Record<string, Validator>;
4
4
  export declare const getObjectValidator: (inputs: FieldDef[]) => Record<string, Validator>;
@@ -1,2 +1,2 @@
1
- import { type TypeFormFieldDef } from '../../services/retail/model/RetailFormContent';
2
- export declare const getPremium: (typeForm?: TypeFormFieldDef) => boolean;
1
+ import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
2
+ export declare const getPremium: (typeForm?: FormTypeFieldDef) => boolean;
@@ -1,5 +1,6 @@
1
1
  import { type AspectsProps } from '../../model/AspectsProps';
2
2
  import { type ColumnsCount } from '../../model/ColumnCount';
3
+ import { type FormTypeFieldDef } from '../../model/FormTypeFieldDef';
3
4
  import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
4
5
  import { type InputSectionsType } from '../../model/InputSectionsType';
5
6
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
@@ -51,21 +52,11 @@ export declare type FieldVedDef = FieldDefaultDef & {
51
52
  fieldType: 'ved';
52
53
  defaultValue?: VedTypes;
53
54
  };
54
- /**
55
- * @title Текст для отображения в карточке информации
56
- * @default {"fieldType": "info"}
57
- */
58
- export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
59
- /** @default "info" */
60
- fieldType: 'info';
61
- };
62
55
  /**
63
56
  * @title Поле
64
57
  * @default { "fieldType": "common" }
65
58
  */
66
- export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
67
- /** @hidden */
68
- export declare type TypeFormFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
59
+ export declare type FieldDef = FieldCommonDef | FieldVedDef;
69
60
  /** @hidden */
70
61
  export declare type EndpointType = 'lead' | 'sendcorporatelead';
71
62
  /**
@@ -110,7 +101,7 @@ export declare type ApplicationFormContent = UniBlockContent & TitleProps & Aspe
110
101
  /** @default "" */
111
102
  target?: Target;
112
103
  };
113
- typeForm?: TypeFormFieldDef;
104
+ typeForm?: FormTypeFieldDef;
114
105
  endpoint?: EndpointType;
115
106
  /** @title Дополнительные параметры формы */
116
107
  additionalParams?: additionalParamsType;
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAiE;AACjE,iDAA8C;AAC9C,oGAAiG;AACjG,oEAAiE;AACjE,8EAA4E;AAC5E,oEAAiE;AACjE,uDAAoD;AACpD,2FAAwF;AAExF,6CAA0C;AAC1C,+DAA4D;AAE5D,iDAA8C;AAC9C,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAIrD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,YAAY,GAAG,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvF,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,CAAC,yCAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,EAC1E,CAAC,yCAAmB,CAAC,CACtB,CAAC;IAEF,MAAM,CAAC,gBAAgB,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,IAAA,+CAAsB,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACvF,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAA,6CAAqB,EAAC;QACxE,MAAM;QACN,SAAS;QACT,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtF,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAAC,uCAAkB,CAAC,CAAC;IACzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,cAAc,EAAE;YAClB,kBAAkB,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;SAC3D;IACH,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,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,oBAAoB,aACrD,SAAS,CAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC1C,yCAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,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,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAJtC,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,SAAS,CAAC,IACjC,GACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAiE;AACjE,iDAA8C;AAE9C,oGAAiG;AACjG,oEAAiE;AACjE,8EAA4E;AAC5E,oEAAiE;AACjE,uDAAoD;AACpD,2FAAwF;AAExF,6CAA0C;AAC1C,+DAA4D;AAE5D,iDAA8C;AAC9C,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAIrD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,YAAY,GAAG,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvF,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,CAAC,yCAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAqB,EAChF,CAAC,yCAAmB,CAAC,CACtB,CAAC;IAEF,MAAM,CAAC,gBAAgB,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,IAAA,+CAAsB,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACvF,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAA,6CAAqB,EAAC;QACxE,MAAM;QACN,SAAS;QACT,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtF,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAAC,uCAAkB,CAAC,CAAC;IACzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,cAAc,EAAE;YAClB,kBAAkB,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;SAC3D;IACH,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,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,oBAAoB,aACrD,SAAS,CAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC1C,yCAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,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,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAJtC,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,SAAS,CAAC,IACjC,GACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,70 +1,14 @@
1
- import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
2
- import { type InputSectionsType } from '../../model/InputSectionsType';
1
+ import { type TextProps, type TitleProps } from '../../model/HeadlineType';
2
+ import { type InputRetailSectionsType } from '../../model/InputSectionsType';
3
3
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
4
- import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
5
4
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
- interface Required {
7
- /** @title Обязательно для заполнения */
8
- required?: boolean;
9
- }
10
5
  export declare type SubmitButtonProps = TextProps & {
11
6
  version?: LinkButtonVersion;
12
7
  };
13
- export declare type ConditionFieldProps = {
14
- /** @title Условия отображения полей формы */
15
- condition?: {
16
- name: NameFieldDef;
17
- /** @title Значения при которых отображаются поля */
18
- values: string[];
19
- };
20
- };
21
- export declare type FilledByEsiaProps = {
22
- /** @title Заполняется через госуслуги */
23
- filledByEsia?: boolean;
24
- };
25
- export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & FilledByEsiaProps & {
26
- name?: NameFieldDef;
27
- };
28
- /**
29
- * @title Поля ввода по умолчанию
30
- * @default {"fieldType": "common"}
31
- */
32
- export declare type FieldCommonDef = FieldDefaultDef & {
33
- /** @default "common" */
34
- fieldType: 'common';
35
- dadata?: boolean;
36
- };
37
- /**
38
- * @title Значение по умолчанию
39
- * @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
40
- */
41
- declare type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
42
- /**
43
- * @title Поле ввода ВЭД
44
- * @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
45
- */
46
- export declare type FieldVedDef = FieldDefaultDef & {
47
- /** @default "ved" */
48
- fieldType: 'ved';
49
- defaultValue?: VedTypes;
50
- };
51
- /**
52
- * @title Текст для отображения в карточке информации
53
- * @default {"fieldType": "info"}
54
- */
55
- export declare type FieldInfoDef = FieldDefaultDef & {
56
- /** @default "info" */
57
- fieldType: 'info';
58
- };
59
- /**
60
- * @title Поле
61
- * @default { "fieldType": "common" }
62
- */
63
- export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
64
8
  /**
65
9
  * @title Форма заявки настраиваемая
66
10
  */
67
- export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps & InputSectionsType & {
11
+ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps & InputRetailSectionsType & {
68
12
  /** @title Кнопка */
69
13
  button?: SubmitButtonProps;
70
14
  /** @title Номер кредитной программы */
@@ -72,4 +16,3 @@ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps &
72
16
  /** @title адресс следующей страницы заявки */
73
17
  nextStepLink?: string;
74
18
  };
75
- export {};
@@ -1,9 +1,8 @@
1
1
  import { type FormFieldRegisterer } from '../../services/retail/external/types';
2
2
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
3
- import { type FieldDef, type TypeFormFieldDef } from '../../services/retail/model/RetailFormContent';
3
+ import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
4
4
  export interface GroupedConsentsProps {
5
- inputs?: FieldDef[];
6
- typeForm?: TypeFormFieldDef;
5
+ inputs?: FieldRetailDef[];
7
6
  field: FormFieldRegisterer<LeadFormState>;
8
7
  }
9
8
  export declare const GroupedConsents: import("@redneckz/uni-jsx").UNIComponent<GroupedConsentsProps, any, any>;
@@ -14,7 +14,7 @@ const renderErrorText_1 = require("../../ui-kit/Input/renderErrorText");
14
14
  const withValidator_1 = require("../../validation/withValidator");
15
15
  const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
16
16
  const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
17
- exports.GroupedConsents = (0, uni_jsx_1.JSX)(({ inputs = [], typeForm = '', field, key }) => {
17
+ exports.GroupedConsents = (0, uni_jsx_1.JSX)(({ inputs = [], field, key }) => {
18
18
  const isChecked = inputs.every((_) => Boolean(field(_.name).value));
19
19
  const handleGeneralToggle = (value) => {
20
20
  for (const item of inputs) {
@@ -25,7 +25,7 @@ exports.GroupedConsents = (0, uni_jsx_1.JSX)(({ inputs = [], typeForm = '', fiel
25
25
  const hasValidationErrors = (0, hooks_1.useMemo)(() => inputs
26
26
  ?.filter((_) => _.required)
27
27
  ?.some((_) => Boolean((0, withValidator_1.withValidator)(field(_?.name), getObjectValidator_1.validatorObj[_?.name]).error)), [inputs]);
28
- return ((0, jsx_runtime_1.jsx)("div", { className: "w-fit", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col pl-2xl", children: inputs.map((0, getField_1.getField)(field, { typeForm }, inputs_1.InputsConsentsMap)) })), renderFoldButton: renderGeneralCheckbox((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), (0, renderErrorText_1.renderErrorText)(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
28
+ return ((0, jsx_runtime_1.jsx)("div", { className: "w-fit", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col pl-2xl", children: inputs.map((0, getField_1.getField)(field, {}, inputs_1.InputsConsentsMap)) })), renderFoldButton: renderGeneralCheckbox((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), (0, renderErrorText_1.renderErrorText)(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
29
29
  });
30
30
  const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-start", children: [generalCheckBox, (0, jsx_runtime_1.jsx)("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", type: "button", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
31
31
  //# sourceMappingURL=GroupedConsents.js.map