@redneckz/wildless-cms-uni-blocks 0.14.577 → 0.14.578

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 (350) hide show
  1. package/bin/migration-scripts/0.14.454.js +18 -17
  2. package/bin/migration-scripts/0.14.455.js +1 -3
  3. package/bin/migration-scripts/0.14.488.js +4 -1
  4. package/bin/migration-scripts/0.14.519.js +1 -1
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +92 -16
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  9. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  10. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  11. package/bundle/hooks/useLeadFormData.d.ts +5 -0
  12. package/bundle/ui-kit/Button/Button.d.ts +1 -1
  13. package/bundle/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  14. package/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  15. package/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  16. package/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  17. package/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  18. package/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  19. package/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  20. package/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  21. package/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  22. package/bundle/ui-kit/FormField/SelectField.d.ts +15 -0
  23. package/bundle/ui-kit/FormField/dataSources.d.ts +3 -0
  24. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  25. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  26. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  27. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  28. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  29. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  30. package/dist/components/Footer/SocialMedia.js +4 -1
  31. package/dist/components/Footer/SocialMedia.js.map +1 -1
  32. package/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
  33. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  34. package/dist/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
  35. package/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
  36. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  37. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  38. package/dist/hooks/useLeadFormData.d.ts +5 -0
  39. package/dist/hooks/useLeadFormData.js +14 -0
  40. package/dist/hooks/useLeadFormData.js.map +1 -0
  41. package/dist/ui-kit/Button/Button.d.ts +1 -1
  42. package/dist/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  43. package/dist/ui-kit/DatePicker/renderCalendarCells.js +1 -1
  44. package/dist/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
  45. package/dist/ui-kit/DialogManager/DialogManager.js +2 -2
  46. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  47. package/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  48. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +11 -0
  49. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  50. package/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  51. package/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
  52. package/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  53. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  54. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +11 -0
  55. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  56. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  57. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +11 -0
  58. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  59. package/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  60. package/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
  61. package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  62. package/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  63. package/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
  64. package/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  65. package/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  66. package/dist/ui-kit/FormField/Fields/OrganizationField.js +11 -0
  67. package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  68. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  69. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
  70. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  71. package/dist/ui-kit/FormField/SelectField.d.ts +15 -0
  72. package/dist/ui-kit/FormField/SelectField.js +13 -0
  73. package/dist/ui-kit/FormField/SelectField.js.map +1 -0
  74. package/dist/ui-kit/FormField/dataSources.d.ts +3 -0
  75. package/dist/ui-kit/FormField/dataSources.js +6 -0
  76. package/dist/ui-kit/FormField/dataSources.js.map +1 -0
  77. package/dist/ui-kit/FormField/getField.js +16 -0
  78. package/dist/ui-kit/FormField/getField.js.map +1 -1
  79. package/dist/ui-kit/FormField/getObjectValidator.js +8 -0
  80. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  81. package/dist/ui-kit/PhoneInput/PhoneInput.js +3 -1
  82. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  83. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -5
  84. package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  85. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  86. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  87. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  88. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  89. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  90. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  91. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  92. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  93. package/lib/components/Footer/SocialMedia.js +4 -1
  94. package/lib/components/Footer/SocialMedia.js.map +1 -1
  95. package/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
  96. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  97. package/lib/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
  98. package/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
  99. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  100. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  101. package/lib/hooks/useLeadFormData.d.ts +5 -0
  102. package/lib/hooks/useLeadFormData.js +11 -0
  103. package/lib/hooks/useLeadFormData.js.map +1 -0
  104. package/lib/ui-kit/Button/Button.d.ts +1 -1
  105. package/lib/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  106. package/lib/ui-kit/DatePicker/renderCalendarCells.js +1 -1
  107. package/lib/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
  108. package/lib/ui-kit/DialogManager/DialogManager.js +2 -2
  109. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  110. package/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  111. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +9 -0
  112. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  113. package/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  114. package/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
  115. package/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  116. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  117. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +9 -0
  118. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  119. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  120. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +9 -0
  121. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  122. package/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  123. package/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
  124. package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  125. package/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  126. package/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
  127. package/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  128. package/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  129. package/lib/ui-kit/FormField/Fields/OrganizationField.js +9 -0
  130. package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  131. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  132. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
  133. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  134. package/lib/ui-kit/FormField/SelectField.d.ts +15 -0
  135. package/lib/ui-kit/FormField/SelectField.js +11 -0
  136. package/lib/ui-kit/FormField/SelectField.js.map +1 -0
  137. package/lib/ui-kit/FormField/dataSources.d.ts +3 -0
  138. package/lib/ui-kit/FormField/dataSources.js +4 -0
  139. package/lib/ui-kit/FormField/dataSources.js.map +1 -0
  140. package/lib/ui-kit/FormField/getField.js +16 -0
  141. package/lib/ui-kit/FormField/getField.js.map +1 -1
  142. package/lib/ui-kit/FormField/getObjectValidator.js +8 -0
  143. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  144. package/lib/ui-kit/PhoneInput/PhoneInput.js +3 -1
  145. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  146. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -5
  147. package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  148. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  149. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  150. package/mobile/bundle/bundle.umd.js +90 -15
  151. package/mobile/bundle/bundle.umd.min.js +1 -1
  152. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  153. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  154. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  155. package/mobile/bundle/hooks/useLeadFormData.d.ts +5 -0
  156. package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -1
  157. package/mobile/bundle/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  158. package/mobile/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  159. package/mobile/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  160. package/mobile/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  161. package/mobile/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  162. package/mobile/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  163. package/mobile/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  164. package/mobile/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  165. package/mobile/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  166. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +15 -0
  167. package/mobile/bundle/ui-kit/FormField/dataSources.d.ts +3 -0
  168. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  169. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  170. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  171. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  172. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  173. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  174. package/mobile/dist/components/Footer/SocialMedia.js +4 -1
  175. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  176. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
  177. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  178. package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
  179. package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
  180. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  181. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  182. package/mobile/dist/hooks/useLeadFormData.d.ts +5 -0
  183. package/mobile/dist/hooks/useLeadFormData.js +14 -0
  184. package/mobile/dist/hooks/useLeadFormData.js.map +1 -0
  185. package/mobile/dist/ui-kit/Button/Button.d.ts +1 -1
  186. package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  187. package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.js +1 -1
  188. package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
  189. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +2 -2
  190. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  191. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  192. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +11 -0
  193. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  194. package/mobile/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  195. package/mobile/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
  196. package/mobile/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  197. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  198. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +11 -0
  199. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  200. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  201. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +11 -0
  202. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  203. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  204. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
  205. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  206. package/mobile/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  207. package/mobile/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
  208. package/mobile/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  209. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  210. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +11 -0
  211. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  212. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  213. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
  214. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  215. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +15 -0
  216. package/mobile/dist/ui-kit/FormField/SelectField.js +13 -0
  217. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -0
  218. package/mobile/dist/ui-kit/FormField/dataSources.d.ts +3 -0
  219. package/mobile/dist/ui-kit/FormField/dataSources.js +6 -0
  220. package/mobile/dist/ui-kit/FormField/dataSources.js.map +1 -0
  221. package/mobile/dist/ui-kit/FormField/getField.js +16 -0
  222. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  223. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -0
  224. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  225. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +3 -1
  226. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  227. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -5
  228. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  229. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  230. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  231. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  232. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  233. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
  234. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  235. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  236. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  237. package/mobile/lib/components/Footer/SocialMedia.js +4 -1
  238. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  239. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
  240. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  241. package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
  242. package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
  243. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
  244. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  245. package/mobile/lib/hooks/useLeadFormData.d.ts +5 -0
  246. package/mobile/lib/hooks/useLeadFormData.js +11 -0
  247. package/mobile/lib/hooks/useLeadFormData.js.map +1 -0
  248. package/mobile/lib/ui-kit/Button/Button.d.ts +1 -1
  249. package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
  250. package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.js +1 -1
  251. package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
  252. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +2 -2
  253. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  254. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  255. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +9 -0
  256. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  257. package/mobile/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  258. package/mobile/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
  259. package/mobile/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  260. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  261. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +9 -0
  262. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  263. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  264. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +9 -0
  265. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  266. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  267. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
  268. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  269. package/mobile/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  270. package/mobile/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
  271. package/mobile/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  272. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  273. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +9 -0
  274. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  275. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  276. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
  277. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  278. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +15 -0
  279. package/mobile/lib/ui-kit/FormField/SelectField.js +11 -0
  280. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -0
  281. package/mobile/lib/ui-kit/FormField/dataSources.d.ts +3 -0
  282. package/mobile/lib/ui-kit/FormField/dataSources.js +4 -0
  283. package/mobile/lib/ui-kit/FormField/dataSources.js.map +1 -0
  284. package/mobile/lib/ui-kit/FormField/getField.js +16 -0
  285. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  286. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +8 -0
  287. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  288. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +3 -1
  289. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  290. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -5
  291. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
  292. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
  293. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
  294. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +9 -1
  295. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +9 -1
  296. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  297. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -23
  298. package/mobile/src/components/Footer/SocialMedia.tsx +6 -3
  299. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -2
  300. package/mobile/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +11 -9
  301. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
  302. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  303. package/mobile/src/hooks/useLeadFormData.ts +18 -0
  304. package/mobile/src/ui-kit/Button/Button.tsx +1 -1
  305. package/mobile/src/ui-kit/DatePicker/renderCalendarCells.tsx +3 -3
  306. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +2 -2
  307. package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +18 -0
  308. package/mobile/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
  309. package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +18 -0
  310. package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +18 -0
  311. package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
  312. package/mobile/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
  313. package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +18 -0
  314. package/mobile/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
  315. package/mobile/src/ui-kit/FormField/SelectField.tsx +37 -0
  316. package/mobile/src/ui-kit/FormField/dataSources.ts +3 -0
  317. package/mobile/src/ui-kit/FormField/getField.tsx +16 -0
  318. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +8 -0
  319. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +3 -1
  320. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +10 -15
  321. package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
  322. package/package.json +2 -2
  323. package/src/components/ApplicationForm/ApplicationFormContent.ts +9 -1
  324. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +9 -1
  325. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  326. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -23
  327. package/src/components/Footer/SocialMedia.tsx +6 -3
  328. package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -2
  329. package/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +11 -9
  330. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
  331. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  332. package/src/hooks/useLeadFormData.ts +18 -0
  333. package/src/ui-kit/Button/Button.tsx +1 -1
  334. package/src/ui-kit/DatePicker/renderCalendarCells.tsx +3 -3
  335. package/src/ui-kit/DialogManager/DialogManager.tsx +2 -2
  336. package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +18 -0
  337. package/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
  338. package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +18 -0
  339. package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +18 -0
  340. package/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
  341. package/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
  342. package/src/ui-kit/FormField/Fields/OrganizationField.tsx +18 -0
  343. package/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
  344. package/src/ui-kit/FormField/SelectField.tsx +37 -0
  345. package/src/ui-kit/FormField/dataSources.ts +3 -0
  346. package/src/ui-kit/FormField/getField.tsx +16 -0
  347. package/src/ui-kit/FormField/getObjectValidator.tsx +8 -0
  348. package/src/ui-kit/PhoneInput/PhoneInput.tsx +3 -1
  349. package/src/ui-kit/ProgressBar/ProgressBar.tsx +10 -15
  350. package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
