@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
|
@@ -45,11 +45,19 @@ export declare type FieldVedDef = FieldDefaultDef & {
|
|
|
45
45
|
fieldType: 'ved';
|
|
46
46
|
defaultValue?: VedTypes;
|
|
47
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* @title Текст для отображения в карточке информации
|
|
50
|
+
* @default {"fieldType": "info"}
|
|
51
|
+
*/
|
|
52
|
+
export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
|
|
53
|
+
/** @default "info" */
|
|
54
|
+
fieldType: 'info';
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* @title Поле
|
|
50
58
|
* @default { "fieldType": "common" }
|
|
51
59
|
*/
|
|
52
|
-
export declare type FieldDef = FieldCommonDef | FieldVedDef;
|
|
60
|
+
export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
53
61
|
/** @hidden */
|
|
54
62
|
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
|
|
55
63
|
/**
|
|
@@ -20,7 +20,7 @@ export declare type ConditionFieldProps = {
|
|
|
20
20
|
values: string[];
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare type FieldDefaultDef = Required & LabelProps & ConditionFieldProps & {
|
|
23
|
+
export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & {
|
|
24
24
|
name: NameFieldDef;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -46,13 +46,21 @@ export declare type FieldVedDef = FieldDefaultDef & {
|
|
|
46
46
|
fieldType: 'ved';
|
|
47
47
|
defaultValue?: VedTypes;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @title Текст для отображения в карточке информации
|
|
51
|
+
* @default {"fieldType": "info"}
|
|
52
|
+
*/
|
|
53
|
+
export declare type FieldInfoDef = FieldDefaultDef & {
|
|
54
|
+
/** @default "info" */
|
|
55
|
+
fieldType: 'info';
|
|
56
|
+
};
|
|
49
57
|
/**
|
|
50
58
|
* @title Поле
|
|
51
59
|
* @default { "fieldType": "common" }
|
|
52
60
|
*/
|
|
53
|
-
export declare type FieldDef = FieldCommonDef | FieldVedDef;
|
|
61
|
+
export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
54
62
|
/** @hidden */
|
|
55
|
-
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
|
|
63
|
+
export declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
|
|
56
64
|
/**
|
|
57
65
|
* @title Количество колонок
|
|
58
66
|
* @enumNames ["Одна", "Две"]
|
|
@@ -78,5 +78,15 @@ export interface FormState extends FormConsents {
|
|
|
78
78
|
armyIdFlg?: boolean;
|
|
79
79
|
participantAddress?: string;
|
|
80
80
|
participantDateRegistration?: Date;
|
|
81
|
+
retirementIncome?: number;
|
|
82
|
+
otherIncome?: number;
|
|
83
|
+
mandatoryIncome?: number;
|
|
84
|
+
otherPayments?: number;
|
|
85
|
+
creditInRshbCd?: string;
|
|
86
|
+
disablePeopleFlg?: boolean;
|
|
87
|
+
bankruptcyFlg?: boolean;
|
|
88
|
+
shareholderFlg?: boolean;
|
|
89
|
+
legalEntityName?: string;
|
|
90
|
+
bankEmployeeCode?: number;
|
|
81
91
|
}
|
|
82
92
|
export declare const getInitialFormState: (inputs: FieldDef[], savedForm: string | null, typeForm?: string) => FormState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationForm/getInitialFormState';
|
|
5
|
+
import { type CreditFormContent } from './CreditFormContent';
|
|
6
|
+
export interface StepProps {
|
|
7
|
+
typeForm: string;
|
|
8
|
+
sections: SectionsProps[];
|
|
9
|
+
field: FormFieldRegisterer<FormState>;
|
|
10
|
+
}
|
|
11
|
+
export interface CreditFormProps extends CreditFormContent, UniBlockProps {
|
|
12
|
+
}
|
|
13
|
+
export declare const CreditForm: import("@redneckz/uni-jsx").UNIComponent<CreditFormProps, any, any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { type EndpointType, type SectionsProps, type SubmitButtonProps } from '../ApplicationForm/ApplicationFormContent';
|
|
5
|
+
import { type TypeFormFieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
6
|
+
/**
|
|
7
|
+
* @title Форма заявки на потребительский кредит настраиваемая
|
|
8
|
+
*/
|
|
9
|
+
export declare type CreditFormContent = UniBlockContent & TitleProps & {
|
|
10
|
+
/** @title Кнопка */
|
|
11
|
+
button?: SubmitButtonProps;
|
|
12
|
+
/**
|
|
13
|
+
* @title Условия передачи данных
|
|
14
|
+
* @required ["text", "href"]
|
|
15
|
+
*/
|
|
16
|
+
link?: TextProps & {
|
|
17
|
+
/** @title URL (href) */
|
|
18
|
+
href?: string;
|
|
19
|
+
/** @default "" */
|
|
20
|
+
target?: Target;
|
|
21
|
+
};
|
|
22
|
+
/** @title Номер кредитной программы */
|
|
23
|
+
programId?: string;
|
|
24
|
+
typeForm?: TypeFormFieldDef;
|
|
25
|
+
/** @hidden */
|
|
26
|
+
sections?: SectionsProps[];
|
|
27
|
+
endpoint?: EndpointType;
|
|
28
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export declare const stepsSectionsMap: {
|
|
2
|
+
1: ({
|
|
3
|
+
title: string;
|
|
4
|
+
columns: number;
|
|
5
|
+
inputs: ({
|
|
6
|
+
fieldType: string;
|
|
7
|
+
name: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
dadata: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
fieldType: string;
|
|
12
|
+
name: string;
|
|
13
|
+
dadata: boolean;
|
|
14
|
+
required?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
fieldType: string;
|
|
17
|
+
name: string;
|
|
18
|
+
required: boolean;
|
|
19
|
+
dadata?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
} | {
|
|
22
|
+
inputs: ({
|
|
23
|
+
fieldType: string;
|
|
24
|
+
name: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
dadata: boolean;
|
|
27
|
+
} | {
|
|
28
|
+
fieldType: string;
|
|
29
|
+
name: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
dadata?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
title?: undefined;
|
|
34
|
+
columns?: undefined;
|
|
35
|
+
})[];
|
|
36
|
+
2: ({
|
|
37
|
+
title: string;
|
|
38
|
+
inputs: never[];
|
|
39
|
+
columns?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
inputs: {
|
|
42
|
+
fieldType: string;
|
|
43
|
+
text: string;
|
|
44
|
+
}[];
|
|
45
|
+
title?: undefined;
|
|
46
|
+
columns?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
inputs: ({
|
|
49
|
+
fieldType: string;
|
|
50
|
+
name: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
dadata?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
fieldType: string;
|
|
55
|
+
name: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
dadata: boolean;
|
|
58
|
+
})[];
|
|
59
|
+
title?: undefined;
|
|
60
|
+
columns?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
columns: number;
|
|
63
|
+
inputs: ({
|
|
64
|
+
fieldType: string;
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
dadata: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
fieldType: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
dadata?: undefined;
|
|
73
|
+
})[];
|
|
74
|
+
title?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
inputs: ({
|
|
77
|
+
fieldType: string;
|
|
78
|
+
name: string;
|
|
79
|
+
label: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
fieldType: string;
|
|
83
|
+
name: string;
|
|
84
|
+
required: boolean;
|
|
85
|
+
label?: undefined;
|
|
86
|
+
})[];
|
|
87
|
+
title?: undefined;
|
|
88
|
+
columns?: undefined;
|
|
89
|
+
})[];
|
|
90
|
+
3: ({
|
|
91
|
+
title: string;
|
|
92
|
+
columns?: undefined;
|
|
93
|
+
inputs?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
columns: number;
|
|
96
|
+
inputs: {
|
|
97
|
+
fieldType: string;
|
|
98
|
+
name: string;
|
|
99
|
+
}[];
|
|
100
|
+
title?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
inputs: {
|
|
103
|
+
fieldType: string;
|
|
104
|
+
text: string;
|
|
105
|
+
}[];
|
|
106
|
+
title?: undefined;
|
|
107
|
+
columns?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
4: ({
|
|
110
|
+
title: string;
|
|
111
|
+
columns: number;
|
|
112
|
+
inputs: never[];
|
|
113
|
+
} | {
|
|
114
|
+
inputs: {
|
|
115
|
+
fieldType: string;
|
|
116
|
+
name: string;
|
|
117
|
+
}[];
|
|
118
|
+
title?: undefined;
|
|
119
|
+
columns?: undefined;
|
|
120
|
+
})[];
|
|
121
|
+
5: ({
|
|
122
|
+
title: string;
|
|
123
|
+
columns: number;
|
|
124
|
+
inputs: never[];
|
|
125
|
+
} | {
|
|
126
|
+
inputs: {
|
|
127
|
+
fieldType: string;
|
|
128
|
+
name: string;
|
|
129
|
+
}[];
|
|
130
|
+
title?: undefined;
|
|
131
|
+
columns?: undefined;
|
|
132
|
+
} | {
|
|
133
|
+
inputs: {
|
|
134
|
+
fieldType: string;
|
|
135
|
+
text: string;
|
|
136
|
+
}[];
|
|
137
|
+
title?: undefined;
|
|
138
|
+
columns?: undefined;
|
|
139
|
+
})[];
|
|
140
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'education' | 'housing' | 'employment' | 'organization' | 'amountWorkers' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'birthPlace' | 'sex' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg' | 'legalForm' | 'organizationName' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'fullAddress' | 'familyStatus' | 'children' | 'familyMembers' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'participantAddress' | 'participantDateRegistration';
|
|
1
|
+
export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'education' | 'housing' | 'employment' | 'organization' | 'amountWorkers' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'dulSerie' | 'dulNumber' | 'dulIssueDateField' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'birthPlace' | 'sex' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing' | 'consentInformFlg' | 'consentCollectionFlg' | 'consentAssignmentClaimsFlg' | 'consentPhotoFlg' | 'consentPfrFlg' | 'consentProviderFlg' | 'processPersonalDataLeadFlg' | 'legalForm' | 'organizationName' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'fullAddress' | 'familyStatus' | 'children' | 'familyMembers' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'participantAddress' | 'participantDateRegistration' | 'retirementIncome' | 'otherIncome' | 'mandatoryIncome' | 'otherPayments' | 'creditInRshbCd' | 'disablePeopleFlg' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'bankEmployeeCode';
|
|
@@ -45,11 +45,19 @@ export declare type FieldVedDef = FieldDefaultDef & {
|
|
|
45
45
|
fieldType: 'ved';
|
|
46
46
|
defaultValue?: VedTypes;
|
|
47
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* @title Текст для отображения в карточке информации
|
|
50
|
+
* @default {"fieldType": "info"}
|
|
51
|
+
*/
|
|
52
|
+
export declare type FieldInfoDef = FieldDefaultDef & TextProps & {
|
|
53
|
+
/** @default "info" */
|
|
54
|
+
fieldType: 'info';
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* @title Поле
|
|
50
58
|
* @default { "fieldType": "common" }
|
|
51
59
|
*/
|
|
52
|
-
export declare type FieldDef = FieldCommonDef | FieldVedDef;
|
|
60
|
+
export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
53
61
|
/** @hidden */
|
|
54
62
|
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE';
|
|
55
63
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderInputs = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const getField_1 = require("../../ui-kit/FormField/getField");
|
|
5
|
+
const consents_1 = require("../ApplicationLeadForm/consents");
|
|
6
|
+
const GroupedConsents_1 = require("../ApplicationLeadForm/GroupedConsents");
|
|
7
|
+
const renderInputs = ({ field, typeForm = '', inputs }) => {
|
|
8
|
+
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
9
|
+
return consentInputs.length > 2 ? ((0, jsx_runtime_1.jsxs)("div", { children: [restInputs.map((0, getField_1.getField)(field, typeForm)), (0, jsx_runtime_1.jsx)(GroupedConsents_1.GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map((0, getField_1.getField)(field, typeForm)));
|
|
10
|
+
};
|
|
11
|
+
exports.renderInputs = renderInputs;
|
|
12
|
+
const splitInputs = (inputs) => ({
|
|
13
|
+
consentInputs: inputs?.filter((_) => Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
|
|
14
|
+
restInputs: inputs?.filter((_) => !Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=renderInputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderInputs.tsx"],"names":[],"mappings":";;;AAAA,8DAA2D;AAK3D,8DAA2D;AAC3D,4EAAyE;AAElE,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,EAAE,EAAE,MAAM,EAAwB,EAAE,EAAE;IACrF,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAEhE,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAChC,4CACG,UAAU,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,EAC1C,uBAAC,iCAAe,IAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,IACpD,CACP,CAAC,CAAC,CAAC,CACF,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAC/C,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,YAAY,gBAWvB;AAEF,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IAC5C,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;IAClF,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;CACjF,CAAC,CAAC"}
|
|
@@ -6,14 +6,12 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
|
6
6
|
const useForm_1 = require("../../hooks/useForm");
|
|
7
7
|
const useLocalStorage_1 = require("../../hooks/useLocalStorage");
|
|
8
8
|
const ApplicationFormLayout_1 = require("../../ui-kit/ApplicationFormLayout/ApplicationFormLayout");
|
|
9
|
-
const getField_1 = require("../../ui-kit/FormField/getField");
|
|
10
9
|
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
11
10
|
const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
|
|
12
11
|
const useResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/useResponseTypeDialog");
|
|
13
12
|
const style_1 = require("../../utils/style");
|
|
14
|
-
const
|
|
13
|
+
const renderInputs_1 = require("../ApplicationForm/renderInputs");
|
|
15
14
|
const getInitialFormState_1 = require("./getInitialFormState");
|
|
16
|
-
const GroupedConsents_1 = require("./GroupedConsents");
|
|
17
15
|
const renderSubmitButton_1 = require("./renderSubmitButton");
|
|
18
16
|
const useApplicationLeadApi_1 = require("./useApplicationLeadApi");
|
|
19
17
|
const useInitApplicationLead_1 = require("./useInitApplicationLead");
|
|
@@ -39,14 +37,6 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
|
|
|
39
37
|
reset();
|
|
40
38
|
}
|
|
41
39
|
}, [responseType]);
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), renderInputs({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button)] }) }));
|
|
43
|
-
});
|
|
44
|
-
const renderInputs = ({ field, typeForm = '', inputs }) => {
|
|
45
|
-
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
46
|
-
return consentInputs.length > 2 ? ((0, jsx_runtime_1.jsxs)("div", { children: [restInputs.map((0, getField_1.getField)(field, typeForm)), (0, jsx_runtime_1.jsx)(GroupedConsents_1.GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map((0, getField_1.getField)(field, typeForm)));
|
|
47
|
-
};
|
|
48
|
-
const splitInputs = (inputs) => ({
|
|
49
|
-
consentInputs: inputs?.filter((_) => Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
|
|
50
|
-
restInputs: inputs?.filter((_) => !Object.keys(consents_1.CONSENTS).includes(_.name)) || [],
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (0, renderInputs_1.renderInputs)({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button)] }) }));
|
|
51
41
|
});
|
|
52
42
|
//# sourceMappingURL=ApplicationLeadForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;AAC9D,oGAAiG;AACjG,
|
|
1
|
+
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;AAC9D,oGAAiG;AACjG,8EAA4E;AAC5E,oEAAiE;AACjE,iGAA8F;AAE9F,6CAA0C;AAC1C,kEAA+D;AAE/D,+DAA4D;AAC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,CAAC,CAAC;YACpB,KAAK,EAAE,CAAC;SACT;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,uBAAC,6CAAqB,IACpB,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,KACR,IAAI,YAER,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,iCAEE,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aAE7D,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,IAAA,2BAAY,EAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAJhD,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,CAAC,IACtB,GACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -20,7 +20,7 @@ export declare type ConditionFieldProps = {
|
|
|
20
20
|
values: string[];
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare type FieldDefaultDef = Required & LabelProps & ConditionFieldProps & {
|
|
23
|
+
export declare type FieldDefaultDef = Required & TextProps & LabelProps & ConditionFieldProps & {
|
|
24
24
|
name: NameFieldDef;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -46,13 +46,21 @@ export declare type FieldVedDef = FieldDefaultDef & {
|
|
|
46
46
|
fieldType: 'ved';
|
|
47
47
|
defaultValue?: VedTypes;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @title Текст для отображения в карточке информации
|
|
51
|
+
* @default {"fieldType": "info"}
|
|
52
|
+
*/
|
|
53
|
+
export declare type FieldInfoDef = FieldDefaultDef & {
|
|
54
|
+
/** @default "info" */
|
|
55
|
+
fieldType: 'info';
|
|
56
|
+
};
|
|
49
57
|
/**
|
|
50
58
|
* @title Поле
|
|
51
59
|
* @default { "fieldType": "common" }
|
|
52
60
|
*/
|
|
53
|
-
export declare type FieldDef = FieldCommonDef | FieldVedDef;
|
|
61
|
+
export declare type FieldDef = FieldCommonDef | FieldVedDef | FieldInfoDef;
|
|
54
62
|
/** @hidden */
|
|
55
|
-
declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
|
|
63
|
+
export declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
|
|
56
64
|
/**
|
|
57
65
|
* @title Количество колонок
|
|
58
66
|
* @enumNames ["Одна", "Две"]
|
|
@@ -78,5 +78,15 @@ export interface FormState extends FormConsents {
|
|
|
78
78
|
armyIdFlg?: boolean;
|
|
79
79
|
participantAddress?: string;
|
|
80
80
|
participantDateRegistration?: Date;
|
|
81
|
+
retirementIncome?: number;
|
|
82
|
+
otherIncome?: number;
|
|
83
|
+
mandatoryIncome?: number;
|
|
84
|
+
otherPayments?: number;
|
|
85
|
+
creditInRshbCd?: string;
|
|
86
|
+
disablePeopleFlg?: boolean;
|
|
87
|
+
bankruptcyFlg?: boolean;
|
|
88
|
+
shareholderFlg?: boolean;
|
|
89
|
+
legalEntityName?: string;
|
|
90
|
+
bankEmployeeCode?: number;
|
|
81
91
|
}
|
|
82
92
|
export declare const getInitialFormState: (inputs: FieldDef[], savedForm: string | null, typeForm?: string) => FormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;AAC/E,qEAAmE;AA+FnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,gCAAe,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,yBAAa,CAAC,CAAC,CAAC;IAC7B,cAAc,EAAE,2BAAe,CAAC,CAAC,CAAC;IAClC,gBAAgB,EAAE,8BAAkB,CAAC,CAAC,CAAC;IACvC,QAAQ,EAAE,oBAAS,CAAC,CAAC,CAAC;IACtB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,yBAAyB,EAAE,KAAK;IAChC,qBAAqB,EAAE,KAAK;IAC5B,0BAA0B,EAAE,KAAK;IACjC,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,KAAK;IACtB,0BAA0B,EAAE,KAAK;IACjC,oBAAoB,EAAE,KAAK;IAC3B,gBAAgB,EAAE,KAAK;IACvB,kBAAkB,EAAE,EAAE;IACtB,2BAA2B,EAAE,SAAS;CACvC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CACjC,MAAkB,EAClB,SAAwB,EACxB,QAAQ,GAAG,EAAE,EACF,EAAE;IACb,IAAI,SAAS,EAAE;QACb,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAc,CAAC;QACrD,SAAS,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,SAAS,EAAE,QAAQ,IAAI,CAAC,CAAC,CAAC;QAExD,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,CAAC,SAAS,KAAK,KAAK,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC;KACvE,CAAC,CACH,CAAC;IAEF,OAAO,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC;AACvE,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
|
@@ -20,6 +20,7 @@ const CarouselLinks_1 = require("./CarouselLinks/CarouselLinks");
|
|
|
20
20
|
const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
|
|
21
21
|
const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
|
|
22
22
|
const ContactsBlock_1 = require("./ContactsBlock/ContactsBlock");
|
|
23
|
+
const CreditForm_1 = require("./CreditForm/CreditForm");
|
|
23
24
|
const DepositFiltration_1 = require("./DepositFiltration/DepositFiltration");
|
|
24
25
|
const Depository_1 = require("./Depository/Depository");
|
|
25
26
|
const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
|
|
@@ -73,6 +74,7 @@ exports.Blocks = {
|
|
|
73
74
|
CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
|
|
74
75
|
CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
|
|
75
76
|
ContactsBlock: ContactsBlock_1.ContactsBlock,
|
|
77
|
+
CreditForm: CreditForm_1.CreditForm,
|
|
76
78
|
DepositFiltration: DepositFiltration_1.DepositFiltration,
|
|
77
79
|
Depository: Depository_1.Depository,
|
|
78
80
|
ErrorBlock: ErrorBlock_1.ErrorBlock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,2DAAwD;AACxD,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,iEAA8D;AAC9D,gFAA6E;AAC7E,oEAAiE;AACjE,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,kGAA+F;AAC/F,iEAA8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,EAAd,+BAAc;IACd,wBAAwB,EAAxB,mDAAwB;IACxB,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,iEAA8D;AAC9D,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,2DAAwD;AACxD,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,iEAA8D;AAC9D,gFAA6E;AAC7E,oEAAiE;AACjE,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,kGAA+F;AAC/F,iEAA8D;AAC9D,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,0EAAuE;AACvE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,qDAAkD;AAClD,oEAAiE;AACjE,yCAAsC;AAEzB,QAAA,MAAM,GAAmB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gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
|
|
@@ -19,6 +19,7 @@ const CarouselCatalogCard_1 = require("./CarouselCatalogCard/CarouselCatalogCard
|
|
|
19
19
|
const CarouselLinks_1 = require("./CarouselLinks/CarouselLinks");
|
|
20
20
|
const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
|
|
21
21
|
const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
|
|
22
|
+
const CreditForm_1 = require("./CreditForm/CreditForm");
|
|
22
23
|
const DepositFiltration_1 = require("./DepositFiltration/DepositFiltration");
|
|
23
24
|
const Depository_1 = require("./Depository/Depository");
|
|
24
25
|
const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
|
|
@@ -67,6 +68,7 @@ exports.Blocks = {
|
|
|
67
68
|
CarouselLinks: CarouselLinks_1.CarouselLinks,
|
|
68
69
|
CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
|
|
69
70
|
CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
|
|
71
|
+
CreditForm: CreditForm_1.CreditForm,
|
|
70
72
|
DepositFiltration: DepositFiltration_1.DepositFiltration,
|
|
71
73
|
Depository: Depository_1.Depository,
|
|
72
74
|
ErrorBlock: ErrorBlock_1.ErrorBlock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AAC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AwB;IACxB,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;CACf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationForm/getInitialFormState';
|
|
5
|
+
import { type CreditFormContent } from './CreditFormContent';
|
|
6
|
+
export interface StepProps {
|
|
7
|
+
typeForm: string;
|
|
8
|
+
sections: SectionsProps[];
|
|
9
|
+
field: FormFieldRegisterer<FormState>;
|
|
10
|
+
}
|
|
11
|
+
export interface CreditFormProps extends CreditFormContent, UniBlockProps {
|
|
12
|
+
}
|
|
13
|
+
export declare const CreditForm: import("@redneckz/uni-jsx").UNIComponent<CreditFormProps, any, any>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CreditForm = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
7
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
|
+
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
9
|
+
const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
|
|
10
|
+
const InfoCard_1 = require("../../ui-kit/InfoCard/InfoCard");
|
|
11
|
+
const style_1 = require("../../utils/style");
|
|
12
|
+
const renderInputs_1 = require("../ApplicationForm/renderInputs");
|
|
13
|
+
const getInitialFormState_1 = require("../ApplicationLeadForm/getInitialFormState");
|
|
14
|
+
const CreditFormProgress_1 = require("./CreditFormProgress");
|
|
15
|
+
const creditFormStepsData_1 = require("./creditFormStepsData");
|
|
16
|
+
const StepsNavigationButtons_1 = require("./StepsNavigationButtons");
|
|
17
|
+
const STEPS_COUNT = 5;
|
|
18
|
+
const STEPS_TITLES = [
|
|
19
|
+
'Персональные данные',
|
|
20
|
+
'Данные о трудоустройстве',
|
|
21
|
+
'Данные о доходах и расходах',
|
|
22
|
+
'Дополнительные сведения',
|
|
23
|
+
'Отделение Банка',
|
|
24
|
+
];
|
|
25
|
+
exports.CreditForm = (0, uni_jsx_1.JSX)(({ className, typeForm = '', sections = [], ...rest }) => {
|
|
26
|
+
const [step, setStep] = (0, hooks_1.useState)(1);
|
|
27
|
+
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
28
|
+
const initialFormState = (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm);
|
|
29
|
+
const handleSubmit = () => false;
|
|
30
|
+
const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [(0, jsx_runtime_1.jsx)(CreditFormProgress_1.CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep({ sections: creditFormStepsData_1.stepsSectionsMap[step], typeForm, field }), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, setStep: setStep, totalSteps: STEPS_COUNT })] }) })] }) }));
|
|
32
|
+
});
|
|
33
|
+
const renderStep = ({ sections, field, typeForm }) => {
|
|
34
|
+
return sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [renderInfo(_?.inputs), (0, renderTitle_1.renderTitle)(_?.title), (0, renderInputs_1.renderInputs)({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`)));
|
|
35
|
+
};
|
|
36
|
+
const renderInfo = (inputs = []) => {
|
|
37
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
38
|
+
return infoInputs.length ? infoInputs.map(({ text }) => (0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: text })) : null;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=CreditForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditForm.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,iDAAwE;AACxE,4DAAyD;AACzD,8EAA4E;AAC5E,oEAAiE;AACjE,6DAA0D;AAE1D,6CAA0C;AAG1C,kEAA+D;AAE/D,oFAAiF;AAEjF,6DAA0D;AAC1D,+DAAyD;AACzD,qEAAkE;AAElE,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,YAAY,GAAG;IACnB,qBAAqB;IACrB,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,iBAAiB;CAClB,CAAC;AAUW,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvD,M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