@redneckz/wildless-cms-uni-blocks 0.14.603 → 0.14.605
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +367 -56
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/bundle/components/CreditForm/CreditForm.d.ts +13 -0
- package/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/dist/components/ApplicationForm/renderInputs.js +16 -0
- package/dist/components/ApplicationForm/renderInputs.js.map +1 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +13 -0
- package/dist/components/CreditForm/CreditForm.js +40 -0
- package/dist/components/CreditForm/CreditForm.js.map +1 -0
- package/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/dist/components/CreditForm/CreditFormContent.js +2 -0
- package/dist/components/CreditForm/CreditFormContent.js.map +1 -0
- package/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/dist/components/CreditForm/CreditFormProgress.js +11 -0
- package/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/dist/components/CreditForm/creditFormStepsData.js +217 -0
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +20 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +9 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/lib/components/ApplicationForm/renderInputs.d.ts +2 -0
- package/lib/components/ApplicationForm/renderInputs.js +13 -0
- package/lib/components/ApplicationForm/renderInputs.js.map +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +13 -0
- package/lib/components/CreditForm/CreditForm.fixture.d.ts +6 -0
- package/lib/components/CreditForm/CreditForm.js +38 -0
- package/lib/components/CreditForm/CreditForm.js.map +1 -0
- package/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/lib/components/CreditForm/CreditFormContent.js +2 -0
- package/lib/components/CreditForm/CreditFormContent.js.map +1 -0
- package/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/lib/components/CreditForm/CreditFormProgress.js +9 -0
- package/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/lib/components/CreditForm/creditFormStepsData.js +215 -0
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +20 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +9 -0
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +367 -56
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/renderInputs.js +16 -0
- package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/dist/components/CreditForm/CreditForm.js +40 -0
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.js +2 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +11 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +217 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +20 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +9 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/lib/components/ApplicationForm/renderInputs.js +13 -0
- package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/lib/components/CreditForm/CreditForm.js +38 -0
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.js +2 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +9 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +215 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +20 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +9 -0
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
- package/mobile/src/components/ApplicationForm/renderInputs.tsx +25 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/CreditForm/CreditForm.tsx +76 -0
- package/mobile/src/components/CreditForm/CreditFormContent.ts +34 -0
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +27 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +215 -0
- package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
- package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +11 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +21 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
- package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
- package/package.json +2 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
- package/src/components/ApplicationForm/renderInputs.tsx +25 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditForm/CreditForm.fixture.tsx +6 -0
- package/src/components/CreditForm/CreditForm.tsx +76 -0
- package/src/components/CreditForm/CreditFormContent.ts +34 -0
- package/src/components/CreditForm/CreditFormProgress.tsx +27 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +215 -0
- package/src/icons/IconName.ts +6 -356
- package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
- package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
- package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +11 -1
- package/src/ui-kit/FormField/getField.tsx +21 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
- package/src/ui-kit/InfoCard/InfoCard.fixture.tsx +1 -1
- package/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
|
@@ -3,20 +3,14 @@ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
4
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
5
|
import { ApplicationFormLayout } from '../../ui-kit/ApplicationFormLayout/ApplicationFormLayout';
|
|
6
|
-
import { getField } from '../../ui-kit/FormField/getField';
|
|
7
6
|
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
8
7
|
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
9
8
|
import { useResponseTypeDialog } from '../../ui-kit/ResponseTypeDialog/useResponseTypeDialog';
|
|
10
9
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
11
10
|
import { style } from '../../utils/style';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
type FieldDef,
|
|
15
|
-
type GroupedConsentsProps,
|
|
16
|
-
} from './ApplicationLeadFormContent';
|
|
17
|
-
import { CONSENTS } from './consents';
|
|
11
|
+
import { renderInputs } from '../ApplicationForm/renderInputs';
|
|
12
|
+
import { type ApplicationLeadFormContent, type FieldDef } from './ApplicationLeadFormContent';
|
|
18
13
|
import { getInitialFormState } from './getInitialFormState';
|
|
19
|
-
import { GroupedConsents } from './GroupedConsents';
|
|
20
14
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
21
15
|
import { useApplicationLeadApi } from './useApplicationLeadApi';
|
|
22
16
|
import { useInitApplicationLead } from './useInitApplicationLead';
|
|
@@ -72,21 +66,3 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
72
66
|
);
|
|
73
67
|
},
|
|
74
68
|
);
|
|
75
|
-
|
|
76
|
-
const renderInputs = ({ field, typeForm = '', inputs }: GroupedConsentsProps) => {
|
|
77
|
-
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
78
|
-
|
|
79
|
-
return consentInputs.length > 2 ? (
|
|
80
|
-
<div>
|
|
81
|
-
{restInputs.map(getField(field, typeForm))}
|
|
82
|
-
<GroupedConsents inputs={consentInputs} field={field} />
|
|
83
|
-
</div>
|
|
84
|
-
) : (
|
|
85
|
-
(inputs || [])?.map(getField(field, typeForm))
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const splitInputs = (inputs?: FieldDef[]) => ({
|
|
90
|
-
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
|
|
91
|
-
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
|
|
92
|
-
});
|
|
@@ -25,6 +25,7 @@ export type ConditionFieldProps = {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type FieldDefaultDef = Required &
|
|
28
|
+
TextProps &
|
|
28
29
|
LabelProps &
|
|
29
30
|
ConditionFieldProps & {
|
|
30
31
|
name: NameFieldDef;
|
|
@@ -56,14 +57,23 @@ export type FieldVedDef = FieldDefaultDef & {
|
|
|
56
57
|
defaultValue?: VedTypes;
|
|
57
58
|
};
|
|
58
59
|
|
|
60
|
+
/**
|
|
61
|
+
* @title Текст для отображения в карточке информации
|
|
62
|
+
* @default {"fieldType": "info"}
|
|
63
|
+
*/
|
|
64
|
+
export type FieldInfoDef = FieldDefaultDef & {
|
|
65
|
+
/** @default "info" */
|
|
66
|
+
fieldType: 'info';
|
|
67
|
+
};
|
|
68
|
+
|
|
59
69
|
/**
|
|
60
70
|
* @title Поле
|
|
61
71
|
* @default { "fieldType": "common" }
|
|
62
72
|
*/
|
|
63
|
-
export type FieldDef = FieldCommonDef | FieldVedDef;
|
|
73
|
+
export type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
64
74
|
|
|
65
75
|
/** @hidden */
|
|
66
|
-
type TypeFormFieldDef =
|
|
76
|
+
export type TypeFormFieldDef =
|
|
67
77
|
| 'ACQR'
|
|
68
78
|
| 'ANALITIC'
|
|
69
79
|
| 'ANTIFRAUD'
|
|
@@ -87,6 +87,16 @@ export interface FormState extends FormConsents {
|
|
|
87
87
|
armyIdFlg?: boolean;
|
|
88
88
|
participantAddress?: string;
|
|
89
89
|
participantDateRegistration?: Date;
|
|
90
|
+
retirementIncome?: number;
|
|
91
|
+
otherIncome?: number;
|
|
92
|
+
mandatoryIncome?: number;
|
|
93
|
+
otherPayments?: number;
|
|
94
|
+
creditInRshbCd?: string;
|
|
95
|
+
disablePeopleFlg?: boolean;
|
|
96
|
+
bankruptcyFlg?: boolean;
|
|
97
|
+
shareholderFlg?: boolean;
|
|
98
|
+
legalEntityName?: string;
|
|
99
|
+
bankEmployeeCode?: number;
|
|
90
100
|
}
|
|
91
101
|
|
|
92
102
|
const initialFormState = {
|
|
@@ -19,6 +19,7 @@ import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
|
19
19
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
20
20
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
21
21
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
22
|
+
import { CreditForm } from './CreditForm/CreditForm';
|
|
22
23
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
23
24
|
import { Depository } from './Depository/Depository';
|
|
24
25
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
@@ -68,6 +69,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
68
69
|
CarouselLinks,
|
|
69
70
|
CarouselRecommendationCard,
|
|
70
71
|
CarouselTariffsCard,
|
|
72
|
+
CreditForm,
|
|
71
73
|
DepositFiltration,
|
|
72
74
|
Depository,
|
|
73
75
|
ErrorBlock,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
|
20
20
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
21
21
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
22
22
|
import { ContactsBlock } from './ContactsBlock/ContactsBlock';
|
|
23
|
+
import { CreditForm } from './CreditForm/CreditForm';
|
|
23
24
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
24
25
|
import { Depository } from './Depository/Depository';
|
|
25
26
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
@@ -74,6 +75,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
74
75
|
CarouselRecommendationCard,
|
|
75
76
|
CarouselTariffsCard,
|
|
76
77
|
ContactsBlock,
|
|
78
|
+
CreditForm,
|
|
77
79
|
DepositFiltration,
|
|
78
80
|
Depository,
|
|
79
81
|
ErrorBlock,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useForm, type FormFieldRegisterer } from '../../hooks/useForm';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
6
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
7
|
+
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
|
|
8
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
9
|
+
import { style } from '../../utils/style';
|
|
10
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
11
|
+
import { type FormState } from '../ApplicationForm/getInitialFormState';
|
|
12
|
+
import { renderInputs } from '../ApplicationForm/renderInputs';
|
|
13
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
14
|
+
import { getInitialFormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
15
|
+
import { type CreditFormContent } from './CreditFormContent';
|
|
16
|
+
import { CreditFormProgress } from './CreditFormProgress';
|
|
17
|
+
import { stepsSectionsMap } from './creditFormStepsData';
|
|
18
|
+
import { StepsNavigationButtons } from './StepsNavigationButtons';
|
|
19
|
+
|
|
20
|
+
const STEPS_COUNT = 5;
|
|
21
|
+
const STEPS_TITLES = [
|
|
22
|
+
'Персональные данные',
|
|
23
|
+
'Данные о трудоустройстве',
|
|
24
|
+
'Данные о доходах и расходах',
|
|
25
|
+
'Дополнительные сведения',
|
|
26
|
+
'Отделение Банка',
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
export interface StepProps {
|
|
30
|
+
typeForm: string;
|
|
31
|
+
sections: SectionsProps[];
|
|
32
|
+
field: FormFieldRegisterer<FormState>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface CreditFormProps extends CreditFormContent, UniBlockProps {}
|
|
36
|
+
|
|
37
|
+
export const CreditForm = JSX<CreditFormProps>(
|
|
38
|
+
({ className, typeForm = '', sections = [], ...rest }) => {
|
|
39
|
+
const [step, setStep] = useState(1);
|
|
40
|
+
const inputs = (sections?.flatMap((_) => _?.inputs) || []) as FieldDef[];
|
|
41
|
+
const initialFormState = getInitialFormState(inputs, typeForm);
|
|
42
|
+
const handleSubmit = () => false;
|
|
43
|
+
|
|
44
|
+
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<BlockWrapper className={style('bg-transparent', className)} defaultPadding="p-6xl" {...rest}>
|
|
48
|
+
<div className="container grid grid-cols-12">
|
|
49
|
+
<CreditFormProgress stepsTitles={STEPS_TITLES} step={step} totalSteps={STEPS_COUNT} />
|
|
50
|
+
<div className="py-lg px-5xl mt-2xs bg-white col-span-12">
|
|
51
|
+
<form onSubmit={onSubmit} className="space-y-m">
|
|
52
|
+
{renderStep({ sections: stepsSectionsMap[step], typeForm, field })}
|
|
53
|
+
<StepsNavigationButtons step={step} setStep={setStep} totalSteps={STEPS_COUNT} />
|
|
54
|
+
</form>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</BlockWrapper>
|
|
58
|
+
);
|
|
59
|
+
},
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const renderStep = ({ sections, field, typeForm }: StepProps) => {
|
|
63
|
+
return sections.map((_, i) => (
|
|
64
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}>
|
|
65
|
+
{renderInfo(_?.inputs)}
|
|
66
|
+
{renderTitle(_?.title)}
|
|
67
|
+
{renderInputs({ field, typeForm, inputs: _?.inputs })}
|
|
68
|
+
</div>
|
|
69
|
+
));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const renderInfo = (inputs: FieldDef[] = []) => {
|
|
73
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
74
|
+
|
|
75
|
+
return infoInputs.length ? infoInputs.map(({ text }) => <InfoCard __html={text} />) : null;
|
|
76
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import { type Target } from '../../model/LinkProps';
|
|
3
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
+
import {
|
|
5
|
+
type EndpointType,
|
|
6
|
+
type SectionsProps,
|
|
7
|
+
type SubmitButtonProps,
|
|
8
|
+
} from '../ApplicationForm/ApplicationFormContent';
|
|
9
|
+
import { type TypeFormFieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @title Форма заявки на потребительский кредит настраиваемая
|
|
13
|
+
*/
|
|
14
|
+
export type CreditFormContent = UniBlockContent &
|
|
15
|
+
TitleProps & {
|
|
16
|
+
/** @title Кнопка */
|
|
17
|
+
button?: SubmitButtonProps;
|
|
18
|
+
/**
|
|
19
|
+
* @title Условия передачи данных
|
|
20
|
+
* @required ["text", "href"]
|
|
21
|
+
*/
|
|
22
|
+
link?: TextProps & {
|
|
23
|
+
/** @title URL (href) */
|
|
24
|
+
href?: string;
|
|
25
|
+
/** @default "" */
|
|
26
|
+
target?: Target;
|
|
27
|
+
};
|
|
28
|
+
/** @title Номер кредитной программы */
|
|
29
|
+
programId?: string;
|
|
30
|
+
typeForm?: TypeFormFieldDef;
|
|
31
|
+
/** @hidden */
|
|
32
|
+
sections?: SectionsProps[];
|
|
33
|
+
endpoint?: EndpointType;
|
|
34
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { ProgressBar } from '../../ui-kit/ProgressBar/ProgressBar';
|
|
4
|
+
|
|
5
|
+
export interface CreditFormProgressProps {
|
|
6
|
+
step: number;
|
|
7
|
+
totalSteps: number;
|
|
8
|
+
stepsTitles?: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const CreditFormProgress = JSX<CreditFormProgressProps>(
|
|
12
|
+
({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
|
|
13
|
+
const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className="py-lg px-5xl bg-white col-span-12">
|
|
17
|
+
<div>
|
|
18
|
+
<span className="font-bold">
|
|
19
|
+
Шаг {step} из {totalSteps}.
|
|
20
|
+
</span>{' '}
|
|
21
|
+
{stepsTitles[step - 1] || null}
|
|
22
|
+
<ProgressBar step={progress} showPercentage={false} />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
|
|
5
|
+
export interface StepsNavigationButtonsProps {
|
|
6
|
+
step: number;
|
|
7
|
+
setStep: (step: number) => void;
|
|
8
|
+
totalSteps: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
12
|
+
({ step, setStep, totalSteps }) => {
|
|
13
|
+
const handleNext = () => {
|
|
14
|
+
if (step < totalSteps) {
|
|
15
|
+
setStep(step + 1);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const handlePrev = () => {
|
|
20
|
+
if (step > 1) {
|
|
21
|
+
setStep(step - 1);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div className={'flex justify-between'}>
|
|
27
|
+
<Button
|
|
28
|
+
onClick={handlePrev}
|
|
29
|
+
className={style('w-full @xl:w-auto')}
|
|
30
|
+
type="button"
|
|
31
|
+
version="secondary"
|
|
32
|
+
disabled={step === 1}
|
|
33
|
+
>
|
|
34
|
+
Назад
|
|
35
|
+
</Button>
|
|
36
|
+
<Button
|
|
37
|
+
onClick={handleNext}
|
|
38
|
+
className={style('w-full @xl:w-auto')}
|
|
39
|
+
type="button"
|
|
40
|
+
disabled={step === totalSteps}
|
|
41
|
+
>
|
|
42
|
+
Далее
|
|
43
|
+
</Button>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
},
|
|
47
|
+
);
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
/* eslint-disable max-len */
|
|
3
|
+
|
|
4
|
+
export const stepsSectionsMap = {
|
|
5
|
+
1: [
|
|
6
|
+
{
|
|
7
|
+
title: 'Персональные данные',
|
|
8
|
+
columns: 2,
|
|
9
|
+
inputs: [
|
|
10
|
+
{ fieldType: 'common', name: 'surname', required: true, dadata: true },
|
|
11
|
+
{ fieldType: 'common', name: 'name', required: true, dadata: true },
|
|
12
|
+
{ fieldType: 'common', name: 'middleName', dadata: true },
|
|
13
|
+
{ fieldType: 'common', name: 'sex', required: true },
|
|
14
|
+
{ fieldType: 'common', name: 'birthday', required: true },
|
|
15
|
+
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
16
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
17
|
+
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: 'Паспортные данные',
|
|
22
|
+
columns: 2,
|
|
23
|
+
inputs: [
|
|
24
|
+
{ fieldType: 'common', name: 'dulSerie', required: true },
|
|
25
|
+
{ fieldType: 'common', name: 'dulNumber', required: true },
|
|
26
|
+
{ fieldType: 'common', name: 'dulIssueDateField', required: true },
|
|
27
|
+
{ fieldType: 'common', name: 'dulSubdivisionCode', required: true, dadata: true },
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{ fieldType: 'common', name: 'dulIssuedBy', required: true, dadata: true },
|
|
33
|
+
{
|
|
34
|
+
fieldType: 'common',
|
|
35
|
+
name: 'education',
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: 'Адрес регистрации по месту жительства',
|
|
42
|
+
columns: 2,
|
|
43
|
+
inputs: [
|
|
44
|
+
{ fieldType: 'common', name: 'participantAddress', required: true },
|
|
45
|
+
{ fieldType: 'common', name: 'participantAddress', required: true, dadata: true },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
50
|
+
columns: 2,
|
|
51
|
+
inputs: [
|
|
52
|
+
{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true },
|
|
53
|
+
{ fieldType: 'common', name: 'housing', required: true },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
2: [
|
|
58
|
+
{
|
|
59
|
+
title: 'Данные о трудоустройстве',
|
|
60
|
+
inputs: [],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
fieldType: 'info',
|
|
66
|
+
text: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [
|
|
72
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
73
|
+
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
columns: 2,
|
|
78
|
+
inputs: [
|
|
79
|
+
{ fieldType: 'common', name: 'inn', required: true, dadata: true },
|
|
80
|
+
{ fieldType: 'common', name: 'legalForm', required: true },
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
86
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
columns: 2,
|
|
91
|
+
inputs: [
|
|
92
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
93
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
94
|
+
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
95
|
+
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
96
|
+
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
97
|
+
{ fieldType: 'common', name: 'jobsNumber', required: true },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{ fieldType: 'common', name: 'phone', label: 'Телефон работодателя', required: true },
|
|
103
|
+
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
104
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: 'Адрес работодателя',
|
|
109
|
+
inputs: [],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
3: [
|
|
116
|
+
{
|
|
117
|
+
title: 'Семейное положение',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
columns: 1,
|
|
121
|
+
inputs: [{ fieldType: 'common', name: 'familyStatus' }],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
columns: 1,
|
|
125
|
+
inputs: [{ fieldType: 'common', name: 'dependents' }],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
columns: 2,
|
|
129
|
+
inputs: [
|
|
130
|
+
{ fieldType: 'common', name: 'familyMembers' },
|
|
131
|
+
{ fieldType: 'common', name: 'familyMembers' },
|
|
132
|
+
{ fieldType: 'common', name: 'retirementIncome' },
|
|
133
|
+
{ fieldType: 'common', name: 'otherIncome' },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: 'Совокупный доход',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [
|
|
141
|
+
{
|
|
142
|
+
fieldType: 'info',
|
|
143
|
+
text: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
columns: 1,
|
|
149
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryIncome' }],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
columns: 1,
|
|
153
|
+
inputs: [{ fieldType: 'common', name: 'otherPayments' }],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
columns: 1,
|
|
157
|
+
inputs: [{ fieldType: 'common', name: 'snils' }],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
columns: 2,
|
|
161
|
+
inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
4: [
|
|
165
|
+
{
|
|
166
|
+
title: 'Дополнительные сведения',
|
|
167
|
+
columns: 1,
|
|
168
|
+
inputs: [],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [{ fieldType: 'common', name: 'disablePeopleFlg' }],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [{ fieldType: 'common', name: 'bankruptcyFlg' }],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
5: [
|
|
187
|
+
{
|
|
188
|
+
title: 'Отделение Банка',
|
|
189
|
+
columns: 1,
|
|
190
|
+
inputs: [],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [{ fieldType: 'common', name: 'region' }],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [{ fieldType: 'common', name: 'addressBranch' }],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
title: 'Код представителя Банка',
|
|
200
|
+
columns: 1,
|
|
201
|
+
inputs: [],
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
inputs: [
|
|
205
|
+
{
|
|
206
|
+
fieldType: 'info',
|
|
207
|
+
text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
};
|