@redneckz/wildless-cms-uni-blocks 0.14.548 → 0.14.550
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 +147 -94
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/bundle/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/bundle/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/bundle/components/ApplicationForm/ProductField.d.ts +2 -0
- package/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/bundle/components/ApplicationForm/{contants.d.ts → constants.d.ts} +2 -0
- package/bundle/components/ApplicationForm/getField.d.ts +0 -4
- package/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/bundle/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/bundle/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/bundle/components/CalculatorDeposit/utils.d.ts +17 -0
- package/bundle/hooks/useForm.d.ts +2 -1
- package/bundle/hooks/useRegions.d.ts +2 -1
- package/bundle/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/dist/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/dist/components/ApplicationForm/FeedbackMethodField.js +2 -2
- package/dist/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
- package/dist/components/ApplicationForm/FeedbackTypeField.js +3 -3
- package/dist/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
- package/dist/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/dist/components/ApplicationForm/LocalitiesField.js +24 -0
- package/dist/components/ApplicationForm/LocalitiesField.js.map +1 -0
- package/dist/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/dist/components/ApplicationForm/PartnerCommentsField.js +6 -8
- package/dist/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
- package/dist/components/ApplicationForm/ProductField.d.ts +2 -0
- package/dist/components/ApplicationForm/ProductField.js +10 -0
- package/dist/components/ApplicationForm/ProductField.js.map +1 -0
- package/dist/components/ApplicationForm/RegionField.js +2 -2
- package/dist/components/ApplicationForm/RegionField.js.map +1 -1
- package/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/dist/components/ApplicationForm/SecondaryPhoneField.js +14 -0
- package/dist/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
- package/dist/components/ApplicationForm/ServiceDirectionField.js +2 -2
- package/dist/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
- package/dist/components/ApplicationForm/UltraPremiumField.js +2 -2
- package/dist/components/ApplicationForm/UltraPremiumField.js.map +1 -1
- package/{lib/components/ApplicationForm/contants.d.ts → dist/components/ApplicationForm/constants.d.ts} +2 -0
- package/dist/components/ApplicationForm/constants.js +34 -0
- package/dist/components/ApplicationForm/constants.js.map +1 -0
- package/dist/components/ApplicationForm/getField.d.ts +0 -4
- package/dist/components/ApplicationForm/getField.js +13 -11
- package/dist/components/ApplicationForm/getField.js.map +1 -1
- package/dist/components/ApplicationForm/getInitialFormState.js +6 -6
- package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationForm/getObjectValidator.js +3 -0
- package/dist/components/ApplicationForm/getObjectValidator.js.map +1 -1
- package/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/dist/components/ApplicationForm/getRegionUrl.js +6 -0
- package/dist/components/ApplicationForm/getRegionUrl.js.map +1 -0
- package/dist/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/dist/components/ApplicationForm/isRenderField.js +9 -0
- package/dist/components/ApplicationForm/isRenderField.js.map +1 -0
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/dist/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/dist/components/CalculatorDeposit/isRubles.js +5 -0
- package/dist/components/CalculatorDeposit/isRubles.js.map +1 -0
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/dist/components/CalculatorDeposit/utils.d.ts +17 -0
- package/dist/components/CalculatorDeposit/utils.js +32 -0
- package/dist/components/CalculatorDeposit/utils.js.map +1 -0
- package/dist/hooks/useForm.d.ts +2 -1
- package/dist/hooks/useForm.js +22 -12
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/hooks/useRegions.d.ts +2 -1
- package/dist/hooks/useRegions.js +2 -2
- package/dist/hooks/useRegions.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/dist/ui-kit/Calculator/getDefaultParams.js +1 -1
- package/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/lib/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/lib/components/ApplicationForm/FeedbackMethodField.js +1 -1
- package/lib/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
- package/lib/components/ApplicationForm/FeedbackTypeField.js +1 -1
- package/lib/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
- package/lib/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/lib/components/ApplicationForm/LocalitiesField.js +22 -0
- package/lib/components/ApplicationForm/LocalitiesField.js.map +1 -0
- package/lib/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/lib/components/ApplicationForm/PartnerCommentsField.js +5 -7
- package/lib/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
- package/lib/components/ApplicationForm/ProductField.d.ts +2 -0
- package/lib/components/ApplicationForm/ProductField.js +8 -0
- package/lib/components/ApplicationForm/ProductField.js.map +1 -0
- package/lib/components/ApplicationForm/RegionField.js +2 -2
- package/lib/components/ApplicationForm/RegionField.js.map +1 -1
- package/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/lib/components/ApplicationForm/SecondaryPhoneField.js +12 -0
- package/lib/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
- package/lib/components/ApplicationForm/ServiceDirectionField.js +1 -1
- package/lib/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
- package/lib/components/ApplicationForm/UltraPremiumField.js +1 -1
- package/lib/components/ApplicationForm/UltraPremiumField.js.map +1 -1
- package/{dist/components/ApplicationForm/contants.d.ts → lib/components/ApplicationForm/constants.d.ts} +2 -0
- package/lib/components/ApplicationForm/{contants.js → constants.js} +10 -1
- package/lib/components/ApplicationForm/constants.js.map +1 -0
- package/lib/components/ApplicationForm/getField.d.ts +0 -4
- package/lib/components/ApplicationForm/getField.js +11 -8
- package/lib/components/ApplicationForm/getField.js.map +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.js +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationForm/getObjectValidator.js +3 -0
- package/lib/components/ApplicationForm/getObjectValidator.js.map +1 -1
- package/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/lib/components/ApplicationForm/getRegionUrl.js +3 -0
- package/lib/components/ApplicationForm/getRegionUrl.js.map +1 -0
- package/lib/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/lib/components/ApplicationForm/isRenderField.js +6 -0
- package/lib/components/ApplicationForm/isRenderField.js.map +1 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/lib/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/lib/components/CalculatorDeposit/isRubles.js +2 -0
- package/lib/components/CalculatorDeposit/isRubles.js.map +1 -0
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/lib/components/CalculatorDeposit/utils.d.ts +17 -0
- package/lib/components/CalculatorDeposit/utils.js +25 -0
- package/lib/components/CalculatorDeposit/utils.js.map +1 -0
- package/lib/hooks/useForm.d.ts +2 -1
- package/lib/hooks/useForm.js +23 -13
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useRegions.d.ts +2 -1
- package/lib/hooks/useRegions.js +2 -2
- package/lib/hooks/useRegions.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/lib/ui-kit/Calculator/getDefaultParams.js +1 -1
- package/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +147 -94
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/mobile/bundle/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ProductField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/{contants.d.ts → constants.d.ts} +2 -0
- package/mobile/bundle/components/ApplicationForm/getField.d.ts +0 -4
- package/mobile/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/mobile/bundle/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/mobile/bundle/components/CalculatorDeposit/utils.d.ts +17 -0
- package/mobile/bundle/hooks/useForm.d.ts +2 -1
- package/mobile/bundle/hooks/useRegions.d.ts +2 -1
- package/mobile/bundle/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/mobile/dist/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js +2 -2
- package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js +3 -3
- package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/LocalitiesField.js +24 -0
- package/mobile/dist/components/ApplicationForm/LocalitiesField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js +6 -8
- package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ProductField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ProductField.js +10 -0
- package/mobile/dist/components/ApplicationForm/ProductField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/RegionField.js +2 -2
- package/mobile/dist/components/ApplicationForm/RegionField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js +14 -0
- package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js +2 -2
- package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/UltraPremiumField.js +2 -2
- package/mobile/dist/components/ApplicationForm/UltraPremiumField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/constants.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/constants.js +34 -0
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/getField.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/getField.js +13 -11
- package/mobile/dist/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js +6 -6
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getObjectValidator.js +3 -0
- package/mobile/dist/components/ApplicationForm/getObjectValidator.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/getRegionUrl.js +6 -0
- package/mobile/dist/components/ApplicationForm/getRegionUrl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/isRenderField.js +9 -0
- package/mobile/dist/components/ApplicationForm/isRenderField.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/mobile/dist/components/CalculatorDeposit/isRubles.js +5 -0
- package/mobile/dist/components/CalculatorDeposit/isRubles.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/utils.d.ts +17 -0
- package/mobile/dist/components/CalculatorDeposit/utils.js +32 -0
- package/mobile/dist/components/CalculatorDeposit/utils.js.map +1 -0
- package/mobile/dist/hooks/useForm.d.ts +2 -1
- package/mobile/dist/hooks/useForm.js +22 -12
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/hooks/useRegions.d.ts +2 -1
- package/mobile/dist/hooks/useRegions.js +2 -2
- package/mobile/dist/hooks/useRegions.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.js +1 -1
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
- package/mobile/lib/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js +1 -1
- package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js +1 -1
- package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/LocalitiesField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/LocalitiesField.js +22 -0
- package/mobile/lib/components/ApplicationForm/LocalitiesField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js +5 -7
- package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ProductField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/ProductField.js +8 -0
- package/mobile/lib/components/ApplicationForm/ProductField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/RegionField.js +2 -2
- package/mobile/lib/components/ApplicationForm/RegionField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js +12 -0
- package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js +1 -1
- package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/UltraPremiumField.js +1 -1
- package/mobile/lib/components/ApplicationForm/UltraPremiumField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/constants.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/{contants.js → constants.js} +10 -1
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/getField.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/getField.js +11 -8
- package/mobile/lib/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getObjectValidator.js +3 -0
- package/mobile/lib/components/ApplicationForm/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/getRegionUrl.js +3 -0
- package/mobile/lib/components/ApplicationForm/getRegionUrl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/isRenderField.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/isRenderField.js +6 -0
- package/mobile/lib/components/ApplicationForm/isRenderField.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/isRubles.d.ts +1 -0
- package/mobile/lib/components/CalculatorDeposit/isRubles.js +2 -0
- package/mobile/lib/components/CalculatorDeposit/isRubles.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/utils.d.ts +17 -0
- package/mobile/lib/components/CalculatorDeposit/utils.js +25 -0
- package/mobile/lib/components/CalculatorDeposit/utils.js.map +1 -0
- package/mobile/lib/hooks/useForm.d.ts +2 -1
- package/mobile/lib/hooks/useForm.js +23 -13
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/hooks/useRegions.d.ts +2 -1
- package/mobile/lib/hooks/useRegions.js +2 -2
- package/mobile/lib/hooks/useRegions.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.js +1 -1
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +79 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +6 -2
- package/mobile/src/components/ApplicationForm/CustomFieldProps.ts +1 -0
- package/mobile/src/components/ApplicationForm/FeedbackMethodField.tsx +1 -1
- package/mobile/src/components/ApplicationForm/FeedbackTypeField.tsx +1 -1
- package/mobile/src/components/ApplicationForm/LocalitiesField.tsx +34 -0
- package/mobile/src/components/ApplicationForm/PartnerCommentsField.tsx +10 -9
- package/mobile/src/components/ApplicationForm/ProductField.tsx +15 -0
- package/mobile/src/components/ApplicationForm/RegionField.tsx +2 -2
- package/mobile/src/components/ApplicationForm/SecondaryPhoneField.tsx +18 -0
- package/mobile/src/components/ApplicationForm/ServiceDirectionField.tsx +1 -1
- package/mobile/src/components/ApplicationForm/UltraPremiumField.tsx +1 -1
- package/mobile/src/components/ApplicationForm/{contants.tsx → constants.tsx} +11 -0
- package/mobile/src/components/ApplicationForm/getField.tsx +16 -23
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/ApplicationForm/getObjectValidator.tsx +3 -0
- package/mobile/src/components/ApplicationForm/getRegionUrl.tsx +4 -0
- package/mobile/src/components/ApplicationForm/isRenderField.tsx +15 -0
- package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +47 -71
- package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +10 -1
- package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +14 -9
- package/mobile/src/components/CalculatorDeposit/isRubles.tsx +1 -0
- package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +5 -2
- package/mobile/src/components/CalculatorDeposit/utils.tsx +37 -0
- package/mobile/src/hooks/useForm.ts +33 -16
- package/mobile/src/hooks/useRegions.ts +3 -2
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/getDefaultParams.tsx +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +79 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +34 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +6 -2
- package/src/components/ApplicationForm/CustomFieldProps.ts +1 -0
- package/src/components/ApplicationForm/FeedbackMethodField.tsx +1 -1
- package/src/components/ApplicationForm/FeedbackTypeField.tsx +1 -1
- package/src/components/ApplicationForm/LocalitiesField.tsx +34 -0
- package/src/components/ApplicationForm/PartnerCommentsField.tsx +10 -9
- package/src/components/ApplicationForm/ProductField.tsx +15 -0
- package/src/components/ApplicationForm/RegionField.tsx +2 -2
- package/src/components/ApplicationForm/SecondaryPhoneField.tsx +18 -0
- package/src/components/ApplicationForm/ServiceDirectionField.tsx +1 -1
- package/src/components/ApplicationForm/UltraPremiumField.tsx +1 -1
- package/src/components/ApplicationForm/{contants.tsx → constants.tsx} +11 -0
- package/src/components/ApplicationForm/getField.tsx +16 -23
- package/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/src/components/ApplicationForm/getObjectValidator.tsx +3 -0
- package/src/components/ApplicationForm/getRegionUrl.tsx +4 -0
- package/src/components/ApplicationForm/isRenderField.tsx +15 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +2 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +47 -71
- package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +10 -1
- package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +14 -9
- package/src/components/CalculatorDeposit/isRubles.tsx +1 -0
- package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +5 -2
- package/src/components/CalculatorDeposit/utils.tsx +37 -0
- package/src/hooks/useForm.ts +33 -16
- package/src/hooks/useRegions.ts +3 -2
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/Calculator/getDefaultParams.tsx +3 -3
- package/bundle/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/dist/components/ApplicationForm/contants.js +0 -25
- package/dist/components/ApplicationForm/contants.js.map +0 -1
- package/dist/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/dist/components/CalculatorDeposit/isNotRubles.js +0 -5
- package/dist/components/CalculatorDeposit/isNotRubles.js.map +0 -1
- package/lib/components/ApplicationForm/contants.js.map +0 -1
- package/lib/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/lib/components/CalculatorDeposit/isNotRubles.js +0 -2
- package/lib/components/CalculatorDeposit/isNotRubles.js.map +0 -1
- package/mobile/bundle/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/contants.d.ts +0 -5
- package/mobile/dist/components/ApplicationForm/contants.js +0 -25
- package/mobile/dist/components/ApplicationForm/contants.js.map +0 -1
- package/mobile/dist/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/mobile/dist/components/CalculatorDeposit/isNotRubles.js +0 -5
- package/mobile/dist/components/CalculatorDeposit/isNotRubles.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/contants.d.ts +0 -5
- package/mobile/lib/components/ApplicationForm/contants.js.map +0 -1
- package/mobile/lib/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
- package/mobile/lib/components/CalculatorDeposit/isNotRubles.js +0 -2
- package/mobile/lib/components/CalculatorDeposit/isNotRubles.js.map +0 -1
- package/mobile/src/components/CalculatorDeposit/isNotRubles.tsx +0 -1
- package/src/components/CalculatorDeposit/isNotRubles.tsx +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/hooks/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/hooks/useForm.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
2
|
import { fetchJSONUnsafe } from '../utils/fetchJSON.js';
|
|
3
3
|
const REGIONS_URL = '/api/v1/regions';
|
|
4
|
-
export function useRegions() {
|
|
5
|
-
const { data } = useAsyncData(
|
|
4
|
+
export function useRegions(url = REGIONS_URL) {
|
|
5
|
+
const { data } = useAsyncData(url, fetchJSONUnsafe);
|
|
6
6
|
return Array.isArray(data) ? data : [];
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=useRegions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRegions.js","sourceRoot":"","sources":["../../src/hooks/useRegions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAA4B,MAAM,oBAAoB,CAAC;AAE/E,MAAM,WAAW,GAAG,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useRegions.js","sourceRoot":"","sources":["../../src/hooks/useRegions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAA4B,MAAM,oBAAoB,CAAC;AAE/E,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAUtC,MAAM,UAAU,UAAU,CAAC,MAAc,WAAW;IAClD,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,GAAG,EAAE,eAAgD,CAAC,CAAC;IAErF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const CalculatorStyle = {
|
|
2
2
|
wrapper: 'flex flex-col justify-between @4xl:flex-row gap-x-4xl gap-y-7 @xl:gap-y-4xl',
|
|
3
3
|
input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
|
|
4
|
-
result: 'flex flex-col gap-y-xl min-w-
|
|
4
|
+
result: 'flex flex-col gap-y-xl min-w-52',
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=CalculatorStyle.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type CreditCalculatorSourceBookParams } from '../../components/CalculatorCredit/CalculatorCreditContent';
|
|
2
1
|
import { type DepositCalculatorSourceBookParams } from '../../components/CalculatorDeposit/getDepositCalculatorParams';
|
|
3
2
|
import { type CalcDefaultParamsProps } from './CalculatorProps';
|
|
4
3
|
export declare const getDefaultParamsMin: (rateRows?: CalcDefaultParamsProps[]) => CalcDefaultParamsProps | undefined;
|
|
5
|
-
export declare const getDefaultParamsMax: (rateRows?:
|
|
4
|
+
export declare const getDefaultParamsMax: (rateRows?: DepositCalculatorSourceBookParams[], isNewClient?: boolean) => CalcDefaultParamsProps | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const getDefaultParamsMin = (rateRows) => getDefaultParams([(i, acc) => i < acc, (i, prev) => i?.maxSum > prev?.maxSum], rateRows);
|
|
2
|
-
export const getDefaultParamsMax = (rateRows) => getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows);
|
|
2
|
+
export const getDefaultParamsMax = (rateRows = [], isNewClient = false) => getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient)));
|
|
3
3
|
const getDefaultParams = (comparators, rateRows) => {
|
|
4
4
|
if (!rateRows?.length) {
|
|
5
5
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultParams.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/getDefaultParams.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDefaultParams.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/getDefaultParams.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAmC,EAAE,EAAE,CACzE,gBAAgB,CACd,CAAC,CAAC,CAAS,EAAE,GAAW,EAAW,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EACrF,QAAQ,CACT,CAAC;AACJ,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,WAAgD,EAAE,EAClD,WAAW,GAAG,KAAK,EACnB,EAAE,CACF,gBAAgB,CACd,CAAC,CAAC,CAAS,EAAE,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAC5E,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,KAAK,OAAO,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CACjE,CAAC;AAEJ,MAAM,gBAAgB,GAAG,CACvB,WAGC,EACD,QAAmC,EACC,EAAE;IACtC,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE;QACrB,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,KAAK,GAAG,QAAQ,EAAE,MAAM,CAC5B,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACT,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;YACvC,OAAO,CAAC,CAAC,CAAC,CAAC;SACZ;aAAM,IAAI,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;YACjC,OAAO,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;SACpB;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EACD,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CACd,CAAC;IACF,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAClF;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -826,5 +826,84 @@
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
+
],
|
|
830
|
+
[
|
|
831
|
+
"Выездной менеджер ФЛ",
|
|
832
|
+
{
|
|
833
|
+
"content": {
|
|
834
|
+
"version": "primary",
|
|
835
|
+
"padding": "",
|
|
836
|
+
"title": "Заявка на консультацию",
|
|
837
|
+
"typeForm": "OUTSERVICE",
|
|
838
|
+
"endpoint": "lead",
|
|
839
|
+
"sections": [
|
|
840
|
+
{
|
|
841
|
+
"inputs": [
|
|
842
|
+
{
|
|
843
|
+
"fieldType": "common",
|
|
844
|
+
"name": "product",
|
|
845
|
+
"required": true
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"fieldType": "common",
|
|
849
|
+
"name": "region",
|
|
850
|
+
"required": true
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"fieldType": "common",
|
|
854
|
+
"name": "localities",
|
|
855
|
+
"required": true
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"fieldType": "common",
|
|
859
|
+
"name": "fullName",
|
|
860
|
+
"required": true
|
|
861
|
+
}
|
|
862
|
+
]
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"columns": 2,
|
|
866
|
+
"inputs": [
|
|
867
|
+
{
|
|
868
|
+
"fieldType": "common",
|
|
869
|
+
"name": "birthday",
|
|
870
|
+
"required": true
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"fieldType": "common",
|
|
874
|
+
"name": "phone",
|
|
875
|
+
"required": true
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"fieldType": "common",
|
|
879
|
+
"name": "email"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"fieldType": "common",
|
|
883
|
+
"name": "desiredMeetingDate"
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"inputs": [
|
|
889
|
+
{
|
|
890
|
+
"fieldType": "common",
|
|
891
|
+
"name": "consentDataProcessing",
|
|
892
|
+
"required": true
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
"button": {
|
|
898
|
+
"text": "Отправить заявку",
|
|
899
|
+
"version": "primary"
|
|
900
|
+
},
|
|
901
|
+
"link": {
|
|
902
|
+
"text": "Согласен на обработку персональных данных",
|
|
903
|
+
"href": "/privacy-policy",
|
|
904
|
+
"target": "_blank"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
829
908
|
]
|
|
830
909
|
]
|
|
@@ -17,7 +17,7 @@ export type SubmitButtonProps = TextProps & {
|
|
|
17
17
|
/**
|
|
18
18
|
* @title Название поля ввода
|
|
19
19
|
* @required
|
|
20
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
|
|
20
|
+
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
21
21
|
*/
|
|
22
22
|
export type NameFieldDef =
|
|
23
23
|
| 'surname'
|
|
@@ -49,6 +49,9 @@ export type NameFieldDef =
|
|
|
49
49
|
| 'amount'
|
|
50
50
|
| 'annualRevenue'
|
|
51
51
|
| 'collectionCount'
|
|
52
|
+
| 'desiredMeetingDate'
|
|
53
|
+
| 'product'
|
|
54
|
+
| 'localities'
|
|
52
55
|
| 'partnerComments'
|
|
53
56
|
| 'consentDataProcessing';
|
|
54
57
|
|
|
@@ -115,7 +118,8 @@ type TypeFormFieldDef =
|
|
|
115
118
|
| 'KVED'
|
|
116
119
|
| 'ULTRASERVICE'
|
|
117
120
|
| 'PREMIUMSERVICE'
|
|
118
|
-
| 'FEEDBACK'
|
|
121
|
+
| 'FEEDBACK'
|
|
122
|
+
| 'OUTSERVICE';
|
|
119
123
|
|
|
120
124
|
/**
|
|
121
125
|
* @title Количество колонок
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
3
3
|
import { withValidator } from '../../validation/withValidator';
|
|
4
|
-
import { FEEDBACK_METHOD } from './
|
|
4
|
+
import { FEEDBACK_METHOD } from './constants';
|
|
5
5
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
6
6
|
import { validatorObj } from './getObjectValidator';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
4
4
|
import { withValidator } from '../../validation/withValidator';
|
|
5
|
-
import { FEEDBACK_TYPES, SERVICE_DIRECTIONS } from './
|
|
5
|
+
import { FEEDBACK_TYPES, SERVICE_DIRECTIONS } from './constants';
|
|
6
6
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
7
7
|
import { validatorObj } from './getObjectValidator';
|
|
8
8
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useRegions } from '../../hooks/useRegions';
|
|
4
|
+
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
5
|
+
import { OUT_SERVICE_URL } from './constants';
|
|
6
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
7
|
+
import { validatorObj } from './getObjectValidator';
|
|
8
|
+
import { getValidation } from './getValidation';
|
|
9
|
+
|
|
10
|
+
type RegionFieldProps = CustomFieldProps;
|
|
11
|
+
|
|
12
|
+
export const LocalitiesField = JSX<RegionFieldProps>(({ field, input }) => {
|
|
13
|
+
const fieldRegion = field('region');
|
|
14
|
+
const regionKey = fieldRegion?.value?.key;
|
|
15
|
+
const localities = useRegions(OUT_SERVICE_URL)
|
|
16
|
+
?.find((_) => _.code === regionKey)
|
|
17
|
+
?.localities?.map((_) => ({ key: _, text: _ }));
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (regionKey !== '') {
|
|
21
|
+
field?.('localities')?.onChange?.('');
|
|
22
|
+
}
|
|
23
|
+
}, [regionKey]);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<SelectControl
|
|
27
|
+
label="Населенный пункт"
|
|
28
|
+
placeholder="Выберите отделение"
|
|
29
|
+
options={localities}
|
|
30
|
+
{...getValidation(field('localities'), validatorObj.localities, input?.required)}
|
|
31
|
+
isSearch={true}
|
|
32
|
+
/>
|
|
33
|
+
);
|
|
34
|
+
});
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import { type FieldDef } from './ApplicationFormContent';
|
|
4
4
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
5
5
|
import { validatorObj } from './getObjectValidator';
|
|
6
|
+
import { getValidation } from './getValidation';
|
|
6
7
|
|
|
7
|
-
export const
|
|
8
|
-
const
|
|
8
|
+
export const PartnerCommentsField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const { required, ...rest } = input as FieldDef;
|
|
9
10
|
|
|
10
11
|
return (
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
<InputControl
|
|
13
|
+
{...getValidation(field('partnerComments'), validatorObj.partnerComments, required)}
|
|
14
|
+
placeholder="Укажите интересующий вас вопрос"
|
|
15
|
+
isTextarea={true}
|
|
16
|
+
{...rest}
|
|
16
17
|
/>
|
|
17
18
|
);
|
|
18
19
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
3
|
+
import { withValidator } from '../../validation/withValidator';
|
|
4
|
+
import { PRODUCT_TYPE } from './constants';
|
|
5
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
6
|
+
import { validatorObj } from './getObjectValidator';
|
|
7
|
+
|
|
8
|
+
export const ProductField = JSX<CustomFieldProps>(({ field }) => (
|
|
9
|
+
<SelectControl
|
|
10
|
+
placeholder="Выберите продукт"
|
|
11
|
+
label="Продукт"
|
|
12
|
+
options={PRODUCT_TYPE}
|
|
13
|
+
{...withValidator(field('product'), validatorObj.product)}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -6,8 +6,8 @@ import { type CustomFieldProps } from './CustomFieldProps';
|
|
|
6
6
|
import { validatorObj } from './getObjectValidator';
|
|
7
7
|
import { getValidation } from './getValidation';
|
|
8
8
|
|
|
9
|
-
export const RegionField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
-
const regions = useRegions();
|
|
9
|
+
export const RegionField = JSX<CustomFieldProps>(({ field, input, url }) => {
|
|
10
|
+
const regions = useRegions(url);
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<SelectControl
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl';
|
|
3
|
+
import { withValidator } from '../../validation/withValidator';
|
|
4
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
5
|
+
import { validatorObj } from './getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const SecondaryPhoneField = JSX<CustomFieldProps>(({ field }) => {
|
|
8
|
+
const fieldPhone = field('secondaryPhone');
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<InputPhoneControl
|
|
12
|
+
label="Дополнительный телефон"
|
|
13
|
+
{...(!fieldPhone.value || fieldPhone.value === '+7 ('
|
|
14
|
+
? fieldPhone
|
|
15
|
+
: withValidator(fieldPhone, validatorObj.secondaryPhone))}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
3
3
|
import { withValidator } from '../../validation/withValidator';
|
|
4
|
-
import { SERVICE_DIRECTIONS } from './
|
|
4
|
+
import { SERVICE_DIRECTIONS } from './constants';
|
|
5
5
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
6
6
|
import { validatorObj } from './getObjectValidator';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
3
3
|
import { withValidator } from '../../validation/withValidator';
|
|
4
|
-
import { SERVICE_TYPES } from './
|
|
4
|
+
import { SERVICE_TYPES } from './constants';
|
|
5
5
|
import { type CustomFieldProps } from './CustomFieldProps';
|
|
6
6
|
import { validatorObj } from './getObjectValidator';
|
|
7
7
|
export const UltraPremiumField = JSX<CustomFieldProps>(({ field }) => (
|
|
@@ -25,3 +25,14 @@ export const FEEDBACK_METHOD: Option[] = [
|
|
|
25
25
|
{ key: 'phone', text: 'Телефонный звонок' },
|
|
26
26
|
{ key: 'email', text: 'Электронное сообщение' },
|
|
27
27
|
];
|
|
28
|
+
|
|
29
|
+
export const PRODUCT_TYPE: Option[] = [
|
|
30
|
+
{ key: 'Карта дебетовая', text: 'Карта дебетовая' },
|
|
31
|
+
{ key: 'Карта кредитная', text: 'Карта кредитная' },
|
|
32
|
+
{ key: 'Потребительский кредит', text: 'Потребительский кредит' },
|
|
33
|
+
{ key: 'Ипотечный кредит', text: 'Ипотечный кредит' },
|
|
34
|
+
{ key: 'Вклад', text: 'Вклад' },
|
|
35
|
+
{ key: 'Накопительный счет', text: 'Накопительный счет' },
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export const OUT_SERVICE_URL = '/api/v1/outservice/outserviceregions';
|
|
@@ -11,13 +11,18 @@ import { CommentField } from './CommentField';
|
|
|
11
11
|
import { FeedbackMethodField } from './FeedbackMethodField';
|
|
12
12
|
import { FeedbackTypeField } from './FeedbackTypeField';
|
|
13
13
|
import { validatorObj } from './getObjectValidator';
|
|
14
|
+
import { getRegionUrl } from './getRegionUrl';
|
|
14
15
|
import { getValidation } from './getValidation';
|
|
15
16
|
import { IsClientField } from './IsClientField';
|
|
17
|
+
import { isRenderField } from './isRenderField';
|
|
18
|
+
import { LocalitiesField } from './LocalitiesField';
|
|
16
19
|
import { OnlineCheckoutField } from './OnlineCheckoutField';
|
|
17
|
-
import {
|
|
20
|
+
import { PartnerCommentsField } from './PartnerCommentsField';
|
|
18
21
|
import { PosTerminalField } from './PosTerminalField';
|
|
22
|
+
import { ProductField } from './ProductField';
|
|
19
23
|
import { RegionField } from './RegionField';
|
|
20
24
|
import { RegionPremiumField } from './RegionPremiumField';
|
|
25
|
+
import { SecondaryPhoneField } from './SecondaryPhoneField';
|
|
21
26
|
import { ServiceDirectionField } from './ServiceDirectionField';
|
|
22
27
|
import { TermField } from './TermField';
|
|
23
28
|
import { UltraPremiumField } from './UltraPremiumField';
|
|
@@ -77,7 +82,7 @@ export const getField =
|
|
|
77
82
|
region: isPremium ? (
|
|
78
83
|
<RegionPremiumField field={field} />
|
|
79
84
|
) : (
|
|
80
|
-
<RegionField field={field} input={input} />
|
|
85
|
+
<RegionField field={field} input={input} url={getRegionUrl(typeForm)} />
|
|
81
86
|
),
|
|
82
87
|
addressBranch: <AddressBranchField field={field} input={input} isPremium={isPremium} />,
|
|
83
88
|
birthday: (
|
|
@@ -86,6 +91,14 @@ export const getField =
|
|
|
86
91
|
{...getValidation(field('birthday'), validatorObj.birthday, required)}
|
|
87
92
|
/>
|
|
88
93
|
),
|
|
94
|
+
desiredMeetingDate: (
|
|
95
|
+
<DatePickerControl
|
|
96
|
+
label="Желаемая дата встречи"
|
|
97
|
+
{...getValidation(field('desiredMeetingDate'), validatorObj.meetingDay, required)}
|
|
98
|
+
/>
|
|
99
|
+
),
|
|
100
|
+
product: <ProductField field={field} />,
|
|
101
|
+
localities: <LocalitiesField field={field} input={input} />,
|
|
89
102
|
isClient: <IsClientField field={field} />,
|
|
90
103
|
consentToReceiveMaterials: (
|
|
91
104
|
<CheckboxWithError
|
|
@@ -93,14 +106,7 @@ export const getField =
|
|
|
93
106
|
text="Согласен на получение информационных и аналитических материалов по электронной почте"
|
|
94
107
|
/>
|
|
95
108
|
),
|
|
96
|
-
partnerComments:
|
|
97
|
-
<InputControl
|
|
98
|
-
{...getValidation(field('partnerComments'), validatorObj.partnerComments, required)}
|
|
99
|
-
placeholder="Укажите интересующий вас вопрос"
|
|
100
|
-
isTextarea={true}
|
|
101
|
-
{...rest}
|
|
102
|
-
/>
|
|
103
|
-
),
|
|
109
|
+
partnerComments: <PartnerCommentsField field={field} input={input} />,
|
|
104
110
|
collectionCount: (
|
|
105
111
|
<InputControl
|
|
106
112
|
label="Количество объектов инкассации"
|
|
@@ -140,16 +146,3 @@ export const getField =
|
|
|
140
146
|
<div key={String(i)}>{InputsMap[input?.name]}</div>
|
|
141
147
|
) : null;
|
|
142
148
|
};
|
|
143
|
-
|
|
144
|
-
export function isRenderField({
|
|
145
|
-
input,
|
|
146
|
-
field,
|
|
147
|
-
}: {
|
|
148
|
-
input: FieldDef;
|
|
149
|
-
field: FormFieldRegisterer<any>;
|
|
150
|
-
}) {
|
|
151
|
-
const { condition } = input;
|
|
152
|
-
const { value } = field(condition?.name || '');
|
|
153
|
-
|
|
154
|
-
return !condition || condition?.values?.find((_) => _ === (value?.key ?? value));
|
|
155
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
2
|
import { ACQUIRING_TYPES } from './AcquiringField';
|
|
3
3
|
import { type FieldDef } from './ApplicationFormContent';
|
|
4
|
-
import { FEEDBACK_METHOD, FEEDBACK_TYPES, SERVICE_DIRECTIONS, SERVICE_TYPES } from './
|
|
4
|
+
import { FEEDBACK_METHOD, FEEDBACK_TYPES, SERVICE_DIRECTIONS, SERVICE_TYPES } from './constants';
|
|
5
5
|
import { VED_TYPES } from './VedField';
|
|
6
6
|
|
|
7
7
|
export interface FormState {
|
|
@@ -30,6 +30,9 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
30
30
|
feedbackMethod: defaultSelectValidator,
|
|
31
31
|
serviceType: defaultSelectValidator,
|
|
32
32
|
serviceDirection: defaultSelectValidator,
|
|
33
|
+
meetingDay: defaultValidator,
|
|
34
|
+
product: defaultValidator,
|
|
35
|
+
localities: defaultValidator,
|
|
33
36
|
consentDataProcessing: agreementValidator,
|
|
34
37
|
annualRevenue: defaultValidator,
|
|
35
38
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import type { FieldDef } from './ApplicationFormContent';
|
|
3
|
+
|
|
4
|
+
export function isRenderField({
|
|
5
|
+
input,
|
|
6
|
+
field,
|
|
7
|
+
}: {
|
|
8
|
+
input: FieldDef;
|
|
9
|
+
field: FormFieldRegisterer<any>;
|
|
10
|
+
}) {
|
|
11
|
+
const { condition } = input;
|
|
12
|
+
const { value } = field(condition?.name || '');
|
|
13
|
+
|
|
14
|
+
return !condition || condition?.values?.find((_) => _ === (value?.key ?? value));
|
|
15
|
+
}
|