@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +110 -73
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/consents.js +13 -0
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/dist/ui-kit/FormField/getField.js +15 -3
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +8 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/consents.js +11 -0
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/lib/ui-kit/FormField/getField.js +15 -3
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +8 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +110 -73
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.js +13 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/getField.js +15 -3
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +9 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.js +11 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/getField.js +15 -3
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +8 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +7 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +16 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
- package/mobile/src/components/ApplicationLeadForm/consents.ts +10 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
- package/mobile/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
- package/mobile/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +17 -8
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +7 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +11 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +11 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +16 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
- package/src/components/ApplicationLeadForm/consents.ts +10 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
- package/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
- package/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
- package/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
- package/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
- package/src/ui-kit/FormField/getField.tsx +17 -8
- package/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
- package/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
- package/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
- package/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
- package/mobile/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
- package/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
- package/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
|
@@ -15,7 +15,7 @@ export declare type SubmitButtonProps = TextProps & {
|
|
|
15
15
|
* @required
|
|
16
16
|
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
17
17
|
*/
|
|
18
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | '
|
|
18
|
+
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg';
|
|
19
19
|
export declare type ConditionFieldProps = {
|
|
20
20
|
/** @title Условия отображения полей формы */
|
|
21
21
|
condition?: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
1
2
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
4
|
import { type Target } from '../../model/LinkProps';
|
|
4
5
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
+
import { type FormState } from './getInitialFormState';
|
|
5
7
|
interface Required {
|
|
6
8
|
/** @title Обязательно для заполнения */
|
|
7
9
|
required?: boolean;
|
|
@@ -14,7 +16,7 @@ export declare type SubmitButtonProps = TextProps & {
|
|
|
14
16
|
* @required
|
|
15
17
|
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
16
18
|
*/
|
|
17
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | '
|
|
19
|
+
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg';
|
|
18
20
|
export declare type ConditionFieldProps = {
|
|
19
21
|
/** @title Условия отображения полей формы */
|
|
20
22
|
condition?: {
|
|
@@ -90,4 +92,10 @@ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps &
|
|
|
90
92
|
sections?: SectionsProps[];
|
|
91
93
|
endpoint?: EndpointType;
|
|
92
94
|
};
|
|
95
|
+
/** @hidden */
|
|
96
|
+
export interface GroupedConsentsProps {
|
|
97
|
+
inputs?: FieldDef[];
|
|
98
|
+
typeForm?: TypeFormFieldDef | string;
|
|
99
|
+
field: FormFieldRegisterer<FormState>;
|
|
100
|
+
}
|
|
93
101
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CONSENTS: string[];
|
|
@@ -5,6 +5,7 @@ export interface FormState {
|
|
|
5
5
|
surname?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
middleName?: string;
|
|
8
|
+
fullName?: string;
|
|
8
9
|
birthday?: Date;
|
|
9
10
|
phone?: string;
|
|
10
11
|
secondaryPhone?: string;
|
|
@@ -19,6 +20,27 @@ export interface FormState {
|
|
|
19
20
|
term?: number;
|
|
20
21
|
amount?: number;
|
|
21
22
|
annualRevenue?: string;
|
|
23
|
+
serviceDirection?: string;
|
|
24
|
+
desiredMeetingDate?: string;
|
|
25
|
+
inn?: number;
|
|
26
|
+
addressBranch?: string;
|
|
27
|
+
bankEmpolee?: string;
|
|
28
|
+
applicationDate?: string;
|
|
29
|
+
comment?: string;
|
|
30
|
+
isClient?: boolean;
|
|
31
|
+
feedbackMethod?: string;
|
|
32
|
+
collectionCount?: number;
|
|
33
|
+
product?: string;
|
|
34
|
+
localities?: string[];
|
|
35
|
+
partnerComments?: string;
|
|
22
36
|
consentDataProcessing?: boolean;
|
|
37
|
+
processPersonalDataLeadFlg?: boolean;
|
|
38
|
+
consentProviderFlg?: boolean;
|
|
39
|
+
consentPfrFlg?: boolean;
|
|
40
|
+
consentPhotoFlg?: boolean;
|
|
41
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
42
|
+
consentCollectionFlg?: boolean;
|
|
43
|
+
consentInformFlg?: boolean;
|
|
44
|
+
consentToReceiveMaterials?: boolean;
|
|
23
45
|
}
|
|
24
46
|
export declare const getInitialFormState: (inputs: FieldDef[], typeForm?: string) => FormState;
|
|
@@ -15,7 +15,7 @@ export declare type SubmitButtonProps = TextProps & {
|
|
|
15
15
|
* @required
|
|
16
16
|
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
17
17
|
*/
|
|
18
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | '
|
|
18
|
+
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg';
|
|
19
19
|
export declare type ConditionFieldProps = {
|
|
20
20
|
/** @title Условия отображения полей формы */
|
|
21
21
|
condition?: {
|
|
@@ -14,8 +14,10 @@ const useResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/useResp
|
|
|
14
14
|
const style_1 = require("../../utils/style");
|
|
15
15
|
const objectValidator_1 = require("../../validation/objectValidator");
|
|
16
16
|
const validator_1 = require("../../validation/validator");
|
|
17
|
+
const consents_1 = require("./consents");
|
|
17
18
|
const getFormatData_1 = require("./getFormatData");
|
|
18
19
|
const getInitialFormState_1 = require("./getInitialFormState");
|
|
20
|
+
const GroupedConsents_1 = require("./GroupedConsents");
|
|
19
21
|
const renderSubmitButton_1 = require("./renderSubmitButton");
|
|
20
22
|
const API = (0, LeadServiceAPI_1.LeadServiceAPI)();
|
|
21
23
|
exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(
|
|
@@ -45,6 +47,14 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(
|
|
|
45
47
|
reset();
|
|
46
48
|
}
|
|
47
49
|
}, [responseType]);
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), renderInputs({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button)] }) }));
|
|
51
|
+
});
|
|
52
|
+
const renderInputs = ({ field, typeForm = '', inputs }) => {
|
|
53
|
+
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
54
|
+
return consentInputs.length > 2 ? ((0, jsx_runtime_1.jsxs)("div", { children: [restInputs.map((0, getField_1.getField)(field, typeForm)), (0, jsx_runtime_1.jsx)(GroupedConsents_1.GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map((0, getField_1.getField)(field, typeForm)));
|
|
55
|
+
};
|
|
56
|
+
const splitInputs = (inputs) => ({
|
|
57
|
+
consentInputs: inputs?.filter((_) => consents_1.CONSENTS.includes(_.name)) || [],
|
|
58
|
+
restInputs: inputs?.filter((_) => !consents_1.CONSENTS.includes(_.name)) || [],
|
|
49
59
|
});
|
|
50
60
|
//# sourceMappingURL=ApplicationLeadForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,6DAA0D;AAC1D,iDAA8C;AAC9C,oGAAiG;AACjG,8DAA2D;AAC3D,kFAA+E;AAC/E,8EAA4E;AAC5E,oEAAiE;AACjE,iGAA8F;AAE9F,6CAA0C;AAC1C,sEAAmE;AACnE,0DAAiE;
|
|
1
|
+
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,6DAA0D;AAC1D,iDAA8C;AAC9C,oGAAiG;AACjG,8DAA2D;AAC3D,kFAA+E;AAC/E,8EAA4E;AAC5E,oEAAiE;AACjE,iGAA8F;AAE9F,6CAA0C;AAC1C,sEAAmE;AACnE,0DAAiE;AAMjE,yCAAsC;AACtC,mDAAgD;AAChD,+DAA4E;AAC5E,uDAAoD;AACpD,6DAA0D;AAI1D,MAAM,GAAG,G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E,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAChC,4CACG,UAAU,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,EAC1C,uBAAC,iCAAe,IAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,IACpD,CACP,CAAC,CAAC,CAAC,CACF,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAC/C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IAC5C,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;IACrE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;CACpE,CAAC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
1
2
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
4
|
import { type Target } from '../../model/LinkProps';
|
|
4
5
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
+
import { type FormState } from './getInitialFormState';
|
|
5
7
|
interface Required {
|
|
6
8
|
/** @title Обязательно для заполнения */
|
|
7
9
|
required?: boolean;
|
|
@@ -14,7 +16,7 @@ export declare type SubmitButtonProps = TextProps & {
|
|
|
14
16
|
* @required
|
|
15
17
|
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
16
18
|
*/
|
|
17
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | '
|
|
19
|
+
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg';
|
|
18
20
|
export declare type ConditionFieldProps = {
|
|
19
21
|
/** @title Условия отображения полей формы */
|
|
20
22
|
condition?: {
|
|
@@ -90,4 +92,10 @@ export declare type ApplicationLeadFormContent = UniBlockContent & TitleProps &
|
|
|
90
92
|
sections?: SectionsProps[];
|
|
91
93
|
endpoint?: EndpointType;
|
|
92
94
|
};
|
|
95
|
+
/** @hidden */
|
|
96
|
+
export interface GroupedConsentsProps {
|
|
97
|
+
inputs?: FieldDef[];
|
|
98
|
+
typeForm?: TypeFormFieldDef | string;
|
|
99
|
+
field: FormFieldRegisterer<FormState>;
|
|
100
|
+
}
|
|
93
101
|
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.GroupedConsents = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
7
|
+
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
8
|
+
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
9
|
+
const getField_1 = require("../../ui-kit/FormField/getField");
|
|
10
|
+
const getObjectValidator_1 = require("../../ui-kit/FormField/getObjectValidator");
|
|
11
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
12
|
+
const renderErrorText_1 = require("../../ui-kit/Input/renderErrorText");
|
|
13
|
+
const withValidator_1 = require("../../validation/withValidator");
|
|
14
|
+
const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
|
|
15
|
+
const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
|
|
16
|
+
exports.GroupedConsents = (0, uni_jsx_1.JSX)(({ inputs = [], typeForm = '', field, key }) => {
|
|
17
|
+
const isChecked = inputs.every((_) => Boolean(field(_.name).value));
|
|
18
|
+
const handleGeneralToggle = (value) => {
|
|
19
|
+
for (const item of inputs) {
|
|
20
|
+
const itemField = field(item.name);
|
|
21
|
+
itemField?.onChange && itemField.onChange(value);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const hasValidationErrors = (0, hooks_1.useMemo)(() => inputs
|
|
25
|
+
?.filter((_) => _.required)
|
|
26
|
+
?.some((_) => Boolean((0, withValidator_1.withValidator)(field(_?.name), getObjectValidator_1.validatorObj[_?.name]).error)), [inputs]);
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "w-fit", 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 pl-2xl", children: inputs.map((0, getField_1.getField)(field, typeForm)) })), renderFoldButton: renderGeneralCheckbox((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), (0, renderErrorText_1.renderErrorText)(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
|
|
28
|
+
});
|
|
29
|
+
const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-start", children: [generalCheckBox, (0, jsx_runtime_1.jsx)("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
|
|
30
|
+
//# sourceMappingURL=GroupedConsents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupedConsents.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/GroupedConsents.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AAE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AE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,sBAAsB,YACtE,MAAM,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GACtB,CACnB,EACD,gBAAgB,EAAE,qBAAqB,CACrC,4CACE,uBAAC,mBAAQ,IACP,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAE,qBAAqB,IACtB,GAAG,CACR,EACD,IAAA,iCAAe,EAAC,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,IACzD,CACP,GACD,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,qBAAqB,GACzB,CAAC,eAAsB,EAAE,EAAE,CAC3B,CAAC,YAA+B,EAAS,EAAE,CACzC,CACE,iCAAK,SAAS,EAAC,kBAAkB,aAC9B,eAAe,EAChB,mCAAQ,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAC,aAAa,YAC7D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CONSENTS: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CONSENTS = void 0;
|
|
3
|
+
exports.CONSENTS = [
|
|
4
|
+
'processPersonalDataLeadFlg',
|
|
5
|
+
'consentProviderFlg',
|
|
6
|
+
'consentPfrFlg',
|
|
7
|
+
'consentPhotoFlg',
|
|
8
|
+
'consentAssignmentClaimsFlg',
|
|
9
|
+
'consentCollectionFlg',
|
|
10
|
+
'consentInformFlg',
|
|
11
|
+
'consentToReceiveMaterials',
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=consents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consents.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/consents.ts"],"names":[],"mappings":";;AAAa,QAAA,QAAQ,GAAG;IACtB,4BAA4B;IAC5B,oBAAoB;IACpB,eAAe;IACf,iBAAiB;IACjB,4BAA4B;IAC5B,sBAAsB;IACtB,kBAAkB;IAClB,2BAA2B;CAC5B,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface FormState {
|
|
|
5
5
|
surname?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
middleName?: string;
|
|
8
|
+
fullName?: string;
|
|
8
9
|
birthday?: Date;
|
|
9
10
|
phone?: string;
|
|
10
11
|
secondaryPhone?: string;
|
|
@@ -19,6 +20,27 @@ export interface FormState {
|
|
|
19
20
|
term?: number;
|
|
20
21
|
amount?: number;
|
|
21
22
|
annualRevenue?: string;
|
|
23
|
+
serviceDirection?: string;
|
|
24
|
+
desiredMeetingDate?: string;
|
|
25
|
+
inn?: number;
|
|
26
|
+
addressBranch?: string;
|
|
27
|
+
bankEmpolee?: string;
|
|
28
|
+
applicationDate?: string;
|
|
29
|
+
comment?: string;
|
|
30
|
+
isClient?: boolean;
|
|
31
|
+
feedbackMethod?: string;
|
|
32
|
+
collectionCount?: number;
|
|
33
|
+
product?: string;
|
|
34
|
+
localities?: string[];
|
|
35
|
+
partnerComments?: string;
|
|
22
36
|
consentDataProcessing?: boolean;
|
|
37
|
+
processPersonalDataLeadFlg?: boolean;
|
|
38
|
+
consentProviderFlg?: boolean;
|
|
39
|
+
consentPfrFlg?: boolean;
|
|
40
|
+
consentPhotoFlg?: boolean;
|
|
41
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
42
|
+
consentCollectionFlg?: boolean;
|
|
43
|
+
consentInformFlg?: boolean;
|
|
44
|
+
consentToReceiveMaterials?: boolean;
|
|
23
45
|
}
|
|
24
46
|
export declare const getInitialFormState: (inputs: FieldDef[], typeForm?: string) => FormState;
|
|
@@ -29,6 +29,12 @@ const initialFormState = {
|
|
|
29
29
|
posTerminal: false,
|
|
30
30
|
consentToReceiveMaterials: false,
|
|
31
31
|
consentDataProcessing: false,
|
|
32
|
+
processPersonalDataLeadFlg: false,
|
|
33
|
+
consentProviderFlg: false,
|
|
34
|
+
consentPhotoFlg: false,
|
|
35
|
+
consentAssignmentClaimsFlg: false,
|
|
36
|
+
consentCollectionFlg: false,
|
|
37
|
+
consentInformFlg: false,
|
|
32
38
|
};
|
|
33
39
|
const getInitialFormState = (inputs, typeForm = '') => {
|
|
34
40
|
const formState = Object.fromEntries(inputs.map((_) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAK0C;AAC1C,iFAA+E;AAC/E,qEAAmE;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAK0C;AAC1C,iFAA+E;AAC/E,qEAAmE;AAgDnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE;IACjB,IAA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
|
|
6
6
|
const renderErrorText_1 = require("../Input/renderErrorText");
|
|
7
7
|
const Checkbox_1 = require("./Checkbox");
|
|
8
|
-
exports.CheckboxWithError = (0, uni_jsx_1.JSX)(({ className, text, value, key, disabled, error, onChange }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('shrink-0
|
|
8
|
+
exports.CheckboxWithError = (0, uni_jsx_1.JSX)(({ className, text, value, key, disabled, error, onChange }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('shrink-0', className), children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), (0, renderErrorText_1.renderErrorText)(error)] })));
|
|
9
9
|
//# sourceMappingURL=CheckboxWithError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWithError.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/CheckboxWithError.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,8DAA2D;AAC3D,yCAAsC;AAGzB,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9D,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"CheckboxWithError.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/CheckboxWithError.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,8DAA2D;AAC3D,yCAAsC;AAGzB,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9D,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,SAAS,CAAC,aAC1C,uBAAC,mBAAQ,IAAW,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,IAArE,GAAG,CAAsE,EACvF,IAAA,iCAAe,EAAC,KAAK,CAAC,IACnB,CACP,CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentAssignmentField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ConsentAssignmentField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0443\u0441\u0442\u0443\u043F\u043A\u0443 \u043F\u0440\u0430\u0432 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439)", ...(0, withValidator_1.withValidator)(field('consentAssignmentClaimsFlg'), getObjectValidator_1.validatorObj.consentAssignmentClaimsFlg) })));
|
|
9
|
+
//# sourceMappingURL=ConsentAssignmentField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentAssignmentField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,uBAAC,qCAAiB,IAChB,IAAI,EAAC,wRAAuD,KACxD,IAAA,6BAAa,EAAC,KAAK,CAAC,4BAA4B,CAAC,EAAE,iCAAY,CAAC,0BAA0B,CAAC,GAC/F,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentCollectionField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ConsentCollectionField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0432\u0437\u044B\u0441\u043A\u0430\u043D\u0438\u0435 \u043F\u043E \u0438\u0441\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043D\u0430\u0434\u043F\u0438\u0441\u0438 \u043D\u043E\u0442\u0430\u0440\u0438\u0443\u0441\u0430)", ...(0, withValidator_1.withValidator)(field('consentCollectionFlg'), getObjectValidator_1.validatorObj.consentCollectionFlg) })));
|
|
9
|
+
//# sourceMappingURL=ConsentCollectionField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentCollectionField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentCollectionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,uBAAC,qCAAiB,IAChB,IAAI,EAAC,kZAA6E,KAC9E,IAAA,6BAAa,EAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,iCAAY,CAAC,oBAAoB,CAAC,GACnF,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentInformField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ConsentInformField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043E \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0430\u0445 \u0438 \u0443\u0441\u043B\u0443\u0433\u0430\u0445 \u0411\u0430\u043D\u043A\u0430", ...(0, withValidator_1.withValidator)(field('consentInformFlg'), getObjectValidator_1.validatorObj.consentInformFlg) })));
|
|
9
|
+
//# sourceMappingURL=ConsentInformField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentInformField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentInformField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrE,uBAAC,qCAAiB,IAChB,IAAI,EAAC,mSAAwD,KACzD,IAAA,6BAAa,EAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,iCAAY,CAAC,gBAAgB,CAAC,GAC3E,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentPhotoFlg = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ConsentPhotoFlg = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u041F\u0440\u043E\u0447\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F (\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435)", ...(0, withValidator_1.withValidator)(field('consentPhotoFlg'), getObjectValidator_1.validatorObj.consentPhotoFlg) })));
|
|
9
|
+
//# sourceMappingURL=ConsentPhotoField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentPhotoField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentPhotoField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAClE,uBAAC,qCAAiB,IAChB,IAAI,EAAC,wPAAgD,KACjD,IAAA,6BAAa,EAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,iCAAY,CAAC,eAAe,CAAC,GACzE,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentProviderField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ConsentProviderField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043E\u0431 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u0440\u043E\u0441\u0442\u043E\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0434\u043F\u0438\u0441\u0438", ...(0, withValidator_1.withValidator)(field('consentProviderFlg'), getObjectValidator_1.validatorObj.consentProviderFlg) })));
|
|
9
|
+
//# sourceMappingURL=ConsentProviderField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentProviderField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentProviderField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACvE,uBAAC,qCAAiB,IAChB,IAAI,EAAC,uSAAuD,KACxD,IAAA,6BAAa,EAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE,iCAAY,CAAC,kBAAkB,CAAC,GAC/E,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ConsentToReceiveMaterialsField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
6
|
+
exports.ConsentToReceiveMaterialsField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u043D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0438 \u0430\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435", ...field('consentToReceiveMaterials') })));
|
|
7
|
+
//# sourceMappingURL=ConsentToReceiveMaterialsField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentToReceiveMaterialsField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,wEAAqE;AAGxD,QAAA,8BAA8B,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACjF,uBAAC,qCAAiB,IAChB,IAAI,EAAC,6cAAsF,KACvF,KAAK,CAAC,2BAA2B,CAAC,GACtC,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ProcessPersonalDataField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const withValidator_1 = require("../../../validation/withValidator");
|
|
6
|
+
const CheckboxWithError_1 = require("../../Checkbox/CheckboxWithError");
|
|
7
|
+
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
|
+
exports.ProcessPersonalDataField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", ...(0, withValidator_1.withValidator)(field('processPersonalDataLeadFlg'), getObjectValidator_1.validatorObj.processPersonalDataLeadFlg) })));
|
|
9
|
+
//# sourceMappingURL=ProcessPersonalDataField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessPersonalDataField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,wEAAqE;AAErE,8DAAqD;AAExC,QAAA,wBAAwB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC3E,uBAAC,qCAAiB,IAChB,IAAI,EAAC,oOAA2C,KAC5C,IAAA,6BAAa,EAAC,KAAK,CAAC,4BAA4B,CAAC,EAAE,iCAAY,CAAC,0BAA0B,CAAC,GAC/F,CACH,CAAC,CAAC"}
|
|
@@ -9,7 +9,12 @@ const AcquiringField_1 = require("./Fields/AcquiringField");
|
|
|
9
9
|
const AddressBranchField_1 = require("./Fields/AddressBranchField");
|
|
10
10
|
const AmountField_1 = require("./Fields/AmountField");
|
|
11
11
|
const CommentField_1 = require("./Fields/CommentField");
|
|
12
|
-
const
|
|
12
|
+
const ConsentAssignmentField_1 = require("./Fields/ConsentAssignmentField");
|
|
13
|
+
const ConsentCollectionField_1 = require("./Fields/ConsentCollectionField");
|
|
14
|
+
const ConsentInformField_1 = require("./Fields/ConsentInformField");
|
|
15
|
+
const ConsentPhotoField_1 = require("./Fields/ConsentPhotoField");
|
|
16
|
+
const ConsentProviderField_1 = require("./Fields/ConsentProviderField");
|
|
17
|
+
const ConsentToReceiveMaterialsField_1 = require("./Fields/ConsentToReceiveMaterialsField");
|
|
13
18
|
const FeedbackMethodField_1 = require("./Fields/FeedbackMethodField");
|
|
14
19
|
const FeedbackTypeField_1 = require("./Fields/FeedbackTypeField");
|
|
15
20
|
const IsClientField_1 = require("./Fields/IsClientField");
|
|
@@ -20,6 +25,7 @@ const OnlineCheckoutField_1 = require("./Fields/OnlineCheckoutField");
|
|
|
20
25
|
const PartnerCommentsField_1 = require("./Fields/PartnerCommentsField");
|
|
21
26
|
const PhoneField_1 = require("./Fields/PhoneField");
|
|
22
27
|
const PosTerminalField_1 = require("./Fields/PosTerminalField");
|
|
28
|
+
const ProcessPersonalDataField_1 = require("./Fields/ProcessPersonalDataField");
|
|
23
29
|
const ProductField_1 = require("./Fields/ProductField");
|
|
24
30
|
const RegionField_1 = require("./Fields/RegionField");
|
|
25
31
|
const RegionPremiumField_1 = require("./Fields/RegionPremiumField");
|
|
@@ -56,7 +62,6 @@ const getField =
|
|
|
56
62
|
product: (0, jsx_runtime_1.jsx)(ProductField_1.ProductField, { field: field, source: PRODUCT_REF }),
|
|
57
63
|
localities: (0, jsx_runtime_1.jsx)(LocalitiesField_1.LocalitiesField, { field: field, input: input }),
|
|
58
64
|
isClient: (0, jsx_runtime_1.jsx)(IsClientField_1.IsClientField, { field: field }),
|
|
59
|
-
consentToReceiveMaterials: ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { ...field('consentToReceiveMaterials'), text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u043D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0438 \u0430\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435" })),
|
|
60
65
|
partnerComments: (0, jsx_runtime_1.jsx)(PartnerCommentsField_1.PartnerCommentsField, { field: field, input: input }),
|
|
61
66
|
collectionCount: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u043A\u0430\u0441\u0441\u0430\u0446\u0438\u0438", type: "number", ...(0, getValidation_1.getValidation)(field('collectionCount'), getObjectValidator_1.validatorObj.collectionCount, required) })),
|
|
62
67
|
acquiringType: (0, jsx_runtime_1.jsx)(AcquiringField_1.AcquiringField, { field: field, input: input }),
|
|
@@ -73,7 +78,14 @@ const getField =
|
|
|
73
78
|
bankEmpolee: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') })),
|
|
74
79
|
applicationDate: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })),
|
|
75
80
|
secondaryPhone: (0, jsx_runtime_1.jsx)(SecondaryPhoneField_1.SecondaryPhoneField, { field: field }),
|
|
76
|
-
|
|
81
|
+
consentPfrFlg: ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u0437\u0430\u043F\u0440\u043E\u0441 \u0432 \u041F\u0424\u0420", ...field('consentPfrFlg') })),
|
|
82
|
+
consentToReceiveMaterials: (0, jsx_runtime_1.jsx)(ConsentToReceiveMaterialsField_1.ConsentToReceiveMaterialsField, { field: field }),
|
|
83
|
+
processPersonalDataLeadFlg: (0, jsx_runtime_1.jsx)(ProcessPersonalDataField_1.ProcessPersonalDataField, { field: field }),
|
|
84
|
+
consentProviderFlg: (0, jsx_runtime_1.jsx)(ConsentProviderField_1.ConsentProviderField, { field: field }),
|
|
85
|
+
consentPhotoFlg: (0, jsx_runtime_1.jsx)(ConsentPhotoField_1.ConsentPhotoFlg, { field: field }),
|
|
86
|
+
consentAssignmentClaimsFlg: (0, jsx_runtime_1.jsx)(ConsentAssignmentField_1.ConsentAssignmentField, { field: field }),
|
|
87
|
+
consentCollectionFlg: (0, jsx_runtime_1.jsx)(ConsentCollectionField_1.ConsentCollectionField, { field: field }),
|
|
88
|
+
consentInformFlg: (0, jsx_runtime_1.jsx)(ConsentInformField_1.ConsentInformField, { field: field }),
|
|
77
89
|
};
|
|
78
90
|
return (0, isRenderField_1.isRenderField)({ input, field }) ? ((0, jsx_runtime_1.jsx)("div", { children: InputsMap[input?.name] }, String(i))) : null;
|
|
79
91
|
};
|