@redneckz/wildless-cms-uni-blocks 0.14.574 → 0.14.575

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 (268) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +110 -73
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  6. package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  7. package/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  9. package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  10. package/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  11. package/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  12. package/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  13. package/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  14. package/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  15. package/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  16. package/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  17. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  18. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
  19. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  20. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  21. package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  22. package/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
  23. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  24. package/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
  25. package/dist/components/ApplicationLeadForm/consents.js +13 -0
  26. package/dist/components/ApplicationLeadForm/consents.js.map +1 -0
  27. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  28. package/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
  29. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  30. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  31. package/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
  32. package/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
  33. package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  34. package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
  35. package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
  36. package/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  37. package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
  38. package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
  39. package/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  40. package/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
  41. package/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
  42. package/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  43. package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
  44. package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
  45. package/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  46. package/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
  47. package/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
  48. package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  49. package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
  50. package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
  51. package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  52. package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
  53. package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
  54. package/dist/ui-kit/FormField/getField.js +15 -3
  55. package/dist/ui-kit/FormField/getField.js.map +1 -1
  56. package/dist/ui-kit/FormField/getObjectValidator.js +8 -1
  57. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  58. package/lib/common.css +1 -1
  59. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  60. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
  61. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  62. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  63. package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  64. package/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
  65. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  66. package/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
  67. package/lib/components/ApplicationLeadForm/consents.js +11 -0
  68. package/lib/components/ApplicationLeadForm/consents.js.map +1 -0
  69. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  70. package/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
  71. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  72. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  73. package/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
  74. package/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
  75. package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  76. package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
  77. package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
  78. package/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  79. package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
  80. package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
  81. package/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  82. package/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
  83. package/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
  84. package/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  85. package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
  86. package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
  87. package/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  88. package/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
  89. package/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
  90. package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  91. package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
  92. package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
  93. package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  94. package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
  95. package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
  96. package/lib/ui-kit/FormField/getField.js +15 -3
  97. package/lib/ui-kit/FormField/getField.js.map +1 -1
  98. package/lib/ui-kit/FormField/getObjectValidator.js +8 -1
  99. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  100. package/mobile/bundle/bundle.umd.js +110 -73
  101. package/mobile/bundle/bundle.umd.min.js +1 -1
  102. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  103. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  104. package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  105. package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
  106. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  107. package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  108. package/mobile/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  109. package/mobile/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  110. package/mobile/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  111. package/mobile/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  112. package/mobile/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  113. package/mobile/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  114. package/mobile/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  115. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  116. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
  117. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  118. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  119. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  120. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
  121. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  122. package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
  123. package/mobile/dist/components/ApplicationLeadForm/consents.js +13 -0
  124. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -0
  125. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  126. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
  127. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  128. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  129. package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
  130. package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
  131. package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  132. package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
  133. package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
  134. package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  135. package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
  136. package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
  137. package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  138. package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
  139. package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
  140. package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  141. package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
  142. package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
  143. package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  144. package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
  145. package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
  146. package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  147. package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
  148. package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
  149. package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  150. package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
  151. package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
  152. package/mobile/dist/ui-kit/FormField/getField.js +15 -3
  153. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  154. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -1
  155. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  156. package/mobile/lib/common.css +1 -1
  157. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  158. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
  159. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  160. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
  161. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
  162. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
  163. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  164. package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
  165. package/mobile/lib/components/ApplicationLeadForm/consents.js +11 -0
  166. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -0
  167. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
  168. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
  169. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  170. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
  171. package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
  172. package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
  173. package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
  174. package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
  175. package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
  176. package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
  177. package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
  178. package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
  179. package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
  180. package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
  181. package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
  182. package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
  183. package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
  184. package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
  185. package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
  186. package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
  187. package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
  188. package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
  189. package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
  190. package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
  191. package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
  192. package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
  193. package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
  194. package/mobile/lib/ui-kit/FormField/getField.js +15 -3
  195. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  196. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +8 -1
  197. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  198. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +7 -1
  199. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
  200. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
  201. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +16 -1
  202. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
  203. package/mobile/src/components/ApplicationLeadForm/consents.ts +10 -0
  204. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
  205. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
  206. package/mobile/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
  207. package/mobile/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
  208. package/mobile/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
  209. package/mobile/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
  210. package/mobile/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
  211. package/mobile/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
  212. package/mobile/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
  213. package/mobile/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
  214. package/mobile/src/ui-kit/FormField/getField.tsx +17 -8
  215. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
  216. package/package.json +1 -1
  217. package/src/components/ApplicationForm/ApplicationFormContent.ts +7 -1
  218. package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
  219. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +11 -1
  220. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +11 -1
  221. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
  222. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +16 -1
  223. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
  224. package/src/components/ApplicationLeadForm/consents.ts +10 -0
  225. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
  226. package/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
  227. package/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
  228. package/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
  229. package/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
  230. package/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
  231. package/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
  232. package/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
  233. package/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
  234. package/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
  235. package/src/ui-kit/FormField/getField.tsx +17 -8
  236. package/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
  237. package/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  238. package/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  239. package/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  240. package/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
  241. package/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
  242. package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  243. package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
  244. package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
  245. package/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  246. package/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
  247. package/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
  248. package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  249. package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
  250. package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
  251. package/mobile/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  252. package/mobile/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  253. package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  254. package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
  255. package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
  256. package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  257. package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
  258. package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
  259. package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
  260. package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
  261. package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
  262. package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
  263. package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
  264. package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
  265. package/mobile/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
  266. package/mobile/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
  267. package/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
  268. package/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
