@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
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const BankEmpoleeCodeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Код представителя Банка"
|
|
10
|
+
placeholder="Введите код"
|
|
11
|
+
type="number"
|
|
12
|
+
{...getValidation(field('bankEmployeeCode'), validatorObj.bankEmployeeCode, input?.required)}
|
|
13
|
+
{...input}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const BankruptcyFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="В отношении меня ведётся производство по делу о банкротстве"
|
|
10
|
+
{...getValidation(field('bankruptcyFlg'), validatorObj.bankruptcyFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { SelectField } from '../SelectField';
|
|
5
|
+
|
|
6
|
+
const LABEL_TEXT =
|
|
7
|
+
// eslint-disable-next-line max-len
|
|
8
|
+
'Имеет ли юридическое лицо, акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала руководителем, которого Вы являетесь, кредит в АО «Россельзбанк»';
|
|
9
|
+
|
|
10
|
+
export const CreditInRshbCdField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
11
|
+
const { data: creditInRshbCd } = useLeadFormData('creditInRshbCd');
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<SelectField
|
|
15
|
+
field={field}
|
|
16
|
+
source={creditInRshbCd}
|
|
17
|
+
label={LABEL_TEXT}
|
|
18
|
+
fieldName="creditInRshbCd"
|
|
19
|
+
input={input}
|
|
20
|
+
/>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const DisablePeopleFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Являюсь инвалидом"
|
|
10
|
+
{...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const LegalEntityNameField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
8
|
+
return (
|
|
9
|
+
<InputControl
|
|
10
|
+
label="Наименование юридического лица"
|
|
11
|
+
{...input}
|
|
12
|
+
{...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required)}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const MandatoryIncomeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Совокупный доход в месяц после вычета налогов (зарплата, премии)"
|
|
10
|
+
placeholder="Введите значение"
|
|
11
|
+
type="number"
|
|
12
|
+
{...getValidation(field('mandatoryIncome'), validatorObj.mandatoryIncome, input?.required)}
|
|
13
|
+
{...input}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const OtherIncomeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Иные доходы"
|
|
10
|
+
placeholder="Введите значение"
|
|
11
|
+
type="number"
|
|
12
|
+
{...getValidation(field('otherIncome'), validatorObj.otherIncome, input?.required)}
|
|
13
|
+
{...input}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const OtherPaymentsField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Обязательные выплаты"
|
|
10
|
+
placeholder="Введите значение"
|
|
11
|
+
type="number"
|
|
12
|
+
{...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required)}
|
|
13
|
+
{...input}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import type { CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const RetirementIncomeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Пенсионные доходы"
|
|
10
|
+
placeholder="Введите значение"
|
|
11
|
+
type="number"
|
|
12
|
+
{...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required)}
|
|
13
|
+
{...input}
|
|
14
|
+
/>
|
|
15
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
import { validatorObj } from '../getObjectValidator';
|
|
5
|
+
import { getValidation } from '../getValidation';
|
|
6
|
+
|
|
7
|
+
export const ShareholderFlgField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Я являюсь акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала юридического лица"
|
|
10
|
+
{...getValidation(field('shareholderFlg'), validatorObj.shareholderFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -73,4 +73,14 @@ export type NameFieldDef =
|
|
|
73
73
|
| 'conscription'
|
|
74
74
|
| 'armyIdFlg'
|
|
75
75
|
| 'participantAddress'
|
|
76
|
-
| 'participantDateRegistration'
|
|
76
|
+
| 'participantDateRegistration'
|
|
77
|
+
| 'retirementIncome'
|
|
78
|
+
| 'otherIncome'
|
|
79
|
+
| 'mandatoryIncome'
|
|
80
|
+
| 'otherPayments'
|
|
81
|
+
| 'creditInRshbCd'
|
|
82
|
+
| 'disablePeopleFlg'
|
|
83
|
+
| 'bankruptcyFlg'
|
|
84
|
+
| 'shareholderFlg'
|
|
85
|
+
| 'legalEntityName'
|
|
86
|
+
| 'bankEmployeeCode';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
1
2
|
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
3
|
import { getRegionUrl } from '../../components/ApplicationForm/getRegionUrl';
|
|
3
4
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
@@ -8,7 +9,9 @@ import { AmountField } from './Fields/AmountField';
|
|
|
8
9
|
import { AmountWorkersField } from './Fields/AmountWorkersField';
|
|
9
10
|
import { AnnualRevenueField } from './Fields/AnnualRevenueField';
|
|
10
11
|
import { ArmyIdFlgField } from './Fields/ArmyIdFlgField';
|
|
12
|
+
import { BankEmpoleeCodeField } from './Fields/BankEmployeeCodeField';
|
|
11
13
|
import { BankEmpoleeField } from './Fields/BankEmpoleeField';
|
|
14
|
+
import { BankruptcyFlgField } from './Fields/BankruptcyFlgField';
|
|
12
15
|
import { BeginDateField } from './Fields/BeginDateField';
|
|
13
16
|
import { BirthdayField } from './Fields/BirthdayField';
|
|
14
17
|
import { BirthPlaceField } from './Fields/BirthPlaceField';
|
|
@@ -17,8 +20,10 @@ import { CollectionCountField } from './Fields/CollectionCountField';
|
|
|
17
20
|
import { CommentField } from './Fields/CommentField';
|
|
18
21
|
import { ConscriptionField } from './Fields/ConscriptionField';
|
|
19
22
|
import { ConsentField } from './Fields/ConsentField';
|
|
23
|
+
import { CreditInRshbCdField } from './Fields/CreditInRshbCdField';
|
|
20
24
|
import { DependentsField } from './Fields/DependentsField';
|
|
21
25
|
import { DesiredMeetingDateField } from './Fields/DesiredMeetingDateField';
|
|
26
|
+
import { DisablePeopleFlgField } from './Fields/DisablePeopleFlgField';
|
|
22
27
|
import { DulIssueDateField } from './Fields/DulIssueDateField';
|
|
23
28
|
import { DulIssuedByField } from './Fields/DulIssuedByField';
|
|
24
29
|
import { DulNumberField } from './Fields/DulNumberField';
|
|
@@ -42,13 +47,17 @@ import { InnField } from './Fields/InnField';
|
|
|
42
47
|
import { IsClientField } from './Fields/IsClientField';
|
|
43
48
|
import { JobsNumberField } from './Fields/JobsNumberField';
|
|
44
49
|
import { LastJobExperienceField } from './Fields/LastJobExperienceField';
|
|
50
|
+
import { LegalEntityNameField } from './Fields/LegalEntityNameField';
|
|
45
51
|
import { LegalFormField } from './Fields/LegalFormField';
|
|
46
52
|
import { LocalitiesField } from './Fields/LocalitiesField';
|
|
53
|
+
import { MandatoryIncomeField } from './Fields/MandatoryIncome';
|
|
47
54
|
import { MiddleNameField } from './Fields/MiddleNameField';
|
|
48
55
|
import { NameField } from './Fields/NameField';
|
|
49
56
|
import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
50
57
|
import { OrganizationField } from './Fields/OrganizationField';
|
|
51
58
|
import { OrganizationNameField } from './Fields/OrganizationNameField';
|
|
59
|
+
import { OtherIncomeField } from './Fields/OtherIncomeField';
|
|
60
|
+
import { OtherPaymentsField } from './Fields/OtherPayments';
|
|
52
61
|
import { ParticipantAddressField } from './Fields/ParticipantAddressField';
|
|
53
62
|
import { ParticipantDateRegistrationField } from './Fields/ParticipantDateRegistrationField';
|
|
54
63
|
import { PartnerCommentsField } from './Fields/PartnerCommentsField';
|
|
@@ -58,9 +67,11 @@ import { PosTerminalField } from './Fields/PosTerminalField';
|
|
|
58
67
|
import { ProductField } from './Fields/ProductField';
|
|
59
68
|
import { RegionField } from './Fields/RegionField';
|
|
60
69
|
import { RegionPremiumField } from './Fields/RegionPremiumField';
|
|
70
|
+
import { RetirementIncomeField } from './Fields/RetirementIncomeField';
|
|
61
71
|
import { SecondaryPhoneField } from './Fields/SecondaryPhoneField';
|
|
62
72
|
import { ServiceDirectionField } from './Fields/ServiceDirectionField';
|
|
63
73
|
import { SexField } from './Fields/SexField';
|
|
74
|
+
import { ShareholderFlgField } from './Fields/ShareholderFlgField';
|
|
64
75
|
import { SnilsField } from './Fields/SnilsField';
|
|
65
76
|
import { SurnameField } from './Fields/SurnameField';
|
|
66
77
|
import { TermField } from './Fields/TermField';
|
|
@@ -159,6 +170,16 @@ export const getField =
|
|
|
159
170
|
dulIssuedBy: <DulIssuedByField field={field} input={input} />,
|
|
160
171
|
participantAddress: <ParticipantAddressField field={field} input={input} />,
|
|
161
172
|
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
173
|
+
retirementIncome: <RetirementIncomeField field={field} input={input} />,
|
|
174
|
+
otherIncome: <OtherIncomeField field={field} input={input} />,
|
|
175
|
+
mandatoryIncome: <MandatoryIncomeField field={field} input={input} />,
|
|
176
|
+
otherPayments: <OtherPaymentsField field={field} input={input} />,
|
|
177
|
+
disablePeopleFlg: <DisablePeopleFlgField field={field} input={input} />,
|
|
178
|
+
bankruptcyFlg: <BankruptcyFlgField field={field} input={input} />,
|
|
179
|
+
shareholderFlg: <ShareholderFlgField field={field} input={input} />,
|
|
180
|
+
legalEntityName: <LegalEntityNameField field={field} input={input} />,
|
|
181
|
+
creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
|
|
182
|
+
bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
|
|
162
183
|
};
|
|
163
184
|
|
|
164
185
|
return isRenderField({ input, field }) ? (
|
|
@@ -82,6 +82,15 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
82
82
|
sex: defaultValidator('Укажите свой пол'),
|
|
83
83
|
participantAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
84
84
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
85
|
+
retirementIncome: defaultValidator(),
|
|
86
|
+
otherIncome: defaultValidator(),
|
|
87
|
+
mandatoryIncome: defaultValidator(),
|
|
88
|
+
otherPayments: defaultValidator(),
|
|
89
|
+
disablePeopleFlg: defaultValidator(),
|
|
90
|
+
bankruptcyFlg: defaultValidator(),
|
|
91
|
+
shareholderFlg: defaultValidator(),
|
|
92
|
+
legalEntityName: defaultValidator(),
|
|
93
|
+
bankEmployeeCode: defaultValidator(),
|
|
85
94
|
};
|
|
86
95
|
|
|
87
96
|
export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
|
|
@@ -10,11 +10,13 @@ interface InfoCardProps {
|
|
|
10
10
|
iconVersion?: IconVersion;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export const InfoCard = JSX<InfoCardProps>(
|
|
14
|
-
|
|
15
|
-
<div className="
|
|
16
|
-
<
|
|
13
|
+
export const InfoCard = JSX<InfoCardProps>(
|
|
14
|
+
({ __html, icon = 'InfoCircleIcon', iconVersion = 'black' }) => (
|
|
15
|
+
<div className="flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m">
|
|
16
|
+
<div className="rounded-full bg-white p-xs">
|
|
17
|
+
<Icon name={icon} width="24" height="24" iconVersion={iconVersion} />
|
|
18
|
+
</div>
|
|
19
|
+
<RichText __html={__html} />
|
|
17
20
|
</div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
));
|
|
21
|
+
),
|
|
22
|
+
);
|
|
@@ -4,16 +4,19 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
4
4
|
interface ProgressBarProps {
|
|
5
5
|
step?: number;
|
|
6
6
|
description?: string;
|
|
7
|
+
showPercentage?: boolean;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export const ProgressBar = JSX<ProgressBarProps>(
|
|
10
|
-
|
|
11
|
-
<div
|
|
12
|
-
<div className="h-4 bg-
|
|
10
|
+
export const ProgressBar = JSX<ProgressBarProps>(
|
|
11
|
+
({ step = 10, description, showPercentage = true }) => (
|
|
12
|
+
<div>
|
|
13
|
+
<div className="h-4 w-full bg-gray relative">
|
|
14
|
+
<div className="h-4 bg-green" style={{ width: `${step}%` }} />
|
|
15
|
+
</div>
|
|
16
|
+
<div className="relative">
|
|
17
|
+
{showPercentage ? <div className="absolute left-2/4 text-green">{step}%</div> : null}
|
|
18
|
+
{description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
|
|
19
|
+
</div>
|
|
13
20
|
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{description ? <div className="text-right mr-4 text-gray">{description}</div> : null}
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
));
|
|
21
|
+
),
|
|
22
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"path": "lib/common.css"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"limit": "
|
|
213
|
+
"limit": "79 kB",
|
|
214
214
|
"path": "bundle/bundle.umd.min.js"
|
|
215
215
|
}
|
|
216
216
|
],
|
|
@@ -58,11 +58,21 @@ export type FieldVedDef = FieldDefaultDef & {
|
|
|
58
58
|
defaultValue?: VedTypes;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @title Текст для отображения в карточке информации
|
|
63
|
+
* @default {"fieldType": "info"}
|
|
64
|
+
*/
|
|
65
|
+
export type FieldInfoDef = FieldDefaultDef &
|
|
66
|
+
TextProps & {
|
|
67
|
+
/** @default "info" */
|
|
68
|
+
fieldType: 'info';
|
|
69
|
+
};
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* @title Поле
|
|
63
73
|
* @default { "fieldType": "common" }
|
|
64
74
|
*/
|
|
65
|
-
export type FieldDef = FieldCommonDef | FieldVedDef;
|
|
75
|
+
export type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
66
76
|
|
|
67
77
|
/** @hidden */
|
|
68
78
|
type TypeFormFieldDef =
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getField } from '../../ui-kit/FormField/getField';
|
|
2
|
+
import type {
|
|
3
|
+
FieldDef,
|
|
4
|
+
GroupedConsentsProps,
|
|
5
|
+
} from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
6
|
+
import { CONSENTS } from '../ApplicationLeadForm/consents';
|
|
7
|
+
import { GroupedConsents } from '../ApplicationLeadForm/GroupedConsents';
|
|
8
|
+
|
|
9
|
+
export const renderInputs = ({ field, typeForm = '', inputs }: GroupedConsentsProps) => {
|
|
10
|
+
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
11
|
+
|
|
12
|
+
return consentInputs.length > 2 ? (
|
|
13
|
+
<div>
|
|
14
|
+
{restInputs.map(getField(field, typeForm))}
|
|
15
|
+
<GroupedConsents inputs={consentInputs} field={field} />
|
|
16
|
+
</div>
|
|
17
|
+
) : (
|
|
18
|
+
(inputs || [])?.map(getField(field, typeForm))
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const splitInputs = (inputs?: FieldDef[]) => ({
|
|
23
|
+
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
|
|
24
|
+
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
|
|
25
|
+
});
|