@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
|
@@ -8,6 +8,14 @@ export interface FormConsents {
|
|
|
8
8
|
consentToReceiveMaterials?: boolean;
|
|
9
9
|
consentOthersFlg?: boolean;
|
|
10
10
|
}
|
|
11
|
+
export declare type FormStateDeliveryType = {
|
|
12
|
+
regionRetail?: string;
|
|
13
|
+
bankEmployeeCode?: number;
|
|
14
|
+
methodObtain?: 'office' | 'courier';
|
|
15
|
+
deliveryDate?: Date | string;
|
|
16
|
+
addressRetail?: Address;
|
|
17
|
+
addressCourier?: Address;
|
|
18
|
+
};
|
|
11
19
|
export interface Address {
|
|
12
20
|
apartment?: string;
|
|
13
21
|
block?: string;
|
|
@@ -28,14 +36,14 @@ export interface Address {
|
|
|
28
36
|
qcComplete?: string;
|
|
29
37
|
qcHouse?: string;
|
|
30
38
|
}
|
|
31
|
-
export interface FormState extends FormConsents {
|
|
39
|
+
export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
32
40
|
typeForm?: Option | string;
|
|
33
41
|
surname?: string;
|
|
34
42
|
name?: string;
|
|
35
43
|
middleName?: string;
|
|
36
44
|
fullName?: string;
|
|
37
|
-
registrationDate?: Date;
|
|
38
|
-
birthday?: Date;
|
|
45
|
+
registrationDate?: Date | string;
|
|
46
|
+
birthday?: Date | string;
|
|
39
47
|
birthPlace?: string;
|
|
40
48
|
sex?: string;
|
|
41
49
|
phone?: string;
|
|
@@ -51,7 +59,7 @@ export interface FormState extends FormConsents {
|
|
|
51
59
|
positionOrganization?: Option;
|
|
52
60
|
dulSerie?: string;
|
|
53
61
|
dulNumber?: string;
|
|
54
|
-
dulIssueDateField?: string;
|
|
62
|
+
dulIssueDateField?: Date | string;
|
|
55
63
|
dulSubdivisionCode?: string;
|
|
56
64
|
dulIssuedBy?: string;
|
|
57
65
|
email?: string;
|
|
@@ -74,7 +82,7 @@ export interface FormState extends FormConsents {
|
|
|
74
82
|
experience5Years?: number;
|
|
75
83
|
jobsNumber?: number;
|
|
76
84
|
organizationAddress?: Address;
|
|
77
|
-
beginDate?: string;
|
|
85
|
+
beginDate?: Date | string;
|
|
78
86
|
addressFact?: Address;
|
|
79
87
|
addressBranch?: Option;
|
|
80
88
|
bankEmpolee?: string;
|
|
@@ -100,7 +108,7 @@ export interface FormState extends FormConsents {
|
|
|
100
108
|
conscription?: string;
|
|
101
109
|
armyIdFlg?: boolean;
|
|
102
110
|
addressRegistration?: Address;
|
|
103
|
-
participantDateRegistration?: Date;
|
|
111
|
+
participantDateRegistration?: Date | string;
|
|
104
112
|
retirementIncome?: number;
|
|
105
113
|
otherIncome?: number;
|
|
106
114
|
mandatoryIncome?: number;
|
|
@@ -110,20 +118,20 @@ export interface FormState extends FormConsents {
|
|
|
110
118
|
bankruptcyFlg?: boolean;
|
|
111
119
|
shareholderFlg?: boolean;
|
|
112
120
|
legalEntityName?: string;
|
|
113
|
-
bankEmployeeCode?: number;
|
|
114
121
|
partInBusiness?: number;
|
|
115
122
|
addressMatch?: boolean;
|
|
116
123
|
confirmationIncome?: Option;
|
|
117
124
|
currency?: string;
|
|
118
125
|
paymentSystem?: string;
|
|
119
|
-
cardCategory?:
|
|
120
|
-
key: '';
|
|
121
|
-
text: '';
|
|
122
|
-
};
|
|
126
|
+
cardCategory?: Option;
|
|
123
127
|
codeWord?: string;
|
|
124
128
|
esiaAccountTypeCd?: Option;
|
|
125
129
|
moneyValue?: number;
|
|
126
130
|
monthsValue?: number;
|
|
127
131
|
isAnnuity?: boolean;
|
|
132
|
+
isInsurance?: boolean;
|
|
133
|
+
isSalaryClient?: boolean;
|
|
134
|
+
isPensionClient?: boolean;
|
|
135
|
+
isStateEmployee?: boolean;
|
|
128
136
|
}
|
|
129
137
|
export declare const getInitialFormState: (inputs: FieldDef[], savedForm: FormState | null, typeForm?: string) => FormState;
|
|
@@ -4,11 +4,11 @@ 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
|
/** @hidden */
|
|
9
9
|
export interface RenderInputsProps {
|
|
10
10
|
inputs?: FieldDef[];
|
|
11
|
-
field: FormFieldRegisterer<
|
|
11
|
+
field: FormFieldRegisterer<FormState>;
|
|
12
12
|
}
|
|
13
13
|
export declare type CreditCardSectionsProps = SectionsProps & {
|
|
14
14
|
type?: 'courier' | 'office';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
2
|
export interface CreditCardFormStepProps {
|
|
4
3
|
step: number;
|
|
5
4
|
sections: SectionsProps[];
|
|
6
|
-
inputs: FieldDef[];
|
|
7
5
|
onNextStep: () => void;
|
|
8
6
|
onPrevStep: () => void;
|
|
9
7
|
isFormFinished: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
export declare type GetValue = <K extends keyof FormState>(name: K) => FormState[K];
|
|
4
|
+
export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldDef[], step: number) => FieldDef[];
|
|
5
|
+
export declare const checkCondition: ({ condition }: FieldDef, getValue: GetValue) => boolean | undefined;
|
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export declare type FormStateDeliveryType = {
|
|
4
|
-
regionRetail?: string;
|
|
5
|
-
bankEmployeeCode?: string;
|
|
6
|
-
methodObtain?: 'office' | 'courier';
|
|
7
|
-
deliveryDate?: Date;
|
|
8
|
-
addressRetail?: Address;
|
|
9
|
-
addressCourier?: Address;
|
|
10
|
-
};
|
|
11
|
-
export interface FormStateMap {
|
|
12
|
-
0: {
|
|
13
|
-
currency?: string;
|
|
14
|
-
paymentSystem?: string;
|
|
15
|
-
cardCategory?: Option;
|
|
16
|
-
codeWord?: string;
|
|
17
|
-
};
|
|
18
|
-
1: {
|
|
19
|
-
surname?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
middleName?: string;
|
|
22
|
-
sex?: string;
|
|
23
|
-
birthday?: Date;
|
|
24
|
-
birthPlace?: string;
|
|
25
|
-
phone?: string;
|
|
26
|
-
email?: string;
|
|
27
|
-
dulSerie?: number;
|
|
28
|
-
dulNumber?: number;
|
|
29
|
-
dulIssueDateField?: Date;
|
|
30
|
-
dulSubdivisionCode?: string;
|
|
31
|
-
dulIssuedBy?: string;
|
|
32
|
-
addressRegistration?: Address;
|
|
33
|
-
participantDateRegistration?: Date;
|
|
34
|
-
addressFact?: Address;
|
|
35
|
-
housing?: string;
|
|
36
|
-
};
|
|
37
|
-
2: {
|
|
38
|
-
amountWorkers?: Option;
|
|
39
|
-
beginDate?: Date;
|
|
40
|
-
employerActivities?: Option;
|
|
41
|
-
employerOrganization?: Option;
|
|
42
|
-
employment?: Option;
|
|
43
|
-
experience5Years?: string;
|
|
44
|
-
inn?: number;
|
|
45
|
-
jobsNumber?: string;
|
|
46
|
-
lastJobExperience?: string;
|
|
47
|
-
legalForm?: string;
|
|
48
|
-
organization?: Option;
|
|
49
|
-
organizationAddress?: Address;
|
|
50
|
-
organizationName?: string;
|
|
51
|
-
organizationPhone?: string;
|
|
52
|
-
partInBusiness?: number;
|
|
53
|
-
positionOrganization?: Option;
|
|
54
|
-
};
|
|
55
|
-
3: {
|
|
56
|
-
familyStatus?: Option;
|
|
57
|
-
dependents?: number;
|
|
58
|
-
familyMembers?: number;
|
|
59
|
-
confirmationIncome?: Option;
|
|
60
|
-
mandatoryIncome?: number;
|
|
61
|
-
otherPayments?: number;
|
|
62
|
-
snils?: string;
|
|
63
|
-
armyIdFlg?: boolean;
|
|
64
|
-
};
|
|
65
|
-
4: {
|
|
66
|
-
disablePeopleFlg?: boolean;
|
|
67
|
-
bankruptcyFlg?: boolean;
|
|
68
|
-
shareholderFlg?: boolean;
|
|
69
|
-
legalEntityName?: string;
|
|
70
|
-
creditInRshbCd?: Option;
|
|
71
|
-
};
|
|
72
|
-
5: FormStateDeliveryType;
|
|
73
|
-
}
|
|
74
|
-
export declare const formStateMap: FormStateMap;
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const formStateMap: Partial<FormState>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const getInitialFormState:
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const getInitialFormState: (step: number, localStorageData: Record<string, any> | null) => FormState;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
|
-
|
|
4
|
-
export declare const renderInfo: (state?: FormStateDeliveryType, inputs?: FieldDef[]) => JSX.Element[] | null;
|
|
3
|
+
export declare const renderInfo: (inputs?: FieldDef[]) => JSX.Element[] | null;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
export interface RenderInputsProps {
|
|
6
|
+
inputs: FieldDef[];
|
|
7
|
+
field: FormFieldRegisterer<FormState>;
|
|
8
|
+
}
|
|
3
9
|
export declare const renderInputs: ({ field, inputs }: RenderInputsProps) => (JSX.Element | null)[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
3
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { type CreditCardSectionsProps } from './CreditCardFormContent';
|
|
4
|
-
|
|
5
|
-
export declare type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
|
|
5
|
+
export declare type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
6
6
|
export interface StepProps {
|
|
7
7
|
sections?: CreditCardSectionsProps[];
|
|
8
|
-
field: FormFieldRegisterer<
|
|
8
|
+
field: FormFieldRegisterer<FormState>;
|
|
9
9
|
registerSubmit?: (submit: CustomSubmit) => void;
|
|
10
|
-
|
|
10
|
+
step: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const renderStep: ({ sections, field,
|
|
12
|
+
export declare const renderStep: ({ sections, field, step }: StepProps) => JSX.Element[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
declare type CreditCardFormApiProps = {
|
|
4
4
|
step: number;
|
|
5
5
|
inputs: FieldDef[];
|
|
@@ -8,6 +8,6 @@ declare type CreditCardFormApiProps = {
|
|
|
8
8
|
finishForm?: (bool: boolean) => void;
|
|
9
9
|
};
|
|
10
10
|
export declare const useCreditCardFormAPI: ({ step, inputs, onNextStep, saveStep, finishForm, }: CreditCardFormApiProps) => {
|
|
11
|
-
handleSubmit: (formData:
|
|
11
|
+
handleSubmit: (formData: FormState) => Promise<void | "OK" | "Fail">;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -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
|
* @title Форма заявки на потребительский кредит настраиваемая
|
|
9
6
|
*/
|
|
@@ -11,8 +8,3 @@ export declare type CreditFormContent = UniBlockContent & TitleProps & InputSect
|
|
|
11
8
|
/** @title Номер кредитной программы */
|
|
12
9
|
programId?: string;
|
|
13
10
|
};
|
|
14
|
-
/** @hidden */
|
|
15
|
-
export interface RenderInputsProps {
|
|
16
|
-
inputs?: FieldDef[];
|
|
17
|
-
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
18
|
-
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
3
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
3
|
import { type StepProps } from './renderStep';
|
|
5
4
|
export interface CreditFormStepProps {
|
|
6
5
|
step: number;
|
|
7
6
|
sections: SectionsProps[];
|
|
8
|
-
inputs: FieldDef[];
|
|
9
7
|
onNextStep: () => void;
|
|
10
8
|
onPrevStep: () => void;
|
|
11
9
|
renderStep?: (props: StepProps) => JSX.Element | JSX.Element[] | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
export declare type GetValue = <K extends keyof FormState>(name: K) => FormState[K];
|
|
4
|
+
export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldDef[], step: number) => FieldDef[];
|
|
5
|
+
export declare const checkCondition: ({ condition }: FieldDef, getValue: GetValue) => boolean | undefined;
|
|
@@ -1,73 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export interface FormStateMap {
|
|
4
|
-
0: {
|
|
5
|
-
moneyValue?: number;
|
|
6
|
-
monthsValue?: number;
|
|
7
|
-
isAnnuity?: boolean;
|
|
8
|
-
isInsurance?: boolean;
|
|
9
|
-
isSalaryClient?: boolean;
|
|
10
|
-
isPensionClient?: boolean;
|
|
11
|
-
isStateEmployee?: boolean;
|
|
12
|
-
};
|
|
13
|
-
1: {
|
|
14
|
-
surname?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
middleName?: string;
|
|
17
|
-
sex?: string;
|
|
18
|
-
birthday?: Date;
|
|
19
|
-
birthPlace?: string;
|
|
20
|
-
phone?: string;
|
|
21
|
-
email?: string;
|
|
22
|
-
dulSerie?: number;
|
|
23
|
-
dulNumber?: number;
|
|
24
|
-
dulIssueDateField?: Date;
|
|
25
|
-
dulSubdivisionCode?: string;
|
|
26
|
-
dulIssuedBy?: string;
|
|
27
|
-
addressRegistration?: Address;
|
|
28
|
-
participantDateRegistration?: Date;
|
|
29
|
-
addressFact?: Address;
|
|
30
|
-
housing?: string;
|
|
31
|
-
};
|
|
32
|
-
2: {
|
|
33
|
-
amountWorkers?: Option;
|
|
34
|
-
beginDate?: Date;
|
|
35
|
-
employerActivities?: Option;
|
|
36
|
-
employerOrganization?: Option;
|
|
37
|
-
employment?: Option;
|
|
38
|
-
experience5Years?: string;
|
|
39
|
-
inn?: number;
|
|
40
|
-
jobsNumber?: string;
|
|
41
|
-
lastJobExperience?: string;
|
|
42
|
-
legalForm?: string;
|
|
43
|
-
organization?: Option;
|
|
44
|
-
organizationAddress?: Address;
|
|
45
|
-
organizationName?: string;
|
|
46
|
-
organizationPhone?: string;
|
|
47
|
-
partInBusiness?: number;
|
|
48
|
-
positionOrganization?: Option;
|
|
49
|
-
};
|
|
50
|
-
3: {
|
|
51
|
-
familyStatus?: Option;
|
|
52
|
-
dependents?: number;
|
|
53
|
-
familyMembers?: number;
|
|
54
|
-
confirmationIncome?: Option;
|
|
55
|
-
mandatoryIncome?: number;
|
|
56
|
-
otherPayments?: number;
|
|
57
|
-
snils?: string;
|
|
58
|
-
armyIdFlg?: boolean;
|
|
59
|
-
};
|
|
60
|
-
4: {
|
|
61
|
-
disablePeopleFlg?: boolean;
|
|
62
|
-
bankruptcyFlg?: boolean;
|
|
63
|
-
shareholderFlg?: boolean;
|
|
64
|
-
legalEntityName?: string;
|
|
65
|
-
creditInRshbCd?: Option;
|
|
66
|
-
};
|
|
67
|
-
5: {
|
|
68
|
-
regionRetail?: string;
|
|
69
|
-
addressRetail?: string;
|
|
70
|
-
bankEmployeeCode?: string;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
export declare const formStateMap: FormStateMap;
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const formStateMap: Partial<FormState>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const getInitialFormState:
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const getInitialFormState: (step: number, localStorageData: Record<string, any> | null) => FormState;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
export interface RenderInputsProps {
|
|
6
|
+
inputs: FieldDef[];
|
|
7
|
+
field: FormFieldRegisterer<FormState>;
|
|
8
|
+
}
|
|
3
9
|
export declare const renderInputs: ({ field, inputs }: RenderInputsProps) => (JSX.Element | null)[];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
3
3
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
4
|
-
import { type
|
|
5
|
-
export declare type CustomSubmit = FormOperatorProps<
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
export declare type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
6
6
|
export interface StepProps {
|
|
7
7
|
sections?: SectionsProps[];
|
|
8
|
-
field: FormFieldRegisterer<
|
|
8
|
+
field: FormFieldRegisterer<FormState>;
|
|
9
9
|
registerSubmit?: (submit: CustomSubmit) => void;
|
|
10
|
+
step: number;
|
|
10
11
|
}
|
|
11
|
-
export declare const renderStep: ({ sections, field }: StepProps) => JSX.Element[] | undefined;
|
|
12
|
+
export declare const renderStep: ({ sections, field, step }: StepProps) => JSX.Element[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
declare type CreditFormApiProps = {
|
|
4
4
|
step: number;
|
|
5
5
|
inputs: FieldDef[];
|
|
@@ -8,6 +8,6 @@ declare type CreditFormApiProps = {
|
|
|
8
8
|
finishForm?: (bool: boolean) => void;
|
|
9
9
|
};
|
|
10
10
|
export declare const useCreditFormAPI: ({ step, inputs, onNextStep, saveStep, finishForm, }: CreditFormApiProps) => {
|
|
11
|
-
handleSubmit: (formData:
|
|
11
|
+
handleSubmit: (formData: FormState) => Promise<void | "OK" | "Fail">;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
export declare const isEsiaAuthorize: (field: FormFieldRegisterer<any
|
|
2
|
+
export declare const isEsiaAuthorize: (field: FormFieldRegisterer<any>, name: string) => any;
|
|
@@ -8,6 +8,14 @@ export interface FormConsents {
|
|
|
8
8
|
consentToReceiveMaterials?: boolean;
|
|
9
9
|
consentOthersFlg?: boolean;
|
|
10
10
|
}
|
|
11
|
+
export declare type FormStateDeliveryType = {
|
|
12
|
+
regionRetail?: string;
|
|
13
|
+
bankEmployeeCode?: number;
|
|
14
|
+
methodObtain?: 'office' | 'courier';
|
|
15
|
+
deliveryDate?: Date | string;
|
|
16
|
+
addressRetail?: Address;
|
|
17
|
+
addressCourier?: Address;
|
|
18
|
+
};
|
|
11
19
|
export interface Address {
|
|
12
20
|
apartment?: string;
|
|
13
21
|
block?: string;
|
|
@@ -28,14 +36,14 @@ export interface Address {
|
|
|
28
36
|
qcComplete?: string;
|
|
29
37
|
qcHouse?: string;
|
|
30
38
|
}
|
|
31
|
-
export interface FormState extends FormConsents {
|
|
39
|
+
export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
32
40
|
typeForm?: Option | string;
|
|
33
41
|
surname?: string;
|
|
34
42
|
name?: string;
|
|
35
43
|
middleName?: string;
|
|
36
44
|
fullName?: string;
|
|
37
|
-
registrationDate?: Date;
|
|
38
|
-
birthday?: Date;
|
|
45
|
+
registrationDate?: Date | string;
|
|
46
|
+
birthday?: Date | string;
|
|
39
47
|
birthPlace?: string;
|
|
40
48
|
sex?: string;
|
|
41
49
|
phone?: string;
|
|
@@ -51,7 +59,7 @@ export interface FormState extends FormConsents {
|
|
|
51
59
|
positionOrganization?: Option;
|
|
52
60
|
dulSerie?: string;
|
|
53
61
|
dulNumber?: string;
|
|
54
|
-
dulIssueDateField?: string;
|
|
62
|
+
dulIssueDateField?: Date | string;
|
|
55
63
|
dulSubdivisionCode?: string;
|
|
56
64
|
dulIssuedBy?: string;
|
|
57
65
|
email?: string;
|
|
@@ -74,7 +82,7 @@ export interface FormState extends FormConsents {
|
|
|
74
82
|
experience5Years?: number;
|
|
75
83
|
jobsNumber?: number;
|
|
76
84
|
organizationAddress?: Address;
|
|
77
|
-
beginDate?: string;
|
|
85
|
+
beginDate?: Date | string;
|
|
78
86
|
addressFact?: Address;
|
|
79
87
|
addressBranch?: Option;
|
|
80
88
|
bankEmpolee?: string;
|
|
@@ -100,7 +108,7 @@ export interface FormState extends FormConsents {
|
|
|
100
108
|
conscription?: string;
|
|
101
109
|
armyIdFlg?: boolean;
|
|
102
110
|
addressRegistration?: Address;
|
|
103
|
-
participantDateRegistration?: Date;
|
|
111
|
+
participantDateRegistration?: Date | string;
|
|
104
112
|
retirementIncome?: number;
|
|
105
113
|
otherIncome?: number;
|
|
106
114
|
mandatoryIncome?: number;
|
|
@@ -110,20 +118,20 @@ export interface FormState extends FormConsents {
|
|
|
110
118
|
bankruptcyFlg?: boolean;
|
|
111
119
|
shareholderFlg?: boolean;
|
|
112
120
|
legalEntityName?: string;
|
|
113
|
-
bankEmployeeCode?: number;
|
|
114
121
|
partInBusiness?: number;
|
|
115
122
|
addressMatch?: boolean;
|
|
116
123
|
confirmationIncome?: Option;
|
|
117
124
|
currency?: string;
|
|
118
125
|
paymentSystem?: string;
|
|
119
|
-
cardCategory?:
|
|
120
|
-
key: '';
|
|
121
|
-
text: '';
|
|
122
|
-
};
|
|
126
|
+
cardCategory?: Option;
|
|
123
127
|
codeWord?: string;
|
|
124
128
|
esiaAccountTypeCd?: Option;
|
|
125
129
|
moneyValue?: number;
|
|
126
130
|
monthsValue?: number;
|
|
127
131
|
isAnnuity?: boolean;
|
|
132
|
+
isInsurance?: boolean;
|
|
133
|
+
isSalaryClient?: boolean;
|
|
134
|
+
isPensionClient?: boolean;
|
|
135
|
+
isStateEmployee?: boolean;
|
|
128
136
|
}
|
|
129
137
|
export declare const getInitialFormState: (inputs: FieldDef[], savedForm: FormState | null, typeForm?: string) => FormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;AA8InE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,iBAAiB,EAAE,EAAE;IACrB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,gCAAe,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,yBAAa,CAAC,CAAC,CAAC;IAC7B,cAAc,EAAE,2BAAe,CAAC,CAAC,CAAC;IAClC,gBAAgB,EAAE,8BAAkB,CAAC,CAAC,CAAC;IACvC,QAAQ,EAAE,oBAAS,CAAC,CAAC,CAAC;IACtB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,yBAAyB,EAAE,KAAK;IAChC,qBAAqB,EAAE,KAAK;IAC5B,sBAAsB,EAAE,KAAK;IAC7B,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,mBAAmB,EAAE,EAAE;IACvB,2BAA2B,EAAE,SAAS;IACtC,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,EAAE;IACjB,YAAY,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE;CACb,CAAC;AAEK,MAAM,mBAAmB,GAAG,CACjC,MAAkB,EAClB,SAA2B,EAC3B,QAAQ,GAAG,EAAE,EACF,EAAE;IACb,IAAI,SAAS,EAAE;QACb,MAAM,aAAa,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;QACvC,aAAa,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,QAAQ,IAAI,CAAC,CAAC,CAAC;QAEhE,OAAO,aAAa,CAAC;KACtB;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,CAAC,SAAS,KAAK,KAAK,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;KAC7E,CAAC,CACH,CAAC;IAEF,OAAO,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC;AACvE,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
|
@@ -27,8 +27,7 @@ exports.CreditCardForm = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
|
27
27
|
setStep((_) => Math.max(_ - 1, 0));
|
|
28
28
|
}, []);
|
|
29
29
|
const sections = (0, hooks_1.useMemo)(() => creditCardFormStepsData_1.stepsSectionsMap[step], [step]);
|
|
30
|
-
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
31
30
|
const [isFormFinished, setIsFormFinished] = (0, hooks_1.useState)(false);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [isFormFinished ? null : ((0, jsx_runtime_1.jsx)(CreditCardFormProgress_1.CreditCardFormProgress, { stepsTitles: WIZARD_TITLES, step: step, totalSteps: WIZARD_STEPS })), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsx)(CreditCardFormStep_1.CreditCardFormStep, { step: step,
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [isFormFinished ? null : ((0, jsx_runtime_1.jsx)(CreditCardFormProgress_1.CreditCardFormProgress, { stepsTitles: WIZARD_TITLES, step: step, totalSteps: WIZARD_STEPS })), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsx)(CreditCardFormStep_1.CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
|
|
33
32
|
});
|
|
34
33
|
//# sourceMappingURL=CreditCardForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCardForm.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/CreditCardForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA6E;
|
|
1
|
+
{"version":3,"file":"CreditCardForm.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/CreditCardForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA6E;AAC7E,4DAAyD;AAEzD,6CAA0C;AAE1C,qEAAkE;AAClE,6DAA0D;AAC1D,uEAA6D;AAI7D,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,aAAa,GAAG;IACpB,iBAAiB;IACjB,qBAAqB;IACrB,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,yBAAyB;CAC1B,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAEpC,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,uBAAuB;QACvB,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,0CAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,cAAc,EAAC,KAAK,KAAK,IAAI,YACxF,iCAAK,SAAS,EAAC,6BAA6B,aACzC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACvB,uBAAC,+CAAsB,IACrB,WAAW,EAAE,aAAa,EAC1B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,YAAY,GACxB,CACH,EACD,gCAAK,SAAS,EAAC,0CAA0C,YACvD,uBAAC,uCAAkB,IAEjB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,iBAAiB,IANxB,MAAM,CAAC,IAAI,CAAC,CAOjB,GACE,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,11 +4,11 @@ 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
|
/** @hidden */
|
|
9
9
|
export interface RenderInputsProps {
|
|
10
10
|
inputs?: FieldDef[];
|
|
11
|
-
field: FormFieldRegisterer<
|
|
11
|
+
field: FormFieldRegisterer<FormState>;
|
|
12
12
|
}
|
|
13
13
|
export declare type CreditCardSectionsProps = SectionsProps & {
|
|
14
14
|
type?: 'courier' | 'office';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
2
|
export interface CreditCardFormStepProps {
|
|
4
3
|
step: number;
|
|
5
4
|
sections: SectionsProps[];
|
|
6
|
-
inputs: FieldDef[];
|
|
7
5
|
onNextStep: () => void;
|
|
8
6
|
onPrevStep: () => void;
|
|
9
7
|
isFormFinished: boolean;
|
|
@@ -10,10 +10,11 @@ const getInitialFormState_1 = require("./getInitialFormState");
|
|
|
10
10
|
const renderStep_1 = require("./renderStep");
|
|
11
11
|
const StepsNavigationButtons_1 = require("./StepsNavigationButtons");
|
|
12
12
|
const useCreditCardFormAPI_1 = require("./useCreditCardFormAPI");
|
|
13
|
-
exports.CreditCardFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNextStep,
|
|
13
|
+
exports.CreditCardFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm }) => {
|
|
14
14
|
const [localStorageData, saveStep] = (0, useLocalStorage_1.useLocalStorage)('leadForm');
|
|
15
15
|
const initialState = (0, getInitialFormState_1.getInitialFormState)(step, localStorageData);
|
|
16
16
|
const customSubmit = (0, hooks_1.useRef)(undefined);
|
|
17
|
+
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
17
18
|
const registerSubmit = (0, hooks_1.useCallback)((submit) => {
|
|
18
19
|
customSubmit.current = submit;
|
|
19
20
|
}, []);
|
|
@@ -24,7 +25,7 @@ exports.CreditCardFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, o
|
|
|
24
25
|
saveStep,
|
|
25
26
|
finishForm,
|
|
26
27
|
});
|
|
27
|
-
const [
|
|
28
|
+
const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialState, {
|
|
28
29
|
onSubmit: (formData, ev) => {
|
|
29
30
|
handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
|
|
30
31
|
},
|
|
@@ -32,8 +33,8 @@ exports.CreditCardFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, o
|
|
|
32
33
|
return isFormFinished ? ((0, jsx_runtime_1.jsx)(CreditCardFormStatusTracker_1.CreditCardFormStatusTracker, {})) : ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [(0, renderStep_1.renderStep)({
|
|
33
34
|
sections,
|
|
34
35
|
field,
|
|
36
|
+
step,
|
|
35
37
|
registerSubmit,
|
|
36
|
-
userInputParams: userInputParams,
|
|
37
38
|
}), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
|
|
38
39
|
});
|
|
39
40
|
//# sourceMappingURL=CreditCardFormStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCardFormStep.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/CreditCardFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;
|
|
1
|
+
{"version":3,"file":"CreditCardFormStep.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/CreditCardFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;AAI9D,+EAA4E;AAC5E,+DAA4D;AAC5D,6CAA6D;AAC7D,qEAAkE;AAClE,iEAA8D;AAWjD,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,EAAE,EAAE;IACzE,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG,IAAA,iCAAe,EAAsB,UAAU,CAAC,CAAC;IACtF,MAAM,YAAY,GAAG,IAAA,yCAAmB,EAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG,IAAA,cAAM,EAA2B,SAAS,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,CAAC;IAExF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,CAAC,MAAqB,EAAE,EAAE;QAC3D,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,2CAAoB,EAAC;QAC5C,IAAI;QACJ,MAAM;QACN,UAAU;QACV,QAAQ;QACR,UAAU;KACX,CAAC,CAAC;IAEH,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,YAAY,EAAE;QACpD,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE;YACzB,YAAY,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAe,CAAC,CAAC;QAC5E,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,uBAAC,yDAA2B,KAAG,CAChC,CAAC,CAAC,CAAC,CACF,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,IAAA,uBAAU,EAAC;gBACV,QAAQ;gBACR,KAAK;gBACL,IAAI;gBACJ,cAAc;aACf,CAAC,EACF,uBAAC,+CAAsB,IAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,GAAI,IACzD,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
export declare type GetValue = <K extends keyof FormState>(name: K) => FormState[K];
|
|
4
|
+
export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldDef[], step: number) => FieldDef[];
|
|
5
|
+
export declare const checkCondition: ({ condition }: FieldDef, getValue: GetValue) => boolean | undefined;
|