@@ -12,20 +12,22 @@ export const renderButtonsGroup = (
12
12
  const businessButtonVersion = getVersion(activeButton === 'business');
13
13
 
14
14
  const handleClick = (e: any, key: string, branches: Branch[]) => {
15
- if (e.currentTarget === e.target && key === 'business') {
16
- branches.filter(
17
- (branch) =>
18
- branch.workSchedule &&
19
- branch.workSchedule.businessScheduleVisibleTag &&
20
- !branch.workSchedule.businessScheduleDescription,
21
- );
22
- }
15
+ const filteredBranches =
16
+ e.currentTarget === e.target && key === 'business' ? filterBranches(branches) : branches;
23
17
 
24
18
  onButtonClick(key);
25
19
 
26
- return branches;
20
+ return filteredBranches;
27
21
  };
28
22
 
23
+ const filterBranches = (branches: Branch[]) =>
24
+ branches.filter(
25
+ (branch) =>
26
+ branch.workSchedule &&
27
+ branch.workSchedule.businessScheduleVisibleTag &&
28
+ !branch.workSchedule.businessScheduleDescription,
29
+ );
30
+
29
31
  return (
30
32
  <div className="flex gap-lg flex-col sm:flex-row pb-lg">
31
33
  <Button data-id="all" onClick={(e) => handleClick(e, 'all', data)} version={allButtonVersion}>
@@ -56,7 +56,7 @@ export const renderFiltrationForm = ({
56
56
  };
57
57
 
58
58
  export const renderFoldButton =
59
- (reset: () => void, onlyOffice?: boolean) =>
59
+ (reset: () => void, onlyOffice = false) =>
60
60
  ({ isUnfolded, onToggle }: FoldablePartProps) => {
61
61
  const labels = ['Больше фильтров', 'Меньше фильтров'];
62
62
  const icons: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
@@ -74,7 +74,7 @@ const renderDescriptionBlock = (props: RichTextProps) => (
74
74
  interface renderBlockProps {
75
75
  label?: string;
76
76
  data?: string;
77
- iconName?: IconName | undefined;
77
+ iconName?: IconName;
78
78
  dataColor?: TextColor;
79
79
  }
80
80
 
@@ -0,0 +1,18 @@
1
+ import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
+ import { type LeadProps } from '../ui-kit/FormField/SelectField';
3
+ import { fetchJSON } from '../utils/fetchJSON';
4
+
5
+ export const useLeadFormData = (typeField: string) => {
6
+ const { data, error } = useAsyncData(
7
+ `https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${typeField}`,
8
+ fetchData,
9
+ );
10
+
11
+ return { data, error };
12
+ };
13
+
14
+ const fetchData = async (url: string): Promise<LeadProps[]> => {
15
+ const result = await fetchJSON<LeadProps[]>(url, { method: 'POST' });
16
+
17
+ return result || [];
18
+ };
@@ -28,7 +28,7 @@ const secondaryButtonStyleMap: Record<ButtonVersion, string> = {
28
28
  export interface ButtonProps extends ControlStateProps, ARIAProps {
29
29
  className?: string;
30
30
  version?: ButtonVersion;
31
- type?: 'button' | 'submit' | 'reset' | undefined;
31
+ type?: 'button' | 'submit' | 'reset';
32
32
  rounded?: boolean;
33
33
  role?: string;
34
34
  onClick?: (ev?: PreventableEvent) => void;
@@ -10,8 +10,8 @@ interface RenderCalendarCellsParams {
10
10
  totalDays: number;
11
11
  currentYear: number;
12
12
  currentMonth: number;
13
- min?: Date | undefined;
14
- max?: Date | undefined;
13
+ min?: Date;
14
+ max?: Date;
15
15
  onDateClick: (date: Date) => void;
16
16
  }
17
17
 
@@ -68,7 +68,7 @@ const checkIsToday = (currentDate: Date, today: Date | undefined) =>
68
68
  const checkIsDisabled = (currentDate: Date, min: Date | undefined, max: Date | undefined) =>
69
69
  (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
70
70
 
71
- const getDayStyles = (isToday: boolean | undefined, isDisabled: boolean | undefined) =>
71
+ const getDayStyles = (isToday = false, isDisabled = false) =>
72
72
  style(
73
73
  'p-s text-center rounded-md border',
74
74
  {
@@ -7,8 +7,8 @@ import { useDialogManager } from './useDialogManager';
7
7
  import { useDialogsList } from './useDialogsList';
8
8
 
9
9
  export const DialogManager = JSX(() => {
10
- const handleCloseAll = useCallback((dialogs: DialogOpenAction[]) => {
11
- for (const _ of dialogs) {
10
+ const handleCloseAll = useCallback((dialogActions: DialogOpenAction[]) => {
11
+ for (const _ of dialogActions) {
12
12
  _?.onClose && _.onClose();
13
13
  }
14
14
  }, []);
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const AmountWorkersField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={amountWorkers || []}
13
+ label="Количество работающих в организации"
14
+ fieldName="amountWorkers"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const EducationField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: education } = useLeadFormData('EDUCATION_LEVEL');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={education || []}
13
+ label="Образование"
14
+ fieldName="education"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const EmployerActivitiesField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: employerActivities } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={employerActivities || []}
13
+ label="Вид деятельности организации-работодателя"
14
+ fieldName="employerActivities"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const EmployerOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: employerOrganization } = useLeadFormData('ORGANIZATION_KIND');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={employerOrganization || []}
13
+ label="Вид организации работодателя"
14
+ fieldName="employerOrganization"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const EmploymentField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: employment } = useLeadFormData('EMPLOYMENT_TYPE');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={employment || []}
13
+ label="Информация о трудоустройстве"
14
+ fieldName="employment"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const HousingField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: housing } = useLeadFormData('HOUSE_TYPE');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={housing || []}
13
+ label="Тип жилья"
14
+ fieldName="housing"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const OrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: organization } = useLeadFormData('ORGANIZATION_TYPE');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={organization || []}
13
+ label="Тип организации"
14
+ fieldName="organization"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,18 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ import { SelectField } from '../SelectField';
5
+
6
+ export const PositionOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
7
+ const { data: positionOrganization } = useLeadFormData('POSITION');
8
+
9
+ return (
10
+ <SelectField
11
+ field={field}
12
+ source={positionOrganization || []}
13
+ label="Должность в организации"
14
+ fieldName="positionOrganization"
15
+ input={input}
16
+ />
17
+ );
18
+ });
@@ -0,0 +1,37 @@
1
+ import { UniBlock } from '../../UniBlock/UniBlock';
2
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
+ import { SelectControl } from '../Select/SelectControl';
4
+ import { type CustomFieldProps } from './CustomFieldProps';
5
+ import { validatorObj } from './getObjectValidator';
6
+ import { getValidation } from './getValidation';
7
+
8
+ export interface LeadProps {
9
+ type: string;
10
+ key: string;
11
+ value: string;
12
+ displayOrder: number;
13
+ description: string;
14
+ }
15
+
16
+ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
17
+ source?: LeadProps[];
18
+ label: string;
19
+ fieldName: string;
20
+ }
21
+
22
+ export const SelectField = UniBlock<SelectFieldProps>(
23
+ ({ field, source, label, fieldName, input }) => {
24
+ const leadDescription = (source && source?.map((_: LeadProps) => _.description)) || [];
25
+
26
+ return (
27
+ <SelectControl
28
+ placeholder="Выберите из списка"
29
+ label={label}
30
+ options={arrayToOptions(leadDescription)}
31
+ {...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
32
+ />
33
+ );
34
+ },
35
+ );
36
+
37
+ const arrayToOptions = (array?: string[]) => (array ?? []).map((_) => ({ key: _, value: _ }));
@@ -0,0 +1,3 @@
1
+ export const PRODUCT_REF = {
2
+ $ref: '/wcms-resources/outservice-productlist.json',
3
+ };
@@ -6,6 +6,7 @@ import { InputControl } from '../Input/InputControl';
6
6
  import { AcquiringField } from './Fields/AcquiringField';
7
7
  import { AddressBranchField } from './Fields/AddressBranchField';
8
8
  import { AmountField } from './Fields/AmountField';
9
+ import { AmountWorkersField } from './Fields/AmountWorkersField';
9
10
  import { AnnualRevenueField } from './Fields/AnnualRevenueField';
10
11
  import { BankEmpoleeField } from './Fields/BankEmpoleeField';
11
12
  import { BirthdayField } from './Fields/BirthdayField';
@@ -18,18 +19,25 @@ import { ConsentPhotoFlg } from './Fields/ConsentPhotoField';
18
19
  import { ConsentProviderField } from './Fields/ConsentProviderField';
19
20
  import { ConsentToReceiveMaterialsField } from './Fields/ConsentToReceiveMaterialsField';
20
21
  import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
22
+ import { EducationField } from './Fields/EducationField';
21
23
  import { EmailField } from './Fields/EmailField';
24
+ import { EmployerActivitiesField } from './Fields/EmployerActivitiesField';
25
+ import { EmployerOrganizationField } from './Fields/EmployerOrganizationField';
26
+ import { EmploymentField } from './Fields/EmploymentField';
22
27
  import { FeedbackMethodField } from './Fields/FeedbackMethodField';
23
28
  import { FeedbackTypeField } from './Fields/FeedbackTypeField';
24
29
  import { FullNameField } from './Fields/FullNameField';
30
+ import { HousingField } from './Fields/HousingField';
25
31
  import { InnField } from './Fields/InnField';
26
32
  import { IsClientField } from './Fields/IsClientField';
27
33
  import { LocalitiesField } from './Fields/LocalitiesField';
28
34
  import { MiddleNameField } from './Fields/MiddleNameField';
29
35
  import { NameField } from './Fields/NameField';
30
36
  import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
37
+ import { OrganizationField } from './Fields/OrganizationField';
31
38
  import { PartnerCommentsField } from './Fields/PartnerCommentsField';
32
39
  import { PhoneField } from './Fields/PhoneField';
40
+ import { PositionOrganizationField } from './Fields/PositionOrganizationField';
33
41
  import { PosTerminalField } from './Fields/PosTerminalField';
34
42
  import { ProcessPersonalDataField } from './Fields/ProcessPersonalDataField';
35
43
  import { ProductField } from './Fields/ProductField';
@@ -100,6 +108,14 @@ export const getField =
100
108
  ) : (
101
109
  <RegionField field={field} input={input} url={getRegionUrl(typeForm)} />
102
110
  ),
111
+ education: <EducationField field={field} input={input} />,
112
+ housing: <HousingField field={field} input={input} />,
113
+ employment: <EmploymentField field={field} input={input} />,
114
+ organization: <OrganizationField field={field} input={input} />,
115
+ amountWorkers: <AmountWorkersField field={field} input={input} />,
116
+ employerActivities: <EmployerActivitiesField field={field} input={input} />,
117
+ employerOrganization: <EmployerOrganizationField field={field} input={input} />,
118
+ positionOrganization: <PositionOrganizationField field={field} input={input} />,
103
119
  };
104
120
 
105
121
  return isRenderField({ input, field }) ? (
@@ -19,6 +19,14 @@ export const validatorObj: Record<string, Validator> = {
19
19
  phone: phoneValidator,
20
20
  secondaryPhone: phoneValidator,
21
21
  birthday: defaultValidator,
22
+ education: defaultValidator,
23
+ housing: defaultValidator,
24
+ employment: defaultValidator,
25
+ organization: defaultValidator,
26
+ amountWorkers: defaultValidator,
27
+ employerActivities: defaultValidator,
28
+ employerOrganization: defaultValidator,
29
+ positionOrganization: defaultValidator,
22
30
  email: defaultValidator,
23
31
  fullName: nameValidator,
24
32
  inn: innValidator,
@@ -10,7 +10,9 @@ export const PhoneInput = JSX<InputProps>(({ children, onChange, ...inputProps }
10
10
  [onChange],
11
11
  );
12
12
  const handleBlur = useCallback((v: string) => {
13
- v === '+7 (' ? onChange && onChange('') : null;
13
+ if (v === '+7 (') {
14
+ onChange && onChange('');
15
+ }
14
16
  }, []);
15
17
 
16
18
  return (
@@ -1,24 +1,19 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
4
3
 
5
4
  interface ProgressBarProps {
6
5
  step?: number;
7
6
  description?: string;
8
7
  }
9
8
 
10
- export const ProgressBar = JSX<ProgressBarProps>(({ step = 10, description }) => {
11
- const [progressPercent, setProgressPercent] = useState(0);
12
-
13
- return (
14
- <div>
15
- <div className="h-4 w-full bg-gray relative">
16
- <div className="h-4 bg-green" style={{ width: `${progressPercent}%` }} />
17
- </div>
18
- <div className="relative">
19
- <div className="absolute left-2/4 text-green">{progressPercent}%</div>
20
- {description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
21
- </div>
9
+ export const ProgressBar = JSX<ProgressBarProps>(({ step = 10, description }) => (
10
+ <div>
11
+ <div className="h-4 w-full bg-gray relative">
12
+ <div className="h-4 bg-green" style={{ width: `${step}%` }} />
13
+ </div>
14
+ <div className="relative">
15
+ <div className="absolute left-2/4 text-green">{step}%</div>
16
+ {description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
22
17
  </div>
23
- );
24
- });
18
+ </div>
19
+ ));
@@ -81,7 +81,7 @@ export const InputCode = JSX<InputCodeProps>(({ values, setValues, hasError }) =
81
81
  );
82
82
  });
83
83
 
84
- const getInputStyle = (index: number, values: string[], hasError?: boolean) => {
84
+ const getInputStyle = (index: number, values: string[], hasError = false) => {
85
85
  const isInputEmpty = !values[index];
86
86
 
87
87
  return `w-16 h-20 text-3xl text-center p-2 m-2 border ${
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.577",
3
+ "version": "0.14.578",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -210,7 +210,7 @@
210
210
  "path": "lib/common.css"
211
211
  },
212
212
  {
213
- "limit": "70 kB",
213
+ "limit": "71 kB",
214
214
  "path": "bundle/bundle.umd.min.js"
215
215
  }
216
216
  ],
@@ -17,12 +17,20 @@ export type SubmitButtonProps = TextProps & {
17
17
  /**
18
18
  * @title Название поля ввода
19
19
  * @required
20
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
20
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращения", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку", "Образование", "Тип жилья", "Информация о трудоустройстве", "Тип организации", "Количество работающих в организации", "Вид деятельности работодателя", "Вид организации работодателя", "Должность в организации"]
21
21
  */
22
22
  export type NameFieldDef =
23
23
  | 'surname'
24
24
  | 'name'
25
25
  | 'middleName'
26
+ | 'education'
27
+ | 'housing'
28
+ | 'employment'
29
+ | 'organization'
30
+ | 'amountWorkers'
31
+ | 'employerActivities'
32
+ | 'employerOrganization'
33
+ | 'positionOrganization'
26
34
  | 'email'
27
35
  | 'phone'
28
36
  | 'fullName'
@@ -18,12 +18,20 @@ export type SubmitButtonProps = TextProps & {
18
18
  /**
19
19
  * @title Название поля ввода
20
20
  * @required
21
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
21
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращения", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку", "Образование", "Тип жилья", "Информация о трудоустройстве", "Тип организации", "Количество работающих в организации", "Вид деятельности работодателя", "Вид организации работодателя", "Должность в организации"]
22
22
  */
23
23
  export type NameFieldDef =
24
24
  | 'surname'
25
25
  | 'name'
26
26
  | 'middleName'
27
+ | 'education'
28
+ | 'housing'
29
+ | 'employment'
30
+ | 'organization'
31
+ | 'amountWorkers'
32
+ | 'employerActivities'
33
+ | 'employerOrganization'
34
+ | 'positionOrganization'
27
35
  | 'email'
28
36
  | 'phone'
29
37
  | 'fullName'
@@ -18,6 +18,14 @@ export interface FormState {
18
18
  birthday?: Date;
19
19
  phone?: string;
20
20
  secondaryPhone?: string;
21
+ education?: string;
22
+ housing?: string;
23
+ employment?: string;
24
+ organization?: string;
25
+ amountWorkers?: string;
26
+ employerActivities?: string;
27
+ employerOrganization?: string;
28
+ positionOrganization?: string;
21
29
  email?: string;
22
30
  acquiringType?: Option;
23
31
  serviceType?: Option;
@@ -72,7 +72,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
72
72
  )}
73
73
  renderFoldButton={
74
74
  cardCells.length >= visibleCellsCount
75
- ? renderFoldButton(isVisible, options?.parent, data)
75
+ ? renderFoldButton(options?.parent, data, isVisible)
76
76
  : null
77
77
  }
78
78
  />
@@ -84,25 +84,27 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
84
84
  },
85
85
  );
86
86
 
87
- const renderFoldButton = (isUnfolded?: boolean, parent?: Slot, data?: AspectsDef[]) => (): VNode =>
88
- (
89
- <button
90
- className="w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center"
91
- onClick={() => {
92
- if (parent !== undefined) {
93
- defaultEventBus.fire('fold', { type: 'fold', isUnfolded: !isUnfolded, parent });
94
- }
95
- }}
96
- type="button"
97
- // eslint-disable-next-line react/jsx-props-no-spreading
98
- {...(isUnfolded ? getAspectsAttributes(data) : {})}
99
- >
100
- <div>{isUnfolded ? 'Скрыть' : 'Подробнее о тарифе'}</div>
101
- <Icon
102
- className="text-primary-text"
103
- name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
104
- width="16"
105
- height="16"
106
- />
107
- </button>
108
- );
87
+ const renderFoldButton =
88
+ (parent?: Slot, data?: AspectsDef[], isUnfolded = false) =>
89
+ (): VNode =>
90
+ (
91
+ <button
92
+ className="w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center"
93
+ onClick={() => {
94
+ if (parent !== undefined) {
95
+ defaultEventBus.fire('fold', { type: 'fold', isUnfolded: !isUnfolded, parent });
96
+ }
97
+ }}
98
+ type="button"
99
+ // eslint-disable-next-line react/jsx-props-no-spreading
100
+ {...(isUnfolded ? getAspectsAttributes(data) : {})}
101
+ >
102
+ <div>{isUnfolded ? 'Скрыть' : 'Подробнее о тарифе'}</div>
103
+ <Icon
104
+ className="text-primary-text"
105
+ name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
106
+ width="16"
107
+ height="16"
108
+ />
109
+ </button>
110
+ );
@@ -75,8 +75,11 @@ export const SocialMedia = JSX<SocialMediaProps>(
75
75
  const getStretchedStyle = (stretched = false) =>
76
76
  stretched ? 'flex-1 @lg:flex-initial justify-center' : '';
77
77
 
78
- const getClassName = (hasText: boolean, stretched: boolean, showButtonText = false): string =>
79
- style(
78
+ const getClassName = (hasText: boolean, stretched: boolean, showButtonText = false): string => {
79
+ const textStyleCondition = showButtonText ? !hasText : true;
80
+
81
+ return style(
80
82
  hasText || stretched ? 'basis-full' : '',
81
- stretched && (showButtonText ? !hasText : true) ? 'flex-nowrap' : '',
83
+ stretched && textStyleCondition ? 'flex-nowrap' : '',
82
84
  );
85
+ };
@@ -76,19 +76,20 @@ const renderInvestmentColumn = (
76
76
  ) => {
77
77
  const isSecondColumn = i === 1;
78
78
  const isLastColumn = i === arr.length - 1;
79
+ const reversedCells = column.cells?.reverse() || [];
79
80
 
80
81
  return (
81
82
  <div
82
83
  key={`column_${i}`}
83
84
  className={`${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`}
84
85
  >
85
- {column.cells?.length ? (
86
+ {reversedCells.length ? (
86
87
  <div
87
88
  className={`w-full ${
88
89
  isLastColumn ? 'border-4 border-green-more-dark p-1.5 min-w-72' : ''
89
90
  }`}
90
91
  >
91
- {column.cells.reverse().map(renderInvestmentCell)}
92
+ {reversedCells.map(renderInvestmentCell)}
92
93
  </div>
93
94
  ) : null}
94
95
  </div>