@@ -35,7 +35,14 @@ export const validatorObj: Record<string, Validator> = {
35
35
  localities: defaultValidator,
36
36
  consentDataProcessing: agreementValidator,
37
37
  annualRevenue: defaultValidator,
38
- consentToAllDocs: agreementValidator,
38
+ consentToReceiveMaterials: agreementValidator,
39
+ processPersonalDataLeadFlg: agreementValidator,
40
+ consentProviderFlg: agreementValidator,
41
+ consentPhotoFlg: agreementValidator,
42
+ consentPfrFlg: agreementValidator,
43
+ consentAssignmentClaimsFlg: agreementValidator,
44
+ consentCollectionFlg: agreementValidator,
45
+ consentInformFlg: agreementValidator,
39
46
  };
40
47
 
41
48
  export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.574",
3
+ "version": "0.14.575",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -54,7 +54,13 @@ export type NameFieldDef =
54
54
  | 'localities'
55
55
  | 'partnerComments'
56
56
  | 'consentDataProcessing'
57
- | 'consentToAllDocs';
57
+ | 'consentInformFlg'
58
+ | 'consentCollectionFlg'
59
+ | 'consentAssignmentClaimsFlg'
60
+ | 'consentPhotoFlg'
61
+ | 'consentPfrFlg'
62
+ | 'consentProviderFlg'
63
+ | 'processPersonalDataLeadFlg';
58
64
 
59
65
  export type ConditionFieldProps = {
60
66
  /** @title Условия отображения полей формы */
@@ -47,7 +47,36 @@
47
47
  "inputs": [
48
48
  {
49
49
  "fieldType": "common",
50
- "name": "consentToAllDocs",
50
+ "name": "processPersonalDataLeadFlg",
51
+ "required": true
52
+ },
53
+ {
54
+ "fieldType": "common",
55
+ "name": "consentProviderFlg",
56
+ "required": true
57
+ },
58
+ {
59
+ "fieldType": "common",
60
+ "name": "consentPfrFlg"
61
+ },
62
+ {
63
+ "fieldType": "common",
64
+ "name": "consentPhotoFlg",
65
+ "required": true
66
+ },
67
+ {
68
+ "fieldType": "common",
69
+ "name": "consentAssignmentClaimsFlg",
70
+ "required": true
71
+ },
72
+ {
73
+ "fieldType": "common",
74
+ "name": "consentCollectionFlg",
75
+ "required": true
76
+ },
77
+ {
78
+ "fieldType": "common",
79
+ "name": "consentInformFlg",
51
80
  "required": true
52
81
  }
53
82
  ]
@@ -29,7 +29,17 @@ export default {
29
29
  { fieldType: 'common', name: 'email', required: true },
30
30
  ],
31
31
  },
