@redneckz/wildless-cms-uni-blocks 0.9.11 → 0.9.13
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/bin/migrateContentUnit.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +131 -56
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +18 -17
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/bundle/components/Calculator/rangeHelpers.d.ts +1 -0
- package/bundle/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/bundle/components/Footer/MediaButton.d.ts +3 -4
- package/bundle/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/bundle/content-page-repository/alignImg.d.ts +9 -0
- package/bundle/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/bundle/content-page-repository/resizeImg.d.ts +3 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +1 -0
- package/bundle/content-page-repository/transformImg.d.ts +6 -5
- package/bundle/content-page-repository/transformPicture.d.ts +1 -1
- package/bundle/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/bundle/utils/arrayByRange.d.ts +1 -0
- package/bundle/utils/isPictureSizeEmpty.d.ts +2 -2
- package/bundle/utils/mergeIntervals.d.ts +1 -0
- package/dist/components/Calculator/CalculatorContent.d.ts +18 -17
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/dist/components/Calculator/DepositCalculatorForm.js +21 -11
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.js +1 -1
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/rangeHelpers.d.ts +1 -0
- package/dist/components/Calculator/rangeHelpers.js +4 -1
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/dist/components/Calculator/renderMonthsInput.js +3 -2
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +27 -29
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js +22 -6
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/dist/components/Footer/MediaButton.d.ts +3 -4
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/dist/content-page-repository/ContentPageRepository.js +7 -25
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/content-page-repository/alignImg.d.ts +9 -0
- package/dist/content-page-repository/alignImg.js +23 -0
- package/dist/content-page-repository/alignImg.js.map +1 -0
- package/dist/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/dist/content-page-repository/computeImgOutputPath.js +18 -0
- package/dist/content-page-repository/computeImgOutputPath.js.map +1 -0
- package/dist/content-page-repository/resizeImg.d.ts +3 -0
- package/dist/content-page-repository/resizeImg.js +19 -0
- package/dist/content-page-repository/resizeImg.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.d.ts +1 -0
- package/dist/content-page-repository/transformContentPage.js +25 -19
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformImg.d.ts +6 -5
- package/dist/content-page-repository/transformImg.js +26 -76
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/content-page-repository/transformPicture.d.ts +1 -1
- package/dist/content-page-repository/transformPicture.js +8 -16
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/dist/ui-kit/InputListRange/InputListRange.js +41 -0
- package/dist/ui-kit/InputListRange/InputListRange.js.map +1 -0
- package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/dist/ui-kit/InputListRange/InputListRangeProps.js +2 -0
- package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
- package/dist/ui-kit/Select/Select.js +2 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/arrayByRange.d.ts +1 -0
- package/dist/utils/arrayByRange.js +5 -0
- package/dist/utils/arrayByRange.js.map +1 -0
- package/dist/utils/isPictureSizeEmpty.d.ts +2 -2
- package/dist/utils/isPictureSizeEmpty.js +1 -1
- package/dist/utils/isPictureSizeEmpty.js.map +1 -1
- package/dist/utils/mergeIntervals.d.ts +1 -0
- package/dist/utils/mergeIntervals.js +20 -0
- package/dist/utils/mergeIntervals.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +18 -17
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/lib/components/Calculator/DepositCalculatorForm.js +22 -12
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.js +1 -1
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/rangeHelpers.d.ts +1 -0
- package/lib/components/Calculator/rangeHelpers.js +2 -0
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/lib/components/Calculator/renderMonthsInput.js +3 -2
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +27 -29
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js +22 -6
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/lib/components/Footer/MediaButton.d.ts +3 -4
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/lib/content-page-repository/ContentPageRepository.js +8 -26
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/content-page-repository/alignImg.d.ts +9 -0
- package/lib/content-page-repository/alignImg.js +17 -0
- package/lib/content-page-repository/alignImg.js.map +1 -0
- package/lib/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/lib/content-page-repository/computeImgOutputPath.js +12 -0
- package/lib/content-page-repository/computeImgOutputPath.js.map +1 -0
- package/lib/content-page-repository/resizeImg.d.ts +3 -0
- package/lib/content-page-repository/resizeImg.js +13 -0
- package/lib/content-page-repository/resizeImg.js.map +1 -0
- package/lib/content-page-repository/transformContentPage.d.ts +1 -0
- package/lib/content-page-repository/transformContentPage.js +23 -18
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformImg.d.ts +6 -5
- package/lib/content-page-repository/transformImg.js +26 -76
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/content-page-repository/transformPicture.d.ts +1 -1
- package/lib/content-page-repository/transformPicture.js +8 -16
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/lib/ui-kit/InputListRange/InputListRange.js +39 -0
- package/lib/ui-kit/InputListRange/InputListRange.js.map +1 -0
- package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/lib/ui-kit/InputListRange/InputListRangeProps.js +2 -0
- package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
- package/lib/ui-kit/Select/Select.js +2 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/arrayByRange.d.ts +1 -0
- package/lib/utils/arrayByRange.js +2 -0
- package/lib/utils/arrayByRange.js.map +1 -0
- package/lib/utils/isPictureSizeEmpty.d.ts +2 -2
- package/lib/utils/isPictureSizeEmpty.js +1 -1
- package/lib/utils/isPictureSizeEmpty.js.map +1 -1
- package/lib/utils/mergeIntervals.d.ts +1 -0
- package/lib/utils/mergeIntervals.js +17 -0
- package/lib/utils/mergeIntervals.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +18 -17
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +1 -0
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/mobile/bundle/components/Footer/MediaButton.d.ts +3 -4
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/mobile/bundle/content-page-repository/alignImg.d.ts +9 -0
- package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/mobile/bundle/content-page-repository/resizeImg.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformImg.d.ts +6 -5
- package/mobile/bundle/content-page-repository/transformPicture.d.ts +1 -1
- package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/mobile/bundle/utils/arrayByRange.d.ts +1 -0
- package/mobile/bundle/utils/isPictureSizeEmpty.d.ts +2 -2
- package/mobile/bundle/utils/mergeIntervals.d.ts +1 -0
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +18 -17
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +21 -11
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.js +1 -1
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +1 -0
- package/mobile/dist/components/Calculator/rangeHelpers.js +4 -1
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.js +3 -2
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +27 -29
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +22 -6
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/mobile/dist/components/Footer/MediaButton.d.ts +3 -4
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/mobile/dist/content-page-repository/ContentPageRepository.js +7 -25
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/content-page-repository/alignImg.d.ts +9 -0
- package/mobile/dist/content-page-repository/alignImg.js +23 -0
- package/mobile/dist/content-page-repository/alignImg.js.map +1 -0
- package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/mobile/dist/content-page-repository/computeImgOutputPath.js +18 -0
- package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +1 -0
- package/mobile/dist/content-page-repository/resizeImg.d.ts +3 -0
- package/mobile/dist/content-page-repository/resizeImg.js +19 -0
- package/mobile/dist/content-page-repository/resizeImg.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.js +25 -19
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.d.ts +6 -5
- package/mobile/dist/content-page-repository/transformImg.js +26 -76
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.d.ts +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +8 -16
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js +41 -0
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +1 -0
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +2 -0
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.js +2 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/arrayByRange.d.ts +1 -0
- package/mobile/dist/utils/arrayByRange.js +5 -0
- package/mobile/dist/utils/arrayByRange.js.map +1 -0
- package/mobile/dist/utils/isPictureSizeEmpty.d.ts +2 -2
- package/mobile/dist/utils/isPictureSizeEmpty.js +1 -1
- package/mobile/dist/utils/isPictureSizeEmpty.js.map +1 -1
- package/mobile/dist/utils/mergeIntervals.d.ts +1 -0
- package/mobile/dist/utils/mergeIntervals.js +20 -0
- package/mobile/dist/utils/mergeIntervals.js.map +1 -0
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +18 -17
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +22 -12
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.js +1 -1
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +1 -0
- package/mobile/lib/components/Calculator/rangeHelpers.js +2 -0
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +1 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.js +3 -2
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -29
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +22 -6
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
- package/mobile/lib/components/Footer/MediaButton.d.ts +3 -4
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +1 -5
- package/mobile/lib/content-page-repository/ContentPageRepository.js +8 -26
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/content-page-repository/alignImg.d.ts +9 -0
- package/mobile/lib/content-page-repository/alignImg.js +17 -0
- package/mobile/lib/content-page-repository/alignImg.js.map +1 -0
- package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +3 -0
- package/mobile/lib/content-page-repository/computeImgOutputPath.js +12 -0
- package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +1 -0
- package/mobile/lib/content-page-repository/resizeImg.d.ts +3 -0
- package/mobile/lib/content-page-repository/resizeImg.js +13 -0
- package/mobile/lib/content-page-repository/resizeImg.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.js +23 -18
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.d.ts +6 -5
- package/mobile/lib/content-page-repository/transformImg.js +26 -76
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.d.ts +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +8 -16
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +2 -0
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js +39 -0
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +1 -0
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +2 -0
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.js +2 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/arrayByRange.d.ts +1 -0
- package/mobile/lib/utils/arrayByRange.js +2 -0
- package/mobile/lib/utils/arrayByRange.js.map +1 -0
- package/mobile/lib/utils/isPictureSizeEmpty.d.ts +2 -2
- package/mobile/lib/utils/isPictureSizeEmpty.js +1 -1
- package/mobile/lib/utils/isPictureSizeEmpty.js.map +1 -1
- package/mobile/lib/utils/mergeIntervals.d.ts +1 -0
- package/mobile/lib/utils/mergeIntervals.js +17 -0
- package/mobile/lib/utils/mergeIntervals.js.map +1 -0
- package/mobile/src/components/Calculator/Calculator.example.json +3 -1
- package/mobile/src/components/Calculator/CalculatorContent.ts +20 -19
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -7
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +48 -15
- package/mobile/src/components/Calculator/constants.ts +1 -1
- package/mobile/src/components/Calculator/rangeHelpers.ts +10 -0
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +13 -2
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +8 -10
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +36 -9
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -8
- package/mobile/src/components/Footer/MediaButton.tsx +3 -5
- package/mobile/src/content-page-repository/ContentPageRepository.ts +8 -40
- package/mobile/src/content-page-repository/alignImg.ts +32 -0
- package/mobile/src/content-page-repository/computeImgOutputPath.ts +20 -0
- package/mobile/src/content-page-repository/resizeImg.ts +18 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +25 -18
- package/mobile/src/content-page-repository/transformImg.ts +49 -121
- package/mobile/src/content-page-repository/transformPicture.ts +9 -21
- package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +99 -0
- package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +11 -0
- package/mobile/src/ui-kit/Select/Select.tsx +8 -1
- package/mobile/src/utils/arrayByRange.ts +4 -0
- package/mobile/src/utils/isPictureSizeEmpty.ts +3 -3
- package/mobile/src/utils/mergeIntervals.ts +19 -0
- package/package.json +1 -1
- package/src/components/Calculator/Calculator.example.json +3 -1
- package/src/components/Calculator/Calculator.fixture.tsx +4 -0
- package/src/components/Calculator/CalculatorContent.ts +20 -19
- package/src/components/Calculator/CreditCalculatorForm.tsx +6 -7
- package/src/components/Calculator/DepositCalculatorForm.tsx +48 -15
- package/src/components/Calculator/constants.ts +1 -1
- package/src/components/Calculator/rangeHelpers.ts +10 -0
- package/src/components/Calculator/renderMonthsInput.tsx +13 -2
- package/src/components/Calculator/useCreditCalculatorParams.ts +8 -10
- package/src/components/Calculator/useDepositCalculatorParams.ts +36 -9
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +0 -9
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -8
- package/src/components/Footer/MediaButton.tsx +3 -5
- package/src/content-page-repository/ContentPageRepository.ts +8 -40
- package/src/content-page-repository/alignImg.ts +32 -0
- package/src/content-page-repository/computeImgOutputPath.ts +20 -0
- package/src/content-page-repository/resizeImg.ts +18 -0
- package/src/content-page-repository/transformContentPage.ts +25 -18
- package/src/content-page-repository/transformImg.ts +49 -121
- package/src/content-page-repository/transformPicture.ts +9 -21
- package/src/ui-kit/InputListRange/InputListRange.tsx +99 -0
- package/src/ui-kit/InputListRange/InputListRangeProps.ts +11 -0
- package/src/ui-kit/Select/Select.tsx +8 -1
- package/src/utils/arrayByRange.ts +4 -0
- package/src/utils/isPictureSizeEmpty.ts +3 -3
- package/src/utils/mergeIntervals.ts +19 -0
- package/bundle/content-page-repository/transformImgPath.d.ts +0 -8
- package/dist/content-page-repository/transformImgPath.d.ts +0 -8
- package/dist/content-page-repository/transformImgPath.js +0 -22
- package/dist/content-page-repository/transformImgPath.js.map +0 -1
- package/lib/content-page-repository/transformImgPath.d.ts +0 -8
- package/lib/content-page-repository/transformImgPath.js +0 -16
- package/lib/content-page-repository/transformImgPath.js.map +0 -1
- package/mobile/bundle/content-page-repository/transformImgPath.d.ts +0 -8
- package/mobile/dist/content-page-repository/transformImgPath.d.ts +0 -8
- package/mobile/dist/content-page-repository/transformImgPath.js +0 -22
- package/mobile/dist/content-page-repository/transformImgPath.js.map +0 -1
- package/mobile/lib/content-page-repository/transformImgPath.d.ts +0 -8
- package/mobile/lib/content-page-repository/transformImgPath.js +0 -16
- package/mobile/lib/content-page-repository/transformImgPath.js.map +0 -1
- package/mobile/src/content-page-repository/transformImgPath.ts +0 -30
- package/src/content-page-repository/transformImgPath.ts +0 -30
|
@@ -17,31 +17,32 @@ export interface CreditCalculatorParamsViewSettings {
|
|
|
17
17
|
/** @title Комплексная страховая защита */
|
|
18
18
|
isShowInsurance?: boolean;
|
|
19
19
|
}
|
|
20
|
+
export interface DepositCalculatorParamsViewSettings {
|
|
21
|
+
/**
|
|
22
|
+
* @title Выплата процентов
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
isShowMonthlyInterestPayment?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @title Оформление
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
isShowRemoteRegistration?: boolean;
|
|
31
|
+
}
|
|
20
32
|
export interface CreditCalculatorProps extends CommonCalculatorProps {
|
|
21
33
|
/** @title Настройка отображения чекбоксов */
|
|
22
34
|
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
23
35
|
}
|
|
36
|
+
export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
37
|
+
/** @title Настройка отображения радио */
|
|
38
|
+
paramsViewSettings?: DepositCalculatorParamsViewSettings;
|
|
39
|
+
}
|
|
24
40
|
export interface BusinessDepositCalculatorProps extends CommonCalculatorProps {
|
|
25
41
|
/** @title Сноска снизу блока */
|
|
26
42
|
bottomFootnote?: string;
|
|
27
43
|
/** @title Показывать название депозита */
|
|
28
44
|
isShowDepositeName?: boolean;
|
|
29
45
|
}
|
|
30
|
-
/**
|
|
31
|
-
* TODO: данные из справочника
|
|
32
|
-
**/
|
|
33
|
-
export interface DepositCalculatorParams {
|
|
34
|
-
/** @hidden */
|
|
35
|
-
minSum?: number;
|
|
36
|
-
/** @hidden */
|
|
37
|
-
maxSum?: number;
|
|
38
|
-
/** @hidden */
|
|
39
|
-
minMonths?: number;
|
|
40
|
-
/** @hidden */
|
|
41
|
-
maxMonths?: number;
|
|
42
|
-
/** @hidden */
|
|
43
|
-
rate?: number;
|
|
44
|
-
}
|
|
45
46
|
/**
|
|
46
47
|
* ? Общий интерфейс для всех типов калькуляторов?
|
|
47
48
|
* ? Используется во вложенных функциях. Может быть как то разбить это и вынести отсюда?
|
|
@@ -67,14 +68,14 @@ export declare type CreditCalculatorParamsDef = TitleProps & CreditCalculatorPro
|
|
|
67
68
|
* @title Калькулятор вкладов
|
|
68
69
|
* @default {"calcType": "DepositCalculatorForm"}
|
|
69
70
|
*/
|
|
70
|
-
export declare type DepositCalculatorParamsDef = TitleProps &
|
|
71
|
+
export declare type DepositCalculatorParamsDef = TitleProps & DepositCalculatorProps & {
|
|
71
72
|
calcType: 'DepositCalculatorForm';
|
|
72
73
|
};
|
|
73
74
|
/**
|
|
74
75
|
* @title Калькулятор вкладов - бизнес
|
|
75
76
|
* @default {"calcType": "BusinessDepositCalculatorForm"}
|
|
76
77
|
*/
|
|
77
|
-
export declare type BusinessDepositCalculatorParamsDef = TitleProps &
|
|
78
|
+
export declare type BusinessDepositCalculatorParamsDef = TitleProps & BusinessDepositCalculatorProps & {
|
|
78
79
|
calcType: 'BusinessDepositCalculatorForm';
|
|
79
80
|
};
|
|
80
81
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface DepositCalculatorProp extends
|
|
1
|
+
import { DepositCalculatorProps } from './CalculatorContent';
|
|
2
|
+
export interface DepositCalculatorProp extends DepositCalculatorProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const DepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<DepositCalculatorProp, any, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const getRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => {
|
|
2
2
|
[x: string]: unknown;
|
|
3
3
|
};
|
|
4
|
+
export declare const getMergeRangesByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => number[][];
|
|
4
5
|
export declare const checkRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>(value: number, [minKey, maxKey]: [MinKey, MaxKey], sourceBookRow: T) => boolean;
|
|
@@ -3,6 +3,7 @@ interface RenderMonthsInputParams {
|
|
|
3
3
|
minMonths: number;
|
|
4
4
|
maxMonths: number;
|
|
5
5
|
monthsValue: number;
|
|
6
|
+
availableMonths?: Array<number>;
|
|
6
7
|
}
|
|
7
8
|
export declare function renderMonthsInput(title: string, params: RenderMonthsInputParams, callback?: (value: number) => void): JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DepositCalculatorParamsViewSettings } from './CalculatorContent';
|
|
1
2
|
export interface CommonDepositParams {
|
|
2
3
|
isMonthlyInterestPayment: boolean;
|
|
3
4
|
isRemoteRegistration: boolean;
|
|
@@ -14,10 +15,11 @@ export interface DepositCalculatorUserInputParams extends CommonDepositParams {
|
|
|
14
15
|
monthsValue: number;
|
|
15
16
|
}
|
|
16
17
|
export interface DepositCalculatorParams extends DepositCalculatorSourceBookParams, DepositCalculatorUserInputParams {
|
|
18
|
+
availableMonths: number[];
|
|
17
19
|
income: number;
|
|
18
20
|
finalSum: number;
|
|
19
21
|
}
|
|
20
22
|
export declare type DepositCalculatorData = {
|
|
21
23
|
rows: DepositCalculatorSourceBookParams[];
|
|
22
24
|
};
|
|
23
|
-
export declare const useDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, sourceBookDir?: string) => DepositCalculatorParams;
|
|
25
|
+
export declare const useDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, sourceBookDir?: string, paramsViewSettings?: DepositCalculatorParamsViewSettings) => DepositCalculatorParams;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
1
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
5
4
|
import type { IconProps } from '../../model/Picture';
|
|
6
|
-
import type {
|
|
5
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
7
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
8
7
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
9
|
-
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps &
|
|
10
|
-
version: ButtonVersion;
|
|
11
|
-
rounded?: boolean;
|
|
12
|
-
};
|
|
8
|
+
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonProps;
|
|
13
9
|
/**
|
|
14
10
|
* @title Карточка рекомендаций
|
|
15
11
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IconProps } from '../../model/Picture';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
3
|
export declare type ButtonSize = 'default' | 'small';
|
|
4
|
-
interface MediaButtonProps extends
|
|
5
|
-
iconVersion?: IconVersion;
|
|
4
|
+
interface MediaButtonProps extends ButtonProps, IconProps {
|
|
6
5
|
buttonSize?: ButtonSize;
|
|
7
6
|
}
|
|
8
7
|
export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
|
|
@@ -3,12 +3,8 @@ import type { TransformationOptions } from './TransformationOptions';
|
|
|
3
3
|
export declare class ContentPageRepository {
|
|
4
4
|
private readonly options;
|
|
5
5
|
static readonly inst: ContentPageRepository;
|
|
6
|
-
private cache;
|
|
7
6
|
constructor(options?: TransformationOptions);
|
|
8
7
|
listAllContentPages(): Promise<string[]>;
|
|
9
|
-
getAllContentPages(): Promise<ContentPageDef[]>;
|
|
10
|
-
getSecondaryContentPages(customPageType?: string): Promise<ContentPageDef[]>;
|
|
11
|
-
getContentPageBySlug(slug: string): Promise<ContentPageDef | undefined>;
|
|
12
|
-
getIndexPage(): Promise<ContentPageDef | undefined>;
|
|
13
8
|
readPage(filePath: string): Promise<ContentPageDef>;
|
|
9
|
+
generatePage(filePath: string): Promise<ContentPageDef>;
|
|
14
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Sharp } from 'sharp';
|
|
2
|
+
import type { ImageSize } from '../model/ImageSize';
|
|
3
|
+
import type { ImgAlignment } from '../model/Picture';
|
|
4
|
+
interface ImgAlignmentParams {
|
|
5
|
+
containerSize?: Partial<ImageSize>;
|
|
6
|
+
alignment?: ImgAlignment;
|
|
7
|
+
}
|
|
8
|
+
export declare const alignImg: ({ containerSize, alignment }: ImgAlignmentParams) => (chain: Sharp) => Promise<Sharp>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ImgSource } from '../model/Picture';
|
|
2
|
+
import type { TransformationOptions } from './TransformationOptions';
|
|
3
|
+
export declare function computeImgOutputPath(imgInputPath: string, { contentDir, publicDir, format, size, alignment }: TransformationOptions & ImgSource): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ContentPageDef } from '../model/ContentPageDef';
|
|
2
2
|
import type { TransformationOptions } from './TransformationOptions';
|
|
3
3
|
export declare function transformContentPage(pagePath: string, options: TransformationOptions): Promise<ContentPageDef>;
|
|
4
|
+
export declare const generatedPagePath: (pagePath: string) => string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ImageSize } from '../model/ImageSize';
|
|
2
2
|
import type { ImgSource } from '../model/Picture';
|
|
3
3
|
import type { TransformationOptions } from './TransformationOptions';
|
|
4
|
-
declare type
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare type ImgOutputPath = string;
|
|
5
|
+
declare type TransformationTaskKey = ImgOutputPath;
|
|
6
|
+
declare type TransformationTasksCache = Map<TransformationTaskKey, Promise<ImgOutputPath>>;
|
|
7
|
+
declare type TransformImgOptions = TransformationOptions & ImgSource & {
|
|
7
8
|
containerSize?: ImageSize;
|
|
8
|
-
|
|
9
|
+
cache?: TransformationTasksCache;
|
|
9
10
|
};
|
|
10
|
-
export declare function transformImg(
|
|
11
|
+
export declare function transformImg(src: string, pagePath: string, options: TransformImgOptions): ImgOutputPath | Promise<ImgOutputPath>;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Picture } from '../model/Picture';
|
|
2
2
|
import type { TransformationOptions } from './TransformationOptions';
|
|
3
|
-
export declare function transformPicture(
|
|
3
|
+
export declare function transformPicture(picture: Picture, pagePath: string, options: TransformationOptions): Promise<Picture>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ListContent } from '../List/ListContent';
|
|
2
|
+
export interface InputListRangeProps extends ListContent {
|
|
3
|
+
className?: string;
|
|
4
|
+
items?: string[];
|
|
5
|
+
list?: number[];
|
|
6
|
+
value?: number;
|
|
7
|
+
title?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange?: (value: number) => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const arrayByRange: (start: number, stop: number, step?: number) => number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function isPictureSizeEmpty(size:
|
|
1
|
+
import type { ImageSize } from '../model/ImageSize';
|
|
2
|
+
export declare function isPictureSizeEmpty(size: Partial<ImageSize> | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeIntervals: (intervals: number[][]) => number[][];
|
|
@@ -17,31 +17,32 @@ export interface CreditCalculatorParamsViewSettings {
|
|
|
17
17
|
/** @title Комплексная страховая защита */
|
|
18
18
|
isShowInsurance?: boolean;
|
|
19
19
|
}
|
|
20
|
+
export interface DepositCalculatorParamsViewSettings {
|
|
21
|
+
/**
|
|
22
|
+
* @title Выплата процентов
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
isShowMonthlyInterestPayment?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @title Оформление
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
isShowRemoteRegistration?: boolean;
|
|
31
|
+
}
|
|
20
32
|
export interface CreditCalculatorProps extends CommonCalculatorProps {
|
|
21
33
|
/** @title Настройка отображения чекбоксов */
|
|
22
34
|
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
23
35
|
}
|
|
36
|
+
export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
37
|
+
/** @title Настройка отображения радио */
|
|
38
|
+
paramsViewSettings?: DepositCalculatorParamsViewSettings;
|
|
39
|
+
}
|
|
24
40
|
export interface BusinessDepositCalculatorProps extends CommonCalculatorProps {
|
|
25
41
|
/** @title Сноска снизу блока */
|
|
26
42
|
bottomFootnote?: string;
|
|
27
43
|
/** @title Показывать название депозита */
|
|
28
44
|
isShowDepositeName?: boolean;
|
|
29
45
|
}
|
|
30
|
-
/**
|
|
31
|
-
* TODO: данные из справочника
|
|
32
|
-
**/
|
|
33
|
-
export interface DepositCalculatorParams {
|
|
34
|
-
/** @hidden */
|
|
35
|
-
minSum?: number;
|
|
36
|
-
/** @hidden */
|
|
37
|
-
maxSum?: number;
|
|
38
|
-
/** @hidden */
|
|
39
|
-
minMonths?: number;
|
|
40
|
-
/** @hidden */
|
|
41
|
-
maxMonths?: number;
|
|
42
|
-
/** @hidden */
|
|
43
|
-
rate?: number;
|
|
44
|
-
}
|
|
45
46
|
/**
|
|
46
47
|
* ? Общий интерфейс для всех типов калькуляторов?
|
|
47
48
|
* ? Используется во вложенных функциях. Может быть как то разбить это и вынести отсюда?
|
|
@@ -67,14 +68,14 @@ export declare type CreditCalculatorParamsDef = TitleProps & CreditCalculatorPro
|
|
|
67
68
|
* @title Калькулятор вкладов
|
|
68
69
|
* @default {"calcType": "DepositCalculatorForm"}
|
|
69
70
|
*/
|
|
70
|
-
export declare type DepositCalculatorParamsDef = TitleProps &
|
|
71
|
+
export declare type DepositCalculatorParamsDef = TitleProps & DepositCalculatorProps & {
|
|
71
72
|
calcType: 'DepositCalculatorForm';
|
|
72
73
|
};
|
|
73
74
|
/**
|
|
74
75
|
* @title Калькулятор вкладов - бизнес
|
|
75
76
|
* @default {"calcType": "BusinessDepositCalculatorForm"}
|
|
76
77
|
*/
|
|
77
|
-
export declare type BusinessDepositCalculatorParamsDef = TitleProps &
|
|
78
|
+
export declare type BusinessDepositCalculatorParamsDef = TitleProps & BusinessDepositCalculatorProps & {
|
|
78
79
|
calcType: 'BusinessDepositCalculatorForm';
|
|
79
80
|
};
|
|
80
81
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAgG;AAMnF,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,cAAc,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,eAAe,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACjE,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxF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AE,IAAI,EAAE,GAAG,EAAE,EAClC,gBAAgB,CACjB,EACA,IAAA,qCAAiB,EAAC,uBAAuB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAChF,gCAAK,SAAS,EAAC,MAAM,YAClB,sBAAsB,CAAC;4BACtB,GAAG,gBAAgB;4BACnB,GAAG,kBAAkB;4BACrB,oBAAoB;4BACpB,qBAAqB;4BACrB,qBAAqB;4BACrB,iBAAiB;yBAClB,CAAC,GACE,IACF,EACL,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAClC,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2CAAoB,IACnB,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE,gBAAgB,CAAC,cAAc,EACtC,OAAO,EAAC,QAAG,GACX,EACD,IAAA,qCAAiB,EAAC;wBACjB,SAAS;wBACT,WAAW,EAAE,UAAU;wBACvB,QAAQ,EAAE,eAAe;qBAC1B,CAAC,EACD,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACtE,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CACnC,uBAAC,WAAI,IAAC,KAAK,EAAC,sCAAQ,EAAC,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAC,kBAAkB,EAAC,IAAI,EAAC,GAAG,GAAG,CACnF,CAAC;
|
|
1
|
+
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,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AC,CAAC,CACjB,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,gKAA8B,EACnC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,iBAAiB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface DepositCalculatorProp extends
|
|
1
|
+
import { DepositCalculatorProps } from './CalculatorContent';
|
|
2
|
+
export interface DepositCalculatorProp extends DepositCalculatorProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const DepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<DepositCalculatorProp, any, any>;
|
|
@@ -15,7 +15,7 @@ const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
|
15
15
|
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
16
16
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
17
17
|
const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
|
|
18
|
-
exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
18
|
+
exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
19
19
|
const [moneyValue, setMoneyValue] = (0, hooks_1.useState)(constants_1.DEFAULT_SUM);
|
|
20
20
|
const handleMoneyValue = (0, hooks_1.useCallback)((_) => setMoneyValue(_), []);
|
|
21
21
|
const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(constants_1.DEFAULT_MONTHS);
|
|
@@ -30,20 +30,30 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBook
|
|
|
30
30
|
isRemoteRegistration,
|
|
31
31
|
};
|
|
32
32
|
const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
|
|
33
|
-
const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir);
|
|
33
|
+
const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir, paramsViewSettings);
|
|
34
34
|
const { income, finalSum, rate } = calculatorParams;
|
|
35
35
|
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма вклада, ₽', {
|
|
36
36
|
...calculatorParams,
|
|
37
37
|
}, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок вклада, месяцев', {
|
|
38
38
|
...calculatorParams,
|
|
39
|
-
}, handleMonthsValue), (0, jsx_runtime_1.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
callback: handleIsRemoteRegistration,
|
|
46
|
-
title: 'Оформление',
|
|
47
|
-
})] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
39
|
+
}, handleMonthsValue), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: renderDepositParamsForm({
|
|
40
|
+
...calculatorParams,
|
|
41
|
+
...paramsViewSettings,
|
|
42
|
+
handleIsMonthlyInterestPayment,
|
|
43
|
+
handleIsRemoteRegistration,
|
|
44
|
+
}) })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
48
45
|
});
|
|
46
|
+
const renderDepositParamsForm = ({ isMonthlyInterestPayment, isRemoteRegistration, isShowMonthlyInterestPayment, isShowRemoteRegistration, handleIsMonthlyInterestPayment, handleIsRemoteRegistration, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-7", children: [isShowMonthlyInterestPayment
|
|
47
|
+
? (0, renderInterestPayment_1.renderInterestPayment)({
|
|
48
|
+
isMonthlyInterestPayment,
|
|
49
|
+
callback: handleIsMonthlyInterestPayment,
|
|
50
|
+
title: 'Выплата процентов',
|
|
51
|
+
})
|
|
52
|
+
: null, isShowRemoteRegistration
|
|
53
|
+
? (0, renderRegistrationType_1.renderRegistrationType)({
|
|
54
|
+
isRemoteRegistration,
|
|
55
|
+
callback: handleIsRemoteRegistration,
|
|
56
|
+
title: 'Оформление',
|
|
57
|
+
})
|
|
58
|
+
: null] }));
|
|
49
59
|
//# sourceMappingURL=DepositCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AAEP,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,qEAAkE;AAClE,iEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AAEP,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,qEAAkE;AAClE,iEAA8D;AAC9D,6EAAmG;AAMtF,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,uBAAW,CAAC,CAAC;IAC1D,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,0BAAc,CAAC,CAAC;IAC/D,MAAM,CAAC,wBAAwB,EAAE,8BAA8B,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACnF,MAAM,8BAA8B,GAAG,IAAA,mBAAW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E,IAAI;IAClB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,CAAC;IAChB,mBAAmB,EAAE,KAAK;IAC1B,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEW,QAAA,iCAAiC,GAAsC;IAClF,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,EAAE;IACb,IAAI,EAAE,CAAC;IACP,wBAAwB,EAAE,IAAI;IAC9B,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAEW,QAAA,0CAA0C,GACrD;IACE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,yBAAiB;IAC1B,OAAO,EAAE,yBAAiB;IAC1B,IAAI,EAAE,CAAC;IACP,wBAAwB,EAAE,IAAI;IAC9B,aAAa,EAAE,KAAK;IACpB,mBAAmB,EAAE,KAAK;IAC1B,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,sBAAsB;CACrC,CAAC;AAES,QAAA,uBAAuB,GAAG,wBAAwB,CAAC;AACnD,QAAA,sBAAsB,GAAG,uBAAuB,CAAC;AACjD,QAAA,wBAAwB,GAAG,yBAAyB,CAAC;AACrD,QAAA,iCAAiC,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const getRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => {
|
|
2
2
|
[x: string]: unknown;
|
|
3
3
|
};
|
|
4
|
+
export declare const getMergeRangesByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => number[][];
|
|
4
5
|
export declare const checkRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>(value: number, [minKey, maxKey]: [MinKey, MaxKey], sourceBookRow: T) => boolean;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.checkRangeByKeys = exports.getRangeByKeys = void 0;
|
|
2
|
+
exports.checkRangeByKeys = exports.getMergeRangesByKeys = exports.getRangeByKeys = void 0;
|
|
3
3
|
const maxBy_1 = require("../../utils/maxBy");
|
|
4
|
+
const mergeIntervals_1 = require("../../utils/mergeIntervals");
|
|
4
5
|
const minBy_1 = require("../../utils/minBy");
|
|
5
6
|
const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
6
7
|
[minKey]: rows.length ? (0, minBy_1.minBy)()(rows.map((row) => row[minKey])) : 0,
|
|
7
8
|
[maxKey]: rows.length ? (0, maxBy_1.maxBy)()(rows.map((row) => row[maxKey])) : 0,
|
|
8
9
|
});
|
|
9
10
|
exports.getRangeByKeys = getRangeByKeys;
|
|
11
|
+
const getMergeRangesByKeys = ([minKey, maxKey], rows = []) => (0, mergeIntervals_1.mergeIntervals)(rows.map((row) => [row[minKey], row[maxKey]]));
|
|
12
|
+
exports.getMergeRangesByKeys = getMergeRangesByKeys;
|
|
10
13
|
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
11
14
|
exports.checkRangeByKeys = checkRangeByKeys;
|
|
12
15
|
//# sourceMappingURL=rangeHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,6CAA0C;AAEnC,MAAM,cAAc,GAAG,CAK5B,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,CAAC;IACJ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C,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC,CAAC;AAVU,QAAA,cAAc,kBAUxB;AAEI,MAAM,oBAAoB,GAAG,CAKlC,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,IAAA,+BAAc,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAPtD,QAAA,oBAAoB,wBAOkC;AAE5D,MAAM,gBAAgB,GAAG,CAK9B,KAAa,EACb,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,aAAgB,EACP,EAAE,CAAC,KAAK,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AARlE,QAAA,gBAAgB,oBAQkD"}
|
|
@@ -3,6 +3,7 @@ interface RenderMonthsInputParams {
|
|
|
3
3
|
minMonths: number;
|
|
4
4
|
maxMonths: number;
|
|
5
5
|
monthsValue: number;
|
|
6
|
+
availableMonths?: Array<number>;
|
|
6
7
|
}
|
|
7
8
|
export declare function renderMonthsInput(title: string, params: RenderMonthsInputParams, callback?: (value: number) => void): JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderMonthsInput = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const InputListRange_1 = require("../../ui-kit/InputListRange/InputListRange");
|
|
4
5
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
6
|
const clamp_1 = require("../../utils/clamp");
|
|
6
7
|
const STEP_MONTHS = 1;
|
|
7
8
|
function renderMonthsInput(title, params, callback) {
|
|
8
|
-
const { minMonths, maxMonths, monthsValue } = params;
|
|
9
|
+
const { minMonths, maxMonths, monthsValue, availableMonths } = params;
|
|
9
10
|
const monthText = (month) => {
|
|
10
11
|
const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
|
|
11
12
|
return `${month} ${text}`;
|
|
12
13
|
};
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
14
|
+
return availableMonths?.length ? ((0, jsx_runtime_1.jsx)(InputListRange_1.InputListRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], list: availableMonths, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback })) : ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
14
15
|
}
|
|
15
16
|
exports.renderMonthsInput = renderMonthsInput;
|
|
16
17
|
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,6CAA0C;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,+EAA4E;AAC5E,mEAAgE;AAChE,6CAA0C;AAE1C,MAAM,WAAW,GAAG,CA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
7
|
const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
8
8
|
const { moneyValue, monthsValue } = userInputParams;
|
|
9
9
|
const data = (0, useCalculatorParams_1.useCalculatorParams)(sourceBookDir || constants_1.CREDIT_CALC_DEFAULT_DIR);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const isExcludeSalaryClient = !paramsViewSettings?.isShowSalaryClient;
|
|
11
|
+
const isExcludeStateEmployee = !paramsViewSettings?.isShowStateEmployee;
|
|
12
|
+
const isExcludePensionClient = !paramsViewSettings?.isShowPensionClient;
|
|
13
|
+
const isExcludeInsurance = !paramsViewSettings?.isShowInsurance;
|
|
14
|
+
const creditCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
|
|
15
|
+
row,
|
|
16
|
+
userInputParams,
|
|
17
|
+
paramKey: 'isSalaryClient',
|
|
18
|
+
isExclude: isExcludeSalaryClient,
|
|
19
|
+
}) &&
|
|
20
|
+
checkRowByParam({
|
|
16
21
|
row,
|
|
17
22
|
userInputParams,
|
|
18
|
-
paramKey: '
|
|
19
|
-
isExclude:
|
|
23
|
+
paramKey: 'isStateEmployee',
|
|
24
|
+
isExclude: isExcludeStateEmployee,
|
|
20
25
|
}) &&
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
userInputParams,
|
|
36
|
-
paramKey: 'isInsurance',
|
|
37
|
-
isExclude: isExcludeInsurance,
|
|
38
|
-
}) &&
|
|
39
|
-
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
40
|
-
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], row));
|
|
41
|
-
}) || constants_1.DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
26
|
+
checkRowByParam({
|
|
27
|
+
row,
|
|
28
|
+
userInputParams,
|
|
29
|
+
paramKey: 'isPensionClient',
|
|
30
|
+
isExclude: isExcludePensionClient,
|
|
31
|
+
}) &&
|
|
32
|
+
checkRowByParam({
|
|
33
|
+
row,
|
|
34
|
+
userInputParams,
|
|
35
|
+
paramKey: 'isInsurance',
|
|
36
|
+
isExclude: isExcludeInsurance,
|
|
37
|
+
}) &&
|
|
38
|
+
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
39
|
+
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], row)) || constants_1.DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
42
40
|
const { rate } = creditCalculatorSourceBookParams;
|
|
43
41
|
const monthlyPayment = (0, getMonthlyPayment_1.getMonthlyPayment)(rate, userInputParams);
|
|
44
42
|
const sourceBookRows = data?.rows || [constants_1.DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":";;AACA,2CAAwF;AACxF,2DAAwD;AACxD,iDAAkE;AAClE,+DAA4D;AAgCrD,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,aAAsB,EACtB,kBAAuD,EAC/B,EAAE;IAC1B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACpD,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAAuB,aAAa,IAAI,mCAAuB,CAAC,CAAC;IACjG,MAAM,
|
|
1
|
+
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":";;AACA,2CAAwF;AACxF,2DA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GAAG,gCAAgC,CAAC;IAClD,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,4CAAgC,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,gCAAgC;QACnC,GAAG,IAAA,6BAAc,EAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,IAAA,6BAAc,EAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,cAAc;KACf,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,yBAAyB,6BAqDpC;AASF,MAAM,eAAe,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAwB,EAAE,EAAE,CAC9F,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DepositCalculatorParamsViewSettings } from './CalculatorContent';
|
|
1
2
|
export interface CommonDepositParams {
|
|
2
3
|
isMonthlyInterestPayment: boolean;
|
|
3
4
|
isRemoteRegistration: boolean;
|
|
@@ -14,10 +15,11 @@ export interface DepositCalculatorUserInputParams extends CommonDepositParams {
|
|
|
14
15
|
monthsValue: number;
|
|
15
16
|
}
|
|
16
17
|
export interface DepositCalculatorParams extends DepositCalculatorSourceBookParams, DepositCalculatorUserInputParams {
|
|
18
|
+
availableMonths: number[];
|
|
17
19
|
income: number;
|
|
18
20
|
finalSum: number;
|
|
19
21
|
}
|
|
20
22
|
export declare type DepositCalculatorData = {
|
|
21
23
|
rows: DepositCalculatorSourceBookParams[];
|
|
22
24
|
};
|
|
23
|
-
export declare const useDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, sourceBookDir?: string) => DepositCalculatorParams;
|
|
25
|
+
export declare const useDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, sourceBookDir?: string, paramsViewSettings?: DepositCalculatorParamsViewSettings) => DepositCalculatorParams;
|