@redneckz/wildless-cms-uni-blocks 0.14.264 → 0.14.266
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/bin/migration-scripts/0.14.265.js +100 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +264 -291
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/bundle/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/bundle/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/bundle/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/bundle/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/bundle/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/bundle/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/bundle/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/bundle/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/bundle/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/bundle/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/bundle/hooks/useNormalizedInput.d.ts +2 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +3 -2
- package/bundle/ui-kit/PreventableEvent.d.ts +3 -0
- package/dist/api/LeadServiceAPI.js +18 -10
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +5 -4
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +12 -2
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/dist/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/dist/components/ApplicationFormCustom/FeedbackMethodField.js +10 -0
- package/dist/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
- package/dist/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/dist/components/ApplicationFormCustom/FeedbackTypeField.js +19 -0
- package/dist/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
- package/dist/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/dist/components/ApplicationFormCustom/IsClientField.js +7 -0
- package/dist/components/ApplicationFormCustom/IsClientField.js.map +1 -0
- package/dist/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/dist/components/ApplicationFormCustom/PartnerCommentsField.js +14 -0
- package/dist/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
- package/dist/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/dist/components/ApplicationFormCustom/ServiceDirectionField.js +10 -0
- package/dist/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
- package/dist/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/dist/components/ApplicationFormCustom/UltraPremiumField.js +4 -7
- package/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/dist/components/ApplicationFormCustom/contants.js +19 -1
- package/dist/components/ApplicationFormCustom/contants.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getField.js +13 -2
- package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getFormatData.js +2 -1
- package/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/dist/components/ApplicationFormCustom/getInitialFormState.js +7 -4
- package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +4 -0
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/dist/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/dist/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +4 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
- package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
- package/dist/hooks/useNormalizedInput.d.ts +2 -1
- package/dist/hooks/useNormalizedInput.js +2 -2
- package/dist/hooks/useNormalizedInput.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +3 -2
- package/dist/ui-kit/PhoneInput/PhoneInput.js +5 -2
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/ui-kit/PreventableEvent.d.ts +3 -0
- package/lib/api/LeadServiceAPI.js +18 -10
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +5 -4
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +1 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +13 -3
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/lib/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/FeedbackMethodField.js +8 -0
- package/lib/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
- package/lib/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/FeedbackTypeField.js +17 -0
- package/lib/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
- package/lib/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/IsClientField.js +5 -0
- package/lib/components/ApplicationFormCustom/IsClientField.js.map +1 -0
- package/lib/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/PartnerCommentsField.js +12 -0
- package/lib/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
- package/lib/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/ServiceDirectionField.js +8 -0
- package/lib/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
- package/lib/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/lib/components/ApplicationFormCustom/UltraPremiumField.js +3 -6
- package/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/lib/components/ApplicationFormCustom/contants.js +18 -0
- package/lib/components/ApplicationFormCustom/contants.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getField.js +13 -2
- package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getFormatData.js +2 -1
- package/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/lib/components/ApplicationFormCustom/getInitialFormState.js +5 -2
- package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +4 -0
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/lib/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +4 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
- package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
- package/lib/hooks/useNormalizedInput.d.ts +2 -1
- package/lib/hooks/useNormalizedInput.js +2 -2
- package/lib/hooks/useNormalizedInput.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +3 -2
- package/lib/ui-kit/PhoneInput/PhoneInput.js +5 -2
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/ui-kit/PreventableEvent.d.ts +3 -0
- package/mobile/bundle/bundle.umd.js +273 -293
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/mobile/bundle/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/mobile/bundle/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/mobile/bundle/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/mobile/bundle/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/mobile/bundle/hooks/useNormalizedInput.d.ts +2 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +3 -2
- package/mobile/bundle/ui-kit/PreventableEvent.d.ts +3 -0
- package/mobile/dist/api/LeadServiceAPI.js +18 -10
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +5 -4
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +12 -2
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.js +10 -0
- package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.js +19 -0
- package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/mobile/dist/components/ApplicationFormCustom/IsClientField.js +7 -0
- package/mobile/dist/components/ApplicationFormCustom/IsClientField.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.js +14 -0
- package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.js +10 -0
- package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js +4 -7
- package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/mobile/dist/components/ApplicationFormCustom/contants.js +19 -1
- package/mobile/dist/components/ApplicationFormCustom/contants.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getField.js +13 -2
- package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getFormatData.js +2 -1
- package/mobile/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +7 -4
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +4 -0
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/mobile/dist/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +4 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
- package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
- package/mobile/dist/hooks/useNormalizedInput.d.ts +2 -1
- package/mobile/dist/hooks/useNormalizedInput.js +2 -2
- package/mobile/dist/hooks/useNormalizedInput.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -2
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +5 -2
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/dist/ui-kit/PreventableEvent.d.ts +3 -0
- package/mobile/lib/api/LeadServiceAPI.js +18 -10
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +5 -4
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +13 -3
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
- package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
- package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.js +8 -0
- package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
- package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.js +17 -0
- package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
- package/mobile/lib/components/ApplicationFormCustom/IsClientField.js +5 -0
- package/mobile/lib/components/ApplicationFormCustom/IsClientField.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
- package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.js +12 -0
- package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
- package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.js +8 -0
- package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
- package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js +3 -6
- package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/contants.d.ts +3 -0
- package/mobile/lib/components/ApplicationFormCustom/contants.js +18 -0
- package/mobile/lib/components/ApplicationFormCustom/contants.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getField.js +13 -2
- package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getFormatData.js +2 -1
- package/mobile/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +5 -2
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +4 -0
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
- package/mobile/lib/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
- package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
- package/mobile/lib/hooks/useNormalizedInput.d.ts +2 -1
- package/mobile/lib/hooks/useNormalizedInput.js +2 -2
- package/mobile/lib/hooks/useNormalizedInput.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -2
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +5 -2
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/lib/ui-kit/PreventableEvent.d.ts +3 -0
- package/mobile/src/api/LeadServiceAPI.ts +18 -9
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +5 -4
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +90 -0
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +18 -6
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +13 -8
- package/mobile/src/components/ApplicationFormCustom/FeedbackMethodField.tsx +14 -0
- package/mobile/src/components/ApplicationFormCustom/FeedbackTypeField.tsx +25 -0
- package/mobile/src/components/ApplicationFormCustom/IsClientField.tsx +7 -0
- package/mobile/src/components/ApplicationFormCustom/PartnerCommentsField.tsx +18 -0
- package/mobile/src/components/ApplicationFormCustom/ServiceDirectionField.tsx +15 -0
- package/mobile/src/components/ApplicationFormCustom/UltraPremiumField.tsx +3 -9
- package/mobile/src/components/ApplicationFormCustom/contants.tsx +21 -0
- package/mobile/src/components/ApplicationFormCustom/getField.tsx +20 -7
- package/mobile/src/components/ApplicationFormCustom/getFormatData.tsx +2 -0
- package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +6 -2
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +4 -0
- package/mobile/src/components/ApplicationFormCustom/renderAgreementSubmit.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +1 -1
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +8 -1
- package/mobile/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +8 -1
- package/mobile/src/hooks/useNormalizedInput.ts +3 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +3 -2
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +7 -3
- package/mobile/src/ui-kit/PreventableEvent.ts +2 -0
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +18 -9
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +5 -4
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +90 -0
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +86 -0
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +18 -6
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +13 -8
- package/src/components/ApplicationFormCustom/FeedbackMethodField.tsx +14 -0
- package/src/components/ApplicationFormCustom/FeedbackTypeField.tsx +25 -0
- package/src/components/ApplicationFormCustom/IsClientField.tsx +7 -0
- package/src/components/ApplicationFormCustom/PartnerCommentsField.tsx +18 -0
- package/src/components/ApplicationFormCustom/ServiceDirectionField.tsx +15 -0
- package/src/components/ApplicationFormCustom/UltraPremiumField.tsx +3 -9
- package/src/components/ApplicationFormCustom/contants.tsx +21 -0
- package/src/components/ApplicationFormCustom/getField.tsx +20 -7
- package/src/components/ApplicationFormCustom/getFormatData.tsx +2 -0
- package/src/components/ApplicationFormCustom/getInitialFormState.tsx +6 -2
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +4 -0
- package/src/components/ApplicationFormCustom/renderAgreementSubmit.tsx +1 -1
- package/src/components/ApplicationFormCustom/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +1 -1
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +0 -2
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +8 -1
- package/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +8 -1
- package/src/hooks/useNormalizedInput.ts +3 -2
- package/src/ui-kit/Input/InputProps.ts +3 -2
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +7 -3
- package/src/ui-kit/PreventableEvent.ts +2 -0
- package/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/bundle/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -8
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/dist/components/ApplicationForm/ApplicationForm.js +0 -31
- package/dist/components/ApplicationForm/ApplicationForm.js.map +0 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +0 -80
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/dist/components/ApplicationForm/ApplicationFormsProps.js +0 -2
- package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/dist/components/ApplicationForm/EmbeddableForms.js +0 -7
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +0 -1
- package/dist/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/dist/components/ApplicationForm/feedbackTypes.js +0 -21
- package/dist/components/ApplicationForm/feedbackTypes.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -6
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationForm.js +0 -29
- package/lib/components/ApplicationForm/ApplicationForm.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +0 -76
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/lib/components/ApplicationForm/ApplicationFormsProps.js +0 -2
- package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/lib/components/ApplicationForm/EmbeddableForms.js +0 -5
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +0 -1
- package/lib/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/lib/components/ApplicationForm/feedbackTypes.js +0 -19
- package/lib/components/ApplicationForm/feedbackTypes.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/mobile/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/mobile/bundle/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -8
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +0 -31
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +0 -80
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +0 -7
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/feedbackTypes.js +0 -21
- package/mobile/dist/components/ApplicationForm/feedbackTypes.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +0 -5
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +0 -29
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +0 -76
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +0 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +0 -5
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/feedbackTypes.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/feedbackTypes.js +0 -19
- package/mobile/lib/components/ApplicationForm/feedbackTypes.js.map +0 -1
- package/mobile/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +0 -21
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +0 -13
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +0 -66
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +0 -9
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +0 -41
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +0 -205
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -8
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +0 -5
- package/mobile/src/components/ApplicationForm/feedbackTypes.ts +0 -22
- package/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +0 -21
- package/src/components/ApplicationForm/ApplicationForm.example.json +0 -13
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +0 -29
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +0 -29
- package/src/components/ApplicationForm/ApplicationForm.tsx +0 -66
- package/src/components/ApplicationForm/ApplicationForm.ui.json +0 -9
- package/src/components/ApplicationForm/ApplicationFormContent.ts +0 -41
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +0 -205
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -8
- package/src/components/ApplicationForm/EmbeddableForms.tsx +0 -5
- package/src/components/ApplicationForm/feedbackTypes.ts +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
@@ -9,17 +9,15 @@ interface Required {
|
|
|
9
9
|
/**
|
|
10
10
|
* @title Кнопка
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
13
|
-
/** @title Текст кнопки */
|
|
14
|
-
text?: string;
|
|
12
|
+
export declare type SubmitButtonProps = TextProps & {
|
|
15
13
|
version?: LinkButtonVersion;
|
|
16
|
-
}
|
|
14
|
+
};
|
|
17
15
|
/**
|
|
18
16
|
* @title Название поля ввода
|
|
19
17
|
* @required
|
|
20
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Ультра/Премиум", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
|
|
18
|
+
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
|
|
21
19
|
*/
|
|
22
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceType' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
|
|
20
|
+
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' | 'partnerComments' | 'consentDataProcessing';
|
|
23
21
|
export declare type ConditionFieldProps = {
|
|
24
22
|
condition?: {
|
|
25
23
|
name: NameFieldDef;
|
|
@@ -32,9 +30,9 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & {
|
|
|
32
30
|
/**
|
|
33
31
|
* @title Тип формы
|
|
34
32
|
* @required
|
|
35
|
-
* @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ"]
|
|
33
|
+
* @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ", "Обратная связь"]
|
|
36
34
|
*/
|
|
37
|
-
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE';
|
|
35
|
+
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
|
|
38
36
|
/**
|
|
39
37
|
* @title Количество колнок
|
|
40
38
|
* @enumNames ["Одна", "Две"]
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
1
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
3
|
-
export declare const SERVICE_TYPES: Option[];
|
|
4
2
|
export declare const UltraPremiumField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FieldProps } from '../../hooks/useForm';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import { type SubmitButtonProps } from '
|
|
4
|
+
import { type SubmitButtonProps } from './ApplicationFormCustomContent';
|
|
5
5
|
export declare const renderAgreementSubmit: (consentDataProcessing?: FieldProps<boolean>, link?: LinkProps, button?: SubmitButtonProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type SubmitButtonProps } from '
|
|
2
|
+
import { type SubmitButtonProps } from './ApplicationFormCustomContent';
|
|
3
3
|
export declare const renderSubmitButton: (button?: SubmitButtonProps, className?: string) => JSX.Element;
|
package/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
-
import { type SubmitButtonProps } from '../
|
|
2
|
+
import { type SubmitButtonProps } from '../ApplicationFormCustom/ApplicationFormCustomContent';
|
|
3
3
|
declare type RegionGrand = {
|
|
4
4
|
name: string;
|
|
5
5
|
href: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type InputProps } from '../ui-kit/Input/InputProps';
|
|
2
|
+
import { type PreventableEventWithTarget } from '../ui-kit/PreventableEvent';
|
|
2
3
|
interface UseNormalizedInputOptions<V, R> {
|
|
3
4
|
normalize: (v: V | undefined) => V;
|
|
4
5
|
format?: (v: V | undefined) => R;
|
|
5
6
|
}
|
|
6
7
|
export declare const useNormalizedInput: <V, P extends InputProps<V>, R = V>(props: P, { normalize, format }: UseNormalizedInputOptions<V, R>) => {
|
|
7
8
|
value: R;
|
|
8
|
-
onFocus: (
|
|
9
|
+
onFocus: (ev: PreventableEventWithTarget) => void;
|
|
9
10
|
onBlur: () => void;
|
|
10
11
|
};
|
|
11
12
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type LabelProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type InputTypes } from '../../model/InputTypes';
|
|
3
3
|
import { type ControlProps } from '../ControlProps';
|
|
4
|
+
import { type PreventableEventWithTarget } from '../PreventableEvent';
|
|
4
5
|
export interface InputProps<V = string> extends ControlProps<V>, LabelProps {
|
|
5
6
|
className?: string;
|
|
6
7
|
id?: string;
|
|
@@ -8,8 +9,8 @@ export interface InputProps<V = string> extends ControlProps<V>, LabelProps {
|
|
|
8
9
|
type?: InputTypes;
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
pattern?: string;
|
|
11
|
-
onFocus?: (
|
|
12
|
-
onBlur?: () => void;
|
|
12
|
+
onFocus?: (ev: PreventableEventWithTarget) => void;
|
|
13
|
+
onBlur?: (ev?: PreventableEventWithTarget) => void;
|
|
13
14
|
valid?: boolean;
|
|
14
15
|
disabled?: boolean;
|
|
15
16
|
autoFocus?: boolean;
|
|
@@ -2,16 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.LeadServiceAPI = void 0;
|
|
3
3
|
const formatPhone_1 = require("../utils/formatPhone");
|
|
4
4
|
function LeadServiceAPI() {
|
|
5
|
-
// eslint-disable-next-line complexity
|
|
6
5
|
async function send(body, isIndividualType = false) {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const { typeForm, region, phone = '', email, birthday, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
7
|
+
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
8
|
+
const url = isNaturalPerson ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
|
|
9
9
|
const submitBody = {
|
|
10
10
|
typeForm,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
...getRegion(region, isNaturalPerson),
|
|
12
|
+
...getEmail(email, isNaturalPerson),
|
|
13
13
|
...getPhone(phone),
|
|
14
|
-
...(
|
|
14
|
+
...(isNaturalPerson ? { birthday: birthday?.toLocaleString() } : { inn, fullName }),
|
|
15
15
|
...(typeForm === 'FEEDBACK'
|
|
16
16
|
? {}
|
|
17
17
|
: {
|
|
@@ -44,8 +44,16 @@ function LeadServiceAPI() {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
exports.LeadServiceAPI = LeadServiceAPI;
|
|
47
|
-
const getPhone = (phone
|
|
48
|
-
const
|
|
49
|
-
?
|
|
50
|
-
|
|
47
|
+
const getPhone = (phone) => (phone ? { phone: (0, formatPhone_1.formatPhone)(phone) } : {});
|
|
48
|
+
const getRegion = (region, isNaturalPerson = true) => ({
|
|
49
|
+
[isNaturalPerson ? 'regionBranch' : 'region']: region,
|
|
50
|
+
});
|
|
51
|
+
const getEmail = (email, isNaturalPerson = true) => ({
|
|
52
|
+
[isNaturalPerson ? 'email' : 'mail']: email,
|
|
53
|
+
});
|
|
54
|
+
const getSecondaryPhone = (secondaryPhone = '') => {
|
|
55
|
+
return !secondaryPhone || secondaryPhone === '+7 ('
|
|
56
|
+
? {}
|
|
57
|
+
: { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
|
|
58
|
+
};
|
|
51
59
|
//# sourceMappingURL=LeadServiceAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,sDAAmD;AAyBnD,SAAgB,cAAc;IAC5B,
|
|
1
|
+
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,sDAAmD;AAyBnD,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,IAAiB,EAAE,gBAAgB,GAAG,KAAK;QAC7D,MAAM,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,aAAa,EACb,cAAc,GAAG,EAAE,EACnB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,GAAG,UAAU,EACd,GAAG,IAAI,CAAC;QACT,MAAM,eAAe,GAAG,gBAAgB,IAAI,gBAAgB,KAAK,uBAAuB,CAAC;QACzF,MAAM,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,2BAA2B,CAAC;QAC3E,MAAM,UAAU,GAAG;YACjB,QAAQ;YACR,GAAG,SAAS,CAAC,MAAM,EAAE,eAAe,CAAC;YACrC,GAAG,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;YACnC,GAAG,QAAQ,CAAC,KAAK,CAAC;YAClB,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;YACnF,GAAG,CAAC,QAAQ,KAAK,UAAU;gBACzB,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,aAAa;oBACb,WAAW;oBACX,eAAe;oBACf,GAAG,iBAAiB,CAAC,cAAwB,CAAC;iBAC/C,CAAC;YACN,GAAG,UAAU;SACd,CAAC;QAEF,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;gBAChC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;gBAC/C,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;aACjC,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;KACL,CAAC;AACJ,CAAC;AA3DD,wCA2DC;AAED,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAElF,MAAM,SAAS,GAAG,CAAC,MAAsC,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM;CACtD,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK;CAC5C,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE;IAChD,OAAO,CAAC,cAAc,IAAI,cAAc,KAAK,MAAM;QACjD,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,oBAAoB,EAAE,IAAA,yBAAW,EAAC,cAAc,CAAC,EAAE,CAAC;AAC5D,CAAC,CAAC"}
|
|
@@ -9,16 +9,17 @@ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
|
|
|
9
9
|
const getObjectValidator_1 = require("./getObjectValidator");
|
|
10
10
|
const getValidation_1 = require("./getValidation");
|
|
11
11
|
exports.AddressBranchField = (0, uni_jsx_1.JSX)(({ field, input, isPremium = false }) => {
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const fieldRegion = field('region');
|
|
13
|
+
const regionKey = fieldRegion?.value?.key;
|
|
14
|
+
const regionText = fieldRegion?.value?.text;
|
|
14
15
|
const addressBranch = isPremium
|
|
15
16
|
? (0, useBranchesByRegions_1.useBranchesByRegions)()?.find((_) => _?.region === regionText)?.branches
|
|
16
17
|
: (0, useBranches_1.useBranches)(regionKey)?.filter((branch) => branch?.address);
|
|
17
18
|
(0, hooks_1.useEffect)(() => {
|
|
18
|
-
if (
|
|
19
|
+
if (fieldRegion?.value?.key !== '') {
|
|
19
20
|
field?.('addressBranch')?.onChange?.('');
|
|
20
21
|
}
|
|
21
|
-
}, [
|
|
22
|
+
}, [fieldRegion?.value]);
|
|
22
23
|
return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: (addressBranch || []).map(({ address = '' }) => ({
|
|
23
24
|
key: address,
|
|
24
25
|
text: address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBranchField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/AddressBranchField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,yDAAsD;AACtD,2EAAwE;AACxE,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAMnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,MAAM,
|
|
1
|
+
{"version":3,"file":"AddressBranchField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/AddressBranchField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,yDAAsD;AACtD,2EAAwE;AACxE,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAMnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,EAAE,GAAa,CAAC;IACpD,MAAM,UAAU,GAAG,WAAW,EAAE,KAAK,EAAE,IAAc,CAAC;IACtD,MAAM,aAAa,GAAG,SAAS;QAC7B,CAAC,CAAC,IAAA,2CAAoB,GAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,EAAE,QAAQ;QACzE,CAAC,CAAC,IAAA,yBAAW,EAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE;YAClC,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;SAC1C;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,gCAAO,EACb,WAAW,EAAC,iFAAgB,EAC5B,OAAO,EAAE,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG,EAAE,OAAO;YACZ,IAAI,EAAE,OAAO;SACd,CAAC,CAAC,KACC,IAAA,6BAAa,EAAC,KAAK,CAAC,eAAe,CAAC,EAAE,iCAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,GACtF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -31,8 +31,13 @@ exports.ApplicationFormCustom = (0, uni_jsx_1.JSX)(({ className, title, typeForm
|
|
|
31
31
|
setResponseType(status);
|
|
32
32
|
return status;
|
|
33
33
|
}, []);
|
|
34
|
-
const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
|
|
34
|
+
const [, { field, onSubmit, reset }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
|
|
35
35
|
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
36
|
+
(0, hooks_1.useEffect)(() => {
|
|
37
|
+
if (responseType === 'OK') {
|
|
38
|
+
reset();
|
|
39
|
+
}
|
|
40
|
+
}, [responseType]);
|
|
36
41
|
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, responseType: responseType, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [_?.title ? (0, jsx_runtime_1.jsx)("div", { className: "@xl:text-center @xl:col-span-2", children: _.title }) : null, (_?.inputs || [])?.map((0, getField_1.getField)(field, typeForm))] }, `section-${i}`))), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
|
|
37
42
|
});
|
|
38
43
|
const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
|
|
@@ -40,5 +45,10 @@ const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'co
|
|
|
40
45
|
const getFilteredInputs = (inputs, data) => inputs
|
|
41
46
|
.filter((_) => _)
|
|
42
47
|
.filter((input) => !input?.condition ||
|
|
43
|
-
input?.condition.values.find((_) =>
|
|
48
|
+
input?.condition.values.find((_) => {
|
|
49
|
+
const dataValue = data?.[input?.condition?.name ?? ''];
|
|
50
|
+
return input.name === 'secondaryPhone'
|
|
51
|
+
? Boolean(data.secondaryPhone)
|
|
52
|
+
: _ === (dataValue?.key ?? dataValue);
|
|
53
|
+
}));
|
|
44
54
|
//# sourceMappingURL=ApplicationFormCustom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,6DAA0D;AAC1D,iDAA8C;AAC9C,oGAAiG;AAEjG,6CAA0C;AAC1C,sEAAmE;AACnE,0DAAiE;AAMjE,yCAAsC;AACtC,mDAAgD;AAChD,+DAA4E;AAC5E,6DAA0D;AAC1D,mEAAgE;AAChE,qDAAkD;AAGlD,MAAM,GAAG,GAAG,IAAA,+BAAc,GAAE,CAAC;AAEhB,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EACC,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,CAAC;IACzE,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC/D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAqB,EAAE,CAAC,CAAC;IAEzE,MAAM,YAAY,GAAG,IAAA,mBAAW,EAAC,KAAK,EAAE,IAAe,EAAE,EAAE;QACzD,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,iBAAiB,GAAG,IAAA,iCAAe,EAAC,IAAA,uCAAkB,EAAC,cAAc,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAA,+BAAmB,EAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,EAAE;YACjD,OAAO,MAAM,CAAC;SACf;QACD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,EAAE,GAAG,IAAI,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;QACjF,eAAe,CAAC,MAAM,CAAC,CAAC;QAExB,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC;IAC7F,MAAM,SAAS,GAAG,wBAAwB,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;IAEzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,YAAY,KAAK,IAAI,EAAE;YACzB,KAAK,EAAE,CAAC;SACT;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,wBAAC,6CAAqB,IACpB,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,KACtB,IAAI,aAER,kCAAM,QAAQ,EAAE,QAAQ,aACrB,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,iCAEE,SAAS,EAAE,IAAA,aAAK,EAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aAE7D,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,gCAAgC,YAAE,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,KAJ7C,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,6CAAqB,EACpB,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,EACtD,IAAI,EACJ,MAAM,CACP,IACI,EACN,UAAU,CAAC,CAAC,CAAC,IAAA,+BAAc,GAAE,CAAC,CAAC,CAAC,IAAI,IACf,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,MAAoC,EAAE,EAAE,CACjE,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;AAExC,MAAM,wBAAwB,GAAG,CAAC,MAAkB,EAAE,EAAE,CACtD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,uBAAuB,CAAC,CAAC;AAE3D,MAAM,iBAAiB,GAAG,CAAC,MAAkB,EAAE,IAAe,EAAE,EAAE,CAChE,MAAM;KACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KAChB,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACjC,MAAM,SAAS,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;QAEvD,OAAO,KAAK,CAAC,IAAI,KAAK,gBAAgB;YACpC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;YAC9B,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC;IAC1C,CAAC,CAAC,CACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
@@ -9,17 +9,15 @@ interface Required {
|
|
|
9
9
|
/**
|
|
10
10
|
* @title Кнопка
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
13
|
-
/** @title Текст кнопки */
|
|
14
|
-
text?: string;
|
|
12
|
+
export declare type SubmitButtonProps = TextProps & {
|
|
15
13
|
version?: LinkButtonVersion;
|
|
16
|
-
}
|
|
14
|
+
};
|
|
17
15
|
/**
|
|
18
16
|
* @title Название поля ввода
|
|
19
17
|
* @required
|
|
20
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Ультра/Премиум", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
|
|
18
|
+
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
|
|
21
19
|
*/
|
|
22
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceType' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
|
|
20
|
+
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' | 'partnerComments' | 'consentDataProcessing';
|
|
23
21
|
export declare type ConditionFieldProps = {
|
|
24
22
|
condition?: {
|
|
25
23
|
name: NameFieldDef;
|
|
@@ -32,9 +30,9 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & {
|
|
|
32
30
|
/**
|
|
33
31
|
* @title Тип формы
|
|
34
32
|
* @required
|
|
35
|
-
* @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ"]
|
|
33
|
+
* @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ", "Обратная связь"]
|
|
36
34
|
*/
|
|
37
|
-
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE';
|
|
35
|
+
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
|
|
38
36
|
/**
|
|
39
37
|
* @title Количество колнок
|
|
40
38
|
* @enumNames ["Одна", "Две"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.FeedbackMethodField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
|
|
6
|
+
const withValidator_1 = require("../../validation/withValidator");
|
|
7
|
+
const contants_1 = require("./contants");
|
|
8
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
9
|
+
exports.FeedbackMethodField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: contants_1.FEEDBACK_METHOD, ...(0, withValidator_1.withValidator)(field('feedbackMethod'), getObjectValidator_1.validatorObj.feedbackMethod) })));
|
|
10
|
+
//# sourceMappingURL=FeedbackMethodField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackMethodField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/FeedbackMethodField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAA6C;AAE7C,6DAAoD;AAEvC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACtE,uBAAC,6BAAa,IACZ,KAAK,EAAC,kIAAyB,EAC/B,OAAO,EAAE,0BAAe,KACpB,IAAA,6BAAa,EAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,iCAAY,CAAC,cAAc,CAAC,GACvE,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.FeedbackTypeField = 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 SelectControl_1 = require("../../ui-kit/Select/SelectControl");
|
|
7
|
+
const withValidator_1 = require("../../validation/withValidator");
|
|
8
|
+
const contants_1 = require("./contants");
|
|
9
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
10
|
+
exports.FeedbackTypeField = (0, uni_jsx_1.JSX)(({ field }) => {
|
|
11
|
+
const feedbackType = field('feedbackType');
|
|
12
|
+
(0, hooks_1.useEffect)(() => {
|
|
13
|
+
if (feedbackType?.value?.key === 'FEEDBACK') {
|
|
14
|
+
field('serviceDirection')?.onChange?.(contants_1.SERVICE_DIRECTIONS[0]);
|
|
15
|
+
}
|
|
16
|
+
}, [feedbackType?.value]);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0435\u043C\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: contants_1.FEEDBACK_TYPES, ...(0, withValidator_1.withValidator)(feedbackType, getObjectValidator_1.validatorObj.feedbackType) }));
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=FeedbackTypeField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/FeedbackTypeField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,qEAAkE;AAClE,kEAA+D;AAC/D,yCAAgE;AAEhE,6DAAoD;AAEvC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACnE,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,YAAY,EAAE,KAAK,EAAE,GAAG,KAAK,UAAU,EAAE;YAC3C,KAAK,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,6BAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9D;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;IAE1B,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,0BAAM,EACZ,WAAW,EAAC,2EAAe,EAC3B,OAAO,EAAE,yBAAc,KACnB,IAAA,6BAAa,EAAC,YAAY,EAAE,iCAAY,CAAC,YAAY,CAAC,GAC1D,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.IsClientField = 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("../../ui-kit/Checkbox/CheckboxWithError");
|
|
6
|
+
exports.IsClientField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })));
|
|
7
|
+
//# sourceMappingURL=IsClientField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsClientField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/IsClientField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+EAA4E;AAG/D,QAAA,aAAa,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAChE,uBAAC,qCAAiB,OAAK,KAAK,CAAC,UAAU,CAAC,EAAE,IAAI,EAAC,gOAA4C,GAAG,CAC/F,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.SecondaryPhoneField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InputPhoneControl_1 = require("../../ui-kit/Input/InputPhoneControl");
|
|
6
|
+
const withValidator_1 = require("../../validation/withValidator");
|
|
7
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
8
|
+
exports.SecondaryPhoneField = (0, uni_jsx_1.JSX)(({ field }) => {
|
|
9
|
+
const fieldPhone = field('secondaryPhone');
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(InputPhoneControl_1.InputPhoneControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...(!fieldPhone.value || fieldPhone.value === '+7 ('
|
|
11
|
+
? fieldPhone
|
|
12
|
+
: (0, withValidator_1.withValidator)(fieldPhone, getObjectValidator_1.validatorObj.secondaryPhone)) }));
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=PartnerCommentsField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartnerCommentsField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/PartnerCommentsField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4EAAyE;AACzE,kEAA+D;AAE/D,6DAAoD;AAEvC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrE,MAAM,UAAU,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAE3C,OAAO,CACL,uBAAC,qCAAiB,IAChB,KAAK,EAAC,iIAAwB,KAC1B,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,KAAK,MAAM;YACnD,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,IAAA,6BAAa,EAAC,UAAU,EAAE,iCAAY,CAAC,cAAc,CAAC,CAAC,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ServiceDirectionField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
|
|
6
|
+
const withValidator_1 = require("../../validation/withValidator");
|
|
7
|
+
const contants_1 = require("./contants");
|
|
8
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
9
|
+
exports.ServiceDirectionField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: contants_1.SERVICE_DIRECTIONS, ...(0, withValidator_1.withValidator)(field('serviceDirection'), getObjectValidator_1.validatorObj.serviceDirection) })));
|
|
10
|
+
//# sourceMappingURL=ServiceDirectionField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceDirectionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ServiceDirectionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAAgD;AAEhD,6DAAoD;AAEvC,QAAA,qBAAqB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxE,uBAAC,6BAAa,IACZ,KAAK,EAAC,6IAA0B,EAChC,WAAW,EAAC,qHAAsB,EAClC,OAAO,EAAE,6BAAkB,KACvB,IAAA,6BAAa,EAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,iCAAY,CAAC,gBAAgB,CAAC,GAC3E,CACH,CAAC,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
1
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
3
|
-
export declare const SERVICE_TYPES: Option[];
|
|
4
2
|
export declare const UltraPremiumField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.UltraPremiumField =
|
|
2
|
+
exports.UltraPremiumField = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
|
|
6
6
|
const withValidator_1 = require("../../validation/withValidator");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
11
|
-
];
|
|
12
|
-
exports.UltraPremiumField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: exports.SERVICE_TYPES, ...(0, withValidator_1.withValidator)(field('serviceType'), validators_1.defaultValidator) })));
|
|
7
|
+
const contants_1 = require("./contants");
|
|
8
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
9
|
+
exports.UltraPremiumField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: contants_1.SERVICE_TYPES, ...(0, withValidator_1.withValidator)(field('serviceType'), getObjectValidator_1.validatorObj.serviceType) })));
|
|
13
10
|
//# sourceMappingURL=UltraPremiumField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/UltraPremiumField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/UltraPremiumField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAA2C;AAE3C,6DAAoD;AACvC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpE,uBAAC,6BAAa,IACZ,KAAK,EAAC,6FAAkB,EACxB,OAAO,EAAE,wBAAa,KAClB,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,iCAAY,CAAC,WAAW,CAAC,GACjE,CACH,CAAC,CAAC"}
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SERVICE_TYPES = void 0;
|
|
2
|
+
exports.FEEDBACK_METHOD = exports.FEEDBACK_TYPES = exports.SERVICE_DIRECTIONS = exports.SERVICE_TYPES = void 0;
|
|
3
3
|
exports.SERVICE_TYPES = [
|
|
4
4
|
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
5
5
|
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
6
6
|
];
|
|
7
|
+
exports.SERVICE_DIRECTIONS = [
|
|
8
|
+
{ key: 'Физическое лицо' },
|
|
9
|
+
{ key: 'Юридическое лицо / ИП' },
|
|
10
|
+
];
|
|
11
|
+
exports.FEEDBACK_TYPES = [
|
|
12
|
+
{
|
|
13
|
+
text: 'Задать вопрос по продуктам и услугам',
|
|
14
|
+
key: 'FEEDBACK',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: 'Качество обслуживания',
|
|
18
|
+
key: 'FEEDBACK_QS',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
exports.FEEDBACK_METHOD = [
|
|
22
|
+
{ key: 'phone', text: 'Телефонный звонок' },
|
|
23
|
+
{ key: 'email', text: 'Электронное сообщение' },
|
|
24
|
+
];
|
|
7
25
|
//# sourceMappingURL=contants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/contants.tsx"],"names":[],"mappings":";;AAEa,QAAA,aAAa,GAAa;IACrC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvC,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3C,CAAC"}
|
|
1
|
+
{"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/contants.tsx"],"names":[],"mappings":";;AAEa,QAAA,aAAa,GAAa;IACrC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvC,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3C,CAAC;AAEW,QAAA,kBAAkB,GAAa;IAC1C,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAC1B,EAAE,GAAG,EAAE,uBAAuB,EAAE;CACjC,CAAC;AAEW,QAAA,cAAc,GAAa;IACtC;QACE,IAAI,EAAE,sCAAsC;QAC5C,GAAG,EAAE,UAAU;KAChB;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,GAAG,EAAE,aAAa;KACnB;CACF,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC3C,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE;CAChD,CAAC"}
|
|
@@ -9,12 +9,17 @@ const AcquiringField_1 = require("./AcquiringField");
|
|
|
9
9
|
const AddressBranchField_1 = require("./AddressBranchField");
|
|
10
10
|
const AmountField_1 = require("./AmountField");
|
|
11
11
|
const CommentField_1 = require("./CommentField");
|
|
12
|
+
const FeedbackMethodField_1 = require("./FeedbackMethodField");
|
|
13
|
+
const FeedbackTypeField_1 = require("./FeedbackTypeField");
|
|
12
14
|
const getObjectValidator_1 = require("./getObjectValidator");
|
|
13
15
|
const getValidation_1 = require("./getValidation");
|
|
16
|
+
const IsClientField_1 = require("./IsClientField");
|
|
14
17
|
const OnlineCheckoutField_1 = require("./OnlineCheckoutField");
|
|
18
|
+
const PartnerCommentsField_1 = require("./PartnerCommentsField");
|
|
15
19
|
const PosTerminalField_1 = require("./PosTerminalField");
|
|
16
20
|
const RegionField_1 = require("./RegionField");
|
|
17
21
|
const RegionPremiumField_1 = require("./RegionPremiumField");
|
|
22
|
+
const ServiceDirectionField_1 = require("./ServiceDirectionField");
|
|
18
23
|
const TermField_1 = require("./TermField");
|
|
19
24
|
const UltraPremiumField_1 = require("./UltraPremiumField");
|
|
20
25
|
const VedField_1 = require("./VedField");
|
|
@@ -35,7 +40,7 @@ const getField =
|
|
|
35
40
|
region: isPremium ? ((0, jsx_runtime_1.jsx)(RegionPremiumField_1.RegionPremiumField, { field: field })) : ((0, jsx_runtime_1.jsx)(RegionField_1.RegionField, { field: field, input: input })),
|
|
36
41
|
addressBranch: (0, jsx_runtime_1.jsx)(AddressBranchField_1.AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
37
42
|
birthday: ((0, jsx_runtime_1.jsx)(DatePickerControl_1.DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...(0, getValidation_1.getValidation)(field('birthday'), getObjectValidator_1.validatorObj.birthday, required) })),
|
|
38
|
-
isClient: (
|
|
43
|
+
isClient: (0, jsx_runtime_1.jsx)(IsClientField_1.IsClientField, { field: field }),
|
|
39
44
|
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" })),
|
|
40
45
|
partnerComments: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { ...(0, getValidation_1.getValidation)(field('partnerComments'), getObjectValidator_1.validatorObj.partnerComments, required), placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441", isTextarea: true, ...rest })),
|
|
41
46
|
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) })),
|
|
@@ -47,6 +52,12 @@ const getField =
|
|
|
47
52
|
amount: (0, jsx_runtime_1.jsx)(AmountField_1.AmountField, { field: field }),
|
|
48
53
|
annualRevenue: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...(0, getValidation_1.getValidation)(field('annualRevenue'), getObjectValidator_1.validatorObj.annualRevenue, required) })),
|
|
49
54
|
vedTypes: (0, jsx_runtime_1.jsx)(VedField_1.VedField, { field: field }),
|
|
55
|
+
feedbackType: (0, jsx_runtime_1.jsx)(FeedbackTypeField_1.FeedbackTypeField, { field: field }),
|
|
56
|
+
feedbackMethod: (0, jsx_runtime_1.jsx)(FeedbackMethodField_1.FeedbackMethodField, { field: field }),
|
|
57
|
+
serviceDirection: (0, jsx_runtime_1.jsx)(ServiceDirectionField_1.ServiceDirectionField, { field: field }),
|
|
58
|
+
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') })),
|
|
59
|
+
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') })),
|
|
60
|
+
secondaryPhone: (0, jsx_runtime_1.jsx)(PartnerCommentsField_1.SecondaryPhoneField, { field: field }),
|
|
50
61
|
};
|
|
51
62
|
return isRenderField({ input, field }) ? ((0, jsx_runtime_1.jsx)("div", { children: InputsMap[input?.name] }, String(index))) : null;
|
|
52
63
|
};
|
|
@@ -54,7 +65,7 @@ exports.getField = getField;
|
|
|
54
65
|
function isRenderField({ input, field, }) {
|
|
55
66
|
const { condition } = input;
|
|
56
67
|
const { value } = field(condition?.name || '');
|
|
57
|
-
return !condition || condition?.values?.find((_) => _ === value);
|
|
68
|
+
return !condition || condition?.values?.find((_) => _ === (value?.key ?? value));
|
|
58
69
|
}
|
|
59
70
|
exports.isRenderField = isRenderField;
|
|
60
71
|
//# sourceMappingURL=getField.js.map
|