@redneckz/wildless-cms-uni-blocks 0.14.665 → 0.14.667
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/api/RetailAPI/regionOffices.d.ts +16 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +1428 -1367
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/bundle/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/bundle/components/CreditForm/utils.d.ts +7 -1
- package/bundle/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/{dist/ui-kit/FormField/Fields/RetailAddressField.d.ts → bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
- package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/{lib/ui-kit/FormField/Fields/RetailRegionField.d.ts → bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
- package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/SelectField.d.ts +2 -0
- package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/dist/api/RetailAPI/regionOffices.d.ts +16 -0
- package/dist/api/RetailAPI/regionOffices.js +19 -0
- package/dist/api/RetailAPI/regionOffices.js.map +1 -0
- package/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/dist/components/ApplicationForm/getInitialFormState.js +1 -0
- package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ContentPage/useContentPageData.js +1 -1
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +2 -0
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +4 -4
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.js +8 -2
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/dist/components/CreditForm/getFifthStepData.js +10 -0
- package/dist/components/CreditForm/getFifthStepData.js.map +1 -0
- package/dist/components/CreditForm/getThirdStepData.js +8 -2
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +7 -1
- package/dist/components/CreditForm/utils.js +9 -3
- package/dist/components/CreditForm/utils.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
- package/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/{lib/ui-kit/FormField/Fields/RetailAddressField.d.ts → dist/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
- package/dist/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/{RetailRegionField.d.ts → RegionRetailField.d.ts} +1 -1
- package/dist/ui-kit/FormField/Fields/RegionRetailField.js +14 -0
- package/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
- package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +2 -0
- package/dist/ui-kit/FormField/SelectField.js +2 -2
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +8 -8
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +3 -3
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/dist/ui-kit/YandexMap/YandexMap.js +4 -4
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/api/RetailAPI/regionOffices.d.ts +16 -0
- package/lib/api/RetailAPI/regionOffices.js +16 -0
- package/lib/api/RetailAPI/regionOffices.js.map +1 -0
- package/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/lib/components/ApplicationForm/getInitialFormState.js +1 -0
- package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ContentPage/useContentPageData.js +1 -1
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +3 -1
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +4 -4
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.js +8 -2
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/lib/components/CreditForm/getFifthStepData.js +7 -0
- package/lib/components/CreditForm/getFifthStepData.js.map +1 -0
- package/lib/components/CreditForm/getThirdStepData.js +8 -2
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +7 -1
- package/lib/components/CreditForm/utils.js +9 -3
- package/lib/components/CreditForm/utils.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
- package/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/{bundle/ui-kit/FormField/Fields/RetailAddressField.d.ts → lib/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
- package/lib/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/{mobile/bundle/ui-kit/FormField/Fields/RetailRegionField.d.ts → lib/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
- package/lib/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
- package/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
- package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +2 -0
- package/lib/ui-kit/FormField/SelectField.js +2 -2
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +8 -8
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +3 -3
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +16 -0
- package/mobile/bundle/bundle.umd.js +1428 -1367
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/mobile/bundle/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/utils.d.ts +7 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/{RetailAddressField.d.ts → AddressRetailField.d.ts} +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/{bundle/ui-kit/FormField/Fields/RetailRegionField.d.ts → mobile/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +2 -0
- package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/regionOffices.d.ts +16 -0
- package/mobile/dist/api/RetailAPI/regionOffices.js +19 -0
- package/mobile/dist/api/RetailAPI/regionOffices.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js +1 -0
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +2 -0
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +4 -4
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +8 -2
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getFifthStepData.js +10 -0
- package/mobile/dist/components/CreditForm/getFifthStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.js +8 -2
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +7 -1
- package/mobile/dist/components/CreditForm/utils.js +9 -3
- package/mobile/dist/components/CreditForm/utils.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js +14 -0
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/SelectField.js +2 -2
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +8 -8
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -3
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +4 -4
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/api/RetailAPI/regionOffices.d.ts +16 -0
- package/mobile/lib/api/RetailAPI/regionOffices.js +16 -0
- package/mobile/lib/api/RetailAPI/regionOffices.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -0
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +3 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +4 -4
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +8 -2
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFifthStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getFifthStepData.js +7 -0
- package/mobile/lib/components/CreditForm/getFifthStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.js +8 -2
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +7 -1
- package/mobile/lib/components/CreditForm/utils.js +9 -3
- package/mobile/lib/components/CreditForm/utils.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/SelectField.js +2 -2
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +8 -8
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +3 -3
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -0
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/api/RetailAPI/regionOffices.ts +36 -0
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +2 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -2
- package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +4 -4
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +14 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/mobile/src/components/CreditForm/getFifthStepData.ts +10 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +14 -2
- package/mobile/src/components/CreditForm/utils.ts +9 -3
- package/mobile/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/{RetailAddressField.tsx → AddressRetailField.tsx} +20 -23
- package/{src/ui-kit/FormField/Fields/OtherPayments.tsx → mobile/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx} +2 -2
- package/{src/ui-kit/FormField/Fields/RetailRegionField.tsx → mobile/src/ui-kit/FormField/Fields/RegionRetailField.tsx} +6 -8
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
- package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/mobile/src/ui-kit/FormField/SelectField.tsx +13 -2
- package/mobile/src/ui-kit/FormField/getField.tsx +8 -8
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/package.json +1 -1
- package/src/api/RetailAPI/regionOffices.ts +36 -0
- package/src/components/ApplicationForm/getInitialFormState.tsx +2 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -2
- package/src/components/ContentPage/useContentPageData.ts +1 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +11 -0
- package/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
- package/src/components/CreditCardForm/formStateMap.tsx +4 -4
- package/src/components/CreditCardForm/getFourthStepData.ts +14 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/src/components/CreditForm/getFifthStepData.ts +10 -0
- package/src/components/CreditForm/getThirdStepData.ts +14 -2
- package/src/components/CreditForm/utils.ts +9 -3
- package/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +1 -1
- package/src/ui-kit/FormField/Fields/{RetailAddressField.tsx → AddressRetailField.tsx} +20 -23
- package/{mobile/src/ui-kit/FormField/Fields/OtherPayments.tsx → src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx} +2 -2
- package/{mobile/src/ui-kit/FormField/Fields/RetailRegionField.tsx → src/ui-kit/FormField/Fields/RegionRetailField.tsx} +6 -8
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
- package/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/src/ui-kit/FormField/SelectField.tsx +13 -2
- package/src/ui-kit/FormField/getField.tsx +8 -8
- package/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
- package/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
- package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/RetailRegionField.js +0 -14
- package/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
- package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RetailRegionField.js +0 -12
- package/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js +0 -14
- package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js +0 -12
- package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
- package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
- package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
package/mobile/src/ui-kit/FormField/Fields/{RetailAddressField.tsx → AddressRetailField.tsx}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { regionOffices, type OfficeType } from '../../../api/RetailAPI/regionOffices';
|
|
3
4
|
import { getOfficePoint } from '../../../components/OfficesAtmsMap/renderOfficeCard';
|
|
4
5
|
import { useOfficesAtmsMapData } from '../../../components/OfficesAtmsMap/useOfficesAtmsMapData';
|
|
5
|
-
import {
|
|
6
|
-
import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions';
|
|
6
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
7
7
|
import { ClientOnly } from '../../ClientOnly';
|
|
8
8
|
import { SelectControl } from '../../Select/SelectControl';
|
|
9
9
|
import { YandexMap } from '../../YandexMap/YandexMap';
|
|
@@ -11,43 +11,40 @@ import { type CustomFieldProps } from '../CustomFieldProps';
|
|
|
11
11
|
import { validatorObj } from '../getObjectValidator';
|
|
12
12
|
import { getValidation } from '../getValidation';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
export const AddressRetailField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
15
|
+
const [offices, setOffices] = useState<OfficeType[]>([]);
|
|
16
|
+
const { data } = useLeadFormData('REGION_RF');
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
const fieldRegion = field('regionRetail');
|
|
18
|
+
const regionValue = field('regionRetail')?.value || {};
|
|
18
19
|
const fieldBranch = field('addressRetail');
|
|
19
|
-
const regions = useBranchesByRegions();
|
|
20
|
-
const regionKey = fieldRegion?.value?.key as string;
|
|
21
|
-
const selectedRegion = regions.find(({ region }) => region === regionKey);
|
|
22
|
-
|
|
23
|
-
const isLoad = !regions;
|
|
24
|
-
|
|
25
|
-
const regionText = fieldRegion?.value?.text as string;
|
|
26
|
-
const addressBranchRetail = useBranchesByRegions()?.find(
|
|
27
|
-
(_) => _?.region === regionText,
|
|
28
|
-
)?.branches;
|
|
29
20
|
|
|
30
21
|
useEffect(() => {
|
|
31
|
-
|
|
22
|
+
(async () => {
|
|
23
|
+
const officesList = await regionOffices((regionValue?.key as string) ?? '');
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
25
|
+
setOffices(officesList || []);
|
|
26
|
+
})();
|
|
27
|
+
|
|
28
|
+
if (regionValue?.key) {
|
|
32
29
|
field?.('addressRetail')?.onChange?.('');
|
|
33
30
|
}
|
|
34
|
-
}, [
|
|
31
|
+
}, [regionValue.key]);
|
|
35
32
|
|
|
36
33
|
const { points } = useOfficesAtmsMapData({
|
|
37
|
-
data:
|
|
34
|
+
data: offices,
|
|
38
35
|
filtrationState: {},
|
|
39
36
|
getBalloon: getOfficePoint,
|
|
40
37
|
});
|
|
41
38
|
|
|
42
|
-
const isRegionSelected = Boolean(
|
|
39
|
+
const isRegionSelected = Boolean(regionValue?.key);
|
|
43
40
|
|
|
44
41
|
return (
|
|
45
42
|
<div>
|
|
46
43
|
<SelectControl
|
|
47
44
|
label="Адрес отделения"
|
|
48
45
|
placeholder="Выберите отделение"
|
|
49
|
-
options={
|
|
50
|
-
key:
|
|
46
|
+
options={offices.map(({ id, address = '' }) => ({
|
|
47
|
+
key: id?.toString() || '',
|
|
51
48
|
text: address,
|
|
52
49
|
}))}
|
|
53
50
|
{...getValidation(
|
|
@@ -61,7 +58,7 @@ export const RetailAddressField = JSX<RegionFieldProps>(({ field, input }) => {
|
|
|
61
58
|
<ClientOnly>
|
|
62
59
|
<YandexMap
|
|
63
60
|
points={points}
|
|
64
|
-
isLoad={
|
|
61
|
+
isLoad={!data}
|
|
65
62
|
className="h-full"
|
|
66
63
|
selectedAddress={fieldBranch?.value?.text}
|
|
67
64
|
/>
|
|
@@ -4,12 +4,12 @@ import type { CustomFieldProps } from '../CustomFieldProps';
|
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
|
|
7
|
-
export const
|
|
7
|
+
export const MandatoryPaymentsField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
8
|
<InputControl
|
|
9
9
|
label="Обязательные выплаты"
|
|
10
10
|
placeholder="Введите значение"
|
|
11
11
|
type="number"
|
|
12
|
-
{...getValidation(field('
|
|
12
|
+
{...getValidation(field('mandatoryPayments'), validatorObj.mandatoryPayments, input?.required)}
|
|
13
13
|
{...input}
|
|
14
14
|
/>
|
|
15
15
|
));
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type Option } from '../../Select/Option';
|
|
4
4
|
import { SelectControl } from '../../Select/SelectControl';
|
|
5
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
6
|
import { validatorObj } from '../getObjectValidator';
|
|
7
7
|
import { getValidation } from '../getValidation';
|
|
8
8
|
|
|
9
|
-
export const
|
|
10
|
-
const regions =
|
|
9
|
+
export const RegionRetailField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
10
|
+
const { data: regions } = useLeadFormData('REGION_RF');
|
|
11
|
+
const formatRegions = regions?.map(({ key, value }) => ({ key, text: value }));
|
|
11
12
|
|
|
12
13
|
return (
|
|
13
14
|
<SelectControl
|
|
14
15
|
label="Регион"
|
|
15
16
|
placeholder="Выберите регион"
|
|
16
17
|
isSearch={true}
|
|
17
|
-
options={
|
|
18
|
-
() => regions?.map(({ region = '' }) => ({ key: region, text: region })),
|
|
19
|
-
[regions],
|
|
20
|
-
)}
|
|
18
|
+
options={formatRegions as Option[]}
|
|
21
19
|
{...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required)}
|
|
22
20
|
/>
|
|
23
21
|
);
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
3
|
import { InputControl } from '../../Input/InputControl';
|
|
3
4
|
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
5
|
import { validatorObj } from '../getObjectValidator';
|
|
5
6
|
import { getValidation } from '../getValidation';
|
|
6
7
|
|
|
7
|
-
export const RetirementIncomeField = JSX<CustomFieldProps>(({ field, input }) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
));
|
|
8
|
+
export const RetirementIncomeField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const currentWages = field('wages')?.value;
|
|
10
|
+
|
|
11
|
+
const onChange = useCallback(
|
|
12
|
+
(_: string) => {
|
|
13
|
+
const incomesSum = Number(_) + Number(currentWages || 0);
|
|
14
|
+
|
|
15
|
+
field('retirementIncome')?.onChange?.(_);
|
|
16
|
+
field('incomeAverage')?.onChange?.(String(incomesSum));
|
|
17
|
+
},
|
|
18
|
+
[currentWages],
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<InputControl
|
|
23
|
+
label="Пенсионные доходы"
|
|
24
|
+
placeholder="Введите значение"
|
|
25
|
+
type="number"
|
|
26
|
+
{...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required)}
|
|
27
|
+
{...input}
|
|
28
|
+
onChange={onChange}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { InputControl } from '../../Input/InputControl';
|
|
4
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
import { getValidation } from '../getValidation';
|
|
7
|
+
|
|
8
|
+
export const WagesField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const currentRetirementIncome = field('retirementIncome')?.value;
|
|
10
|
+
|
|
11
|
+
const onChange = useCallback(
|
|
12
|
+
(_: string) => {
|
|
13
|
+
const incomesSum = Number(_) + Number(currentRetirementIncome || 0);
|
|
14
|
+
|
|
15
|
+
field('wages')?.onChange?.(_);
|
|
16
|
+
field('incomeAverage')?.onChange?.(String(incomesSum));
|
|
17
|
+
},
|
|
18
|
+
[currentRetirementIncome],
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<InputControl
|
|
23
|
+
label="Совокупный доход в месяц после вычета налогов (зарплата, премии)"
|
|
24
|
+
placeholder="Введите значение"
|
|
25
|
+
type="number"
|
|
26
|
+
{...getValidation(field('wages'), validatorObj.wages, input?.required)}
|
|
27
|
+
{...input}
|
|
28
|
+
onChange={onChange}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
@@ -76,8 +76,12 @@ export type NameFieldDef =
|
|
|
76
76
|
| 'participantDateRegistration'
|
|
77
77
|
| 'retirementIncome'
|
|
78
78
|
| 'otherIncome'
|
|
79
|
-
| '
|
|
79
|
+
| 'incomeAverage'
|
|
80
|
+
| 'mandatoryPayments'
|
|
81
|
+
| 'additionalIncome'
|
|
80
82
|
| 'otherPayments'
|
|
83
|
+
| 'rentalIncome'
|
|
84
|
+
| 'wages'
|
|
81
85
|
| 'creditInRshbCd'
|
|
82
86
|
| 'disablePeopleFlg'
|
|
83
87
|
| 'bankruptcyFlg'
|
|
@@ -18,10 +18,20 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
|
|
|
18
18
|
source?: LeadProps[];
|
|
19
19
|
label: string;
|
|
20
20
|
fieldName: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
isSearch?: boolean;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export const SelectField = UniBlock<SelectFieldProps>(
|
|
24
|
-
({
|
|
26
|
+
({
|
|
27
|
+
field,
|
|
28
|
+
source,
|
|
29
|
+
label,
|
|
30
|
+
fieldName,
|
|
31
|
+
input,
|
|
32
|
+
placeholder = 'Выберите из списка',
|
|
33
|
+
isSearch = false,
|
|
34
|
+
}) => {
|
|
25
35
|
const leadOptions: Option[] =
|
|
26
36
|
(source &&
|
|
27
37
|
source?.map((_: LeadProps) => ({
|
|
@@ -32,9 +42,10 @@ export const SelectField = UniBlock<SelectFieldProps>(
|
|
|
32
42
|
|
|
33
43
|
return (
|
|
34
44
|
<SelectControl
|
|
35
|
-
placeholder=
|
|
45
|
+
placeholder={placeholder}
|
|
36
46
|
label={label}
|
|
37
47
|
options={leadOptions}
|
|
48
|
+
isSearch={isSearch}
|
|
38
49
|
{...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
|
|
39
50
|
/>
|
|
40
51
|
);
|
|
@@ -10,6 +10,7 @@ import { AddressBranchField } from './Fields/AddressBranchField';
|
|
|
10
10
|
import { AddressFactField } from './Fields/AddressFactField';
|
|
11
11
|
import { AddressField } from './Fields/AddressField';
|
|
12
12
|
import { AddressMatchField } from './Fields/AddressMatchField';
|
|
13
|
+
import { AddressRetailField } from './Fields/AddressRetailField';
|
|
13
14
|
import { AmountField } from './Fields/AmountField';
|
|
14
15
|
import { AmountWorkersField } from './Fields/AmountWorkersField';
|
|
15
16
|
import { AnnualRevenueField } from './Fields/AnnualRevenueField';
|
|
@@ -59,7 +60,7 @@ import { LastJobExperienceField } from './Fields/LastJobExperienceField';
|
|
|
59
60
|
import { LegalEntityNameField } from './Fields/LegalEntityNameField';
|
|
60
61
|
import { LegalFormField } from './Fields/LegalFormField';
|
|
61
62
|
import { LocalitiesField } from './Fields/LocalitiesField';
|
|
62
|
-
import {
|
|
63
|
+
import { MandatoryPaymentsField } from './Fields/MandatoryPaymentsField';
|
|
63
64
|
import { MethodObtainField } from './Fields/MethodObtainField';
|
|
64
65
|
import { MiddleNameField } from './Fields/MiddleNameField';
|
|
65
66
|
import { NameField } from './Fields/NameField';
|
|
@@ -67,7 +68,6 @@ import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
|
67
68
|
import { OrganizationField } from './Fields/OrganizationField';
|
|
68
69
|
import { OrganizationNameField } from './Fields/OrganizationNameField';
|
|
69
70
|
import { OtherIncomeField } from './Fields/OtherIncomeField';
|
|
70
|
-
import { OtherPaymentsField } from './Fields/OtherPayments';
|
|
71
71
|
import { ParticipantDateRegistrationField } from './Fields/ParticipantDateRegistrationField';
|
|
72
72
|
import { PartInBusinessField } from './Fields/PartInBusinessField';
|
|
73
73
|
import { PartnerCommentsField } from './Fields/PartnerCommentsField';
|
|
@@ -78,8 +78,7 @@ import { PosTerminalField } from './Fields/PosTerminalField';
|
|
|
78
78
|
import { ProductField } from './Fields/ProductField';
|
|
79
79
|
import { RegionField } from './Fields/RegionField';
|
|
80
80
|
import { RegionPremiumField } from './Fields/RegionPremiumField';
|
|
81
|
-
import {
|
|
82
|
-
import { RetailRegionField } from './Fields/RetailRegionField';
|
|
81
|
+
import { RegionRetailField } from './Fields/RegionRetailField';
|
|
83
82
|
import { RetirementIncomeField } from './Fields/RetirementIncomeField';
|
|
84
83
|
import { SecondaryPhoneField } from './Fields/SecondaryPhoneField';
|
|
85
84
|
import { ServiceDirectionField } from './Fields/ServiceDirectionField';
|
|
@@ -91,6 +90,7 @@ import { TermField } from './Fields/TermField';
|
|
|
91
90
|
import { TotalIncomeField } from './Fields/TotalIncomeField';
|
|
92
91
|
import { UltraPremiumField } from './Fields/UltraPremiumField';
|
|
93
92
|
import { VedField } from './Fields/VedField';
|
|
93
|
+
import { WagesField } from './Fields/WagesField';
|
|
94
94
|
import { isRenderField } from './isRenderField';
|
|
95
95
|
|
|
96
96
|
const PRODUCT_REF = {
|
|
@@ -184,8 +184,8 @@ export const getField =
|
|
|
184
184
|
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
185
185
|
retirementIncome: <RetirementIncomeField field={field} input={input} />,
|
|
186
186
|
otherIncome: <OtherIncomeField field={field} input={input} />,
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
wages: <WagesField field={field} input={input} />,
|
|
188
|
+
mandatoryPayments: <MandatoryPaymentsField field={field} input={input} />,
|
|
189
189
|
disablePeopleFlg: <DisablePeopleFlgField field={field} input={input} />,
|
|
190
190
|
bankruptcyFlg: <BankruptcyFlgField field={field} input={input} />,
|
|
191
191
|
shareholderFlg: <ShareholderFlgField field={field} input={input} />,
|
|
@@ -193,8 +193,8 @@ export const getField =
|
|
|
193
193
|
creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
|
|
194
194
|
bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
|
|
195
195
|
partInBusiness: <PartInBusinessField field={field} input={input} />,
|
|
196
|
-
regionRetail: <
|
|
197
|
-
addressRetail: <
|
|
196
|
+
regionRetail: <RegionRetailField field={field} input={input} />,
|
|
197
|
+
addressRetail: <AddressRetailField field={field} input={input} />,
|
|
198
198
|
addressMatch: <AddressMatchField field={field} input={input} />,
|
|
199
199
|
paymentSystem: <PaymentSystemField field={field} input={input} />,
|
|
200
200
|
currency: <CurrencyField field={field} input={input} />,
|
|
@@ -62,6 +62,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
62
62
|
feedbackMethod: defaultSelectValidator(),
|
|
63
63
|
serviceType: defaultSelectValidator(),
|
|
64
64
|
serviceDirection: defaultSelectValidator(),
|
|
65
|
+
regionRetail: defaultSelectValidator('Выберите регион'),
|
|
65
66
|
meetingDay: defaultValidator(),
|
|
66
67
|
product: defaultValidator(),
|
|
67
68
|
localities: defaultValidator(),
|
|
@@ -88,15 +89,14 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
88
89
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
89
90
|
retirementIncome: defaultValidator(),
|
|
90
91
|
otherIncome: defaultValidator(),
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
wages: defaultValidator(),
|
|
93
|
+
mandatoryPayments: defaultValidator(),
|
|
93
94
|
disablePeopleFlg: defaultValidator(),
|
|
94
95
|
bankruptcyFlg: defaultValidator(),
|
|
95
96
|
shareholderFlg: defaultValidator(),
|
|
96
97
|
legalEntityName: defaultValidator(),
|
|
97
98
|
bankEmployeeCode: defaultValidator(),
|
|
98
99
|
partInBusiness: defaultValidator(),
|
|
99
|
-
regionRetail: defaultSelectValidator('Выберите филиал банка'),
|
|
100
100
|
addressRetail: defaultSelectValidator('Выберите адрес банка'),
|
|
101
101
|
addressMatch: defaultValidator(),
|
|
102
102
|
codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
|
|
@@ -19,7 +19,7 @@ interface YandexMapProps {
|
|
|
19
19
|
selectedAddress?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
|
|
22
|
+
export const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
|
|
23
23
|
|
|
24
24
|
// TODO: Поле для поиска: невыяснено среди каких данных делать поиск (искать в имени офиса, в адресе, метро и т.д.).
|
|
25
25
|
// Сейчас реализован поиск среди тестовых данных
|
|
@@ -33,7 +33,7 @@ export const YandexMap = JSX<YandexMapProps>(
|
|
|
33
33
|
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
if (map.current) {
|
|
36
|
-
renderClusterer({ yandexMaps, map: map.current, points, isLoad });
|
|
36
|
+
renderClusterer({ yandexMaps, map: map.current, points, isLoad, selectedAddress });
|
|
37
37
|
} else {
|
|
38
38
|
yandexMaps?.ready(() => {
|
|
39
39
|
// Ready function may be called few times, but must be called once
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DEFAULT_CENTER_COORDS } from './../../ui-kit/YandexMap/YandexMap';
|
|
2
|
+
import { doRequest } from './doRequest';
|
|
3
|
+
|
|
4
|
+
export type OfficeType = {
|
|
5
|
+
address?: string;
|
|
6
|
+
id?: number;
|
|
7
|
+
regionRfCd?: {
|
|
8
|
+
key: string;
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
gpsLatitude?: number;
|
|
12
|
+
gpsLongitude?: number;
|
|
13
|
+
latitude?: number;
|
|
14
|
+
longitude?: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export interface RegionOfficesResponseType {
|
|
18
|
+
offices: OfficeType[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const regionOffices = async (regionKey: string) => {
|
|
22
|
+
const response: Response = await doRequest('/public-data/regionOffices', 'POST', {
|
|
23
|
+
regionRfCd: {
|
|
24
|
+
key: regionKey,
|
|
25
|
+
},
|
|
26
|
+
cashCardFlg: true,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return await response.json().then((_) =>
|
|
30
|
+
_?.offices?.map((office: OfficeType) => ({
|
|
31
|
+
...office,
|
|
32
|
+
gpsLatitude: (office.latitude ?? DEFAULT_CENTER_COORDS[0]).toString().replace(',', '.'),
|
|
33
|
+
gpsLongitude: (office.longitude ?? DEFAULT_CENTER_COORDS[1]).toString().replace(',', '.'),
|
|
34
|
+
})),
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -27,6 +27,7 @@ export interface FormState {
|
|
|
27
27
|
amount?: number;
|
|
28
28
|
annualRevenue?: string;
|
|
29
29
|
consentDataProcessing?: boolean;
|
|
30
|
+
addressRetail?: Option;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
const initialFormState = {
|
|
@@ -54,6 +55,7 @@ const initialFormState = {
|
|
|
54
55
|
posTerminal: false,
|
|
55
56
|
consentToReceiveMaterials: false,
|
|
56
57
|
consentDataProcessing: false,
|
|
58
|
+
addressRetail: { key: '', text: '' },
|
|
57
59
|
};
|
|
58
60
|
|
|
59
61
|
export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormState => {
|
|
@@ -23,7 +23,7 @@ export type FormStateDeliveryType = {
|
|
|
23
23
|
bankEmployeeCode?: number;
|
|
24
24
|
methodObtain?: 'office' | 'courier';
|
|
25
25
|
deliveryDate?: Date | string;
|
|
26
|
-
addressRetail?:
|
|
26
|
+
addressRetail?: Option;
|
|
27
27
|
addressCourier?: Address;
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -123,8 +123,12 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
|
123
123
|
participantDateRegistration?: Date | string;
|
|
124
124
|
retirementIncome?: number;
|
|
125
125
|
otherIncome?: number;
|
|
126
|
-
|
|
126
|
+
incomeAverage?: number;
|
|
127
|
+
mandatoryPayments?: number;
|
|
128
|
+
additionalIncome?: number;
|
|
127
129
|
otherPayments?: number;
|
|
130
|
+
rentalIncome?: number;
|
|
131
|
+
wages?: number;
|
|
128
132
|
creditInRshbCd?: Option;
|
|
129
133
|
disablePeopleFlg?: boolean;
|
|
130
134
|
bankruptcyFlg?: boolean;
|
|
@@ -145,6 +149,7 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
|
145
149
|
isSalaryClient?: boolean;
|
|
146
150
|
isPensionClient?: boolean;
|
|
147
151
|
isStateEmployee?: boolean;
|
|
152
|
+
addressRetail?: Option;
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
const initialFormState = {
|
|
@@ -183,6 +188,7 @@ const initialFormState = {
|
|
|
183
188
|
paymentSystem: '',
|
|
184
189
|
cardCategory: { key: '', text: '' },
|
|
185
190
|
codeWord: '',
|
|
191
|
+
addressRetail: { key: '', text: '' },
|
|
186
192
|
};
|
|
187
193
|
|
|
188
194
|
export const getInitialFormState = (
|
|
@@ -3,7 +3,7 @@ import { type BlocksRegistry } from '../../model/BlocksRegistry';
|
|
|
3
3
|
import { type BlockDef, type ContentPageDef } from '../../model/ContentPageDef';
|
|
4
4
|
import baseData from './ContentPage.page.json';
|
|
5
5
|
|
|
6
|
-
const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder'];
|
|
6
|
+
const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder', 'CreditForm', 'CreditCardForm'];
|
|
7
7
|
|
|
8
8
|
export function useContentPageData(blocksRegistry: BlocksRegistry): ContentPageDef {
|
|
9
9
|
const [data, setData] = useState<ContentPageDef>(baseData as ContentPageDef);
|
|
@@ -3,6 +3,17 @@ import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
|
|
|
3
3
|
import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
|
|
4
4
|
import { CreditCardForm } from './CreditCardForm';
|
|
5
5
|
|
|
6
|
+
const MOCK_TOKEN = 'mock-key';
|
|
7
|
+
const MOCK_TASK_ID = '111111';
|
|
8
|
+
|
|
9
|
+
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
10
|
+
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
11
|
+
const taskId = globalThis.localStorage.getItem('taskId');
|
|
12
|
+
|
|
13
|
+
!refreshToken && globalThis.sessionStorage?.setItem('refreshToken', MOCK_TOKEN);
|
|
14
|
+
!accessToken && globalThis.sessionStorage?.setItem('accessToken', MOCK_TOKEN);
|
|
15
|
+
!taskId && globalThis.localStorage.setItem('taskId', MOCK_TASK_ID);
|
|
16
|
+
|
|
6
17
|
export default {
|
|
7
18
|
default: (
|
|
8
19
|
<div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
6
|
import { style } from '../../utils/style';
|
|
@@ -24,6 +25,8 @@ const WIZARD_TITLES = [
|
|
|
24
25
|
export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...rest }) => {
|
|
25
26
|
const [step, setStep] = useState(0);
|
|
26
27
|
|
|
28
|
+
useEffect(updateRefreshToken, []);
|
|
29
|
+
|
|
27
30
|
const handleNextStep = useCallback(() => {
|
|
28
31
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
29
32
|
}, []);
|
|
@@ -205,11 +205,11 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
columns: 1,
|
|
208
|
-
inputs: [{ fieldType: 'common', name: '
|
|
208
|
+
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
columns: 1,
|
|
212
|
-
inputs: [{ fieldType: 'common', name: '
|
|
212
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
columns: 1,
|
|
@@ -63,8 +63,8 @@ export const formStateMap: Partial<FormState>[] = [
|
|
|
63
63
|
dependents: undefined,
|
|
64
64
|
familyMembers: undefined,
|
|
65
65
|
confirmationIncome: { key: '', text: '' },
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
wages: undefined,
|
|
67
|
+
mandatoryPayments: undefined,
|
|
68
68
|
snils: '',
|
|
69
69
|
armyIdFlg: false,
|
|
70
70
|
},
|
|
@@ -78,8 +78,8 @@ export const formStateMap: Partial<FormState>[] = [
|
|
|
78
78
|
{
|
|
79
79
|
regionRetail: '',
|
|
80
80
|
addressRetail: {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
key: '',
|
|
82
|
+
text: '',
|
|
83
83
|
},
|
|
84
84
|
bankEmployeeCode: undefined,
|
|
85
85
|
addressCourier: {
|
|
@@ -7,8 +7,14 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
7
7
|
familyStatus,
|
|
8
8
|
dependents,
|
|
9
9
|
familyMembers,
|
|
10
|
-
|
|
10
|
+
wages,
|
|
11
|
+
mandatoryPayments,
|
|
12
|
+
incomeAverage,
|
|
13
|
+
additionalIncome,
|
|
14
|
+
otherIncome,
|
|
11
15
|
otherPayments,
|
|
16
|
+
rentalIncome,
|
|
17
|
+
retirementIncome,
|
|
12
18
|
snils,
|
|
13
19
|
armyIdFlg,
|
|
14
20
|
} = formData;
|
|
@@ -18,8 +24,14 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
18
24
|
totalDependents: familyMembers,
|
|
19
25
|
otherDependents: dependents,
|
|
20
26
|
participantIncomes: getParticipantIncomes({
|
|
21
|
-
|
|
27
|
+
wages,
|
|
28
|
+
mandatoryPayments,
|
|
29
|
+
incomeAverage,
|
|
30
|
+
additionalIncome,
|
|
31
|
+
otherIncome,
|
|
22
32
|
otherPayments,
|
|
33
|
+
rentalIncome,
|
|
34
|
+
retirementIncome,
|
|
23
35
|
}),
|
|
24
36
|
snils: snils?.replaceAll(' ', ''),
|
|
25
37
|
armyIdFlg,
|
|
@@ -198,11 +198,11 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
columns: 1,
|
|
201
|
-
inputs: [{ fieldType: 'common', name: '
|
|
201
|
+
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
columns: 1,
|
|
205
|
-
inputs: [{ fieldType: 'common', name: '
|
|
205
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
columns: 1,
|
|
@@ -61,8 +61,8 @@ export const formStateMap: Partial<FormState>[] = [
|
|
|
61
61
|
dependents: undefined,
|
|
62
62
|
familyMembers: undefined,
|
|
63
63
|
confirmationIncome: { key: '', text: '' },
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
wages: undefined,
|
|
65
|
+
mandatoryPayments: undefined,
|
|
66
66
|
snils: '',
|
|
67
67
|
armyIdFlg: false,
|
|
68
68
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
import { getFifthStepData } from './getFifthStepData';
|
|
3
4
|
import { getFirstStepData } from './getFirstStepData';
|
|
4
5
|
import { getFourthStepData } from './getFourthStepData';
|
|
5
6
|
import { getSecondStepData } from './getSecondStepData';
|
|
@@ -27,7 +28,7 @@ export const getCreditFormTaskData = ({
|
|
|
27
28
|
taskSource: globalThis.location.origin,
|
|
28
29
|
id: taskId,
|
|
29
30
|
office: {
|
|
30
|
-
id: '
|
|
31
|
+
id: '',
|
|
31
32
|
},
|
|
32
33
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
33
34
|
participants: [
|
|
@@ -44,6 +45,7 @@ export const getCreditFormTaskData = ({
|
|
|
44
45
|
},
|
|
45
46
|
],
|
|
46
47
|
...getZeroStepData(formData), // moved from participants
|
|
48
|
+
...getFifthStepData(formData),
|
|
47
49
|
esiaAccountTypeCd: {
|
|
48
50
|
key: formData?.esiaAccountTypeCd?.key,
|
|
49
51
|
} as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
|
|
4
|
+
export const getFifthStepData = (formData: FormState): Partial<UpdateUserTaskBody['task']> => {
|
|
5
|
+
const { addressRetail } = formData;
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
office: addressRetail?.key ? { id: addressRetail.key } : undefined,
|
|
9
|
+
};
|
|
10
|
+
};
|