@redneckz/wildless-cms-uni-blocks 0.14.656 → 0.14.658
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/bundle.umd.js +212 -172
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/bundle/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/bundle/components/CreditCardForm/renderStep.d.ts +5 -5
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/bundle/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/bundle/components/CreditForm/calculateInputs.d.ts +5 -0
- package/bundle/components/CreditForm/formStateMap.d.ts +2 -73
- package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +7 -1
- package/bundle/components/CreditForm/renderStep.d.ts +5 -4
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/dist/components/CreditCardForm/calculateInputs.js +28 -0
- package/dist/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/dist/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/dist/components/CreditCardForm/formStateMap.js +18 -14
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditCardForm/getInitialFormState.js +19 -24
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/dist/components/CreditCardForm/renderInfo.js +3 -5
- package/dist/components/CreditCardForm/renderInfo.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/dist/components/CreditCardForm/renderStep.d.ts +5 -5
- package/dist/components/CreditCardForm/renderStep.js +7 -1
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -3
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/dist/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/dist/components/CreditForm/CreditFormStep.js +3 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.d.ts +5 -0
- package/dist/components/CreditForm/calculateInputs.js +28 -0
- package/dist/components/CreditForm/calculateInputs.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.d.ts +2 -73
- package/dist/components/CreditForm/formStateMap.js +14 -14
- 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/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditForm/getInitialFormState.js +19 -21
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +7 -1
- package/dist/components/CreditForm/renderInputs.js +1 -1
- package/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +5 -4
- package/dist/components/CreditForm/renderStep.js +6 -1
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/dist/components/CreditForm/useCreditFormAPI.js +4 -13
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +3 -2
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +1 -2
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +4 -7
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/getValidation.js +1 -1
- package/dist/ui-kit/FormField/getValidation.js.map +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +2 -2
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/lib/components/CreditCardForm/calculateInputs.js +24 -0
- package/lib/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/lib/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/lib/components/CreditCardForm/formStateMap.js +18 -14
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditCardForm/getInitialFormState.js +18 -23
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/lib/components/CreditCardForm/renderInfo.js +3 -5
- package/lib/components/CreditCardForm/renderInfo.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/lib/components/CreditCardForm/renderStep.d.ts +5 -5
- package/lib/components/CreditCardForm/renderStep.js +7 -1
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -3
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/lib/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/lib/components/CreditForm/CreditFormStep.js +3 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.d.ts +5 -0
- package/lib/components/CreditForm/calculateInputs.js +24 -0
- package/lib/components/CreditForm/calculateInputs.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.d.ts +2 -73
- package/lib/components/CreditForm/formStateMap.js +14 -14
- 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/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditForm/getInitialFormState.js +18 -20
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +7 -1
- package/lib/components/CreditForm/renderInputs.js +1 -1
- package/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +5 -4
- package/lib/components/CreditForm/renderStep.js +6 -1
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/lib/components/CreditForm/useCreditFormAPI.js +4 -13
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +3 -2
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +1 -2
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -7
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/getValidation.js +1 -1
- package/lib/ui-kit/FormField/getValidation.js.map +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +2 -2
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +212 -172
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/bundle/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -73
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/calculateInputs.js +28 -0
- package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/dist/components/CreditCardForm/formStateMap.js +18 -14
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +19 -24
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.js +3 -5
- package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/dist/components/CreditCardForm/renderStep.js +7 -1
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -3
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js +3 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/dist/components/CreditForm/calculateInputs.js +28 -0
- package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -0
- 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.d.ts +2 -73
- package/mobile/dist/components/CreditForm/formStateMap.js +14 -14
- 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/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getInitialFormState.js +19 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/dist/components/CreditForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/dist/components/CreditForm/renderStep.js +6 -1
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +4 -13
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +3 -2
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +4 -7
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getValidation.js +1 -1
- package/mobile/dist/ui-kit/FormField/getValidation.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +2 -2
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/calculateInputs.js +24 -0
- package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/lib/components/CreditCardForm/formStateMap.js +18 -14
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +18 -23
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderInfo.js +3 -5
- package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/lib/components/CreditCardForm/renderStep.js +7 -1
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -3
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js +3 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/lib/components/CreditForm/calculateInputs.js +24 -0
- package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -0
- 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.d.ts +2 -73
- package/mobile/lib/components/CreditForm/formStateMap.js +14 -14
- 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/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getInitialFormState.js +18 -20
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/lib/components/CreditForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/lib/components/CreditForm/renderStep.js +6 -1
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +4 -13
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +3 -2
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -7
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getValidation.js +1 -1
- package/mobile/lib/ui-kit/FormField/getValidation.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +2 -2
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +20 -8
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +0 -5
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +8 -7
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +44 -0
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +19 -89
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -1
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +24 -26
- package/mobile/src/components/CreditCardForm/renderInfo.tsx +3 -9
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +9 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +24 -12
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +9 -11
- package/mobile/src/components/CreditForm/CreditForm.tsx +3 -9
- package/mobile/src/components/CreditForm/CreditFormContent.ts +0 -9
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +6 -6
- package/mobile/src/components/CreditForm/calculateInputs.ts +44 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +15 -88
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +24 -23
- package/mobile/src/components/CreditForm/renderInputs.tsx +9 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +22 -11
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +9 -22
- package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +3 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +2 -15
- package/mobile/src/ui-kit/FormField/Fields/AddressMatchField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/BeginDateField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +4 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -2
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +5 -7
- package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/LegalFormField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +5 -3
- package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +13 -14
- package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -7
- package/mobile/src/ui-kit/FormField/getValidation.tsx +1 -1
- package/mobile/src/ui-kit/FormField/isEsiaAuthorize.ts +2 -2
- package/mobile/src/ui-kit/Input/InputControl.tsx +2 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +20 -8
- package/src/components/CreditCardForm/CreditCardForm.tsx +0 -5
- package/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +8 -7
- package/src/components/CreditCardForm/calculateInputs.ts +44 -0
- package/src/components/CreditCardForm/formStateMap.tsx +19 -89
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -1
- package/src/components/CreditCardForm/getInitialFormState.tsx +24 -26
- package/src/components/CreditCardForm/renderInfo.tsx +3 -9
- package/src/components/CreditCardForm/renderInputs.tsx +9 -2
- package/src/components/CreditCardForm/renderStep.tsx +24 -12
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +9 -11
- package/src/components/CreditForm/CreditForm.tsx +3 -9
- package/src/components/CreditForm/CreditFormContent.ts +0 -9
- package/src/components/CreditForm/CreditFormStep.tsx +6 -6
- package/src/components/CreditForm/calculateInputs.ts +44 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/src/components/CreditForm/formStateMap.tsx +15 -88
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/src/components/CreditForm/getInitialFormState.tsx +24 -23
- package/src/components/CreditForm/renderInputs.tsx +9 -2
- package/src/components/CreditForm/renderStep.tsx +22 -11
- package/src/components/CreditForm/useCreditFormAPI.tsx +9 -22
- package/src/ui-kit/FormField/Fields/AddressFactField.tsx +3 -0
- package/src/ui-kit/FormField/Fields/AddressField.tsx +2 -15
- package/src/ui-kit/FormField/Fields/AddressMatchField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/BeginDateField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +4 -0
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -2
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +5 -7
- package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/InnField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/LegalFormField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +5 -3
- package/src/ui-kit/FormField/Fields/NameField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +13 -14
- package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/SurnameField.tsx +4 -2
- package/src/ui-kit/FormField/getObjectValidator.tsx +6 -7
- package/src/ui-kit/FormField/getValidation.tsx +1 -1
- package/src/ui-kit/FormField/isEsiaAuthorize.ts +2 -2
- package/src/ui-kit/Input/InputControl.tsx +2 -2
- package/src/ui-kit/Input/InputProps.ts +1 -1
- package/bundle/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/bundle/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/dist/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/dist/components/CreditCardForm/getFilteredInputs.js +0 -11
- package/dist/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/dist/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/dist/ui-kit/FormField/calculateIsRequired.js +0 -5
- package/dist/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/lib/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/lib/components/CreditCardForm/getFilteredInputs.js +0 -8
- package/lib/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/lib/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/lib/ui-kit/FormField/calculateIsRequired.js +0 -2
- package/lib/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/bundle/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/bundle/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.js +0 -11
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.js +0 -5
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.js +0 -8
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.js +0 -2
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/src/components/CreditCardForm/getFilteredInputs.tsx +0 -18
- package/mobile/src/ui-kit/FormField/calculateIsRequired.ts +0 -6
- package/src/components/CreditCardForm/getFilteredInputs.tsx +0 -18
- package/src/ui-kit/FormField/calculateIsRequired.ts +0 -6
|
@@ -4,8 +4,8 @@ import { useForm } from '../../hooks/useForm';
|
|
|
4
4
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
5
|
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
6
6
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
7
8
|
import { CreditFormStatusTracker } from './CreditFormStatusTracker';
|
|
8
|
-
import { type FormStateMap } from './formStateMap';
|
|
9
9
|
import { getInitialFormState } from './getInitialFormState';
|
|
10
10
|
import { renderStep as defaultRenderStep, type CustomSubmit, type StepProps } from './renderStep';
|
|
11
11
|
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
@@ -14,7 +14,6 @@ import { useCreditFormAPI } from './useCreditFormAPI';
|
|
|
14
14
|
export interface CreditFormStepProps {
|
|
15
15
|
step: number;
|
|
16
16
|
sections: SectionsProps[];
|
|
17
|
-
inputs: FieldDef[];
|
|
18
17
|
onNextStep: () => void;
|
|
19
18
|
onPrevStep: () => void;
|
|
20
19
|
renderStep?: (props: StepProps) => JSX.Element | JSX.Element[] | undefined;
|
|
@@ -28,16 +27,17 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
|
28
27
|
sections,
|
|
29
28
|
onPrevStep,
|
|
30
29
|
onNextStep,
|
|
31
|
-
inputs,
|
|
32
30
|
renderStep = defaultRenderStep,
|
|
33
31
|
isFormFinished,
|
|
34
32
|
finishForm,
|
|
35
33
|
}) => {
|
|
36
34
|
const [localStorageData, saveStep] = useLocalStorage<Record<string, any>>('leadForm');
|
|
37
|
-
const initialState = getInitialFormState(step
|
|
35
|
+
const initialState = getInitialFormState(step, localStorageData);
|
|
38
36
|
|
|
39
37
|
const customSubmit = useRef<CustomSubmit | undefined>(undefined);
|
|
40
38
|
|
|
39
|
+
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
40
|
+
|
|
41
41
|
const registerSubmit = useCallback((submit?: CustomSubmit) => {
|
|
42
42
|
customSubmit.current = submit;
|
|
43
43
|
}, []);
|
|
@@ -52,7 +52,7 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
|
52
52
|
|
|
53
53
|
const [, { field, onSubmit }] = useForm(initialState, {
|
|
54
54
|
onSubmit: (formData, ev) => {
|
|
55
|
-
handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
|
|
55
|
+
handleSubmit({ ...formData, ...customSubmit.current?.(ev) } as FormState);
|
|
56
56
|
},
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
|
60
60
|
<CreditFormStatusTracker />
|
|
61
61
|
) : (
|
|
62
62
|
<form onSubmit={onSubmit} className="space-y-m">
|
|
63
|
-
{renderStep({ sections, field, registerSubmit })}
|
|
63
|
+
{renderStep({ sections, field, step, registerSubmit })}
|
|
64
64
|
<StepsNavigationButtons step={step} onPrevStep={onPrevStep} />
|
|
65
65
|
</form>
|
|
66
66
|
);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
3
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
|
+
|
|
5
|
+
export type GetValue = <K extends keyof FormState>(name: K) => FormState[K];
|
|
6
|
+
|
|
7
|
+
export const calculateInputs = (getValue: GetValue) => (inputs: FieldDef[], step: number) =>
|
|
8
|
+
inputs
|
|
9
|
+
.filter((_) => _)
|
|
10
|
+
.map((_) => {
|
|
11
|
+
if (
|
|
12
|
+
[
|
|
13
|
+
checkIsRetiree(step, getValue),
|
|
14
|
+
checkBusinessOwner(_, getValue),
|
|
15
|
+
checkConsentPfrFlg(_, getValue),
|
|
16
|
+
checkAddressFillFromESIA(_, getValue),
|
|
17
|
+
checkCondition(_, getValue),
|
|
18
|
+
].some(Boolean)
|
|
19
|
+
) {
|
|
20
|
+
return { ..._, required: false };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return _;
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const checkIsRetiree = (step: number, getValue: GetValue) =>
|
|
27
|
+
step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
28
|
+
|
|
29
|
+
const checkBusinessOwner = ({ name }: FieldDef, getValue: GetValue) =>
|
|
30
|
+
name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
31
|
+
|
|
32
|
+
const checkConsentPfrFlg = ({ name }: FieldDef, getValue: GetValue) =>
|
|
33
|
+
name === 'snils' && !getValue('consentPfrFlg');
|
|
34
|
+
|
|
35
|
+
const checkAddressFillFromESIA = ({ name, filledByEsia }: FieldDef, getValue: GetValue) =>
|
|
36
|
+
name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
37
|
+
|
|
38
|
+
export const checkCondition = ({ condition }: FieldDef, getValue: GetValue) =>
|
|
39
|
+
condition?.name &&
|
|
40
|
+
condition?.values?.some((_) => {
|
|
41
|
+
const dataValue = getValue(condition?.name);
|
|
42
|
+
|
|
43
|
+
return _ !== ((dataValue as Option)?.key ?? dataValue);
|
|
44
|
+
});
|
|
@@ -23,8 +23,8 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
23
23
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
24
24
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
25
25
|
{ fieldType: 'common', name: 'birthday', required: true, filledByEsia: true },
|
|
26
|
-
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
27
|
-
{ fieldType: 'common', name: 'phone', required: true },
|
|
26
|
+
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
27
|
+
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
28
28
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
29
29
|
],
|
|
30
30
|
},
|
|
@@ -1,80 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Option } from '../../ui-kit/Select/Option';
|
|
3
|
-
import { type Address } from '../ApplicationLeadForm/getInitialFormState';
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
2
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
moneyValue?: number;
|
|
8
|
-
monthsValue?: number;
|
|
9
|
-
isAnnuity?: boolean;
|
|
10
|
-
isInsurance?: boolean;
|
|
11
|
-
isSalaryClient?: boolean;
|
|
12
|
-
isPensionClient?: boolean;
|
|
13
|
-
isStateEmployee?: boolean;
|
|
14
|
-
};
|
|
15
|
-
1: {
|
|
16
|
-
surname?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
middleName?: string;
|
|
19
|
-
sex?: string;
|
|
20
|
-
birthday?: Date;
|
|
21
|
-
birthPlace?: string;
|
|
22
|
-
phone?: string;
|
|
23
|
-
email?: string;
|
|
24
|
-
dulSerie?: number;
|
|
25
|
-
dulNumber?: number;
|
|
26
|
-
dulIssueDateField?: Date;
|
|
27
|
-
dulSubdivisionCode?: string;
|
|
28
|
-
dulIssuedBy?: string;
|
|
29
|
-
addressRegistration?: Address;
|
|
30
|
-
participantDateRegistration?: Date;
|
|
31
|
-
addressFact?: Address;
|
|
32
|
-
housing?: string;
|
|
33
|
-
};
|
|
34
|
-
2: {
|
|
35
|
-
amountWorkers?: Option;
|
|
36
|
-
beginDate?: Date;
|
|
37
|
-
employerActivities?: Option;
|
|
38
|
-
employerOrganization?: Option;
|
|
39
|
-
employment?: Option;
|
|
40
|
-
experience5Years?: string;
|
|
41
|
-
inn?: number;
|
|
42
|
-
jobsNumber?: string;
|
|
43
|
-
lastJobExperience?: string;
|
|
44
|
-
legalForm?: string;
|
|
45
|
-
organization?: Option;
|
|
46
|
-
organizationAddress?: Address;
|
|
47
|
-
organizationName?: string;
|
|
48
|
-
organizationPhone?: string;
|
|
49
|
-
partInBusiness?: number;
|
|
50
|
-
positionOrganization?: Option;
|
|
51
|
-
};
|
|
52
|
-
3: {
|
|
53
|
-
familyStatus?: Option;
|
|
54
|
-
dependents?: number;
|
|
55
|
-
familyMembers?: number;
|
|
56
|
-
confirmationIncome?: Option;
|
|
57
|
-
mandatoryIncome?: number;
|
|
58
|
-
otherPayments?: number;
|
|
59
|
-
snils?: string;
|
|
60
|
-
armyIdFlg?: boolean;
|
|
61
|
-
};
|
|
62
|
-
4: {
|
|
63
|
-
disablePeopleFlg?: boolean;
|
|
64
|
-
bankruptcyFlg?: boolean;
|
|
65
|
-
shareholderFlg?: boolean;
|
|
66
|
-
legalEntityName?: string;
|
|
67
|
-
creditInRshbCd?: Option;
|
|
68
|
-
};
|
|
69
|
-
5: {
|
|
70
|
-
regionRetail?: string;
|
|
71
|
-
addressRetail?: string;
|
|
72
|
-
bankEmployeeCode?: string;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const formStateMap: FormStateMap = {
|
|
77
|
-
0: {
|
|
3
|
+
export const formStateMap: Partial<FormState>[] = [
|
|
4
|
+
{
|
|
78
5
|
moneyValue: 0,
|
|
79
6
|
monthsValue: 0,
|
|
80
7
|
isAnnuity: false,
|
|
@@ -83,7 +10,7 @@ export const formStateMap: FormStateMap = {
|
|
|
83
10
|
isPensionClient: false,
|
|
84
11
|
isStateEmployee: false,
|
|
85
12
|
},
|
|
86
|
-
|
|
13
|
+
{
|
|
87
14
|
surname: '',
|
|
88
15
|
name: '',
|
|
89
16
|
middleName: '',
|
|
@@ -106,18 +33,18 @@ export const formStateMap: FormStateMap = {
|
|
|
106
33
|
fullAddress: '',
|
|
107
34
|
fiasCode: '',
|
|
108
35
|
},
|
|
109
|
-
housing:
|
|
36
|
+
housing: undefined,
|
|
110
37
|
},
|
|
111
|
-
|
|
38
|
+
{
|
|
112
39
|
amountWorkers: { key: '', text: '' },
|
|
113
40
|
beginDate: undefined,
|
|
114
41
|
employerActivities: { key: '', text: '' },
|
|
115
42
|
employerOrganization: { key: '', text: '' },
|
|
116
43
|
employment: { key: '', text: '' },
|
|
117
|
-
experience5Years:
|
|
44
|
+
experience5Years: undefined,
|
|
118
45
|
inn: undefined,
|
|
119
|
-
jobsNumber:
|
|
120
|
-
lastJobExperience:
|
|
46
|
+
jobsNumber: undefined,
|
|
47
|
+
lastJobExperience: undefined,
|
|
121
48
|
legalForm: '',
|
|
122
49
|
organization: { key: '', text: '' },
|
|
123
50
|
organizationAddress: {
|
|
@@ -129,7 +56,7 @@ export const formStateMap: FormStateMap = {
|
|
|
129
56
|
partInBusiness: undefined,
|
|
130
57
|
positionOrganization: { key: '', text: '' },
|
|
131
58
|
},
|
|
132
|
-
|
|
59
|
+
{
|
|
133
60
|
familyStatus: { key: '', text: '' },
|
|
134
61
|
dependents: undefined,
|
|
135
62
|
familyMembers: undefined,
|
|
@@ -139,16 +66,16 @@ export const formStateMap: FormStateMap = {
|
|
|
139
66
|
snils: '',
|
|
140
67
|
armyIdFlg: false,
|
|
141
68
|
},
|
|
142
|
-
|
|
69
|
+
{
|
|
143
70
|
disablePeopleFlg: false,
|
|
144
71
|
bankruptcyFlg: false,
|
|
145
72
|
shareholderFlg: false,
|
|
146
73
|
legalEntityName: '',
|
|
147
74
|
creditInRshbCd: undefined,
|
|
148
75
|
},
|
|
149
|
-
|
|
76
|
+
{
|
|
150
77
|
regionRetail: '',
|
|
151
|
-
addressRetail:
|
|
152
|
-
bankEmployeeCode:
|
|
78
|
+
addressRetail: undefined,
|
|
79
|
+
bankEmployeeCode: undefined,
|
|
153
80
|
},
|
|
154
|
-
|
|
81
|
+
];
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
import { formStateMap } from './formStateMap';
|
|
2
3
|
|
|
3
|
-
export const getInitialFormState =
|
|
4
|
-
step:
|
|
4
|
+
export const getInitialFormState = (
|
|
5
|
+
step: number,
|
|
5
6
|
localStorageData: Record<string, any> | null,
|
|
6
|
-
):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
: undefined;
|
|
7
|
+
): FormState => ({
|
|
8
|
+
...formStateMap[step],
|
|
9
|
+
...localStorageData,
|
|
10
|
+
birthday: transformStringToData(localStorageData?.birthday as string),
|
|
11
|
+
dulIssueDateField: transformStringToData(localStorageData?.dulIssueDateField as string),
|
|
12
|
+
participantDateRegistration: transformStringToData(
|
|
13
|
+
localStorageData?.participantDateRegistration as string,
|
|
14
|
+
),
|
|
15
|
+
beginDate: transformStringToData(localStorageData?.beginDate as string),
|
|
16
|
+
deliveryDate: transformStringToData(localStorageData?.deliveryDate as string),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const transformStringToData = (text?: string) => {
|
|
20
|
+
if (!text) {
|
|
21
|
+
return undefined;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
try {
|
|
25
|
+
return new Date(text);
|
|
26
|
+
} catch (_) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
28
29
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
1
2
|
import { getField } from '../../ui-kit/FormField/getField';
|
|
2
|
-
import { type
|
|
3
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
|
|
6
|
+
export interface RenderInputsProps {
|
|
7
|
+
inputs: FieldDef[];
|
|
8
|
+
field: FormFieldRegisterer<FormState>;
|
|
9
|
+
}
|
|
3
10
|
|
|
4
11
|
export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
|
|
5
|
-
|
|
12
|
+
inputs.map(getField(field, ''));
|
|
@@ -3,23 +3,34 @@ import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
|
3
3
|
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
4
4
|
import { style } from '../../utils/style';
|
|
5
5
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
|
-
import { type
|
|
6
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
7
|
+
import { calculateInputs, type GetValue } from './calculateInputs';
|
|
7
8
|
import { renderInfo } from './renderInfo';
|
|
8
9
|
import { renderInputs } from './renderInputs';
|
|
9
10
|
|
|
10
|
-
export type CustomSubmit = FormOperatorProps<
|
|
11
|
+
export type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
11
12
|
|
|
12
13
|
export interface StepProps {
|
|
13
14
|
sections?: SectionsProps[];
|
|
14
|
-
field: FormFieldRegisterer<
|
|
15
|
+
field: FormFieldRegisterer<FormState>;
|
|
15
16
|
registerSubmit?: (submit: CustomSubmit) => void;
|
|
17
|
+
step: number;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
export const renderStep = ({ sections, field }: StepProps) =>
|
|
19
|
-
sections?.map(({ inputs, columns, title }, i) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
export const renderStep = ({ sections, field, step }: StepProps) =>
|
|
21
|
+
sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
22
|
+
const inputs = calculateInputs(getValue(field))(origInputs, step);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
26
|
+
{renderInfo(inputs)}
|
|
27
|
+
{renderTitle(title)}
|
|
28
|
+
{renderInputs({ field, inputs })}
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const getValue =
|
|
34
|
+
(field: FormFieldRegisterer<FormState>): GetValue =>
|
|
35
|
+
(name) =>
|
|
36
|
+
field(name)?.value;
|
|
@@ -5,7 +5,8 @@ import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
|
|
|
5
5
|
import { objectValidator } from '../../validation/objectValidator';
|
|
6
6
|
import { isValidationSuccess } from '../../validation/validator';
|
|
7
7
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
-
import { type
|
|
8
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
9
|
+
import { calculateInputs, type GetValue } from './calculateInputs';
|
|
9
10
|
import { getCreditFormTaskData } from './getCreditFormTaskData';
|
|
10
11
|
|
|
11
12
|
type CreditFormApiProps = {
|
|
@@ -27,10 +28,11 @@ export const useCreditFormAPI = ({
|
|
|
27
28
|
const [profileId] = useLocalStorage<number>('profileId');
|
|
28
29
|
const [participantId] = useLocalStorage<number>('participantId');
|
|
29
30
|
|
|
30
|
-
const handleSubmit = useCallback(async (formData:
|
|
31
|
+
const handleSubmit = useCallback(async (formData: FormState) => {
|
|
31
32
|
const feedbackValidator = objectValidator(
|
|
32
|
-
getObjectValidator(calculateInputs(formData
|
|
33
|
+
getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
|
|
33
34
|
);
|
|
35
|
+
console.log(feedbackValidator(formData), inputs);
|
|
34
36
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
35
37
|
return console.warn('validation fail');
|
|
36
38
|
}
|
|
@@ -67,22 +69,7 @@ export const useCreditFormAPI = ({
|
|
|
67
69
|
};
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
const
|
|
71
|
-
formData:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
) => {
|
|
75
|
-
if (formData['positionOrganization']?.key !== 'BUSINESS_OWNER') {
|
|
76
|
-
return inputs.map((_) => (_?.name === 'partInBusiness' ? { ..._, required: false } : _));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (!formData['consentPfrFlg']) {
|
|
80
|
-
return inputs.map((_) => (_?.name === 'snils' ? { ..._, required: false } : _));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (step === 2 && formData['employment']?.key === 'RETIREE') {
|
|
84
|
-
return [];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return inputs;
|
|
88
|
-
};
|
|
72
|
+
const getValue =
|
|
73
|
+
(formData: FormState): GetValue =>
|
|
74
|
+
(name) =>
|
|
75
|
+
formData[name];
|
|
@@ -31,6 +31,9 @@ export const AddressFactField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
31
31
|
region: item?.data?.region,
|
|
32
32
|
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
33
33
|
street: item?.data?.house,
|
|
34
|
+
qc: item?.data?.qc,
|
|
35
|
+
qcComplete: item?.data?.qc_complete,
|
|
36
|
+
qcHouse: item?.data?.qc_house,
|
|
34
37
|
});
|
|
35
38
|
}, []);
|
|
36
39
|
|
|
@@ -2,7 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
4
4
|
import { InputControl } from '../../Input/InputControl';
|
|
5
|
-
import { calculateIsRequired } from '../calculateIsRequired';
|
|
6
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
7
6
|
import { validatorObj } from '../getObjectValidator';
|
|
8
7
|
import { getValidation } from '../getValidation';
|
|
@@ -39,23 +38,11 @@ export const AddressField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
39
38
|
});
|
|
40
39
|
}, []);
|
|
41
40
|
|
|
42
|
-
const isDisabled = [
|
|
43
|
-
fieldName === 'addressRegistration',
|
|
44
|
-
input?.filledByEsia,
|
|
45
|
-
isEsiaAuthorize(field),
|
|
46
|
-
].every(Boolean);
|
|
47
|
-
|
|
48
41
|
return (
|
|
49
42
|
<InputControl
|
|
50
|
-
disabled={
|
|
43
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, fieldName)}
|
|
51
44
|
label="Адрес"
|
|
52
|
-
{...getValidation(
|
|
53
|
-
field(fieldName),
|
|
54
|
-
validatorObj[fieldName],
|
|
55
|
-
input?.name === 'organizationAddress'
|
|
56
|
-
? calculateIsRequired(field, input?.required)
|
|
57
|
-
: input?.required,
|
|
58
|
-
)}
|
|
45
|
+
{...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
|
|
59
46
|
value={fieldValue.fullAddress}
|
|
60
47
|
onChange={onChange}
|
|
61
48
|
{...input}
|
|
@@ -4,11 +4,11 @@ import { type CustomFieldProps } from '../CustomFieldProps';
|
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
|
|
7
|
-
export const AddressMatchField = JSX<CustomFieldProps>(({ field }) => {
|
|
7
|
+
export const AddressMatchField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
8
8
|
return (
|
|
9
9
|
<CheckboxWithError
|
|
10
10
|
text="Адрес фактического места жительства совпадает с адресом регистрации"
|
|
11
|
-
{...getValidation(field('addressMatch'), validatorObj.addressMatch)}
|
|
11
|
+
{...getValidation(field('addressMatch'), validatorObj.addressMatch, input?.required)}
|
|
12
12
|
/>
|
|
13
13
|
);
|
|
14
14
|
});
|
|
@@ -4,9 +4,9 @@ import { type CustomFieldProps } from '../CustomFieldProps';
|
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
|
|
7
|
-
export const ArmyIdFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
7
|
+
export const ArmyIdFlgField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
8
|
<CheckboxWithError
|
|
9
9
|
text="Наличие военного билета"
|
|
10
|
-
{...getValidation(field('armyIdFlg'), validatorObj.armyIdFlg)}
|
|
10
|
+
{...getValidation(field('armyIdFlg'), validatorObj.armyIdFlg, input?.required)}
|
|
11
11
|
/>
|
|
12
12
|
));
|
|
@@ -4,9 +4,9 @@ import { type CustomFieldProps } from '../CustomFieldProps';
|
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
|
|
7
|
-
export const BankruptcyFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
7
|
+
export const BankruptcyFlgField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
8
|
<CheckboxWithError
|
|
9
9
|
text="В отношении меня ведётся производство по делу о банкротстве"
|
|
10
|
-
{...getValidation(field('bankruptcyFlg'), validatorObj.bankruptcyFlg)}
|
|
10
|
+
{...getValidation(field('bankruptcyFlg'), validatorObj.bankruptcyFlg, input?.required)}
|
|
11
11
|
/>
|
|
12
12
|
));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { DatePickerControl } from '../../DatePicker/DatePickerControl';
|
|
3
|
-
import { calculateIsRequired } from '../calculateIsRequired';
|
|
4
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
4
|
import { validatorObj } from '../getObjectValidator';
|
|
6
5
|
import { getValidation } from '../getValidation';
|
|
@@ -8,11 +7,7 @@ import { getValidation } from '../getValidation';
|
|
|
8
7
|
export const BeginDateField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
9
8
|
<DatePickerControl
|
|
10
9
|
label="Дата начала работы на текущем месте"
|
|
11
|
-
{...getValidation(
|
|
12
|
-
field('beginDate'),
|
|
13
|
-
validatorObj.beginDate,
|
|
14
|
-
calculateIsRequired(field, input?.required),
|
|
15
|
-
)}
|
|
10
|
+
{...getValidation(field('beginDate'), validatorObj.beginDate, input?.required)}
|
|
16
11
|
{...input}
|
|
17
12
|
/>
|
|
18
13
|
));
|
|
@@ -3,11 +3,15 @@ import { InputControl } from '../../Input/InputControl';
|
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
|
+
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
7
|
+
|
|
8
|
+
const FIELD_NAME = 'birthPlace';
|
|
6
9
|
|
|
7
10
|
export const BirthPlaceField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
11
|
<InputControl
|
|
9
12
|
label="Место рождения"
|
|
10
13
|
{...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required)}
|
|
11
14
|
{...input}
|
|
15
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
12
16
|
/>
|
|
13
17
|
));
|
|
@@ -3,6 +3,7 @@ import { DatePickerControl } from '../../DatePicker/DatePickerControl';
|
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
|
+
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
6
7
|
|
|
7
8
|
const MIN_AGE = 23;
|
|
8
9
|
const MAX_AGE = 75;
|
|
@@ -12,14 +13,17 @@ interface BirthdayFieldProps extends CustomFieldProps {
|
|
|
12
13
|
isRetailForm?: boolean;
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
const FIELD_NAME = 'birthday';
|
|
17
|
+
|
|
15
18
|
export const BirthdayField = JSX<BirthdayFieldProps>(({ field, input, isRetailForm = false }) => {
|
|
16
|
-
const { value } = field(
|
|
19
|
+
const { value } = field(FIELD_NAME);
|
|
17
20
|
|
|
18
21
|
return (
|
|
19
22
|
<DatePickerControl
|
|
20
23
|
label="Дата рождения"
|
|
21
|
-
{...getValidation(field(
|
|
24
|
+
{...getValidation(field(FIELD_NAME), validatorObj.birthday, input?.required)}
|
|
22
25
|
error={isRetailForm && value && !birthdayValidate(value as Date) ? AGE_ERROR_MESSAGE : ''}
|
|
26
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
23
27
|
/>
|
|
24
28
|
);
|
|
25
29
|
});
|
|
@@ -9,7 +9,7 @@ export const DependentsField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
|
9
9
|
label="Количество иждивенцев"
|
|
10
10
|
placeholder="За исключение детей до 18 лет"
|
|
11
11
|
type="number"
|
|
12
|
-
|
|
12
|
+
maxLength={2}
|
|
13
13
|
{...getValidation(field('dependents'), validatorObj.dependents, input?.required)}
|
|
14
14
|
{...input}
|
|
15
15
|
/>
|
|
@@ -4,9 +4,9 @@ import { type CustomFieldProps } from '../CustomFieldProps';
|
|
|
4
4
|
import { validatorObj } from '../getObjectValidator';
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
|
|
7
|
-
export const DisablePeopleFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
7
|
+
export const DisablePeopleFlgField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
8
|
<CheckboxWithError
|
|
9
9
|
text="Являюсь инвалидом"
|
|
10
|
-
{...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg)}
|
|
10
|
+
{...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg, input?.required)}
|
|
11
11
|
/>
|
|
12
12
|
));
|
|
@@ -5,10 +5,12 @@ import { validatorObj } from '../getObjectValidator';
|
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
7
7
|
|
|
8
|
+
const FIELD_NAME = 'dulIssueDateField';
|
|
9
|
+
|
|
8
10
|
export const DulIssueDateField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
9
11
|
<DatePickerControl
|
|
10
12
|
label="Дата выдачи"
|
|
11
|
-
{...getValidation(field(
|
|
12
|
-
disabled={input?.filledByEsia && isEsiaAuthorize(field)}
|
|
13
|
+
{...getValidation(field(FIELD_NAME), validatorObj.dulIssueDateField, input?.required)}
|
|
14
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
13
15
|
/>
|
|
14
16
|
));
|
|
@@ -7,6 +7,8 @@ import { validatorObj } from '../getObjectValidator';
|
|
|
7
7
|
import { getValidation } from '../getValidation';
|
|
8
8
|
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
9
9
|
|
|
10
|
+
const FIELD_NAME = 'dulIssuedBy';
|
|
11
|
+
|
|
10
12
|
export const DulIssuedByField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
11
13
|
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } =
|
|
12
14
|
field('dulSubdivisionCode');
|
|
@@ -17,10 +19,10 @@ export const DulIssuedByField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
17
19
|
|
|
18
20
|
return (
|
|
19
21
|
<InputControl
|
|
20
|
-
disabled={input?.filledByEsia && isEsiaAuthorize(field)}
|
|
22
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
21
23
|
label="Кем выдан"
|
|
22
24
|
{...input}
|
|
23
|
-
{...getValidation(field(
|
|
25
|
+
{...getValidation(field(FIELD_NAME), validatorObj.dulIssuedBy, input?.required)}
|
|
24
26
|
onDaDataChange={onDaDataChange}
|
|
25
27
|
daDataQueryPrefix={dulSubdivisionCode}
|
|
26
28
|
/>
|