@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorFor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,oBAAoB,CACnB,kBAAkB,EAClB,EAAE,GAAG,gBAAgB,EAAE,IAAI,EAAE,GAAG,EAAE,EAClC,gBAAgB,CACjB,EACA,iBAAiB,CAAC,uBAAuB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAChF,cAAK,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,eAAK,SAAS,EAAC,sBAAsB,aACnC,KAAC,oBAAoB,IACnB,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE,gBAAgB,CAAC,cAAc,EACtC,OAAO,EAAC,QAAG,GACX,EACD,iBAAiB,CAAC;wBACjB,SAAS;wBACT,WAAW,EAAE,UAAU;wBACvB,QAAQ,EAAE,eAAe;qBAC1B,CAAC,EACD,oBAAoB,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACtE,cAAc,CAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CACnC,KAAC,IAAI,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,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBA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AAC,CAAC,CAAC,CACrB,KAAC,QAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,6KAAiC,EACtC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,qBAAqB,GAC/B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,mBAAmB,CAAC,CAAC,CAAC,CACrB,KAAC,QAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,wNAAyC,EAC9C,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,qBAAqB,GAC/B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,eAAe,CAAC,CAAC,CAAC,CACjB,KAAC,QAAQ,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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
// TEMP
|
|
3
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
4
4
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
@@ -13,7 +13,7 @@ import { renderMonthsInput } from './renderMonthsInput.js';
|
|
|
13
13
|
import { renderRegistrationType } from './renderRegistrationType.js';
|
|
14
14
|
import { renderWantedSumInput } from './renderWantedSumInput.js';
|
|
15
15
|
import { useDepositCalculatorParams } from './useDepositCalculatorParams.js';
|
|
16
|
-
export const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
16
|
+
export const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
17
17
|
const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
|
|
18
18
|
const handleMoneyValue = useCallback((_) => setMoneyValue(_), []);
|
|
19
19
|
const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
|
|
@@ -28,20 +28,30 @@ export const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, butto
|
|
|
28
28
|
isRemoteRegistration,
|
|
29
29
|
};
|
|
30
30
|
const handleMonthsValue = useCallback((_) => setMonthsValue(_), []);
|
|
31
|
-
const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
31
|
+
const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
|
|
32
32
|
const { income, finalSum, rate } = calculatorParams;
|
|
33
33
|
return (_jsxs("section", { className: style('flex justify-between', className), children: [_jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма вклада, ₽', {
|
|
34
34
|
...calculatorParams,
|
|
35
35
|
}, handleMoneyValue), renderMonthsInput('Срок вклада, месяцев', {
|
|
36
36
|
...calculatorParams,
|
|
37
|
-
}, handleMonthsValue),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
callback: handleIsRemoteRegistration,
|
|
44
|
-
title: 'Оформление',
|
|
45
|
-
})] })] }), _jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), _jsxs("div", { className: "w-full max-w-[350px]", children: [_jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), _jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
37
|
+
}, handleMonthsValue), _jsx("div", { className: "mt-7", children: renderDepositParamsForm({
|
|
38
|
+
...calculatorParams,
|
|
39
|
+
...paramsViewSettings,
|
|
40
|
+
handleIsMonthlyInterestPayment,
|
|
41
|
+
handleIsRemoteRegistration,
|
|
42
|
+
}) })] }), _jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), _jsxs("div", { className: "w-full max-w-[350px]", children: [_jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), _jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
46
43
|
});
|
|
44
|
+
const renderDepositParamsForm = ({ isMonthlyInterestPayment, isRemoteRegistration, isShowMonthlyInterestPayment, isShowRemoteRegistration, handleIsMonthlyInterestPayment, handleIsRemoteRegistration, }) => (_jsxs("div", { className: "flex flex-col gap-y-7", children: [isShowMonthlyInterestPayment
|
|
45
|
+
? renderInterestPayment({
|
|
46
|
+
isMonthlyInterestPayment,
|
|
47
|
+
callback: handleIsMonthlyInterestPayment,
|
|
48
|
+
title: 'Выплата процентов',
|
|
49
|
+
})
|
|
50
|
+
: null, isShowRemoteRegistration
|
|
51
|
+
? renderRegistrationType({
|
|
52
|
+
isRemoteRegistration,
|
|
53
|
+
callback: handleIsRemoteRegistration,
|
|
54
|
+
title: 'Оформление',
|
|
55
|
+
})
|
|
56
|
+
: null] }));
|
|
47
57
|
//# sourceMappingURL=DepositCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO;AAEP,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO;AAEP,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAA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,IAAI,EAAE,CAAC,EACtE,cAAc,CAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AASF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,0BAA0B,GACH,EAAE,EAAE,CAAC,CAC5B,eAAK,SAAS,EAAC,uBAAuB,aACnC,4BAA4B;YAC3B,CAAC,CAAC,qBAAqB,CAAC;gBACpB,wBAAwB;gBACxB,QAAQ,EAAE,8BAA8B;gBACxC,KAAK,EAAE,mBAAmB;aAC3B,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,wBAAwB;YACvB,CAAC,CAAC,sBAAsB,CAAC;gBACrB,oBAAoB;gBACpB,QAAQ,EAAE,0BAA0B;gBACpC,KAAK,EAAE,YAAY;aACpB,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,eAAe,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AACnC,MAAM,CAAC,MAAM,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MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,MAAM,CAAC,MAAM,+BAA+B,GAAoC;IAC9E,YAAY,EAAE,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;AAEF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,0CAA0C,GACrD;IACE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;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;AAEJ,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC9D,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;AAClE,MAAM,CAAC,MAAM,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,8 +1,10 @@
|
|
|
1
1
|
import { maxBy } from '../../utils/maxBy.js';
|
|
2
|
+
import { mergeIntervals } from '../../utils/mergeIntervals.js';
|
|
2
3
|
import { minBy } from '../../utils/minBy.js';
|
|
3
4
|
export const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
4
5
|
[minKey]: rows.length ? minBy()(rows.map((row) => row[minKey])) : 0,
|
|
5
6
|
[maxKey]: rows.length ? maxBy()(rows.map((row) => row[maxKey])) : 0,
|
|
6
7
|
});
|
|
8
|
+
export const getMergeRangesByKeys = ([minKey, maxKey], rows = []) => mergeIntervals(rows.map((row) => [row[minKey], row[maxKey]]));
|
|
7
9
|
export const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
8
10
|
//# sourceMappingURL=rangeHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAK5B,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,CAAC;IACJ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CA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C,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAKlC,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnE,MAAM,CAAC,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"}
|
|
@@ -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,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { InputListRange } from '../../ui-kit/InputListRange/InputListRange.js';
|
|
2
3
|
import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
|
|
3
4
|
import { clamp } from '../../utils/clamp.js';
|
|
4
5
|
const STEP_MONTHS = 1;
|
|
5
6
|
export function renderMonthsInput(title, params, callback) {
|
|
6
|
-
const { minMonths, maxMonths, monthsValue } = params;
|
|
7
|
+
const { minMonths, maxMonths, monthsValue, availableMonths } = params;
|
|
7
8
|
const monthText = (month) => {
|
|
8
9
|
const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
|
|
9
10
|
return `${month} ${text}`;
|
|
10
11
|
};
|
|
11
|
-
return (_jsx(InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
12
|
+
return availableMonths?.length ? (_jsx(InputListRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], list: availableMonths, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback })) : (_jsx(InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;AAStB,MAAM,UAAU,iBAAiB,CAC/B,KAAa,EACb,MAA+B,EAC/B,QAAkC;IAElC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IACtE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE;QAClC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7D,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,CAC/B,KAAC,cAAc,IACb,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,EAC/C,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,EAC/C,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -5,38 +5,36 @@ import { useCalculatorParams } from './useCalculatorParams.js';
|
|
|
5
5
|
export const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
6
6
|
const { moneyValue, monthsValue } = userInputParams;
|
|
7
7
|
const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const isExcludeSalaryClient = !paramsViewSettings?.isShowSalaryClient;
|
|
9
|
+
const isExcludeStateEmployee = !paramsViewSettings?.isShowStateEmployee;
|
|
10
|
+
const isExcludePensionClient = !paramsViewSettings?.isShowPensionClient;
|
|
11
|
+
const isExcludeInsurance = !paramsViewSettings?.isShowInsurance;
|
|
12
|
+
const creditCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
|
|
13
|
+
row,
|
|
14
|
+
userInputParams,
|
|
15
|
+
paramKey: 'isSalaryClient',
|
|
16
|
+
isExclude: isExcludeSalaryClient,
|
|
17
|
+
}) &&
|
|
18
|
+
checkRowByParam({
|
|
14
19
|
row,
|
|
15
20
|
userInputParams,
|
|
16
|
-
paramKey: '
|
|
17
|
-
isExclude:
|
|
21
|
+
paramKey: 'isStateEmployee',
|
|
22
|
+
isExclude: isExcludeStateEmployee,
|
|
18
23
|
}) &&
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
userInputParams,
|
|
34
|
-
paramKey: 'isInsurance',
|
|
35
|
-
isExclude: isExcludeInsurance,
|
|
36
|
-
}) &&
|
|
37
|
-
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
38
|
-
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row));
|
|
39
|
-
}) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
24
|
+
checkRowByParam({
|
|
25
|
+
row,
|
|
26
|
+
userInputParams,
|
|
27
|
+
paramKey: 'isPensionClient',
|
|
28
|
+
isExclude: isExcludePensionClient,
|
|
29
|
+
}) &&
|
|
30
|
+
checkRowByParam({
|
|
31
|
+
row,
|
|
32
|
+
userInputParams,
|
|
33
|
+
paramKey: 'isInsurance',
|
|
34
|
+
isExclude: isExcludeInsurance,
|
|
35
|
+
}) &&
|
|
36
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
37
|
+
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
40
38
|
const { rate } = creditCalculatorSourceBookParams;
|
|
41
39
|
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
42
40
|
const sourceBookRows = data?.rows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAgC5D,MAAM,CAAC,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,mBAAmB,CAAuB,aAAa,IAAI,uBAAuB,CAAC,CAAC;IACjG,MAAM,
|
|
1
|
+
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;A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C,EAAE,GAAG,CAAC,CACjE,IAAI,gCAAgC,CAAC;IAExC,MAAM,EAAE,IAAI,EAAE,GAAG,gCAAgC,CAAC;IAClD,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,gCAAgC;QACnC,GAAG,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,cAAc,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,cAAc;KACf,CAAC;AACJ,CAAC,CAAC;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;
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
import { arrayByRange } from '../../utils/arrayByRange.js';
|
|
2
|
+
import { mergeIntervals } from '../../utils/mergeIntervals.js';
|
|
1
3
|
import { DEFAULT_DEPOSIT_CALCULATOR_PARAMS, DEPOSIT_CALC_DEFAULT_DIR } from './constants.js';
|
|
2
4
|
import { checkRangeByKeys, getRangeByKeys } from './rangeHelpers.js';
|
|
3
5
|
import { useCalculatorParams } from './useCalculatorParams.js';
|
|
4
|
-
export const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
5
|
-
const {
|
|
6
|
+
export const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
7
|
+
const { moneyValue, monthsValue } = userInputParams;
|
|
6
8
|
const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
10
|
+
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
11
|
+
const depositCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
|
|
12
|
+
row,
|
|
13
|
+
userInputParams,
|
|
14
|
+
paramKey: 'isMonthlyInterestPayment',
|
|
15
|
+
isExclude: isExcludeMonthlyInterestPayment,
|
|
16
|
+
}) &&
|
|
17
|
+
checkRowByParam({
|
|
18
|
+
row,
|
|
19
|
+
userInputParams,
|
|
20
|
+
paramKey: 'isRemoteRegistration',
|
|
21
|
+
isExclude: isExcludeRemoteRegistration,
|
|
22
|
+
}) &&
|
|
23
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
24
|
+
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
11
25
|
const { rate } = depositCalculatorSourceBookParams;
|
|
12
26
|
const income = getDepositIncome(rate, userInputParams);
|
|
13
27
|
const finalSum = moneyValue + income;
|
|
@@ -16,6 +30,7 @@ export const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
16
30
|
...depositCalculatorSourceBookParams,
|
|
17
31
|
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
18
32
|
...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
|
|
33
|
+
availableMonths: mergeIntervals(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => arrayByRange(start, end)),
|
|
19
34
|
...userInputParams,
|
|
20
35
|
income,
|
|
21
36
|
finalSum,
|
|
@@ -33,4 +48,5 @@ const getDepositIncome = (rate, userInputParams) => {
|
|
|
33
48
|
return Math.round((moneyValue * rate * 30 * monthsValue) / 365 / 100);
|
|
34
49
|
}
|
|
35
50
|
};
|
|
51
|
+
const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
36
52
|
//# sourceMappingURL=useDepositCalculatorParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AE,EAAE,CAC9F,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC"}
|
package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACpC,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QACjC,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACtC,KAAK,EAAE,aAAa;KACrB;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;QACnC,KAAK,EAAE,SAAS;KACjB;CACF,CAAC;AAQF,MAAM,gBAAg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,IAAI,YAEP,eAAe,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,KAAC,GAAG,IACF,KAAK,EAAE,eAAe,EACtB,cAAc,EAAC,8BAA8B,EAC7C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -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
|
}
|
|
@@ -1,44 +1,26 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
1
2
|
import glob from 'glob';
|
|
2
3
|
import util from 'util';
|
|
3
|
-
import { transformContentPage } from './transformContentPage.js';
|
|
4
|
-
const INDEX_PAGE_SLUG = 'index';
|
|
4
|
+
import { generatedPagePath, transformContentPage } from './transformContentPage.js';
|
|
5
5
|
const find = util.promisify(glob);
|
|
6
|
-
const
|
|
7
|
-
const byCustomPageType = (type) => (content) => type ? content._customPageType === type : !content._customPageType;
|
|
8
|
-
const not = (predicate) => (_) => !predicate(_);
|
|
6
|
+
const readFile = util.promisify(fs.readFile);
|
|
9
7
|
export class ContentPageRepository {
|
|
10
8
|
options;
|
|
11
9
|
static inst = new ContentPageRepository();
|
|
12
|
-
cache = {};
|
|
13
10
|
constructor(options = {
|
|
14
11
|
contentDir: 'content',
|
|
15
12
|
publicDir: 'public',
|
|
16
13
|
}) {
|
|
17
14
|
this.options = options;
|
|
18
15
|
}
|
|
19
|
-
|
|
16
|
+
listAllContentPages() {
|
|
20
17
|
return find(`${this.options.contentDir}/**/*.page.json`);
|
|
21
18
|
}
|
|
22
|
-
async getAllContentPages() {
|
|
23
|
-
const pagePaths = await this.listAllContentPages();
|
|
24
|
-
return Promise.all(pagePaths.map((_) => this.readPage(_)));
|
|
25
|
-
}
|
|
26
|
-
async getSecondaryContentPages(customPageType) {
|
|
27
|
-
const pages = await this.getAllContentPages();
|
|
28
|
-
return pages.filter(not(bySlug(INDEX_PAGE_SLUG))).filter(byCustomPageType(customPageType));
|
|
29
|
-
}
|
|
30
|
-
async getContentPageBySlug(slug) {
|
|
31
|
-
const pages = await this.getAllContentPages();
|
|
32
|
-
return pages.find(bySlug(slug));
|
|
33
|
-
}
|
|
34
|
-
async getIndexPage() {
|
|
35
|
-
return this.getContentPageBySlug(INDEX_PAGE_SLUG);
|
|
36
|
-
}
|
|
37
19
|
async readPage(filePath) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return this.
|
|
20
|
+
return JSON.parse(await readFile(generatedPagePath(filePath), 'utf-8'));
|
|
21
|
+
}
|
|
22
|
+
generatePage(filePath) {
|
|
23
|
+
return transformContentPage(filePath, this.options);
|
|
42
24
|
}
|
|
43
25
|
}
|
|
44
26
|
//# sourceMappingURL=ContentPageRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageRepository.js","sourceRoot":"","sources":["../../src/content-page-repository/ContentPageRepository.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentPageRepository.js","sourceRoot":"","sources":["../../src/content-page-repository/ContentPageRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,OAAO,qBAAqB;IAIb;IAHZ,MAAM,CAAU,IAAI,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAE1D,YACmB,UAAiC;QAChD,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,QAAQ;KACpB;QAHgB,YAAO,GAAP,OAAO,CAGvB;IACA,CAAC;IAEJ,mBAAmB;QACjB,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,iBAAiB,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAgB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,YAAY,CAAC,QAAgB;QAC3B,OAAO,oBAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC"}
|
|
@@ -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,17 @@
|
|
|
1
|
+
import sharp from 'sharp';
|
|
2
|
+
export const alignImg = ({ containerSize, alignment }) => async (chain) => containerSize?.width && containerSize?.height && alignment
|
|
3
|
+
? createTransparentBack(containerSize).composite([
|
|
4
|
+
{
|
|
5
|
+
input: await toBuffer(chain),
|
|
6
|
+
gravity: alignment,
|
|
7
|
+
},
|
|
8
|
+
])
|
|
9
|
+
: chain;
|
|
10
|
+
const toBuffer = async (chain) => (await chain.toBuffer({ resolveWithObject: true })).data;
|
|
11
|
+
function createTransparentBack({ width, height }) {
|
|
12
|
+
const channels = 4;
|
|
13
|
+
const rgbaColor = 0x00000000;
|
|
14
|
+
const canvas = Buffer.alloc(width * height * channels, rgbaColor);
|
|
15
|
+
return sharp(canvas, { raw: { width, height, channels } });
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=alignImg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alignImg.js","sourceRoot":"","sources":["../../src/content-page-repository/alignImg.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,CAAC,MAAM,QAAQ,GACnB,CAAC,EAAE,aAAa,EAAE,SAAS,EAAsB,EAAE,EAAE,CACrD,KAAK,EAAE,KAAY,EAAkB,EAAE,CACrC,aAAa,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,IAAI,SAAS;IACxD,CAAC,CAAC,qBAAqB,CAAC,aAA0B,CAAC,CAAC,SAAS,CAAC;QAC1D;YACE,KAAK,EAAE,MAAM,QAAQ,CAAC,KAAK,CAAC;YAC5B,OAAO,EAAE,SAAS;SACnB;KACF,CAAC;IACJ,CAAC,CAAC,KAAK,CAAC;AAEd,MAAM,QAAQ,GAAG,KAAK,EAAE,KAAY,EAAE,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAElG,SAAS,qBAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAa;IACzD,MAAM,QAAQ,GAAG,CAAC,CAAC;IACnB,MAAM,SAAS,GAAG,UAAU,CAAC;IAE7B,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,QAAQ,EAAE,SAAS,CAAC,CAAC;IAElE,OAAO,KAAK,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
export function computeImgOutputPath(imgInputPath, { contentDir, publicDir, format, size, alignment }) {
|
|
3
|
+
const imgRelativePath = path.relative(contentDir, imgInputPath);
|
|
4
|
+
const imgDir = path.dirname(imgRelativePath);
|
|
5
|
+
const inputExt = path.extname(imgRelativePath);
|
|
6
|
+
const fileName = path.basename(imgRelativePath, inputExt);
|
|
7
|
+
const suffixParts = [size?.width, size?.height, alignment].filter(Boolean);
|
|
8
|
+
const suffix = suffixParts.length ? `-${suffixParts.join('-')}` : '';
|
|
9
|
+
const ext = format ? `.${format}` : inputExt;
|
|
10
|
+
return path.join(publicDir, imgDir, `${fileName}${suffix}${ext}`);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=computeImgOutputPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeImgOutputPath.js","sourceRoot":"","sources":["../../src/content-page-repository/computeImgOutputPath.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,MAAM,UAAU,oBAAoB,CAClC,YAAoB,EACpB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAqC;IAErF,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE7C,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,QAAQ,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import sharp from 'sharp';
|
|
2
|
+
export const resizeImg = (size, options) => (chain) => size
|
|
3
|
+
? chain.resize(size.width || null, size.height || null, {
|
|
4
|
+
/*
|
|
5
|
+
* Editor behaviour with one dimension present: resize by given dimension maintaining aspect ratio. (fit: contain)
|
|
6
|
+
* With two dimensions present: resize trying to fill given dimensions (fit: fill)
|
|
7
|
+
*/
|
|
8
|
+
fit: size.width && size.height ? sharp.fit.fill : sharp.fit.contain,
|
|
9
|
+
background: { r: 0, g: 0, b: 0, alpha: 0 },
|
|
10
|
+
...options,
|
|
11
|
+
})
|
|
12
|
+
: chain;
|
|
13
|
+
//# sourceMappingURL=resizeImg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizeImg.js","sourceRoot":"","sources":["../../src/content-page-repository/resizeImg.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,MAAM,SAAS,GACpB,CAAC,IAAyB,EAAE,OAAuB,EAAE,EAAE,CACvD,CAAC,KAAY,EAAS,EAAE,CACtB,IAAI;IACF,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;QACpD;;;WAGG;QACH,GAAG,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO;QACnE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;QAC1C,GAAG,OAAO;KACX,CAAC;IACJ,CAAC,CAAC,KAAK,CAAC"}
|
|
@@ -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;
|