@redneckz/wildless-cms-uni-blocks 0.9.10 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +145 -66
- 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/Filtration/FiltrationContent.d.ts +18 -8
- 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/Filtration/Filtration.js +1 -1
- package/dist/components/Filtration/Filtration.js.map +1 -1
- package/dist/components/Filtration/FiltrationContent.d.ts +18 -8
- package/dist/components/Filtration/FiltrationInner.js +9 -5
- package/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/dist/components/Filtration/renderFormItem.js +6 -5
- package/dist/components/Filtration/renderFormItem.js.map +1 -1
- 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/Filtration/Filtration.js +1 -1
- package/lib/components/Filtration/Filtration.js.map +1 -1
- package/lib/components/Filtration/FiltrationContent.d.ts +18 -8
- package/lib/components/Filtration/FiltrationInner.js +9 -5
- package/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/lib/components/Filtration/renderFormItem.js +6 -5
- package/lib/components/Filtration/renderFormItem.js.map +1 -1
- 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/Filtration/FiltrationContent.d.ts +18 -8
- 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/Filtration/Filtration.js +1 -1
- package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
- package/mobile/dist/components/Filtration/FiltrationContent.d.ts +18 -8
- package/mobile/dist/components/Filtration/FiltrationInner.js +9 -5
- package/mobile/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/dist/components/Filtration/renderFormItem.js +6 -5
- package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
- 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/Filtration/Filtration.js +1 -1
- package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
- package/mobile/lib/components/Filtration/FiltrationContent.d.ts +18 -8
- package/mobile/lib/components/Filtration/FiltrationInner.js +9 -5
- package/mobile/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/lib/components/Filtration/renderFormItem.js +6 -5
- package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
- 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/Filtration/Filtration.example.json +39 -19
- package/mobile/src/components/Filtration/Filtration.tsx +3 -8
- package/mobile/src/components/Filtration/FiltrationContent.ts +19 -8
- package/mobile/src/components/Filtration/FiltrationInner.tsx +31 -12
- package/mobile/src/components/Filtration/renderFormItem.tsx +20 -20
- package/mobile/src/components/Footer/MediaButton.tsx +3 -5
- package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +1 -1
- 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/Filtration/Filtration.example.json +39 -19
- package/src/components/Filtration/Filtration.fixture.tsx +36 -20
- package/src/components/Filtration/Filtration.tsx +3 -8
- package/src/components/Filtration/FiltrationContent.ts +19 -8
- package/src/components/Filtration/FiltrationInner.tsx +31 -12
- package/src/components/Filtration/renderFormItem.tsx +20 -20
- package/src/components/Footer/MediaButton.tsx +3 -5
- package/src/components/RichTextBlock/RichTextBlock.example.json +1 -1
- 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
|
@@ -7,38 +7,36 @@ const useCalculatorParams_1 = require("./useCalculatorParams");
|
|
|
7
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,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,qBAAqB,GAAG,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACtE,MAAM,sBAAsB,GAAG,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IACxE,MAAM,sBAAsB,GAAG,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IACxE,MAAM,kBAAkB,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAC;IAChE,MAAM,gCAAgC,GACpC,IAAI,EAAE,IAAI,EAAE,IAAI,CACd,CAAC,GAAG,EAAE,EAAE,CACN,eAAe,CAAC;QACd,GAAG;QACH,eAAe;QACf,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,qBAAqB;KACjC,CAAC;QACF,eAAe,CAAC;YACd,GAAG;YACH,eAAe;YACf,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,sBAAsB;SAClC,CAAC;QACF,eAAe,CAAC;YACd,GAAG;YACH,eAAe;YACf,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,sBAAsB;SAClC,CAAC;QACF,eAAe,CAAC;YACd,GAAG;YACH,eAAe;YACf,QAAQ,EAAE,aAAa;YACvB,SAAS,EAAE,kBAAkB;SAC9B,CAAC;QACF,IAAA,+BAAgB,EAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;QACvD,IAAA,+BAAgB,EAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,CACjE,IAAI,4CAAgC,CAAC;IAExC,MAAM,EAAE,IAAI,EAAE,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;
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useDepositCalculatorParams = void 0;
|
|
3
|
+
const arrayByRange_1 = require("../../utils/arrayByRange");
|
|
4
|
+
const mergeIntervals_1 = require("../../utils/mergeIntervals");
|
|
3
5
|
const constants_1 = require("./constants");
|
|
4
6
|
const rangeHelpers_1 = require("./rangeHelpers");
|
|
5
7
|
const useCalculatorParams_1 = require("./useCalculatorParams");
|
|
6
|
-
const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
7
|
-
const {
|
|
8
|
+
const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
9
|
+
const { moneyValue, monthsValue } = userInputParams;
|
|
8
10
|
const data = (0, useCalculatorParams_1.useCalculatorParams)(sourceBookDir || constants_1.DEPOSIT_CALC_DEFAULT_DIR);
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
12
|
+
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
13
|
+
const depositCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
|
|
14
|
+
row,
|
|
15
|
+
userInputParams,
|
|
16
|
+
paramKey: 'isMonthlyInterestPayment',
|
|
17
|
+
isExclude: isExcludeMonthlyInterestPayment,
|
|
18
|
+
}) &&
|
|
19
|
+
checkRowByParam({
|
|
20
|
+
row,
|
|
21
|
+
userInputParams,
|
|
22
|
+
paramKey: 'isRemoteRegistration',
|
|
23
|
+
isExclude: isExcludeRemoteRegistration,
|
|
24
|
+
}) &&
|
|
25
|
+
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
26
|
+
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], row)) || constants_1.DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
13
27
|
const { rate } = depositCalculatorSourceBookParams;
|
|
14
28
|
const income = getDepositIncome(rate, userInputParams);
|
|
15
29
|
const finalSum = moneyValue + income;
|
|
@@ -18,6 +32,7 @@ const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
18
32
|
...depositCalculatorSourceBookParams,
|
|
19
33
|
...(0, rangeHelpers_1.getRangeByKeys)(['minSum', 'maxSum'], sourceBookRows),
|
|
20
34
|
...(0, rangeHelpers_1.getRangeByKeys)(['minMonths', 'maxMonths'], sourceBookRows),
|
|
35
|
+
availableMonths: (0, mergeIntervals_1.mergeIntervals)(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => (0, arrayByRange_1.arrayByRange)(start, end)),
|
|
21
36
|
...userInputParams,
|
|
22
37
|
income,
|
|
23
38
|
finalSum,
|
|
@@ -36,4 +51,5 @@ const getDepositIncome = (rate, userInputParams) => {
|
|
|
36
51
|
return Math.round((moneyValue * rate * 30 * monthsValue) / 365 / 100);
|
|
37
52
|
}
|
|
38
53
|
};
|
|
54
|
+
const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
39
55
|
//# sourceMappingURL=useDepositCalculatorParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAA0F;AAC1F,iDAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"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"}
|
|
@@ -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
|
*/
|
|
@@ -10,7 +10,7 @@ const FiltrationInner_1 = require("./FiltrationInner");
|
|
|
10
10
|
const renderFormItem_1 = require("./renderFormItem");
|
|
11
11
|
exports.Filtration = (0, uni_jsx_1.JSX)(({ className, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
12
12
|
const { formState, register, resetForm } = (0, useForm_1.useForm)();
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(className), version: "transparent", ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { className: "flex justify-between bg-white p-9 mb-1", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex gap-11", children: Object.keys(filtrationSchema).map((0, renderFormItem_1.renderFormItem)(filtrationSchema, register)) }), resetButton ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-72", onClick: resetForm, ...resetButton }) })) : null] }), (0, jsx_runtime_1.jsx)(FiltrationInner_1.FiltrationInner, { filtrationState: formState, ...rest })] }));
|
|
14
14
|
});
|
|
15
15
|
exports.Filtration.childrenTypes = ['ProductTile'];
|
|
16
16
|
exports.Filtration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filtration.js","sourceRoot":"","sources":["../../../src/components/Filtration/Filtration.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,4DAAyD;AACzD,uDAAoD;AACpD,6CAA0C;AAE1C,uDAAoD;AACpD,qDAAkD;AAIrC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EAAE,SAAS,EAAE,gBAAgB,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,iBAAO,GAAE,CAAC;IAErD,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"Filtration.js","sourceRoot":"","sources":["../../../src/components/Filtration/Filtration.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,4DAAyD;AACzD,uDAAoD;AACpD,6CAA0C;AAE1C,uDAAoD;AACpD,qDAAkD;AAIrC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EAAE,SAAS,EAAE,gBAAgB,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,iBAAO,GAAE,CAAC;IAErD,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,OAAO,EAAC,aAAa,KAAK,IAAI,aACvE,kCAAM,SAAS,EAAC,wCAAwC,aACtD,gCAAK,SAAS,EAAC,aAAa,YACzB,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,IAAA,+BAAc,EAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,GAC1E,EACL,WAAW,CAAC,CAAC,CAAC,CACb,0CACE,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,SAAS,KAAM,WAAW,GAAI,GAC5D,CACP,CAAC,CAAC,CAAC,IAAI,IACH,EACP,uBAAC,iCAAe,IAAC,eAAe,EAAE,SAAS,KAAM,IAAI,GAAI,IAC5C,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAU,CAAC,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC;AAC3C,kBAAU,CAAC,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,OAAO,EAAE,gBAAgB,IAAI,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
+
import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
/**
|
|
3
4
|
* @title Заголовок
|
|
4
5
|
*/
|
|
@@ -28,6 +29,7 @@ export declare type StringArray = {
|
|
|
28
29
|
* @hidden
|
|
29
30
|
*/
|
|
30
31
|
type?: 'array';
|
|
32
|
+
/** @title */
|
|
31
33
|
items?: {
|
|
32
34
|
/**
|
|
33
35
|
* @default string
|
|
@@ -40,13 +42,13 @@ export declare type StringArray = {
|
|
|
40
42
|
};
|
|
41
43
|
export declare type FiltrationSchema = {
|
|
42
44
|
/** @title Тип недвижимости */
|
|
43
|
-
propertyType?:
|
|
45
|
+
propertyType?: StringArray;
|
|
44
46
|
/** @title Этап строительства */
|
|
45
|
-
stage?:
|
|
47
|
+
stage?: StringArray;
|
|
46
48
|
/** @title Категории */
|
|
47
|
-
categories?:
|
|
49
|
+
categories?: StringArray;
|
|
48
50
|
/** @title Дополнительно */
|
|
49
|
-
extraOptions?:
|
|
51
|
+
extraOptions?: StringArray;
|
|
50
52
|
};
|
|
51
53
|
/**
|
|
52
54
|
* @title Кнопка сброса
|
|
@@ -59,13 +61,22 @@ export declare type ResetButton = {
|
|
|
59
61
|
/**
|
|
60
62
|
* @title Цвет кнопки
|
|
61
63
|
*/
|
|
62
|
-
|
|
64
|
+
version: ButtonVersion;
|
|
63
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* @title Плитка "Не найдено"
|
|
68
|
+
*/
|
|
69
|
+
export declare type NotFound = TitleProps & DescriptionProps;
|
|
64
70
|
export interface FiltrationInnerContent {
|
|
65
|
-
/** @title Название кнопки */
|
|
71
|
+
/** @title Название сворачивающейся кнопки */
|
|
66
72
|
label?: string;
|
|
67
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* @title Количество отображаемых предметов
|
|
75
|
+
* @minimum 1
|
|
76
|
+
*/
|
|
68
77
|
topItemsCount?: number;
|
|
78
|
+
resetButton?: ResetButton;
|
|
79
|
+
notFound?: NotFound;
|
|
69
80
|
}
|
|
70
81
|
/**
|
|
71
82
|
* @title Фильтрация
|
|
@@ -73,6 +84,5 @@ export interface FiltrationInnerContent {
|
|
|
73
84
|
export interface FiltrationContent extends FiltrationInnerContent {
|
|
74
85
|
/** @title Параметры фильтрации */
|
|
75
86
|
filtrationSchema?: FiltrationSchema;
|
|
76
|
-
resetButton?: ResetButton;
|
|
77
87
|
}
|
|
78
88
|
export {};
|
|
@@ -6,18 +6,22 @@ const renderBlockList_1 = require("../../BlockRenderer/renderBlockList");
|
|
|
6
6
|
const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
|
|
7
7
|
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
8
8
|
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
9
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
10
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
9
11
|
const style_1 = require("../../utils/style");
|
|
10
|
-
const ErrorBlock_1 = require("../ErrorBlock/ErrorBlock");
|
|
11
12
|
const checkShouldRenderBlock_1 = require("./checkShouldRenderBlock");
|
|
12
13
|
const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
13
14
|
const resultsGridStyle = 'grid grid-cols-12 gap-1 border-box';
|
|
14
|
-
exports.FiltrationInner = (0, uni_jsx_1.JSX)(({ label = '', filtrationState = {}, topItemsCount = 0, block, ...rest }) => {
|
|
15
|
+
exports.FiltrationInner = (0, uni_jsx_1.JSX)(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
|
|
15
16
|
const blocksToRender = block?.blocks?.filter((b) => (0, checkShouldRenderBlock_1.checkShouldRenderBlock)(filtrationState, b.content || {})) || [];
|
|
16
17
|
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
17
18
|
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
18
19
|
: [blocksToRender, []];
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(blocksToRender.length ? 'hidden' : ''), children: (
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: resultsGridStyle, isUnfolded: isUnfolded, children: (0, renderBlockList_1.renderBlocksList)(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
21
|
-
}, renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: (0, style_1.style)(
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(blocksToRender.length ? '' : 'hidden'), children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('mb-1', resultsGridStyle), children: (0, renderBlockList_1.renderBlocksList)(visibleBlocks, { ...rest.options, parent: block }) }), (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: (0, style_1.style)(resultsGridStyle, isUnfolded ? 'mb-1' : ''), isUnfolded: isUnfolded, children: (0, renderBlockList_1.renderBlocksList)(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
22
|
+
}, renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: (0, style_1.style)(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
22
23
|
});
|
|
24
|
+
function renderNotFound({ title, description }) {
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white py-20", children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { align: "text-center", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: title }) }) })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
|
|
26
|
+
}
|
|
23
27
|
//# sourceMappingURL=FiltrationInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiltrationInner.js","sourceRoot":"","sources":["../../../src/components/Filtration/FiltrationInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAuE;AAGvE,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AACxE,6CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"FiltrationInner.js","sourceRoot":"","sources":["../../../src/components/Filtration/FiltrationInner.tsx"],"names":[],"mappings":"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"}
|
|
@@ -7,15 +7,16 @@ const renderFormItem = (filtrationSchema, register) => (key) => {
|
|
|
7
7
|
const item = filtrationSchema[key];
|
|
8
8
|
const type = item?.type;
|
|
9
9
|
switch (type) {
|
|
10
|
-
case '
|
|
11
|
-
return
|
|
10
|
+
case 'array':
|
|
11
|
+
return renderCheckboxes(key, register)(item);
|
|
12
12
|
default:
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
exports.renderFormItem = renderFormItem;
|
|
17
|
-
const
|
|
18
|
-
const options = item?.enum?.map((e, i) => ({ value: e, title: item?.enumNames?.[i] || '' })) ||
|
|
19
|
-
|
|
17
|
+
const renderCheckboxes = (key, register) => (item) => {
|
|
18
|
+
const options = item?.items?.enum?.map((e, i) => ({ value: e, title: item?.items?.enumNames?.[i] || '' })) ||
|
|
19
|
+
[];
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [item?.title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, (0, jsx_runtime_1.jsx)(SlideCheckboxGroup_1.SlideCheckboxGroup, { items: options, multiple: true, ...register(key) })] }, key));
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=renderFormItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderFormItem.js","sourceRoot":"","sources":["../../../src/components/Filtration/renderFormItem.tsx"],"names":[],"mappings":";;;AACA,2FAAwF;AACxF,iDAA8C;AAGvC,MAAM,cAAc,GACzB,CAAC,gBAAkC,EAAE,QAA+B,EAAE,EAAE,CAAC,CAAC,GAAW,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAoC,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,IAAI,EAAE,IAAI,CAAC;IAExB,QAAQ,IAAI,EAAE;QACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"renderFormItem.js","sourceRoot":"","sources":["../../../src/components/Filtration/renderFormItem.tsx"],"names":[],"mappings":";;;AACA,2FAAwF;AACxF,iDAA8C;AAGvC,MAAM,cAAc,GACzB,CAAC,gBAAkC,EAAE,QAA+B,EAAE,EAAE,CAAC,CAAC,GAAW,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAoC,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,IAAI,EAAE,IAAI,CAAC;IAExB,QAAQ,IAAI,EAAE;QACZ,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;QAC/C;YACE,OAAO,IAAI,CAAC;KACf;AACH,CAAC,CAAC;AAXS,QAAA,cAAc,kBAWvB;AAEJ,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,QAA+B,EAAE,EAAE,CAAC,CAAC,IAAkB,EAAE,EAAE;IAChG,MAAM,OAAO,GACX,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC1F,EAAE,CAAC;IAEL,OAAO,CACL,4CACG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,IAAI,CAAC,KAAK,GACN,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,uCAAkB,IAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,WAAK,QAAQ,CAAC,GAAG,CAAC,GAAI,KAR1D,GAAG,CASP,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -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,+CAAwC;
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":"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"}
|
|
@@ -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
|
}
|
|
@@ -3,47 +3,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
};
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.ContentPageRepository = void 0;
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
6
7
|
const glob_1 = __importDefault(require("glob"));
|
|
7
8
|
const util_1 = __importDefault(require("util"));
|
|
8
9
|
const transformContentPage_1 = require("./transformContentPage");
|
|
9
|
-
const INDEX_PAGE_SLUG = 'index';
|
|
10
10
|
const find = util_1.default.promisify(glob_1.default);
|
|
11
|
-
const
|
|
12
|
-
const byCustomPageType = (type) => (content) => type ? content._customPageType === type : !content._customPageType;
|
|
13
|
-
const not = (predicate) => (_) => !predicate(_);
|
|
11
|
+
const readFile = util_1.default.promisify(fs_1.default.readFile);
|
|
14
12
|
class ContentPageRepository {
|
|
15
13
|
options;
|
|
16
14
|
static inst = new ContentPageRepository();
|
|
17
|
-
cache = {};
|
|
18
15
|
constructor(options = {
|
|
19
16
|
contentDir: 'content',
|
|
20
17
|
publicDir: 'public',
|
|
21
18
|
}) {
|
|
22
19
|
this.options = options;
|
|
23
20
|
}
|
|
24
|
-
|
|
21
|
+
listAllContentPages() {
|
|
25
22
|
return find(`${this.options.contentDir}/**/*.page.json`);
|
|
26
23
|
}
|
|
27
|
-
async getAllContentPages() {
|
|
28
|
-
const pagePaths = await this.listAllContentPages();
|
|
29
|
-
return Promise.all(pagePaths.map((_) => this.readPage(_)));
|
|
30
|
-
}
|
|
31
|
-
async getSecondaryContentPages(customPageType) {
|
|
32
|
-
const pages = await this.getAllContentPages();
|
|
33
|
-
return pages.filter(not(bySlug(INDEX_PAGE_SLUG))).filter(byCustomPageType(customPageType));
|
|
34
|
-
}
|
|
35
|
-
async getContentPageBySlug(slug) {
|
|
36
|
-
const pages = await this.getAllContentPages();
|
|
37
|
-
return pages.find(bySlug(slug));
|
|
38
|
-
}
|
|
39
|
-
async getIndexPage() {
|
|
40
|
-
return this.getContentPageBySlug(INDEX_PAGE_SLUG);
|
|
41
|
-
}
|
|
42
24
|
async readPage(filePath) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return this.
|
|
25
|
+
return JSON.parse(await readFile((0, transformContentPage_1.generatedPagePath)(filePath), 'utf-8'));
|
|
26
|
+
}
|
|
27
|
+
generatePage(filePath) {
|
|
28
|
+
return (0, transformContentPage_1.transformContentPage)(filePath, this.options);
|
|
47
29
|
}
|
|
48
30
|
}
|
|
49
31
|
exports.ContentPageRepository = ContentPageRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageRepository.js","sourceRoot":"","sources":["../../src/content-page-repository/ContentPageRepository.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,gDAAwB;AAGxB,
|
|
1
|
+
{"version":3,"file":"ContentPageRepository.js","sourceRoot":"","sources":["../../src/content-page-repository/ContentPageRepository.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,gDAAwB;AAGxB,iEAAiF;AAEjF,MAAM,IAAI,GAAG,cAAI,CAAC,SAAS,CAAC,cAAI,CAAC,CAAC;AAClC,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAa,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,IAAA,wCAAiB,EAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,YAAY,CAAC,QAAgB;QAC3B,OAAO,IAAA,2CAAoB,EAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;;AApBH,sDAqBC"}
|
|
@@ -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,23 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.alignImg = void 0;
|
|
6
|
+
const sharp_1 = __importDefault(require("sharp"));
|
|
7
|
+
const alignImg = ({ containerSize, alignment }) => async (chain) => containerSize?.width && containerSize?.height && alignment
|
|
8
|
+
? createTransparentBack(containerSize).composite([
|
|
9
|
+
{
|
|
10
|
+
input: await toBuffer(chain),
|
|
11
|
+
gravity: alignment,
|
|
12
|
+
},
|
|
13
|
+
])
|
|
14
|
+
: chain;
|
|
15
|
+
exports.alignImg = alignImg;
|
|
16
|
+
const toBuffer = async (chain) => (await chain.toBuffer({ resolveWithObject: true })).data;
|
|
17
|
+
function createTransparentBack({ width, height }) {
|
|
18
|
+
const channels = 4;
|
|
19
|
+
const rgbaColor = 0x00000000;
|
|
20
|
+
const canvas = Buffer.alloc(width * height * channels, rgbaColor);
|
|
21
|
+
return (0, sharp_1.default)(canvas, { raw: { width, height, channels } });
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=alignImg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alignImg.js","sourceRoot":"","sources":["../../src/content-page-repository/alignImg.ts"],"names":[],"mappings":";;;;;AACA,kDAA0B;AASnB,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;AAVD,QAAA,QAAQ,YAUP;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,IAAA,eAAK,EAAC,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,18 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.computeImgOutputPath = void 0;
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
function computeImgOutputPath(imgInputPath, { contentDir, publicDir, format, size, alignment }) {
|
|
8
|
+
const imgRelativePath = path_1.default.relative(contentDir, imgInputPath);
|
|
9
|
+
const imgDir = path_1.default.dirname(imgRelativePath);
|
|
10
|
+
const inputExt = path_1.default.extname(imgRelativePath);
|
|
11
|
+
const fileName = path_1.default.basename(imgRelativePath, inputExt);
|
|
12
|
+
const suffixParts = [size?.width, size?.height, alignment].filter(Boolean);
|
|
13
|
+
const suffix = suffixParts.length ? `-${suffixParts.join('-')}` : '';
|
|
14
|
+
const ext = format ? `.${format}` : inputExt;
|
|
15
|
+
return path_1.default.join(publicDir, imgDir, `${fileName}${suffix}${ext}`);
|
|
16
|
+
}
|
|
17
|
+
exports.computeImgOutputPath = computeImgOutputPath;
|
|
18
|
+
//# sourceMappingURL=computeImgOutputPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeImgOutputPath.js","sourceRoot":"","sources":["../../src/content-page-repository/computeImgOutputPath.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAIxB,SAAgB,oBAAoB,CAClC,YAAoB,EACpB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAqC;IAErF,MAAM,eAAe,GAAG,cAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,cAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,cAAI,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,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,QAAQ,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;AACpE,CAAC;AAfD,oDAeC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.resizeImg = void 0;
|
|
6
|
+
const sharp_1 = __importDefault(require("sharp"));
|
|
7
|
+
const resizeImg = (size, options) => (chain) => size
|
|
8
|
+
? chain.resize(size.width || null, size.height || null, {
|
|
9
|
+
/*
|
|
10
|
+
* Editor behaviour with one dimension present: resize by given dimension maintaining aspect ratio. (fit: contain)
|
|
11
|
+
* With two dimensions present: resize trying to fill given dimensions (fit: fill)
|
|
12
|
+
*/
|
|
13
|
+
fit: size.width && size.height ? sharp_1.default.fit.fill : sharp_1.default.fit.contain,
|
|
14
|
+
background: { r: 0, g: 0, b: 0, alpha: 0 },
|
|
15
|
+
...options,
|
|
16
|
+
})
|
|
17
|
+
: chain;
|
|
18
|
+
exports.resizeImg = resizeImg;
|
|
19
|
+
//# sourceMappingURL=resizeImg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizeImg.js","sourceRoot":"","sources":["../../src/content-page-repository/resizeImg.ts"],"names":[],"mappings":";;;;;AACA,kDAA0B;AAGnB,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,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAK,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;AAbD,QAAA,SAAS,aAaR"}
|
|
@@ -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;
|