@redneckz/wildless-cms-uni-blocks 0.14.608 → 0.14.616
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/updateUserProfile.d.ts +2 -0
- package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +483 -177
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/bundle/components/CreditForm/CreditForm.d.ts +2 -9
- package/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/bundle/components/CreditForm/renderInputs.d.ts +3 -0
- package/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/bundle/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +2 -1
- package/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/bundle/utils/normalizeWithMask.d.ts +1 -0
- package/dist/api/RetailAPI/updateUserProfile.d.ts +2 -0
- package/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
- package/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
- package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +2 -9
- package/dist/components/CreditForm/CreditForm.js +11 -19
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/dist/components/CreditForm/CreditFormStep.js +33 -0
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -0
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/dist/components/CreditForm/creditFormStepsData.js +31 -26
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/dist/components/CreditForm/getInitialFormState.js +77 -0
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -0
- package/dist/components/CreditForm/renderInputs.d.ts +3 -0
- package/dist/components/CreditForm/renderInputs.js +8 -0
- package/dist/components/CreditForm/renderInputs.js.map +1 -0
- package/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/dist/components/CreditForm/useCreditFormApi.js +28 -0
- package/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +44 -0
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +49 -0
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.js +16 -5
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
- package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
- package/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/dist/ui-kit/DatePicker/getYears.js +3 -3
- package/dist/ui-kit/DatePicker/getYears.js.map +1 -1
- package/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
- package/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
- package/dist/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/dist/ui-kit/DialogManager/openDocument.js +11 -0
- package/dist/ui-kit/DialogManager/openDocument.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
- package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +2 -2
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/SelectField.js +1 -1
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +2 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +6 -5
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/dist/ui-kit/FormField/validators.js +3 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/dist/ui-kit/InfoCard/InfoCard.js +2 -1
- package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/dist/ui-kit/Input/InputNumberControl.js +10 -0
- package/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +2 -1
- package/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/dist/ui-kit/InputNumber/InputNumber.js +12 -0
- package/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
- package/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
- package/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
- package/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/utils/normalizeWithMask.d.ts +1 -0
- package/dist/utils/normalizeWithMask.js +20 -0
- package/dist/utils/normalizeWithMask.js.map +1 -0
- package/lib/api/RetailAPI/updateUserProfile.d.ts +2 -0
- package/lib/api/RetailAPI/updateUserProfile.js +1 -1
- package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +9 -0
- package/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
- package/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
- package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +2 -9
- package/lib/components/CreditForm/CreditForm.js +12 -20
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/lib/components/CreditForm/CreditFormStep.js +31 -0
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -0
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/lib/components/CreditForm/creditFormStepsData.js +31 -26
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/lib/components/CreditForm/getInitialFormState.js +74 -0
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -0
- package/lib/components/CreditForm/renderInputs.d.ts +2 -0
- package/lib/components/CreditForm/renderInputs.js +5 -0
- package/lib/components/CreditForm/renderInputs.js.map +1 -0
- package/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/lib/components/CreditForm/useCreditFormApi.js +25 -0
- package/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.d.ts +6 -0
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +46 -0
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.js +16 -5
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
- package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
- package/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/lib/ui-kit/DatePicker/getYears.js.map +1 -1
- package/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
- package/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
- package/lib/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/lib/ui-kit/DialogManager/openDocument.js +8 -0
- package/lib/ui-kit/DialogManager/openDocument.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
- package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +2 -2
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/SelectField.js +1 -1
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +2 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +7 -6
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/lib/ui-kit/FormField/validators.js +1 -0
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/lib/ui-kit/InfoCard/InfoCard.js +2 -1
- package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/lib/ui-kit/Input/InputNumberControl.js +8 -0
- package/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +2 -1
- package/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/lib/ui-kit/InputNumber/InputNumber.js +10 -0
- package/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
- package/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
- package/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
- package/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/utils/normalizeWithMask.d.ts +1 -0
- package/lib/utils/normalizeWithMask.js +17 -0
- package/lib/utils/normalizeWithMask.js.map +1 -0
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +2 -0
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +462 -177
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +2 -9
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/mobile/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/mobile/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/mobile/bundle/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/mobile/bundle/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/bundle/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/mobile/bundle/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/bundle/utils/normalizeWithMask.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +2 -0
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +25 -0
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +2 -9
- package/mobile/dist/components/CreditForm/CreditForm.js +11 -19
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.js +33 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -12
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +31 -26
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.js +77 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -0
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +3 -0
- package/mobile/dist/components/CreditForm/renderInputs.js +8 -0
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -0
- package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/mobile/dist/components/CreditForm/useCreditFormApi.js +28 -0
- package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +44 -0
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +49 -0
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +16 -5
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +66 -0
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
- package/mobile/dist/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/getYears.js +3 -3
- package/mobile/dist/ui-kit/DatePicker/getYears.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js +29 -3
- package/mobile/dist/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/mobile/dist/ui-kit/DialogManager/openDocument.js +11 -0
- package/mobile/dist/ui-kit/DialogManager/openDocument.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.js +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +2 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -5
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/validators.js +3 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js +2 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/InputNumberControl.js +10 -0
- package/mobile/dist/ui-kit/Input/InputNumberControl.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +2 -1
- package/mobile/dist/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/mobile/dist/ui-kit/InputNumber/InputNumber.js +12 -0
- package/mobile/dist/ui-kit/InputNumber/InputNumber.js.map +1 -0
- package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js +2 -2
- package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js +3 -2
- package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/utils/normalizeWithMask.d.ts +1 -0
- package/mobile/dist/utils/normalizeWithMask.js +20 -0
- package/mobile/dist/utils/normalizeWithMask.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +2 -0
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +2 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js +39 -34
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +8 -7
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +5 -0
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +23 -0
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +1 -0
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +18 -0
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +2 -0
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +2 -9
- package/mobile/lib/components/CreditForm/CreditForm.js +12 -20
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +9 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +17 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.js +31 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -12
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +40 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +31 -26
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +62 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.js +74 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -0
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +3 -0
- package/mobile/lib/components/CreditForm/renderInputs.js +5 -0
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -0
- package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +11 -0
- package/mobile/lib/components/CreditForm/useCreditFormApi.js +25 -0
- package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -7
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +46 -0
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +16 -5
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +10 -0
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +64 -0
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -0
- package/mobile/lib/ui-kit/DatePicker/getYears.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/getYears.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.d.ts +3 -1
- package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js +29 -3
- package/mobile/lib/ui-kit/DatePicker/useDatePickerManager.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/openDocument.d.ts +2 -0
- package/mobile/lib/ui-kit/DialogManager/openDocument.js +8 -0
- package/mobile/lib/ui-kit/DialogManager/openDocument.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.js +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +2 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +7 -6
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/validators.js +1 -0
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.d.ts +3 -2
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js +2 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputNumberControl.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/InputNumberControl.js +8 -0
- package/mobile/lib/ui-kit/Input/InputNumberControl.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +2 -1
- package/mobile/lib/ui-kit/InputNumber/InputNumber.d.ts +2 -0
- package/mobile/lib/ui-kit/InputNumber/InputNumber.js +10 -0
- package/mobile/lib/ui-kit/InputNumber/InputNumber.js.map +1 -0
- package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js +2 -2
- package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js +3 -2
- package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +2 -3
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +2 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/utils/normalizeWithMask.d.ts +1 -0
- package/mobile/lib/utils/normalizeWithMask.js +17 -0
- package/mobile/lib/utils/normalizeWithMask.js.map +1 -0
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +3 -1
- package/mobile/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +12 -7
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
- package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
- package/mobile/src/components/CreditForm/CreditForm.tsx +36 -56
- package/mobile/src/components/CreditForm/CreditFormContent.ts +13 -1
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +65 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +31 -26
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +145 -0
- package/mobile/src/components/CreditForm/renderInputs.tsx +6 -0
- package/mobile/src/components/CreditForm/useCreditFormApi.tsx +36 -0
- package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -16
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +73 -0
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +58 -0
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
- package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
- package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/mobile/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
- package/mobile/src/ui-kit/DialogManager/openDocument.tsx +13 -0
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
- package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/mobile/src/ui-kit/FormField/SelectField.tsx +3 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +2 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
- package/mobile/src/ui-kit/FormField/validators.ts +5 -0
- package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
- package/mobile/src/ui-kit/Input/InputNumberControl.tsx +18 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +2 -1
- package/mobile/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
- package/mobile/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
- package/mobile/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +4 -4
- package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/mobile/src/utils/normalizeWithMask.ts +23 -0
- package/package.json +2 -2
- package/src/api/RetailAPI/updateUserProfile.ts +3 -1
- package/src/api/RetailAPI/utils/getUpdateUserTask.ts +49 -35
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +4 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +12 -7
- package/src/components/ApplicationStatus/ApplicationStatus.example.json +6 -0
- package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +129 -0
- package/src/components/ApplicationStatus/ApplicationStatus.tsx +108 -0
- package/src/components/ApplicationStatus/ApplicationStatus.ui.json +1 -0
- package/src/components/ApplicationStatus/ApplicationStatusContent.ts +19 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditForm/CreditForm.fixture.tsx +27 -1
- package/src/components/CreditForm/CreditForm.tsx +36 -56
- package/src/components/CreditForm/CreditFormContent.ts +13 -1
- package/src/components/CreditForm/CreditFormStep.tsx +65 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +19 -38
- package/src/components/CreditForm/creditFormStepsData.tsx +31 -26
- package/src/components/CreditForm/getInitialFormState.tsx +145 -0
- package/src/components/CreditForm/renderInputs.tsx +6 -0
- package/src/components/CreditForm/useCreditFormApi.tsx +36 -0
- package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -16
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.tsx +7 -0
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +73 -0
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +58 -0
- package/src/ui-kit/DatePicker/DatePicker.tsx +34 -13
- package/src/ui-kit/DatePicker/DatePickerInput.tsx +100 -0
- package/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/src/ui-kit/DatePicker/useDatePickerManager.ts +51 -3
- package/src/ui-kit/DialogManager/openDocument.tsx +13 -0
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/InnField.tsx +3 -3
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +5 -5
- package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +15 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/src/ui-kit/FormField/SelectField.tsx +3 -1
- package/src/ui-kit/FormField/getField.tsx +2 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +7 -7
- package/src/ui-kit/FormField/validators.ts +5 -0
- package/src/ui-kit/InfoCard/InfoCard.tsx +9 -3
- package/src/ui-kit/Input/InputNumberControl.tsx +18 -0
- package/src/ui-kit/Input/InputProps.ts +2 -1
- package/src/ui-kit/InputNumber/InputNumber.tsx +24 -0
- package/src/ui-kit/SnilsInput/SnilsInput.tsx +2 -2
- package/src/ui-kit/TimerCircle/TimerCircle.tsx +9 -4
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +4 -4
- package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/src/utils/normalizeWithMask.ts +23 -0
- package/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
- package/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
- package/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
- package/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
- package/mobile/bundle/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js +0 -23
- package/mobile/dist/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
- package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.d.ts +0 -1
- package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js +0 -20
- package/mobile/lib/ui-kit/SnilsInput/normalizeSnils.js.map +0 -1
- package/mobile/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
- package/src/ui-kit/SnilsInput/normalizeSnils.ts +0 -29
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useForm, type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
+
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
4
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
5
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
6
|
+
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
9
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
10
|
+
import { getInitialFormState, type FormStateMap } from './getInitialFormState';
|
|
11
|
+
import { renderInputs } from './renderInputs';
|
|
12
|
+
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
13
|
+
import { useCreditFormApi } from './useCreditFormApi';
|
|
14
|
+
|
|
15
|
+
export interface StepProps {
|
|
16
|
+
sections: SectionsProps[];
|
|
17
|
+
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CreditFormStepProps {
|
|
21
|
+
totalSteps: number;
|
|
22
|
+
step: number;
|
|
23
|
+
sections: SectionsProps[];
|
|
24
|
+
inputs: FieldDef[];
|
|
25
|
+
onNextStep: () => void;
|
|
26
|
+
onPrevStep: () => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const CreditFormStep = JSX<CreditFormStepProps>(
|
|
30
|
+
({ totalSteps, step, sections, onPrevStep, onNextStep, inputs }) => {
|
|
31
|
+
const [localStorageData, saveStep] = useLocalStorage<Record<string, any>>('leadForm');
|
|
32
|
+
const initialState = getInitialFormState(step as keyof FormStateMap, localStorageData);
|
|
33
|
+
|
|
34
|
+
const { handleSubmit } = useCreditFormApi({
|
|
35
|
+
inputs,
|
|
36
|
+
onNextStep: onNextStep,
|
|
37
|
+
saveStep,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const [, { field, onSubmit }] = useForm(initialState, { onSubmit: handleSubmit });
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<form onSubmit={onSubmit} className="space-y-m">
|
|
44
|
+
{renderStep({ sections, field })}
|
|
45
|
+
<StepsNavigationButtons step={step} totalSteps={totalSteps} onPrevStep={onPrevStep} />
|
|
46
|
+
</form>
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const renderStep = ({ sections, field }: StepProps) => {
|
|
52
|
+
return sections.map((_, i) => (
|
|
53
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}>
|
|
54
|
+
{renderInfo(_?.inputs)}
|
|
55
|
+
{renderTitle(_?.title)}
|
|
56
|
+
{renderInputs({ field, inputs: _?.inputs })}
|
|
57
|
+
</div>
|
|
58
|
+
));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const renderInfo = (inputs: FieldDef[] = []) => {
|
|
62
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
63
|
+
|
|
64
|
+
return infoInputs.length ? infoInputs.map(({ text }) => <InfoCard __html={text} />) : null;
|
|
65
|
+
};
|
|
@@ -4,44 +4,25 @@ import { style } from '../../utils/style';
|
|
|
4
4
|
|
|
5
5
|
export interface StepsNavigationButtonsProps {
|
|
6
6
|
step: number;
|
|
7
|
-
setStep: (step: number) => void;
|
|
8
7
|
totalSteps: number;
|
|
8
|
+
onPrevStep?: () => void;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
12
|
-
(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
className={style('w-full @xl:w-auto')}
|
|
30
|
-
type="button"
|
|
31
|
-
version="secondary"
|
|
32
|
-
disabled={step === 1}
|
|
33
|
-
>
|
|
34
|
-
Назад
|
|
35
|
-
</Button>
|
|
36
|
-
<Button
|
|
37
|
-
onClick={handleNext}
|
|
38
|
-
className={style('w-full @xl:w-auto')}
|
|
39
|
-
type="button"
|
|
40
|
-
disabled={step === totalSteps}
|
|
41
|
-
>
|
|
42
|
-
Далее
|
|
43
|
-
</Button>
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
},
|
|
47
|
-
);
|
|
11
|
+
export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(({ step, onPrevStep }) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className={'flex justify-between'}>
|
|
14
|
+
<Button
|
|
15
|
+
onClick={onPrevStep}
|
|
16
|
+
className={style('w-full @xl:w-auto')}
|
|
17
|
+
type="button"
|
|
18
|
+
version="secondary"
|
|
19
|
+
disabled={step === 1}
|
|
20
|
+
>
|
|
21
|
+
Назад
|
|
22
|
+
</Button>
|
|
23
|
+
<Button className={style('w-full @xl:w-auto')} type="submit">
|
|
24
|
+
Далее
|
|
25
|
+
</Button>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
|
|
4
|
+
//TODO: DO List
|
|
4
5
|
export const stepsSectionsMap = {
|
|
5
6
|
1: [
|
|
6
7
|
{
|
|
@@ -33,24 +34,27 @@ export const stepsSectionsMap = {
|
|
|
33
34
|
{
|
|
34
35
|
fieldType: 'common',
|
|
35
36
|
name: 'education',
|
|
36
|
-
required: true,
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
title: 'Адрес регистрации по месту жительства',
|
|
42
|
+
columns: 1,
|
|
43
|
+
inputs: [],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [{ fieldType: 'common', name: 'participantAddress', required: true, dadata: true }],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
42
49
|
columns: 2,
|
|
43
|
-
inputs: [
|
|
44
|
-
{ fieldType: 'common', name: 'participantAddress', required: true },
|
|
45
|
-
{ fieldType: 'common', name: 'participantAddress', required: true, dadata: true },
|
|
46
|
-
],
|
|
50
|
+
inputs: [{ fieldType: 'common', name: 'participantDateRegistration', required: true }],
|
|
47
51
|
},
|
|
48
52
|
{
|
|
49
53
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
50
54
|
columns: 2,
|
|
51
55
|
inputs: [
|
|
52
56
|
{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true },
|
|
53
|
-
{ fieldType: 'common', name: 'housing'
|
|
57
|
+
{ fieldType: 'common', name: 'housing' },
|
|
54
58
|
],
|
|
55
59
|
},
|
|
56
60
|
],
|
|
@@ -69,7 +73,7 @@ export const stepsSectionsMap = {
|
|
|
69
73
|
},
|
|
70
74
|
{
|
|
71
75
|
inputs: [
|
|
72
|
-
{ fieldType: 'common', name: 'employment'
|
|
76
|
+
{ fieldType: 'common', name: 'employment' },
|
|
73
77
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
74
78
|
],
|
|
75
79
|
},
|
|
@@ -82,15 +86,15 @@ export const stepsSectionsMap = {
|
|
|
82
86
|
},
|
|
83
87
|
{
|
|
84
88
|
inputs: [
|
|
85
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
86
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
89
|
+
{ fieldType: 'common', name: 'organization', required: false },
|
|
90
|
+
{ fieldType: 'common', name: 'amountWorkers', required: false },
|
|
87
91
|
],
|
|
88
92
|
},
|
|
89
93
|
{
|
|
90
94
|
columns: 2,
|
|
91
95
|
inputs: [
|
|
92
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
93
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
96
|
+
{ fieldType: 'common', name: 'employerActivities', required: false },
|
|
97
|
+
{ fieldType: 'common', name: 'employerOrganization', required: false },
|
|
94
98
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
95
99
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
96
100
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -101,7 +105,13 @@ export const stepsSectionsMap = {
|
|
|
101
105
|
inputs: [
|
|
102
106
|
{ fieldType: 'common', name: 'phone', label: 'Телефон работодателя', required: true },
|
|
103
107
|
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
104
|
-
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
columns: 2,
|
|
112
|
+
inputs: [
|
|
113
|
+
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
114
|
+
{ fieldType: 'common', name: 'partInBusiness', required: true },
|
|
105
115
|
],
|
|
106
116
|
},
|
|
107
117
|
{
|
|
@@ -118,20 +128,15 @@ export const stepsSectionsMap = {
|
|
|
118
128
|
},
|
|
119
129
|
{
|
|
120
130
|
columns: 1,
|
|
121
|
-
inputs: [{ fieldType: 'common', name: 'familyStatus' }],
|
|
131
|
+
inputs: [{ fieldType: 'common', name: 'familyStatus', required: true }],
|
|
122
132
|
},
|
|
123
133
|
{
|
|
124
134
|
columns: 1,
|
|
125
|
-
inputs: [{ fieldType: 'common', name: 'dependents' }],
|
|
135
|
+
inputs: [{ fieldType: 'common', name: 'dependents', required: true }],
|
|
126
136
|
},
|
|
127
137
|
{
|
|
128
|
-
columns:
|
|
129
|
-
inputs: [
|
|
130
|
-
{ fieldType: 'common', name: 'familyMembers' },
|
|
131
|
-
{ fieldType: 'common', name: 'familyMembers' },
|
|
132
|
-
{ fieldType: 'common', name: 'retirementIncome' },
|
|
133
|
-
{ fieldType: 'common', name: 'otherIncome' },
|
|
134
|
-
],
|
|
138
|
+
columns: 1,
|
|
139
|
+
inputs: [{ fieldType: 'common', name: 'familyMembers', required: true }],
|
|
135
140
|
},
|
|
136
141
|
{
|
|
137
142
|
title: 'Совокупный доход',
|
|
@@ -146,15 +151,15 @@ export const stepsSectionsMap = {
|
|
|
146
151
|
},
|
|
147
152
|
{
|
|
148
153
|
columns: 1,
|
|
149
|
-
inputs: [{ fieldType: 'common', name: 'mandatoryIncome' }],
|
|
154
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryIncome', required: true }],
|
|
150
155
|
},
|
|
151
156
|
{
|
|
152
157
|
columns: 1,
|
|
153
|
-
inputs: [{ fieldType: 'common', name: 'otherPayments' }],
|
|
158
|
+
inputs: [{ fieldType: 'common', name: 'otherPayments', required: true }],
|
|
154
159
|
},
|
|
155
160
|
{
|
|
156
161
|
columns: 1,
|
|
157
|
-
inputs: [{ fieldType: 'common', name: 'snils' }],
|
|
162
|
+
inputs: [{ fieldType: 'common', name: 'snils', required: true }],
|
|
158
163
|
},
|
|
159
164
|
{
|
|
160
165
|
columns: 2,
|
|
@@ -190,10 +195,10 @@ export const stepsSectionsMap = {
|
|
|
190
195
|
inputs: [],
|
|
191
196
|
},
|
|
192
197
|
{
|
|
193
|
-
inputs: [{ fieldType: 'common', name: 'region' }],
|
|
198
|
+
inputs: [{ fieldType: 'common', name: 'region', required: true }],
|
|
194
199
|
},
|
|
195
200
|
{
|
|
196
|
-
inputs: [{ fieldType: 'common', name: 'addressBranch' }],
|
|
201
|
+
inputs: [{ fieldType: 'common', name: 'addressBranch', required: true }],
|
|
197
202
|
},
|
|
198
203
|
{
|
|
199
204
|
title: 'Код представителя Банка',
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
|
|
3
|
+
export interface FormStateMap {
|
|
4
|
+
1: {
|
|
5
|
+
surname?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
middleName?: string;
|
|
8
|
+
sex?: string;
|
|
9
|
+
birthday?: Date;
|
|
10
|
+
birthPlace?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
dulSerie?: number;
|
|
14
|
+
dulNumber?: number;
|
|
15
|
+
dulIssueDateField?: Date;
|
|
16
|
+
dulSubdivisionCode?: string;
|
|
17
|
+
dulIssuedBy?: string;
|
|
18
|
+
participantAddress?: string;
|
|
19
|
+
participantDateRegistration?: Date;
|
|
20
|
+
fullAddress?: string;
|
|
21
|
+
housing?: string;
|
|
22
|
+
};
|
|
23
|
+
2: {
|
|
24
|
+
employment?: Option;
|
|
25
|
+
organizationName?: string;
|
|
26
|
+
inn?: number;
|
|
27
|
+
legalForm?: string;
|
|
28
|
+
organization?: Option;
|
|
29
|
+
amountWorkers?: Option;
|
|
30
|
+
employerActivities?: Option;
|
|
31
|
+
employerOrganization?: Option;
|
|
32
|
+
lastJobExperience?: string;
|
|
33
|
+
experience5Years?: string;
|
|
34
|
+
jobsNumber?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
beginDate?: Date;
|
|
37
|
+
positionOrganization?: Option;
|
|
38
|
+
partInBusiness?: number;
|
|
39
|
+
fullAddress?: string;
|
|
40
|
+
};
|
|
41
|
+
3: {
|
|
42
|
+
familyStatus?: Option;
|
|
43
|
+
dependents?: number;
|
|
44
|
+
familyMembers?: number;
|
|
45
|
+
mandatoryIncome?: number;
|
|
46
|
+
otherPayments?: number;
|
|
47
|
+
snils?: string;
|
|
48
|
+
armyIdFlg?: boolean;
|
|
49
|
+
};
|
|
50
|
+
4: {
|
|
51
|
+
disablePeopleFlg?: string;
|
|
52
|
+
bankruptcyFlg?: string;
|
|
53
|
+
shareholderFlg?: string;
|
|
54
|
+
legalEntityName?: string;
|
|
55
|
+
creditInRshbCd?: string;
|
|
56
|
+
};
|
|
57
|
+
5: {
|
|
58
|
+
region?: string;
|
|
59
|
+
addressBranch?: string;
|
|
60
|
+
bankEmployeeCode?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const formStateMap: FormStateMap = {
|
|
65
|
+
1: {
|
|
66
|
+
surname: '',
|
|
67
|
+
name: '',
|
|
68
|
+
middleName: '',
|
|
69
|
+
sex: '',
|
|
70
|
+
birthday: undefined,
|
|
71
|
+
birthPlace: '',
|
|
72
|
+
phone: '',
|
|
73
|
+
email: '',
|
|
74
|
+
dulSerie: undefined,
|
|
75
|
+
dulNumber: undefined,
|
|
76
|
+
dulIssueDateField: undefined,
|
|
77
|
+
dulSubdivisionCode: '',
|
|
78
|
+
dulIssuedBy: '',
|
|
79
|
+
participantAddress: '',
|
|
80
|
+
participantDateRegistration: undefined,
|
|
81
|
+
fullAddress: '',
|
|
82
|
+
housing: '',
|
|
83
|
+
},
|
|
84
|
+
2: {
|
|
85
|
+
employment: { key: '', text: '' },
|
|
86
|
+
organizationName: '',
|
|
87
|
+
inn: undefined,
|
|
88
|
+
legalForm: '',
|
|
89
|
+
organization: { key: '', text: '' },
|
|
90
|
+
amountWorkers: { key: '', text: '' },
|
|
91
|
+
employerActivities: { key: '', text: '' },
|
|
92
|
+
employerOrganization: { key: '', text: '' },
|
|
93
|
+
lastJobExperience: '',
|
|
94
|
+
experience5Years: '',
|
|
95
|
+
jobsNumber: '',
|
|
96
|
+
phone: '',
|
|
97
|
+
beginDate: undefined,
|
|
98
|
+
positionOrganization: { key: '', text: '' },
|
|
99
|
+
partInBusiness: undefined,
|
|
100
|
+
fullAddress: '',
|
|
101
|
+
},
|
|
102
|
+
3: {
|
|
103
|
+
familyStatus: { key: '', text: '' },
|
|
104
|
+
dependents: undefined,
|
|
105
|
+
familyMembers: undefined,
|
|
106
|
+
mandatoryIncome: undefined,
|
|
107
|
+
otherPayments: undefined,
|
|
108
|
+
snils: '',
|
|
109
|
+
armyIdFlg: false,
|
|
110
|
+
},
|
|
111
|
+
4: {
|
|
112
|
+
disablePeopleFlg: '',
|
|
113
|
+
bankruptcyFlg: '',
|
|
114
|
+
shareholderFlg: '',
|
|
115
|
+
legalEntityName: '',
|
|
116
|
+
creditInRshbCd: '',
|
|
117
|
+
},
|
|
118
|
+
5: {
|
|
119
|
+
region: '',
|
|
120
|
+
addressBranch: '',
|
|
121
|
+
bankEmployeeCode: '',
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const getInitialFormState = <Step extends keyof FormStateMap>(
|
|
126
|
+
step: Step,
|
|
127
|
+
localStorageData: Record<string, any> | null,
|
|
128
|
+
): FormStateMap[Step] => {
|
|
129
|
+
if (localStorageData) {
|
|
130
|
+
// TODO: Fill in for other fields with type Date
|
|
131
|
+
// TODO: Take it out to the helper
|
|
132
|
+
localStorageData.birthday = localStorageData.dulIssueDateField = new Date(
|
|
133
|
+
(localStorageData?.birthday as string) || Date.now(),
|
|
134
|
+
);
|
|
135
|
+
localStorageData.participantDateRegistration = new Date(
|
|
136
|
+
(localStorageData?.participantDateRegistration as string) || Date.now(),
|
|
137
|
+
);
|
|
138
|
+
localStorageData.beginDate = new Date((localStorageData?.beginDate as string) || Date.now());
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
...formStateMap[step],
|
|
143
|
+
...localStorageData,
|
|
144
|
+
};
|
|
145
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
|
|
3
|
+
import { objectValidator } from '../../validation/objectValidator';
|
|
4
|
+
import { isValidationSuccess } from '../../validation/validator';
|
|
5
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
6
|
+
import { type FormStateMap } from './getInitialFormState';
|
|
7
|
+
|
|
8
|
+
type CreditFormApiProps = {
|
|
9
|
+
inputs: FieldDef[];
|
|
10
|
+
onNextStep: () => void;
|
|
11
|
+
saveStep: (value: Record<string, any>) => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const useCreditFormApi = ({ inputs, onNextStep, saveStep }: CreditFormApiProps) => {
|
|
15
|
+
const handleSubmit = useCallback(async (formData: FormStateMap[keyof FormStateMap]) => {
|
|
16
|
+
const feedbackValidator = objectValidator(getObjectValidator(inputs));
|
|
17
|
+
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
18
|
+
return 'Fail';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
try {
|
|
22
|
+
// TODO: add updateUserTask here
|
|
23
|
+
} catch (ex) {
|
|
24
|
+
return 'Fail';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
saveStep(formData);
|
|
28
|
+
onNextStep();
|
|
29
|
+
|
|
30
|
+
return 'OK';
|
|
31
|
+
}, []);
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
handleSubmit,
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import { Dialog } from '../DialogManager/Dialog';
|
|
2
|
+
import { openDocument } from '../DialogManager/openDocument';
|
|
4
3
|
import { useDialogManager } from '../DialogManager/useDialogManager';
|
|
5
4
|
import { renderErrorText } from '../Input/renderErrorText';
|
|
6
5
|
import { LinkButton } from '../LinkButton/LinkButton';
|
|
7
6
|
import { Text } from '../Text/Text';
|
|
8
7
|
import { Checkbox } from './Checkbox';
|
|
9
8
|
import { type CheckboxProps } from './CheckboxProps';
|
|
10
|
-
import { getDocument } from './getDocument';
|
|
11
9
|
|
|
12
10
|
const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
|
|
13
11
|
|
|
@@ -24,10 +22,7 @@ export const CheckboxWithDoc = JSX<CheckboxWithDocProps>(
|
|
|
24
22
|
<div className="flex flex-wrap gap-x-m">
|
|
25
23
|
<Checkbox {...props} />
|
|
26
24
|
{docId ? (
|
|
27
|
-
<LinkButton
|
|
28
|
-
className="text-primary-main"
|
|
29
|
-
onClick={() => handleOpenDocument(docId, open)}
|
|
30
|
-
>
|
|
25
|
+
<LinkButton className="text-primary-main" onClick={() => openDocument(docId, open)}>
|
|
31
26
|
<Text>{OPEN_DOC_BUTTON_TEXT}</Text>
|
|
32
27
|
</LinkButton>
|
|
33
28
|
) : null}
|
|
@@ -37,12 +32,3 @@ export const CheckboxWithDoc = JSX<CheckboxWithDocProps>(
|
|
|
37
32
|
);
|
|
38
33
|
},
|
|
39
34
|
);
|
|
40
|
-
|
|
41
|
-
const handleOpenDocument = async (id: number, open: (dialog: VNode) => void) => {
|
|
42
|
-
const document = await getDocument(id);
|
|
43
|
-
open(
|
|
44
|
-
<Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0">
|
|
45
|
-
<iframe src={`${document}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
|
|
46
|
-
</Dialog>,
|
|
47
|
-
);
|
|
48
|
-
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { noop } from '../../utils/noop';
|
|
4
|
+
import { Button } from '../Button/Button';
|
|
5
|
+
import { Dialog } from '../DialogManager/Dialog';
|
|
6
|
+
import { openDocument } from '../DialogManager/openDocument';
|
|
7
|
+
import { useDialogManager } from '../DialogManager/useDialogManager';
|
|
8
|
+
import { Heading } from '../Heading/Heading';
|
|
9
|
+
import { Paragraph } from '../Paragraph/Paragraph';
|
|
10
|
+
import { RadioButtonGroup } from '../RadioButtonGroup/RadioButtonGroup';
|
|
11
|
+
export interface ConsentBkiDialogProps {
|
|
12
|
+
handleSubmit?: (confirmStatus: string) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const defaultConsentText = {
|
|
17
|
+
title: 'Подпишите согласие на запрос в БКИ',
|
|
18
|
+
description: 'Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const refuseConsentText = {
|
|
22
|
+
title: 'Вы уверены, что хотите отказаться от запроса в БКИ',
|
|
23
|
+
description: 'Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const ConsentBkiDialog = JSX<ConsentBkiDialogProps>(function ({
|
|
27
|
+
handleSubmit = noop,
|
|
28
|
+
onClose = noop,
|
|
29
|
+
}) {
|
|
30
|
+
const [confirmStatus, setConfirmStatus] = useState('');
|
|
31
|
+
const [showRefuceContent, setShowRefuceContent] = useState(false);
|
|
32
|
+
const { open, close } = useDialogManager();
|
|
33
|
+
const handleClose = useCallback(() => {
|
|
34
|
+
close();
|
|
35
|
+
handleSubmit(confirmStatus);
|
|
36
|
+
}, [confirmStatus]);
|
|
37
|
+
|
|
38
|
+
const handleConfirmChange = useCallback((value: string) => {
|
|
39
|
+
setConfirmStatus(value);
|
|
40
|
+
if (value === 'REFUSE') {
|
|
41
|
+
setShowRefuceContent(true);
|
|
42
|
+
}
|
|
43
|
+
}, []);
|
|
44
|
+
const consentText = showRefuceContent ? refuseConsentText : defaultConsentText;
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<Dialog className="my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg" onClose={onClose}>
|
|
48
|
+
<div className="flex flex-col gap-lg items-center">
|
|
49
|
+
<div role="button" onClick={() => openDocument(CONSENT_BKI_ID, open)}>
|
|
50
|
+
<Heading className="text-center text-balance" title={consentText.title} />
|
|
51
|
+
</div>
|
|
52
|
+
<Paragraph align="text-center">{consentText.description}</Paragraph>
|
|
53
|
+
<RadioButtonGroup
|
|
54
|
+
className="whitespace-normal"
|
|
55
|
+
orientation="horizontal"
|
|
56
|
+
items={ITEMS}
|
|
57
|
+
value={confirmStatus}
|
|
58
|
+
onChange={handleConfirmChange}
|
|
59
|
+
/>
|
|
60
|
+
<Button disabled={!confirmStatus} type="button" onClick={handleClose}>
|
|
61
|
+
Продолжить
|
|
62
|
+
</Button>
|
|
63
|
+
</div>
|
|
64
|
+
</Dialog>
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const ITEMS = [
|
|
69
|
+
{ id: 'SIGNED', text: 'Подписать' },
|
|
70
|
+
{ id: 'REFUSE', text: 'Отказаться' },
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
const CONSENT_BKI_ID = 2;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { updateUserProfile } from '../../api/RetailAPI/updateUserProfile';
|
|
2
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
3
|
+
import { useDialogManager } from '../DialogManager/useDialogManager';
|
|
4
|
+
import { useVerifyPhoneDialog } from '../VerifyPhoneDialog/useVerifyPhoneDialog';
|
|
5
|
+
import { ConsentBkiDialog } from './ConsentBkiDialog';
|
|
6
|
+
|
|
7
|
+
export const useConsentBkiDialog = () => {
|
|
8
|
+
const { open, closeAll } = useDialogManager();
|
|
9
|
+
const verifyPhoneDialog = useVerifyPhoneDialog();
|
|
10
|
+
|
|
11
|
+
const redirectToCreditForm = () => {
|
|
12
|
+
globalThis.location.href = '/credit-lead';
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const handleSuccessVerify = (profileId?: number) => async (smsCode?: string) => {
|
|
16
|
+
if (profileId) {
|
|
17
|
+
await updateUserProfile({
|
|
18
|
+
profile: {
|
|
19
|
+
id: profileId,
|
|
20
|
+
consentBkiFlg: true,
|
|
21
|
+
smsConsentBki: smsCode,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
redirectToCreditForm();
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const handleSubmitBkiConstent =
|
|
30
|
+
(phone?: string, profileId?: number) => async (confirmStatus: string) => {
|
|
31
|
+
await closeAll();
|
|
32
|
+
|
|
33
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
34
|
+
verifyPhoneDialog.open(handleSuccessVerify(profileId), verifyPhoneContent(phone));
|
|
35
|
+
} else {
|
|
36
|
+
redirectToCreditForm();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
open: (phone?: string, profileId?: number) =>
|
|
42
|
+
open(
|
|
43
|
+
<ConsentBkiDialog
|
|
44
|
+
handleSubmit={handleSubmitBkiConstent(phone, profileId)}
|
|
45
|
+
onClose={redirectToCreditForm}
|
|
46
|
+
/>,
|
|
47
|
+
),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const verifyPhoneContent = (phone: string) => ({
|
|
52
|
+
title: 'Подтвердите номер телефона',
|
|
53
|
+
description: `Мы отправили код на ${phone}`,
|
|
54
|
+
phoneNumber: formatPhone(phone),
|
|
55
|
+
textButton: 'Отправить',
|
|
56
|
+
__html: `<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>
|
|
57
|
+
<ul><li>согласие на запрос информации в БКИ</li></ul>`,
|
|
58
|
+
});
|