@redneckz/wildless-cms-uni-blocks 0.14.539 → 0.14.541
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 +50 -41
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/bundle/content-page-repository/transformContentPage.d.ts +2 -2
- package/bundle/data/CommonData.d.ts +2 -2
- package/bundle/data/NavigationData.d.ts +2 -2
- package/bundle/ui-kit/Button/Button.d.ts +1 -1
- package/bundle/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/bundle/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/bundle/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/bundle/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/dist/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/dist/components/CalculatorBonus/CalculatorBonus.js +3 -3
- package/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js +3 -3
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +3 -2
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/dist/components/CalculatorDeposit/renderDepositResult.js +2 -2
- package/dist/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +2 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/dist/content-page-repository/transformContentPage.d.ts +2 -2
- package/dist/data/CommonData.d.ts +2 -2
- package/dist/data/NavigationData.d.ts +2 -2
- package/dist/ui-kit/Button/Button.d.ts +1 -1
- package/dist/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/dist/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/dist/ui-kit/Calculator/CalculatorStyle.js +3 -5
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/dist/ui-kit/Calculator/CalculatorValue.js +10 -0
- package/dist/ui-kit/Calculator/CalculatorValue.js.map +1 -0
- package/dist/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/dist/ui-kit/Calculator/FormatedValue.js +12 -0
- package/dist/ui-kit/Calculator/FormatedValue.js.map +1 -0
- package/dist/ui-kit/Calculator/renderRate.js +2 -2
- package/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +2 -2
- package/dist/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/lib/components/CalculatorBonus/CalculatorBonus.js +3 -3
- package/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.fixture.mobile.d.ts +7 -0
- package/lib/components/CalculatorCredit/CalculatorCredit.js +3 -3
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/lib/components/CalculatorDeposit/renderDepositResult.js +2 -2
- package/lib/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +2 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/lib/content-page-repository/transformContentPage.d.ts +2 -2
- package/lib/data/CommonData.d.ts +2 -2
- package/lib/data/NavigationData.d.ts +2 -2
- package/lib/ui-kit/Button/Button.d.ts +1 -1
- package/lib/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/lib/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/lib/ui-kit/Calculator/CalculatorStyle.js +3 -5
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/lib/ui-kit/Calculator/CalculatorValue.js +8 -0
- package/lib/ui-kit/Calculator/CalculatorValue.js.map +1 -0
- package/lib/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/lib/ui-kit/Calculator/FormatedValue.js +10 -0
- package/lib/ui-kit/Calculator/FormatedValue.js.map +1 -0
- package/lib/ui-kit/Calculator/renderRate.js +2 -2
- package/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +2 -2
- package/lib/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +50 -41
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +2 -2
- package/mobile/bundle/data/CommonData.d.ts +2 -2
- package/mobile/bundle/data/NavigationData.d.ts +2 -2
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/bundle/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/mobile/bundle/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/mobile/bundle/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/mobile/bundle/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/mobile/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js +3 -3
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +3 -3
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +3 -2
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/renderDepositResult.js +2 -2
- package/mobile/dist/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js +2 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +2 -2
- package/mobile/dist/data/CommonData.d.ts +2 -2
- package/mobile/dist/data/NavigationData.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +3 -5
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorValue.js +10 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorValue.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/mobile/dist/ui-kit/Calculator/FormatedValue.js +12 -0
- package/mobile/dist/ui-kit/Calculator/FormatedValue.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/renderRate.js +2 -2
- package/mobile/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +1 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js +3 -3
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +3 -3
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/renderDepositResult.js +2 -2
- package/mobile/lib/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js +2 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +2 -2
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +2 -2
- package/mobile/lib/data/CommonData.d.ts +2 -2
- package/mobile/lib/data/NavigationData.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +3 -5
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorValue.js +8 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorValue.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/FormatedValue.d.ts +2 -0
- package/mobile/lib/ui-kit/Calculator/FormatedValue.js +10 -0
- package/mobile/lib/ui-kit/Calculator/FormatedValue.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderRate.js +2 -2
- package/mobile/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +1 -1
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.tsx +3 -7
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +1 -1
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +2 -2
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +10 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +1 -0
- package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +8 -7
- package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +1 -1
- package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +7 -4
- package/mobile/src/components/CalculatorDeposit/renderDepositResult.tsx +3 -3
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +28 -25
- package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +1 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +4 -3
- package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +1 -1
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +2 -2
- package/mobile/src/content-page-repository/transformContentPage.ts +5 -5
- package/mobile/src/data/CommonData.ts +2 -2
- package/mobile/src/data/NavigationData.ts +2 -2
- package/mobile/src/ui-kit/Button/Button.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/CalculatorProps.ts +14 -2
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +3 -6
- package/mobile/src/ui-kit/Calculator/CalculatorValue.tsx +20 -0
- package/mobile/src/ui-kit/Calculator/FormatedValue.tsx +16 -0
- package/mobile/src/ui-kit/Calculator/renderRate.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +2 -2
- package/mobile/src/ui-kit/SwipeListControl/NavButtonProp.ts +1 -1
- package/mobile/src/ui-kit/SwipeListControl/renderDotButton.tsx +2 -2
- package/package.json +2 -2
- package/src/components/ApplicationForm/AddressBranchField.tsx +1 -1
- package/src/components/CalculatorBonus/CalculatorBonus.tsx +3 -7
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +1 -1
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +2 -2
- package/src/components/CalculatorCredit/CalculatorCredit.fixture.mobile.tsx +62 -0
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +10 -3
- package/src/components/CalculatorCredit/CalculatorCreditContent.ts +1 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +8 -7
- package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +1 -1
- package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +7 -4
- package/src/components/CalculatorDeposit/renderDepositResult.tsx +3 -3
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +28 -25
- package/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +1 -0
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +1 -1
- package/src/components/ExchangeRateTile/renderInput.tsx +1 -0
- package/src/components/Footer/SocialMedia.tsx +4 -3
- package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -1
- package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +1 -1
- package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/StepsBlock/StepsBlockContent.ts +1 -1
- package/src/content-page-repository/transformAttachmentLink.ts +2 -2
- package/src/content-page-repository/transformContentPage.ts +5 -5
- package/src/data/CommonData.ts +2 -2
- package/src/data/NavigationData.ts +2 -2
- package/src/ui-kit/Button/Button.tsx +1 -1
- package/src/ui-kit/Calculator/CalculatorProps.ts +14 -2
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +3 -6
- package/src/ui-kit/Calculator/CalculatorValue.tsx +20 -0
- package/src/ui-kit/Calculator/FormatedValue.tsx +16 -0
- package/src/ui-kit/Calculator/renderRate.tsx +2 -2
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +2 -2
- package/src/ui-kit/SwipeListControl/NavButtonProp.ts +1 -1
- package/src/ui-kit/SwipeListControl/renderDotButton.tsx +2 -2
- package/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/dist/ui-kit/Calculator/CalculatorValueBlock.js +0 -12
- package/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
- package/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/lib/ui-kit/Calculator/CalculatorValueBlock.js +0 -10
- package/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
- package/mobile/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js +0 -12
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js +0 -10
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
- package/mobile/src/ui-kit/Calculator/CalculatorValueBlock.tsx +0 -52
- package/src/ui-kit/Calculator/CalculatorValueBlock.tsx +0 -52
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
|
|
2
|
-
import {
|
|
2
|
+
import { CalculatorValue } from '../../ui-kit/Calculator/CalculatorValue';
|
|
3
3
|
import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote';
|
|
4
4
|
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
5
5
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
@@ -25,13 +25,13 @@ export const renderDepositResult = ({
|
|
|
25
25
|
isCapitalization = false,
|
|
26
26
|
}: DepositResultProps) => (
|
|
27
27
|
<div className={CalculatorStyle.result}>
|
|
28
|
-
<
|
|
28
|
+
<CalculatorValue
|
|
29
29
|
title={`Доход в конце срока${isCapitalization ? CAPITALIZATION : ''}`}
|
|
30
30
|
value={income}
|
|
31
31
|
postfix={postfix}
|
|
32
32
|
prefix="+"
|
|
33
33
|
/>
|
|
34
|
-
<
|
|
34
|
+
<CalculatorValue
|
|
35
35
|
title={`Сумма в конце срока${isCapitalization ? CAPITALIZATION : ''}`}
|
|
36
36
|
value={finalSum}
|
|
37
37
|
postfix={postfix}
|
|
@@ -2,7 +2,7 @@ import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
|
2
2
|
import { useForm, type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
3
|
import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout';
|
|
4
4
|
import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
|
|
5
|
-
import {
|
|
5
|
+
import { CalculatorValue } from '../../ui-kit/Calculator/CalculatorValue';
|
|
6
6
|
import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote';
|
|
7
7
|
import { renderMonthsInput } from '../../ui-kit/Calculator/renderMonthsInput';
|
|
8
8
|
import { renderPaymentType } from '../../ui-kit/Calculator/renderPaymentType';
|
|
@@ -42,7 +42,7 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
42
42
|
moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
const
|
|
45
|
+
const calcParams = getRefinancingCalculatorParams(
|
|
46
46
|
userInputParams,
|
|
47
47
|
calcSource,
|
|
48
48
|
paramsViewSettings,
|
|
@@ -57,40 +57,40 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<CalculatorLayout className={className} title={title} {...rest}>
|
|
60
|
-
<section className={style(CalculatorStyle.wrapper,
|
|
60
|
+
<section className={style(CalculatorStyle.wrapper, className)}>
|
|
61
61
|
<div className={CalculatorStyle.input}>
|
|
62
62
|
{renderWantedSumInput({
|
|
63
63
|
title: 'Остаток долга в других банках, ₽ ',
|
|
64
64
|
step: 500,
|
|
65
|
-
min:
|
|
66
|
-
max:
|
|
65
|
+
min: calcParams.minSum,
|
|
66
|
+
max: calcParams.maxSum - calcParams.maxSumExtra,
|
|
67
67
|
...field('moneyValue'),
|
|
68
|
-
value:
|
|
68
|
+
value: calcParams.moneyValue,
|
|
69
69
|
})}
|
|
70
70
|
{renderWantedSumInput({
|
|
71
71
|
title: 'Ежемесячный платёж в других банках, ₽',
|
|
72
72
|
step: 500,
|
|
73
|
-
min:
|
|
74
|
-
max:
|
|
73
|
+
min: calcParams.minSumOld,
|
|
74
|
+
max: calcParams.maxSumOld,
|
|
75
75
|
...field('oldMonthlyPayment'),
|
|
76
|
-
value:
|
|
76
|
+
value: calcParams.oldMonthlyPayment,
|
|
77
77
|
})}
|
|
78
78
|
{renderMonthsInput({
|
|
79
79
|
title: 'Новый срок кредита, месяцев',
|
|
80
|
-
min:
|
|
81
|
-
max:
|
|
80
|
+
min: calcParams.minMonths,
|
|
81
|
+
max: calcParams.maxMonths,
|
|
82
82
|
...field('monthsValue'),
|
|
83
|
-
value:
|
|
83
|
+
value: calcParams.monthsValue,
|
|
84
84
|
})}
|
|
85
|
-
{renderCreditParamsForm({ ...
|
|
86
|
-
{
|
|
85
|
+
{renderCreditParamsForm({ ...calcParams, ...paramsViewSettings }, field)}
|
|
86
|
+
{calcParams.isExtraMoney
|
|
87
87
|
? renderWantedSumInput({
|
|
88
88
|
title: 'Дополнительная сумма, ₽ ',
|
|
89
89
|
step: 500,
|
|
90
|
-
min:
|
|
91
|
-
max:
|
|
90
|
+
min: calcParams.minSumExtra,
|
|
91
|
+
max: calcParams.maxSumExtra,
|
|
92
92
|
...field('moneyExtra'),
|
|
93
|
-
value:
|
|
93
|
+
value: calcParams.moneyExtra,
|
|
94
94
|
})
|
|
95
95
|
: null}
|
|
96
96
|
<div className="sm:hidden pt-1 pb-4 border-b border-main-divider">
|
|
@@ -98,17 +98,20 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<div className={style(CalculatorStyle.result, '@4xl:w-1/2')}>
|
|
101
|
-
<
|
|
101
|
+
<CalculatorValue title="Полная стоимость кредита" value={calcSource?.totalLoanCost} />
|
|
102
|
+
<CalculatorValue
|
|
103
|
+
title="Ставка"
|
|
104
|
+
value={calcParams?.rate}
|
|
105
|
+
fractionDigits={2}
|
|
106
|
+
postfix="%"
|
|
107
|
+
/>
|
|
108
|
+
<CalculatorValue
|
|
102
109
|
title="Ежемесячный платёж"
|
|
103
|
-
value={
|
|
110
|
+
value={calcParams.monthlyPayment}
|
|
104
111
|
postfix="₽"
|
|
105
112
|
/>
|
|
106
|
-
{
|
|
107
|
-
<
|
|
108
|
-
title={'Выгода в месяц'}
|
|
109
|
-
value={calculatorParams.benefit}
|
|
110
|
-
postfix="₽"
|
|
111
|
-
/>
|
|
113
|
+
{calcParams.benefit > 0 ? (
|
|
114
|
+
<CalculatorValue title={'Выгода в месяц'} value={calcParams.benefit} postfix="₽" />
|
|
112
115
|
) : null}
|
|
113
116
|
<div className="hidden sm:block mb-lg">{paymentTypeElement}</div>
|
|
114
117
|
{renderButtonsSection(buttons, { isVertical: true })}
|
|
@@ -53,6 +53,7 @@ export interface RefinancingCalculatorParams
|
|
|
53
53
|
export type RefinancingCalculatorData = {
|
|
54
54
|
rateRows?: RefinancingCalculatorSourceBookRateParams[];
|
|
55
55
|
limitRows?: RefinancingCalculatorSourceBookLimitParams[];
|
|
56
|
+
totalLoanCost?: string;
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
export const getRefinancingCalculatorParams = (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
3
|
+
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
4
|
+
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
5
5
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
6
6
|
import { Text } from '../../ui-kit/Text/Text';
|
|
7
7
|
import { isIcon } from '../../utils/isIcon';
|
|
@@ -28,6 +28,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
28
28
|
const { iconMapped } = findIconByHref(href);
|
|
29
29
|
const iconCustom = isIcon(icon) ? icon : iconMapped;
|
|
30
30
|
const buttonText = showButtonText ? { text } : { text: '' };
|
|
31
|
+
const iconVersion = _?.icon?.iconVersion || 'color';
|
|
31
32
|
|
|
32
33
|
if (!hasText && text) {
|
|
33
34
|
setHasText(true);
|
|
@@ -36,7 +37,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
36
37
|
return {
|
|
37
38
|
..._,
|
|
38
39
|
...buttonText,
|
|
39
|
-
icon: { ...iconCustom, iconVersion:
|
|
40
|
+
icon: { ...iconCustom, iconVersion: iconVersion },
|
|
40
41
|
version: _?.version ?? version,
|
|
41
42
|
};
|
|
42
43
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardCell } from './CardCell';
|
|
2
|
-
import type
|
|
2
|
+
import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
3
|
|
|
4
4
|
export const getScheduleDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
5
5
|
const rows = getDateDescription(workScheduleWeek);
|
|
@@ -3,7 +3,7 @@ import { style } from '../../utils/style';
|
|
|
3
3
|
import { CardCell } from './CardCell';
|
|
4
4
|
import { CardRow } from './CardRow';
|
|
5
5
|
import { WEEKDAY_MAP } from './getWorkScheduleWeek';
|
|
6
|
-
import type
|
|
6
|
+
import { type WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
7
7
|
|
|
8
8
|
export const renderBusinessSchedule = (scheduleDescription?: string) => {
|
|
9
9
|
if (!scheduleDescription) {
|
|
@@ -4,7 +4,7 @@ import { type DescriptionProps, type LabelProps, type TitleProps } from '../../m
|
|
|
4
4
|
import { type IconProps } from '../../model/Picture';
|
|
5
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
6
6
|
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
7
|
-
import type
|
|
7
|
+
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
8
8
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import util from 'util';
|
|
4
|
-
import type
|
|
4
|
+
import { type LinkProps } from '../model/LinkProps';
|
|
5
5
|
import { isUUID } from '../utils/isUUID';
|
|
6
6
|
import { clearAttachmentHref } from './clearAttachmentHref';
|
|
7
|
-
import type
|
|
7
|
+
import { type TransformationOptions } from './TransformationOptions';
|
|
8
8
|
|
|
9
9
|
const mkdir = util.promisify(fs.mkdir);
|
|
10
10
|
const copyFile = util.promisify(fs.copyFile);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type JSONRecord } from '@redneckz/json-op';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import util from 'util';
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
7
|
-
import type
|
|
4
|
+
import { type Attachment } from '../model/Attachment';
|
|
5
|
+
import { type ContentPageDef } from '../model/ContentPageDef';
|
|
6
|
+
import { type LinkProps } from '../model/LinkProps';
|
|
7
|
+
import { type Picture } from '../model/Picture';
|
|
8
8
|
import { isUUID } from '../utils/isUUID';
|
|
9
9
|
import { tableFunc } from '../utils/tableFunc';
|
|
10
10
|
import { ATTACHMENT_PREFIX } from './clearAttachmentHref';
|
|
11
11
|
import { DOCUMENT_EXT_LIST, IMAGE_EXT_LIST, OUTPUT_SUFFIX } from './extensions';
|
|
12
12
|
import { mapJSON } from './mapJSON';
|
|
13
13
|
import { mergePages } from './mergePages';
|
|
14
|
-
import type
|
|
14
|
+
import { type TransformationOptions } from './TransformationOptions';
|
|
15
15
|
import { transformAttachmentLink } from './transformAttachmentLink';
|
|
16
16
|
import { transformDocument } from './transformDocument';
|
|
17
17
|
import { transformHTML } from './transformHTML';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type AspectsProps } from '../model/AspectsProps';
|
|
2
|
+
import { type LogoType } from '../model/LogoType';
|
|
3
3
|
|
|
4
4
|
export type SearchHeaderProps = AspectsProps & { placeholder: string; ariaLabel: string };
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type AspectsDef } from '../model/AspectsProps';
|
|
2
|
+
import { type LinkProps } from '../model/LinkProps';
|
|
3
3
|
import { type IconProps } from '../model/Picture';
|
|
4
4
|
|
|
5
5
|
export interface NavigationLinkProps extends LinkProps {
|
|
@@ -3,7 +3,7 @@ import { type ButtonVersion } from '../../model/ButtonVersion';
|
|
|
3
3
|
import { style } from '../../utils/style';
|
|
4
4
|
import { type ARIAProps } from '../ARIAProps';
|
|
5
5
|
import { type ControlStateProps } from '../ControlStateProps';
|
|
6
|
-
import type
|
|
6
|
+
import { type PreventableEvent } from '../PreventableEvent';
|
|
7
7
|
import { useButton } from './useButton';
|
|
8
8
|
|
|
9
9
|
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
@@ -2,6 +2,7 @@ import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
|
2
2
|
import { type Footnote } from '../../model/Footnote';
|
|
3
3
|
import { type TitleProps } from '../../model/HeadlineType';
|
|
4
4
|
import { type ButtonsSectionContent } from '../LinkButton/ButtonsSectionContent';
|
|
5
|
+
import { type TextColor } from '../Text/TextProps';
|
|
5
6
|
|
|
6
7
|
export type CalcValueProps = {
|
|
7
8
|
moneyValue: number;
|
|
@@ -21,7 +22,18 @@ export type RateProps = {
|
|
|
21
22
|
rate: number;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
|
-
export
|
|
25
|
+
export interface CalcCurrencyProps {
|
|
26
|
+
className?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
value?: number | string;
|
|
29
|
+
fractionDigits?: number;
|
|
30
|
+
fixed?: boolean;
|
|
31
|
+
prefix?: string;
|
|
32
|
+
postfix?: string;
|
|
33
|
+
color?: TextColor;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type CalcSourceProps = {
|
|
25
37
|
/** @title Данные калькулятора */
|
|
26
38
|
calcSource?: JSONRefObject;
|
|
27
39
|
};
|
|
@@ -33,4 +45,4 @@ export interface CommonDefaultParams {
|
|
|
33
45
|
period?: number;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
|
-
export type CommonCalculatorProps = TitleProps & Footnote & ButtonsSectionContent &
|
|
48
|
+
export type CommonCalculatorProps = TitleProps & Footnote & ButtonsSectionContent & CalcSourceProps;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export const CalculatorStyle = {
|
|
2
|
-
wrapper: 'flex flex-col justify-between @4xl:flex-row',
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
input:
|
|
6
|
-
'flex flex-col lg:max-w-80 gap-2xl border-b border-b-main-divider @xl:border-none pb-3xl @xl:pb-0',
|
|
7
|
-
result: 'flex flex-col gap-y-xl',
|
|
2
|
+
wrapper: 'flex flex-col justify-between @4xl:flex-row gap-x-4xl gap-y-7 @xl:gap-y-4xl',
|
|
3
|
+
input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
|
|
4
|
+
result: 'flex flex-col gap-y-xl min-w-60',
|
|
8
5
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import { type CalcCurrencyProps } from './CalculatorProps';
|
|
5
|
+
import { FormatValue } from './FormatedValue';
|
|
6
|
+
|
|
7
|
+
const CalculatorValueStyle = 'flex justify-between @xl:flex-col';
|
|
8
|
+
|
|
9
|
+
export const CalculatorValue = JSX<CalcCurrencyProps>(
|
|
10
|
+
({ className, title, value, color = 'text-secondary-text', ...rest }) => (
|
|
11
|
+
<div className={style(CalculatorValueStyle, className)}>
|
|
12
|
+
{title ? (
|
|
13
|
+
<Text size="text-l" font="font-light" color={color}>
|
|
14
|
+
{title}
|
|
15
|
+
</Text>
|
|
16
|
+
) : null}
|
|
17
|
+
{value ? <FormatValue value={value} {...rest} /> : <Text size="text-h3">-</Text>}
|
|
18
|
+
</div>
|
|
19
|
+
),
|
|
20
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import { type CalcCurrencyProps } from './CalculatorProps';
|
|
5
|
+
|
|
6
|
+
export const FormatValue = JSX<CalcCurrencyProps>(
|
|
7
|
+
({ value, fractionDigits, fixed, prefix, postfix }) => (
|
|
8
|
+
<Text size="text-h3">
|
|
9
|
+
{typeof value === 'number'
|
|
10
|
+
? [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
|
|
11
|
+
.filter(Boolean)
|
|
12
|
+
.join(' ')
|
|
13
|
+
: value}
|
|
14
|
+
</Text>
|
|
15
|
+
),
|
|
16
|
+
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VNode } from '../../model/VNode';
|
|
2
|
-
import {
|
|
2
|
+
import { CalculatorValue } from './CalculatorValue';
|
|
3
3
|
import { Rate, type RateProps } from './Rate';
|
|
4
4
|
import { UnknownRate, type UnknownRateProps } from './UnknownRate';
|
|
5
5
|
|
|
@@ -32,7 +32,7 @@ export const renderRate = ({
|
|
|
32
32
|
{...rest}
|
|
33
33
|
/>
|
|
34
34
|
</div>
|
|
35
|
-
<
|
|
35
|
+
<CalculatorValue
|
|
36
36
|
className="@xl:hidden"
|
|
37
37
|
title={title}
|
|
38
38
|
value={rate}
|
|
@@ -3,7 +3,7 @@ import { style } from '../../utils/style';
|
|
|
3
3
|
import { Icon } from '../Icon/Icon';
|
|
4
4
|
import { LinkButton } from '../LinkButton/LinkButton';
|
|
5
5
|
import { Text } from '../Text/Text';
|
|
6
|
-
import type
|
|
6
|
+
import { type TextColor } from '../Text/TextProps';
|
|
7
7
|
import { linkButtonVersion } from './linkButtonVersion';
|
|
8
8
|
|
|
9
9
|
export interface InnerTableHeaderProps {
|
|
@@ -65,7 +65,7 @@ export const Select = JSX<SelectProps>(
|
|
|
65
65
|
<div className={style('relative', hasOpen ? 'z-20' : 'z-10')} ref={inputRef}>
|
|
66
66
|
<div
|
|
67
67
|
className={style(
|
|
68
|
-
'h-14 [&>*]:p-m pr-
|
|
68
|
+
'h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden',
|
|
69
69
|
getStyle(isBorder, valid, isDisabled),
|
|
70
70
|
)}
|
|
71
71
|
onClick={hasOpen ? handleClose : open}
|
|
@@ -86,7 +86,7 @@ export const Select = JSX<SelectProps>(
|
|
|
86
86
|
|
|
87
87
|
const renderIcon = (isOpen: boolean, iconVersion?: IconVersion) => (
|
|
88
88
|
<Icon
|
|
89
|
-
className={style('absolute right-
|
|
89
|
+
className={style('absolute right-0 flex self-center', { 'rotate-180': !isOpen })}
|
|
90
90
|
iconVersion={iconVersion}
|
|
91
91
|
name="ArrowUpIcon"
|
|
92
92
|
width="16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DescriptionProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import type
|
|
2
|
+
import { type SwipeListControlType } from './SwipeListControlContent';
|
|
3
3
|
|
|
4
4
|
export interface DotProp {
|
|
5
5
|
activeIndex?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { style } from '../../utils/style';
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type DotProp } from './NavButtonProp';
|
|
3
|
+
import { type SwipeListControlType } from './SwipeListControlContent';
|
|
4
4
|
|
|
5
5
|
const activeDotStyles: Record<SwipeListControlType, string> = {
|
|
6
6
|
'horizontal-list': 'w-6',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.541",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"path": "lib/common.css"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"limit": "
|
|
213
|
+
"limit": "68 kB",
|
|
214
214
|
"path": "bundle/bundle.umd.min.js"
|
|
215
215
|
}
|
|
216
216
|
],
|
|
@@ -3,7 +3,7 @@ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { useBranches } from '../../hooks/useBranches';
|
|
4
4
|
import { useBranchesByRegions } from '../../hooks/useBranchesByRegions';
|
|
5
5
|
import { SelectControl } from '../../ui-kit/Select/SelectControl';
|
|
6
|
-
import type
|
|
6
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
7
7
|
import { validatorObj } from './getObjectValidator';
|
|
8
8
|
import { getValidation } from './getValidation';
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
|
2
2
|
import { useForm } from '../../hooks/useForm';
|
|
3
3
|
import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout';
|
|
4
4
|
import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
|
|
5
|
-
import {
|
|
5
|
+
import { CalculatorValue } from '../../ui-kit/Calculator/CalculatorValue';
|
|
6
6
|
import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote';
|
|
7
7
|
import { renderRate } from '../../ui-kit/Calculator/renderRate';
|
|
8
8
|
import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInput';
|
|
@@ -32,7 +32,7 @@ export const CalculatorBonus = UniBlock<CalculatorBonusProps>(
|
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<CalculatorLayout className={className} title={title} {...rest}>
|
|
35
|
-
<section className={style(CalculatorStyle.wrapper,
|
|
35
|
+
<section className={style(CalculatorStyle.wrapper, className)}>
|
|
36
36
|
<div className={CalculatorStyle.input}>
|
|
37
37
|
{renderWantedSumInput({
|
|
38
38
|
title: 'Сумма покупок в категории путешествия, ₽',
|
|
@@ -65,11 +65,7 @@ export const CalculatorBonus = UniBlock<CalculatorBonusProps>(
|
|
|
65
65
|
</div>
|
|
66
66
|
<div className={CalculatorStyle.result}>
|
|
67
67
|
{yearBonus >= 0 ? (
|
|
68
|
-
<
|
|
69
|
-
title="Баллов за год"
|
|
70
|
-
value={yearBonus}
|
|
71
|
-
color="text-primary-text"
|
|
72
|
-
/>
|
|
68
|
+
<CalculatorValue title="Баллов за год" value={yearBonus} color="text-primary-text" />
|
|
73
69
|
) : null}
|
|
74
70
|
{renderButtonsSection(buttons, { isVertical: true })}
|
|
75
71
|
{renderFootnote(footnote)}
|
|
@@ -57,7 +57,7 @@ export const CalculatorBusinessDeposit = UniBlock<CalculatorBusinessDepositProp>
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<CalculatorLayout className={className} title={title} {...rest}>
|
|
60
|
-
<section className={style(CalculatorStyle.wrapper,
|
|
60
|
+
<section className={style(CalculatorStyle.wrapper, className)}>
|
|
61
61
|
<div className={CalculatorStyle.input}>
|
|
62
62
|
{renderWantedSumInput({
|
|
63
63
|
title: 'Сумма, ₽',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Footnote } from '../../model/Footnote';
|
|
2
2
|
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type CalcSourceProps,
|
|
5
5
|
type CommonDefaultParams,
|
|
6
6
|
} from '../../ui-kit/Calculator/CalculatorProps';
|
|
7
7
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
@@ -35,7 +35,7 @@ export type EmptyRateParams = {
|
|
|
35
35
|
*/
|
|
36
36
|
export type RateParamsDef = EmptyRateParams | ULRateDef | IPRateDef;
|
|
37
37
|
|
|
38
|
-
export type CommonCalculatorProps = Footnote & ButtonsSectionContent &
|
|
38
|
+
export type CommonCalculatorProps = Footnote & ButtonsSectionContent & CalcSourceProps;
|
|
39
39
|
|
|
40
40
|
export interface BusinessDepositDefaultParams extends CommonDefaultParams {
|
|
41
41
|
/** @title Пополнение */
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
3
|
+
import { CalculatorCredit } from './CalculatorCredit';
|
|
4
|
+
|
|
5
|
+
const buttons: LinkButtonContent[] = [
|
|
6
|
+
{
|
|
7
|
+
href: 'https://rshb.ru',
|
|
8
|
+
text: 'Отправить заявку',
|
|
9
|
+
target: '_blank',
|
|
10
|
+
version: 'primary',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
href: 'https://rshb.ru',
|
|
14
|
+
text: 'Подробные условия',
|
|
15
|
+
target: '_blank',
|
|
16
|
+
version: 'secondary',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
const calculator = {
|
|
21
|
+
className: 'col-span-12',
|
|
22
|
+
title: 'Калькулятор кредита',
|
|
23
|
+
description: '17,525 - 28,400%',
|
|
24
|
+
buttons: buttons,
|
|
25
|
+
footnote:
|
|
26
|
+
'Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.',
|
|
27
|
+
calcSource: {
|
|
28
|
+
$ref: '/wcms-resources/credit-calculator-data.json',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
default: (
|
|
34
|
+
<div className="container grid grid-cols-12">
|
|
35
|
+
<CalculatorCredit
|
|
36
|
+
{...calculator}
|
|
37
|
+
paramsViewSettings={{
|
|
38
|
+
isShowSalaryClient: true,
|
|
39
|
+
isShowStateEmployee: true,
|
|
40
|
+
isShowPensionClient: true,
|
|
41
|
+
isShowInsurance: true,
|
|
42
|
+
}}
|
|
43
|
+
defaultParams={{
|
|
44
|
+
sum: 100000,
|
|
45
|
+
period: 16,
|
|
46
|
+
isEnableInsurance: true,
|
|
47
|
+
}}
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
),
|
|
51
|
+
minRate: (
|
|
52
|
+
<div className="container grid grid-cols-12">
|
|
53
|
+
<CalculatorCredit
|
|
54
|
+
{...calculator}
|
|
55
|
+
paramsViewSettings={{
|
|
56
|
+
isShowSalaryClient: true,
|
|
57
|
+
isShowInsurance: true,
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
),
|
|
62
|
+
};
|
|
@@ -5,7 +5,7 @@ import { useForm, type FormFieldRegisterer } from '../../hooks/useForm';
|
|
|
5
5
|
import { DEFAULT_MONTHS } from '../../ui-kit/Calculator/calculatorConstants';
|
|
6
6
|
import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout';
|
|
7
7
|
import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
|
|
8
|
-
import {
|
|
8
|
+
import { CalculatorValue } from '../../ui-kit/Calculator/CalculatorValue';
|
|
9
9
|
import { getDefaultParamsMin } from '../../ui-kit/Calculator/getDefaultParams';
|
|
10
10
|
import {
|
|
11
11
|
getMoneyDefaultValue,
|
|
@@ -102,7 +102,7 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
|
|
|
102
102
|
|
|
103
103
|
return (
|
|
104
104
|
<CalculatorLayout className={className} title={title} {...rest}>
|
|
105
|
-
<section className={style(CalculatorStyle.wrapper,
|
|
105
|
+
<section className={style(CalculatorStyle.wrapper, className)}>
|
|
106
106
|
<div className={CalculatorStyle.input}>
|
|
107
107
|
{renderWantedSumInput({
|
|
108
108
|
title: 'Сумма кредита, ₽',
|
|
@@ -123,7 +123,14 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
|
|
|
123
123
|
<div className="sm:hidden">{paymentTypeElement}</div>
|
|
124
124
|
</div>
|
|
125
125
|
<div className={style(CalculatorStyle.result, '@4xl:w-1/2')}>
|
|
126
|
-
<
|
|
126
|
+
<CalculatorValue title="Полная стоимость кредита" value={calcSource?.totalLoanCost} />
|
|
127
|
+
<CalculatorValue
|
|
128
|
+
title="Ставка"
|
|
129
|
+
value={calcParams?.rate}
|
|
130
|
+
fractionDigits={2}
|
|
131
|
+
postfix="%"
|
|
132
|
+
/>
|
|
133
|
+
<CalculatorValue
|
|
127
134
|
title="Ежемесячный платёж"
|
|
128
135
|
value={calcParams.monthlyPayment}
|
|
129
136
|
postfix="₽"
|
|
@@ -29,6 +29,7 @@ export interface CreditCalculatorParams
|
|
|
29
29
|
export type CreditCalculatorData = {
|
|
30
30
|
rateRows?: CreditCalculatorSourceBookParams[];
|
|
31
31
|
limitRows?: CreditCalculatorSourceBookParams[];
|
|
32
|
+
totalLoanCost?: string;
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export interface CreditCalculatorParamsViewSettingsDefault {
|