@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
package/package.json
CHANGED
|
@@ -18,6 +18,15 @@ export interface FormConsents {
|
|
|
18
18
|
consentOthersFlg?: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export type FormStateDeliveryType = {
|
|
22
|
+
regionRetail?: string;
|
|
23
|
+
bankEmployeeCode?: number;
|
|
24
|
+
methodObtain?: 'office' | 'courier';
|
|
25
|
+
deliveryDate?: Date | string;
|
|
26
|
+
addressRetail?: Address;
|
|
27
|
+
addressCourier?: Address;
|
|
28
|
+
};
|
|
29
|
+
|
|
21
30
|
export interface Address {
|
|
22
31
|
apartment?: string;
|
|
23
32
|
block?: string;
|
|
@@ -39,14 +48,14 @@ export interface Address {
|
|
|
39
48
|
qcHouse?: string;
|
|
40
49
|
}
|
|
41
50
|
|
|
42
|
-
export interface FormState extends FormConsents {
|
|
51
|
+
export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
43
52
|
typeForm?: Option | string;
|
|
44
53
|
surname?: string;
|
|
45
54
|
name?: string;
|
|
46
55
|
middleName?: string;
|
|
47
56
|
fullName?: string;
|
|
48
|
-
registrationDate?: Date;
|
|
49
|
-
birthday?: Date;
|
|
57
|
+
registrationDate?: Date | string;
|
|
58
|
+
birthday?: Date | string;
|
|
50
59
|
birthPlace?: string;
|
|
51
60
|
sex?: string;
|
|
52
61
|
phone?: string;
|
|
@@ -62,7 +71,7 @@ export interface FormState extends FormConsents {
|
|
|
62
71
|
positionOrganization?: Option;
|
|
63
72
|
dulSerie?: string;
|
|
64
73
|
dulNumber?: string;
|
|
65
|
-
dulIssueDateField?: string;
|
|
74
|
+
dulIssueDateField?: Date | string;
|
|
66
75
|
dulSubdivisionCode?: string;
|
|
67
76
|
dulIssuedBy?: string;
|
|
68
77
|
email?: string;
|
|
@@ -85,7 +94,7 @@ export interface FormState extends FormConsents {
|
|
|
85
94
|
experience5Years?: number;
|
|
86
95
|
jobsNumber?: number;
|
|
87
96
|
organizationAddress?: Address;
|
|
88
|
-
beginDate?: string;
|
|
97
|
+
beginDate?: Date | string;
|
|
89
98
|
addressFact?: Address;
|
|
90
99
|
addressBranch?: Option;
|
|
91
100
|
bankEmpolee?: string;
|
|
@@ -111,7 +120,7 @@ export interface FormState extends FormConsents {
|
|
|
111
120
|
conscription?: string;
|
|
112
121
|
armyIdFlg?: boolean;
|
|
113
122
|
addressRegistration?: Address;
|
|
114
|
-
participantDateRegistration?: Date;
|
|
123
|
+
participantDateRegistration?: Date | string;
|
|
115
124
|
retirementIncome?: number;
|
|
116
125
|
otherIncome?: number;
|
|
117
126
|
mandatoryIncome?: number;
|
|
@@ -121,18 +130,21 @@ export interface FormState extends FormConsents {
|
|
|
121
130
|
bankruptcyFlg?: boolean;
|
|
122
131
|
shareholderFlg?: boolean;
|
|
123
132
|
legalEntityName?: string;
|
|
124
|
-
bankEmployeeCode?: number;
|
|
125
133
|
partInBusiness?: number;
|
|
126
134
|
addressMatch?: boolean;
|
|
127
135
|
confirmationIncome?: Option;
|
|
128
136
|
currency?: string;
|
|
129
137
|
paymentSystem?: string;
|
|
130
|
-
cardCategory?:
|
|
138
|
+
cardCategory?: Option;
|
|
131
139
|
codeWord?: string;
|
|
132
140
|
esiaAccountTypeCd?: Option;
|
|
133
141
|
moneyValue?: number;
|
|
134
142
|
monthsValue?: number;
|
|
135
143
|
isAnnuity?: boolean;
|
|
144
|
+
isInsurance?: boolean;
|
|
145
|
+
isSalaryClient?: boolean;
|
|
146
|
+
isPensionClient?: boolean;
|
|
147
|
+
isStateEmployee?: boolean;
|
|
136
148
|
}
|
|
137
149
|
|
|
138
150
|
const initialFormState = {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
5
|
import { style } from '../../utils/style';
|
|
7
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
6
|
import { type CreditCardFormContent } from './CreditCardFormContent';
|
|
9
7
|
import { CreditCardFormProgress } from './CreditCardFormProgress';
|
|
10
8
|
import { CreditCardFormStep } from './CreditCardFormStep';
|
|
@@ -37,8 +35,6 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
|
|
|
37
35
|
|
|
38
36
|
const sections = useMemo(() => stepsSectionsMap[step], [step]);
|
|
39
37
|
|
|
40
|
-
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
41
|
-
|
|
42
38
|
const [isFormFinished, setIsFormFinished] = useState(false);
|
|
43
39
|
|
|
44
40
|
return (
|
|
@@ -55,7 +51,6 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
|
|
|
55
51
|
<CreditCardFormStep
|
|
56
52
|
key={String(step)}
|
|
57
53
|
step={step}
|
|
58
|
-
inputs={inputs}
|
|
59
54
|
sections={sections}
|
|
60
55
|
onNextStep={handleNextStep}
|
|
61
56
|
onPrevStep={handlePrevStep}
|
|
@@ -4,12 +4,12 @@ import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
|
4
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
5
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
6
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
-
import { type
|
|
7
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
8
8
|
|
|
9
9
|
/** @hidden */
|
|
10
10
|
export interface RenderInputsProps {
|
|
11
11
|
inputs?: FieldDef[];
|
|
12
|
-
field: FormFieldRegisterer<
|
|
12
|
+
field: FormFieldRegisterer<FormState>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type CreditCardSectionsProps = SectionsProps & {
|
|
@@ -4,8 +4,8 @@ import { useForm } from '../../hooks/useForm';
|
|
|
4
4
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
5
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
6
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
7
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
7
8
|
import { CreditCardFormStatusTracker } from './CreditCardFormStatusTracker';
|
|
8
|
-
import { type FormStateDeliveryType, type FormStateMap } from './formStateMap';
|
|
9
9
|
import { getInitialFormState } from './getInitialFormState';
|
|
10
10
|
import { renderStep, type CustomSubmit } from './renderStep';
|
|
11
11
|
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
@@ -14,7 +14,6 @@ import { useCreditCardFormAPI } from './useCreditCardFormAPI';
|
|
|
14
14
|
export interface CreditCardFormStepProps {
|
|
15
15
|
step: number;
|
|
16
16
|
sections: SectionsProps[];
|
|
17
|
-
inputs: FieldDef[];
|
|
18
17
|
onNextStep: () => void;
|
|
19
18
|
onPrevStep: () => void;
|
|
20
19
|
isFormFinished: boolean;
|
|
@@ -22,12 +21,14 @@ export interface CreditCardFormStepProps {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
25
|
-
({ step, sections, onPrevStep, onNextStep,
|
|
24
|
+
({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm }) => {
|
|
26
25
|
const [localStorageData, saveStep] = useLocalStorage<Record<string, any>>('leadForm');
|
|
27
|
-
const initialState = getInitialFormState(step
|
|
26
|
+
const initialState = getInitialFormState(step, localStorageData);
|
|
28
27
|
|
|
29
28
|
const customSubmit = useRef<CustomSubmit | undefined>(undefined);
|
|
30
29
|
|
|
30
|
+
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
31
|
+
|
|
31
32
|
const registerSubmit = useCallback((submit?: CustomSubmit) => {
|
|
32
33
|
customSubmit.current = submit;
|
|
33
34
|
}, []);
|
|
@@ -40,9 +41,9 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
|
40
41
|
finishForm,
|
|
41
42
|
});
|
|
42
43
|
|
|
43
|
-
const [
|
|
44
|
+
const [, { field, onSubmit }] = useForm(initialState, {
|
|
44
45
|
onSubmit: (formData, ev) => {
|
|
45
|
-
handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
|
|
46
|
+
handleSubmit({ ...formData, ...customSubmit.current?.(ev) } as FormState);
|
|
46
47
|
},
|
|
47
48
|
});
|
|
48
49
|
|
|
@@ -53,8 +54,8 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
|
53
54
|
{renderStep({
|
|
54
55
|
sections,
|
|
55
56
|
field,
|
|
57
|
+
step,
|
|
56
58
|
registerSubmit,
|
|
57
|
-
userInputParams: userInputParams as FormStateDeliveryType,
|
|
58
59
|
})}
|
|
59
60
|
<StepsNavigationButtons step={step} onPrevStep={onPrevStep} />
|
|
60
61
|
</form>
|
|
@@ -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
|
+
});
|
|
@@ -1,88 +1,13 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
1
|
import { PAYMENT_SYSTEM_TYPES } from '../../ui-kit/FormField/Fields/PaymentSystemField';
|
|
3
|
-
import type
|
|
4
|
-
import { type Address } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
3
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
bankEmployeeCode?: string;
|
|
9
|
-
methodObtain?: 'office' | 'courier';
|
|
10
|
-
deliveryDate?: Date;
|
|
11
|
-
addressRetail?: Address;
|
|
12
|
-
addressCourier?: Address;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export interface FormStateMap {
|
|
16
|
-
0: {
|
|
17
|
-
currency?: string;
|
|
18
|
-
paymentSystem?: string;
|
|
19
|
-
cardCategory?: Option;
|
|
20
|
-
codeWord?: string;
|
|
21
|
-
};
|
|
22
|
-
1: {
|
|
23
|
-
surname?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
middleName?: string;
|
|
26
|
-
sex?: string;
|
|
27
|
-
birthday?: Date;
|
|
28
|
-
birthPlace?: string;
|
|
29
|
-
phone?: string;
|
|
30
|
-
email?: string;
|
|
31
|
-
dulSerie?: number;
|
|
32
|
-
dulNumber?: number;
|
|
33
|
-
dulIssueDateField?: Date;
|
|
34
|
-
dulSubdivisionCode?: string;
|
|
35
|
-
dulIssuedBy?: string;
|
|
36
|
-
addressRegistration?: Address;
|
|
37
|
-
participantDateRegistration?: Date;
|
|
38
|
-
addressFact?: Address;
|
|
39
|
-
housing?: string;
|
|
40
|
-
};
|
|
41
|
-
2: {
|
|
42
|
-
amountWorkers?: Option;
|
|
43
|
-
beginDate?: Date;
|
|
44
|
-
employerActivities?: Option;
|
|
45
|
-
employerOrganization?: Option;
|
|
46
|
-
employment?: Option;
|
|
47
|
-
experience5Years?: string;
|
|
48
|
-
inn?: number;
|
|
49
|
-
jobsNumber?: string;
|
|
50
|
-
lastJobExperience?: string;
|
|
51
|
-
legalForm?: string;
|
|
52
|
-
organization?: Option;
|
|
53
|
-
organizationAddress?: Address;
|
|
54
|
-
organizationName?: string;
|
|
55
|
-
organizationPhone?: string;
|
|
56
|
-
partInBusiness?: number;
|
|
57
|
-
positionOrganization?: Option;
|
|
58
|
-
};
|
|
59
|
-
3: {
|
|
60
|
-
familyStatus?: Option;
|
|
61
|
-
dependents?: number;
|
|
62
|
-
familyMembers?: number;
|
|
63
|
-
confirmationIncome?: Option;
|
|
64
|
-
mandatoryIncome?: number;
|
|
65
|
-
otherPayments?: number;
|
|
66
|
-
snils?: string;
|
|
67
|
-
armyIdFlg?: boolean;
|
|
68
|
-
};
|
|
69
|
-
4: {
|
|
70
|
-
disablePeopleFlg?: boolean;
|
|
71
|
-
bankruptcyFlg?: boolean;
|
|
72
|
-
shareholderFlg?: boolean;
|
|
73
|
-
legalEntityName?: string;
|
|
74
|
-
creditInRshbCd?: Option;
|
|
75
|
-
};
|
|
76
|
-
5: FormStateDeliveryType;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export const formStateMap: FormStateMap = {
|
|
80
|
-
0: {
|
|
4
|
+
export const formStateMap: Partial<FormState>[] = [
|
|
5
|
+
{
|
|
81
6
|
paymentSystem: PAYMENT_SYSTEM_TYPES[0].id,
|
|
82
7
|
currency: 'rub',
|
|
83
8
|
codeWord: '',
|
|
84
9
|
},
|
|
85
|
-
|
|
10
|
+
{
|
|
86
11
|
surname: '',
|
|
87
12
|
name: '',
|
|
88
13
|
middleName: '',
|
|
@@ -105,18 +30,23 @@ export const formStateMap: FormStateMap = {
|
|
|
105
30
|
fullAddress: '',
|
|
106
31
|
fiasCode: '',
|
|
107
32
|
},
|
|
108
|
-
housing:
|
|
33
|
+
housing: undefined,
|
|
34
|
+
methodObtain: 'office',
|
|
35
|
+
addressCourier: {
|
|
36
|
+
fullAddress: '',
|
|
37
|
+
fiasCode: '',
|
|
38
|
+
},
|
|
109
39
|
},
|
|
110
|
-
|
|
40
|
+
{
|
|
111
41
|
amountWorkers: { key: '', text: '' },
|
|
112
42
|
beginDate: undefined,
|
|
113
43
|
employerActivities: { key: '', text: '' },
|
|
114
44
|
employerOrganization: { key: '', text: '' },
|
|
115
45
|
employment: { key: '', text: '' },
|
|
116
|
-
experience5Years:
|
|
46
|
+
experience5Years: undefined,
|
|
117
47
|
inn: undefined,
|
|
118
|
-
jobsNumber:
|
|
119
|
-
lastJobExperience:
|
|
48
|
+
jobsNumber: undefined,
|
|
49
|
+
lastJobExperience: undefined,
|
|
120
50
|
legalForm: '',
|
|
121
51
|
organization: { key: '', text: '' },
|
|
122
52
|
organizationAddress: {
|
|
@@ -128,7 +58,7 @@ export const formStateMap: FormStateMap = {
|
|
|
128
58
|
partInBusiness: undefined,
|
|
129
59
|
positionOrganization: { key: '', text: '' },
|
|
130
60
|
},
|
|
131
|
-
|
|
61
|
+
{
|
|
132
62
|
familyStatus: { key: '', text: '' },
|
|
133
63
|
dependents: undefined,
|
|
134
64
|
familyMembers: undefined,
|
|
@@ -138,25 +68,25 @@ export const formStateMap: FormStateMap = {
|
|
|
138
68
|
snils: '',
|
|
139
69
|
armyIdFlg: false,
|
|
140
70
|
},
|
|
141
|
-
|
|
71
|
+
{
|
|
142
72
|
disablePeopleFlg: false,
|
|
143
73
|
bankruptcyFlg: false,
|
|
144
74
|
shareholderFlg: false,
|
|
145
75
|
legalEntityName: '',
|
|
146
76
|
creditInRshbCd: undefined,
|
|
147
77
|
},
|
|
148
|
-
|
|
78
|
+
{
|
|
149
79
|
regionRetail: '',
|
|
150
80
|
addressRetail: {
|
|
151
81
|
fullAddress: '',
|
|
152
82
|
fiasCode: '',
|
|
153
83
|
},
|
|
84
|
+
bankEmployeeCode: undefined,
|
|
154
85
|
addressCourier: {
|
|
155
86
|
fullAddress: '',
|
|
156
87
|
fiasCode: '',
|
|
157
88
|
},
|
|
158
|
-
bankEmployeeCode: '',
|
|
159
89
|
methodObtain: 'office',
|
|
160
90
|
deliveryDate: undefined,
|
|
161
91
|
},
|
|
162
|
-
|
|
92
|
+
];
|
|
@@ -1,31 +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;
|
|
22
|
-
localStorageData.deliveryDate = localStorageData?.deliveryDate
|
|
23
|
-
? new Date(localStorageData.deliveryDate as string)
|
|
24
|
-
: 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;
|
|
25
22
|
}
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
try {
|
|
25
|
+
return new Date(text);
|
|
26
|
+
} catch (_) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
31
29
|
};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
|
|
2
2
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
|
-
import { type FormStateDeliveryType } from './formStateMap';
|
|
4
|
-
import { getFilteredInputs } from './getFilteredInputs';
|
|
5
3
|
|
|
6
|
-
export const renderInfo = (
|
|
4
|
+
export const renderInfo = (inputs: FieldDef[] = []) => {
|
|
7
5
|
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
8
|
-
const filteredInputs = getFilteredInputs(
|
|
9
|
-
infoInputs,
|
|
10
|
-
state as FormStateDeliveryType,
|
|
11
|
-
) as FieldDef[];
|
|
12
6
|
|
|
13
|
-
return
|
|
14
|
-
?
|
|
7
|
+
return infoInputs.length
|
|
8
|
+
? infoInputs.map(({ text, name }, i) => <InfoCard key={`${name}_${i}`} __html={text} />)
|
|
15
9
|
: null;
|
|
16
10
|
};
|
|
@@ -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, ''));
|
|
@@ -2,25 +2,37 @@ import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/us
|
|
|
2
2
|
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
3
3
|
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
4
4
|
import { style } from '../../utils/style';
|
|
5
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
6
|
+
import { calculateInputs, checkCondition, type GetValue } from './calculateInputs';
|
|
5
7
|
import { type CreditCardSectionsProps } from './CreditCardFormContent';
|
|
6
|
-
import { type FormStateDeliveryType, type FormStateMap } from './formStateMap';
|
|
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?: CreditCardSectionsProps[];
|
|
14
|
-
field: FormFieldRegisterer<
|
|
15
|
+
field: FormFieldRegisterer<FormState>;
|
|
15
16
|
registerSubmit?: (submit: CustomSubmit) => void;
|
|
16
|
-
|
|
17
|
+
step: number;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
export const renderStep = ({ sections, field,
|
|
20
|
-
sections?.map(({ inputs, columns, title }, i) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
const filteredInputs = inputs.filter((_) => !checkCondition(_, getValue(field)));
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
28
|
+
{renderInfo(filteredInputs)}
|
|
29
|
+
{renderTitle(title)}
|
|
30
|
+
{renderInputs({ field, inputs })}
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const getValue =
|
|
36
|
+
(field: FormFieldRegisterer<FormState>): GetValue =>
|
|
37
|
+
(name) =>
|
|
38
|
+
field(name)?.value;
|
|
@@ -5,9 +5,9 @@ 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 { getCreditCardFormTaskData } from './getCreditCardFormTaskData';
|
|
10
|
-
import { getFilteredInputs } from './getFilteredInputs';
|
|
11
11
|
|
|
12
12
|
type CreditCardFormApiProps = {
|
|
13
13
|
step: number;
|
|
@@ -28,11 +28,11 @@ export const useCreditCardFormAPI = ({
|
|
|
28
28
|
const [profileId] = useLocalStorage<number>('profileId');
|
|
29
29
|
const [participantId] = useLocalStorage<number>('participantId');
|
|
30
30
|
|
|
31
|
-
const handleSubmit = useCallback(async (formData:
|
|
32
|
-
const inputsFiltered = getFilteredInputs(inputs, formData);
|
|
31
|
+
const handleSubmit = useCallback(async (formData: FormState) => {
|
|
33
32
|
const feedbackValidator = objectValidator(
|
|
34
|
-
getObjectValidator(calculateInputs(formData,
|
|
33
|
+
getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
|
|
35
34
|
);
|
|
35
|
+
console.log(getObjectValidator(calculateInputs(getValue(formData))(inputs, step)));
|
|
36
36
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
37
37
|
return console.warn('validation fail');
|
|
38
38
|
}
|
|
@@ -69,9 +69,7 @@ export const useCreditCardFormAPI = ({
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
const
|
|
73
|
-
formData:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
) =>
|
|
77
|
-
step === 2 && 'employment' in formData && formData?.employment?.key === 'RETIREE' ? [] : inputs;
|
|
72
|
+
const getValue =
|
|
73
|
+
(formData: FormState): GetValue =>
|
|
74
|
+
(name) =>
|
|
75
|
+
formData[name];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
-
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
8
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
9
7
|
import { CalculatorCredit } from '../CalculatorCredit/CalculatorCredit';
|
|
10
8
|
import { type CreditFormContent } from './CreditFormContent';
|
|
11
9
|
import { CreditFormProgress } from './CreditFormProgress';
|
|
@@ -41,8 +39,6 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
41
39
|
|
|
42
40
|
const sections = useMemo(() => stepsSectionsMap[step], [step]);
|
|
43
41
|
|
|
44
|
-
const inputs = (sections?.flatMap((_: SectionsProps) => _?.inputs) || []) as FieldDef[];
|
|
45
|
-
|
|
46
42
|
const isStartStep = step === 0;
|
|
47
43
|
const [isFormFinished, setIsFormFinished] = useState(false);
|
|
48
44
|
|
|
@@ -56,7 +52,6 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
56
52
|
<CreditFormStep
|
|
57
53
|
key={String(step)}
|
|
58
54
|
step={step}
|
|
59
|
-
inputs={inputs}
|
|
60
55
|
sections={sections}
|
|
61
56
|
onNextStep={handleNextStep}
|
|
62
57
|
onPrevStep={handlePrevStep}
|
|
@@ -67,11 +62,10 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
67
62
|
? ({ registerSubmit, field }) => (
|
|
68
63
|
<CalculatorCredit
|
|
69
64
|
{...{
|
|
70
|
-
// TODO: Remove "as never"
|
|
71
65
|
defaultParams: {
|
|
72
|
-
sum: field('moneyValue'
|
|
73
|
-
period: field('monthsValue'
|
|
74
|
-
isAnnuity: field('isAnnuity'
|
|
66
|
+
sum: field('moneyValue').value,
|
|
67
|
+
period: field('monthsValue').value,
|
|
68
|
+
isAnnuity: field('isAnnuity').value,
|
|
75
69
|
},
|
|
76
70
|
title: 'Калькулятор кредита',
|
|
77
71
|
footnote:
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
1
|
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
4
3
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
6
|
-
import { type FormStateMap } from './formStateMap';
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* @title Форма заявки на потребительский кредит настраиваемая
|
|
@@ -14,9 +11,3 @@ export type CreditFormContent = UniBlockContent &
|
|
|
14
11
|
/** @title Номер кредитной программы */
|
|
15
12
|
programId?: string;
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
/** @hidden */
|
|
19
|
-
export interface RenderInputsProps {
|
|
20
|
-
inputs?: FieldDef[];
|
|
21
|
-
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
22
|
-
}
|