@redneckz/wildless-cms-uni-blocks 0.14.577 → 0.14.578
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/bin/migration-scripts/0.14.454.js +18 -17
- package/bin/migration-scripts/0.14.455.js +1 -3
- package/bin/migration-scripts/0.14.488.js +4 -1
- package/bin/migration-scripts/0.14.519.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +92 -16
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/bundle/hooks/useLeadFormData.d.ts +5 -0
- package/bundle/ui-kit/Button/Button.d.ts +1 -1
- package/bundle/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/bundle/ui-kit/FormField/SelectField.d.ts +15 -0
- package/bundle/ui-kit/FormField/dataSources.d.ts +3 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +4 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/hooks/useLeadFormData.d.ts +5 -0
- package/dist/hooks/useLeadFormData.js +14 -0
- package/dist/hooks/useLeadFormData.js.map +1 -0
- package/dist/ui-kit/Button/Button.d.ts +1 -1
- package/dist/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/dist/ui-kit/DatePicker/renderCalendarCells.js +1 -1
- package/dist/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
- package/dist/ui-kit/DialogManager/DialogManager.js +2 -2
- package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +11 -0
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
- package/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +11 -0
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +11 -0
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
- package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
- package/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/OrganizationField.js +11 -0
- package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
- package/dist/ui-kit/FormField/SelectField.d.ts +15 -0
- package/dist/ui-kit/FormField/SelectField.js +13 -0
- package/dist/ui-kit/FormField/SelectField.js.map +1 -0
- package/dist/ui-kit/FormField/dataSources.d.ts +3 -0
- package/dist/ui-kit/FormField/dataSources.js +6 -0
- package/dist/ui-kit/FormField/dataSources.js.map +1 -0
- package/dist/ui-kit/FormField/getField.js +16 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +8 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js +3 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -5
- package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +4 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/hooks/useLeadFormData.d.ts +5 -0
- package/lib/hooks/useLeadFormData.js +11 -0
- package/lib/hooks/useLeadFormData.js.map +1 -0
- package/lib/ui-kit/Button/Button.d.ts +1 -1
- package/lib/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/lib/ui-kit/DatePicker/renderCalendarCells.js +1 -1
- package/lib/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
- package/lib/ui-kit/DialogManager/DialogManager.js +2 -2
- package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +9 -0
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
- package/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +9 -0
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +9 -0
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
- package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
- package/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/OrganizationField.js +9 -0
- package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
- package/lib/ui-kit/FormField/SelectField.d.ts +15 -0
- package/lib/ui-kit/FormField/SelectField.js +11 -0
- package/lib/ui-kit/FormField/SelectField.js.map +1 -0
- package/lib/ui-kit/FormField/dataSources.d.ts +3 -0
- package/lib/ui-kit/FormField/dataSources.js +4 -0
- package/lib/ui-kit/FormField/dataSources.js.map +1 -0
- package/lib/ui-kit/FormField/getField.js +16 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +8 -0
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js +3 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -5
- package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +90 -15
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/mobile/bundle/hooks/useLeadFormData.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/bundle/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +15 -0
- package/mobile/bundle/ui-kit/FormField/dataSources.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +4 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/hooks/useLeadFormData.d.ts +5 -0
- package/mobile/dist/hooks/useLeadFormData.js +14 -0
- package/mobile/dist/hooks/useLeadFormData.js.map +1 -0
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/DialogManager.js +2 -2
- package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +15 -0
- package/mobile/dist/ui-kit/FormField/SelectField.js +13 -0
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/dataSources.d.ts +3 -0
- package/mobile/dist/ui-kit/FormField/dataSources.js +6 -0
- package/mobile/dist/ui-kit/FormField/dataSources.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/getField.js +16 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +3 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -5
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +8 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +4 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js +5 -6
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/hooks/useLeadFormData.d.ts +5 -0
- package/mobile/lib/hooks/useLeadFormData.js +11 -0
- package/mobile/lib/hooks/useLeadFormData.js.map +1 -0
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.d.ts +2 -2
- package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderCalendarCells.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/DialogManager.js +2 -2
- package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +15 -0
- package/mobile/lib/ui-kit/FormField/SelectField.js +11 -0
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/dataSources.d.ts +3 -0
- package/mobile/lib/ui-kit/FormField/dataSources.js +4 -0
- package/mobile/lib/ui-kit/FormField/dataSources.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/getField.js +16 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +8 -0
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +3 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -5
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +9 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +9 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -23
- package/mobile/src/components/Footer/SocialMedia.tsx +6 -3
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -2
- package/mobile/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +11 -9
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/mobile/src/hooks/useLeadFormData.ts +18 -0
- package/mobile/src/ui-kit/Button/Button.tsx +1 -1
- package/mobile/src/ui-kit/DatePicker/renderCalendarCells.tsx +3 -3
- package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/SelectField.tsx +37 -0
- package/mobile/src/ui-kit/FormField/dataSources.ts +3 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +16 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +8 -0
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +3 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +10 -15
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
- package/package.json +2 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +9 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +9 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -23
- package/src/components/Footer/SocialMedia.tsx +6 -3
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -2
- package/src/components/OfficesAtmsMap/renderButtonsGroup.tsx +11 -9
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/src/hooks/useLeadFormData.ts +18 -0
- package/src/ui-kit/Button/Button.tsx +1 -1
- package/src/ui-kit/DatePicker/renderCalendarCells.tsx +3 -3
- package/src/ui-kit/DialogManager/DialogManager.tsx +2 -2
- package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/OrganizationField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
- package/src/ui-kit/FormField/SelectField.tsx +37 -0
- package/src/ui-kit/FormField/dataSources.ts +3 -0
- package/src/ui-kit/FormField/getField.tsx +16 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +8 -0
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +3 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +10 -15
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
|
@@ -12,20 +12,22 @@ export const renderButtonsGroup = (
|
|
|
12
12
|
const businessButtonVersion = getVersion(activeButton === 'business');
|
|
13
13
|
|
|
14
14
|
const handleClick = (e: any, key: string, branches: Branch[]) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(branch) =>
|
|
18
|
-
branch.workSchedule &&
|
|
19
|
-
branch.workSchedule.businessScheduleVisibleTag &&
|
|
20
|
-
!branch.workSchedule.businessScheduleDescription,
|
|
21
|
-
);
|
|
22
|
-
}
|
|
15
|
+
const filteredBranches =
|
|
16
|
+
e.currentTarget === e.target && key === 'business' ? filterBranches(branches) : branches;
|
|
23
17
|
|
|
24
18
|
onButtonClick(key);
|
|
25
19
|
|
|
26
|
-
return
|
|
20
|
+
return filteredBranches;
|
|
27
21
|
};
|
|
28
22
|
|
|
23
|
+
const filterBranches = (branches: Branch[]) =>
|
|
24
|
+
branches.filter(
|
|
25
|
+
(branch) =>
|
|
26
|
+
branch.workSchedule &&
|
|
27
|
+
branch.workSchedule.businessScheduleVisibleTag &&
|
|
28
|
+
!branch.workSchedule.businessScheduleDescription,
|
|
29
|
+
);
|
|
30
|
+
|
|
29
31
|
return (
|
|
30
32
|
<div className="flex gap-lg flex-col sm:flex-row pb-lg">
|
|
31
33
|
<Button data-id="all" onClick={(e) => handleClick(e, 'all', data)} version={allButtonVersion}>
|
|
@@ -56,7 +56,7 @@ export const renderFiltrationForm = ({
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export const renderFoldButton =
|
|
59
|
-
(reset: () => void, onlyOffice
|
|
59
|
+
(reset: () => void, onlyOffice = false) =>
|
|
60
60
|
({ isUnfolded, onToggle }: FoldablePartProps) => {
|
|
61
61
|
const labels = ['Больше фильтров', 'Меньше фильтров'];
|
|
62
62
|
const icons: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { type LeadProps } from '../ui-kit/FormField/SelectField';
|
|
3
|
+
import { fetchJSON } from '../utils/fetchJSON';
|
|
4
|
+
|
|
5
|
+
export const useLeadFormData = (typeField: string) => {
|
|
6
|
+
const { data, error } = useAsyncData(
|
|
7
|
+
`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${typeField}`,
|
|
8
|
+
fetchData,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
return { data, error };
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const fetchData = async (url: string): Promise<LeadProps[]> => {
|
|
15
|
+
const result = await fetchJSON<LeadProps[]>(url, { method: 'POST' });
|
|
16
|
+
|
|
17
|
+
return result || [];
|
|
18
|
+
};
|
|
@@ -28,7 +28,7 @@ const secondaryButtonStyleMap: Record<ButtonVersion, string> = {
|
|
|
28
28
|
export interface ButtonProps extends ControlStateProps, ARIAProps {
|
|
29
29
|
className?: string;
|
|
30
30
|
version?: ButtonVersion;
|
|
31
|
-
type?: 'button' | 'submit' | 'reset'
|
|
31
|
+
type?: 'button' | 'submit' | 'reset';
|
|
32
32
|
rounded?: boolean;
|
|
33
33
|
role?: string;
|
|
34
34
|
onClick?: (ev?: PreventableEvent) => void;
|
|
@@ -10,8 +10,8 @@ interface RenderCalendarCellsParams {
|
|
|
10
10
|
totalDays: number;
|
|
11
11
|
currentYear: number;
|
|
12
12
|
currentMonth: number;
|
|
13
|
-
min?: Date
|
|
14
|
-
max?: Date
|
|
13
|
+
min?: Date;
|
|
14
|
+
max?: Date;
|
|
15
15
|
onDateClick: (date: Date) => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -68,7 +68,7 @@ const checkIsToday = (currentDate: Date, today: Date | undefined) =>
|
|
|
68
68
|
const checkIsDisabled = (currentDate: Date, min: Date | undefined, max: Date | undefined) =>
|
|
69
69
|
(min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
|
|
70
70
|
|
|
71
|
-
const getDayStyles = (isToday
|
|
71
|
+
const getDayStyles = (isToday = false, isDisabled = false) =>
|
|
72
72
|
style(
|
|
73
73
|
'p-s text-center rounded-md border',
|
|
74
74
|
{
|
|
@@ -7,8 +7,8 @@ import { useDialogManager } from './useDialogManager';
|
|
|
7
7
|
import { useDialogsList } from './useDialogsList';
|
|
8
8
|
|
|
9
9
|
export const DialogManager = JSX(() => {
|
|
10
|
-
const handleCloseAll = useCallback((
|
|
11
|
-
for (const _ of
|
|
10
|
+
const handleCloseAll = useCallback((dialogActions: DialogOpenAction[]) => {
|
|
11
|
+
for (const _ of dialogActions) {
|
|
12
12
|
_?.onClose && _.onClose();
|
|
13
13
|
}
|
|
14
14
|
}, []);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const AmountWorkersField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={amountWorkers || []}
|
|
13
|
+
label="Количество работающих в организации"
|
|
14
|
+
fieldName="amountWorkers"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const EducationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: education } = useLeadFormData('EDUCATION_LEVEL');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={education || []}
|
|
13
|
+
label="Образование"
|
|
14
|
+
fieldName="education"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const EmployerActivitiesField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: employerActivities } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={employerActivities || []}
|
|
13
|
+
label="Вид деятельности организации-работодателя"
|
|
14
|
+
fieldName="employerActivities"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const EmployerOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: employerOrganization } = useLeadFormData('ORGANIZATION_KIND');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={employerOrganization || []}
|
|
13
|
+
label="Вид организации работодателя"
|
|
14
|
+
fieldName="employerOrganization"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const EmploymentField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: employment } = useLeadFormData('EMPLOYMENT_TYPE');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={employment || []}
|
|
13
|
+
label="Информация о трудоустройстве"
|
|
14
|
+
fieldName="employment"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const HousingField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: housing } = useLeadFormData('HOUSE_TYPE');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={housing || []}
|
|
13
|
+
label="Тип жилья"
|
|
14
|
+
fieldName="housing"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const OrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: organization } = useLeadFormData('ORGANIZATION_TYPE');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={organization || []}
|
|
13
|
+
label="Тип организации"
|
|
14
|
+
fieldName="organization"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
export const PositionOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
+
const { data: positionOrganization } = useLeadFormData('POSITION');
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SelectField
|
|
11
|
+
field={field}
|
|
12
|
+
source={positionOrganization || []}
|
|
13
|
+
label="Должность в организации"
|
|
14
|
+
fieldName="positionOrganization"
|
|
15
|
+
input={input}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
2
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
import { SelectControl } from '../Select/SelectControl';
|
|
4
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
5
|
+
import { validatorObj } from './getObjectValidator';
|
|
6
|
+
import { getValidation } from './getValidation';
|
|
7
|
+
|
|
8
|
+
export interface LeadProps {
|
|
9
|
+
type: string;
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
displayOrder: number;
|
|
13
|
+
description: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
|
|
17
|
+
source?: LeadProps[];
|
|
18
|
+
label: string;
|
|
19
|
+
fieldName: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const SelectField = UniBlock<SelectFieldProps>(
|
|
23
|
+
({ field, source, label, fieldName, input }) => {
|
|
24
|
+
const leadDescription = (source && source?.map((_: LeadProps) => _.description)) || [];
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<SelectControl
|
|
28
|
+
placeholder="Выберите из списка"
|
|
29
|
+
label={label}
|
|
30
|
+
options={arrayToOptions(leadDescription)}
|
|
31
|
+
{...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
|
|
32
|
+
/>
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const arrayToOptions = (array?: string[]) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
@@ -6,6 +6,7 @@ import { InputControl } from '../Input/InputControl';
|
|
|
6
6
|
import { AcquiringField } from './Fields/AcquiringField';
|
|
7
7
|
import { AddressBranchField } from './Fields/AddressBranchField';
|
|
8
8
|
import { AmountField } from './Fields/AmountField';
|
|
9
|
+
import { AmountWorkersField } from './Fields/AmountWorkersField';
|
|
9
10
|
import { AnnualRevenueField } from './Fields/AnnualRevenueField';
|
|
10
11
|
import { BankEmpoleeField } from './Fields/BankEmpoleeField';
|
|
11
12
|
import { BirthdayField } from './Fields/BirthdayField';
|
|
@@ -18,18 +19,25 @@ import { ConsentPhotoFlg } from './Fields/ConsentPhotoField';
|
|
|
18
19
|
import { ConsentProviderField } from './Fields/ConsentProviderField';
|
|
19
20
|
import { ConsentToReceiveMaterialsField } from './Fields/ConsentToReceiveMaterialsField';
|
|
20
21
|
import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
|
|
22
|
+
import { EducationField } from './Fields/EducationField';
|
|
21
23
|
import { EmailField } from './Fields/EmailField';
|
|
24
|
+
import { EmployerActivitiesField } from './Fields/EmployerActivitiesField';
|
|
25
|
+
import { EmployerOrganizationField } from './Fields/EmployerOrganizationField';
|
|
26
|
+
import { EmploymentField } from './Fields/EmploymentField';
|
|
22
27
|
import { FeedbackMethodField } from './Fields/FeedbackMethodField';
|
|
23
28
|
import { FeedbackTypeField } from './Fields/FeedbackTypeField';
|
|
24
29
|
import { FullNameField } from './Fields/FullNameField';
|
|
30
|
+
import { HousingField } from './Fields/HousingField';
|
|
25
31
|
import { InnField } from './Fields/InnField';
|
|
26
32
|
import { IsClientField } from './Fields/IsClientField';
|
|
27
33
|
import { LocalitiesField } from './Fields/LocalitiesField';
|
|
28
34
|
import { MiddleNameField } from './Fields/MiddleNameField';
|
|
29
35
|
import { NameField } from './Fields/NameField';
|
|
30
36
|
import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
37
|
+
import { OrganizationField } from './Fields/OrganizationField';
|
|
31
38
|
import { PartnerCommentsField } from './Fields/PartnerCommentsField';
|
|
32
39
|
import { PhoneField } from './Fields/PhoneField';
|
|
40
|
+
import { PositionOrganizationField } from './Fields/PositionOrganizationField';
|
|
33
41
|
import { PosTerminalField } from './Fields/PosTerminalField';
|
|
34
42
|
import { ProcessPersonalDataField } from './Fields/ProcessPersonalDataField';
|
|
35
43
|
import { ProductField } from './Fields/ProductField';
|
|
@@ -100,6 +108,14 @@ export const getField =
|
|
|
100
108
|
) : (
|
|
101
109
|
<RegionField field={field} input={input} url={getRegionUrl(typeForm)} />
|
|
102
110
|
),
|
|
111
|
+
education: <EducationField field={field} input={input} />,
|
|
112
|
+
housing: <HousingField field={field} input={input} />,
|
|
113
|
+
employment: <EmploymentField field={field} input={input} />,
|
|
114
|
+
organization: <OrganizationField field={field} input={input} />,
|
|
115
|
+
amountWorkers: <AmountWorkersField field={field} input={input} />,
|
|
116
|
+
employerActivities: <EmployerActivitiesField field={field} input={input} />,
|
|
117
|
+
employerOrganization: <EmployerOrganizationField field={field} input={input} />,
|
|
118
|
+
positionOrganization: <PositionOrganizationField field={field} input={input} />,
|
|
103
119
|
};
|
|
104
120
|
|
|
105
121
|
return isRenderField({ input, field }) ? (
|
|
@@ -19,6 +19,14 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
19
19
|
phone: phoneValidator,
|
|
20
20
|
secondaryPhone: phoneValidator,
|
|
21
21
|
birthday: defaultValidator,
|
|
22
|
+
education: defaultValidator,
|
|
23
|
+
housing: defaultValidator,
|
|
24
|
+
employment: defaultValidator,
|
|
25
|
+
organization: defaultValidator,
|
|
26
|
+
amountWorkers: defaultValidator,
|
|
27
|
+
employerActivities: defaultValidator,
|
|
28
|
+
employerOrganization: defaultValidator,
|
|
29
|
+
positionOrganization: defaultValidator,
|
|
22
30
|
email: defaultValidator,
|
|
23
31
|
fullName: nameValidator,
|
|
24
32
|
inn: innValidator,
|
|
@@ -10,7 +10,9 @@ export const PhoneInput = JSX<InputProps>(({ children, onChange, ...inputProps }
|
|
|
10
10
|
[onChange],
|
|
11
11
|
);
|
|
12
12
|
const handleBlur = useCallback((v: string) => {
|
|
13
|
-
v === '+7 ('
|
|
13
|
+
if (v === '+7 (') {
|
|
14
|
+
onChange && onChange('');
|
|
15
|
+
}
|
|
14
16
|
}, []);
|
|
15
17
|
|
|
16
18
|
return (
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
3
|
|
|
5
4
|
interface ProgressBarProps {
|
|
6
5
|
step?: number;
|
|
7
6
|
description?: string;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
export const ProgressBar = JSX<ProgressBarProps>(({ step = 10, description }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
<div className="relative">
|
|
19
|
-
<div className="absolute left-2/4 text-green">{progressPercent}%</div>
|
|
20
|
-
{description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
|
|
21
|
-
</div>
|
|
9
|
+
export const ProgressBar = JSX<ProgressBarProps>(({ step = 10, description }) => (
|
|
10
|
+
<div>
|
|
11
|
+
<div className="h-4 w-full bg-gray relative">
|
|
12
|
+
<div className="h-4 bg-green" style={{ width: `${step}%` }} />
|
|
13
|
+
</div>
|
|
14
|
+
<div className="relative">
|
|
15
|
+
<div className="absolute left-2/4 text-green">{step}%</div>
|
|
16
|
+
{description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
|
|
22
17
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
</div>
|
|
19
|
+
));
|
|
@@ -81,7 +81,7 @@ export const InputCode = JSX<InputCodeProps>(({ values, setValues, hasError }) =
|
|
|
81
81
|
);
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
const getInputStyle = (index: number, values: string[], hasError
|
|
84
|
+
const getInputStyle = (index: number, values: string[], hasError = false) => {
|
|
85
85
|
const isInputEmpty = !values[index];
|
|
86
86
|
|
|
87
87
|
return `w-16 h-20 text-3xl text-center p-2 m-2 border ${
|