@redneckz/wildless-cms-uni-blocks 0.14.573 → 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 +182 -133
- 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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/bundle/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/bundle/components/OfficesAtmsMap/renderButtonsGroup.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/bundle/components/OfficesAtmsMap/renderHeading.d.ts +2 -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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +21 -25
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesMap.js +1 -29
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/dist/components/OfficesAtmsMap/filters.js +46 -0
- package/dist/components/OfficesAtmsMap/filters.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.js +21 -0
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -21
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderHeading.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/renderHeading.js +8 -0
- package/dist/components/OfficesAtmsMap/renderHeading.js.map +1 -0
- 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/dist/ui-kit/YandexMap/renderClusterer.js +4 -1
- package/dist/ui-kit/YandexMap/renderClusterer.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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +16 -22
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesMap.js +1 -29
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/lib/components/OfficesAtmsMap/filters.js +44 -0
- package/lib/components/OfficesAtmsMap/filters.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.js +18 -0
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -21
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderHeading.d.ts +1 -0
- package/lib/components/OfficesAtmsMap/renderHeading.js +5 -0
- package/lib/components/OfficesAtmsMap/renderHeading.js.map +1 -0
- 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/lib/ui-kit/YandexMap/renderClusterer.js +4 -1
- package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +182 -133
- 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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/mobile/bundle/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderButtonsGroup.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/mobile/bundle/components/OfficesAtmsMap/renderHeading.d.ts +2 -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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +21 -25
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +1 -29
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/mobile/dist/components/OfficesAtmsMap/filters.js +46 -0
- package/mobile/dist/components/OfficesAtmsMap/filters.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js +21 -0
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -21
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderHeading.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/renderHeading.js +8 -0
- package/mobile/dist/components/OfficesAtmsMap/renderHeading.js.map +1 -0
- 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/dist/ui-kit/YandexMap/renderClusterer.js +4 -1
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +16 -22
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +1 -29
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/filters.d.ts +44 -0
- package/mobile/lib/components/OfficesAtmsMap/filters.js +44 -0
- package/mobile/lib/components/OfficesAtmsMap/filters.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js +18 -0
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +10 -4
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -21
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderHeading.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/renderHeading.js +5 -0
- package/mobile/lib/components/OfficesAtmsMap/renderHeading.js.map +1 -0
- 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/lib/ui-kit/YandexMap/renderClusterer.js +4 -1
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.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/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +22 -58
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +0 -47
- package/mobile/src/components/OfficesAtmsMap/filters.ts +56 -0
- package/mobile/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +43 -0
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +14 -26
- package/mobile/src/components/OfficesAtmsMap/renderHeading.tsx +15 -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/mobile/src/ui-kit/YandexMap/renderClusterer.ts +6 -2
- 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/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +22 -58
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +0 -47
- package/src/components/OfficesAtmsMap/filters.ts +56 -0
- package/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +43 -0
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +14 -26
- package/src/components/OfficesAtmsMap/renderHeading.tsx +15 -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/src/ui-kit/YandexMap/renderClusterer.ts +6 -2
- 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
|
@@ -1,46 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLocation } from '../../hooks/useLocation';
|
|
3
3
|
import { OfficesAtmsMapLayout } from './OfficesAtmsMapLayout';
|
|
4
|
-
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
5
4
|
import { getOfficePoint, renderOfficeCard } from './renderOfficeCard';
|
|
6
5
|
import { getRemoteWorkplacePoint, renderRemoteWorkplaceCard } from './renderRemoteWorkplaceCard';
|
|
7
6
|
import { useOffices } from './useOffices';
|
|
8
7
|
|
|
9
|
-
const INITIAL_FILTRATION_STATE = {
|
|
10
|
-
workingSaturday: false,
|
|
11
|
-
premiumService: false,
|
|
12
|
-
privateBanking: false,
|
|
13
|
-
remoteWorkplace: false,
|
|
14
|
-
serviceDisabledPeople: false,
|
|
15
|
-
sellingCoins: false,
|
|
16
|
-
buyingCoins: false,
|
|
17
|
-
bullionOperations: false,
|
|
18
|
-
preciousMetalsOperations: false,
|
|
19
|
-
transferringDataToBiometricSystem: false,
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const FILTRATION_PREDICATES = {
|
|
23
|
-
workingSaturday: (item: Branch | RemoteWorkplace) =>
|
|
24
|
-
Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
25
|
-
premiumService: (item: Branch | RemoteWorkplace) =>
|
|
26
|
-
Boolean('premiumService' in item && item.premiumService),
|
|
27
|
-
privateBanking: (item: Branch | RemoteWorkplace) =>
|
|
28
|
-
Boolean('privateBanking' in item && item.privateBanking),
|
|
29
|
-
remoteWorkplace: (item: Branch | RemoteWorkplace) => Boolean('workScheduleDescription' in item),
|
|
30
|
-
serviceDisabledPeople: (item: Branch | RemoteWorkplace) =>
|
|
31
|
-
Boolean('serviceDisabledPeople' in item && item.serviceDisabledPeople),
|
|
32
|
-
sellingCoins: (item: Branch | RemoteWorkplace) =>
|
|
33
|
-
Boolean('sellingCoins' in item && item.sellingCoins),
|
|
34
|
-
buyingCoins: (item: Branch | RemoteWorkplace) =>
|
|
35
|
-
Boolean('buyingCoins' in item && item.buyingCoins),
|
|
36
|
-
bullionOperations: (item: Branch | RemoteWorkplace) =>
|
|
37
|
-
Boolean('bullionOperations' in item && item.bullionOperations),
|
|
38
|
-
preciousMetalsOperations: (item: Branch | RemoteWorkplace) =>
|
|
39
|
-
Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
40
|
-
transferringDataToBiometricSystem: (item: Branch | RemoteWorkplace) =>
|
|
41
|
-
Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
8
|
export interface OfficesMapProps {
|
|
45
9
|
className?: string;
|
|
46
10
|
}
|
|
@@ -53,11 +17,9 @@ export const OfficesMap = JSX<OfficesMapProps>(({ className }) => {
|
|
|
53
17
|
return (
|
|
54
18
|
<OfficesAtmsMapLayout
|
|
55
19
|
className={className}
|
|
56
|
-
filterItems={filterItems}
|
|
57
20
|
data={data?.branches}
|
|
58
21
|
isLoad={isLoad}
|
|
59
22
|
remoteWorkplaces={data?.remoteWorkplaces}
|
|
60
|
-
initFilterState={INITIAL_FILTRATION_STATE}
|
|
61
23
|
renderCard={renderOfficeCard}
|
|
62
24
|
renderRemoteWorkplaceCard={renderRemoteWorkplaceCard}
|
|
63
25
|
getBalloon={getOfficePoint}
|
|
@@ -66,12 +28,3 @@ export const OfficesMap = JSX<OfficesMapProps>(({ className }) => {
|
|
|
66
28
|
/>
|
|
67
29
|
);
|
|
68
30
|
});
|
|
69
|
-
|
|
70
|
-
const filterItems = (
|
|
71
|
-
data: (Branch | RemoteWorkplace)[],
|
|
72
|
-
filtrationState: Record<string, boolean>,
|
|
73
|
-
) => {
|
|
74
|
-
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
75
|
-
|
|
76
|
-
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
77
|
-
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Branch, RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
2
|
+
|
|
3
|
+
export const INITIAL_FILTRATION_STATE = {
|
|
4
|
+
workingSaturday: false,
|
|
5
|
+
premiumService: false,
|
|
6
|
+
privateBanking: false,
|
|
7
|
+
remoteWorkplace: false,
|
|
8
|
+
serviceDisabledPeople: false,
|
|
9
|
+
sellingCoins: false,
|
|
10
|
+
buyingCoins: false,
|
|
11
|
+
bullionOperations: false,
|
|
12
|
+
preciousMetalsOperations: false,
|
|
13
|
+
transferringDataToBiometricSystem: false,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const FILTRATION_LABELS = {
|
|
17
|
+
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
18
|
+
workingSaturday: 'Открыты по субботам',
|
|
19
|
+
terminalTypeAtms: 'Банкоматы',
|
|
20
|
+
terminalTypeTerm: 'Терминалы',
|
|
21
|
+
workAllTime: 'Круглосуточно',
|
|
22
|
+
billAcceptorEnable: 'Прием наличных',
|
|
23
|
+
premiumService: 'Премиальное обслуживание',
|
|
24
|
+
privateBanking: 'Услуга Private banking',
|
|
25
|
+
sellingCoins: 'Продажа монет из драгоценных металлов',
|
|
26
|
+
buyingCoins: 'Покупка монет из драгоценных металлов',
|
|
27
|
+
bullionOperations: 'Операции со слитками',
|
|
28
|
+
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
29
|
+
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
30
|
+
locationDisabledPeople: 'Для маломобильных',
|
|
31
|
+
designDisabledPeople: 'Для слабовидящих',
|
|
32
|
+
remoteWorkplace: 'Удаленное рабочее место',
|
|
33
|
+
serviceDisabledPeople: 'Для маломобильных граждан',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const FILTRATION_PREDICATES = {
|
|
37
|
+
workingSaturday: (item: Branch | RemoteWorkplace) =>
|
|
38
|
+
Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
39
|
+
premiumService: (item: Branch | RemoteWorkplace) =>
|
|
40
|
+
Boolean('premiumService' in item && item.premiumService),
|
|
41
|
+
privateBanking: (item: Branch | RemoteWorkplace) =>
|
|
42
|
+
Boolean('privateBanking' in item && item.privateBanking),
|
|
43
|
+
remoteWorkplace: (item: Branch | RemoteWorkplace) => Boolean('workScheduleDescription' in item),
|
|
44
|
+
serviceDisabledPeople: (item: Branch | RemoteWorkplace) =>
|
|
45
|
+
Boolean('serviceDisabledPeople' in item && item.serviceDisabledPeople),
|
|
46
|
+
sellingCoins: (item: Branch | RemoteWorkplace) =>
|
|
47
|
+
Boolean('sellingCoins' in item && item.sellingCoins),
|
|
48
|
+
buyingCoins: (item: Branch | RemoteWorkplace) =>
|
|
49
|
+
Boolean('buyingCoins' in item && item.buyingCoins),
|
|
50
|
+
bullionOperations: (item: Branch | RemoteWorkplace) =>
|
|
51
|
+
Boolean('bullionOperations' in item && item.bullionOperations),
|
|
52
|
+
preciousMetalsOperations: (item: Branch | RemoteWorkplace) =>
|
|
53
|
+
Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
54
|
+
transferringDataToBiometricSystem: (item: Branch | RemoteWorkplace) =>
|
|
55
|
+
Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
56
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
2
|
+
import { getVersion } from '../../utils/getVersion';
|
|
3
|
+
import type { Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
|
|
5
|
+
export const renderButtonsGroup = (
|
|
6
|
+
data: Branch[],
|
|
7
|
+
activeButton: string,
|
|
8
|
+
onButtonClick: (item: string) => void,
|
|
9
|
+
) => {
|
|
10
|
+
const allButtonVersion = getVersion(activeButton === 'all');
|
|
11
|
+
|
|
12
|
+
const businessButtonVersion = getVersion(activeButton === 'business');
|
|
13
|
+
|
|
14
|
+
const handleClick = (e: any, key: string, branches: Branch[]) => {
|
|
15
|
+
if (e.currentTarget === e.target && key === 'business') {
|
|
16
|
+
branches.filter(
|
|
17
|
+
(branch) =>
|
|
18
|
+
branch.workSchedule &&
|
|
19
|
+
branch.workSchedule.businessScheduleVisibleTag &&
|
|
20
|
+
!branch.workSchedule.businessScheduleDescription,
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
onButtonClick(key);
|
|
25
|
+
|
|
26
|
+
return branches;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div className="flex gap-lg flex-col sm:flex-row pb-lg">
|
|
31
|
+
<Button data-id="all" onClick={(e) => handleClick(e, 'all', data)} version={allButtonVersion}>
|
|
32
|
+
Для физических лиц
|
|
33
|
+
</Button>
|
|
34
|
+
<Button
|
|
35
|
+
data-id="business"
|
|
36
|
+
onClick={(e) => handleClick(e, 'business', data)}
|
|
37
|
+
version={businessButtonVersion}
|
|
38
|
+
>
|
|
39
|
+
Для юридических лиц
|
|
40
|
+
</Button>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -8,37 +8,25 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
8
8
|
import { type IconName } from '../../ui-kit/Icon/IconProps';
|
|
9
9
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
10
10
|
|
|
11
|
-
const FILTRATION_LABELS = {
|
|
12
|
-
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
13
|
-
workingSaturday: 'Открыты по субботам',
|
|
14
|
-
terminalTypeAtms: 'Банкоматы',
|
|
15
|
-
terminalTypeTerm: 'Терминалы',
|
|
16
|
-
workAllTime: 'Круглосуточно',
|
|
17
|
-
billAcceptorEnable: 'Прием наличных',
|
|
18
|
-
premiumService: 'Премиальное обслуживание',
|
|
19
|
-
privateBanking: 'Услуга Private banking',
|
|
20
|
-
sellingCoins: 'Продажа монет из драгоценных металлов',
|
|
21
|
-
buyingCoins: 'Покупка монет из драгоценных металлов',
|
|
22
|
-
bullionOperations: 'Операции со слитками',
|
|
23
|
-
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
24
|
-
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
25
|
-
locationDisabledPeople: 'Для маломобильных',
|
|
26
|
-
designDisabledPeople: 'Для слабовидящих',
|
|
27
|
-
remoteWorkplace: 'Удаленное рабочее место',
|
|
28
|
-
serviceDisabledPeople: 'Для маломобильных граждан',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
11
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
32
12
|
|
|
33
|
-
export
|
|
34
|
-
filters: string[]
|
|
35
|
-
|
|
36
|
-
onlyOffice?: boolean
|
|
37
|
-
|
|
13
|
+
export interface RenderFiltrationFormOptions {
|
|
14
|
+
filters: string[];
|
|
15
|
+
field: { field: FormFieldRegisterer<any>; reset: () => void };
|
|
16
|
+
onlyOffice?: boolean;
|
|
17
|
+
labels: Record<string, string>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const renderFiltrationForm = ({
|
|
21
|
+
filters,
|
|
22
|
+
field: { field, reset },
|
|
23
|
+
onlyOffice,
|
|
24
|
+
labels,
|
|
25
|
+
}: RenderFiltrationFormOptions) => {
|
|
38
26
|
const visibleFiltersNum = onlyOffice ? 5 : 6;
|
|
39
27
|
|
|
40
28
|
const filtersCheckbox = (filters || []).map((key) => (
|
|
41
|
-
<Checkbox key={key} text={
|
|
29
|
+
<Checkbox key={key} text={labels[key]} {...field(key)} />
|
|
42
30
|
));
|
|
43
31
|
|
|
44
32
|
const [visibleFilters, hiddenFilters] =
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
|
|
4
|
+
export const renderHeading = (title?: string, lengthItems?: number) => (
|
|
5
|
+
<div className="flex flex-col sm:flex-row gap-xs mb-2xl">
|
|
6
|
+
<Heading headingType="h3">
|
|
7
|
+
<span suppressHydrationWarning={true}>{title}</span>
|
|
8
|
+
{lengthItems ? (
|
|
9
|
+
<Text size="text-h2" color="text-secondary-text">
|
|
10
|
+
<span suppressHydrationWarning={true}>{` (${lengthItems})`}</span>
|
|
11
|
+
</Text>
|
|
12
|
+
) : null}
|
|
13
|
+
</Heading>
|
|
14
|
+
</div>
|
|
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
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
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> => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
4
4
|
import type ymaps from 'yandex-maps';
|
|
5
|
-
import { type BalloonPoints } from '../../components/OfficesAtmsMap/YandexMapProps';
|
|
5
|
+
import { type BalloonPoints } from '../../components/OfficesAtmsMap/YandexMapProps';
|
|
6
6
|
|
|
7
7
|
const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
|
|
8
8
|
const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
|
|
@@ -18,12 +18,16 @@ export function renderClusterer({
|
|
|
18
18
|
points: BalloonPoints[];
|
|
19
19
|
isLoad: boolean;
|
|
20
20
|
}) {
|
|
21
|
-
if (isLoad || !points
|
|
21
|
+
if (isLoad || !points) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
map.geoObjects.removeAll();
|
|
26
26
|
|
|
27
|
+
if (!points.length) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass(
|
|
28
32
|
'<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>',
|
|
29
33
|
);
|
|
@@ -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,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,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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { CheckboxGroup } from '../../Checkbox/CheckboxGroup.js';
|
|
4
|
-
const items = [
|
|
5
|
-
{
|
|
6
|
-
field: 'processPersonalDataLeadFlg',
|
|
7
|
-
text: 'Согласие на обработку персональных данных',
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
field: 'consentOtherFlg',
|
|
12
|
-
text: 'Согласие на информирование о продуктах и услугах Банка',
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
field: 'consentProviderFlg',
|
|
17
|
-
text: 'Согласие об использовании простой электронной подписи',
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
{ field: 'consentPfrFlg', text: 'Согласие на запрос в ПФР Открыты по субботам', required: true },
|
|
21
|
-
{ field: 'consentPhotoFlg', text: 'Прочие согласия (согласие на фотографирование)' },
|
|
22
|
-
];
|
|
23
|
-
export const ConsentToAllDocsField = JSX(({ field }) => (_jsx(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 })) })));
|
|
24
|
-
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;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;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxE,KAAC,aAAa,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"}
|