@redneckz/wildless-cms-uni-blocks 0.14.876 → 0.14.878
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 +4 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +300 -157
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/bundle/hooks/useInn.d.ts +7 -0
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/bundle/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/bundle/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/bundle/retail/components/Fields/SelectField.d.ts +1 -0
- package/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/bundle/retail/inputs.d.ts +0 -2
- package/bundle/retail/model/LeadFormState.d.ts +0 -2
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/retail/validator/validators.d.ts +5 -3
- package/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/bundle/ui-kit/FormField/validators.d.ts +8 -1
- package/bundle/ui-kit/Select/Option.d.ts +6 -0
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/dist/api/LeadServiceAPI.d.ts +4 -0
- package/dist/api/LeadServiceAPI.js +13 -6
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/dist/hooks/useInn.d.ts +7 -0
- package/dist/hooks/useInn.js +11 -0
- package/dist/hooks/useInn.js.map +1 -0
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/api/dadataHints/dadataHints.js +11 -7
- package/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/dist/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/dist/retail/api/dadataHints/hintsListsOptions.js +17 -2
- package/dist/retail/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js +10 -2
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/dist/retail/components/DaDataInputControl/InputPopup.js +2 -2
- package/dist/retail/components/DaDataInputControl/InputPopup.js.map +1 -1
- package/dist/retail/components/DaDataInputControl/useInputPopup.js +1 -0
- package/dist/retail/components/DaDataInputControl/useInputPopup.js.map +1 -1
- package/dist/retail/components/Fields/BirthPlaceField.js +1 -1
- package/dist/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/dist/retail/components/Fields/ChildrenField.js +1 -1
- package/dist/retail/components/Fields/ChildrenField.js.map +1 -1
- package/dist/retail/components/Fields/CodeWordField.js +1 -1
- package/dist/retail/components/Fields/CodeWordField.js.map +1 -1
- package/dist/retail/components/Fields/DependentsField.js +1 -1
- package/dist/retail/components/Fields/DependentsField.js.map +1 -1
- package/dist/retail/components/Fields/DulIssueDateField.js +1 -1
- package/dist/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/dist/retail/components/Fields/DulIssuedByField.js +2 -2
- package/dist/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/dist/retail/components/Fields/DulSubdivisionCodeField.js +14 -1
- package/dist/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/retail/components/Fields/EmailField.js +1 -3
- package/dist/retail/components/Fields/EmailField.js.map +1 -1
- package/dist/retail/components/Fields/Experience5YearsField.js +1 -1
- package/dist/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/dist/retail/components/Fields/FamilyMembersField.js +2 -2
- package/dist/retail/components/Fields/FamilyMembersField.js.map +1 -1
- package/dist/retail/components/Fields/GeneralSeniorityField.js +12 -1
- package/dist/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/retail/components/Fields/JobsNumberField.js +1 -1
- package/dist/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/dist/retail/components/Fields/LastJobExperienceField.js +1 -1
- package/dist/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/retail/components/Fields/LegalFormField.js +1 -1
- package/dist/retail/components/Fields/LegalFormField.js.map +1 -1
- package/dist/retail/components/Fields/MandatoryPaymentsField.js +1 -1
- package/dist/retail/components/Fields/MandatoryPaymentsField.js.map +1 -1
- package/dist/retail/components/Fields/MiddleNameField.js +1 -1
- package/dist/retail/components/Fields/NameField.js +1 -1
- package/dist/retail/components/Fields/RetirementIncomeField.js +1 -1
- package/dist/retail/components/Fields/RetirementIncomeField.js.map +1 -1
- package/dist/retail/components/Fields/SelectField.d.ts +1 -0
- package/dist/retail/components/Fields/SelectField.js.map +1 -1
- package/dist/retail/components/Fields/SurnameField.js +1 -1
- package/dist/retail/components/Fields/WagesField.js +1 -1
- package/dist/retail/components/Fields/WagesField.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -4
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +3 -3
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/retail/inputs.d.ts +0 -2
- package/dist/retail/inputs.js +0 -4
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +0 -2
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/utils/calculateInputs.js +1 -1
- package/dist/retail/utils/calculateInputs.js.map +1 -1
- package/dist/retail/utils/updateOrganizationFields.js +1 -1
- package/dist/retail/utils/updateOrganizationFields.js.map +1 -1
- package/dist/retail/validator/getLimitedBirthdayValidation.js +2 -1
- package/dist/retail/validator/getLimitedBirthdayValidation.js.map +1 -1
- package/dist/retail/validator/getRetailFormValidator.js +3 -0
- package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/dist/retail/validator/validatorObj.js +4 -9
- package/dist/retail/validator/validatorObj.js.map +1 -1
- package/dist/retail/validator/validators.d.ts +5 -3
- package/dist/retail/validator/validators.js +27 -17
- package/dist/retail/validator/validators.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
- package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js → dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
- package/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
- package/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
- package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +12 -2
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +3 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +8 -1
- package/dist/ui-kit/FormField/validators.js +5 -2
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/Input/renderErrorText.js +1 -1
- package/dist/ui-kit/Input/renderErrorText.js.map +1 -1
- package/dist/ui-kit/Select/Option.d.ts +6 -0
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +27 -5
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/dist/ui-kit/Select/SelectPopup.js +4 -2
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/dist/ui-kit/Select/useSelectPopup.js +3 -2
- package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +4 -0
- package/lib/api/LeadServiceAPI.js +13 -6
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/lib/hooks/useInn.d.ts +7 -0
- package/lib/hooks/useInn.js +8 -0
- package/lib/hooks/useInn.js.map +1 -0
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/api/dadataHints/dadataHints.js +11 -7
- package/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/lib/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/lib/retail/api/dadataHints/hintsListsOptions.js +17 -2
- package/lib/retail/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js +10 -2
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/lib/retail/components/DaDataInputControl/InputPopup.js +3 -3
- package/lib/retail/components/DaDataInputControl/InputPopup.js.map +1 -1
- package/lib/retail/components/DaDataInputControl/useInputPopup.js +1 -0
- package/lib/retail/components/DaDataInputControl/useInputPopup.js.map +1 -1
- package/lib/retail/components/Fields/BirthPlaceField.js +1 -1
- package/lib/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/lib/retail/components/Fields/ChildrenField.js +1 -1
- package/lib/retail/components/Fields/ChildrenField.js.map +1 -1
- package/lib/retail/components/Fields/CodeWordField.js +1 -1
- package/lib/retail/components/Fields/CodeWordField.js.map +1 -1
- package/lib/retail/components/Fields/DependentsField.js +1 -1
- package/lib/retail/components/Fields/DependentsField.js.map +1 -1
- package/lib/retail/components/Fields/DulIssueDateField.js +1 -1
- package/lib/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/lib/retail/components/Fields/DulIssuedByField.js +2 -2
- package/lib/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/lib/retail/components/Fields/DulSubdivisionCodeField.js +15 -2
- package/lib/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/retail/components/Fields/EmailField.js +1 -3
- package/lib/retail/components/Fields/EmailField.js.map +1 -1
- package/lib/retail/components/Fields/Experience5YearsField.js +1 -1
- package/lib/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/lib/retail/components/Fields/FamilyMembersField.js +2 -2
- package/lib/retail/components/Fields/FamilyMembersField.js.map +1 -1
- package/lib/retail/components/Fields/GeneralSeniorityField.js +12 -1
- package/lib/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/retail/components/Fields/JobsNumberField.js +1 -1
- package/lib/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/lib/retail/components/Fields/LastJobExperienceField.js +1 -1
- package/lib/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/retail/components/Fields/LegalFormField.js +1 -1
- package/lib/retail/components/Fields/LegalFormField.js.map +1 -1
- package/lib/retail/components/Fields/MandatoryPaymentsField.js +1 -1
- package/lib/retail/components/Fields/MandatoryPaymentsField.js.map +1 -1
- package/lib/retail/components/Fields/MiddleNameField.js +1 -1
- package/lib/retail/components/Fields/NameField.js +1 -1
- package/lib/retail/components/Fields/RetirementIncomeField.js +1 -1
- package/lib/retail/components/Fields/RetirementIncomeField.js.map +1 -1
- package/lib/retail/components/Fields/SelectField.d.ts +1 -0
- package/lib/retail/components/Fields/SelectField.js.map +1 -1
- package/lib/retail/components/Fields/SurnameField.js +1 -1
- package/lib/retail/components/Fields/WagesField.js +1 -1
- package/lib/retail/components/Fields/WagesField.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -2
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/retail/inputs.d.ts +0 -2
- package/lib/retail/inputs.js +0 -4
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +0 -2
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/utils/calculateInputs.js +1 -1
- package/lib/retail/utils/calculateInputs.js.map +1 -1
- package/lib/retail/utils/updateOrganizationFields.js +1 -1
- package/lib/retail/utils/updateOrganizationFields.js.map +1 -1
- package/lib/retail/validator/getLimitedBirthdayValidation.js +2 -1
- package/lib/retail/validator/getLimitedBirthdayValidation.js.map +1 -1
- package/lib/retail/validator/getRetailFormValidator.js +4 -1
- package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/lib/retail/validator/validatorObj.js +5 -10
- package/lib/retail/validator/validatorObj.js.map +1 -1
- package/lib/retail/validator/validators.d.ts +5 -3
- package/lib/retail/validator/validators.js +22 -14
- package/lib/retail/validator/validators.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
- package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js → lib/ui-kit/FormField/Fields/FullRegionField.js} +4 -3
- package/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
- package/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
- package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +12 -2
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +8 -1
- package/lib/ui-kit/FormField/validators.js +3 -1
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/Input/renderErrorText.js +1 -1
- package/lib/ui-kit/Input/renderErrorText.js.map +1 -1
- package/lib/ui-kit/Select/Option.d.ts +6 -0
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +28 -6
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/lib/ui-kit/Select/SelectPopup.js +4 -2
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/lib/ui-kit/Select/useSelectPopup.js +3 -2
- package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/bundle/bundle.umd.js +300 -157
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/bundle/hooks/useInn.d.ts +7 -0
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/mobile/bundle/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/mobile/bundle/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/mobile/bundle/retail/inputs.d.ts +0 -2
- package/mobile/bundle/retail/model/LeadFormState.d.ts +0 -2
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/validator/validators.d.ts +5 -3
- package/mobile/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/mobile/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/bundle/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/dist/api/LeadServiceAPI.js +13 -6
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/mobile/dist/hooks/useInn.d.ts +7 -0
- package/mobile/dist/hooks/useInn.js +11 -0
- package/mobile/dist/hooks/useInn.js.map +1 -0
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/api/dadataHints/dadataHints.js +11 -7
- package/mobile/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/mobile/dist/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/mobile/dist/retail/api/dadataHints/hintsListsOptions.js +17 -2
- package/mobile/dist/retail/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js +10 -2
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/InputPopup.js +2 -2
- package/mobile/dist/retail/components/DaDataInputControl/InputPopup.js.map +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/useInputPopup.js +1 -0
- package/mobile/dist/retail/components/DaDataInputControl/useInputPopup.js.map +1 -1
- package/mobile/dist/retail/components/Fields/BirthPlaceField.js +1 -1
- package/mobile/dist/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/ChildrenField.js +1 -1
- package/mobile/dist/retail/components/Fields/ChildrenField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/CodeWordField.js +1 -1
- package/mobile/dist/retail/components/Fields/CodeWordField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DependentsField.js +1 -1
- package/mobile/dist/retail/components/Fields/DependentsField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulIssueDateField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulIssuedByField.js +2 -2
- package/mobile/dist/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulSubdivisionCodeField.js +14 -1
- package/mobile/dist/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/EmailField.js +1 -3
- package/mobile/dist/retail/components/Fields/EmailField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/Experience5YearsField.js +1 -1
- package/mobile/dist/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/FamilyMembersField.js +2 -2
- package/mobile/dist/retail/components/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/GeneralSeniorityField.js +12 -1
- package/mobile/dist/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/JobsNumberField.js +1 -1
- package/mobile/dist/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/LastJobExperienceField.js +1 -1
- package/mobile/dist/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/LegalFormField.js +1 -1
- package/mobile/dist/retail/components/Fields/LegalFormField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/MandatoryPaymentsField.js +1 -1
- package/mobile/dist/retail/components/Fields/MandatoryPaymentsField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/MiddleNameField.js +1 -1
- package/mobile/dist/retail/components/Fields/NameField.js +1 -1
- package/mobile/dist/retail/components/Fields/RetirementIncomeField.js +1 -1
- package/mobile/dist/retail/components/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/dist/retail/components/Fields/SelectField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/SurnameField.js +1 -1
- package/mobile/dist/retail/components/Fields/WagesField.js +1 -1
- package/mobile/dist/retail/components/Fields/WagesField.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -4
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +3 -3
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/retail/inputs.d.ts +0 -2
- package/mobile/dist/retail/inputs.js +0 -4
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +0 -2
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/utils/calculateInputs.js +1 -1
- package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/dist/retail/utils/updateOrganizationFields.js +1 -1
- package/mobile/dist/retail/utils/updateOrganizationFields.js.map +1 -1
- package/mobile/dist/retail/validator/getLimitedBirthdayValidation.js +2 -1
- package/mobile/dist/retail/validator/getLimitedBirthdayValidation.js.map +1 -1
- package/mobile/dist/retail/validator/getRetailFormValidator.js +3 -0
- package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/dist/retail/validator/validatorObj.js +4 -9
- package/mobile/dist/retail/validator/validatorObj.js.map +1 -1
- package/mobile/dist/retail/validator/validators.d.ts +5 -3
- package/mobile/dist/retail/validator/validators.js +27 -17
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
- package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{dist/ui-kit/FormField/Fields/RegionPremiumField.js → mobile/dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
- package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
- package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
- package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +12 -2
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/dist/ui-kit/FormField/validators.js +5 -2
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Input/renderErrorText.js +1 -1
- package/mobile/dist/ui-kit/Input/renderErrorText.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +27 -5
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/SelectPopup.js +4 -2
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.js +3 -2
- package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +4 -0
- package/mobile/lib/api/LeadServiceAPI.js +13 -6
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
- package/mobile/lib/hooks/useInn.d.ts +7 -0
- package/mobile/lib/hooks/useInn.js +8 -0
- package/mobile/lib/hooks/useInn.js.map +1 -0
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/api/dadataHints/dadataHints.js +11 -7
- package/mobile/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/retail/api/dadataHints/dadataHintsType.d.ts +10 -3
- package/mobile/lib/retail/api/dadataHints/hintsListsOptions.d.ts +2 -10
- package/mobile/lib/retail/api/dadataHints/hintsListsOptions.js +17 -2
- package/mobile/lib/retail/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js +10 -2
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/InputPopup.js +3 -3
- package/mobile/lib/retail/components/DaDataInputControl/InputPopup.js.map +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/useInputPopup.js +1 -0
- package/mobile/lib/retail/components/DaDataInputControl/useInputPopup.js.map +1 -1
- package/mobile/lib/retail/components/Fields/BirthPlaceField.js +1 -1
- package/mobile/lib/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/ChildrenField.js +1 -1
- package/mobile/lib/retail/components/Fields/ChildrenField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/CodeWordField.js +1 -1
- package/mobile/lib/retail/components/Fields/CodeWordField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DependentsField.js +1 -1
- package/mobile/lib/retail/components/Fields/DependentsField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulIssueDateField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulIssuedByField.js +2 -2
- package/mobile/lib/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulSubdivisionCodeField.js +15 -2
- package/mobile/lib/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/EmailField.js +1 -3
- package/mobile/lib/retail/components/Fields/EmailField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/Experience5YearsField.js +1 -1
- package/mobile/lib/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/FamilyMembersField.js +2 -2
- package/mobile/lib/retail/components/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/GeneralSeniorityField.js +12 -1
- package/mobile/lib/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/JobsNumberField.js +1 -1
- package/mobile/lib/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/LastJobExperienceField.js +1 -1
- package/mobile/lib/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/LegalFormField.js +1 -1
- package/mobile/lib/retail/components/Fields/LegalFormField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/MandatoryPaymentsField.js +1 -1
- package/mobile/lib/retail/components/Fields/MandatoryPaymentsField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/MiddleNameField.js +1 -1
- package/mobile/lib/retail/components/Fields/NameField.js +1 -1
- package/mobile/lib/retail/components/Fields/RetirementIncomeField.js +1 -1
- package/mobile/lib/retail/components/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/SelectField.d.ts +1 -0
- package/mobile/lib/retail/components/Fields/SelectField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/SurnameField.js +1 -1
- package/mobile/lib/retail/components/Fields/WagesField.js +1 -1
- package/mobile/lib/retail/components/Fields/WagesField.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -7
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -2
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +7 -0
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/retail/inputs.d.ts +0 -2
- package/mobile/lib/retail/inputs.js +0 -4
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +0 -2
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/utils/calculateInputs.js +1 -1
- package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/lib/retail/utils/updateOrganizationFields.js +1 -1
- package/mobile/lib/retail/utils/updateOrganizationFields.js.map +1 -1
- package/mobile/lib/retail/validator/getLimitedBirthdayValidation.js +2 -1
- package/mobile/lib/retail/validator/getLimitedBirthdayValidation.js.map +1 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.js +4 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/lib/retail/validator/validatorObj.js +5 -10
- package/mobile/lib/retail/validator/validatorObj.js.map +1 -1
- package/mobile/lib/retail/validator/validators.d.ts +5 -3
- package/mobile/lib/retail/validator/validators.js +22 -14
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
- package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
- package/{lib/ui-kit/FormField/Fields/RegionPremiumField.js → mobile/lib/ui-kit/FormField/Fields/FullRegionField.js} +4 -3
- package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
- package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
- package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +12 -2
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +8 -1
- package/mobile/lib/ui-kit/FormField/validators.js +3 -1
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Input/renderErrorText.js +1 -1
- package/mobile/lib/ui-kit/Input/renderErrorText.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Option.d.ts +6 -0
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +28 -6
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/SelectPopup.js +4 -2
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.js +3 -2
- package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +28 -3
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
- package/mobile/src/hooks/useInn.ts +16 -0
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +1 -1
- package/mobile/src/retail/api/dadataHints/dadataHints.ts +17 -6
- package/mobile/src/retail/api/dadataHints/dadataHintsType.ts +10 -3
- package/mobile/src/retail/api/dadataHints/hintsListsOptions.ts +20 -13
- package/mobile/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +15 -1
- package/mobile/src/retail/components/DaDataInputControl/InputPopup.tsx +5 -2
- package/mobile/src/retail/components/DaDataInputControl/useInputPopup.tsx +1 -0
- package/mobile/src/retail/components/Fields/BirthPlaceField.tsx +1 -0
- package/mobile/src/retail/components/Fields/ChildrenField.tsx +1 -0
- package/mobile/src/retail/components/Fields/CodeWordField.tsx +6 -1
- package/mobile/src/retail/components/Fields/DependentsField.tsx +1 -0
- package/mobile/src/retail/components/Fields/DulIssueDateField.tsx +1 -0
- package/mobile/src/retail/components/Fields/DulIssuedByField.tsx +2 -1
- package/mobile/src/retail/components/Fields/DulSubdivisionCodeField.tsx +21 -3
- package/mobile/src/retail/components/Fields/EmailField.tsx +8 -3
- package/mobile/src/retail/components/Fields/Experience5YearsField.tsx +2 -2
- package/mobile/src/retail/components/Fields/FamilyMembersField.tsx +2 -2
- package/mobile/src/retail/components/Fields/GeneralSeniorityField.tsx +28 -11
- package/mobile/src/retail/components/Fields/JobsNumberField.tsx +1 -0
- package/mobile/src/retail/components/Fields/LastJobExperienceField.tsx +1 -0
- package/mobile/src/retail/components/Fields/LegalFormField.tsx +1 -0
- package/mobile/src/retail/components/Fields/MandatoryPaymentsField.tsx +2 -0
- package/mobile/src/retail/components/Fields/MiddleNameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/NameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/RetirementIncomeField.tsx +2 -0
- package/mobile/src/retail/components/Fields/SelectField.tsx +1 -0
- package/mobile/src/retail/components/Fields/SurnameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/WagesField.tsx +2 -0
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +5 -9
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +9 -1
- package/mobile/src/retail/inputs.tsx +0 -4
- package/mobile/src/retail/model/LeadFormState.ts +0 -2
- package/mobile/src/retail/model/NameFieldDef.ts +0 -2
- package/mobile/src/retail/utils/calculateInputs.ts +1 -1
- package/mobile/src/retail/utils/updateOrganizationFields.ts +1 -1
- package/mobile/src/retail/validator/getLimitedBirthdayValidation.ts +2 -1
- package/mobile/src/retail/validator/getRetailFormValidator.ts +9 -1
- package/mobile/src/retail/validator/validatorObj.ts +4 -12
- package/mobile/src/retail/validator/validators.ts +47 -28
- package/mobile/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
- package/mobile/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
- package/mobile/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +15 -2
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/mobile/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
- package/mobile/src/ui-kit/FormField/validators.ts +13 -1
- package/mobile/src/ui-kit/Input/renderErrorText.tsx +1 -1
- package/mobile/src/ui-kit/Select/Option.ts +6 -0
- package/mobile/src/ui-kit/Select/Select.tsx +71 -17
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +20 -2
- package/mobile/src/ui-kit/Select/useSelectPopup.tsx +4 -0
- package/package.json +2 -2
- package/src/api/LeadServiceAPI.ts +28 -3
- package/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +47 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +47 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
- package/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
- package/src/hooks/useInn.ts +16 -0
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/retail/adaptors/getPersonalInfoData.tsx +1 -1
- package/src/retail/api/dadataHints/dadataHints.ts +17 -6
- package/src/retail/api/dadataHints/dadataHintsType.ts +10 -3
- package/src/retail/api/dadataHints/hintsListsOptions.ts +20 -13
- package/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +15 -1
- package/src/retail/components/DaDataInputControl/InputPopup.tsx +5 -2
- package/src/retail/components/DaDataInputControl/useInputPopup.tsx +1 -0
- package/src/retail/components/Fields/BirthPlaceField.tsx +1 -0
- package/src/retail/components/Fields/ChildrenField.tsx +1 -0
- package/src/retail/components/Fields/CodeWordField.tsx +6 -1
- package/src/retail/components/Fields/DependentsField.tsx +1 -0
- package/src/retail/components/Fields/DulIssueDateField.tsx +1 -0
- package/src/retail/components/Fields/DulIssuedByField.tsx +2 -1
- package/src/retail/components/Fields/DulSubdivisionCodeField.tsx +21 -3
- package/src/retail/components/Fields/EmailField.tsx +8 -3
- package/src/retail/components/Fields/Experience5YearsField.tsx +2 -2
- package/src/retail/components/Fields/FamilyMembersField.tsx +2 -2
- package/src/retail/components/Fields/GeneralSeniorityField.tsx +28 -11
- package/src/retail/components/Fields/JobsNumberField.tsx +1 -0
- package/src/retail/components/Fields/LastJobExperienceField.tsx +1 -0
- package/src/retail/components/Fields/LegalFormField.tsx +1 -0
- package/src/retail/components/Fields/MandatoryPaymentsField.tsx +2 -0
- package/src/retail/components/Fields/MiddleNameField.tsx +1 -1
- package/src/retail/components/Fields/NameField.tsx +1 -1
- package/src/retail/components/Fields/RetirementIncomeField.tsx +2 -0
- package/src/retail/components/Fields/SelectField.tsx +1 -0
- package/src/retail/components/Fields/SurnameField.tsx +1 -1
- package/src/retail/components/Fields/WagesField.tsx +2 -0
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +5 -9
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +9 -1
- package/src/retail/inputs.tsx +0 -4
- package/src/retail/model/LeadFormState.ts +0 -2
- package/src/retail/model/NameFieldDef.ts +0 -2
- package/src/retail/utils/calculateInputs.ts +1 -1
- package/src/retail/utils/updateOrganizationFields.ts +1 -1
- package/src/retail/validator/getLimitedBirthdayValidation.ts +2 -1
- package/src/retail/validator/getRetailFormValidator.ts +9 -1
- package/src/retail/validator/validatorObj.ts +4 -12
- package/src/retail/validator/validators.ts +47 -28
- package/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
- package/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
- package/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
- package/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/src/ui-kit/FormField/getField.tsx +15 -2
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
- package/src/ui-kit/FormField/validators.ts +13 -1
- package/src/ui-kit/Input/renderErrorText.tsx +1 -1
- package/src/ui-kit/Select/Option.ts +6 -0
- package/src/ui-kit/Select/Select.tsx +71 -17
- package/src/ui-kit/Select/SelectPopup.tsx +20 -2
- package/src/ui-kit/Select/useSelectPopup.tsx +4 -0
- package/bundle/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/bundle/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/dist/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/dist/retail/components/Fields/ExpensesField.js +0 -7
- package/dist/retail/components/Fields/ExpensesField.js.map +0 -1
- package/dist/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/dist/retail/components/Fields/TotalIncomeField.js +0 -7
- package/dist/retail/components/Fields/TotalIncomeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/lib/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/lib/retail/components/Fields/ExpensesField.js +0 -5
- package/lib/retail/components/Fields/ExpensesField.js.map +0 -1
- package/lib/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/lib/retail/components/Fields/TotalIncomeField.js +0 -5
- package/lib/retail/components/Fields/TotalIncomeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/mobile/bundle/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/mobile/bundle/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/dist/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/mobile/dist/retail/components/Fields/ExpensesField.js +0 -7
- package/mobile/dist/retail/components/Fields/ExpensesField.js.map +0 -1
- package/mobile/dist/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/dist/retail/components/Fields/TotalIncomeField.js +0 -7
- package/mobile/dist/retail/components/Fields/TotalIncomeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/mobile/lib/retail/components/Fields/ExpensesField.d.ts +0 -2
- package/mobile/lib/retail/components/Fields/ExpensesField.js +0 -5
- package/mobile/lib/retail/components/Fields/ExpensesField.js.map +0 -1
- package/mobile/lib/retail/components/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/lib/retail/components/Fields/TotalIncomeField.js +0 -5
- package/mobile/lib/retail/components/Fields/TotalIncomeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
- package/mobile/src/retail/components/Fields/ExpensesField.tsx +0 -13
- package/mobile/src/retail/components/Fields/TotalIncomeField.tsx +0 -13
- package/src/retail/components/Fields/ExpensesField.tsx +0 -13
- package/src/retail/components/Fields/TotalIncomeField.tsx +0 -13
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
2
|
import { type ApplicationFormContent } from './ApplicationFormContent';
|
|
3
|
-
interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
3
|
+
export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ApplicationForm: import("
|
|
6
|
-
export {};
|
|
5
|
+
export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
|
|
@@ -54,11 +54,15 @@ declare type productType = {
|
|
|
54
54
|
/** @title Продукт */
|
|
55
55
|
product?: string;
|
|
56
56
|
};
|
|
57
|
+
declare type premiumForm = {
|
|
58
|
+
/** @title Форма для премиума */
|
|
59
|
+
isPremium?: boolean;
|
|
60
|
+
};
|
|
57
61
|
/**
|
|
58
62
|
* @title Отображать выбор продукта
|
|
59
63
|
* @default { "showProduct": "" }
|
|
60
64
|
*/
|
|
61
|
-
declare type additionalParamsType = hideProductDef | showProductDef;
|
|
65
|
+
export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
|
|
62
66
|
/**
|
|
63
67
|
* @title Форма заявки настраиваемая
|
|
64
68
|
*/
|
|
@@ -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';
|
|
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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Nullable } from '@redneckz/uni-jsx/lib/utils/ts/Nullable';
|
|
2
|
-
import { type HintOption } from './hintsListsOptions';
|
|
3
2
|
export interface DaDataSuggestion {
|
|
4
3
|
value: string;
|
|
5
4
|
unrestricted_value: string;
|
|
6
5
|
data: DaDataResponseItem;
|
|
7
6
|
processedValue: string;
|
|
7
|
+
additionalValue?: string;
|
|
8
8
|
}
|
|
9
9
|
declare type DaDataGender = 'MALE' | 'FEMALE' | 'UNKNOWN';
|
|
10
10
|
declare type DaDataQC = '0' | '1';
|
|
@@ -62,7 +62,14 @@ export interface ListRequestOption {
|
|
|
62
62
|
url: string;
|
|
63
63
|
query?: string;
|
|
64
64
|
queryPrefix?: string;
|
|
65
|
-
requestData?:
|
|
66
|
-
|
|
65
|
+
requestData?: {
|
|
66
|
+
parts?: string[];
|
|
67
|
+
gender?: string;
|
|
68
|
+
};
|
|
69
|
+
responseItemHandler?: (item?: DaDataSuggestion) => {
|
|
70
|
+
value: string;
|
|
71
|
+
additionalValue?: string;
|
|
72
|
+
};
|
|
73
|
+
responseFilter?: (item?: DaDataSuggestion) => boolean;
|
|
67
74
|
}
|
|
68
75
|
export {};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare type HintsListOptions = Record<string,
|
|
1
|
+
import { type ListRequestOption } from './dadataHintsType';
|
|
2
|
+
export declare type HintsListOptions = Record<string, ListRequestOption>;
|
|
3
3
|
export declare const hintsListsOptions: HintsListOptions;
|
|
4
|
-
export declare type HintOption = {
|
|
5
|
-
url: string;
|
|
6
|
-
requestData?: {
|
|
7
|
-
parts?: string[];
|
|
8
|
-
gender?: string;
|
|
9
|
-
};
|
|
10
|
-
responseItemHandler?: (item?: DaDataSuggestion) => string;
|
|
11
|
-
};
|
|
@@ -8,5 +8,6 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps, Label
|
|
|
8
8
|
source?: DictionaryItem[];
|
|
9
9
|
fieldName: string;
|
|
10
10
|
isSearch?: boolean;
|
|
11
|
+
isManualInput?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const SelectField: import("../../../UniBlock/UniBlock").UniBlockComponent<SelectFieldProps>;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import type { OnCloseProps } from '../../../model/OnCloseProps';
|
|
2
|
-
export declare const TIME_TO_RESEND = 180;
|
|
3
2
|
export interface VerifyPhoneDialogProps extends OnCloseProps {
|
|
4
3
|
phone: string;
|
|
5
4
|
withDescription?: boolean;
|
|
6
5
|
consents?: string[];
|
|
7
6
|
onSuccess?: (smsCode?: string) => void;
|
|
8
7
|
}
|
|
9
|
-
export interface SmsCodeStore {
|
|
10
|
-
smsCode: {
|
|
11
|
-
sendTime?: number;
|
|
12
|
-
attempts?: number;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
8
|
export declare const VerifyPhoneDialog: import("@redneckz/uni-jsx").UNIComponent<VerifyPhoneDialogProps, any, any>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
export declare const TIME_TO_RESEND = 180;
|
|
1
2
|
declare type useVerifyPhoneDialogSubmitProps = {
|
|
2
3
|
values: string[];
|
|
3
4
|
onSuccess?: (smsCode?: string) => void;
|
|
4
5
|
};
|
|
6
|
+
export interface SmsCodeStore {
|
|
7
|
+
smsCode: {
|
|
8
|
+
sendTime?: number;
|
|
9
|
+
attempts?: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
5
12
|
export declare const useVerifyPhoneDialogSubmit: ({ values, onSuccess, }: useVerifyPhoneDialogSubmitProps) => {
|
|
6
13
|
handleSubmit: () => Promise<void>;
|
|
7
14
|
hasError: boolean;
|
|
@@ -48,8 +48,6 @@ export declare const InputsRetailMap: {
|
|
|
48
48
|
familyMembers: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
49
49
|
children: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
50
50
|
dependents: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
51
|
-
totalIncome: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
52
|
-
expenses: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
53
51
|
snils: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
54
52
|
conscription: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
55
53
|
armyIdFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -141,8 +141,6 @@ export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType
|
|
|
141
141
|
familyMembers?: string;
|
|
142
142
|
children?: string;
|
|
143
143
|
dependents?: string;
|
|
144
|
-
totalIncome?: string;
|
|
145
|
-
expenses?: number;
|
|
146
144
|
snils?: string;
|
|
147
145
|
conscription?: Option;
|
|
148
146
|
armyIdFlg?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type NameFieldApplicationBaseDef = 'surname' | 'name' | 'middleName' | 'limitedBirthday' | 'email' | 'phone' | 'inn';
|
|
2
2
|
declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentInformMaterialsFlg' | 'consentPhotoFlg' | 'consentFATCA';
|
|
3
3
|
declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate' | 'regionHasDelivery' | 'latinName' | 'latinSurname';
|
|
4
|
-
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | '
|
|
4
|
+
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'initiateBankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
|
|
5
5
|
export declare type NameFieldDef = NameFieldApplicationBaseDef | NameFieldConsentDef | NameFieldRetailDef | NameFieldCreditCardDef;
|
|
6
6
|
export {};
|
|
@@ -10,11 +10,13 @@ export declare const addressOrganizationValidator: () => import("../../validatio
|
|
|
10
10
|
export declare const codeWordValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
11
11
|
export declare const nameRetailValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
12
12
|
export declare const jobNumberValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
13
|
-
export declare const lengthStringValidator: (inputLength: number, errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
13
|
+
export declare const lengthStringValidator: (inputLength: number, errorMsg?: string, isFixLength?: boolean) => import("../../validation/validator").Validator<any>;
|
|
14
14
|
export declare const limitedBirthdayValidator: (params: LimitedBirthdayValidationParams) => import("../../validation/validator").Validator<Date | undefined>;
|
|
15
15
|
export declare const passportValidator: (birthDate?: Date) => import("../../validation/validator").Validator<any>;
|
|
16
16
|
export declare const deliveryDateValidator: (errorMsg: string) => import("../../validation/validator").Validator<any>;
|
|
17
17
|
export declare const notLaterDateValidator: (errorMsg: string) => import("../../validation/validator").Validator<any>;
|
|
18
|
-
export declare const numberValidator: (errorMsg: string) => import("../../validation/validator").Validator<any>;
|
|
19
|
-
export declare const serieValidator: (errorMsg: string) => import("../../validation/validator").Validator<any>;
|
|
20
18
|
export declare const snilsValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
19
|
+
export declare const generalSeniorityValidator: (lastJobExperience: string) => import("../../validation/validator").Validator<any>;
|
|
20
|
+
export declare const workBeginDateValidator: (birthDate?: Date) => import("../../validation/validator").Validator<any>;
|
|
21
|
+
export declare const dateRegistrationValidator: (birthDate?: Date) => import("../../validation/validator").Validator<any>;
|
|
22
|
+
export declare const validateDateFromBirth: (age: number, birthDate?: Date) => (message: string) => import("../../validation/validator").Validator<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JSONRefObject } from '../../../data/JSONRefObject';
|
|
2
|
+
import type { UniBlockProps } from '../../../UniBlock/UniBlockProps';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
export interface PartnerSymbolCodeFieldProps extends CustomFieldProps, UniBlockProps {
|
|
5
|
+
source?: JSONRefObject & {
|
|
6
|
+
agentsList?: AgentType[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare type AgentType = {
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
symbolCode?: string;
|
|
12
|
+
ID?: string;
|
|
13
|
+
agentName?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const PartnerSymbolCodeField: import("../../../UniBlock/UniBlock").UniBlockComponent<PartnerSymbolCodeFieldProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | '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';
|
|
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' | 'innDadata' | 'companyNameByInn';
|
|
2
2
|
export declare type NameFieldDef = NameFieldApplicationDef;
|
|
3
3
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ColumnsCount } from '../../model/ColumnCount';
|
|
2
|
-
export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "" | "@xl:grid-cols-
|
|
2
|
+
export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "@xl:grid-cols-2" | "@xl:grid-cols-1 gap-x-0";
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
interface DadataItem {
|
|
2
|
+
text?: string;
|
|
3
|
+
key?: string;
|
|
4
|
+
innDaData?: any;
|
|
5
|
+
}
|
|
1
6
|
export declare const defaultValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
2
7
|
export declare const defaultSelectValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
3
8
|
export declare const nameValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
|
|
4
|
-
export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<
|
|
9
|
+
export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
10
|
+
export declare const innDadataValidator: (errorMsg: string) => import("../../validation/validator").Validator<DadataItem>;
|
|
5
11
|
export declare const phoneValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
6
12
|
export declare const phoneOptionalValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
7
13
|
export declare const agreementValidator: import("../../validation/validator").Validator<any>;
|
|
8
14
|
export declare const emailValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
|
|
15
|
+
export {};
|
|
@@ -7,6 +7,8 @@ export interface SelectProps extends DefaultControlType, ControlProps<Option> {
|
|
|
7
7
|
valid?: boolean;
|
|
8
8
|
isBorder?: boolean;
|
|
9
9
|
isSearch?: boolean;
|
|
10
|
+
isManualInput?: boolean;
|
|
10
11
|
iconVersion?: IconVersion;
|
|
12
|
+
onSearchQuery?: (value: string) => void;
|
|
11
13
|
}
|
|
12
14
|
export declare const Select: import("@redneckz/uni-jsx").UNIComponent<SelectProps, any, any>;
|
|
@@ -8,5 +8,6 @@ export interface SelectPopupProps extends ControlProps<Option> {
|
|
|
8
8
|
current: HTMLDivElement | null;
|
|
9
9
|
};
|
|
10
10
|
query?: string;
|
|
11
|
+
onChangeQuery?: (value: string) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const SelectPopup: import("@redneckz/uni-jsx").UNIComponent<SelectPopupProps, any, any>;
|
|
@@ -2,8 +2,9 @@ import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
|
2
2
|
import { type SelectPopupProps } from './SelectPopup';
|
|
3
3
|
interface SelectPopupOptions extends SelectPopupProps, OnCloseProps {
|
|
4
4
|
isOpen?: boolean;
|
|
5
|
+
onChangeQuery?: (value: string) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }: SelectPopupOptions): {
|
|
7
|
+
export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, onChangeQuery, }: SelectPopupOptions): {
|
|
7
8
|
current: HTMLDivElement | null;
|
|
8
9
|
};
|
|
9
10
|
export {};
|
|
@@ -5,7 +5,11 @@ export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null>
|
|
|
5
5
|
phone?: string;
|
|
6
6
|
email?: string;
|
|
7
7
|
inn?: string;
|
|
8
|
+
innDadata?: string;
|
|
9
|
+
fullRegion?: string;
|
|
8
10
|
secondaryPhoneNumber?: string;
|
|
11
|
+
partnerSymbolCode?: string;
|
|
12
|
+
companyNameByInn?: string;
|
|
9
13
|
};
|
|
10
14
|
export declare function LeadServiceAPI(): {
|
|
11
15
|
send: (body: LeadRequest, isIndividualType?: boolean) => Promise<any>;
|
|
@@ -5,7 +5,7 @@ const formatPhone_1 = require("../utils/formatPhone");
|
|
|
5
5
|
const apiBaseUrl_1 = require("./apiBaseUrl");
|
|
6
6
|
function LeadServiceAPI() {
|
|
7
7
|
async function send(body, isIndividualType = false) {
|
|
8
|
-
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
8
|
+
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, innDadata, fullRegion, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, partnerSymbolCode, companyNameByInn, ...staticBody } = body;
|
|
9
9
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
10
10
|
const url = `${apiBaseUrl_1.API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
11
11
|
const submitBody = {
|
|
@@ -23,6 +23,7 @@ function LeadServiceAPI() {
|
|
|
23
23
|
applicationDate,
|
|
24
24
|
...getSecondaryPhone(secondaryPhone),
|
|
25
25
|
}),
|
|
26
|
+
...formatPFForm(typeForm, { innDadata, fullRegion, partnerSymbolCode, companyNameByInn }),
|
|
26
27
|
...staticBody,
|
|
27
28
|
};
|
|
28
29
|
try {
|
|
@@ -54,9 +55,15 @@ const getRegion = (region, isNaturalPerson = true) => ({
|
|
|
54
55
|
const getEmail = (email, isNaturalPerson = true) => ({
|
|
55
56
|
[isNaturalPerson ? 'email' : 'mail']: email,
|
|
56
57
|
});
|
|
57
|
-
const getSecondaryPhone = (secondaryPhone = '') =>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
const getSecondaryPhone = (secondaryPhone = '') => !secondaryPhone || secondaryPhone === '+7 ('
|
|
59
|
+
? {}
|
|
60
|
+
: { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
|
|
61
|
+
const formatPFForm = (typeForm, data) => typeForm === 'PF'
|
|
62
|
+
? {
|
|
63
|
+
inn: data?.innDadata,
|
|
64
|
+
region: data?.fullRegion,
|
|
65
|
+
partnerComments: data?.partnerSymbolCode,
|
|
66
|
+
fullname: data?.companyNameByInn,
|
|
67
|
+
}
|
|
68
|
+
: {};
|
|
62
69
|
//# sourceMappingURL=LeadServiceAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sDAAmD;AACnD,6CAA4C;
|
|
1
|
+
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
2
|
import { type ApplicationFormContent } from './ApplicationFormContent';
|
|
3
|
-
interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
3
|
+
export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ApplicationForm: import("
|
|
6
|
-
export {};
|
|
5
|
+
export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.ApplicationForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
4
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
5
|
const LeadServiceAPI_1 = require("../../api/LeadServiceAPI");
|
|
7
6
|
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
@@ -15,13 +14,14 @@ const getObjectValidator_1 = require("../../ui-kit/FormField/getObjectValidator"
|
|
|
15
14
|
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
16
15
|
const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
|
|
17
16
|
const ResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/ResponseTypeDialog");
|
|
17
|
+
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
18
18
|
const style_1 = require("../../utils/style");
|
|
19
19
|
const getFormatData_1 = require("./getFormatData");
|
|
20
20
|
const getInitialFormState_1 = require("./getInitialFormState");
|
|
21
21
|
const renderAgreementSubmit_1 = require("./renderAgreementSubmit");
|
|
22
22
|
const renderContacts_1 = require("./renderContacts");
|
|
23
23
|
const API = (0, LeadServiceAPI_1.LeadServiceAPI)();
|
|
24
|
-
exports.ApplicationForm = (0,
|
|
24
|
+
exports.ApplicationForm = (0, UniBlock_1.UniBlock)(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
|
|
25
25
|
const inputs = (0, hooks_1.useMemo)(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
26
26
|
const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm), [inputs, typeForm]);
|
|
27
27
|
const formValidator = (0, hooks_1.useMemo)(() => (0, getObjectValidator_1.getFormValidator)(inputs), [inputs]);
|
|
@@ -41,6 +41,7 @@ exports.ApplicationForm = (0, uni_jsx_1.JSX)(({ className, title, typeForm = '',
|
|
|
41
41
|
onSubmit: handleSubmit,
|
|
42
42
|
});
|
|
43
43
|
const fieldName = (0, getConsentDataProcessing_1.getConsentDataProcessing)(inputs)?.name;
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [sections
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
|
|
45
45
|
});
|
|
46
|
+
const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
|
|
46
47
|
//# sourceMappingURL=ApplicationForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";;;AAAA,uDAAmE;AACnE,6DAA0D;AAC1D,wEAAqE;AACrE,kEAA+D;AAC/D,yDAAgF;AAGhF,oGAAiG;AACjG,oEAAiE;AACjE,8FAA2F;AAC3F,8DAA2D;AAC3D,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AAEjE,2FAAwF;AACxF,sDAAmD;AAEnD,6CAA0C;AAM1C,mDAAgD;AAChD,+DAA4E;AAC5E,mEAAgE;AAChE,qDAAkD;AASlD,MAAM,GAAG,GAAG,IAAA,+BAAc,GAAE,CAAC;AAEhB,QAAA,eAAe,GAAG,IAAA,mBAAQ,EACrC,CAAC,EACC,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,EAC/D,CAAC,QAAQ,CAAC,CACX,CAAC;IACF,MAAM,gBAAgB,GAAG,IAAA,eAAO,EAC9B,GAAG,EAAE,CAAC,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,EAC3C,CAAC,MAAM,EAAE,QAAQ,CAAC,CACnB,CAAC;IAEF,MAAM,aAAa,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,qCAAgB,EAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAExE,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAAC,uCAAkB,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,KAAK,EAAE,QAAmB,EAAE,EAA8B,EAAE,EAAE;QAC5D,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;QACvE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC;QAEpE,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC1C,IAAI,EAAE,EAAE;YACN,IAAA,6BAAa,EAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;SACzD;IACH,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE;QACxD,aAAa,EAAE,IAAI;QACnB,aAAa;QACb,QAAQ,EAAE,YAAY;KACvB,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,IAAA,mDAAwB,EAAC,MAAM,CAAC,EAAE,IAAI,CAAC;IAEzD,OAAO,CACL,wBAAC,6CAAqB,IACpB,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,KACR,IAAI,aAER,kCAAM,QAAQ,EAAE,QAAQ,aACrB,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,EAC/D,IAAA,6CAAqB,EACpB,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,EACtD,IAAI,EACJ,MAAM,CACP,IACI,EACN,UAAU,CAAC,CAAC,CAAC,IAAA,+BAAc,GAAE,CAAC,CAAC,CAAC,IAAI,IACf,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CACrB,QAAyB,EACzB,KAA+C,EAC/C,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAClD,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACrF,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC,KAF7E,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
|
|
@@ -54,11 +54,15 @@ declare type productType = {
|
|
|
54
54
|
/** @title Продукт */
|
|
55
55
|
product?: string;
|
|
56
56
|
};
|
|
57
|
+
declare type premiumForm = {
|
|
58
|
+
/** @title Форма для премиума */
|
|
59
|
+
isPremium?: boolean;
|
|
60
|
+
};
|
|
57
61
|
/**
|
|
58
62
|
* @title Отображать выбор продукта
|
|
59
63
|
* @default { "showProduct": "" }
|
|
60
64
|
*/
|
|
61
|
-
declare type additionalParamsType = hideProductDef | showProductDef;
|
|
65
|
+
export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
|
|
62
66
|
/**
|
|
63
67
|
* @title Форма заявки настраиваемая
|
|
64
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useInn = void 0;
|
|
3
|
+
const dadataHints_1 = require("../retail/api/dadataHints/dadataHints");
|
|
4
|
+
const INN_DADATA_URL = 'suggest/party';
|
|
5
|
+
const useInn = async (searchQuery) => (await (0, dadataHints_1.getDaDataHints)({ url: INN_DADATA_URL, query: searchQuery })).map((_) => ({
|
|
6
|
+
fullName: _?.value,
|
|
7
|
+
address: _?.data?.address?.value,
|
|
8
|
+
inn: _?.data?.inn,
|
|
9
|
+
}));
|
|
10
|
+
exports.useInn = useInn;
|
|
11
|
+
//# sourceMappingURL=useInn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInn.js","sourceRoot":"","sources":["../../src/hooks/useInn.ts"],"names":[],"mappings":";;AAAA,uEAAuE;AAEvE,MAAM,cAAc,GAAG,eAAe,CAAC;AAQhC,MAAM,MAAM,GAAG,KAAK,EAAE,WAAmB,EAAsB,EAAE,CACtE,CAAC,MAAM,IAAA,4BAAc,EAAC,EAAE,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9E,QAAQ,EAAE,CAAC,EAAE,KAAK;IAClB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK;IAChC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG;CAClB,CAAC,CAAC,CAAC;AALO,QAAA,MAAM,UAKb"}
|
|
@@ -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';
|
|
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';
|
|
@@ -15,7 +15,7 @@ const getPersonalInfoData = (formData) => {
|
|
|
15
15
|
dulIssuedBy,
|
|
16
16
|
dulNumber,
|
|
17
17
|
dulSerie,
|
|
18
|
-
dulSubdivisionCode,
|
|
18
|
+
dulSubdivisionCode: dulSubdivisionCode?.replace('-', ''),
|
|
19
19
|
educationLevelCd: education,
|
|
20
20
|
registrationDate: participantDateRegistration
|
|
21
21
|
? (0, formatDate_1.formatDate)(participantDateRegistration, true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPersonalInfoData.js","sourceRoot":"","sources":["../../../src/retail/adaptors/getPersonalInfoData.tsx"],"names":[],"mappings":";;AAAA,uDAAoD;AACpD,yDAAsD;AAGtD,mCAA0E;AAEnE,MAAM,mBAAmB,GAAG,CAAC,QAAuB,EAAwB,EAAE;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,GAAG,EAAE,EACpB,KAAK,GAAG,EAAE,EACV,KAAK,EACL,GAAG,EACH,UAAU,EACV,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,SAAS,EAAE,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;QAC5C,OAAO,EAAE,UAAU;QACnB,IAAI;QACJ,OAAO;QACP,UAAU;QACV,YAAY,EAAE,IAAA,uBAAU,EAAC,YAAY,EAAE,IAAI,CAAC;QAC5C,WAAW;QACX,SAAS;QACT,QAAQ;QACR,kBAAkB;
|
|
1
|
+
{"version":3,"file":"getPersonalInfoData.js","sourceRoot":"","sources":["../../../src/retail/adaptors/getPersonalInfoData.tsx"],"names":[],"mappings":";;AAAA,uDAAoD;AACpD,yDAAsD;AAGtD,mCAA0E;AAEnE,MAAM,mBAAmB,GAAG,CAAC,QAAuB,EAAwB,EAAE;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,GAAG,EAAE,EACpB,KAAK,GAAG,EAAE,EACV,KAAK,EACL,GAAG,EACH,UAAU,EACV,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,SAAS,EAAE,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;QAC5C,OAAO,EAAE,UAAU;QACnB,IAAI;QACJ,OAAO;QACP,UAAU;QACV,YAAY,EAAE,IAAA,uBAAU,EAAC,YAAY,EAAE,IAAI,CAAC;QAC5C,WAAW;QACX,SAAS;QACT,QAAQ;QACR,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACxD,gBAAgB,EAAE,SAAS;QAC3B,gBAAgB,EAAE,2BAA2B;YAC3C,CAAC,CAAC,IAAA,uBAAU,EAAC,2BAA2B,EAAE,IAAI,CAAC;YAC/C,CAAC,CAAC,SAAS;QACb,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,OAAO;QACpB,mBAAmB,EAAE,IAAA,8BAAsB,EAAC;YAC1C,KAAK,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC;YACzB,KAAK;SACN,CAAC;QACF,oBAAoB,EAAE,IAAA,+BAAuB,EAAC,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAC;QACnF,QAAQ,EAAE,GAAG;YACX,CAAC,CAAC;gBACE,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;aACtC;YACH,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC,CAAC;AAnDW,QAAA,mBAAmB,uBAmD9B"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getDaDataHints = void 0;
|
|
3
3
|
const DEFAULT_HINTS_COUNT = 10;
|
|
4
|
-
const defaultResponseItemHandler = (item) =>
|
|
5
|
-
|
|
4
|
+
const defaultResponseItemHandler = (item) => ({
|
|
5
|
+
value: item?.value || '',
|
|
6
|
+
});
|
|
7
|
+
const getResponseHandler = (itemHandler, responseFilter) => (response) => {
|
|
6
8
|
const responseData = response?.suggestions || [];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
const filteredData = responseFilter ? responseData.filter(responseFilter) : responseData;
|
|
10
|
+
return filteredData.map((item) => {
|
|
11
|
+
const data = itemHandler(item);
|
|
9
12
|
return {
|
|
10
13
|
...item,
|
|
11
|
-
processedValue: value,
|
|
14
|
+
processedValue: data.value,
|
|
15
|
+
additionalValue: data.additionalValue,
|
|
12
16
|
};
|
|
13
17
|
});
|
|
14
18
|
};
|
|
15
19
|
const getDaDataHints = (options) => {
|
|
16
|
-
const { url, query, queryPrefix, requestData = {}, responseItemHandler = defaultResponseItemHandler, } = options;
|
|
17
|
-
const responseHandler = getResponseHandler(responseItemHandler);
|
|
20
|
+
const { url, query, queryPrefix, requestData = {}, responseItemHandler = defaultResponseItemHandler, responseFilter, } = options;
|
|
21
|
+
const responseHandler = getResponseHandler(responseItemHandler, responseFilter);
|
|
18
22
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
19
23
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
20
24
|
return globalThis
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dadataHints.js","sourceRoot":"","sources":["../../../../src/retail/api/dadataHints/dadataHints.ts"],"names":[],"mappings":";;AAEA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,MAAM,0BAA0B,GAAG,CAAC,IAAuB,
|
|
1
|
+
{"version":3,"file":"dadataHints.js","sourceRoot":"","sources":["../../../../src/retail/api/dadataHints/dadataHints.ts"],"names":[],"mappings":";;AAEA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,MAAM,0BAA0B,GAAG,CAAC,IAAuB,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GACtB,CACE,WAGC,EACD,cAAqD,EACrD,EAAE,CACJ,CAAC,QAAkD,EAAE,EAAE;IACrD,MAAM,YAAY,GAA4B,QAAQ,EAAE,WAAW,IAAI,EAAE,CAAC;IAC1E,MAAM,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IAEzF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/B,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAE/B,OAAO;YACL,GAAG,IAAI;YACP,cAAc,EAAE,IAAI,CAAC,KAAK;YAC1B,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEG,MAAM,cAAc,GAAG,CAAC,OAA0B,EAAoC,EAAE;IAC7F,MAAM,EACJ,GAAG,EACH,KAAK,EACL,WAAW,EACX,WAAW,GAAG,EAAE,EAChB,mBAAmB,GAAG,0BAA0B,EAChD,cAAc,GACf,GAAG,OAAO,CAAC;IACZ,MAAM,eAAe,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAChF,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,GAAG,gBAAgB,GAAG,KAAK,EAAE,CAAC;IAEpD,OAAO,UAAU;QACf,EAAE,KAAK,EAAE,CAAC,uBAAuB,GAAG,EAAE,EAAE;QACtC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACnB,KAAK,EAAE,mBAAmB;YAC1B,GAAG,WAAW;YACd,KAAK,EAAE,aAAa;SACrB,CAAC;KACH,CAAC;SACD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;SACnC,IAAI,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAC;AA5BW,QAAA,cAAc,kBA4BzB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Nullable } from '@redneckz/uni-jsx/lib/utils/ts/Nullable';
|
|
2
|
-
import { type HintOption } from './hintsListsOptions';
|
|
3
2
|
export interface DaDataSuggestion {
|
|
4
3
|
value: string;
|
|
5
4
|
unrestricted_value: string;
|
|
6
5
|
data: DaDataResponseItem;
|
|
7
6
|
processedValue: string;
|
|
7
|
+
additionalValue?: string;
|
|
8
8
|
}
|
|
9
9
|
declare type DaDataGender = 'MALE' | 'FEMALE' | 'UNKNOWN';
|
|
10
10
|
declare type DaDataQC = '0' | '1';
|
|
@@ -62,7 +62,14 @@ export interface ListRequestOption {
|
|
|
62
62
|
url: string;
|
|
63
63
|
query?: string;
|
|
64
64
|
queryPrefix?: string;
|
|
65
|
-
requestData?:
|
|
66
|
-
|
|
65
|
+
requestData?: {
|
|
66
|
+
parts?: string[];
|
|
67
|
+
gender?: string;
|
|
68
|
+
};
|
|
69
|
+
responseItemHandler?: (item?: DaDataSuggestion) => {
|
|
70
|
+
value: string;
|
|
71
|
+
additionalValue?: string;
|
|
72
|
+
};
|
|
73
|
+
responseFilter?: (item?: DaDataSuggestion) => boolean;
|
|
67
74
|
}
|
|
68
75
|
export {};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare type HintsListOptions = Record<string,
|
|
1
|
+
import { type ListRequestOption } from './dadataHintsType';
|
|
2
|
+
export declare type HintsListOptions = Record<string, ListRequestOption>;
|
|
3
3
|
export declare const hintsListsOptions: HintsListOptions;
|
|
4
|
-
export declare type HintOption = {
|
|
5
|
-
url: string;
|
|
6
|
-
requestData?: {
|
|
7
|
-
parts?: string[];
|
|
8
|
-
gender?: string;
|
|
9
|
-
};
|
|
10
|
-
responseItemHandler?: (item?: DaDataSuggestion) => string;
|
|
11
|
-
};
|