@redneckz/wildless-cms-uni-blocks 0.14.989 → 0.14.991
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/LeadServiceAPI.d.ts +10 -3
- package/bundle/api/getSubmitBody.d.ts +201 -97
- package/bundle/api/sendFile.d.ts +16 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +566 -51
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/bundle/components/ApplicationForm/constants.d.ts +7 -0
- package/bundle/components/ApplicationForm/handlers.d.ts +3 -2
- package/bundle/hooks/useDragAndDrop.d.ts +16 -0
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/bundle/model/InputTypes.d.ts +1 -1
- package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/bundle/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/bundle/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/bundle/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/constants.d.ts +3 -0
- package/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/bundle/ui-kit/Input/InputFile.d.ts +2 -0
- package/bundle/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +6 -1
- package/bundle/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/bundle/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/bundle/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/bundle/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/bundle/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/bundle/ui-kit/Input/constants.d.ts +6 -0
- package/bundle/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/bundle/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/bundle/ui-kit/Input/styles.d.ts +2 -0
- package/bundle/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/bundle/ui-kit/PreventableEvent.d.ts +4 -0
- package/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/bundle/utils/animateStepWithMinDuration.d.ts +8 -0
- package/bundle/utils/isDateValid.d.ts +4 -0
- package/dist/api/LeadServiceAPI.d.ts +10 -3
- package/dist/api/LeadServiceAPI.js +20 -9
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/api/getSubmitBody.d.ts +201 -97
- package/dist/api/getSubmitBody.js +13 -6
- package/dist/api/getSubmitBody.js.map +1 -1
- package/dist/api/sendFile.d.ts +16 -0
- package/dist/api/sendFile.js +78 -0
- package/dist/api/sendFile.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +5 -6
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/dist/components/ApplicationForm/constants.d.ts +7 -0
- package/dist/components/ApplicationForm/constants.js +29 -0
- package/dist/components/ApplicationForm/constants.js.map +1 -0
- package/dist/components/ApplicationForm/handlers.d.ts +3 -2
- package/dist/components/ApplicationForm/handlers.js +3 -3
- package/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/hooks/useDragAndDrop.d.ts +16 -0
- package/dist/hooks/useDragAndDrop.js +29 -0
- package/dist/hooks/useDragAndDrop.js.map +1 -0
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/model/InputTypes.d.ts +1 -1
- package/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/dist/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/AverageGradeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -1
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CommentField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/FileIdField.js +7 -0
- package/dist/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/FileUpload.js +14 -0
- package/dist/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InternshipEndDateField.js +23 -0
- package/dist/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InternshipStartDateField.js +23 -0
- package/dist/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/dist/ui-kit/FormField/Fields/SelectField.js +7 -0
- package/dist/ui-kit/FormField/Fields/SelectField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/TextField.js +7 -0
- package/dist/ui-kit/FormField/Fields/TextField.js.map +1 -0
- package/dist/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/dist/ui-kit/FormField/InputsMap.js +119 -0
- package/dist/ui-kit/FormField/InputsMap.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/constants.d.ts +3 -0
- package/dist/ui-kit/FormField/constants.js +27 -1
- package/dist/ui-kit/FormField/constants.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +2 -94
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +15 -1
- 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 +4 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +2 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputFile.d.ts +2 -0
- package/dist/ui-kit/Input/InputFile.js +75 -0
- package/dist/ui-kit/Input/InputFile.js.map +1 -0
- package/dist/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/dist/ui-kit/Input/InputFileControl.js +10 -0
- package/dist/ui-kit/Input/InputFileControl.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +6 -1
- package/dist/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/dist/ui-kit/Input/checks/checkFIleExtension.js +12 -0
- package/dist/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
- package/dist/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/dist/ui-kit/Input/checks/checkFileMimeType.js +20 -0
- package/dist/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
- package/dist/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/dist/ui-kit/Input/checks/checkFileSignature.js +25 -0
- package/dist/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
- package/dist/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/dist/ui-kit/Input/checks/checkFileSize.js +13 -0
- package/dist/ui-kit/Input/checks/checkFileSize.js.map +1 -0
- package/dist/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/dist/ui-kit/Input/checks/getFileSignature.js +19 -0
- package/dist/ui-kit/Input/checks/getFileSignature.js.map +1 -0
- package/dist/ui-kit/Input/constants.d.ts +6 -0
- package/dist/ui-kit/Input/constants.js +9 -0
- package/dist/ui-kit/Input/constants.js.map +1 -0
- package/dist/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/dist/ui-kit/Input/renderFileInput.js +33 -0
- package/dist/ui-kit/Input/renderFileInput.js.map +1 -0
- package/dist/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/dist/ui-kit/Input/renderInfoText.js +14 -0
- package/dist/ui-kit/Input/renderInfoText.js.map +1 -0
- package/dist/ui-kit/Input/styles.d.ts +2 -0
- package/dist/ui-kit/Input/styles.js +5 -0
- package/dist/ui-kit/Input/styles.js.map +1 -0
- package/dist/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/dist/ui-kit/Input/useVerifyFile.js +64 -0
- package/dist/ui-kit/Input/useVerifyFile.js.map +1 -0
- package/dist/ui-kit/PreventableEvent.d.ts +4 -0
- package/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/utils/animateStepWithMinDuration.d.ts +8 -0
- package/dist/utils/animateStepWithMinDuration.js +26 -0
- package/dist/utils/animateStepWithMinDuration.js.map +1 -0
- package/dist/utils/isDateValid.d.ts +4 -0
- package/dist/utils/isDateValid.js +24 -0
- package/dist/utils/isDateValid.js.map +1 -0
- package/lib/api/LeadServiceAPI.d.ts +10 -3
- package/lib/api/LeadServiceAPI.js +20 -9
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/api/getSubmitBody.d.ts +201 -97
- package/lib/api/getSubmitBody.js +13 -6
- package/lib/api/getSubmitBody.js.map +1 -1
- package/lib/api/sendFile.d.ts +16 -0
- package/lib/api/sendFile.js +75 -0
- package/lib/api/sendFile.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +5 -6
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/lib/components/ApplicationForm/constants.d.ts +7 -0
- package/lib/components/ApplicationForm/constants.js +27 -0
- package/lib/components/ApplicationForm/constants.js.map +1 -0
- package/lib/components/ApplicationForm/handlers.d.ts +3 -2
- package/lib/components/ApplicationForm/handlers.js +3 -3
- package/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/hooks/useDragAndDrop.d.ts +16 -0
- package/lib/hooks/useDragAndDrop.js +26 -0
- package/lib/hooks/useDragAndDrop.js.map +1 -0
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/model/InputTypes.d.ts +1 -1
- package/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/lib/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/AverageGradeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -1
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CommentField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/FileIdField.js +5 -0
- package/lib/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/FileUpload.js +12 -0
- package/lib/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InternshipEndDateField.js +21 -0
- package/lib/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InternshipStartDateField.js +21 -0
- package/lib/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/lib/ui-kit/FormField/Fields/SelectField.js +5 -0
- package/lib/ui-kit/FormField/Fields/SelectField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/TextField.js +5 -0
- package/lib/ui-kit/FormField/Fields/TextField.js.map +1 -0
- package/lib/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/lib/ui-kit/FormField/InputsMap.js +117 -0
- package/lib/ui-kit/FormField/InputsMap.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/constants.d.ts +3 -0
- package/lib/ui-kit/FormField/constants.js +26 -0
- package/lib/ui-kit/FormField/constants.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +1 -93
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +16 -2
- 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 +2 -0
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputFile.d.ts +2 -0
- package/lib/ui-kit/Input/InputFile.js +73 -0
- package/lib/ui-kit/Input/InputFile.js.map +1 -0
- package/lib/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/lib/ui-kit/Input/InputFileControl.js +8 -0
- package/lib/ui-kit/Input/InputFileControl.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +6 -1
- package/lib/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/lib/ui-kit/Input/checks/checkFIleExtension.js +9 -0
- package/lib/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
- package/lib/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/lib/ui-kit/Input/checks/checkFileMimeType.js +17 -0
- package/lib/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
- package/lib/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/lib/ui-kit/Input/checks/checkFileSignature.js +22 -0
- package/lib/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
- package/lib/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/lib/ui-kit/Input/checks/checkFileSize.js +10 -0
- package/lib/ui-kit/Input/checks/checkFileSize.js.map +1 -0
- package/lib/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/lib/ui-kit/Input/checks/getFileSignature.js +16 -0
- package/lib/ui-kit/Input/checks/getFileSignature.js.map +1 -0
- package/lib/ui-kit/Input/constants.d.ts +6 -0
- package/lib/ui-kit/Input/constants.js +7 -0
- package/lib/ui-kit/Input/constants.js.map +1 -0
- package/lib/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/lib/ui-kit/Input/renderFileInput.js +30 -0
- package/lib/ui-kit/Input/renderFileInput.js.map +1 -0
- package/lib/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/lib/ui-kit/Input/renderInfoText.js +11 -0
- package/lib/ui-kit/Input/renderInfoText.js.map +1 -0
- package/lib/ui-kit/Input/styles.d.ts +2 -0
- package/lib/ui-kit/Input/styles.js +3 -0
- package/lib/ui-kit/Input/styles.js.map +1 -0
- package/lib/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/lib/ui-kit/Input/useVerifyFile.js +61 -0
- package/lib/ui-kit/Input/useVerifyFile.js.map +1 -0
- package/lib/ui-kit/PreventableEvent.d.ts +4 -0
- package/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/utils/animateStepWithMinDuration.d.ts +8 -0
- package/lib/utils/animateStepWithMinDuration.js +23 -0
- package/lib/utils/animateStepWithMinDuration.js.map +1 -0
- package/lib/utils/isDateValid.d.ts +4 -0
- package/lib/utils/isDateValid.js +21 -0
- package/lib/utils/isDateValid.js.map +1 -0
- package/mobile/bundle/api/LeadServiceAPI.d.ts +10 -3
- package/mobile/bundle/api/getSubmitBody.d.ts +201 -97
- package/mobile/bundle/api/sendFile.d.ts +16 -0
- package/mobile/bundle/bundle.umd.js +566 -51
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/mobile/bundle/components/ApplicationForm/constants.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/handlers.d.ts +3 -2
- package/mobile/bundle/hooks/useDragAndDrop.d.ts +16 -0
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/bundle/model/InputTypes.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/mobile/bundle/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/constants.d.ts +3 -0
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/InputFile.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +6 -1
- package/mobile/bundle/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/mobile/bundle/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/constants.d.ts +6 -0
- package/mobile/bundle/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/mobile/bundle/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/styles.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/mobile/bundle/ui-kit/PreventableEvent.d.ts +4 -0
- package/mobile/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/bundle/utils/animateStepWithMinDuration.d.ts +8 -0
- package/mobile/bundle/utils/isDateValid.d.ts +4 -0
- package/mobile/dist/api/LeadServiceAPI.d.ts +10 -3
- package/mobile/dist/api/LeadServiceAPI.js +20 -9
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/api/getSubmitBody.d.ts +201 -97
- package/mobile/dist/api/getSubmitBody.js +13 -6
- package/mobile/dist/api/getSubmitBody.js.map +1 -1
- package/mobile/dist/api/sendFile.d.ts +16 -0
- package/mobile/dist/api/sendFile.js +78 -0
- package/mobile/dist/api/sendFile.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +5 -6
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/mobile/dist/components/ApplicationForm/constants.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/constants.js +29 -0
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/handlers.d.ts +3 -2
- package/mobile/dist/components/ApplicationForm/handlers.js +3 -3
- package/mobile/dist/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/hooks/useDragAndDrop.d.ts +16 -0
- package/mobile/dist/hooks/useDragAndDrop.js +29 -0
- package/mobile/dist/hooks/useDragAndDrop.js.map +1 -0
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/model/InputTypes.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CommentField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/FileIdField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/FileUpload.js +14 -0
- package/mobile/dist/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.js +23 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.js +23 -0
- package/mobile/dist/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/mobile/dist/ui-kit/FormField/Fields/SelectField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/SelectField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/TextField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/TextField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/mobile/dist/ui-kit/FormField/InputsMap.js +119 -0
- package/mobile/dist/ui-kit/FormField/InputsMap.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/constants.d.ts +3 -0
- package/mobile/dist/ui-kit/FormField/constants.js +27 -1
- package/mobile/dist/ui-kit/FormField/constants.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +2 -94
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +15 -1
- 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 +4 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +2 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputFile.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/InputFile.js +75 -0
- package/mobile/dist/ui-kit/Input/InputFile.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/InputFileControl.js +10 -0
- package/mobile/dist/ui-kit/Input/InputFileControl.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +6 -1
- package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.js +12 -0
- package/mobile/dist/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.js +20 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSignature.js +25 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSize.js +13 -0
- package/mobile/dist/ui-kit/Input/checks/checkFileSize.js.map +1 -0
- package/mobile/dist/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/checks/getFileSignature.js +19 -0
- package/mobile/dist/ui-kit/Input/checks/getFileSignature.js.map +1 -0
- package/mobile/dist/ui-kit/Input/constants.d.ts +6 -0
- package/mobile/dist/ui-kit/Input/constants.js +9 -0
- package/mobile/dist/ui-kit/Input/constants.js.map +1 -0
- package/mobile/dist/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/mobile/dist/ui-kit/Input/renderFileInput.js +33 -0
- package/mobile/dist/ui-kit/Input/renderFileInput.js.map +1 -0
- package/mobile/dist/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/renderInfoText.js +14 -0
- package/mobile/dist/ui-kit/Input/renderInfoText.js.map +1 -0
- package/mobile/dist/ui-kit/Input/styles.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/styles.js +5 -0
- package/mobile/dist/ui-kit/Input/styles.js.map +1 -0
- package/mobile/dist/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/mobile/dist/ui-kit/Input/useVerifyFile.js +64 -0
- package/mobile/dist/ui-kit/Input/useVerifyFile.js.map +1 -0
- package/mobile/dist/ui-kit/PreventableEvent.d.ts +4 -0
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/dist/utils/animateStepWithMinDuration.d.ts +8 -0
- package/mobile/dist/utils/animateStepWithMinDuration.js +26 -0
- package/mobile/dist/utils/animateStepWithMinDuration.js.map +1 -0
- package/mobile/dist/utils/isDateValid.d.ts +4 -0
- package/mobile/dist/utils/isDateValid.js +24 -0
- package/mobile/dist/utils/isDateValid.js.map +1 -0
- package/mobile/lib/api/LeadServiceAPI.d.ts +10 -3
- package/mobile/lib/api/LeadServiceAPI.js +20 -9
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/api/getSubmitBody.d.ts +201 -97
- package/mobile/lib/api/getSubmitBody.js +13 -6
- package/mobile/lib/api/getSubmitBody.js.map +1 -1
- package/mobile/lib/api/sendFile.d.ts +16 -0
- package/mobile/lib/api/sendFile.js +75 -0
- package/mobile/lib/api/sendFile.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +5 -6
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -2
- package/mobile/lib/components/ApplicationForm/constants.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/constants.js +27 -0
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/handlers.d.ts +3 -2
- package/mobile/lib/components/ApplicationForm/handlers.js +3 -3
- package/mobile/lib/components/ApplicationForm/handlers.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +3 -0
- package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/hooks/useDragAndDrop.d.ts +16 -0
- package/mobile/lib/hooks/useDragAndDrop.js +26 -0
- package/mobile/lib/hooks/useDragAndDrop.js.map +1 -0
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/model/InputTypes.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/AverageGradeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CommentField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FileIdField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/FileIdField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/FileIdField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/FileUpload.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/FileUpload.js +12 -0
- package/mobile/lib/ui-kit/FormField/Fields/FileUpload.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.js +21 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipEndDateField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.js +21 -0
- package/mobile/lib/ui-kit/FormField/Fields/InternshipStartDateField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/SelectField.d.ts +6 -0
- package/mobile/lib/ui-kit/FormField/Fields/SelectField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/SelectField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/TextField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/TextField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/TextField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/InputsMap.d.ts +62 -0
- package/mobile/lib/ui-kit/FormField/InputsMap.js +117 -0
- package/mobile/lib/ui-kit/FormField/InputsMap.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/constants.d.ts +3 -0
- package/mobile/lib/ui-kit/FormField/constants.js +26 -0
- package/mobile/lib/ui-kit/FormField/constants.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +1 -93
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +16 -2
- 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 +2 -0
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputFile.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/InputFile.js +73 -0
- package/mobile/lib/ui-kit/Input/InputFile.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputFileControl.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/InputFileControl.js +8 -0
- package/mobile/lib/ui-kit/Input/InputFileControl.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +6 -1
- package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.js +9 -0
- package/mobile/lib/ui-kit/Input/checks/checkFIleExtension.js.map +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.js +17 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileMimeType.js.map +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSignature.d.ts +3 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSignature.js +22 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSignature.js.map +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSize.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSize.js +10 -0
- package/mobile/lib/ui-kit/Input/checks/checkFileSize.js.map +1 -0
- package/mobile/lib/ui-kit/Input/checks/getFileSignature.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/checks/getFileSignature.js +16 -0
- package/mobile/lib/ui-kit/Input/checks/getFileSignature.js.map +1 -0
- package/mobile/lib/ui-kit/Input/constants.d.ts +6 -0
- package/mobile/lib/ui-kit/Input/constants.js +7 -0
- package/mobile/lib/ui-kit/Input/constants.js.map +1 -0
- package/mobile/lib/ui-kit/Input/renderFileInput.d.ts +12 -0
- package/mobile/lib/ui-kit/Input/renderFileInput.js +30 -0
- package/mobile/lib/ui-kit/Input/renderFileInput.js.map +1 -0
- package/mobile/lib/ui-kit/Input/renderInfoText.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/renderInfoText.js +11 -0
- package/mobile/lib/ui-kit/Input/renderInfoText.js.map +1 -0
- package/mobile/lib/ui-kit/Input/styles.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/styles.js +3 -0
- package/mobile/lib/ui-kit/Input/styles.js.map +1 -0
- package/mobile/lib/ui-kit/Input/useVerifyFile.d.ts +17 -0
- package/mobile/lib/ui-kit/Input/useVerifyFile.js +61 -0
- package/mobile/lib/ui-kit/Input/useVerifyFile.js.map +1 -0
- package/mobile/lib/ui-kit/PreventableEvent.d.ts +4 -0
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/lib/utils/animateStepWithMinDuration.d.ts +8 -0
- package/mobile/lib/utils/animateStepWithMinDuration.js +23 -0
- package/mobile/lib/utils/animateStepWithMinDuration.js.map +1 -0
- package/mobile/lib/utils/isDateValid.d.ts +4 -0
- package/mobile/lib/utils/isDateValid.js +21 -0
- package/mobile/lib/utils/isDateValid.js.map +1 -0
- package/mobile/src/api/LeadServiceAPI.ts +37 -10
- package/mobile/src/api/getSubmitBody.ts +28 -7
- package/mobile/src/api/sendFile.ts +97 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +192 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +22 -16
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -2
- package/mobile/src/components/ApplicationForm/constants.ts +33 -0
- package/mobile/src/components/ApplicationForm/handlers.ts +5 -3
- package/mobile/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +3 -0
- package/mobile/src/hooks/useDragAndDrop.ts +48 -0
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/model/InputTypes.ts +1 -1
- package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/AverageGradeField.tsx +14 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -7
- package/mobile/src/ui-kit/FormField/Fields/CommentField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/FileIdField.tsx +7 -0
- package/mobile/src/ui-kit/FormField/Fields/FileUpload.tsx +22 -0
- package/mobile/src/ui-kit/FormField/Fields/InternshipEndDateField.tsx +38 -0
- package/mobile/src/ui-kit/FormField/Fields/InternshipStartDateField.tsx +38 -0
- package/mobile/src/ui-kit/FormField/Fields/SelectField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/TextField.tsx +7 -0
- package/mobile/src/ui-kit/FormField/InputsMap.tsx +133 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +17 -1
- package/mobile/src/ui-kit/FormField/constants.tsx +29 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +1 -105
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +16 -1
- package/mobile/src/ui-kit/FormField/validators.ts +4 -0
- package/mobile/src/ui-kit/Input/Input.tsx +1 -2
- package/mobile/src/ui-kit/Input/InputFile.tsx +132 -0
- package/mobile/src/ui-kit/Input/InputFileControl.tsx +22 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +10 -1
- package/mobile/src/ui-kit/Input/checks/checkFIleExtension.ts +9 -0
- package/mobile/src/ui-kit/Input/checks/checkFileMimeType.ts +20 -0
- package/mobile/src/ui-kit/Input/checks/checkFileSignature.ts +30 -0
- package/mobile/src/ui-kit/Input/checks/checkFileSize.ts +10 -0
- package/mobile/src/ui-kit/Input/checks/getFileSignature.ts +16 -0
- package/mobile/src/ui-kit/Input/constants.ts +6 -0
- package/mobile/src/ui-kit/Input/renderFileInput.tsx +87 -0
- package/mobile/src/ui-kit/Input/renderInfoText.tsx +15 -0
- package/mobile/src/ui-kit/Input/styles.ts +2 -0
- package/mobile/src/ui-kit/Input/useVerifyFile.ts +100 -0
- package/mobile/src/ui-kit/PreventableEvent.ts +5 -0
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +7 -2
- package/mobile/src/utils/animateStepWithMinDuration.ts +38 -0
- package/mobile/src/utils/isDateValid.ts +33 -0
- package/package.json +2 -2
- package/src/api/LeadServiceAPI.ts +37 -10
- package/src/api/getSubmitBody.ts +28 -7
- package/src/api/sendFile.ts +97 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +192 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +132 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +22 -16
- package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -2
- package/src/components/ApplicationForm/constants.ts +33 -0
- package/src/components/ApplicationForm/handlers.ts +5 -3
- package/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +3 -0
- package/src/hooks/useDragAndDrop.ts +48 -0
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/model/InputTypes.ts +1 -1
- package/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
- package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/AverageGradeField.tsx +14 -0
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +12 -7
- package/src/ui-kit/FormField/Fields/CommentField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/FileIdField.tsx +7 -0
- package/src/ui-kit/FormField/Fields/FileUpload.tsx +22 -0
- package/src/ui-kit/FormField/Fields/InternshipEndDateField.tsx +38 -0
- package/src/ui-kit/FormField/Fields/InternshipStartDateField.tsx +38 -0
- package/src/ui-kit/FormField/Fields/SelectField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/TextField.tsx +7 -0
- package/src/ui-kit/FormField/InputsMap.tsx +133 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +17 -1
- package/src/ui-kit/FormField/constants.tsx +29 -0
- package/src/ui-kit/FormField/getField.tsx +1 -105
- package/src/ui-kit/FormField/getObjectValidator.tsx +16 -1
- package/src/ui-kit/FormField/validators.ts +4 -0
- package/src/ui-kit/Input/Input.tsx +1 -2
- package/src/ui-kit/Input/InputFile.tsx +132 -0
- package/src/ui-kit/Input/InputFileControl.tsx +22 -0
- package/src/ui-kit/Input/InputProps.ts +10 -1
- package/src/ui-kit/Input/checks/checkFIleExtension.ts +9 -0
- package/src/ui-kit/Input/checks/checkFileMimeType.ts +20 -0
- package/src/ui-kit/Input/checks/checkFileSignature.ts +30 -0
- package/src/ui-kit/Input/checks/checkFileSize.ts +10 -0
- package/src/ui-kit/Input/checks/getFileSignature.ts +16 -0
- package/src/ui-kit/Input/constants.ts +6 -0
- package/src/ui-kit/Input/renderFileInput.tsx +87 -0
- package/src/ui-kit/Input/renderInfoText.tsx +15 -0
- package/src/ui-kit/Input/styles.ts +2 -0
- package/src/ui-kit/Input/useVerifyFile.ts +100 -0
- package/src/ui-kit/PreventableEvent.ts +5 -0
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +7 -2
- package/src/utils/animateStepWithMinDuration.ts +38 -0
- package/src/utils/isDateValid.ts +33 -0
|
@@ -27,13 +27,19 @@ export declare type FilledByEsiaProps = {
|
|
|
27
27
|
/** @title Заполняется через госуслуги */
|
|
28
28
|
filledByEsia?: boolean;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
/** @hidden */
|
|
31
|
+
export declare type FileProps = {
|
|
32
|
+
maxSize?: number;
|
|
33
|
+
extensions?: string[];
|
|
34
|
+
};
|
|
35
|
+
export declare type FieldDef = Required & LabelProps & ConditionFieldProps & FilledByEsiaProps & PlaceholderProps & FileProps & {
|
|
31
36
|
name?: NameFieldDef;
|
|
32
37
|
dadata?: boolean;
|
|
33
38
|
defaultValue?: string;
|
|
39
|
+
customName?: string;
|
|
34
40
|
};
|
|
35
41
|
/** @hidden */
|
|
36
|
-
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback';
|
|
42
|
+
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
37
43
|
/**
|
|
38
44
|
* @title Секция полей ввода
|
|
39
45
|
*/
|
|
@@ -3,8 +3,10 @@ import { type Router } from '../../external/useRouter';
|
|
|
3
3
|
import { type Aspects } from '../../hooks/useAspects/useAspects';
|
|
4
4
|
import { type AspectsDef } from '../../model/AspectsProps';
|
|
5
5
|
import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
6
|
+
import { type EndpointType } from './ApplicationFormContent';
|
|
6
7
|
export declare type HandlerProps = {
|
|
7
8
|
formatData: LeadRequest;
|
|
9
|
+
endpoint?: EndpointType;
|
|
8
10
|
data?: AspectsDef[];
|
|
9
11
|
aspects?: Aspects;
|
|
10
12
|
ev: PreventableEventWithTarget;
|
|
@@ -13,9 +15,8 @@ export declare type HandlerProps = {
|
|
|
13
15
|
verifyPhoneDialog?: any;
|
|
14
16
|
responseTypeDialog?: any;
|
|
15
17
|
onSuccess?: () => void;
|
|
16
|
-
endpoint?: string;
|
|
17
18
|
withSnowplow?: boolean;
|
|
18
19
|
};
|
|
19
20
|
export declare const handleInitCorporateLead: ({ formatData, typeForm, responseTypeDialog, verifyPhoneDialog, data, aspects, ev, }: HandlerProps) => Promise<void>;
|
|
20
|
-
export declare const handleCallback: ({ formatData, data, aspects, ev, typeForm, responseTypeDialog, onSuccess, }: HandlerProps) => Promise<void>;
|
|
21
|
+
export declare const handleCallback: ({ formatData, data, aspects, ev, typeForm, responseTypeDialog, onSuccess, endpoint, }: HandlerProps) => Promise<void>;
|
|
21
22
|
export declare const handleDefault: ({ formatData, data, aspects, ev, router, responseTypeDialog, endpoint, withSnowplow, }: HandlerProps) => Promise<void>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ResponseData } from '../api/sendFile';
|
|
2
|
+
import { type VerifyFileParams } from '../ui-kit/Input/useVerifyFile';
|
|
3
|
+
import type { PreventableEventWithTarget, PreventableEventWithTargetFiles } from '../ui-kit/PreventableEvent';
|
|
4
|
+
interface DragAndDropProps {
|
|
5
|
+
onFileSelected: (props: VerifyFileParams) => Promise<void>;
|
|
6
|
+
onReset: () => void;
|
|
7
|
+
uploadResponse: ResponseData | null;
|
|
8
|
+
onFileChanged?: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useDragAndDrop: ({ onFileSelected, onReset, uploadResponse, onFileChanged, }: DragAndDropProps) => {
|
|
11
|
+
handleDrag: (e: PreventableEventWithTarget) => void;
|
|
12
|
+
handleLeave: () => void;
|
|
13
|
+
handleDrop: (e: PreventableEventWithTargetFiles) => Promise<void>;
|
|
14
|
+
isDragActive: boolean;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
|
-
export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF' | 'UNIVERSAL';
|
|
2
|
+
export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF' | 'UNIVERSAL' | 'PRACTICE';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type InputTypes = 'text' | 'number' | 'hidden';
|
|
1
|
+
export declare type InputTypes = 'text' | 'number' | 'hidden' | 'file';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
2
|
-
interface RegionFieldProps extends CustomFieldProps {
|
|
2
|
+
export interface RegionFieldProps extends CustomFieldProps {
|
|
3
3
|
isPremium?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const AddressBranchField: import("@redneckz/uni-jsx").UNIComponent<RegionFieldProps, any, any>;
|
|
6
|
-
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Option } from '../../Select/Option';
|
|
2
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
3
|
+
export interface SelectFieldProps extends CustomFieldProps {
|
|
4
|
+
options: Option[];
|
|
5
|
+
}
|
|
6
|
+
export declare const SelectField: import("@redneckz/uni-jsx").UNIComponent<SelectFieldProps, any, any>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { CustomFieldProps } from './CustomFieldProps';
|
|
2
|
+
import { type SelectFieldProps } from './Fields/SelectField';
|
|
3
|
+
export declare const InputsMap: {
|
|
4
|
+
fullName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
5
|
+
addressBranch: import("@redneckz/uni-jsx").UNIComponent<import("./Fields/AddressBranchField").RegionFieldProps, any, any>;
|
|
6
|
+
desiredMeetingDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
7
|
+
product: (props: CustomFieldProps) => any;
|
|
8
|
+
localities: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
9
|
+
isClient: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
10
|
+
partnerComments: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
11
|
+
collectionCount: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
12
|
+
acquiringType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
13
|
+
onlineCheckout: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
14
|
+
posTerminal: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
15
|
+
serviceType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
16
|
+
term: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
17
|
+
amount: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
18
|
+
annualRevenue: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
19
|
+
vedTypes: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
20
|
+
feedbackMethod: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
21
|
+
serviceDirection: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
22
|
+
bankEmpolee: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
23
|
+
secondaryPhone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
24
|
+
applicationDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
25
|
+
region: (props: CustomFieldProps) => any;
|
|
26
|
+
consentToReceiveMaterials: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
27
|
+
sufferedFrom: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
28
|
+
situationDescription: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
29
|
+
representativeName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
30
|
+
applierType: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
31
|
+
surname: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
32
|
+
name: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
33
|
+
middleName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
34
|
+
birthday: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
35
|
+
phone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
36
|
+
email: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
37
|
+
inn: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
38
|
+
comment: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
39
|
+
fullRegion: import("@redneckz/uni-jsx").UNIComponent<import("./Fields/FullRegionField").FullRegionFieldProps, any, any>;
|
|
40
|
+
partnerSymbolCode: (props: CustomFieldProps) => any;
|
|
41
|
+
partnerName: (props: CustomFieldProps) => any;
|
|
42
|
+
dadataPartyNameSelect: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
43
|
+
dadataPartyInnSelect: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
44
|
+
questionProduct: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
45
|
+
callbackTime: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
46
|
+
russianPhone: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
47
|
+
cityOfResidence: (props: CustomFieldProps) => any;
|
|
48
|
+
internshipStartDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
49
|
+
internshipEndDate: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
50
|
+
university: (props: CustomFieldProps) => any;
|
|
51
|
+
courseYear: (props: CustomFieldProps) => any;
|
|
52
|
+
graduationYear: (props: CustomFieldProps) => any;
|
|
53
|
+
fieldOfStudy: (props: CustomFieldProps) => any;
|
|
54
|
+
educationLevel: (props: SelectFieldProps) => any;
|
|
55
|
+
averageGrade: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
56
|
+
skillsAndKnowledge: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
57
|
+
workExperience: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
58
|
+
motivationForInternship: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
59
|
+
internshipDirection: (props: SelectFieldProps) => any;
|
|
60
|
+
workingHours: (props: SelectFieldProps) => any;
|
|
61
|
+
fileUpload: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
62
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'partnerName' | 'dadataPartyNameSelect' | 'dadataPartyInnSelect' | 'questionProduct' | 'callbackTime' | 'russianPhone';
|
|
1
|
+
declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'partnerName' | 'dadataPartyNameSelect' | 'dadataPartyInnSelect' | 'questionProduct' | 'callbackTime' | 'russianPhone' | 'cityOfResidence' | 'internshipStartDate' | 'internshipEndDate' | 'university' | 'fieldOfStudy' | 'courseYear' | 'graduationYear' | 'averageGrade' | 'skillsAndKnowledge' | 'educationLevel' | 'workingHours' | 'motivationForInternship' | 'workExperience' | 'internshipDirection' | 'fileUpload' | 'fileId';
|
|
2
2
|
export declare type NameFieldDef = NameFieldApplicationDef;
|
|
3
3
|
export {};
|
|
@@ -14,3 +14,6 @@ export declare const CALLBACK_TIME: Option[];
|
|
|
14
14
|
export declare const QUESTION_PRODUCT_TYPES: Option[];
|
|
15
15
|
export declare const SUFFERED_FROM_TYPES: Option[];
|
|
16
16
|
export declare const VED_TYPES: RadioButtonItem[];
|
|
17
|
+
export declare const INTERNSHIP_DIRECTION: Option[];
|
|
18
|
+
export declare const WORKING_HOURS: Option[];
|
|
19
|
+
export declare const EDUCATION_LEVEL: Option[];
|
|
@@ -14,4 +14,5 @@ export declare const phoneOptionalValidator: (errorMsg: string) => import("../..
|
|
|
14
14
|
export declare const agreementValidator: import("../../validation/validator").Validator<any>;
|
|
15
15
|
export declare const emailValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
16
16
|
export declare const isValidInnLength: (value: string | undefined) => boolean;
|
|
17
|
+
export declare const birthdayValidator: (errorMsg: string) => import("../../validation/validator").Validator<Date>;
|
|
17
18
|
export {};
|
|
@@ -2,7 +2,12 @@ import { type ControlProps } from '../../model/ControlProps';
|
|
|
2
2
|
import { type DefaultControlType } from '../../model/DefaultControlType';
|
|
3
3
|
import { type InputTypes } from '../../model/InputTypes';
|
|
4
4
|
import { type PreventableEventWithTarget } from '../PreventableEvent';
|
|
5
|
-
export
|
|
5
|
+
export declare type FileInputProps = {
|
|
6
|
+
extensions?: string[];
|
|
7
|
+
maxSizeMB?: number;
|
|
8
|
+
onFileChanged?: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export interface InputProps<V = string> extends DefaultControlType, ControlProps<V>, FileInputProps {
|
|
6
11
|
id?: string;
|
|
7
12
|
name?: string;
|
|
8
13
|
type?: InputTypes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkFileExtension: (file: File, extensions?: string[]) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkFileMimeType: (file?: File, extensions?: string[]) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkFileSize: (file: File, maxSizeMB?: number) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFileSignature: (file?: File) => Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ACCEPTED_EXTENSIONS_TEXT = "\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0444\u043E\u0440\u043C\u0430\u0442\u044B \u0444\u0430\u0439\u043B\u043E\u0432";
|
|
2
|
+
export declare const MAX_SIZE_TEXT = "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430";
|
|
3
|
+
export declare const EMPTY_FILE_ERROR_TEXT = "\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 \u0444\u0430\u0439\u043B\u0430. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0444\u0430\u0439\u043B \u043D\u0435 \u043F\u0443\u0441\u0442\u043E\u0439";
|
|
4
|
+
export declare const EXTENSIONS_ERROR_TEXT = "\u0424\u0430\u0439\u043B \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u043C \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u043C";
|
|
5
|
+
export declare const MAX_SIZE_ERROR_TEXT = "\u0424\u0430\u0439\u043B \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440";
|
|
6
|
+
export declare const DEFAULT_ERROR_TEXT = "\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u0444\u0430\u0439\u043B\u0430. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B \u043F\u043E\u0437\u0434\u043D\u0435\u0435";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ResponseData } from '../../api/sendFile';
|
|
2
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
3
|
+
import type { InputProps } from './InputProps';
|
|
4
|
+
interface InputFileProps extends InputProps<File> {
|
|
5
|
+
key?: string;
|
|
6
|
+
uploadResponse?: ResponseData | null;
|
|
7
|
+
file?: File | null;
|
|
8
|
+
onReset?: (e: PreventableEvent) => void;
|
|
9
|
+
isCustomValid?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const renderFileInput: ({ label, inputRef, id, key, type, name, pattern, disabled, onChange, onFocus, onBlur, extensions, uploadResponse, file, }: InputFileProps) => any;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const renderInfoText: (extensions?: string[], maxSize?: number) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ResponseData } from '../../api/sendFile';
|
|
2
|
+
import { type FileInputProps } from './InputProps';
|
|
3
|
+
interface VerifyFileProps extends FileInputProps {
|
|
4
|
+
onUploadError?: (value: string) => void;
|
|
5
|
+
onFileSelected?: (value: File) => void;
|
|
6
|
+
onUploadResponse?: (value: ResponseData) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare type VerifyFileParams = {
|
|
9
|
+
file: File;
|
|
10
|
+
onFileChanged?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useVerifyFile: ({ onUploadError, onFileSelected, extensions, maxSizeMB, onUploadResponse, }: VerifyFileProps) => {
|
|
13
|
+
verifyFile: ({ file, onFileChanged }: VerifyFileParams) => Promise<void>;
|
|
14
|
+
isFileUploading: boolean;
|
|
15
|
+
progress: number;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -5,3 +5,7 @@ export interface PreventableEvent {
|
|
|
5
5
|
export declare type PreventableEventWithTarget = PreventableEvent & {
|
|
6
6
|
target?: EventTarget | null;
|
|
7
7
|
};
|
|
8
|
+
export declare type PreventableEventWithTargetFiles = PreventableEvent & {
|
|
9
|
+
target?: HTMLInputElement | null;
|
|
10
|
+
dataTransfer?: DataTransfer;
|
|
11
|
+
};
|
|
@@ -2,6 +2,7 @@ import type { DescriptionProps } from '../../model/HeadlineType';
|
|
|
2
2
|
interface ProgressBarProps extends DescriptionProps {
|
|
3
3
|
step?: number;
|
|
4
4
|
showPercentage?: boolean;
|
|
5
|
+
isOnlyInteger?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const ProgressBar: import("@redneckz/uni-jsx").UNIComponent<ProgressBarProps, any, any>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface AnimateProgressProps {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
onUpdate: (value: number) => void;
|
|
5
|
+
minDuration: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const animateStepWithMinDuration: ({ from, to, onUpdate, minDuration, }: AnimateProgressProps) => Promise<void>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type JSONRecord, type JSONScalar } from '@redneckz/json-op';
|
|
2
|
+
import { type EndpointType } from '../components/ApplicationForm/ApplicationFormContent';
|
|
2
3
|
import { type Router } from '../external/useRouter';
|
|
3
4
|
export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null> & {
|
|
4
5
|
typeForm?: string;
|
|
@@ -18,6 +19,7 @@ export declare type CheckCodeProps = {
|
|
|
18
19
|
reqId: string;
|
|
19
20
|
code: string;
|
|
20
21
|
body: LeadRequest;
|
|
22
|
+
router: Router;
|
|
21
23
|
};
|
|
22
24
|
declare type CheckCodeResponse = {
|
|
23
25
|
errorCode?: string;
|
|
@@ -28,10 +30,15 @@ declare type CheckCodeResponse = {
|
|
|
28
30
|
declare type PhoneOnly = {
|
|
29
31
|
phone?: string;
|
|
30
32
|
};
|
|
33
|
+
export declare type sendProps = {
|
|
34
|
+
body: LeadRequest;
|
|
35
|
+
router: Router;
|
|
36
|
+
endpoint?: EndpointType;
|
|
37
|
+
};
|
|
31
38
|
export declare function LeadServiceAPI(): {
|
|
32
|
-
send: (body
|
|
39
|
+
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
33
40
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
34
|
-
checkCode: ({ reqId, code, body }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
35
|
-
sendPhoneCallRequest: (body: LeadRequest,
|
|
41
|
+
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
|
+
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
36
43
|
};
|
|
37
44
|
export {};
|
|
@@ -3,12 +3,16 @@ exports.LeadServiceAPI = void 0;
|
|
|
3
3
|
const getTimezone_1 = require("../utils/getTimezone");
|
|
4
4
|
const apiBaseUrl_1 = require("./apiBaseUrl");
|
|
5
5
|
const getSubmitBody_1 = require("./getSubmitBody");
|
|
6
|
+
// eslint-disable-next-line max-lines-per-function
|
|
6
7
|
function LeadServiceAPI() {
|
|
7
|
-
async function send(body, router,
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
8
|
+
async function send({ body, router, endpoint }) {
|
|
9
|
+
const calculatedEndpoint = endpoint && getEndpoint(endpoint, body);
|
|
10
|
+
const url = `${apiBaseUrl_1.API_BASE_URI}/${calculatedEndpoint}`;
|
|
11
|
+
const submitBody = (0, getSubmitBody_1.getSubmitBody)({
|
|
12
|
+
body,
|
|
13
|
+
endpoint,
|
|
14
|
+
router,
|
|
15
|
+
});
|
|
12
16
|
try {
|
|
13
17
|
const response = await LeadServiceFetch(url, submitBody);
|
|
14
18
|
if (!response?.ok) {
|
|
@@ -35,11 +39,11 @@ function LeadServiceAPI() {
|
|
|
35
39
|
return null;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
async function checkCode({ reqId, code, body }) {
|
|
42
|
+
async function checkCode({ reqId, code, body, router, }) {
|
|
39
43
|
const submitBody = {
|
|
40
44
|
requestId: reqId,
|
|
41
45
|
confimationCode: code,
|
|
42
|
-
leadRequest: (0, getSubmitBody_1.getSubmitBody)(body,
|
|
46
|
+
leadRequest: (0, getSubmitBody_1.getSubmitBody)({ body, router }),
|
|
43
47
|
};
|
|
44
48
|
try {
|
|
45
49
|
const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}/confirmCorporateLead`, submitBody);
|
|
@@ -49,9 +53,9 @@ function LeadServiceAPI() {
|
|
|
49
53
|
return null;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
async function sendPhoneCallRequest(body,
|
|
56
|
+
async function sendPhoneCallRequest(body, endpoint) {
|
|
53
57
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
|
-
const submitBody = (0, getSubmitBody_1.getSubmitBody)(body,
|
|
58
|
+
const submitBody = (0, getSubmitBody_1.getSubmitBody)({ body, endpoint });
|
|
55
59
|
const formatSubmitBody = getFormatCallbackSubmitBody(submitBody);
|
|
56
60
|
try {
|
|
57
61
|
const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}/callback`, formatSubmitBody);
|
|
@@ -87,4 +91,11 @@ const getFormatCallbackSubmitBody = (submitBody) => {
|
|
|
87
91
|
clientTimezone: (0, getTimezone_1.getUserTimezoneOffset)(),
|
|
88
92
|
};
|
|
89
93
|
};
|
|
94
|
+
const getEndpoint = (endpoint, body) => {
|
|
95
|
+
const { serviceDirection } = body;
|
|
96
|
+
if (endpoint === 'lead' && serviceDirection !== 'Юридическое лицо / ИП') {
|
|
97
|
+
return 'lead';
|
|
98
|
+
}
|
|
99
|
+
return endpoint;
|
|
100
|
+
};
|
|
90
101
|
//# sourceMappingURL=LeadServiceAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AAGA,sDAA6D;AAC7D,6CAA4C;AAC5C,mDAA8D;AAiD9D,kDAAkD;AAClD,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAa;QACvD,MAAM,kBAAkB,GAAG,QAAQ,IAAI,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,GAAG,GAAG,GAAG,yBAAY,IAAI,kBAAkB,EAAE,CAAC;QAEpD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC;YAC/B,IAAI;YACJ,QAAQ;YACR,MAAM;SACP,CAAC,CAAC;QAEH,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;YAEzD,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,KAAK,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAa;QAC1C,MAAM,UAAU,GAAG,IAAA,4BAAY,EAAC,KAAK,CAAC,CAAC;QAEvC,IAAI;YACF,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,yBAAY,oBAAoB,EAAE,UAAU,CAAC,CAAC,IAAI,CACrF,KAAK,EAAE,GAAG,EAAE,EAAE;gBACZ,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE;oBACX,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;iBAC/C;gBAED,OAAO,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;YAC1B,CAAC,CACF,CAAC;YAEF,OAAO,MAAM,QAAQ,CAAC;SACvB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,GACS;QACf,MAAM,UAAU,GAAG;YACjB,SAAS,EAAE,KAAK;YAChB,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,IAAA,6BAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SAC7C,CAAC;QACF,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,GAAG,yBAAY,uBAAuB,EAAE,UAAU,CAAC,CAAC;YAE5F,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,KAAK,UAAU,oBAAoB,CAAC,IAAiB,EAAE,QAAuB;QAC5E,6DAA6D;QAC7D,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAErD,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAEjE,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,GAAG,yBAAY,WAAW,EAAE,gBAAgB,CAAC,CAAC;YAEtF,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,SAAS;QACT,oBAAoB;KACrB,CAAC;AACJ,CAAC;AAzFD,wCAyFC;AAED,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,UAAsB,EAAE,EAAE,CAC/D,KAAK,CAAC,GAAG,EAAE;IACT,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;IAC/C,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAEL,MAAM,2BAA2B,GAAG,CAAC,UAAgC,EAAc,EAAE;IACnF,6DAA6D;IAC7D,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC;IAEvE,OAAO;QACL,GAAG,IAAI;QACP,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK;QACtD,cAAc,EAAE,IAAA,mCAAqB,GAAE;KACxC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAsB,EAAE,IAAiB,EAAE,EAAE;IAChE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAElC,IAAI,QAAQ,KAAK,MAAM,IAAI,gBAAgB,KAAK,uBAAuB,EAAE;QACvE,OAAO,MAAM,CAAC;KACf;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|