32
- { inputs: [{ fieldType: 'common', name: 'consentToAllDocs', required: true }] },
32
+ {
33
+ inputs: [
34
+ { fieldType: 'common', name: 'processPersonalDataLeadFlg', required: true },
35
+ { fieldType: 'common', name: 'consentProviderFlg', required: true },
36
+ { fieldType: 'common', name: 'consentPfrFlg' },
37
+ { fieldType: 'common', name: 'consentPhotoFlg', required: true },
38
+ { fieldType: 'common', name: 'consentAssignmentClaimsFlg', required: true },
39
+ { fieldType: 'common', name: 'consentCollectionFlg', required: true },
40
+ { fieldType: 'common', name: 'consentInformFlg', required: true },
41
+ ],
42
+ },
33
43
  ]}
34
44
  button={button}
35
45
  />
@@ -30,7 +30,17 @@ export default {
30
30
  { fieldType: 'common', name: 'email', required: true },
31
31
  ],
32
32
  },
33
- { inputs: [{ fieldType: 'common', name: 'consentToAllDocs', required: true }] },
33
+ {
34
+ inputs: [
35
+ { fieldType: 'common', name: 'processPersonalDataLeadFlg', required: true },
36
+ { fieldType: 'common', name: 'consentProviderFlg', required: true },
37
+ { fieldType: 'common', name: 'consentPfrFlg' },
38
+ { fieldType: 'common', name: 'consentPhotoFlg', required: true },
39
+ { fieldType: 'common', name: 'consentAssignmentClaimsFlg', required: true },
40
+ { fieldType: 'common', name: 'consentCollectionFlg', required: true },
41
+ { fieldType: 'common', name: 'consentInformFlg', required: true },
42
+ ],
43
+ },
34
44
  ]}
35
45
  button={button}
36
46
  />
@@ -12,9 +12,15 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
12
12
  import { style } from '../../utils/style';
13
13
  import { objectValidator } from '../../validation/objectValidator';
14
14
  import { isValidationSuccess } from '../../validation/validator';
15
- import { type ApplicationLeadFormContent, type FieldDef } from './ApplicationLeadFormContent';
15
+ import {
16
+ type ApplicationLeadFormContent,
17
+ type FieldDef,
18
+ type GroupedConsentsProps,
19
+ } from './ApplicationLeadFormContent';
20
+ import { CONSENTS } from './consents';
16
21
  import { getFormatData } from './getFormatData';
17
22
  import { getInitialFormState, type FormState } from './getInitialFormState';
23
+ import { GroupedConsents } from './GroupedConsents';
18
24
  import { renderSubmitButton } from './renderSubmitButton';
19
25
 
20
26
  interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockProps {}
@@ -66,7 +72,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
66
72
  className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}
67
73
  >
68
74
  {renderTitle(_.title)}
69
- {(_?.inputs || [])?.map(getField(field, typeForm))}
75
+ {renderInputs({ field, typeForm, inputs: _?.inputs })}
70
76
  </div>
71
77
  ))}
72
78
  {renderSubmitButton(button)}
@@ -75,3 +81,21 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
75
81
  );
76
82
  },
77
83
  );
84
+
85
+ const renderInputs = ({ field, typeForm = '', inputs }: GroupedConsentsProps) => {
86
+ const { consentInputs, restInputs } = splitInputs(inputs || []);
87
+
88
+ return consentInputs.length > 2 ? (
89
+ <div>
90
+ {restInputs.map(getField(field, typeForm))}
91
+ <GroupedConsents inputs={consentInputs} field={field} />
92
+ </div>
93
+ ) : (
94
+ (inputs || [])?.map(getField(field, typeForm))
95
+ );
96
+ };
97
+
98
+ const splitInputs = (inputs?: FieldDef[]) => ({
99
+ consentInputs: inputs?.filter((_) => CONSENTS.includes(_.name)) || [],
100
+ restInputs: inputs?.filter((_) => !CONSENTS.includes(_.name)) || [],
101
+ });
@@ -1,9 +1,11 @@
1
1
  /* eslint-disable max-len */
2
2
 
3
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
3
4
  import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
