@redneckz/wildless-cms-uni-blocks 0.15.338 → 0.15.340
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/migration-scripts/0.14.213.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +199 -135
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
- package/bundle/content-page-repository/copy.d.ts +1 -0
- package/bundle/data/FooterData.d.ts +0 -1
- package/bundle/data/SitemapData.d.ts +1 -10
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/model/Fallback.d.ts +0 -1
- package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/bundle/utils/getVersion.d.ts +1 -0
- package/cosmos-static/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/cosmos-static/icons/sprites.svg +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/dist/components/ContentPage/computeAPIFallback.js +2 -16
- package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -9
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -9
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/dist/components/OfficesAtmsMap/useOffices.js +4 -2
- package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +12 -5
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +17 -11
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/TabsLayout/renderTabsLayout.js +14 -12
- package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/dist/content-page-repository/ContentPageRepository.js +27 -5
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/content-page-repository/TransformationOptions.d.ts +1 -0
- package/dist/content-page-repository/copy.d.ts +1 -0
- package/dist/content-page-repository/copy.js +16 -0
- package/dist/content-page-repository/copy.js.map +1 -0
- package/dist/content-page-repository/transformAttachmentLink.js +8 -7
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +3 -5
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +4 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/data/FooterData.d.ts +0 -1
- package/dist/data/SitemapData.d.ts +1 -10
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/Fallback.d.ts +0 -1
- package/dist/ui-kit/Badge/Badge.js +1 -3
- package/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
- package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/dist/utils/getVersion.d.ts +1 -0
- package/dist/utils/getVersion.js +5 -0
- package/dist/utils/getVersion.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/lib/components/ContentPage/computeAPIFallback.js +2 -16
- package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -9
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -9
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/lib/components/OfficesAtmsMap/useOffices.js +4 -2
- package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +12 -5
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +4 -3
- package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +4 -2
- package/lib/components/TabsLayout/TabsLayout.js +17 -11
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/TabsLayout/renderTabsLayout.js +14 -12
- package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/lib/content-page-repository/ContentPageRepository.js +26 -4
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/content-page-repository/TransformationOptions.d.ts +1 -0
- package/lib/content-page-repository/copy.d.ts +1 -0
- package/lib/content-page-repository/copy.js +10 -0
- package/lib/content-page-repository/copy.js.map +1 -0
- package/lib/content-page-repository/transformAttachmentLink.js +8 -7
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +3 -5
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +4 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/data/FooterData.d.ts +0 -1
- package/lib/data/SitemapData.d.ts +1 -10
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/Fallback.d.ts +0 -1
- package/lib/ui-kit/Badge/Badge.js +1 -3
- package/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
- package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/lib/utils/getVersion.d.ts +1 -0
- package/lib/utils/getVersion.js +2 -0
- package/lib/utils/getVersion.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +194 -128
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/bundle/content-page-repository/copy.d.ts +1 -0
- package/mobile/bundle/data/FooterData.d.ts +0 -1
- package/mobile/bundle/data/SitemapData.d.ts +1 -10
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/model/Fallback.d.ts +0 -1
- package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/bundle/utils/getVersion.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +2 -16
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -9
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js +4 -2
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +17 -11
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js +14 -12
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.js +27 -5
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/dist/content-page-repository/copy.d.ts +1 -0
- package/mobile/dist/content-page-repository/copy.js +16 -0
- package/mobile/dist/content-page-repository/copy.js.map +1 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +8 -7
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +3 -5
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +4 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/data/FooterData.d.ts +0 -1
- package/mobile/dist/data/SitemapData.d.ts +1 -10
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/Fallback.d.ts +0 -1
- package/mobile/dist/ui-kit/Badge/Badge.js +1 -3
- package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/mobile/dist/utils/getVersion.d.ts +1 -0
- package/mobile/dist/utils/getVersion.js +5 -0
- package/mobile/dist/utils/getVersion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +2 -16
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -9
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js +4 -2
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +17 -11
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js +14 -12
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.js +26 -4
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/lib/content-page-repository/copy.d.ts +1 -0
- package/mobile/lib/content-page-repository/copy.js +10 -0
- package/mobile/lib/content-page-repository/copy.js.map +1 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +8 -7
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +3 -5
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +4 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/data/FooterData.d.ts +0 -1
- package/mobile/lib/data/SitemapData.d.ts +1 -10
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/Fallback.d.ts +0 -1
- package/mobile/lib/ui-kit/Badge/Badge.js +1 -3
- package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/mobile/lib/utils/getVersion.d.ts +1 -0
- package/mobile/lib/utils/getVersion.js +2 -0
- package/mobile/lib/utils/getVersion.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
- package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
- package/mobile/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
- package/mobile/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
- package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -0
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +3 -35
- package/mobile/src/components/Footer/Footer.tsx +0 -16
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
- package/mobile/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
- package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
- package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
- package/mobile/src/components/OfficesAtmsMap/useOffices.ts +11 -4
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +21 -11
- package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
- package/mobile/src/content-page-repository/ContentPageRepository.ts +36 -4
- package/mobile/src/content-page-repository/TransformationOptions.ts +1 -0
- package/mobile/src/content-page-repository/copy.ts +11 -0
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +7 -8
- package/mobile/src/content-page-repository/transformDocument.ts +3 -5
- package/mobile/src/content-page-repository/transformImg.ts +6 -1
- package/mobile/src/data/FooterData.ts +0 -1
- package/mobile/src/data/SitemapData.ts +1 -11
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/mobile/src/model/Fallback.ts +0 -1
- package/mobile/src/ui-kit/Badge/Badge.tsx +13 -15
- package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
- package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +1 -3
- package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
- package/mobile/src/ui-kit/TabsControl/TabItem.tsx +1 -2
- package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
- package/mobile/src/utils/getVersion.ts +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
- package/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
- package/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
- package/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
- package/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
- package/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
- package/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
- package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
- package/src/components/ContentPage/ContentPage.tsx +1 -0
- package/src/components/ContentPage/computeAPIFallback.ts +3 -35
- package/src/components/Footer/Footer.mobile.tsx +0 -16
- package/src/components/Footer/Footer.tsx +0 -19
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
- package/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
- package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
- package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
- package/src/components/OfficesAtmsMap/useOffices.ts +11 -4
- package/src/components/ProductGallery/ProductGallery.tsx +37 -7
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
- package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +70 -24
- package/src/components/TabsLayout/TabsLayout.fixture.tsx +33 -29
- package/src/components/TabsLayout/TabsLayout.tsx +21 -11
- package/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
- package/src/content-page-repository/ContentPageRepository.ts +36 -4
- package/src/content-page-repository/TransformationOptions.ts +1 -0
- package/src/content-page-repository/copy.ts +11 -0
- package/src/content-page-repository/transformAttachmentLink.ts +7 -8
- package/src/content-page-repository/transformDocument.ts +3 -5
- package/src/content-page-repository/transformImg.ts +6 -1
- package/src/data/FooterData.ts +0 -1
- package/src/data/SitemapData.ts +1 -11
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/src/model/Fallback.ts +0 -1
- package/src/ui-kit/Badge/Badge.tsx +13 -15
- package/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
- package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
- package/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
- package/src/ui-kit/Heading/HeadingProps.ts +1 -3
- package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
- package/src/ui-kit/TabsControl/TabItem.tsx +1 -2
- package/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
- package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
- package/src/utils/getVersion.ts +1 -0
- package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/src/components/ContentPage/loadModuleFallback.ts +0 -11
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useHotFilters = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
3
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
|
-
const
|
|
4
|
+
const getVersion_1 = require("../../utils/getVersion");
|
|
6
5
|
const getBadgeCount_1 = require("./getBadgeCount");
|
|
7
6
|
const hotFilterRecordCmp_1 = require("./hotFilterRecordCmp");
|
|
8
7
|
const EMPTY_ARR = [];
|
|
@@ -11,7 +10,8 @@ const useHotFilters = ({ hotFilters = EMPTY_ARR, filtrationState = EMPTY_OBJ, bl
|
|
|
11
10
|
const activeItemIndex = (0, hooks_1.useMemo)(() => Math.max(0, hotFilters.findIndex((_) => (0, hotFilterRecordCmp_1.hotFilterRecordCmp)(_.filter, filtrationState))), [hotFilters, filtrationState]);
|
|
12
11
|
const items = (0, hooks_1.useMemo)(() => hotFilters.map((_) => ({
|
|
13
12
|
text: _.text,
|
|
14
|
-
|
|
13
|
+
count: (0, getBadgeCount_1.getBadgeCount)(blocks, _.filter),
|
|
14
|
+
version: (0, getVersion_1.getVersion)(_ === hotFilters[activeItemIndex]),
|
|
15
15
|
})), [hotFilters, blocks, activeItemIndex]);
|
|
16
16
|
const handleChange = (0, hooks_1.useCallback)((_) => {
|
|
17
17
|
onFiltrationStateChange(hotFilters[items.indexOf(_)].filter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHotFilters.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseFiltration/useHotFilters.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHotFilters.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseFiltration/useHotFilters.tsx"],"names":[],"mappings":";;AAAA,uDAAmE;AAEnE,uDAAoD;AAGpD,mDAAgD;AAEhD,6DAA0D;AAE1D,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,SAAS,GAAG,EAAE,CAAC;AAad,MAAM,aAAa,GAAG,CAAC,EAC5B,UAAU,GAAG,SAAS,EACtB,eAAe,GAAG,S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../../utils/style");
|
|
5
5
|
const Img_1 = require("../Img/Img");
|
|
6
|
-
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
6
|
+
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon?.icon || icon?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
7
7
|
? 'bg-secondary-light text-primary-main'
|
|
8
8
|
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
|
|
9
9
|
exports.renderBenefitIcon = renderBenefitIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,oCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,oCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CACxB,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,yGAAyG,EACzG,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,eAAe,EAAE,GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAlBE,QAAA,iBAAiB,qBAkBnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type InputRangeProps } from '
|
|
2
|
+
import { type InputRangeProps } from '../InputRange/InputRangeProps';
|
|
3
3
|
interface MonthsInputParams extends InputRangeProps {
|
|
4
4
|
availableMonths?: Array<number>;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderMonthsInput = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const InputRange_1 = require("
|
|
4
|
+
const InputRange_1 = require("../InputRange/InputRange");
|
|
5
5
|
const STEP_MONTHS = 1;
|
|
6
6
|
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
|
|
7
7
|
exports.renderMonthsInput = renderMonthsInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,yDAAsD;AAGtD,MAAM,WAAW,GAAG,CAAC,CAAC;AAMf,MAAM,iBAAiB,GAAG,CAAC,EAChC,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,CAAC,EACP,eAAe,EACf,GAAG,IAAI,EACW,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IACT,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EACvD,IAAI,EAAE,WAAW,KACb,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KACpE,IAAI,GACR,CACH,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AAEF,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { type LinkCommonProps } from '../../model/LinkProps';
|
|
|
2
2
|
interface CookiePopupProps {
|
|
3
3
|
termLink?: LinkCommonProps;
|
|
4
4
|
personalDataPolicyLink?: LinkCommonProps;
|
|
5
|
+
recommendationLink?: LinkCommonProps;
|
|
5
6
|
}
|
|
6
7
|
export declare const CookiePopup: import("@redneckz/uni-jsx").UNIComponent<CookiePopupProps, any, any>;
|
|
7
8
|
export {};
|
|
@@ -11,7 +11,7 @@ const LinkWrapper_1 = require("../LinkWrapper/LinkWrapper");
|
|
|
11
11
|
const Paragraph_1 = require("../Paragraph/Paragraph");
|
|
12
12
|
const COOKIE_DIALOG_ID = 'cookie';
|
|
13
13
|
const DIALOG_INITIAL_DELAY = 3 * 1000;
|
|
14
|
-
exports.CookiePopup = (0, uni_jsx_1.JSX)(({ termLink, personalDataPolicyLink }) => {
|
|
14
|
+
exports.CookiePopup = (0, uni_jsx_1.JSX)(({ termLink, personalDataPolicyLink, recommendationLink }) => {
|
|
15
15
|
const [opened, { setTrue: open, setFalse: close }] = (0, useBool_1.useBool)();
|
|
16
16
|
(0, useDebouncedEffect_1.useDebouncedEffect)(() => {
|
|
17
17
|
if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
|
|
@@ -22,7 +22,7 @@ exports.CookiePopup = (0, uni_jsx_1.JSX)(({ termLink, personalDataPolicyLink })
|
|
|
22
22
|
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
23
23
|
close();
|
|
24
24
|
}, []);
|
|
25
|
-
return opened ? ((0, jsx_runtime_1.jsx)("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [(0, jsx_runtime_1.jsx)("div", { className: "sm:flex-1", children: (0, jsx_runtime_1.jsxs)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), (0, jsx_runtime_1.jsx)("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: (0, jsx_runtime_1.jsx)(CloseButton_1.CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
25
|
+
return opened ? ((0, jsx_runtime_1.jsx)("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [(0, jsx_runtime_1.jsx)("div", { className: "sm:flex-1", children: (0, jsx_runtime_1.jsxs)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB. \u041D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u043E", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(recommendationLink?.href), ...recommendationLink, children: "\u041F\u0440\u0430\u0432\u0438\u043B\u0430\u043C \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439." })] }) }), (0, jsx_runtime_1.jsx)("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: (0, jsx_runtime_1.jsx)(CloseButton_1.CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
26
26
|
});
|
|
27
27
|
const linkWrapperStyle = (href) => (0, style_1.style)('inline mx-2xs', href ? 'text-green-dark' : '');
|
|
28
28
|
//# sourceMappingURL=CookiePopup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookiePopup.js","sourceRoot":"","sources":["../../../src/ui-kit/CookiePopup/CookiePopup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iEAA8D;AAC9D,uFAAoF;AAEpF,6CAA0C;AAC1C,8DAA2D;AAC3D,4DAAyD;AACzD,sDAAmD;
|
|
1
|
+
{"version":3,"file":"CookiePopup.js","sourceRoot":"","sources":["../../../src/ui-kit/CookiePopup/CookiePopup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iEAA8D;AAC9D,uFAAoF;AAEpF,6CAA0C;AAC1C,8DAA2D;AAC3D,4DAAyD;AACzD,sDAAmD;AAQnD,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAClC,MAAM,oBAAoB,GAAG,CAAC,GAAG,IAAI,CAAC;AAEzB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3D,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAC;IAE/D,IAAA,uCAAkB,EAChB,GAAG,EAAE;QACH,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAE;YACvD,IAAI,EAAE,CAAC;SACR;IACH,CAAC,EACD,EAAE,EACF,oBAAoB,CACrB,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EA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
6
|
-
* "h0", "h1", "h2", "h3", "h4", "h5", "h6"
|
|
7
|
-
* ]
|
|
5
|
+
* @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький", "Очень маленький", "Самый маленький"]
|
|
8
6
|
*/
|
|
9
7
|
export declare type HeadingType = 'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
10
8
|
/**
|
|
@@ -8,14 +8,19 @@ const SwipeListContainer_1 = require("../SwipeListControl/SwipeListContainer");
|
|
|
8
8
|
const useSwipeListScroll_1 = require("../SwipeListControl/useSwipeListScroll");
|
|
9
9
|
const renderTab_1 = require("./renderTab");
|
|
10
10
|
const scrollButtonStyle = 'hidden sm:flex absolute z-40';
|
|
11
|
-
const
|
|
11
|
+
const scrollStyle = {
|
|
12
|
+
default: {
|
|
13
|
+
item: 'flex-1',
|
|
14
|
+
gap: 0,
|
|
15
|
+
buttonTop: 'top-0',
|
|
16
|
+
},
|
|
12
17
|
animated: {
|
|
13
|
-
|
|
18
|
+
item: 'flex',
|
|
14
19
|
gap: 8,
|
|
15
20
|
buttonTop: 'top-5',
|
|
16
21
|
},
|
|
17
22
|
underlined: {
|
|
18
|
-
|
|
23
|
+
item: '',
|
|
19
24
|
gap: 0,
|
|
20
25
|
buttonTop: 'top-0',
|
|
21
26
|
},
|
|
@@ -24,6 +29,6 @@ exports.ScrollableTabsControl = (0, uni_jsx_1.JSX)(({ className, items = [], val
|
|
|
24
29
|
const [containerRef, scroll] = (0, useSwipeListScroll_1.useSwipeListScroll)({
|
|
25
30
|
itemCount: items?.length || 0,
|
|
26
31
|
});
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative overflow-x-auto no-scrollbar', className), children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName:
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative overflow-x-auto no-scrollbar', className), children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: scrollStyle[tabsType].item, gap: scrollStyle[tabsType].gap, children: items.map((0, renderTab_1.renderTab)(value, onChange, tabsType)) }), scroll.canScrollLeft ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollLeftButton, { className: (0, style_1.style)('left-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollRightButton, { className: (0, style_1.style)('right-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollRight })) : null] }));
|
|
28
33
|
});
|
|
29
34
|
//# sourceMappingURL=ScrollableTabsControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollableTabsControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TabsControl/ScrollableTabsControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,2DAAgF;AAChF,+EAA4E;AAC5E,+EAA4E;AAC5E,2CAAwC;AAGxC,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEzD,MAAM,
|
|
1
|
+
{"version":3,"file":"ScrollableTabsControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TabsControl/ScrollableTabsControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,2DAAgF;AAChF,+EAA4E;AAC5E,+EAA4E;AAC5E,2CAAwC;AAGxC,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEzD,MAAM,WAAW,GAAuE;IACtF,OAAO,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,CAAC;QACN,SAAS,EAAE,OAAO;KACnB;IACD,QAAQ,E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E,iBAAiB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC/E,OAAO,EAAE,MAAM,CAAC,WAAW,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type DescriptionProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type VNode } from '../../model/VNode';
|
|
5
4
|
import { type TabsControlProps, type TabsType } from './TabsControlProps';
|
|
6
5
|
export interface TabItemBase extends LinkProps, TitleProps, DescriptionProps, IconProps {
|
|
7
6
|
name?: string;
|
|
8
|
-
|
|
7
|
+
count?: number;
|
|
9
8
|
}
|
|
10
9
|
export interface TabItemProps {
|
|
11
10
|
item?: TabItemBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TabsControl/TabItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;
|
|
1
|
+
{"version":3,"file":"TabItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TabsControl/TabItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,iDAA8C;AAI9C,iDAA8C;AAcjC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE,CACjD,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAW,OAAK,KAAK,GAAI,CAAC,CAAC,CAAC,uBAAC,aAAa,OAAK,KAAK,GAAI,CAC9E,CAAC;AAEF,MAAM,WAAW,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEvB,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAEhC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3E,OAAO,uBAAC,2BAAY,OAAK,KAAK,EAAE,GAAG,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AAC3E,CAAC,CAAC,CAAC;AAEH,mDAAmD;AACnD,MAAM,aAAa,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,OAAO,uBAAC,2BAAY,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,KAAM,IAAI,GAAI,CAAC;AACtE,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TabItemInner = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const getVersion_1 = require("../../utils/getVersion");
|
|
5
6
|
const style_1 = require("../../utils/style");
|
|
7
|
+
const Badge_1 = require("../Badge/Badge");
|
|
6
8
|
const renderTabItemInner_1 = require("./renderTabItemInner");
|
|
7
9
|
const tabPaddingStyleMap = {
|
|
8
10
|
default: 'px-xs',
|
|
@@ -27,13 +29,13 @@ const activeTabBgStyleMap = {
|
|
|
27
29
|
};
|
|
28
30
|
exports.TabItemInner = (0, uni_jsx_1.JSX)(({ tag = 'div', item = {}, isActive = false, type = 'default', onClick }) => {
|
|
29
31
|
const Tag = tag;
|
|
30
|
-
const { text, description, icon,
|
|
32
|
+
const { text, description, icon, count, ...link } = item;
|
|
31
33
|
return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tablist", onClick: onClick, ...link, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [(0, renderTabItemInner_1.renderTabItemInner)({
|
|
32
34
|
text,
|
|
33
35
|
description,
|
|
34
36
|
icon,
|
|
35
37
|
isActive,
|
|
36
38
|
type,
|
|
37
|
-
}),
|
|
39
|
+
}), Number.isInteger(count) ? ((0, jsx_runtime_1.jsx)("div", { className: "ml-xs", children: (0, jsx_runtime_1.jsx)(Badge_1.Badge, { count: count, version: (0, getVersion_1.getVersion)(isActive) }) })) : null] }) }));
|
|
38
40
|
});
|
|
39
41
|
//# sourceMappingURL=TabItemInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabItemInner.js","sourceRoot":"","sources":["../../../src/ui-kit/TabsControl/TabItemInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,6DAA0D;AAI1D,MAAM,kBAAkB,GAA6B;IACnD,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,kFAAkF;CAC7F,CAAC;AAE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E,OAAO,EAAE,EAAE,EAAE;IAC1E,MAAM,GAAG,GAAQ,GAAG,CAAC;IAErB,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAEzD,OAAO,CACL,uBAAC,GAAG,IACF,SAAS,EAAE,IAAA,aAAK,EACd,MAAM,EACN,cAAc,EACd,gBAAgB,EAChB,kBAAkB,CAAC,IAAI,CAAC,EACxB,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAC3D,EACD,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,QAAQ,EACR,kCAAkC,EAClC,+BAA+B,EAC/B,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CACtD,aAEA,IAAA,uCAAkB,EAAC;oBAClB,IAAI;oBACJ,WAAW;oBACX,IAAI;oBACJ,QAAQ;oBACR,IAAI;iBACL,CAAC,EACD,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACzB,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,aAAK,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAA,uBAAU,EAAC,QAAQ,CAAC,GAAI,GAClD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -31,11 +31,11 @@ exports.YandexMap = (0, uni_jsx_1.JSX)(({ points, className = '', zoom = 5 }) =>
|
|
|
31
31
|
controls: [],
|
|
32
32
|
suppressMapOpenBlock: true,
|
|
33
33
|
});
|
|
34
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, points);
|
|
34
|
+
(0, renderClusterer_1.renderClusterer)({ yandexMaps, map: map.current, points });
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
else if (yandexMaps) {
|
|
38
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, points);
|
|
38
|
+
(0, renderClusterer_1.renderClusterer)({ yandexMaps, map: map.current, points });
|
|
39
39
|
if (!points?.length) {
|
|
40
40
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
41
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";;;AAAA,6DAA6D;AAC7D,cAAc;AACd,+CAAwC;AACxC,uDAAgE;AAGhE,6CAA0C;AAC1C,uDAAoD;AACpD,mEAAgE;AAChE,mDAAgD;AAChD,6CAA0C;AAQ1C,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAErD,oHAAoH;AACpH,sDAAsD;AACtD,0DAA0D;AAC1D,6EAA6E;AAChE,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE;YACjB,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;gBACrB,kEAAkE;gBAClE,IAAI,GAAG,CAAC,OAAO,EAAE;oBACf,OAAO;iBACR;gBAED,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;oBACtC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC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AAa,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,EAAE,CAC9C,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type ymaps from 'yandex-maps';
|
|
2
2
|
import { type BalloonPoints } from '../../components/OfficesAtmsMap/YandexMapProps';
|
|
3
|
-
export declare function renderClusterer(yandexMaps
|
|
3
|
+
export declare function renderClusterer({ yandexMaps, map, points, }: {
|
|
4
|
+
yandexMaps: typeof ymaps;
|
|
5
|
+
map: ymaps.Map;
|
|
6
|
+
points: BalloonPoints[];
|
|
7
|
+
}): void;
|
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderClusterer = void 0;
|
|
3
|
-
|
|
3
|
+
const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
|
|
4
|
+
const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
|
|
5
|
+
function renderClusterer({ yandexMaps, map, points, }) {
|
|
4
6
|
map.geoObjects.removeAll();
|
|
5
7
|
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
6
|
-
const
|
|
8
|
+
const officeClusterer = defineClusterer('offices', yandexMaps, clusterIconContentLayout);
|
|
9
|
+
if (points.length && points.every((_) => 'type' in _)) {
|
|
10
|
+
const remoteWorkplaceClusterer = defineClusterer('workplaces', yandexMaps, clusterIconContentLayout);
|
|
11
|
+
const remoteWorkplaceGeoObjects = defineGeoObjects(points.filter((_) => _.type === 'workplaces'), 'workplaces', yandexMaps);
|
|
12
|
+
const officesGeoObjects = defineGeoObjects(points.filter((_) => _.type === 'offices'), 'offices', yandexMaps);
|
|
13
|
+
officeClusterer.add(officesGeoObjects);
|
|
14
|
+
remoteWorkplaceClusterer.add(remoteWorkplaceGeoObjects);
|
|
15
|
+
map.geoObjects.add(remoteWorkplaceClusterer);
|
|
16
|
+
map.geoObjects.add(officeClusterer);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const geoObjects = defineGeoObjects(points, 'offices', yandexMaps);
|
|
20
|
+
officeClusterer.add(geoObjects);
|
|
21
|
+
map.geoObjects.add(officeClusterer);
|
|
22
|
+
}
|
|
23
|
+
map.setBounds(yandexMaps.util.bounds.fromPoints(points.map((_) => _.coords))).then(() => {
|
|
24
|
+
if (map.getZoom() > 10) {
|
|
25
|
+
map.setZoom(10);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
exports.renderClusterer = renderClusterer;
|
|
30
|
+
const defineClusterer = (type, yandexMaps, clusterIconContentLayout) => {
|
|
31
|
+
return new yandexMaps.Clusterer({
|
|
7
32
|
clusterIcons: [
|
|
8
33
|
{
|
|
9
|
-
href: '
|
|
34
|
+
href: type === 'offices' ? MapMarkerClusterIcon : MapMarkerClusterYellowIcon,
|
|
10
35
|
size: [78, 84],
|
|
11
36
|
offset: [-35, -50],
|
|
12
37
|
},
|
|
@@ -15,24 +40,18 @@ function renderClusterer(yandexMaps, map, points) {
|
|
|
15
40
|
clusterHideIconOnBalloonOpen: false,
|
|
16
41
|
geoObjectHideIconOnBalloonOpen: false,
|
|
17
42
|
});
|
|
18
|
-
|
|
43
|
+
};
|
|
44
|
+
const defineGeoObjects = (pointArr, type, yandexMaps) => {
|
|
45
|
+
return pointArr.map(({ coords, content }) => new yandexMaps.Placemark(coords, {
|
|
19
46
|
balloonContentHeader: content?.header,
|
|
20
47
|
balloonContentBody: content?.body,
|
|
21
48
|
balloonContentFooter: content?.footer,
|
|
22
49
|
hintContent: content?.hint,
|
|
23
50
|
}, {
|
|
24
51
|
iconLayout: 'default#image',
|
|
25
|
-
iconImageHref: '
|
|
52
|
+
iconImageHref: type === 'offices' ? MapMarkerClusterIcon : MapMarkerClusterYellowIcon,
|
|
26
53
|
iconImageSize: [78, 84],
|
|
27
54
|
iconImageOffset: [-35, -50],
|
|
28
55
|
}));
|
|
29
|
-
|
|
30
|
-
map.geoObjects.add(clusterer);
|
|
31
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points.map((_) => _.coords))).then(() => {
|
|
32
|
-
if (map.getZoom() > 10) {
|
|
33
|
-
map.setZoom(10);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
exports.renderClusterer = renderClusterer;
|
|
56
|
+
};
|
|
38
57
|
//# sourceMappingURL=renderClusterer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderClusterer.ts"],"names":[],"mappings":";;AAMA,SAAgB,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderClusterer.ts"],"names":[],"mappings":";;AAMA,MAAM,oBAAoB,GAAG,iCAAiC,CAAC;AAC/D,MAAM,0BAA0B,GAAG,uCAAuC,CAAC;AAE3E,SAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,GAAG,EACH,MAAM,GAKP;IACC,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;IAE3B,MAAM,wBAAwB,GAAG,UAAU,CAAC,qBAAqB,CAAC,WAAW,CAC3E,uEAAuE,CACxE,CAAC;IAEF,MAAM,eAAe,GAAG,eAAe,CAAC,SAAS,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC;IAEzF,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CA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version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../src/utils/getVersion.ts"],"names":[],"mappings":";;AAAO,MAAM,UAAU,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAA3E,QAAA,UAAU,cAAiE"}
|
|
@@ -35,6 +35,10 @@ export declare type FieldCommonDef = FieldDefaultDef & {
|
|
|
35
35
|
/** @default "common" */
|
|
36
36
|
fieldType: 'common';
|
|
37
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @title Значение по умолчанию
|
|
40
|
+
* @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
|
|
41
|
+
*/
|
|
38
42
|
declare type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
|
|
39
43
|
/**
|
|
40
44
|
* @title Поле ввода ВЭД
|
|
@@ -43,7 +47,6 @@ declare type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTr
|
|
|
43
47
|
export declare type FieldVedDef = FieldDefaultDef & {
|
|
44
48
|
/** @default "ved" */
|
|
45
49
|
fieldType: 'ved';
|
|
46
|
-
/** @title Значение по умолчанию */
|
|
47
50
|
defaultValue?: VedTypes;
|
|
48
51
|
};
|
|
49
52
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
2
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
|
-
import { type CalculatorCreditContent } from './CalculatorCreditContent';
|
|
4
|
-
import { type CreditCalculatorData } from './getCreditCalculatorParams';
|
|
3
|
+
import { type CalculatorCreditContent, type CreditCalculatorData } from './CalculatorCreditContent';
|
|
5
4
|
export interface CalculatorDepositProps extends CalculatorCreditContent, UniBlockProps {
|
|
6
5
|
className?: string;
|
|
7
6
|
calcSource?: CreditCalculatorData & JSONRefObject;
|
|
@@ -17,7 +17,7 @@ import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSecti
|
|
|
17
17
|
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
18
18
|
import { clamp } from '../../utils/clamp.js';
|
|
19
19
|
import { style } from '../../utils/style.js';
|
|
20
|
-
import { getCreditCalculatorParams
|
|
20
|
+
import { getCreditCalculatorParams } from './getCreditCalculatorParams.js';
|
|
21
21
|
const CREDIT_DEFAULT_SUM = 200000;
|
|
22
22
|
export const CalculatorCredit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, ...rest }) => {
|
|
23
23
|
const [userInputParams, { field }] = useForm({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorCredit.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/CalculatorCredit.tsx"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC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I,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import { type CalculatorParamsViewSettingsDefault, type CommonCalculatorProps, type CommonDefaultParams } from '../../ui-kit/Calculator/CalculatorProps';
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault, type CalcValueProps, type CommonCalculatorProps, type CommonDefaultParams, type LimitParamsProps } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
2
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
export interface CommonCreditParams {
|
|
4
|
+
isInsurance: boolean;
|
|
5
|
+
isSalaryClient: boolean;
|
|
6
|
+
isPensionClient: boolean;
|
|
7
|
+
isStateEmployee: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CreditCalculatorSourceBookRateParams extends CommonCreditParams, LimitParamsProps {
|
|
10
|
+
rate: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CreditCalculatorSourceBookLimitParams extends CommonCreditParams, LimitParamsProps {
|
|
13
|
+
}
|
|
14
|
+
export interface CreditCalculatorUserInputParams extends CommonCreditParams, CalcValueProps {
|
|
15
|
+
isAnnuity: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface CreditCalculatorParams extends CreditCalculatorSourceBookRateParams, CreditCalculatorUserInputParams {
|
|
18
|
+
monthlyPayment: number;
|
|
19
|
+
}
|
|
20
|
+
export declare type CreditCalculatorData = {
|
|
21
|
+
rateRows?: CreditCalculatorSourceBookRateParams[];
|
|
22
|
+
limitRows?: CreditCalculatorSourceBookLimitParams[];
|
|
23
|
+
};
|
|
3
24
|
export interface CreditCalculatorParamsViewSettings extends CalculatorParamsViewSettingsDefault {
|
|
4
25
|
/** @title Работаю в бюджетной организации */
|
|
5
26
|
isShowStateEmployee?: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type CreditCalculatorParamsViewSettings } from './CalculatorCreditContent';
|
|
2
|
-
import { type CommonCreditParams, type CreditCalculatorUserInputParams } from './getCreditCalculatorParams';
|
|
1
|
+
import { type CommonCreditParams, type CreditCalculatorParamsViewSettings, type CreditCalculatorUserInputParams } from './CalculatorCreditContent';
|
|
3
2
|
interface CheckSourceBookRowProps {
|
|
4
3
|
row: CommonCreditParams;
|
|
5
4
|
userInputParams: CreditCalculatorUserInputParams;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DEFAULT_MAX_MONTHS, DEFAULT_MIN_MONTHS, } from '../../ui-kit/Calculator/calculatorConstants.js';
|
|
2
|
+
const DEFAULT_MIN_SUM = 10000;
|
|
3
|
+
const DEFAULT_MAX_SUM = 5000000;
|
|
4
|
+
export const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
5
|
+
minSum: DEFAULT_MIN_SUM,
|
|
6
|
+
maxSum: DEFAULT_MAX_SUM,
|
|
7
|
+
minMonths: DEFAULT_MIN_MONTHS,
|
|
8
|
+
maxMonths: DEFAULT_MAX_MONTHS,
|
|
9
|
+
rate: 0,
|
|
10
|
+
isSalaryClient: false,
|
|
11
|
+
isPensionClient: false,
|
|
12
|
+
isStateEmployee: false,
|
|
13
|
+
isInsurance: true,
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=defaultCreditCalculatorParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/defaultCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AAGrD,MAAM,eAAe,GAAG,KAAK,CAAC;AAC9B,MAAM,eAAe,GAAG,OAAO,CAAC;AAChC,MAAM,CAAC,MAAM,gCAAgC,GAAyC;IACpF,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;IACvB,SAAS,EAAE,kBAAkB;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,IAAI,EAAE,CAAC;IACP,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,KAAK;IACtB,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,IAAI;CAClB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type CreditCalculatorParamsViewSettings } from './CalculatorCreditContent';
|
|
2
|
-
import { type CreditCalculatorSourceBookLimitParams, type CreditCalculatorUserInputParams } from './getCreditCalculatorParams';
|
|
1
|
+
import { type CreditCalculatorParamsViewSettings, type CreditCalculatorSourceBookLimitParams, type CreditCalculatorUserInputParams } from './CalculatorCreditContent';
|
|
3
2
|
interface GetCreditCalculatorLimitParamsProps {
|
|
4
3
|
limitRows: CreditCalculatorSourceBookLimitParams[];
|
|
5
4
|
userInputParams: CreditCalculatorUserInputParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditCalculatorLimitParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorLimitParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAO9F,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,SAAS,EACT,eAAe,EACf,kBAAkB,GACkB,EAAE,EAAE,CACxC,SAAS,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CACtB,oCAAoC,CAAC;IACnC,GAAG;IACH,eAAe;IACf,kBAAkB;CACnB,CAAC,CACH,CAAC"}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type CreditCalculatorParamsViewSettings } from './CalculatorCreditContent';
|
|
3
|
-
export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams;
|
|
4
|
-
export interface CommonCreditParams {
|
|
5
|
-
isInsurance: boolean;
|
|
6
|
-
isSalaryClient: boolean;
|
|
7
|
-
isPensionClient: boolean;
|
|
8
|
-
isStateEmployee: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface CreditCalculatorSourceBookRateParams extends CommonCreditParams, LimitParamsProps {
|
|
11
|
-
rate: number;
|
|
12
|
-
}
|
|
13
|
-
export interface CreditCalculatorSourceBookLimitParams extends CommonCreditParams, LimitParamsProps {
|
|
14
|
-
}
|
|
15
|
-
export interface CreditCalculatorUserInputParams extends CommonCreditParams, CalcValueProps {
|
|
16
|
-
isAnnuity: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface CreditCalculatorParams extends CreditCalculatorSourceBookRateParams, CreditCalculatorUserInputParams {
|
|
19
|
-
monthlyPayment: number;
|
|
20
|
-
}
|
|
21
|
-
export declare type CreditCalculatorData = {
|
|
22
|
-
rateRows?: CreditCalculatorSourceBookRateParams[];
|
|
23
|
-
limitRows?: CreditCalculatorSourceBookLimitParams[];
|
|
24
|
-
};
|
|
1
|
+
import { type CreditCalculatorData, type CreditCalculatorParams, type CreditCalculatorParamsViewSettings, type CreditCalculatorUserInputParams } from './CalculatorCreditContent';
|
|
25
2
|
export declare const getCreditCalculatorParams: (userInputParams: CreditCalculatorUserInputParams, calcSource?: CreditCalculatorData, paramsViewSettings?: CreditCalculatorParamsViewSettings) => CreditCalculatorParams;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { DEFAULT_MAX_MONTHS, DEFAULT_MIN_MONTHS, } from '../../ui-kit/Calculator/calculatorConstants.js';
|
|
2
1
|
import { getMonthlyPayment } from '../../ui-kit/Calculator/getMonthlyPayment.js';
|
|
3
2
|
import { getLimitRangeByKeys } from '../../ui-kit/Calculator/rangeHelpers.js';
|
|
3
|
+
import { DEFAULT_CREDIT_CALCULATOR_PARAMS } from './defaultCreditCalculatorParams.js';
|
|
4
4
|
import { getCreditCalculatorLimitParams } from './getCreditCalculatorLimitParams.js';
|
|
5
5
|
import { getCreditCalculatorRateParams } from './getCreditCalculatorRateParams.js';
|
|
6
|
-
const DEFAULT_MIN_SUM = 10000;
|
|
7
|
-
const DEFAULT_MAX_SUM = 5000000;
|
|
8
|
-
export const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
9
|
-
minSum: DEFAULT_MIN_SUM,
|
|
10
|
-
maxSum: DEFAULT_MAX_SUM,
|
|
11
|
-
minMonths: DEFAULT_MIN_MONTHS,
|
|
12
|
-
maxMonths: DEFAULT_MAX_MONTHS,
|
|
13
|
-
rate: 0,
|
|
14
|
-
isSalaryClient: false,
|
|
15
|
-
isPensionClient: false,
|
|
16
|
-
isStateEmployee: false,
|
|
17
|
-
isInsurance: true,
|
|
18
|
-
};
|
|
19
6
|
export const getCreditCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
20
7
|
const { moneyValue, monthsValue } = userInputParams;
|
|
21
8
|
const rateRows = calcSource?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|