@redneckz/wildless-cms-uni-blocks 0.15.339 → 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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
|
@@ -5,13 +5,13 @@ import { type VNode } from '../../model/VNode';
|
|
|
5
5
|
import { Button } from '../../ui-kit/Button/Button';
|
|
6
6
|
import { ClientOnly } from '../../ui-kit/ClientOnly';
|
|
7
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
8
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
9
|
-
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
10
8
|
import { Text } from '../../ui-kit/Text/Text';
|
|
11
9
|
import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
|
|
10
|
+
import { getVersion } from '../../utils/getVersion';
|
|
12
11
|
import { style } from '../../utils/style';
|
|
13
12
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
14
|
-
import { type Atm, type Branch } from './OfficesAtmsMapProps';
|
|
13
|
+
import { type Atm, type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
14
|
+
import { renderDescriptionBlock } from './renderDescriptionBlock';
|
|
15
15
|
import { renderFiltrationForm } from './renderFiltrationForm';
|
|
16
16
|
import { type BalloonContent } from './YandexMapProps';
|
|
17
17
|
|
|
@@ -23,9 +23,12 @@ export type InitFilterState = Record<string, boolean>;
|
|
|
23
23
|
export interface OfficesAtmsMapLayoutProps<T> {
|
|
24
24
|
className?: string;
|
|
25
25
|
data?: T[];
|
|
26
|
+
remoteWorkplaces?: T[];
|
|
26
27
|
renderCard?: (item: T, index: number) => VNode;
|
|
28
|
+
renderRemoteWorkplaceCard?: (item: T, index: number) => VNode;
|
|
27
29
|
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
28
30
|
getBalloon?: (item: T) => BalloonContent;
|
|
31
|
+
getBalloonRemoteWorkplaces?: (item: T) => BalloonContent;
|
|
29
32
|
initFilterState?: InitFilterState;
|
|
30
33
|
descriptionData?: AtmsDef;
|
|
31
34
|
title?: string;
|
|
@@ -34,13 +37,16 @@ export interface OfficesAtmsMapLayoutProps<T> {
|
|
|
34
37
|
const filtersVisibleStyles = (activeButton: string) =>
|
|
35
38
|
activeButton === 'all' ? 'block' : 'hidden';
|
|
36
39
|
|
|
37
|
-
export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>(
|
|
40
|
+
export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm | RemoteWorkplace>>(
|
|
38
41
|
({
|
|
39
42
|
className,
|
|
40
43
|
data = [],
|
|
44
|
+
remoteWorkplaces = [],
|
|
41
45
|
renderCard = defaultEmptyFunction,
|
|
46
|
+
renderRemoteWorkplaceCard = defaultEmptyFunction,
|
|
42
47
|
filterItems = defaultFilterItems,
|
|
43
48
|
getBalloon = defaultEmptyFunction,
|
|
49
|
+
getBalloonRemoteWorkplaces = defaultEmptyFunction,
|
|
44
50
|
initFilterState = {},
|
|
45
51
|
descriptionData,
|
|
46
52
|
title,
|
|
@@ -49,18 +55,30 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
|
|
|
49
55
|
|
|
50
56
|
const [filtrationState, { field, reset }] = useForm(initFilterState);
|
|
51
57
|
|
|
52
|
-
const [filteredItems, points, lengthItems] = useMemo(() => {
|
|
58
|
+
const [filteredItems, points, filteredRemoteWorkplaces, lengthItems] = useMemo(() => {
|
|
53
59
|
const _filteredItems = filterItems(data, filtrationState);
|
|
60
|
+
const _filteredRemoteWorkplaces = filterItems(remoteWorkplaces, filtrationState);
|
|
54
61
|
|
|
55
|
-
const _points =
|
|
56
|
-
.map((_) => ({
|
|
62
|
+
const _points = [
|
|
63
|
+
..._filteredItems.map((_) => ({
|
|
64
|
+
type: 'offices',
|
|
57
65
|
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
58
66
|
content: getBalloon(_),
|
|
59
|
-
}))
|
|
60
|
-
.
|
|
67
|
+
})),
|
|
68
|
+
..._filteredRemoteWorkplaces.map((_: RemoteWorkplace) => ({
|
|
69
|
+
type: 'workplaces',
|
|
70
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
71
|
+
content: getBalloonRemoteWorkplaces({
|
|
72
|
+
address: _.address,
|
|
73
|
+
workScheduleDescription: _.workScheduleDescription,
|
|
74
|
+
}),
|
|
75
|
+
})),
|
|
76
|
+
].filter((_) => _.coords && _.coords.length === 2);
|
|
77
|
+
|
|
78
|
+
const itemsLength = _filteredItems.length + _filteredRemoteWorkplaces?.length;
|
|
61
79
|
|
|
62
|
-
return [_filteredItems, _points,
|
|
63
|
-
}, [data, filtrationState]);
|
|
80
|
+
return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
|
|
81
|
+
}, [data, remoteWorkplaces, filtrationState]);
|
|
64
82
|
|
|
65
83
|
const [activeButton, setActiveButton] = useState('all');
|
|
66
84
|
|
|
@@ -89,6 +107,7 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
|
|
|
89
107
|
</div>
|
|
90
108
|
</div>
|
|
91
109
|
{filteredItems.map(renderCard)}
|
|
110
|
+
{filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)}
|
|
92
111
|
</div>
|
|
93
112
|
);
|
|
94
113
|
},
|
|
@@ -97,13 +116,13 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
|
|
|
97
116
|
const renderButtonsGroup = (
|
|
98
117
|
data: Branch[],
|
|
99
118
|
activeButton: string,
|
|
100
|
-
|
|
119
|
+
onButtonClick: (item: string) => void,
|
|
101
120
|
) => {
|
|
102
|
-
const allButtonVersion = activeButton === 'all'
|
|
121
|
+
const allButtonVersion = getVersion(activeButton === 'all');
|
|
103
122
|
|
|
104
|
-
const businessButtonVersion = activeButton === 'business'
|
|
123
|
+
const businessButtonVersion = getVersion(activeButton === 'business');
|
|
105
124
|
|
|
106
|
-
const
|
|
125
|
+
const handleClick = (e: any, key: string, branches: Branch[]) => {
|
|
107
126
|
if (e.currentTarget === e.target && key === 'business') {
|
|
108
127
|
branches.filter(
|
|
109
128
|
(branch) =>
|
|
@@ -113,23 +132,19 @@ const renderButtonsGroup = (
|
|
|
113
132
|
);
|
|
114
133
|
}
|
|
115
134
|
|
|
116
|
-
|
|
135
|
+
onButtonClick(key);
|
|
117
136
|
|
|
118
137
|
return branches;
|
|
119
138
|
};
|
|
120
139
|
|
|
121
140
|
return (
|
|
122
141
|
<div className="flex gap-lg flex-col sm:flex-row pb-lg">
|
|
123
|
-
<Button
|
|
124
|
-
data-id="all"
|
|
125
|
-
onClick={(e) => handleOnClick(e, 'all', data)}
|
|
126
|
-
version={allButtonVersion}
|
|
127
|
-
>
|
|
142
|
+
<Button data-id="all" onClick={(e) => handleClick(e, 'all', data)} version={allButtonVersion}>
|
|
128
143
|
Для физических лиц
|
|
129
144
|
</Button>
|
|
130
145
|
<Button
|
|
131
146
|
data-id="business"
|
|
132
|
-
onClick={(e) =>
|
|
147
|
+
onClick={(e) => handleClick(e, 'business', data)}
|
|
133
148
|
version={businessButtonVersion}
|
|
134
149
|
>
|
|
135
150
|
Для юридических лиц
|
|
@@ -137,28 +152,3 @@ const renderButtonsGroup = (
|
|
|
137
152
|
</div>
|
|
138
153
|
);
|
|
139
154
|
};
|
|
140
|
-
|
|
141
|
-
const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
|
|
142
|
-
__html || list?.length ? (
|
|
143
|
-
<div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
|
|
144
|
-
{__html ? (
|
|
145
|
-
<div className="mb-2xl">
|
|
146
|
-
<RichText __html={__html} />
|
|
147
|
-
</div>
|
|
148
|
-
) : null}
|
|
149
|
-
{list?.length ? (
|
|
150
|
-
<div className="flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl">
|
|
151
|
-
{list.map((item, i) => (
|
|
152
|
-
<div key={String(i)} className="flex gap-xs items-center">
|
|
153
|
-
{item?.image ? <Img image={item.image} /> : null}
|
|
154
|
-
{item?.text ? (
|
|
155
|
-
<Text size="text-m" font="font-light">
|
|
156
|
-
{item.text}
|
|
157
|
-
</Text>
|
|
158
|
-
) : null}
|
|
159
|
-
</div>
|
|
160
|
-
))}
|
|
161
|
-
</div>
|
|
162
|
-
) : null}
|
|
163
|
-
</div>
|
|
164
|
-
) : null;
|
|
@@ -82,6 +82,21 @@ export interface Branch {
|
|
|
82
82
|
transferringDataToBiometricSystem?: false;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export interface RemoteWorkplace {
|
|
86
|
+
id?: number;
|
|
87
|
+
region?: {
|
|
88
|
+
id?: number;
|
|
89
|
+
code?: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
slug?: string;
|
|
92
|
+
};
|
|
93
|
+
landmark?: string;
|
|
94
|
+
workScheduleDescription?: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
gpsLatitude?: number;
|
|
97
|
+
gpsLongitude?: number;
|
|
98
|
+
address?: string;
|
|
99
|
+
}
|
|
85
100
|
export interface Atm {
|
|
86
101
|
location?: string;
|
|
87
102
|
address?: string;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLocation } from '../../hooks/useLocation';
|
|
3
3
|
import { OfficesAtmsMapLayout } from './OfficesAtmsMapLayout';
|
|
4
|
-
import { type Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
5
5
|
import { getOfficePoint, renderOfficeCard } from './renderOfficeCard';
|
|
6
|
+
import { getRemoteWorkplacePoint, renderRemoteWorkplaceCard } from './renderRemoteWorkplaceCard';
|
|
6
7
|
import { useOffices } from './useOffices';
|
|
7
8
|
|
|
8
9
|
const INITIAL_FILTRATION_STATE = {
|
|
9
10
|
workingSaturday: false,
|
|
10
11
|
premiumService: false,
|
|
11
12
|
privateBanking: false,
|
|
13
|
+
remoteWorkplace: false,
|
|
12
14
|
sellingCoins: false,
|
|
13
15
|
buyingCoins: false,
|
|
14
16
|
bullionOperations: false,
|
|
@@ -17,15 +19,23 @@ const INITIAL_FILTRATION_STATE = {
|
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
const FILTRATION_PREDICATES = {
|
|
20
|
-
workingSaturday: (item: Branch) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Boolean(item.
|
|
22
|
+
workingSaturday: (item: Branch | RemoteWorkplace) =>
|
|
23
|
+
Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
24
|
+
premiumService: (item: Branch | RemoteWorkplace) =>
|
|
25
|
+
Boolean('premiumService' in item && item.premiumService),
|
|
26
|
+
privateBanking: (item: Branch | RemoteWorkplace) =>
|
|
27
|
+
Boolean('privateBanking' in item && item.privateBanking),
|
|
28
|
+
remoteWorkplace: (item: Branch | RemoteWorkplace) => Boolean('workScheduleDescription' in item),
|
|
29
|
+
sellingCoins: (item: Branch | RemoteWorkplace) =>
|
|
30
|
+
Boolean('sellingCoins' in item && item.sellingCoins),
|
|
31
|
+
buyingCoins: (item: Branch | RemoteWorkplace) =>
|
|
32
|
+
Boolean('buyingCoins' in item && item.buyingCoins),
|
|
33
|
+
bullionOperations: (item: Branch | RemoteWorkplace) =>
|
|
34
|
+
Boolean('bullionOperations' in item && item.bullionOperations),
|
|
35
|
+
preciousMetalsOperations: (item: Branch | RemoteWorkplace) =>
|
|
36
|
+
Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
37
|
+
transferringDataToBiometricSystem: (item: Branch | RemoteWorkplace) =>
|
|
38
|
+
Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
29
39
|
};
|
|
30
40
|
|
|
31
41
|
export interface OfficesMapProps {
|
|
@@ -43,16 +53,22 @@ export const OfficesMap = JSX<OfficesMapProps>(({ className }) => {
|
|
|
43
53
|
<OfficesAtmsMapLayout
|
|
44
54
|
className={className}
|
|
45
55
|
filterItems={filterItems}
|
|
46
|
-
data={officesData}
|
|
56
|
+
data={officesData[0]?.branches}
|
|
57
|
+
remoteWorkplaces={officesData[0]?.remoteWorkplaces}
|
|
47
58
|
initFilterState={INITIAL_FILTRATION_STATE}
|
|
48
59
|
renderCard={renderOfficeCard}
|
|
60
|
+
renderRemoteWorkplaceCard={renderRemoteWorkplaceCard}
|
|
49
61
|
getBalloon={getOfficePoint}
|
|
62
|
+
getBalloonRemoteWorkplaces={getRemoteWorkplacePoint}
|
|
50
63
|
title={`Офисы филиала ${currentLocation?.name}`}
|
|
51
64
|
/>
|
|
52
65
|
);
|
|
53
66
|
});
|
|
54
67
|
|
|
55
|
-
const filterItems = (
|
|
68
|
+
const filterItems = (
|
|
69
|
+
data: (Branch | RemoteWorkplace)[],
|
|
70
|
+
filtrationState: Record<string, boolean>,
|
|
71
|
+
) => {
|
|
56
72
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
57
73
|
|
|
58
74
|
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
2
|
+
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
5
|
+
|
|
6
|
+
export const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
|
|
7
|
+
__html || list?.length ? (
|
|
8
|
+
<div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
|
|
9
|
+
{__html ? (
|
|
10
|
+
<div className="mb-2xl">
|
|
11
|
+
<RichText __html={__html} />
|
|
12
|
+
</div>
|
|
13
|
+
) : null}
|
|
14
|
+
{list?.length ? (
|
|
15
|
+
<div className="flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl">
|
|
16
|
+
{list.map((item, i) => (
|
|
17
|
+
<div key={String(i)} className="flex gap-xs items-center">
|
|
18
|
+
{item?.image ? <Img image={item.image} /> : null}
|
|
19
|
+
{item?.text ? (
|
|
20
|
+
<Text size="text-m" font="font-light">
|
|
21
|
+
{item.text}
|
|
22
|
+
</Text>
|
|
23
|
+
) : null}
|
|
24
|
+
</div>
|
|
25
|
+
))}
|
|
26
|
+
</div>
|
|
27
|
+
) : null}
|
|
28
|
+
</div>
|
|
29
|
+
) : null;
|
|
@@ -21,6 +21,7 @@ const FILTRATION_LABELS = {
|
|
|
21
21
|
bullionOperations: 'Операции со слитками',
|
|
22
22
|
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
23
23
|
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
24
|
+
remoteWorkplace: 'Удаленное рабочее место',
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
@@ -30,7 +31,7 @@ export const renderFiltrationForm = (
|
|
|
30
31
|
{ field, reset }: { field: FormFieldRegisterer<any>; reset: () => void },
|
|
31
32
|
onlyOffice?: boolean,
|
|
32
33
|
) => {
|
|
33
|
-
const visibleFiltersNum =
|
|
34
|
+
const visibleFiltersNum = 4;
|
|
34
35
|
|
|
35
36
|
const filtersCheckbox = (filters || []).map((key) => (
|
|
36
37
|
<Checkbox key={key} text={FILTRATION_LABELS[key]} {...field(key)} />
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
2
|
+
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
5
|
+
import { CardCell } from './CardCell';
|
|
6
|
+
import { CardRow } from './CardRow';
|
|
7
|
+
import { type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
8
|
+
import { renderFoldButton } from './renderFoldButton';
|
|
9
|
+
|
|
10
|
+
export const renderRemoteWorkplaceCard = (
|
|
11
|
+
{ address, workScheduleDescription }: RemoteWorkplace,
|
|
12
|
+
index: number,
|
|
13
|
+
) => {
|
|
14
|
+
if (!workScheduleDescription) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div key={String(index)} className="bg-white col-span-12 p-3xl sm:border-green sm:border">
|
|
20
|
+
<div className="sm:flex sm:justify-between">
|
|
21
|
+
<div>
|
|
22
|
+
<Text size="text-h4">Удаленное рабочее место</Text>
|
|
23
|
+
{address ? (
|
|
24
|
+
<div className="flex pb-xl pt-xs gap-2xs">
|
|
25
|
+
<Icon name="GeolocationIcon" width="24" height="24" />
|
|
26
|
+
<Text size="text-l">{address}</Text>
|
|
27
|
+
</div>
|
|
28
|
+
) : null}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div className="hidden sm:block">
|
|
32
|
+
{renderCardContent({
|
|
33
|
+
workScheduleDescription,
|
|
34
|
+
})}
|
|
35
|
+
</div>
|
|
36
|
+
<Foldable
|
|
37
|
+
className="block sm:hidden"
|
|
38
|
+
renderFoldableSection={({ isUnfolded }) => {
|
|
39
|
+
return (
|
|
40
|
+
<FoldableSection isUnfolded={isUnfolded}>
|
|
41
|
+
{renderCardContent({
|
|
42
|
+
workScheduleDescription,
|
|
43
|
+
})}
|
|
44
|
+
</FoldableSection>
|
|
45
|
+
);
|
|
46
|
+
}}
|
|
47
|
+
//** TODO: remove styles with refactoring DefaultFoldButton*/
|
|
48
|
+
renderFoldButton={({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle })}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const renderCardContent = ({ workScheduleDescription }: RemoteWorkplace) => {
|
|
55
|
+
return (
|
|
56
|
+
<div>
|
|
57
|
+
<CardRow className="flex">
|
|
58
|
+
<CardCell label="Операции для физических лиц">
|
|
59
|
+
<Text>Оформление и обслуживание кредитов, счетов, вкладов</Text>
|
|
60
|
+
</CardCell>
|
|
61
|
+
<CardCell label="Операции для физических лиц">
|
|
62
|
+
<Text>Оформление и обслуживание банковских карт</Text>
|
|
63
|
+
</CardCell>
|
|
64
|
+
<CardCell label="Операции для физических лиц">
|
|
65
|
+
<Text>Инвестиционное и накопительное страхование</Text>
|
|
66
|
+
</CardCell>
|
|
67
|
+
<CardCell label="Операции для физических лиц">
|
|
68
|
+
<Text>Безналичные операции в рублях, переводы без открытия счёта</Text>
|
|
69
|
+
</CardCell>
|
|
70
|
+
</CardRow>
|
|
71
|
+
<CardCell label="Режим работы" className="max-w-none">
|
|
72
|
+
<Text>{workScheduleDescription}</Text>
|
|
73
|
+
</CardCell>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const getRemoteWorkplacePoint = ({
|
|
79
|
+
address = '',
|
|
80
|
+
workScheduleDescription,
|
|
81
|
+
}: RemoteWorkplace) => {
|
|
82
|
+
const header = 'Удаленное рабочее место';
|
|
83
|
+
const body = `${address} ${workScheduleDescription}`;
|
|
84
|
+
|
|
85
|
+
return { header, body };
|
|
86
|
+
};
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
2
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
3
|
-
import { type Branch } from './OfficesAtmsMapProps';
|
|
3
|
+
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
4
4
|
|
|
5
5
|
const EMPTY_VALUE = [];
|
|
6
6
|
|
|
7
7
|
export function useOffices(regionCode?: string) {
|
|
8
8
|
const { data = EMPTY_VALUE } = useAsyncData(
|
|
9
|
-
`/api/v1/
|
|
9
|
+
`/api/v1/branchesAndRemoteWorkplaces?regionCode=${regionCode}`,
|
|
10
10
|
fetchMap,
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
return data;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const fetchMap = async (
|
|
17
|
-
|
|
16
|
+
const fetchMap = async (
|
|
17
|
+
url: string,
|
|
18
|
+
): Promise<{ branches: Branch[]; remoteWorkplaces: RemoteWorkplace[] }[]> => {
|
|
19
|
+
const result = await fetchJSON<{ branches: Branch[]; remoteWorkplaces: RemoteWorkplace[] }[]>(
|
|
20
|
+
url,
|
|
21
|
+
{
|
|
22
|
+
method: 'GET',
|
|
23
|
+
},
|
|
24
|
+
);
|
|
18
25
|
|
|
19
26
|
return Array.isArray(result) ? result : EMPTY_VALUE;
|
|
20
27
|
};
|
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
1
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { ScrollLeftButton, ScrollRightButton } from '../../ui-kit/LinkButton/ArrowButton';
|
|
5
|
+
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
|
|
6
|
+
import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
|
|
7
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
5
8
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
9
|
import { style } from '../../utils/style';
|
|
7
10
|
import { type ProductGalleryContent, type ProductSlide } from './ProductGalleryContent';
|
|
8
11
|
|
|
9
12
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-10';
|
|
15
|
+
|
|
16
|
+
export const ProductGallery = UniBlock<ProductGalleryProps>(
|
|
12
17
|
({ className = '', padding, slides = [], ...rest }) => {
|
|
13
18
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
14
19
|
|
|
20
|
+
const [containerRef, scroll] = useSwipeListScroll<HTMLDivElement>({
|
|
21
|
+
itemCount: slides?.length || 0,
|
|
22
|
+
});
|
|
23
|
+
|
|
15
24
|
return (
|
|
16
25
|
<BlockWrapper
|
|
17
26
|
className={style('box-border overflow-hidden', className)}
|
|
18
|
-
defaultPadding="
|
|
27
|
+
defaultPadding="pt-6xl"
|
|
19
28
|
padding={padding}
|
|
20
29
|
{...rest}
|
|
21
30
|
>
|
|
@@ -36,8 +45,29 @@ export const ProductGallery = JSX<ProductGalleryProps>(
|
|
|
36
45
|
</div>
|
|
37
46
|
))}
|
|
38
47
|
</div>
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
|
|
49
|
+
<div className="relative pr-xs mt-m -mb-m flex gap-xs box-border">
|
|
50
|
+
<SwipeListContainer
|
|
51
|
+
containerRef={containerRef}
|
|
52
|
+
snapAlign="snap-start"
|
|
53
|
+
onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
|
|
54
|
+
itemClassName={'h-40 flex items-stretch w-screen'}
|
|
55
|
+
gap={8}
|
|
56
|
+
>
|
|
57
|
+
{slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex }))}
|
|
58
|
+
</SwipeListContainer>
|
|
59
|
+
{scroll.canScrollLeft ? (
|
|
60
|
+
<ScrollLeftButton
|
|
61
|
+
className={style('left-6', scrollButtonStyle)}
|
|
62
|
+
onClick={scroll.scrollLeft}
|
|
63
|
+
/>
|
|
64
|
+
) : null}
|
|
65
|
+
{scroll.canScrollRight ? (
|
|
66
|
+
<ScrollRightButton
|
|
67
|
+
className={style('right-6', scrollButtonStyle)}
|
|
68
|
+
onClick={scroll.scrollRight}
|
|
69
|
+
/>
|
|
70
|
+
) : null}
|
|
41
71
|
</div>
|
|
42
72
|
</BlockWrapper>
|
|
43
73
|
);
|
|
@@ -55,7 +85,7 @@ const renderNavButton =
|
|
|
55
85
|
const isActive = i === activeSlideIndex;
|
|
56
86
|
const btnClassName = isActive
|
|
57
87
|
? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
|
|
58
|
-
: 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:
|
|
88
|
+
: 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur';
|
|
59
89
|
const btnTitleClassName = isActive
|
|
60
90
|
? 'text-primary-text text-h6 py-xs'
|
|
61
91
|
: 'text-l pb-2xs text-secondary-text group-data-secondary:text-white';
|
|
@@ -70,7 +100,7 @@ const renderNavButton =
|
|
|
70
100
|
onClick={() => onClick(i)}
|
|
71
101
|
aria-label={nav?.title}
|
|
72
102
|
className={style(
|
|
73
|
-
'relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50',
|
|
103
|
+
'max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap',
|
|
74
104
|
btnClassName,
|
|
75
105
|
)}
|
|
76
106
|
>
|
|
@@ -3,6 +3,7 @@ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
4
4
|
import { type SitemapData } from '../../data/SitemapData';
|
|
5
5
|
import { type StickyMenuItem } from '../../data/StickyMobileData';
|
|
6
|
+
import { useLocation } from '../../hooks/useLocation';
|
|
6
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
8
|
import { useLocationDialog } from '../../ui-kit/LocationDialog/useLocationDialog';
|
|
8
9
|
import { StickyBottomMenuDialog } from './StickyBottomMenuDialog';
|
|
@@ -19,6 +20,7 @@ export interface BurgerMenuDialogProps {
|
|
|
19
20
|
export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
|
|
20
21
|
({ menuRef, menuItem, locationDialogProps, closeAll }) => {
|
|
21
22
|
const locationDialog = useLocationDialog(locationDialogProps || {});
|
|
23
|
+
const [{ name: location }] = useLocation();
|
|
22
24
|
const menuDimensions = menuRef?.current?.getBoundingClientRect();
|
|
23
25
|
|
|
24
26
|
const handleIframeLoad = useCallback(() => {
|
|
@@ -28,9 +30,15 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
|
|
|
28
30
|
ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
|
|
29
31
|
|
|
30
32
|
const [, basePath] = globalThis?.location?.pathname?.split('/') || [];
|
|
31
|
-
iframeWindow.postMessage(basePath, '*');
|
|
33
|
+
iframeWindow.postMessage({ type: 'currentTab', data: basePath }, '*');
|
|
34
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
32
35
|
}, []);
|
|
33
36
|
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const iframeWindow: Window = globalThis.frames['burger-menu-iframe'];
|
|
39
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
40
|
+
}, [location]);
|
|
41
|
+
|
|
34
42
|
useEffect(() => {
|
|
35
43
|
const onMessage = (e: MessageEvent<any>) => {
|
|
36
44
|
if (e.data.type === 'location') {
|