@redneckz/wildless-cms-uni-blocks 0.14.142 → 0.14.144
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 +112 -72
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/bundle/utils/formatPhone.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/dist/components/ApplicationForm/acquiringTypes.js +8 -7
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/handleSubmit.js +4 -3
- package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/dist/components/ApplicationForm/renderRegion.js +4 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ContentPage/renderContentPageHead.js +2 -2
- package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlock.js +1 -0
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js +0 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/dist/utils/formatPhone.d.ts +1 -0
- package/dist/utils/formatPhone.js +5 -0
- package/dist/utils/formatPhone.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/lib/components/ApplicationForm/acquiringTypes.js +8 -7
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/handleSubmit.js +4 -3
- package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/lib/components/ApplicationForm/renderRegion.js +4 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ContentPage/renderContentPageHead.js +2 -2
- package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -0
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js +0 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/lib/utils/formatPhone.d.ts +1 -0
- package/lib/utils/formatPhone.js +2 -0
- package/lib/utils/formatPhone.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +112 -72
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/bundle/utils/formatPhone.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +8 -7
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/handleSubmit.js +4 -3
- package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/dist/components/ApplicationForm/renderRegion.js +4 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderContentPageHead.js +2 -2
- package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +0 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/dist/utils/formatPhone.d.ts +1 -0
- package/mobile/dist/utils/formatPhone.js +5 -0
- package/mobile/dist/utils/formatPhone.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +8 -7
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/handleSubmit.js +4 -3
- package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/lib/components/ApplicationForm/renderRegion.js +4 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderContentPageHead.js +2 -2
- package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +0 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/lib/utils/formatPhone.d.ts +1 -0
- package/mobile/lib/utils/formatPhone.js +2 -0
- package/mobile/lib/utils/formatPhone.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
- package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +11 -9
- package/mobile/src/components/ApplicationForm/handleSubmit.tsx +4 -3
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +29 -15
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
- package/mobile/src/components/ContentPage/renderContentPageHead.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +14 -10
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
- package/mobile/src/ui-kit/Unit/UnitProps.ts +3 -0
- package/mobile/src/utils/formatPhone.ts +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
- package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
- package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
- package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
- package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/src/components/ApplicationForm/acquiringTypes.ts +11 -9
- package/src/components/ApplicationForm/handleSubmit.tsx +4 -3
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
- package/src/components/ApplicationForm/renderRegion.tsx +29 -15
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
- package/src/components/ContentPage/renderContentPageHead.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +14 -10
- package/src/components/UnitBlock/UnitBlockContent.ts +1 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
- package/src/ui-kit/Unit/UnitProps.ts +3 -0
- package/src/utils/formatPhone.ts +1 -0
- package/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/dist/components/ApplicationForm/CreditFormState.js +0 -2
- package/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/lib/components/ApplicationForm/CreditFormState.js +0 -2
- package/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/CreditFormState.js +0 -2
- package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/lib/components/ApplicationForm/CreditFormState.js +0 -2
- package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/src/components/ApplicationForm/CreditFormState.ts +0 -14
- package/src/components/ApplicationForm/CreditFormState.ts +0 -14
|
@@ -2,11 +2,12 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useBranches } from '../../hooks/useBranches';
|
|
4
4
|
import { useForm } from '../../hooks/useForm';
|
|
5
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
6
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
5
7
|
import { objectValidator } from '../../validation/objectValidator';
|
|
6
8
|
import { isValidationSuccess } from '../../validation/validator';
|
|
7
9
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
8
10
|
import { type ApplicationFormsProps } from './ApplicationFormsProps';
|
|
9
|
-
import { type CreditFormState } from './CreditFormState';
|
|
10
11
|
import { MIN_CREDIT_AMOUNT } from './CreditParameters';
|
|
11
12
|
import { Footnote } from './Footnote';
|
|
12
13
|
import { formStyle } from './formStyle';
|
|
@@ -16,6 +17,19 @@ import { renderRegionDepartment } from './renderRegionDepartment';
|
|
|
16
17
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
17
18
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
18
19
|
|
|
20
|
+
export interface CreditFormState {
|
|
21
|
+
amount: number;
|
|
22
|
+
term: number;
|
|
23
|
+
fullName: string;
|
|
24
|
+
inn: string;
|
|
25
|
+
name: string;
|
|
26
|
+
phone: string;
|
|
27
|
+
mail: string;
|
|
28
|
+
region?: Option;
|
|
29
|
+
department?: Option;
|
|
30
|
+
annualRevenue: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
const initialFormState: CreditFormState = {
|
|
20
34
|
amount: MIN_CREDIT_AMOUNT,
|
|
21
35
|
term: 12,
|
|
@@ -49,7 +63,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
|
|
|
49
63
|
fullName,
|
|
50
64
|
inn,
|
|
51
65
|
name,
|
|
52
|
-
phone: phone
|
|
66
|
+
phone: formatPhone(phone),
|
|
53
67
|
mail,
|
|
54
68
|
region: region?.text || '',
|
|
55
69
|
department: department?.text || '',
|
|
@@ -60,7 +74,6 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
|
|
|
60
74
|
);
|
|
61
75
|
|
|
62
76
|
const [formState, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
63
|
-
|
|
64
77
|
const regions = useGetRegions();
|
|
65
78
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
66
79
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
4
5
|
import { objectValidator } from '../../validation/objectValidator';
|
|
5
6
|
import { isValidationSuccess } from '../../validation/validator';
|
|
6
7
|
import { withValidator } from '../../validation/withValidator';
|
|
@@ -37,7 +38,7 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>(({ button, link
|
|
|
37
38
|
onSubmit({
|
|
38
39
|
typeForm: 'dpst',
|
|
39
40
|
name,
|
|
40
|
-
phone: phone
|
|
41
|
+
phone: formatPhone(phone),
|
|
41
42
|
});
|
|
42
43
|
},
|
|
43
44
|
[onSubmit],
|
|
@@ -15,6 +15,7 @@ import { handleSubmitIndividual, handleSubmitLegal, handleSubmitQuestion } from
|
|
|
15
15
|
import { InputControl } from './InputControl';
|
|
16
16
|
import { PhoneInputControl } from './PhoneInputControl';
|
|
17
17
|
import { renderAgreementWithSubmit } from './renderAgreementWithSubmit';
|
|
18
|
+
import { renderRegion } from './renderRegion';
|
|
18
19
|
import { initialUserFormState, renderUserData, type UserDataState } from './renderUserData';
|
|
19
20
|
import { SelectControl } from './SelectControl';
|
|
20
21
|
import { defaultValidator, innValidator, phoneValidator } from './validators';
|
|
@@ -68,8 +69,8 @@ export const ApplicationFormFeedback = JSX<ApplicationFormsProps>(({ button, lin
|
|
|
68
69
|
);
|
|
69
70
|
|
|
70
71
|
const [formState, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
71
|
-
const
|
|
72
|
-
const
|
|
72
|
+
const regions = useGetRegions();
|
|
73
|
+
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
73
74
|
const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
|
|
74
75
|
const isLegalEntity = getLegalEntity(
|
|
75
76
|
field('typeForm').value?.key,
|
|
@@ -95,18 +96,12 @@ export const ApplicationFormFeedback = JSX<ApplicationFormsProps>(({ button, lin
|
|
|
95
96
|
{...withValidator(field('serviceDirection'), defaultValidator)}
|
|
96
97
|
/>
|
|
97
98
|
) : null}
|
|
98
|
-
|
|
99
|
-
label="Филиал обслуживания*"
|
|
100
|
-
placeholder="Выберите филиал"
|
|
101
|
-
isSearch={true}
|
|
102
|
-
options={branch.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
103
|
-
{...withValidator(field('region'), defaultValidator)}
|
|
104
|
-
/>
|
|
99
|
+
{renderRegion(regions, field)}
|
|
105
100
|
{isQualityService ? (
|
|
106
101
|
<SelectControl
|
|
107
102
|
label="Адрес*"
|
|
108
103
|
placeholder="Выберите адрес"
|
|
109
|
-
options={
|
|
104
|
+
options={addressByBranch.map(({ branchCode = '', address = '' }) => ({
|
|
110
105
|
key: branchCode,
|
|
111
106
|
text: address,
|
|
112
107
|
}))}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
4
5
|
import { objectValidator } from '../../validation/objectValidator';
|
|
5
6
|
import { isValidationSuccess } from '../../validation/validator';
|
|
6
7
|
import { withValidator } from '../../validation/withValidator';
|
|
@@ -53,7 +54,7 @@ export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) =>
|
|
|
53
54
|
middleName,
|
|
54
55
|
email,
|
|
55
56
|
consentDataProcessing,
|
|
56
|
-
phoneNumber: phone
|
|
57
|
+
phoneNumber: formatPhone(phone),
|
|
57
58
|
birthday: birthday?.toISOString().slice(0, 10) || '',
|
|
58
59
|
product: product || '',
|
|
59
60
|
},
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
5
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
6
|
+
import { objectValidator } from '../../validation/objectValidator';
|
|
7
|
+
import { isValidationSuccess } from '../../validation/validator';
|
|
8
|
+
import { withValidator } from '../../validation/withValidator';
|
|
9
|
+
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
10
|
+
import { ApplicationFieldsetLayout } from './ApplicationFieldsetLayout';
|
|
11
|
+
import { type ApplicationFormsProps } from './ApplicationFormsProps';
|
|
12
|
+
import { Footnote } from './Footnote';
|
|
13
|
+
import { formStyle, oneColumnFormStyle } from './formStyle';
|
|
14
|
+
import { InputControl } from './InputControl';
|
|
15
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
16
|
+
import { renderRegion } from './renderRegion';
|
|
17
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
18
|
+
import { initialUserFormState, type UserDataState } from './renderUserData';
|
|
19
|
+
import { defaultValidator, phoneValidator } from './validators';
|
|
20
|
+
|
|
21
|
+
export type SelfCollectionFormState = UserDataState & {
|
|
22
|
+
typeForm: Option;
|
|
23
|
+
fullName: string;
|
|
24
|
+
region?: Option;
|
|
25
|
+
phone: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const initialFormState: SelfCollectionFormState = {
|
|
29
|
+
...initialUserFormState,
|
|
30
|
+
typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' }, // Уточнить key
|
|
31
|
+
fullName: '',
|
|
32
|
+
phone: '',
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const feedbackValidator = objectValidator({
|
|
36
|
+
typeForm: defaultValidator,
|
|
37
|
+
region: defaultValidator,
|
|
38
|
+
fullName: defaultValidator,
|
|
39
|
+
phone: phoneValidator,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const ApplicationFormSelfCollection = JSX<ApplicationFormsProps>(
|
|
43
|
+
({ button, link, onSubmit }) => {
|
|
44
|
+
const handleSubmit = useCallback(
|
|
45
|
+
(formState: SelfCollectionFormState) => {
|
|
46
|
+
const { typeForm, region, fullName, phone } = formState;
|
|
47
|
+
|
|
48
|
+
const submitData = {
|
|
49
|
+
typeForm: typeForm.key,
|
|
50
|
+
region: region?.text,
|
|
51
|
+
name: fullName,
|
|
52
|
+
phone: formatPhone(phone),
|
|
53
|
+
};
|
|
54
|
+
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
55
|
+
},
|
|
56
|
+
[onSubmit],
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
60
|
+
const regions = useGetRegions();
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<form className={formStyle} onSubmit={formProps.onSubmit}>
|
|
64
|
+
<ApplicationFieldsetLayout
|
|
65
|
+
firstChildren={
|
|
66
|
+
<div className={oneColumnFormStyle}>
|
|
67
|
+
<InputControl label="ФИО*" {...withValidator(field('fullName'), defaultValidator)} />
|
|
68
|
+
{renderRegion(regions, field)}
|
|
69
|
+
<PhoneInputControl
|
|
70
|
+
label="Телефон*"
|
|
71
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
72
|
+
/>
|
|
73
|
+
{renderSubmitButton(button)}
|
|
74
|
+
<Footnote link={link} />
|
|
75
|
+
</div>
|
|
76
|
+
}
|
|
77
|
+
/>
|
|
78
|
+
</form>
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
);
|
|
@@ -3,6 +3,7 @@ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
5
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
6
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
6
7
|
import { objectValidator } from '../../validation/objectValidator';
|
|
7
8
|
import { isValidationSuccess } from '../../validation/validator';
|
|
8
9
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
@@ -75,7 +76,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
75
76
|
typeForm: 'KVED',
|
|
76
77
|
fullName,
|
|
77
78
|
name,
|
|
78
|
-
phone: phone
|
|
79
|
+
phone: formatPhone(phone),
|
|
79
80
|
text,
|
|
80
81
|
vedTypes: getVedTypes(vedTypes),
|
|
81
82
|
PartnerComments: text,
|
|
@@ -7,6 +7,7 @@ import { ApplicationFormDeposit } from './ApplicationFormDeposit';
|
|
|
7
7
|
import { ApplicationFormFeedback } from './ApplicationFormFeedback';
|
|
8
8
|
import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
|
|
9
9
|
import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
|
|
10
|
+
import { ApplicationFormSelfCollection } from './ApplicationFormSelfCollection';
|
|
10
11
|
import { ApplicationFormWed } from './ApplicationFormWed';
|
|
11
12
|
|
|
12
13
|
export const EmbeddableForms = {
|
|
@@ -20,4 +21,5 @@ export const EmbeddableForms = {
|
|
|
20
21
|
ApplicationFormFeedback,
|
|
21
22
|
ApplicationFormAntiFraud,
|
|
22
23
|
ApplicationFormCorruption,
|
|
24
|
+
ApplicationFormSelfCollection,
|
|
23
25
|
};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
2
|
|
|
3
|
-
export const ACQUIRING_TYPES:
|
|
3
|
+
export const ACQUIRING_TYPES: Option[] = [
|
|
4
4
|
{
|
|
5
|
-
|
|
5
|
+
text: 'Торговый эквайринг',
|
|
6
|
+
key: 'trade',
|
|
6
7
|
},
|
|
7
8
|
{
|
|
8
|
-
|
|
9
|
+
text: 'СБП-эквайринг',
|
|
10
|
+
key: 'sbp',
|
|
9
11
|
},
|
|
10
12
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
name: 'QR-эквайринг (СБП)',
|
|
13
|
+
text: 'Интернет-эквайринг',
|
|
14
|
+
key: 'internet',
|
|
15
15
|
},
|
|
16
|
+
|
|
16
17
|
{
|
|
17
|
-
|
|
18
|
+
text: 'Все виды эквайринга',
|
|
19
|
+
key: 'all',
|
|
18
20
|
},
|
|
19
21
|
];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
1
2
|
import { objectValidator } from '../../validation/objectValidator';
|
|
2
3
|
import { isValidationSuccess } from '../../validation/validator';
|
|
3
4
|
import { type FeedbackFormState } from './ApplicationFormFeedback';
|
|
@@ -39,7 +40,7 @@ export const handleSubmitIndividual = (
|
|
|
39
40
|
name: formState.name,
|
|
40
41
|
middleName: formState.middleName,
|
|
41
42
|
feedbackMethod: formState.feedbackMethod.text,
|
|
42
|
-
phoneNumber: formState.phone
|
|
43
|
+
phoneNumber: formatPhone(formState.phone),
|
|
43
44
|
secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
|
|
44
45
|
email: formState.email,
|
|
45
46
|
bankEmpolee: formState.bankEmpolee,
|
|
@@ -69,7 +70,7 @@ export const handleSubmitLegal = (
|
|
|
69
70
|
inn: formState.inn,
|
|
70
71
|
fullName: formState.fullName,
|
|
71
72
|
feedbackMethod: formState.feedbackMethod.text,
|
|
72
|
-
phone: formState.phone
|
|
73
|
+
phone: formatPhone(formState.phone),
|
|
73
74
|
secondaryPhoneNumber: formState?.secondaryPhone,
|
|
74
75
|
mail: formState.email,
|
|
75
76
|
bankEmpolee: formState.bankEmpolee,
|
|
@@ -96,7 +97,7 @@ export const handleSubmitQuestion = (
|
|
|
96
97
|
middleName: formState.middleName,
|
|
97
98
|
birthday: formState.birthday,
|
|
98
99
|
feedbackMethod: formState.feedbackMethod.text,
|
|
99
|
-
phoneNumber: formState.phone
|
|
100
|
+
phoneNumber: formatPhone(formState.phone),
|
|
100
101
|
email: formState.email,
|
|
101
102
|
comment: formState.comment,
|
|
102
103
|
consentDataProcessing: formState.consentDataProcessing,
|
|
@@ -15,16 +15,16 @@ export const renderAcquiringDataOrganization = (
|
|
|
15
15
|
firstChildren={
|
|
16
16
|
<div className={formChildrenStyle}>
|
|
17
17
|
<InputControl
|
|
18
|
-
label="Наименование
|
|
18
|
+
label="Наименование организации*"
|
|
19
19
|
{...withValidator(field('fullName'), defaultValidator)}
|
|
20
20
|
/>
|
|
21
|
-
<InputControl label="Контактное
|
|
21
|
+
<InputControl label="Контактное лицо*" {...withValidator(field('name'), nameValidator)} />
|
|
22
22
|
</div>
|
|
23
23
|
}
|
|
24
24
|
secondChildren={
|
|
25
25
|
<div className={formChildrenStyle}>
|
|
26
|
-
<InputControl label="
|
|
27
|
-
<PhoneInputControl label="
|
|
26
|
+
<InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
|
|
27
|
+
<PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
|
|
28
28
|
</div>
|
|
29
29
|
}
|
|
30
30
|
/>
|
|
@@ -4,6 +4,7 @@ import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
|
4
4
|
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
|
|
5
5
|
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
6
6
|
import { type Select } from './models';
|
|
7
|
+
import { renderRegion } from './renderRegion';
|
|
7
8
|
import { SelectControl } from './SelectControl';
|
|
8
9
|
import { defaultValidator } from './validators';
|
|
9
10
|
|
|
@@ -13,7 +14,7 @@ interface AcquiringRegionProps {
|
|
|
13
14
|
title?: string;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
export const renderAcquiringRegion = ({
|
|
17
|
+
export const renderAcquiringRegion = ({ field, title, regions }: AcquiringRegionProps) => (
|
|
17
18
|
<ApplicationFieldsetLayout
|
|
18
19
|
title={title}
|
|
19
20
|
firstChildren={
|
|
@@ -21,20 +22,11 @@ export const renderAcquiringRegion = ({ regions, field, title }: AcquiringRegion
|
|
|
21
22
|
<SelectControl
|
|
22
23
|
label="Вид эквайринга"
|
|
23
24
|
placeholder="Выберите эквайринг"
|
|
24
|
-
options={ACQUIRING_TYPES
|
|
25
|
+
options={ACQUIRING_TYPES}
|
|
25
26
|
{...withValidator(field('acquiringType'), defaultValidator)}
|
|
26
27
|
/>
|
|
27
28
|
</div>
|
|
28
29
|
}
|
|
29
|
-
secondChildren={
|
|
30
|
-
<div className={formChildrenStyle}>
|
|
31
|
-
<SelectControl
|
|
32
|
-
label="Адрес"
|
|
33
|
-
placeholder="Выберите адрес"
|
|
34
|
-
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
35
|
-
{...withValidator(field('region'), defaultValidator)}
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
}
|
|
30
|
+
secondChildren={<div className={formChildrenStyle}>{renderRegion(regions, field)}</div>}
|
|
39
31
|
/>
|
|
40
32
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
2
|
import { withValidator } from '../../validation/withValidator';
|
|
3
3
|
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
|
|
4
|
-
import { type CreditFormState } from './
|
|
4
|
+
import { type CreditFormState } from './ApplicationFormCredit';
|
|
5
5
|
import { InputControl } from './InputControl';
|
|
6
6
|
import { PhoneInputControl } from './PhoneInputControl';
|
|
7
7
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
2
|
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
3
3
|
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
|
|
4
|
-
import { type CreditFormState } from './
|
|
4
|
+
import { type CreditFormState } from './ApplicationFormCredit';
|
|
5
5
|
import {
|
|
6
6
|
ITEMS_CREDIT_AMOUNT,
|
|
7
7
|
ITEMS_CREDIT_TERM,
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
2
|
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
3
4
|
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
5
|
+
import { type CorruptionFormState } from './ApplicationFormCorruption';
|
|
6
|
+
import { type FeedbackFormState } from './ApplicationFormFeedback';
|
|
7
|
+
import { type SelfCollectionFormState } from './ApplicationFormSelfCollection';
|
|
8
|
+
import { type WedFormState } from './ApplicationFormWed';
|
|
4
9
|
import { type Select } from './models';
|
|
5
10
|
import { SelectControl } from './SelectControl';
|
|
6
11
|
import { defaultValidator } from './validators';
|
|
7
12
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14
|
+
export const renderRegion = <
|
|
15
|
+
T extends
|
|
16
|
+
| AcquiringFormState
|
|
17
|
+
| BusinessCardFormState
|
|
18
|
+
| CorruptionFormState
|
|
19
|
+
| FeedbackFormState
|
|
20
|
+
| SelfCollectionFormState
|
|
21
|
+
| WedFormState,
|
|
22
|
+
>(
|
|
23
|
+
regions: Select[],
|
|
24
|
+
field: FormFieldRegisterer<T>,
|
|
25
|
+
) => {
|
|
26
|
+
return (
|
|
27
|
+
<SelectControl
|
|
28
|
+
className="w-full"
|
|
29
|
+
label="Филиал"
|
|
30
|
+
placeholder="Выберите филиал"
|
|
31
|
+
isSearch={true}
|
|
32
|
+
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
33
|
+
{...withValidator(field('region'), defaultValidator)}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -2,8 +2,9 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
|
2
2
|
import { withValidator } from '../../validation/withValidator';
|
|
3
3
|
import { type Branch } from '../SafeDepositRental/useSafeBoxes';
|
|
4
4
|
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
|
|
5
|
-
import { type CreditFormState } from './
|
|
5
|
+
import { type CreditFormState } from './ApplicationFormCredit';
|
|
6
6
|
import { type Select } from './models';
|
|
7
|
+
import { renderRegion } from './renderRegion';
|
|
7
8
|
import { SelectControl } from './SelectControl';
|
|
8
9
|
import { defaultValidator } from './validators';
|
|
9
10
|
|
|
@@ -22,17 +23,7 @@ export const renderRegionDepartment = ({
|
|
|
22
23
|
}: RegionDepartmentProps) => (
|
|
23
24
|
<ApplicationFieldsetLayout
|
|
24
25
|
title={title}
|
|
25
|
-
firstChildren={
|
|
26
|
-
<div className={formChildrenStyle}>
|
|
27
|
-
<SelectControl
|
|
28
|
-
label="Филиал"
|
|
29
|
-
placeholder="Выберите филиал"
|
|
30
|
-
isSearch={true}
|
|
31
|
-
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
32
|
-
{...withValidator(field('region'), defaultValidator)}
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
}
|
|
26
|
+
firstChildren={<div className={formChildrenStyle}>{renderRegion(regions, field)}</div>}
|
|
36
27
|
secondChildren={
|
|
37
28
|
<div className={formChildrenStyle}>
|
|
38
29
|
<SelectControl
|
|
@@ -14,15 +14,27 @@ import { style } from '../../utils/style';
|
|
|
14
14
|
import { type CarouselTariffsCardContent } from './CarouselTariffsCardContent';
|
|
15
15
|
import { renderCardInfo } from './renderCardInfo';
|
|
16
16
|
|
|
17
|
-
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
|
|
18
|
+
visibleCellsCount?: number;
|
|
19
|
+
}
|
|
20
20
|
|
|
21
21
|
export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
22
|
-
({
|
|
22
|
+
({
|
|
23
|
+
className = '',
|
|
24
|
+
title,
|
|
25
|
+
align = 'text-center',
|
|
26
|
+
icon,
|
|
27
|
+
button,
|
|
28
|
+
visibleCellsCount = 1,
|
|
29
|
+
cardCells = [],
|
|
30
|
+
...rest
|
|
31
|
+
}) => {
|
|
23
32
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
24
|
-
|
|
25
|
-
const hiddenCells =
|
|
33
|
+
|
|
34
|
+
const [visibleCells, hiddenCells] =
|
|
35
|
+
visibleCellsCount > 0
|
|
36
|
+
? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
|
|
37
|
+
: [cellsNode, []];
|
|
26
38
|
|
|
27
39
|
return (
|
|
28
40
|
<BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-2xl" {...rest}>
|
|
@@ -34,8 +46,8 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
34
46
|
{title ? (
|
|
35
47
|
<Heading className={style('pt-xs', align)} headingType="h5" title={title} />
|
|
36
48
|
) : null}
|
|
37
|
-
{button ? <LinkButton className="w-full mt-m mb-lg" {...button} /> : null}
|
|
38
|
-
{
|
|
49
|
+
{button?.text ? <LinkButton className="w-full mt-m mb-lg" {...button} /> : null}
|
|
50
|
+
{hiddenCells.length ? (
|
|
39
51
|
<Foldable
|
|
40
52
|
renderFoldableSection={({ isUnfolded }) => (
|
|
41
53
|
<div>
|
|
@@ -45,7 +57,9 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
45
57
|
)}
|
|
46
58
|
renderFoldButton={cardCells.length > 1 ? renderFoldButton : null}
|
|
47
59
|
/>
|
|
48
|
-
) :
|
|
60
|
+
) : (
|
|
61
|
+
<div>{visibleCells}</div>
|
|
62
|
+
)}
|
|
49
63
|
</BlockWrapper>
|
|
50
64
|
);
|
|
51
65
|
},
|
|
@@ -24,7 +24,7 @@ export function renderContentPageHead(data: ContentPageMeta) {
|
|
|
24
24
|
function renderOpenGraph(og: Record<string, string> | undefined) {
|
|
25
25
|
return og
|
|
26
26
|
? Object.entries(og).map(([key, value]) => (
|
|
27
|
-
<meta key={key} property={`og:${key}`} content={value} />
|
|
27
|
+
<meta key={`og_${key}`} property={`og:${key}`} content={value} />
|
|
28
28
|
))
|
|
29
29
|
: null;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function renderOpenGraph(og: Record<string, string> | undefined) {
|
|
|
32
32
|
function renderTwitter(twitter: Record<string, string> | undefined) {
|
|
33
33
|
return twitter
|
|
34
34
|
? Object.entries(twitter).map(([key, value]) => (
|
|
35
|
-
<meta key={key} name={`twitter:${key}`} content={value} />
|
|
35
|
+
<meta key={`twitter_${key}`} name={`twitter:${key}`} content={value} />
|
|
36
36
|
))
|
|
37
37
|
: null;
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import { type JSXBlock, type UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
@@ -7,12 +7,16 @@ import { type ProductBlockContent } from './ProductBlockContent';
|
|
|
7
7
|
|
|
8
8
|
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
9
9
|
|
|
10
|
-
export const ProductBlock = JSX<ProductBlockProps>(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
export const ProductBlock: JSXBlock<ProductBlockProps> = JSX<ProductBlockProps>(
|
|
11
|
+
({ className, padding, ...rest }) => (
|
|
12
|
+
<BlockWrapper
|
|
13
|
+
className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
|
|
14
|
+
padding="p-0"
|
|
15
|
+
{...rest}
|
|
16
|
+
>
|
|
17
|
+
<BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
|
|
18
|
+
</BlockWrapper>
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
ProductBlock.childrenTypes = ['UnitBlock'];
|
|
@@ -4,7 +4,7 @@ import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
|
4
4
|
import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton';
|
|
5
5
|
import { useRouter } from '../../hooks/useRouter';
|
|
6
6
|
import { type Align } from '../../model/Align';
|
|
7
|
-
import { type
|
|
7
|
+
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
8
8
|
import { type VNode } from '../../model/VNode';
|
|
9
9
|
import { style } from '../../utils/style';
|
|
10
10
|
import { type PreventableEvent } from '../PreventableEvent';
|
|
@@ -27,7 +27,7 @@ const imageAlignmentMap: Record<Align, string> = {
|
|
|
27
27
|
end: '@xl:self-end',
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const BaseTile
|
|
30
|
+
export const BaseTile = JSX<BaseTileProps>(
|
|
31
31
|
({
|
|
32
32
|
className,
|
|
33
33
|
version = 'primary',
|
|
@@ -95,8 +95,6 @@ export const BaseTile: JSXBlock<BaseTileProps> = JSX<BaseTileProps>(
|
|
|
95
95
|
},
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
-
BaseTile.childrenTypes = ['UnitBlock'];
|
|
99
|
-
|
|
100
98
|
const getStyle = (padding = '', defaultPadding = '', className = '') =>
|
|
101
99
|
style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
|
|
102
100
|
|
|
@@ -16,12 +16,12 @@ export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<div key={key} className="w-full @container">
|
|
19
|
-
<div className="flex
|
|
20
|
-
<Text size="text-xl"
|
|
19
|
+
<div className="flex py-m sm:px-m bg-white @4xl:bg-gray relative">
|
|
20
|
+
<Text size="text-xl" align="text-left">
|
|
21
21
|
{_.title}
|
|
22
22
|
</Text>
|
|
23
23
|
</div>
|
|
24
|
-
<div className="w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out">
|
|
24
|
+
<div className="w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out">
|
|
25
25
|
<div className="relative">
|
|
26
26
|
<InnerTableBodyItem rows={_.rowsData} />
|
|
27
27
|
</div>
|