4
5
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
5
6
  import { type Target } from '../../model/LinkProps';
6
7
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
8
+ import { type FormState } from './getInitialFormState';
7
9
 
8
10
  interface Required {
9
11
  /** @title Обязательно для заполнения */
@@ -53,7 +55,13 @@ export type NameFieldDef =
53
55
  | 'localities'
54
56
  | 'partnerComments'
55
57
  | 'consentDataProcessing'
56
- | 'consentToAllDocs';
58
+ | 'consentInformFlg'
59
+ | 'consentCollectionFlg'
60
+ | 'consentAssignmentClaimsFlg'
61
+ | 'consentPhotoFlg'
62
+ | 'consentPfrFlg'
63
+ | 'consentProviderFlg'
64
+ | 'processPersonalDataLeadFlg';
57
65
 
58
66
  export type ConditionFieldProps = {
59
67
  /** @title Условия отображения полей формы */
@@ -160,3 +168,10 @@ export type ApplicationLeadFormContent = UniBlockContent &
160
168
  sections?: SectionsProps[];
161
169
  endpoint?: EndpointType;
162
170
  };
171
+
172
+ /** @hidden */
173
+ export interface GroupedConsentsProps {
174
+ inputs?: FieldDef[];
175
+ typeForm?: TypeFormFieldDef | string;
176
+ field: FormFieldRegisterer<FormState>;
177
+ }
@@ -0,0 +1,79 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { type VNode } from '../../model/VNode';
4
+ import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
5
+ import { Foldable } from '../../ui-kit/Foldable/Foldable';
6
+ import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
7
+ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
8
+ import { getField } from '../../ui-kit/FormField/getField';
9
+ import { validatorObj } from '../../ui-kit/FormField/getObjectValidator';
10
+ import { Icon } from '../../ui-kit/Icon/Icon';
11
+ import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
12
+ import { withValidator } from '../../validation/withValidator';
13
+ import { type GroupedConsentsProps } from './ApplicationLeadFormContent';
14
+ import { type FormState } from './getInitialFormState';
15
+
16
+ const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
17
+ const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
18
+
19
+ export const GroupedConsents = JSX<GroupedConsentsProps>(
20
+ ({ inputs = [], typeForm = '', field, key }) => {
21
+ const isChecked = inputs.every((_) => Boolean(field(_.name).value));
22
+
23
+ const handleGeneralToggle = (value: boolean) => {
24
+ for (const item of inputs) {
25
+ const itemField = field(item.name as keyof FormState);
26
+ itemField?.onChange && itemField.onChange(value);
27
+ }
28
+ };
29
+
30
+ const hasValidationErrors = useMemo(
31
+ () =>
32
+ inputs
33
+ ?.filter((_) => _.required)
34
+ ?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)),
35
+ [inputs],
36
+ );
37
+
38
+ return (
39
+ <div className="w-fit">
40
+ <Foldable
41
+ isFoldButtonOnTop
42
+ renderFoldableSection={({ isUnfolded }) => (
43
+ <FoldableSection isUnfolded={isUnfolded} className="flex flex-col pl-2xl">
44
+ {inputs.map(getField(field, typeForm))}
45
+ </FoldableSection>
46
+ )}
47
+ renderFoldButton={renderGeneralCheckbox(
48
+ <div>
49
+ <Checkbox
50
+ value={isChecked}
51
+ onChange={handleGeneralToggle}
52
+ text={CONSENT_ALL_DOCS_TEXT}
53
+ key={key}
54
+ />
55
+ {renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')}
56
+ </div>,
57
+ )}
58
+ />
59
+ </div>
60
+ );
61
+ },
62
+ );
63
+
64
+ const renderGeneralCheckbox =
65
+ (generalCheckBox: VNode) =>
66
+ (foldableData: FoldablePartProps): VNode =>
67
+ (
68
+ <div className="flex items-start">
69
+ {generalCheckBox}
70
+ <button onClick={foldableData.onToggle} className="px-m py-2xs">
71
+ <Icon
72
+ className="text-primary-text"
73
+ name={foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
74
+ width="16"
75
+ height="16"
76
+ />
77
+ </button>
78
+ </div>
79
+ );
@@ -0,0 +1,10 @@
1
+ export const CONSENTS = [
2
+ 'processPersonalDataLeadFlg',
3
+ 'consentProviderFlg',
4
+ 'consentPfrFlg',
5
+ 'consentPhotoFlg',
6
+ 'consentAssignmentClaimsFlg',
7
+ 'consentCollectionFlg',
8
+ 'consentInformFlg',
9
+ 'consentToReceiveMaterials',
10
+ ];
@@ -14,6 +14,7 @@ export interface FormState {
14
14
  surname?: string;
15
15
  name?: string;
16
16
  middleName?: string;
17
+ fullName?: string;
17
18
  birthday?: Date;
18
19
  phone?: string;
19
20
  secondaryPhone?: string;
@@ -28,7 +29,28 @@ export interface FormState {
28
29
  term?: number;
29
30
  amount?: number;
30
31
  annualRevenue?: string;
32
+ serviceDirection?: string;
33
+ desiredMeetingDate?: string;
34
+ inn?: number;
35
+ addressBranch?: string;
36
+ bankEmpolee?: string;
37
+ applicationDate?: string;
38
+ comment?: string;
39
+ isClient?: boolean;
40
+ feedbackMethod?: string;
41
+ collectionCount?: number;
42
+ product?: string;
43
+ localities?: string[];
44
+ partnerComments?: string;
31
45
  consentDataProcessing?: boolean;
46
+ processPersonalDataLeadFlg?: boolean;
47
+ consentProviderFlg?: boolean;
48
+ consentPfrFlg?: boolean;
49
+ consentPhotoFlg?: boolean;
50
+ consentAssignmentClaimsFlg?: boolean;
51
+ consentCollectionFlg?: boolean;
52
+ consentInformFlg?: boolean;
53
+ consentToReceiveMaterials?: boolean;
32
54
  }
33
55
 
34
56
  const initialFormState = {
@@ -57,6 +79,12 @@ const initialFormState = {
57
79
  posTerminal: false,
58
80
  consentToReceiveMaterials: false,
59
81
  consentDataProcessing: false,
82
+ processPersonalDataLeadFlg: false,
83
+ consentProviderFlg: false,
84
+ consentPhotoFlg: false,
85
+ consentAssignmentClaimsFlg: false,
86
+ consentCollectionFlg: false,
87
+ consentInformFlg: false,
60
88
  };
61
89
 
62
90
  export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormState => {
@@ -7,9 +7,3 @@ export interface CheckboxProps {
7
7
  onChange?: (value: boolean) => void;
8
8
  error?: string;
9
9
  }
10
-
11
- export interface CheckboxGroupProps {
12
- className?: string;
13
- items?: CheckboxProps[];
14
- text?: string;
15
- }
@@ -6,7 +6,7 @@ import { type CheckboxProps } from './CheckboxProps';
6
6
 
7
7
  export const CheckboxWithError = JSX<CheckboxProps>(
8
8
  ({ className, text, value, key, disabled, error, onChange }) => (
9
- <div className={style('shrink-0 w-full', className)}>
9
+ <div className={style('shrink-0', className)}>
10
10
  <Checkbox key={key} text={text} value={value} disabled={disabled} onChange={onChange} />
11
11
  {renderErrorText(error)}
12
12
  </div>
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ConsentAssignmentField = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Прочие согласия (согласие на уступку прав требований)"
10
+ {...withValidator(field('consentAssignmentClaimsFlg'), validatorObj.consentAssignmentClaimsFlg)}
11
+ />
12
+ ));
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ConsentCollectionField = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Прочие согласия (согласие на взыскание по исполнительной надписи нотариуса)"
10
+ {...withValidator(field('consentCollectionFlg'), validatorObj.consentCollectionFlg)}
11
+ />
12
+ ));
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ConsentInformField = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Согласие на информирование о продуктах и услугах Банка"
10
+ {...withValidator(field('consentInformFlg'), validatorObj.consentInformFlg)}
11
+ />
12
+ ));
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ConsentPhotoFlg = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Прочие согласия (согласие на фотографирование)"
10
+ {...withValidator(field('consentPhotoFlg'), validatorObj.consentPhotoFlg)}
11
+ />
12
+ ));
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ConsentProviderField = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Согласие об использовании простой электронной подписи"
10
+ {...withValidator(field('consentProviderFlg'), validatorObj.consentProviderFlg)}
11
+ />
12
+ ));
@@ -0,0 +1,10 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+
5
+ export const ConsentToReceiveMaterialsField = JSX<CustomFieldProps>(({ field }) => (
6
+ <CheckboxWithError
7
+ text="Согласен на получение информационных и аналитических материалов по электронной почте"
8
+ {...field('consentToReceiveMaterials')}
9
+ />
10
+ ));
@@ -0,0 +1,12 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { withValidator } from '../../../validation/withValidator';
3
+ import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
4
+ import { type CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+
7
+ export const ProcessPersonalDataField = JSX<CustomFieldProps>(({ field }) => (
8
+ <CheckboxWithError
9
+ text="Согласие на обработку персональных данных"
10
+ {...withValidator(field('processPersonalDataLeadFlg'), validatorObj.processPersonalDataLeadFlg)}
11
+ />
12
+ ));
@@ -8,7 +8,12 @@ import { AcquiringField } from './Fields/AcquiringField';
8
8
  import { AddressBranchField } from './Fields/AddressBranchField';
9
9
  import { AmountField } from './Fields/AmountField';
10
10
  import { CommentField } from './Fields/CommentField';
11
- import { ConsentToAllDocsField } from './Fields/ConsentToAllDocsField';
11
+ import { ConsentAssignmentField } from './Fields/ConsentAssignmentField';
12
+ import { ConsentCollectionField } from './Fields/ConsentCollectionField';
13
+ import { ConsentInformField } from './Fields/ConsentInformField';
14
+ import { ConsentPhotoFlg } from './Fields/ConsentPhotoField';
15
+ import { ConsentProviderField } from './Fields/ConsentProviderField';
16
+ import { ConsentToReceiveMaterialsField } from './Fields/ConsentToReceiveMaterialsField';
12
17
  import { FeedbackMethodField } from './Fields/FeedbackMethodField';
13
18
  import { FeedbackTypeField } from './Fields/FeedbackTypeField';
14
19
  import { IsClientField } from './Fields/IsClientField';
@@ -19,6 +24,7 @@ import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
19
24
  import { PartnerCommentsField } from './Fields/PartnerCommentsField';
20
25
  import { PhoneField } from './Fields/PhoneField';
21
26
  import { PosTerminalField } from './Fields/PosTerminalField';
27
+ import { ProcessPersonalDataField } from './Fields/ProcessPersonalDataField';
22
28
  import { ProductField } from './Fields/ProductField';
23
29
  import { RegionField } from './Fields/RegionField';
24
30
  import { RegionPremiumField } from './Fields/RegionPremiumField';
@@ -90,12 +96,6 @@ export const getField =
90
96
  product: <ProductField field={field} source={PRODUCT_REF} />,
91
97
  localities: <LocalitiesField field={field} input={input} />,
92
98
  isClient: <IsClientField field={field} />,
93
- consentToReceiveMaterials: (
94
- <CheckboxWithError
95
- {...field('consentToReceiveMaterials')}
96
- text="Согласен на получение информационных и аналитических материалов по электронной почте"
97
- />
98
- ),
99
99
  partnerComments: <PartnerCommentsField field={field} input={input} />,
100
100
  collectionCount: (
101
101
  <InputControl
@@ -130,7 +130,16 @@ export const getField =
130
130
  <InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
131
131
  ),
132
132
  secondaryPhone: <SecondaryPhoneField field={field} />,
133
- consentToAllDocs: <ConsentToAllDocsField field={field} />,
133
+ consentPfrFlg: (
134
+ <CheckboxWithError text="Согласие на запрос в ПФР" {...field('consentPfrFlg')} />
135
+ ),
136
+ consentToReceiveMaterials: <ConsentToReceiveMaterialsField field={field} />,
137
+ processPersonalDataLeadFlg: <ProcessPersonalDataField field={field} />,
138
+ consentProviderFlg: <ConsentProviderField field={field} />,
139
+ consentPhotoFlg: <ConsentPhotoFlg field={field} />,
140
+ consentAssignmentClaimsFlg: <ConsentAssignmentField field={field} />,
141
+ consentCollectionFlg: <ConsentCollectionField field={field} />,
142
+ consentInformFlg: <ConsentInformField field={field} />,
134
143
  };
