@redneckz/wildless-cms-uni-blocks 0.14.657 → 0.14.659
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/bundle/bundle.umd.js +214 -174
- 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/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +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/getThirdStepData.js +1 -0
- package/dist/components/CreditCardForm/getThirdStepData.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/getSecondStepData.js +1 -0
- package/dist/components/CreditForm/getSecondStepData.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 +3 -13
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/CreditForm/utils.js +4 -1
- package/dist/components/CreditForm/utils.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/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/PaymentSystemField.js +0 -3
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.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/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +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/getThirdStepData.js +1 -0
- package/lib/components/CreditCardForm/getThirdStepData.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/getSecondStepData.js +1 -0
- package/lib/components/CreditForm/getSecondStepData.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 +3 -13
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/CreditForm/utils.js +4 -1
- package/lib/components/CreditForm/utils.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/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/PaymentSystemField.js +0 -3
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.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/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +214 -174
- 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/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +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/getThirdStepData.js +1 -0
- package/mobile/dist/components/CreditCardForm/getThirdStepData.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/getSecondStepData.js +1 -0
- package/mobile/dist/components/CreditForm/getSecondStepData.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 +3 -13
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.js +4 -1
- package/mobile/dist/components/CreditForm/utils.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/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/PaymentSystemField.js +0 -3
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.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/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +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/getThirdStepData.js +1 -0
- package/mobile/lib/components/CreditCardForm/getThirdStepData.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/getSecondStepData.js +1 -0
- package/mobile/lib/components/CreditForm/getSecondStepData.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 +3 -13
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.js +4 -1
- package/mobile/lib/components/CreditForm/utils.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/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/PaymentSystemField.js +0 -3
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.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/api/RetailAPI/updateUserTask.ts +1 -0
- 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/getThirdStepData.tsx +1 -0
- 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/getSecondStepData.tsx +1 -0
- 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/components/CreditForm/utils.ts +7 -1
- 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/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/PaymentSystemField.tsx +0 -3
- 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/api/RetailAPI/updateUserTask.ts +1 -0
- 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/getThirdStepData.tsx +1 -0
- 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/getSecondStepData.tsx +1 -0
- 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/components/CreditForm/utils.ts +7 -1
- 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/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/PaymentSystemField.tsx +0 -3
- 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
|
@@ -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
|
+
];
|
|
@@ -26,7 +26,9 @@ export const getCreditFormTaskData = ({
|
|
|
26
26
|
task: {
|
|
27
27
|
taskSource: globalThis.location.origin,
|
|
28
28
|
id: taskId,
|
|
29
|
-
|
|
29
|
+
office: {
|
|
30
|
+
id: '650', // TODO: Remove hardcode
|
|
31
|
+
},
|
|
30
32
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
31
33
|
participants: [
|
|
32
34
|
{
|
|
@@ -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
|
};
|
|
@@ -35,6 +35,7 @@ export const getSecondStepData = (formData: FormState): Partial<Participant> =>
|
|
|
35
35
|
generalSeniority: experience5Years,
|
|
36
36
|
jobsNumber,
|
|
37
37
|
lastWorkDuration: lastJobExperience,
|
|
38
|
+
payrollCardRshbFlg: true, // TODO: Remove hardcode
|
|
38
39
|
positionCd: positionOrganization,
|
|
39
40
|
participantContacts: getParticipantContacts({
|
|
40
41
|
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
@@ -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
|
+
|
|
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];
|
|
@@ -37,13 +37,19 @@ export const getParticipantContacts = (fields: Record<string, string | undefined
|
|
|
37
37
|
export const getParticipantAddresses = (fields: Record<string, Address | undefined>): any[] =>
|
|
38
38
|
Object.entries(fields).reduce((acc: any[], [key, value]) => {
|
|
39
39
|
if (key in fieldsNamesToAddressKeysMap) {
|
|
40
|
+
const address = Object.fromEntries(
|
|
41
|
+
Object.entries(value ?? {})
|
|
42
|
+
.filter(([k]) => !k.startsWith('qc')) // exclude dadata fields
|
|
43
|
+
.map(([k, v]) => [k, v ?? '']), // transform undefined to empty string
|
|
44
|
+
);
|
|
45
|
+
|
|
40
46
|
return [
|
|
41
47
|
...acc,
|
|
42
48
|
{
|
|
43
49
|
addressType: {
|
|
44
50
|
key: fieldsNamesToAddressKeysMap[key],
|
|
45
51
|
},
|
|
46
|
-
...
|
|
52
|
+
...address,
|
|
47
53
|
},
|
|
48
54
|
];
|
|
49
55
|
}
|
|
@@ -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
|
/>
|
|
@@ -5,12 +5,14 @@ import { validatorObj } from '../getObjectValidator';
|
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
7
7
|
|
|
8
|
+
const FIELD_NAME = 'dulNumber';
|
|
9
|
+
|
|
8
10
|
export const DulNumberField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
9
11
|
<InputControl
|
|
10
|
-
disabled={input?.filledByEsia && isEsiaAuthorize(field)}
|
|
12
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
11
13
|
label="Номер документа"
|
|
12
14
|
type="number"
|
|
13
|
-
|
|
15
|
+
maxLength={6}
|
|
14
16
|
{...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required)}
|
|
15
17
|
/>
|
|
16
18
|
));
|
|
@@ -5,12 +5,14 @@ import { validatorObj } from '../getObjectValidator';
|
|
|
5
5
|
import { getValidation } from '../getValidation';
|
|
6
6
|
import { isEsiaAuthorize } from '../isEsiaAuthorize';
|
|
7
7
|
|
|
8
|
+
const FIELD_NAME = 'dulSerie';
|
|
9
|
+
|
|
8
10
|
export const DulSerieField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
9
11
|
<InputControl
|
|
10
|
-
disabled={input?.filledByEsia && isEsiaAuthorize(field)}
|
|
12
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
11
13
|
label="Серия документа"
|
|
12
14
|
type="number"
|
|
13
|
-
|
|
15
|
+
maxLength={4}
|
|
14
16
|
{...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required)}
|
|
15
17
|
/>
|
|
16
18
|
));
|
|
@@ -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 = 'dulSubdivisionCode';
|
|
11
|
+
|
|
10
12
|
export const DulSubdivisionCodeField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
11
13
|
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
12
14
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
@@ -14,16 +16,12 @@ export const DulSubdivisionCodeField = JSX<CustomFieldProps>(({ field, input })
|
|
|
14
16
|
|
|
15
17
|
return (
|
|
16
18
|
<InputControl
|
|
17
|
-
disabled={input?.filledByEsia && isEsiaAuthorize(field)}
|
|
19
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME)}
|
|
18
20
|
label="Код подразделения"
|
|
19
21
|
type="number"
|
|
20
|
-
|
|
22
|
+
maxLength={6}
|
|
21
23
|
{...input}
|
|
22
|
-
{...getValidation(
|
|
23
|
-
field('dulSubdivisionCode'),
|
|
24
|
-
validatorObj.dulSubdivisionCode,
|
|
25
|
-
input?.required,
|
|
26
|
-
)}
|
|
24
|
+
{...getValidation(field(FIELD_NAME), validatorObj.dulSubdivisionCode, input?.required)}
|
|
27
25
|
onDaDataChange={onDaDataChange}
|
|
28
26
|
/>
|
|
29
27
|
);
|