135
144
 
136
145
  return isRenderField({ input, field }) ? (
@@ -35,7 +35,14 @@ export const validatorObj: Record<string, Validator> = {
35
35
  localities: defaultValidator,
36
36
  consentDataProcessing: agreementValidator,
37
37
  annualRevenue: defaultValidator,
38
- consentToAllDocs: agreementValidator,
38
+ consentToReceiveMaterials: agreementValidator,
39
+ processPersonalDataLeadFlg: agreementValidator,
40
+ consentProviderFlg: agreementValidator,
41
+ consentPhotoFlg: agreementValidator,
42
+ consentPfrFlg: agreementValidator,
43
+ consentAssignmentClaimsFlg: agreementValidator,
44
+ consentCollectionFlg: agreementValidator,
45
+ consentInformFlg: agreementValidator,
39
46
  };
40
47
 
41
48
  export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
@@ -1,2 +0,0 @@
1
- import { type CheckboxGroupProps } from './CheckboxProps';
2
- export declare const CheckboxGroup: import("@redneckz/uni-jsx").UNIComponent<CheckboxGroupProps, any, any>;
@@ -1,2 +0,0 @@
1
- import { type CustomFieldProps } from '../CustomFieldProps';
2
- export declare const ConsentToAllDocsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +0,0 @@
1
- import { type CheckboxGroupProps } from './CheckboxProps';
2
- export declare const CheckboxGroup: import("@redneckz/uni-jsx").UNIComponent<CheckboxGroupProps, any, any>;
@@ -1,20 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.CheckboxGroup = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const style_1 = require("../../utils/style");
6
- const Foldable_1 = require("../Foldable/Foldable");
7
- const FoldableSection_1 = require("../Foldable/FoldableSection");
8
- const Icon_1 = require("../Icon/Icon");
9
- const Checkbox_1 = require("./Checkbox");
10
- exports.CheckboxGroup = (0, uni_jsx_1.JSX)(({ className, items = [], ...props }) => {
11
- const isChecked = items.every((_) => _?.value);
12
- const handleGeneralToggle = (value) => {
13
- for (const item of items) {
14
- item?.onChange && item.onChange(value);
15
- }
16
- };
17
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-fit', className), children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col gap-lg pl-2xl py-xs", children: items.map(Checkbox_1.Checkbox) })), renderFoldButton: renderGeneralCheckbox((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { value: isChecked, onChange: handleGeneralToggle, ...props })) }) }));
18
- });
19
- const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [generalCheckBox, (0, jsx_runtime_1.jsx)("button", { onClick: foldableData.onToggle, className: "p-m", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
20
- //# sourceMappingURL=CheckboxGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,mDAAgD;AAEhD,iEAA8D;AAC9D,uCAAoC;AACpC,yCAAsC;AAGzB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAE/C,MAAM,mBAAmB,GAAG,CAAC,KAAc,EAAE,EAAE;QAC7C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,IAAI,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACxC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,OAAO,EAAE,SAAS,CAAC,YACvC,uBAAC,mBAAQ,IACP,iBAAiB,QACjB,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,mCAAmC,YACnF,KAAK,CAAC,GAAG,CAAC,mBAAQ,CAAC,GACJ,CACnB,EACD,gBAAgB,EAAE,qBAAqB,CACrC,uBAAC,mBAAQ,IAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,KAAM,KAAK,GAAI,CACzE,GACD,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GACzB,CAAC,eAAsB,EAAE,EAAE,CAC3B,CAAC,YAA+B,EAAS,EAAE,CACzC,CACE,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,eAAe,EAChB,mCAAQ,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAC,KAAK,YACrD,uBAAC,WAAI,IACH,SAAS,EAAC,mBAAmB,EAC7B,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC/D,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,IACL,CACP,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type CustomFieldProps } from '../CustomFieldProps';
2
- export declare const ConsentToAllDocsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,26 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.ConsentToAllDocsField = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const CheckboxGroup_1 = require("../../Checkbox/CheckboxGroup");
6
- const items = [
7
- {
8
- field: 'processPersonalDataLeadFlg',
9
- text: 'Согласие на обработку персональных данных',
10
- required: true,
11
- },
12
- {
13
- field: 'consentOtherFlg',
14
- text: 'Согласие на информирование о продуктах и услугах Банка',
15
- required: true,
16
- },
17
- {
18
- field: 'consentProviderFlg',
19
- text: 'Согласие об использовании простой электронной подписи',
20
- required: true,
21
- },
22
- { field: 'consentPfrFlg', text: 'Согласие на запрос в ПФР Открыты по субботам', required: true },
23
- { field: 'consentPhotoFlg', text: 'Прочие согласия (согласие на фотографирование)' },
24
- ];
25
- exports.ConsentToAllDocsField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxGroup_1.CheckboxGroup, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0432\u0441\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B", items: items.map((_) => ({ ...field(_.field), text: _.text, required: _.required })) })));
26
- //# sourceMappingURL=ConsentToAllDocsField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConsentToAllDocsField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,gEAA6D;AAG7D,MAAM,KAAK,GAAG;IACZ;QACE,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,2CAA2C;QACjD,QAAQ,EAAE,IAAI;KACf;IACD;QACE,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,wDAAwD;QAC9D,QAAQ,EAAE,IAAI;KACf;IACD;QACE,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,uDAAuD;QAC7D,QAAQ,EAAE,IAAI;KACf;IACD,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,8CAA8C,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChG,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,gDAAgD,EAAE;CACrF,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxE,uBAAC,6BAAa,IACZ,IAAI,EAAC,yIAA2B,EAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,GACpF,CACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type CheckboxGroupProps } from './CheckboxProps';
2
- export declare const CheckboxGroup: import("@redneckz/uni-jsx").UNIComponent<CheckboxGroupProps, any, any>;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { style } from '../../utils/style.js';
4
- import { Foldable } from '../Foldable/Foldable.js';
5
- import { FoldableSection } from '../Foldable/FoldableSection.js';
6
- import { Icon } from '../Icon/Icon.js';
7
- import { Checkbox } from './Checkbox.js';
8
- export const CheckboxGroup = JSX(({ className, items = [], ...props }) => {
9
- const isChecked = items.every((_) => _?.value);
10
- const handleGeneralToggle = (value) => {
11
- for (const item of items) {
12
- item?.onChange && item.onChange(value);
13
- }
14
- };
15
- return (_jsx("div", { className: style('w-fit', className), children: _jsx(Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col gap-lg pl-2xl py-xs", children: items.map(Checkbox) })), renderFoldButton: renderGeneralCheckbox(_jsx(Checkbox, { value: isChecked, onChange: handleGeneralToggle, ...props })) }) }));
16
- });
17
- const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (_jsxs("div", { className: "flex items-center", children: [generalCheckBox, _jsx("button", { onClick: foldableData.onToggle, className: "p-m", children: _jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
18
- //# sourceMappingURL=CheckboxGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAE/C,MAAM,mBAAmB,GAAG,CAAC,KAAc,EAAE,EAAE;QAC7C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,IAAI,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACxC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,YACvC,KAAC,QAAQ,IACP,iBAAiB,QACjB,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,KAAC,eAAe,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,mCAAmC,YACnF,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,GACJ,CACnB,EACD,gBAAgB,EAAE,qBAAqB,CACrC,KAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,KAAM,KAAK,GAAI,CACzE,GACD,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GACzB,CAAC,eAAsB,EAAE,EAAE,CAC3B,CAAC,YAA+B,EAAS,EAAE,CACzC,CACE,eAAK,SAAS,EAAC,mBAAmB,aAC/B,eAAe,EAChB,iBAAQ,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAC,KAAK,YACrD,KAAC,IAAI,IACH,SAAS,EAAC,mBAAmB,EAC7B,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC/D,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,IACL,CACP,CAAC"}