@blaze-cms/react-page-builder 0.146.0-node18-core-styles-tooltips.45 → 0.146.0-node18-tooltips.38
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/CHANGELOG.md +45 -105
- package/lib/components/Menu/Menu.js +1 -4
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +12 -27
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/index.js +0 -14
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/index.js +3 -0
- package/lib-es/BannerContext/helpers/index.js.map +1 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js +17 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -0
- package/lib-es/BannerContext/index.js +29 -0
- package/lib-es/BannerContext/index.js.map +1 -0
- package/lib-es/HOC/index.js +3 -0
- package/lib-es/HOC/index.js.map +1 -0
- package/lib-es/HOC/recreateOnNavigation.js +20 -0
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -0
- package/lib-es/HOC/withInfiniteScroll.js +62 -0
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -0
- package/lib-es/HOC/withTitle.js +36 -0
- package/lib-es/HOC/withTitle.js.map +1 -0
- package/lib-es/PBContext/index.js +6 -0
- package/lib-es/PBContext/index.js.map +1 -0
- package/lib-es/application/query/index.js +178 -0
- package/lib-es/application/query/index.js.map +1 -0
- package/lib-es/components/BackToTop/BackToTop.js +38 -0
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -0
- package/lib-es/components/BackToTop/index.js +3 -0
- package/lib-es/components/BackToTop/index.js.map +1 -0
- package/lib-es/components/Banner/AdSlotRender.js +73 -0
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -0
- package/lib-es/components/Banner/Banner.js +94 -0
- package/lib-es/components/Banner/Banner.js.map +1 -0
- package/lib-es/components/Banner/BannerRender.js +125 -0
- package/lib-es/components/Banner/BannerRender.js.map +1 -0
- package/lib-es/components/Banner/helpers.js +155 -0
- package/lib-es/components/Banner/helpers.js.map +1 -0
- package/lib-es/components/Banner/index.js +3 -0
- package/lib-es/components/Banner/index.js.map +1 -0
- package/lib-es/components/BlazeLink.js +68 -0
- package/lib-es/components/BlazeLink.js.map +1 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js +88 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/lib-es/components/Breadcrumb/index.js +3 -0
- package/lib-es/components/Breadcrumb/index.js.map +1 -0
- package/lib-es/components/Button.js +134 -0
- package/lib-es/components/Button.js.map +1 -0
- package/lib-es/components/Card/Card.js +290 -0
- package/lib-es/components/Card/Card.js.map +1 -0
- package/lib-es/components/Card/CardsContainer.js +186 -0
- package/lib-es/components/Card/CardsContainer.js.map +1 -0
- package/lib-es/components/Card/CardsFactory.js +99 -0
- package/lib-es/components/Card/CardsFactory.js.map +1 -0
- package/lib-es/components/Card/CardsRender.js +194 -0
- package/lib-es/components/Card/CardsRender.js.map +1 -0
- package/lib-es/components/Card/constants.js +4 -0
- package/lib-es/components/Card/constants.js.map +1 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js +21 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js +3 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -0
- package/lib-es/components/Card/helpers/index.js +10 -0
- package/lib-es/components/Card/helpers/index.js.map +1 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js +6 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -0
- package/lib-es/components/Card/index.js +3 -0
- package/lib-es/components/Card/index.js.map +1 -0
- package/lib-es/components/Carousel/Carousel.js +78 -0
- package/lib-es/components/Carousel/Carousel.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +59 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js +2 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/index.js +3 -0
- package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +74 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/index.js +3 -0
- package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib-es/components/Carousel/index.js +3 -0
- package/lib-es/components/Carousel/index.js.map +1 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js +22 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js +140 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js +43 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/index.js +3 -0
- package/lib-es/components/CarouselWrapper/index.js.map +1 -0
- package/lib-es/components/ClickWrapper.js +40 -0
- package/lib-es/components/ClickWrapper.js.map +1 -0
- package/lib-es/components/Code/Code.js +43 -0
- package/lib-es/components/Code/Code.js.map +1 -0
- package/lib-es/components/Code/ScriptTag.js +32 -0
- package/lib-es/components/Code/ScriptTag.js.map +1 -0
- package/lib-es/components/Code/helpers/index.js +2 -0
- package/lib-es/components/Code/helpers/index.js.map +1 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js +36 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -0
- package/lib-es/components/Code/index.js +3 -0
- package/lib-es/components/Code/index.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroup.js +46 -0
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js +138 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +83 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -0
- package/lib-es/components/ContentGroup/constants.js +18 -0
- package/lib-es/components/ContentGroup/constants.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js +9 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js +15 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js +33 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/index.js +4 -0
- package/lib-es/components/ContentGroup/helpers/index.js.map +1 -0
- package/lib-es/components/ContentGroup/index.js +3 -0
- package/lib-es/components/ContentGroup/index.js.map +1 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js +23 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -0
- package/lib-es/components/ContentGroupSection/index.js +3 -0
- package/lib-es/components/ContentGroupSection/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js +93 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js +92 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +28 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +35 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +34 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +29 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +9 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js +61 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js +45 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js +19 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js +15 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js +6 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js +9 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js +12 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js +20 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js +14 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js +17 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/index.js +11 -0
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js +7 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js +14 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/index.js +3 -0
- package/lib-es/components/DataSummary/index.js.map +1 -0
- package/lib-es/components/DateTime/DateTime.js +36 -0
- package/lib-es/components/DateTime/DateTime.js.map +1 -0
- package/lib-es/components/DateTime/index.js +3 -0
- package/lib-es/components/DateTime/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js +71 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -0
- package/lib-es/components/EmailConfirm/index.js +3 -0
- package/lib-es/components/EmailConfirm/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/mutation.js +13 -0
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js +30 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js.map +1 -0
- package/lib-es/components/ErrorMessage/index.js +3 -0
- package/lib-es/components/ErrorMessage/index.js.map +1 -0
- package/lib-es/components/Iframe/Iframe.js +42 -0
- package/lib-es/components/Iframe/Iframe.js.map +1 -0
- package/lib-es/components/Iframe/constants.js +7 -0
- package/lib-es/components/Iframe/constants.js.map +1 -0
- package/lib-es/components/Iframe/index.js +3 -0
- package/lib-es/components/Iframe/index.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +161 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +24 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/index.js +3 -0
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -0
- package/lib-es/components/Image/Image.js +173 -0
- package/lib-es/components/Image/Image.js.map +1 -0
- package/lib-es/components/Image/ImageDetails.js +27 -0
- package/lib-es/components/Image/ImageDetails.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +86 -0
- package/lib-es/components/Image/ImageFactory.js.map +1 -0
- package/lib-es/components/Image/ImageRender.js +86 -0
- package/lib-es/components/Image/ImageRender.js.map +1 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js +63 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -0
- package/lib-es/components/Image/Lightbox/index.js +3 -0
- package/lib-es/components/Image/Lightbox/index.js.map +1 -0
- package/lib-es/components/Image/index.js +3 -0
- package/lib-es/components/Image/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +107 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/index.js +3 -0
- package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +57 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js +3 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js +60 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/index.js +3 -0
- package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -0
- package/lib-es/components/ItemList/constants.js +6 -0
- package/lib-es/components/ItemList/constants.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js +6 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js +9 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js +11 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -0
- package/lib-es/components/ItemList/helpers/index.js +6 -0
- package/lib-es/components/ItemList/helpers/index.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js +8 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js +17 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -0
- package/lib-es/components/ItemList/hooks/index.js +2 -0
- package/lib-es/components/ItemList/hooks/index.js.map +1 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js +23 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +37 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +35 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +5 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/Layout/Layout.js +85 -0
- package/lib-es/components/Layout/Layout.js.map +1 -0
- package/lib-es/components/Layout/LayoutFactory.js +14 -0
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js +42 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -0
- package/lib-es/components/Layout/constants.js +6 -0
- package/lib-es/components/Layout/constants.js.map +1 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js +19 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js +10 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -0
- package/lib-es/components/Layout/helpers/index.js +4 -0
- package/lib-es/components/Layout/helpers/index.js.map +1 -0
- package/lib-es/components/Layout/index.js +3 -0
- package/lib-es/components/Layout/index.js.map +1 -0
- package/lib-es/components/LazyImage/LazyImage.js +41 -0
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -0
- package/lib-es/components/LazyImage/index.js +3 -0
- package/lib-es/components/LazyImage/index.js.map +1 -0
- package/lib-es/components/List/ListBuilder.js +206 -0
- package/lib-es/components/List/ListBuilder.js.map +1 -0
- package/lib-es/components/List/ListFactory.js +213 -0
- package/lib-es/components/List/ListFactory.js.map +1 -0
- package/lib-es/components/List/ListRender.js +134 -0
- package/lib-es/components/List/ListRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRender.js +106 -0
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js +121 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js +59 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -0
- package/lib-es/components/List/components/Cards/index.js +3 -0
- package/lib-es/components/List/components/Cards/index.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRender.js +92 -0
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js +95 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Full/index.js +3 -0
- package/lib-es/components/List/components/Full/index.js.map +1 -0
- package/lib-es/components/List/components/Header/ListHeader.js +64 -0
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -0
- package/lib-es/components/List/components/Header/index.js +3 -0
- package/lib-es/components/List/components/Header/index.js.map +1 -0
- package/lib-es/components/List/components/Pagination/Classic.js +55 -0
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js +63 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js +37 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -0
- package/lib-es/components/List/components/Pagination/index.js +3 -0
- package/lib-es/components/List/components/Pagination/index.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js +42 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js +14 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -0
- package/lib-es/components/List/components/helpers/index.js +4 -0
- package/lib-es/components/List/components/helpers/index.js.map +1 -0
- package/lib-es/components/List/components/index.js +5 -0
- package/lib-es/components/List/components/index.js.map +1 -0
- package/lib-es/components/List/constants.js +10 -0
- package/lib-es/components/List/constants.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js +25 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-url.js +26 -0
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-items.js +39 -0
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-url.js +14 -0
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-query-booster.js +41 -0
- package/lib-es/components/List/helpers/build-query-booster.js.map +1 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js +7 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js +7 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-component.js +9 -0
- package/lib-es/components/List/helpers/get-list-component.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-query.js +27 -0
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js +12 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-sort-props.js +32 -0
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js +16 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -0
- package/lib-es/components/List/helpers/index.js +13 -0
- package/lib-es/components/List/helpers/index.js.map +1 -0
- package/lib-es/components/List/helpers/sort-aggs.js +22 -0
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -0
- package/lib-es/components/List/helpers/strip-query-key.js +6 -0
- package/lib-es/components/List/helpers/strip-query-key.js.map +1 -0
- package/lib-es/components/List/index.js +3 -0
- package/lib-es/components/List/index.js.map +1 -0
- package/lib-es/components/Loading/Loading.js +27 -0
- package/lib-es/components/Loading/Loading.js.map +1 -0
- package/lib-es/components/Loading/constants.js +5 -0
- package/lib-es/components/Loading/constants.js.map +1 -0
- package/lib-es/components/Loading/helpers.js +8 -0
- package/lib-es/components/Loading/helpers.js.map +1 -0
- package/lib-es/components/Loading/index.js +3 -0
- package/lib-es/components/Loading/index.js.map +1 -0
- package/lib-es/components/Menu/Menu.js +117 -0
- package/lib-es/components/Menu/Menu.js.map +1 -0
- package/lib-es/components/Menu/MenuContext.js +6 -0
- package/lib-es/components/Menu/MenuContext.js.map +1 -0
- package/lib-es/components/Menu/index.js +3 -0
- package/lib-es/components/Menu/index.js.map +1 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js +178 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItem.js +41 -0
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItemRender.js +100 -0
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/index.js +3 -0
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js +20 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -0
- package/lib-es/components/MenuItem/index.js +3 -0
- package/lib-es/components/MenuItem/index.js.map +1 -0
- package/lib-es/components/Modal/Modal.js +32 -0
- package/lib-es/components/Modal/Modal.js.map +1 -0
- package/lib-es/components/Modal/index.js +3 -0
- package/lib-es/components/Modal/index.js.map +1 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js +13 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -0
- package/lib-es/components/ModalAdapter/index.js +3 -0
- package/lib-es/components/ModalAdapter/index.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContent.js +152 -0
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentItems.js +31 -0
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentResults.js +28 -0
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +17 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -0
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchContent/index.js +3 -0
- package/lib-es/components/SearchContent/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js +24 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js +110 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +209 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +227 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js +102 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Range.js +130 -0
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Select.js +78 -0
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js +52 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -0
- package/lib-es/components/SearchFilter/components/index.js +6 -0
- package/lib-es/components/SearchFilter/components/index.js.map +1 -0
- package/lib-es/components/SearchFilter/constants.js +32 -0
- package/lib-es/components/SearchFilter/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js +15 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js +9 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js +37 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js +18 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js +3 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js +10 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js +4 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js +6 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js +27 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js +21 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js +33 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js +14 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/index.js +19 -0
- package/lib-es/components/SearchFilter/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js +21 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -0
- package/lib-es/components/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js +26 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js +79 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/constants.js +6 -0
- package/lib-es/components/SearchFilterSort/constants.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js +39 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js +3 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js +19 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/index.js +3 -0
- package/lib-es/components/SearchFilterSort/index.js.map +1 -0
- package/lib-es/components/SocialFollow/SFItem.js +33 -0
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollow.js +38 -0
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js +33 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -0
- package/lib-es/components/SocialFollow/index.js +3 -0
- package/lib-es/components/SocialFollow/index.js.map +1 -0
- package/lib-es/components/SocialFollow/sf.config.js +50 -0
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -0
- package/lib-es/components/SubMenu/SubMenu.js +23 -0
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -0
- package/lib-es/components/SubMenu/index.js +3 -0
- package/lib-es/components/SubMenu/index.js.map +1 -0
- package/lib-es/components/TextBlock/TextBlockRender.js +20 -0
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -0
- package/lib-es/components/TextBlock/index.js +53 -0
- package/lib-es/components/TextBlock/index.js.map +1 -0
- package/lib-es/components/Video/Video.js +98 -0
- package/lib-es/components/Video/Video.js.map +1 -0
- package/lib-es/components/Video/VideoContext.js +6 -0
- package/lib-es/components/Video/VideoContext.js.map +1 -0
- package/lib-es/components/Video/VideoModal.js +30 -0
- package/lib-es/components/Video/VideoModal.js.map +1 -0
- package/lib-es/components/Video/VideoRender.js +44 -0
- package/lib-es/components/Video/VideoRender.js.map +1 -0
- package/lib-es/components/Video/constants.js +7 -0
- package/lib-es/components/Video/constants.js.map +1 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js +25 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js.map +1 -0
- package/lib-es/components/Video/index.js +3 -0
- package/lib-es/components/Video/index.js.map +1 -0
- package/lib-es/components/Video/providers/Default.js +36 -0
- package/lib-es/components/Video/providers/Default.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js +65 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js +87 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js +68 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +14 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js +3 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js +40 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js +213 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js +26 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/get-provider.js +13 -0
- package/lib-es/components/Video/providers/get-provider.js.map +1 -0
- package/lib-es/components/Video/providers/index.js +3 -0
- package/lib-es/components/Video/providers/index.js.map +1 -0
- package/lib-es/components/Wrapper.js +36 -0
- package/lib-es/components/Wrapper.js.map +1 -0
- package/lib-es/components/index.js +36 -0
- package/lib-es/components/index.js.map +1 -0
- package/lib-es/constants/componentsDefaultValues.js +20 -0
- package/lib-es/constants/componentsDefaultValues.js.map +1 -0
- package/lib-es/constants/index.js +143 -0
- package/lib-es/constants/index.js.map +1 -0
- package/lib-es/helpers/append-images.js +28 -0
- package/lib-es/helpers/append-images.js.map +1 -0
- package/lib-es/helpers/build-az-filter.js +16 -0
- package/lib-es/helpers/build-az-filter.js.map +1 -0
- package/lib-es/helpers/build-checkbox-filters.js +28 -0
- package/lib-es/helpers/build-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/build-filters-query.js +86 -0
- package/lib-es/helpers/build-filters-query.js.map +1 -0
- package/lib-es/helpers/build-image-properties.js +29 -0
- package/lib-es/helpers/build-image-properties.js.map +1 -0
- package/lib-es/helpers/build-inherited-filters.js +67 -0
- package/lib-es/helpers/build-inherited-filters.js.map +1 -0
- package/lib-es/helpers/build-link-extra-props.js +17 -0
- package/lib-es/helpers/build-link-extra-props.js.map +1 -0
- package/lib-es/helpers/build-props-query.js +98 -0
- package/lib-es/helpers/build-props-query.js.map +1 -0
- package/lib-es/helpers/build-query-fields.js +13 -0
- package/lib-es/helpers/build-query-fields.js.map +1 -0
- package/lib-es/helpers/build-query-key.js +7 -0
- package/lib-es/helpers/build-query-key.js.map +1 -0
- package/lib-es/helpers/build-raw-query-base.js +113 -0
- package/lib-es/helpers/build-raw-query-base.js.map +1 -0
- package/lib-es/helpers/build-raw-query-stringified.js +44 -0
- package/lib-es/helpers/build-raw-query-stringified.js.map +1 -0
- package/lib-es/helpers/build-raw-query.js +132 -0
- package/lib-es/helpers/build-raw-query.js.map +1 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js +64 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -0
- package/lib-es/helpers/build-search-values-text.js +34 -0
- package/lib-es/helpers/build-search-values-text.js.map +1 -0
- package/lib-es/helpers/build-set-filters.js +32 -0
- package/lib-es/helpers/build-set-filters.js.map +1 -0
- package/lib-es/helpers/build-sort-values.js +34 -0
- package/lib-es/helpers/build-sort-values.js.map +1 -0
- package/lib-es/helpers/check-for-error.js +11 -0
- package/lib-es/helpers/check-for-error.js.map +1 -0
- package/lib-es/helpers/check-props-to-use.js +9 -0
- package/lib-es/helpers/check-props-to-use.js.map +1 -0
- package/lib-es/helpers/entities/constants.js +11 -0
- package/lib-es/helpers/entities/constants.js.map +1 -0
- package/lib-es/helpers/filter-query-setup.js +61 -0
- package/lib-es/helpers/filter-query-setup.js.map +1 -0
- package/lib-es/helpers/filters-setup.js +41 -0
- package/lib-es/helpers/filters-setup.js.map +1 -0
- package/lib-es/helpers/get-banner-data.js +17 -0
- package/lib-es/helpers/get-banner-data.js.map +1 -0
- package/lib-es/helpers/get-checkbox-filters.js +7 -0
- package/lib-es/helpers/get-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/get-click-wrapper-options.js +43 -0
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -0
- package/lib-es/helpers/get-component-id.js +7 -0
- package/lib-es/helpers/get-component-id.js.map +1 -0
- package/lib-es/helpers/get-current-offset.js +7 -0
- package/lib-es/helpers/get-current-offset.js.map +1 -0
- package/lib-es/helpers/get-dictionary-match.js +11 -0
- package/lib-es/helpers/get-dictionary-match.js.map +1 -0
- package/lib-es/helpers/get-display-count-data.js +13 -0
- package/lib-es/helpers/get-display-count-data.js.map +1 -0
- package/lib-es/helpers/get-elasticsearch-operator.js +6 -0
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -0
- package/lib-es/helpers/get-entities-with-banner.js +33 -0
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -0
- package/lib-es/helpers/get-entity-data.js +29 -0
- package/lib-es/helpers/get-entity-data.js.map +1 -0
- package/lib-es/helpers/get-entity-render-props.js +21 -0
- package/lib-es/helpers/get-entity-render-props.js.map +1 -0
- package/lib-es/helpers/get-extra-az-bits.js +54 -0
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -0
- package/lib-es/helpers/get-filter-props.js +60 -0
- package/lib-es/helpers/get-filter-props.js.map +1 -0
- package/lib-es/helpers/get-filter-relation-keys.js +8 -0
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -0
- package/lib-es/helpers/get-generic-props.js +16 -0
- package/lib-es/helpers/get-generic-props.js.map +1 -0
- package/lib-es/helpers/get-generic-render-variables.js +64 -0
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -0
- package/lib-es/helpers/get-image-ids.js +26 -0
- package/lib-es/helpers/get-image-ids.js.map +1 -0
- package/lib-es/helpers/get-inherited-filters.js +12 -0
- package/lib-es/helpers/get-inherited-filters.js.map +1 -0
- package/lib-es/helpers/get-items-to-display-ids.js +12 -0
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -0
- package/lib-es/helpers/get-modifiers.js +16 -0
- package/lib-es/helpers/get-modifiers.js.map +1 -0
- package/lib-es/helpers/get-not-equal-query.js +9 -0
- package/lib-es/helpers/get-not-equal-query.js.map +1 -0
- package/lib-es/helpers/get-pagination-index.js +8 -0
- package/lib-es/helpers/get-pagination-index.js.map +1 -0
- package/lib-es/helpers/get-parsed-prop-values.js +32 -0
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -0
- package/lib-es/helpers/get-parsed-summary-value.js +13 -0
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -0
- package/lib-es/helpers/get-prop-values.js +14 -0
- package/lib-es/helpers/get-prop-values.js.map +1 -0
- package/lib-es/helpers/get-query-filters.js +22 -0
- package/lib-es/helpers/get-query-filters.js.map +1 -0
- package/lib-es/helpers/get-query-props.js +37 -0
- package/lib-es/helpers/get-query-props.js.map +1 -0
- package/lib-es/helpers/get-required-schemas.js +20 -0
- package/lib-es/helpers/get-required-schemas.js.map +1 -0
- package/lib-es/helpers/get-sanitized-prop-values.js +3 -0
- package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -0
- package/lib-es/helpers/get-search-filter-type.js +12 -0
- package/lib-es/helpers/get-search-filter-type.js.map +1 -0
- package/lib-es/helpers/get-sort-by-field-name.js +20 -0
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -0
- package/lib-es/helpers/get-unpublished-entity-name.js +5 -0
- package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -0
- package/lib-es/helpers/get-updated-filter-by.js +11 -0
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/helpers/get-updated-items-to-display.js +32 -0
- package/lib-es/helpers/get-updated-items-to-display.js.map +1 -0
- package/lib-es/helpers/get-updated-sort-properties.js +15 -0
- package/lib-es/helpers/get-updated-sort-properties.js.map +1 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js +25 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -0
- package/lib-es/helpers/group-entities.js +10 -0
- package/lib-es/helpers/group-entities.js.map +1 -0
- package/lib-es/helpers/has-children.js +10 -0
- package/lib-es/helpers/has-children.js.map +1 -0
- package/lib-es/helpers/index.js +65 -0
- package/lib-es/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-banner.js +15 -0
- package/lib-es/helpers/inject-banner.js.map +1 -0
- package/lib-es/helpers/inject-banners-to-entities.js +19 -0
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +15 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +19 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +26 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js +11 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -0
- package/lib-es/helpers/is-browser.js +3 -0
- package/lib-es/helpers/is-browser.js.map +1 -0
- package/lib-es/helpers/is-filter-entitys-id.js +8 -0
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -0
- package/lib-es/helpers/is-object.js +3 -0
- package/lib-es/helpers/is-object.js.map +1 -0
- package/lib-es/helpers/is-using-relation-image.js +3 -0
- package/lib-es/helpers/is-using-relation-image.js.map +1 -0
- package/lib-es/helpers/parse-TextBlock.js +30 -0
- package/lib-es/helpers/parse-TextBlock.js.map +1 -0
- package/lib-es/helpers/parse-interval.js +4 -0
- package/lib-es/helpers/parse-interval.js.map +1 -0
- package/lib-es/helpers/parse-props-to-display.js +36 -0
- package/lib-es/helpers/parse-props-to-display.js.map +1 -0
- package/lib-es/helpers/process-data-summary-value.js +36 -0
- package/lib-es/helpers/process-data-summary-value.js.map +1 -0
- package/lib-es/helpers/remove-extra-items.js +13 -0
- package/lib-es/helpers/remove-extra-items.js.map +1 -0
- package/lib-es/helpers/remove-unwanted-characters.js +21 -0
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -0
- package/lib-es/helpers/render-children.js +21 -0
- package/lib-es/helpers/render-children.js.map +1 -0
- package/lib-es/helpers/should-render-waypoint.js +3 -0
- package/lib-es/helpers/should-render-waypoint.js.map +1 -0
- package/lib-es/helpers/should-return.js +3 -0
- package/lib-es/helpers/should-return.js.map +1 -0
- package/lib-es/helpers/should-show-property.js +6 -0
- package/lib-es/helpers/should-show-property.js.map +1 -0
- package/lib-es/helpers/should-skip-single-query.js +4 -0
- package/lib-es/helpers/should-skip-single-query.js.map +1 -0
- package/lib-es/helpers/sort-response-data.js +10 -0
- package/lib-es/helpers/sort-response-data.js.map +1 -0
- package/lib-es/helpers/split-children.js +69 -0
- package/lib-es/helpers/split-children.js.map +1 -0
- package/lib-es/helpers/update-childrens-parent.js +17 -0
- package/lib-es/helpers/update-childrens-parent.js.map +1 -0
- package/lib-es/hooks/helpers/RenderComponent.js +80 -0
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -0
- package/lib-es/hooks/helpers/StoreImages.js +56 -0
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js +38 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -0
- package/lib-es/hooks/helpers/buildPBComponents.js +88 -0
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js +17 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -0
- package/lib-es/hooks/helpers/check-collisions.js +30 -0
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -0
- package/lib-es/hooks/helpers/constants.js +6 -0
- package/lib-es/hooks/helpers/constants.js.map +1 -0
- package/lib-es/hooks/helpers/get-banner-index.js +3 -0
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js +27 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js +40 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -0
- package/lib-es/hooks/helpers/getComponent.js +5 -0
- package/lib-es/hooks/helpers/getComponent.js.map +1 -0
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/helpers/index.js +3 -0
- package/lib-es/hooks/helpers/index.js.map +1 -0
- package/lib-es/hooks/helpers/inject-element-components.js +59 -0
- package/lib-es/hooks/helpers/inject-element-components.js.map +1 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js +95 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -0
- package/lib-es/hooks/helpers/insert-banners.js +83 -0
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -0
- package/lib-es/hooks/helpers/update-targetings.js +15 -0
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -0
- package/lib-es/hooks/index.js +12 -0
- package/lib-es/hooks/index.js.map +1 -0
- package/lib-es/hooks/use-app-sync-event-hook.js +37 -0
- package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -0
- package/lib-es/hooks/use-banner-insertion.js +22 -0
- package/lib-es/hooks/use-banner-insertion.js.map +1 -0
- package/lib-es/hooks/use-check-mobile-screen.js +29 -0
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -0
- package/lib-es/hooks/use-filter-aggregation-values.js +31 -0
- package/lib-es/hooks/use-filter-aggregation-values.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schema.js +39 -0
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js +13 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +37 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -0
- package/lib-es/hooks/use-get-images.js +37 -0
- package/lib-es/hooks/use-get-images.js.map +1 -0
- package/lib-es/hooks/use-get-single-entity-schema.js +21 -0
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-page-builder.js +17 -0
- package/lib-es/hooks/use-page-builder.js.map +1 -0
- package/lib-es/hooks/use-portal.js +14 -0
- package/lib-es/hooks/use-portal.js.map +1 -0
- package/lib-es/index.js +17 -0
- package/lib-es/index.js.map +1 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js +67 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js.map +1 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js +34 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js.map +1 -0
- package/lib-es/system-components/EditorMode/constants.js +3 -0
- package/lib-es/system-components/EditorMode/constants.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +93 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +19 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js.map +1 -0
- package/lib-es/system-components/index.js +3 -0
- package/lib-es/system-components/index.js.map +1 -0
- package/lib-es/translations.js +37 -0
- package/lib-es/translations.js.map +1 -0
- package/lib-es/utils/component-map.js +30 -0
- package/lib-es/utils/component-map.js.map +1 -0
- package/lib-es/utils/get-class-modifiers.js +81 -0
- package/lib-es/utils/get-class-modifiers.js.map +1 -0
- package/lib-es/utils/get-image-data.js +16 -0
- package/lib-es/utils/get-image-data.js.map +1 -0
- package/lib-es/utils/get-props-to-display-modifiers.js +5 -0
- package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -0
- package/lib-es/utils/index.js +8 -0
- package/lib-es/utils/index.js.map +1 -0
- package/lib-es/utils/is-object-empty.js +4 -0
- package/lib-es/utils/is-object-empty.js.map +1 -0
- package/lib-es/utils/variant-handler.js +27 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/FloatingSideButton/index.js +10 -0
- package/lib-es/variants/FloatingSideButton/index.js.map +1 -0
- package/lib-es/variants/HeroImage/index.js +10 -0
- package/lib-es/variants/HeroImage/index.js.map +1 -0
- package/lib-es/variants/Infographic/Infographic.js +16 -0
- package/lib-es/variants/Infographic/Infographic.js.map +1 -0
- package/lib-es/variants/Infographic/index.js +10 -0
- package/lib-es/variants/Infographic/index.js.map +1 -0
- package/lib-es/variants/Infographic/useInfographic.js +23 -0
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js +80 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib-es/variants/LiveBlogList/index.js +12 -0
- package/lib-es/variants/LiveBlogList/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js +40 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js +59 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -0
- package/lib-es/variants/LongformGallery/constants.js +18 -0
- package/lib-es/variants/LongformGallery/constants.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/index.js +5 -0
- package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js +26 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js +25 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js +3 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -0
- package/lib-es/variants/LongformGallery/index.js +12 -0
- package/lib-es/variants/LongformGallery/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js +47 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -0
- package/lib-es/variants/LongformRow/index.js +10 -0
- package/lib-es/variants/LongformRow/index.js.map +1 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js +11 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js +23 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -0
- package/lib-es/variants/SlideSummary/index.js +10 -0
- package/lib-es/variants/SlideSummary/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js +49 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +30 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js +3 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +62 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/index.js +10 -0
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js +47 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/index.js +21 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +11 -10
- package/src/components/Menu/Menu.js +1 -3
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +12 -40
- package/src/components/MenuItem/helpers/index.js +1 -3
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
- package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
- package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/src/components/MenuItem/helpers/has-active-child.js +0 -10
- package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
- package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
- package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
- package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link } from '@blaze-cms/nextjs-components';
|
|
3
|
+
import isObject from './is-object';
|
|
4
|
+
import removeUnwantedCharacters from './remove-unwanted-characters';
|
|
5
|
+
const getParsedPropValues = ({
|
|
6
|
+
propertiesToDisplay,
|
|
7
|
+
props,
|
|
8
|
+
enableLink,
|
|
9
|
+
shouldStrip
|
|
10
|
+
}) => propertiesToDisplay.map(property => {
|
|
11
|
+
const [filteredProperty, subtype] = property.split('.');
|
|
12
|
+
const value = props[filteredProperty];
|
|
13
|
+
if (Array.isArray(value)) {
|
|
14
|
+
return value.map((prop, index) => {
|
|
15
|
+
const propValue = subtype ? prop[subtype] : prop;
|
|
16
|
+
const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;
|
|
17
|
+
const isLastValue = index === value.length - 1;
|
|
18
|
+
const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');
|
|
19
|
+
const linkKey = [filteredProperty, prop[subtype], index].join('-');
|
|
20
|
+
return enableLink && prop.url ? /*#__PURE__*/React.createElement(Link, {
|
|
21
|
+
key: linkKey,
|
|
22
|
+
href: prop.url
|
|
23
|
+
}, parsedValue) : parsedValue;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
if (isObject(value)) {
|
|
27
|
+
return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];
|
|
28
|
+
}
|
|
29
|
+
return shouldStrip ? removeUnwantedCharacters(value) : value;
|
|
30
|
+
}).filter(Boolean);
|
|
31
|
+
export default getParsedPropValues;
|
|
32
|
+
//# sourceMappingURL=get-parsed-prop-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","key","href","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,8BAA8B;AACnD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,wBAAwB,MAAM,8BAA8B;AAEnE,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,mBAAmB;EAAEC,KAAK;EAAEC,UAAU;EAAEC;AAAY,CAAC,KAClFH,mBAAmB,CAChBI,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAAC,CAACQ,IAAI,EAAEC,KAAK,KAAK;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAI;MAChD,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAS,CAAC,GAAGA,SAAS;MAEpF,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAM,GAAG,CAAC;MAC9C,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAc,GAAGA,cAAc,CAACI,MAAM,CAAC,IAAI,CAAC;MAC9E,MAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEM,IAAI,CAACL,OAAO,CAAC,EAAEM,KAAK,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;MAElE,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAG,gBAC3B3B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC4B,GAAG,EAAEJ,OAAQ;QAACK,IAAI,EAAEb,IAAI,CAACU;MAAI,GAChCJ,WACG,CAAC,GAEPA,WACD;IACH,CAAC,CAAC;EACJ;EAEA,IAAIrB,QAAQ,CAACY,KAAK,CAAC,EAAE;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAO,CAAC,CAAC,GAAGE,KAAK,CAACF,OAAO,CAAC;EAChF;EAEA,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAAC,GAAGA,KAAK;AAC9D,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAe5B,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const TRUE = 'true';
|
|
2
|
+
const FALSE = 'false';
|
|
3
|
+
const parsedSummaryValues = {
|
|
4
|
+
TRUE: 'Yes',
|
|
5
|
+
FALSE: 'No'
|
|
6
|
+
};
|
|
7
|
+
function getParsedSummaryValue(value) {
|
|
8
|
+
if (value === TRUE) return parsedSummaryValues.TRUE;
|
|
9
|
+
if (value === FALSE) return parsedSummaryValues.FALSE;
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
export default getParsedSummaryValue;
|
|
13
|
+
//# sourceMappingURL=get-parsed-summary-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAM;AACnB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAEA,eAAeD,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import isObject from './is-object';
|
|
2
|
+
const getPropValues = (propertiesToDisplay, props) => propertiesToDisplay.map(property => {
|
|
3
|
+
const [filteredProperty, subtype] = property.split('.');
|
|
4
|
+
const value = props[filteredProperty];
|
|
5
|
+
if (Array.isArray(value)) {
|
|
6
|
+
return value.map(prop => subtype ? prop[subtype] : prop);
|
|
7
|
+
}
|
|
8
|
+
if (isObject(value)) {
|
|
9
|
+
return value[subtype];
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
}).filter(Boolean);
|
|
13
|
+
export default getPropValues;
|
|
14
|
+
//# sourceMappingURL=get-prop-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAElC,MAAMC,aAAa,GAAGA,CAACC,mBAAmB,EAAEC,KAAK,KAC/CD,mBAAmB,CAChBE,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAACQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAK,CAAC;EAC5D;EAEA,IAAIZ,QAAQ,CAACS,KAAK,CAAC,EAAE;IACnB,OAAOA,KAAK,CAACF,OAAO,CAAC;EACvB;EAEA,OAAOE,KAAK;AACd,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAeb,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import getSearchFilterType from './get-search-filter-type';
|
|
2
|
+
import buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';
|
|
3
|
+
import { RANGE, CHECKBOX, SELECT } from '../constants';
|
|
4
|
+
const getQueryFilters = (searchFilter, query, listName) => {
|
|
5
|
+
if (!searchFilter.settings || !searchFilter.settings.filters) return {
|
|
6
|
+
valuesAnd: [],
|
|
7
|
+
valuesOr: []
|
|
8
|
+
};
|
|
9
|
+
const rangeFilters = getSearchFilterType(searchFilter, RANGE);
|
|
10
|
+
const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);
|
|
11
|
+
const selectFilters = getSearchFilterType(searchFilter, SELECT);
|
|
12
|
+
const {
|
|
13
|
+
values: valuesAnd,
|
|
14
|
+
valuesOr
|
|
15
|
+
} = buildSearchValuesCheckboxSelect(query, rangeFilters, checkboxFilters, selectFilters, listName);
|
|
16
|
+
return {
|
|
17
|
+
valuesAnd,
|
|
18
|
+
valuesOr
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default getQueryFilters;
|
|
22
|
+
//# sourceMappingURL=get-query-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","listName","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query, listName) => {\n if (!searchFilter.settings || !searchFilter.settings.filters)\n return { valuesAnd: [], valuesOr: [] };\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters,\n listName\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAGA,CAACC,YAAY,EAAEC,KAAK,EAAEC,QAAQ,KAAK;EACzD,IAAI,CAACF,YAAY,CAACG,QAAQ,IAAI,CAACH,YAAY,CAACG,QAAQ,CAACC,OAAO,EAC1D,OAAO;IAAEC,SAAS,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAG,CAAC;EAExC,MAAMC,YAAY,GAAGb,mBAAmB,CAACM,YAAY,EAAEJ,KAAK,CAAC;EAC7D,MAAMY,eAAe,GAAGd,mBAAmB,CAACM,YAAY,EAAEH,QAAQ,CAAC;EACnE,MAAMY,aAAa,GAAGf,mBAAmB,CAACM,YAAY,EAAEF,MAAM,CAAC;EAE/D,MAAM;IAAEY,MAAM,EAAEL,SAAS;IAAEC;EAAS,CAAC,GAAGX,+BAA+B,CACrEM,KAAK,EACLM,YAAY,EACZC,eAAe,EACfC,aAAa,EACbP,QACF,CAAC;EACD,OAAO;IAAEG,SAAS;IAAEC;EAAS,CAAC;AAChC,CAAC;AAED,eAAeP,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import isFilterEntitysId from './is-filter-entitys-id';
|
|
2
|
+
import getFilterProps from './get-filter-props';
|
|
3
|
+
import { ID } from '../constants';
|
|
4
|
+
const getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {
|
|
5
|
+
if (!currentSchema || !inheritedFilters.length) return ID;
|
|
6
|
+
const {
|
|
7
|
+
identifier: currentEntityId,
|
|
8
|
+
properties
|
|
9
|
+
} = currentSchema;
|
|
10
|
+
const {
|
|
11
|
+
identifier: filterEntityId
|
|
12
|
+
} = filterEntitySchema;
|
|
13
|
+
return inheritedFilters.reduce((acc, filter) => {
|
|
14
|
+
const {
|
|
15
|
+
filterName,
|
|
16
|
+
relationName,
|
|
17
|
+
relationProp,
|
|
18
|
+
relationEntityName,
|
|
19
|
+
isEntityItself,
|
|
20
|
+
relationForeignKeys,
|
|
21
|
+
shouldIgnoreFilter
|
|
22
|
+
} = getFilterProps(filter, currentSchema, filterEntitySchema);
|
|
23
|
+
if (shouldIgnoreFilter) return acc;
|
|
24
|
+
if (relationForeignKeys && relationForeignKeys.length) {
|
|
25
|
+
return `${acc} ${relationForeignKeys.join(' ')}`;
|
|
26
|
+
}
|
|
27
|
+
if (filterName === ID) {
|
|
28
|
+
const queryValue = Object.keys(properties).find(propKey => properties[propKey] && properties[propKey].relation && properties[propKey].relation.entityIdentifier === filterEntityId);
|
|
29
|
+
if (queryValue) return `${acc} ${queryValue} `;
|
|
30
|
+
}
|
|
31
|
+
const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;
|
|
32
|
+
const queryPropFinalValue = isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;
|
|
33
|
+
return `${acc} ${queryPropFinalValue} `;
|
|
34
|
+
}, ID);
|
|
35
|
+
};
|
|
36
|
+
export default getQueryProps;
|
|
37
|
+
//# sourceMappingURL=get-query-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","properties","filterEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryValue","Object","keys","find","propKey","relation","entityIdentifier","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId, properties } = currentSchema;\n const { identifier: filterEntityId } = filterEntitySchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n if (filterName === ID) {\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === filterEntityId\n );\n if (queryValue) return `${acc} ${queryValue} `;\n }\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,aAAa,GAAGA,CAACC,gBAAgB,EAAEC,aAAa,EAAEC,kBAAkB,GAAG,CAAC,CAAC,KAAK;EAClF,IAAI,CAACD,aAAa,IAAI,CAACD,gBAAgB,CAACG,MAAM,EAAE,OAAOL,EAAE;EAEzD,MAAM;IAAEM,UAAU,EAAEC,eAAe;IAAEC;EAAW,CAAC,GAAGL,aAAa;EACjE,MAAM;IAAEG,UAAU,EAAEG;EAAe,CAAC,GAAGL,kBAAkB;EAEzD,OAAOF,gBAAgB,CAACQ,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;IAC9C,MAAM;MACJC,UAAU;MACVC,YAAY;MACZC,YAAY;MACZC,kBAAkB;MAClBC,cAAc;MACdC,mBAAmB;MACnBC;IACF,CAAC,GAAGpB,cAAc,CAACa,MAAM,EAAET,aAAa,EAAEC,kBAAkB,CAAC;IAC7D,IAAIe,kBAAkB,EAAE,OAAOR,GAAG;IAClC,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACb,MAAM,EAAE;MACrD,OAAO,GAAGM,GAAG,IAAIO,mBAAmB,CAACE,IAAI,CAAC,GAAG,CAAC,EAAE;IAClD;IACA,IAAIP,UAAU,KAAKb,EAAE,EAAE;MACrB,MAAMqB,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACf,UAAU,CAAC,CAACgB,IAAI,CAC7CC,OAAO,IACLjB,UAAU,CAACiB,OAAO,CAAC,IACnBjB,UAAU,CAACiB,OAAO,CAAC,CAACC,QAAQ,IAC5BlB,UAAU,CAACiB,OAAO,CAAC,CAACC,QAAQ,CAACC,gBAAgB,KAAKlB,cACtD,CAAC;MACD,IAAIY,UAAU,EAAE,OAAO,GAAGV,GAAG,IAAIU,UAAU,GAAG;IAChD;IACA,MAAMO,SAAS,GAAGZ,kBAAkB,GAAG,GAAGF,YAAY,MAAMC,YAAY,IAAI,GAAGF,UAAU;IACzF,MAAMgB,mBAAmB,GACvBZ,cAAc,IAAInB,iBAAiB,CAACe,UAAU,EAAEN,eAAe,CAAC,GAAGP,EAAE,GAAG4B,SAAS;IAEnF,OAAO,GAAGjB,GAAG,IAAIkB,mBAAmB,GAAG;EACzC,CAAC,EAAE7B,EAAE,CAAC;AACR,CAAC;AAED,eAAeC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const getRequiredSchemas = (searchProperties, {
|
|
2
|
+
id,
|
|
3
|
+
properties = {},
|
|
4
|
+
dynamicProperties = {},
|
|
5
|
+
relations = []
|
|
6
|
+
} = {}) => [id, ...searchProperties.map(property => {
|
|
7
|
+
if (!property) return null;
|
|
8
|
+
const fieldParts = property.split('.');
|
|
9
|
+
const [localFieldPart] = property.split('.');
|
|
10
|
+
if (fieldParts.length === 1 || properties[localFieldPart] || dynamicProperties[localFieldPart]) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
const matchingRelation = relations.find(({
|
|
14
|
+
localField
|
|
15
|
+
}) => localField === localFieldPart);
|
|
16
|
+
if (!matchingRelation) return null;
|
|
17
|
+
return matchingRelation.entityIdentifier;
|
|
18
|
+
})].filter(Boolean);
|
|
19
|
+
export default getRequiredSchemas;
|
|
20
|
+
//# sourceMappingURL=get-required-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":"AAAA,MAAMA,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChB;EAAEC,EAAE;EAAEC,UAAU,GAAG,CAAC,CAAC;EAAEC,iBAAiB,GAAG,CAAC,CAAC;EAAEC,SAAS,GAAG;AAAG,CAAC,GAAG,CAAC,CAAC,KAEpE,CACEH,EAAE,EACF,GAAGD,gBAAgB,CAACK,GAAG,CAACC,QAAQ,IAAI;EAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;EAE1B,MAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACC,cAAc,CAAC,GAAGH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EAE5C,IACED,UAAU,CAACG,MAAM,KAAK,CAAC,IACvBR,UAAU,CAACO,cAAc,CAAC,IAC1BN,iBAAiB,CAACM,cAAc,CAAC,EACjC;IACA,OAAO,IAAI;EACb;EAEA,MAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,cAAc,CAAC;EAC1F,IAAI,CAACE,gBAAgB,EAAE,OAAO,IAAI;EAElC,OAAOA,gBAAgB,CAACG,gBAAgB;AAC1C,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;AAEnB,eAAejB,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":"AAAA,MAAMA,sBAAsB,GAAGC,MAAM,IACnCA,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,MAAM,CAAC,CAACC,IAAI,EAAEC,IAAI,KAAMA,IAAI,CAACH,MAAM,GAAG,CAACE,IAAI,EAAE,IAAI,EAAEC,IAAI,CAAC,GAAGD,IAAK,CAAC,GAAGH,MAAM;AAEnG,eAAeD,sBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const getSearchFilterType = ({
|
|
2
|
+
settings: {
|
|
3
|
+
filters = []
|
|
4
|
+
} = {}
|
|
5
|
+
}, type) => {
|
|
6
|
+
if (!filters.length) return [];
|
|
7
|
+
return filters.filter(({
|
|
8
|
+
type: filterType
|
|
9
|
+
}) => filterType === type);
|
|
10
|
+
};
|
|
11
|
+
export default getSearchFilterType;
|
|
12
|
+
//# sourceMappingURL=get-search-filter-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ,EAAE;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAG,CAAC;AAAE,CAAC,EAAEC,IAAI,KAAK;EACzE,IAAI,CAACD,OAAO,CAACE,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOF,OAAO,CAACG,MAAM,CAAC,CAAC;IAAEF,IAAI,EAAEG;EAAW,CAAC,KAAKA,UAAU,KAAKH,IAAI,CAAC;AACtE,CAAC;AAED,eAAeH,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KEYWORD } from '../constants';
|
|
2
|
+
const buildFieldName = (relations, fieldValue, stringProps) => {
|
|
3
|
+
const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;
|
|
4
|
+
if (!field) return null;
|
|
5
|
+
let updatedField = field;
|
|
6
|
+
if (field.includes('.')) {
|
|
7
|
+
const [relationName, relationProp] = field.split('.');
|
|
8
|
+
const [relation] = relations.filter(({
|
|
9
|
+
localField
|
|
10
|
+
}) => localField === relationName);
|
|
11
|
+
const {
|
|
12
|
+
entityIdentifier = ''
|
|
13
|
+
} = relation || {};
|
|
14
|
+
if (entityIdentifier && entityIdentifier !== relationName) updatedField = `${entityIdentifier}.${relationProp}`;
|
|
15
|
+
}
|
|
16
|
+
return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;
|
|
17
|
+
};
|
|
18
|
+
const getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) => isSortbyArray ? buildFieldName(relations, sortby[0], stringProps) : buildFieldName(relations, sortby, stringProps);
|
|
19
|
+
export default getSortbyFieldName;
|
|
20
|
+
//# sourceMappingURL=get-sort-by-field-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sort-by-field-name.js","names":["KEYWORD","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","getSortbyFieldName","sortby","isSortbyArray"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,cAAc;AAEtC,MAAMC,cAAc,GAAGA,CAACC,SAAS,EAAEC,UAAU,EAAEC,WAAW,KAAK;EAC7D,MAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,CAACE,KAAK,EAAE,OAAO,IAAI;EAEvB,IAAIG,YAAY,GAAGH,KAAK;EAExB,IAAIA,KAAK,CAACI,QAAQ,CAAC,GAAG,CAAC,EAAE;IACvB,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAGN,KAAK,CAACO,KAAK,CAAC,GAAG,CAAC;IAErD,MAAM,CAACC,QAAQ,CAAC,GAAGX,SAAS,CAACY,MAAM,CAAC,CAAC;MAAEC;IAAW,CAAC,KAAKA,UAAU,KAAKL,YAAY,CAAC;IACpF,MAAM;MAAEM,gBAAgB,GAAG;IAAG,CAAC,GAAGH,QAAQ,IAAI,CAAC,CAAC;IAChD,IAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAAY,EACvDF,YAAY,GAAG,GAAGQ,gBAAgB,IAAIL,YAAY,EAAE;EACxD;EACA,OAAOP,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,GAAG,GAAGH,KAAK,IAAIL,OAAO,EAAE,GAAGK,KAAK;AAC3E,CAAC;AAED,MAAMY,kBAAkB,GAAGA,CAACf,SAAS,EAAEgB,MAAM,EAAEd,WAAW,EAAEe,aAAa,KACvEA,aAAa,GACTlB,cAAc,CAACC,SAAS,EAAEgB,MAAM,CAAC,CAAC,CAAC,EAAEd,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAEgB,MAAM,EAAEd,WAAW,CAAC;AAEpD,eAAea,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PUBLISHED } from '../constants';
|
|
2
|
+
const UNDERSCORE = '_';
|
|
3
|
+
const getUnpublishedEntityName = entity => entity.split(UNDERSCORE).filter(word => word !== PUBLISHED).join(UNDERSCORE);
|
|
4
|
+
export default getUnpublishedEntityName;
|
|
5
|
+
//# sourceMappingURL=get-unpublished-entity-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-unpublished-entity-name.js","names":["PUBLISHED","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","join"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,cAAc;AAExC,MAAMC,UAAU,GAAG,GAAG;AAEtB,MAAMC,wBAAwB,GAAGC,MAAM,IACrCA,MAAM,CACHC,KAAK,CAACH,UAAU,CAAC,CACjBI,MAAM,CAACC,IAAI,IAAIA,IAAI,KAAKN,SAAS,CAAC,CAClCO,IAAI,CAACN,UAAU,CAAC;AAErB,eAAeC,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import uniq from 'lodash.uniq';
|
|
2
|
+
import buildInheritedFilters from './build-inherited-filters';
|
|
3
|
+
const getUpdatedFilterBy = (inheritedFilters, entityData, currentSchema, filterEntitySchema, itemId, props) => {
|
|
4
|
+
if (inheritedFilters && inheritedFilters.length) {
|
|
5
|
+
const relationFilters = buildInheritedFilters(entityData, inheritedFilters, currentSchema, filterEntitySchema, itemId);
|
|
6
|
+
return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;
|
|
7
|
+
}
|
|
8
|
+
return [];
|
|
9
|
+
};
|
|
10
|
+
export default getUpdatedFilterBy;
|
|
11
|
+
//# sourceMappingURL=get-updated-filter-by.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-updated-filter-by.js","names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":"AAAA,OAAOA,IAAI,MAAM,aAAa;AAC9B,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,MAAMC,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,KACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,MAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MACF,CAAC;IAED,OAAOG,eAAe,CAACD,MAAM,GAAGT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAQ,EAAE,GAAGD,eAAe,CAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAED,eAAeR,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const getUpdatedItemsToDisplay = ({
|
|
2
|
+
parentSchema,
|
|
3
|
+
parentEntityData,
|
|
4
|
+
itemsToDisplay = [],
|
|
5
|
+
inheritedFilters = []
|
|
6
|
+
}) => {
|
|
7
|
+
const idProp = inheritedFilters.find(filter => filter.indexOf('id/') === 0);
|
|
8
|
+
if (!idProp || !parentSchema || !parentEntityData) return itemsToDisplay;
|
|
9
|
+
const {
|
|
10
|
+
properties
|
|
11
|
+
} = parentSchema;
|
|
12
|
+
const [, entityKey] = idProp.split('/');
|
|
13
|
+
if (!properties || !entityKey) return itemsToDisplay;
|
|
14
|
+
const queryValue = Object.keys(properties).find(propKey => properties[propKey] && properties[propKey].relation && properties[propKey].relation.entityIdentifier === entityKey);
|
|
15
|
+
const parentValues = parentEntityData[queryValue];
|
|
16
|
+
if (!parentValues) return itemsToDisplay;
|
|
17
|
+
const updatedItemsToDisplay = [...itemsToDisplay];
|
|
18
|
+
if (Array.isArray(parentValues)) {
|
|
19
|
+
parentValues.forEach(value => {
|
|
20
|
+
updatedItemsToDisplay.push({
|
|
21
|
+
displayItems: [value]
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
updatedItemsToDisplay.push({
|
|
26
|
+
displayItems: [parentValues]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return updatedItemsToDisplay;
|
|
30
|
+
};
|
|
31
|
+
export default getUpdatedItemsToDisplay;
|
|
32
|
+
//# sourceMappingURL=get-updated-items-to-display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-updated-items-to-display.js","names":["getUpdatedItemsToDisplay","parentSchema","parentEntityData","itemsToDisplay","inheritedFilters","idProp","find","filter","indexOf","properties","entityKey","split","queryValue","Object","keys","propKey","relation","entityIdentifier","parentValues","updatedItemsToDisplay","Array","isArray","forEach","value","push","displayItems"],"sources":["../../src/helpers/get-updated-items-to-display.js"],"sourcesContent":["const getUpdatedItemsToDisplay = ({\n parentSchema,\n parentEntityData,\n itemsToDisplay = [],\n inheritedFilters = []\n}) => {\n const idProp = inheritedFilters.find(filter => filter.indexOf('id/') === 0);\n\n if (!idProp || !parentSchema || !parentEntityData) return itemsToDisplay;\n const { properties } = parentSchema;\n const [, entityKey] = idProp.split('/');\n if (!properties || !entityKey) return itemsToDisplay;\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === entityKey\n );\n const parentValues = parentEntityData[queryValue];\n if (!parentValues) return itemsToDisplay;\n const updatedItemsToDisplay = [...itemsToDisplay];\n if (Array.isArray(parentValues)) {\n parentValues.forEach(value => {\n updatedItemsToDisplay.push({ displayItems: [value] });\n });\n } else {\n updatedItemsToDisplay.push({ displayItems: [parentValues] });\n }\n return updatedItemsToDisplay;\n};\n\nexport default getUpdatedItemsToDisplay;\n"],"mappings":"AAAA,MAAMA,wBAAwB,GAAGA,CAAC;EAChCC,YAAY;EACZC,gBAAgB;EAChBC,cAAc,GAAG,EAAE;EACnBC,gBAAgB,GAAG;AACrB,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAGD,gBAAgB,CAACE,IAAI,CAACC,MAAM,IAAIA,MAAM,CAACC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;EAE3E,IAAI,CAACH,MAAM,IAAI,CAACJ,YAAY,IAAI,CAACC,gBAAgB,EAAE,OAAOC,cAAc;EACxE,MAAM;IAAEM;EAAW,CAAC,GAAGR,YAAY;EACnC,MAAM,GAAGS,SAAS,CAAC,GAAGL,MAAM,CAACM,KAAK,CAAC,GAAG,CAAC;EACvC,IAAI,CAACF,UAAU,IAAI,CAACC,SAAS,EAAE,OAAOP,cAAc;EACpD,MAAMS,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,UAAU,CAAC,CAACH,IAAI,CAC7CS,OAAO,IACLN,UAAU,CAACM,OAAO,CAAC,IACnBN,UAAU,CAACM,OAAO,CAAC,CAACC,QAAQ,IAC5BP,UAAU,CAACM,OAAO,CAAC,CAACC,QAAQ,CAACC,gBAAgB,KAAKP,SACtD,CAAC;EACD,MAAMQ,YAAY,GAAGhB,gBAAgB,CAACU,UAAU,CAAC;EACjD,IAAI,CAACM,YAAY,EAAE,OAAOf,cAAc;EACxC,MAAMgB,qBAAqB,GAAG,CAAC,GAAGhB,cAAc,CAAC;EACjD,IAAIiB,KAAK,CAACC,OAAO,CAACH,YAAY,CAAC,EAAE;IAC/BA,YAAY,CAACI,OAAO,CAACC,KAAK,IAAI;MAC5BJ,qBAAqB,CAACK,IAAI,CAAC;QAAEC,YAAY,EAAE,CAACF,KAAK;MAAE,CAAC,CAAC;IACvD,CAAC,CAAC;EACJ,CAAC,MAAM;IACLJ,qBAAqB,CAACK,IAAI,CAAC;MAAEC,YAAY,EAAE,CAACP,YAAY;IAAE,CAAC,CAAC;EAC9D;EACA,OAAOC,qBAAqB;AAC9B,CAAC;AAED,eAAenB,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const getUpdatedSortProperties = (sort, sortby, sortProperties = []) => {
|
|
2
|
+
const updatedSortProperties = [...sortProperties];
|
|
3
|
+
if (!updatedSortProperties.length && sort) {
|
|
4
|
+
updatedSortProperties.unshift({
|
|
5
|
+
sort,
|
|
6
|
+
propsToDisplay: sortby
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
const sortbyFilters = updatedSortProperties.map(({
|
|
10
|
+
propsToDisplay
|
|
11
|
+
}) => propsToDisplay).filter(Boolean).flat();
|
|
12
|
+
return [updatedSortProperties, sortbyFilters];
|
|
13
|
+
};
|
|
14
|
+
export default getUpdatedSortProperties;
|
|
15
|
+
//# sourceMappingURL=get-updated-sort-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-updated-sort-properties.js","names":["getUpdatedSortProperties","sort","sortby","sortProperties","updatedSortProperties","length","unshift","propsToDisplay","sortbyFilters","map","filter","Boolean","flat"],"sources":["../../src/helpers/get-updated-sort-properties.js"],"sourcesContent":["const getUpdatedSortProperties = (sort, sortby, sortProperties = []) => {\n const updatedSortProperties = [...sortProperties];\n if (!updatedSortProperties.length && sort) {\n updatedSortProperties.unshift({ sort, propsToDisplay: sortby });\n }\n\n const sortbyFilters = updatedSortProperties\n .map(({ propsToDisplay }) => propsToDisplay)\n .filter(Boolean)\n .flat();\n return [updatedSortProperties, sortbyFilters];\n};\n\nexport default getUpdatedSortProperties;\n"],"mappings":"AAAA,MAAMA,wBAAwB,GAAGA,CAACC,IAAI,EAAEC,MAAM,EAAEC,cAAc,GAAG,EAAE,KAAK;EACtE,MAAMC,qBAAqB,GAAG,CAAC,GAAGD,cAAc,CAAC;EACjD,IAAI,CAACC,qBAAqB,CAACC,MAAM,IAAIJ,IAAI,EAAE;IACzCG,qBAAqB,CAACE,OAAO,CAAC;MAAEL,IAAI;MAAEM,cAAc,EAAEL;IAAO,CAAC,CAAC;EACjE;EAEA,MAAMM,aAAa,GAAGJ,qBAAqB,CACxCK,GAAG,CAAC,CAAC;IAAEF;EAAe,CAAC,KAAKA,cAAc,CAAC,CAC3CG,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,CAAC;EACT,OAAO,CAACR,qBAAqB,EAAEI,aAAa,CAAC;AAC/C,CAAC;AAED,eAAeR,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BlazeLink from '../components/BlazeLink';
|
|
3
|
+
const getWrappedValueWithLink = (value, link, keyPrefix = '') => {
|
|
4
|
+
if (Array.isArray(value)) {
|
|
5
|
+
const arrayResults = value.map((arrValue, index) => {
|
|
6
|
+
const {
|
|
7
|
+
keyField,
|
|
8
|
+
url
|
|
9
|
+
} = arrValue;
|
|
10
|
+
const keyValue = arrValue[keyField];
|
|
11
|
+
const isLastItem = index === value.length - 1;
|
|
12
|
+
const keyFieldValue = isLastItem ? keyValue : /*#__PURE__*/React.createElement(React.Fragment, null, keyValue, ", ");
|
|
13
|
+
return url ? /*#__PURE__*/React.createElement(BlazeLink, {
|
|
14
|
+
key: [keyPrefix, index].join('-'),
|
|
15
|
+
href: url
|
|
16
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, keyFieldValue, " ")) : /*#__PURE__*/React.createElement(React.Fragment, null, keyFieldValue, " ");
|
|
17
|
+
});
|
|
18
|
+
return arrayResults.length ? arrayResults : null;
|
|
19
|
+
}
|
|
20
|
+
return link ? /*#__PURE__*/React.createElement(BlazeLink, {
|
|
21
|
+
href: link
|
|
22
|
+
}, value) : value;
|
|
23
|
+
};
|
|
24
|
+
export default getWrappedValueWithLink;
|
|
25
|
+
//# sourceMappingURL=get-wrapped-value-with-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-wrapped-value-with-link.js","names":["React","BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","length","keyFieldValue","createElement","Fragment","key","join","href"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : <>{keyValue}, </>;\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>\n <>{keyFieldValue} </>\n </BlazeLink>\n ) : (\n <>{keyFieldValue} </>\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,yBAAyB;AAE/C,MAAMC,uBAAuB,GAAGA,CAACC,KAAK,EAAEC,IAAI,EAAEC,SAAS,GAAG,EAAE,KAAK;EAC/D,IAAIC,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,EAAE;IACxB,MAAMK,YAAY,GAAGL,KAAK,CAACM,GAAG,CAAC,CAACC,QAAQ,EAAEC,KAAK,KAAK;MAClD,MAAM;QAAEC,QAAQ;QAAEC;MAAI,CAAC,GAAGH,QAAQ;MAClC,MAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MAEnC,MAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAM,GAAG,CAAC;MAC7C,MAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAQ,gBAAGd,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAmB,QAAA,QAAGL,QAAQ,EAAC,IAAI,CAAC;MAE/D,OAAOD,GAAG,gBACRb,KAAA,CAAAkB,aAAA,CAACjB,SAAS;QAACmB,GAAG,EAAE,CAACf,SAAS,EAAEM,KAAK,CAAC,CAACU,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAET;MAAI,gBACtDb,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAmB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACX,CAAC,gBAEZjB,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAmB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACrB;IACH,CAAC,CAAC;IAEF,OAAOT,YAAY,CAACQ,MAAM,GAAGR,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOJ,IAAI,gBAAGJ,KAAA,CAAAkB,aAAA,CAACjB,SAAS;IAACqB,IAAI,EAAElB;EAAK,GAAED,KAAiB,CAAC,GAAGA,KAAK;AAClE,CAAC;AAED,eAAeD,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function groupEntities(entities, size) {
|
|
2
|
+
const entitiesSet = [...entities];
|
|
3
|
+
const controledSize = size ? Number(size) : entitiesSet.length;
|
|
4
|
+
const chunks = [];
|
|
5
|
+
while (entitiesSet.length) {
|
|
6
|
+
chunks.push(entitiesSet.splice(0, controledSize));
|
|
7
|
+
}
|
|
8
|
+
return chunks;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=group-entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-entities.js","names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"sources":["../../src/helpers/group-entities.js"],"sourcesContent":["export default function groupEntities(entities, size) {\n const entitiesSet = [...entities];\n const controledSize = size ? Number(size) : entitiesSet.length;\n const chunks = [];\n\n while (entitiesSet.length) {\n chunks.push(entitiesSet.splice(0, controledSize));\n }\n\n return chunks;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAaA,CAACC,QAAQ,EAAEC,IAAI,EAAE;EACpD,MAAMC,WAAW,GAAG,CAAC,GAAGF,QAAQ,CAAC;EACjC,MAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAI,CAAC,GAAGC,WAAW,CAACG,MAAM;EAC9D,MAAMC,MAAM,GAAG,EAAE;EAEjB,OAAOJ,WAAW,CAACG,MAAM,EAAE;IACzBC,MAAM,CAACC,IAAI,CAACL,WAAW,CAACM,MAAM,CAAC,CAAC,EAAEL,aAAa,CAAC,CAAC;EACnD;EAEA,OAAOG,MAAM;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const hasChildren = children => {
|
|
2
|
+
if (!children) return false;
|
|
3
|
+
const isChildrenArray = Array.isArray(children);
|
|
4
|
+
if (!isChildrenArray) {
|
|
5
|
+
return !!(Object.keys(children).length && children.props && children.props.children && children.props.children.length > 1);
|
|
6
|
+
}
|
|
7
|
+
return isChildrenArray && !!children.length;
|
|
8
|
+
};
|
|
9
|
+
export default hasChildren;
|
|
10
|
+
//# sourceMappingURL=has-children.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-children.js","names":["hasChildren","children","isChildrenArray","Array","isArray","Object","keys","length","props"],"sources":["../../src/helpers/has-children.js"],"sourcesContent":["const hasChildren = children => {\n if (!children) return false;\n const isChildrenArray = Array.isArray(children);\n if (!isChildrenArray) {\n return !!(\n Object.keys(children).length &&\n children.props &&\n children.props.children &&\n children.props.children.length > 1\n );\n }\n return isChildrenArray && !!children.length;\n};\n\nexport default hasChildren;\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGC,QAAQ,IAAI;EAC9B,IAAI,CAACA,QAAQ,EAAE,OAAO,KAAK;EAC3B,MAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACH,QAAQ,CAAC;EAC/C,IAAI,CAACC,eAAe,EAAE;IACpB,OAAO,CAAC,EACNG,MAAM,CAACC,IAAI,CAACL,QAAQ,CAAC,CAACM,MAAM,IAC5BN,QAAQ,CAACO,KAAK,IACdP,QAAQ,CAACO,KAAK,CAACP,QAAQ,IACvBA,QAAQ,CAACO,KAAK,CAACP,QAAQ,CAACM,MAAM,GAAG,CAAC,CACnC;EACH;EACA,OAAOL,eAAe,IAAI,CAAC,CAACD,QAAQ,CAACM,MAAM;AAC7C,CAAC;AAED,eAAeP,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export { default as buildInheritedFilters } from './build-inherited-filters';
|
|
2
|
+
export { default as buildLinkExtraProps } from './build-link-extra-props';
|
|
3
|
+
export { default as buildPropsQuery } from './build-props-query';
|
|
4
|
+
export { default as buildQueryFields } from './build-query-fields';
|
|
5
|
+
export { default as buildRawQuery } from './build-raw-query';
|
|
6
|
+
export { default as buildRawQueryBase } from './build-raw-query-base';
|
|
7
|
+
export { default as buildSearchValuesCheckboxSelect } from './build-search-values-checkbox-select';
|
|
8
|
+
export { default as buildSearchValuesText } from './build-search-values-text';
|
|
9
|
+
export { default as buildSetFilters } from './build-set-filters';
|
|
10
|
+
export { default as checkPropsToUse } from './check-props-to-use';
|
|
11
|
+
export { default as getElasticsearchOperator } from './get-elasticsearch-operator';
|
|
12
|
+
export { default as getClickWrapperOptions } from './get-click-wrapper-options';
|
|
13
|
+
export { default as getEntitiesWithBanner } from './get-entities-with-banner';
|
|
14
|
+
export { default as getEntityData } from './get-entity-data';
|
|
15
|
+
export { default as getEntityRenderProps } from './get-entity-render-props';
|
|
16
|
+
export { default as getGenericProps } from './get-generic-props';
|
|
17
|
+
export { default as getGenericRenderVariables } from './get-generic-render-variables';
|
|
18
|
+
export { default as getImageIds } from './get-image-ids';
|
|
19
|
+
export { default as getInheritedFilters } from './get-inherited-filters';
|
|
20
|
+
export { default as getModifiers } from './get-modifiers';
|
|
21
|
+
export { default as getNotEqualQuery } from './get-not-equal-query';
|
|
22
|
+
export { default as getPaginationIndex } from './get-pagination-index';
|
|
23
|
+
export { default as getParsedSummaryValue } from './get-parsed-summary-value';
|
|
24
|
+
export { default as getQueryFilters } from './get-query-filters';
|
|
25
|
+
export { default as getQueryProps } from './get-query-props';
|
|
26
|
+
export { default as getRequiredSchemas } from './get-required-schemas';
|
|
27
|
+
export { default as getSearchFilterType } from './get-search-filter-type';
|
|
28
|
+
export { default as getUnpublishedEntityName } from './get-unpublished-entity-name';
|
|
29
|
+
export { default as getWrappedValueWithLink } from './get-wrapped-value-with-link';
|
|
30
|
+
export { default as getItemsToDisplayIds } from './get-items-to-display-ids';
|
|
31
|
+
export { default as isBrowser } from './is-browser';
|
|
32
|
+
export { default as isFilterEntitysId } from './is-filter-entitys-id';
|
|
33
|
+
export { default as isObject } from './is-object';
|
|
34
|
+
export { default as isUsingRelationImage } from './is-using-relation-image';
|
|
35
|
+
export { default as parsePropsToDisplay } from './parse-props-to-display';
|
|
36
|
+
export { default as renderChildren } from './render-children';
|
|
37
|
+
export { default as shouldRenderWaypoint } from './should-render-waypoint';
|
|
38
|
+
export { default as shouldShowProperty } from './should-show-property';
|
|
39
|
+
export { default as sortResponseData } from './sort-response-data';
|
|
40
|
+
export { default as splitChildren } from './split-children';
|
|
41
|
+
export { default as getCurrentOffset } from './get-current-offset';
|
|
42
|
+
export { default as updateChildrensParent } from './update-childrens-parent';
|
|
43
|
+
export { default as getDisplayCountData } from './get-display-count-data';
|
|
44
|
+
export { default as buildImageProperties } from './build-image-properties';
|
|
45
|
+
export { default as getUpdatedFilterBy } from './get-updated-filter-by';
|
|
46
|
+
export { default as checkForError } from './check-for-error';
|
|
47
|
+
export { default as removeUnwantedCharacters } from './remove-unwanted-characters';
|
|
48
|
+
export { default as hasChildren } from './has-children';
|
|
49
|
+
export { default as removeExtraItems } from './remove-extra-items';
|
|
50
|
+
export { default as getParsedPropValues } from './get-parsed-prop-values';
|
|
51
|
+
export { default as getSanitizedPropValues } from './get-sanitized-prop-values';
|
|
52
|
+
export { default as appendImages } from './append-images';
|
|
53
|
+
export { default as parseTextBlock } from './parse-TextBlock';
|
|
54
|
+
export { default as processDataSummaryValue } from './process-data-summary-value';
|
|
55
|
+
export { default as buildQueryKey } from './build-query-key';
|
|
56
|
+
export { default as filterQuerySetup } from './filter-query-setup';
|
|
57
|
+
export { default as filtersSetup } from './filters-setup';
|
|
58
|
+
export { default as getUpdatedItemsToDisplay } from './get-updated-items-to-display';
|
|
59
|
+
export { default as getUpdatedSortProperties } from './get-updated-sort-properties';
|
|
60
|
+
export { default as shouldReturn } from './should-return';
|
|
61
|
+
export { default as shouldSkipSingleQuery } from './should-skip-single-query';
|
|
62
|
+
export { default as buildRawQueryStringified } from './build-raw-query-stringified';
|
|
63
|
+
export { default as buildFiltersQuery } from './build-filters-query';
|
|
64
|
+
export { default as getComponentId } from './get-component-id';
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","buildInheritedFilters","buildLinkExtraProps","buildPropsQuery","buildQueryFields","buildRawQuery","buildRawQueryBase","buildSearchValuesCheckboxSelect","buildSearchValuesText","buildSetFilters","checkPropsToUse","getElasticsearchOperator","getClickWrapperOptions","getEntitiesWithBanner","getEntityData","getEntityRenderProps","getGenericProps","getGenericRenderVariables","getImageIds","getInheritedFilters","getModifiers","getNotEqualQuery","getPaginationIndex","getParsedSummaryValue","getQueryFilters","getQueryProps","getRequiredSchemas","getSearchFilterType","getUnpublishedEntityName","getWrappedValueWithLink","getItemsToDisplayIds","isBrowser","isFilterEntitysId","isObject","isUsingRelationImage","parsePropsToDisplay","renderChildren","shouldRenderWaypoint","shouldShowProperty","sortResponseData","splitChildren","getCurrentOffset","updateChildrensParent","getDisplayCountData","buildImageProperties","getUpdatedFilterBy","checkForError","removeUnwantedCharacters","hasChildren","removeExtraItems","getParsedPropValues","getSanitizedPropValues","appendImages","parseTextBlock","processDataSummaryValue","buildQueryKey","filterQuerySetup","filtersSetup","getUpdatedItemsToDisplay","getUpdatedSortProperties","shouldReturn","shouldSkipSingleQuery","buildRawQueryStringified","buildFiltersQuery","getComponentId"],"sources":["../../src/helpers/index.js"],"sourcesContent":["export { default as buildInheritedFilters } from './build-inherited-filters';\nexport { default as buildLinkExtraProps } from './build-link-extra-props';\nexport { default as buildPropsQuery } from './build-props-query';\nexport { default as buildQueryFields } from './build-query-fields';\nexport { default as buildRawQuery } from './build-raw-query';\nexport { default as buildRawQueryBase } from './build-raw-query-base';\nexport { default as buildSearchValuesCheckboxSelect } from './build-search-values-checkbox-select';\nexport { default as buildSearchValuesText } from './build-search-values-text';\nexport { default as buildSetFilters } from './build-set-filters';\nexport { default as checkPropsToUse } from './check-props-to-use';\nexport { default as getElasticsearchOperator } from './get-elasticsearch-operator';\nexport { default as getClickWrapperOptions } from './get-click-wrapper-options';\nexport { default as getEntitiesWithBanner } from './get-entities-with-banner';\nexport { default as getEntityData } from './get-entity-data';\nexport { default as getEntityRenderProps } from './get-entity-render-props';\nexport { default as getGenericProps } from './get-generic-props';\nexport { default as getGenericRenderVariables } from './get-generic-render-variables';\nexport { default as getImageIds } from './get-image-ids';\nexport { default as getInheritedFilters } from './get-inherited-filters';\nexport { default as getModifiers } from './get-modifiers';\nexport { default as getNotEqualQuery } from './get-not-equal-query';\nexport { default as getPaginationIndex } from './get-pagination-index';\nexport { default as getParsedSummaryValue } from './get-parsed-summary-value';\nexport { default as getQueryFilters } from './get-query-filters';\nexport { default as getQueryProps } from './get-query-props';\nexport { default as getRequiredSchemas } from './get-required-schemas';\nexport { default as getSearchFilterType } from './get-search-filter-type';\nexport { default as getUnpublishedEntityName } from './get-unpublished-entity-name';\nexport { default as getWrappedValueWithLink } from './get-wrapped-value-with-link';\nexport { default as getItemsToDisplayIds } from './get-items-to-display-ids';\nexport { default as isBrowser } from './is-browser';\nexport { default as isFilterEntitysId } from './is-filter-entitys-id';\nexport { default as isObject } from './is-object';\nexport { default as isUsingRelationImage } from './is-using-relation-image';\nexport { default as parsePropsToDisplay } from './parse-props-to-display';\nexport { default as renderChildren } from './render-children';\nexport { default as shouldRenderWaypoint } from './should-render-waypoint';\nexport { default as shouldShowProperty } from './should-show-property';\nexport { default as sortResponseData } from './sort-response-data';\nexport { default as splitChildren } from './split-children';\nexport { default as getCurrentOffset } from './get-current-offset';\nexport { default as updateChildrensParent } from './update-childrens-parent';\nexport { default as getDisplayCountData } from './get-display-count-data';\nexport { default as buildImageProperties } from './build-image-properties';\nexport { default as getUpdatedFilterBy } from './get-updated-filter-by';\nexport { default as checkForError } from './check-for-error';\nexport { default as removeUnwantedCharacters } from './remove-unwanted-characters';\nexport { default as hasChildren } from './has-children';\nexport { default as removeExtraItems } from './remove-extra-items';\nexport { default as getParsedPropValues } from './get-parsed-prop-values';\nexport { default as getSanitizedPropValues } from './get-sanitized-prop-values';\nexport { default as appendImages } from './append-images';\nexport { default as parseTextBlock } from './parse-TextBlock';\nexport { default as processDataSummaryValue } from './process-data-summary-value';\nexport { default as buildQueryKey } from './build-query-key';\nexport { default as filterQuerySetup } from './filter-query-setup';\nexport { default as filtersSetup } from './filters-setup';\nexport { default as getUpdatedItemsToDisplay } from './get-updated-items-to-display';\nexport { default as getUpdatedSortProperties } from './get-updated-sort-properties';\nexport { default as shouldReturn } from './should-return';\nexport { default as shouldSkipSingleQuery } from './should-skip-single-query';\nexport { default as buildRawQueryStringified } from './build-raw-query-stringified';\nexport { default as buildFiltersQuery } from './build-filters-query';\nexport { default as getComponentId } from './get-component-id';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,qBAAqB,QAAQ,2BAA2B;AAC5E,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,0BAA0B;AACzE,SAASF,OAAO,IAAIG,eAAe,QAAQ,qBAAqB;AAChE,SAASH,OAAO,IAAII,gBAAgB,QAAQ,sBAAsB;AAClE,SAASJ,OAAO,IAAIK,aAAa,QAAQ,mBAAmB;AAC5D,SAASL,OAAO,IAAIM,iBAAiB,QAAQ,wBAAwB;AACrE,SAASN,OAAO,IAAIO,+BAA+B,QAAQ,uCAAuC;AAClG,SAASP,OAAO,IAAIQ,qBAAqB,QAAQ,4BAA4B;AAC7E,SAASR,OAAO,IAAIS,eAAe,QAAQ,qBAAqB;AAChE,SAAST,OAAO,IAAIU,eAAe,QAAQ,sBAAsB;AACjE,SAASV,OAAO,IAAIW,wBAAwB,QAAQ,8BAA8B;AAClF,SAASX,OAAO,IAAIY,sBAAsB,QAAQ,6BAA6B;AAC/E,SAASZ,OAAO,IAAIa,qBAAqB,QAAQ,4BAA4B;AAC7E,SAASb,OAAO,IAAIc,aAAa,QAAQ,mBAAmB;AAC5D,SAASd,OAAO,IAAIe,oBAAoB,QAAQ,2BAA2B;AAC3E,SAASf,OAAO,IAAIgB,eAAe,QAAQ,qBAAqB;AAChE,SAAShB,OAAO,IAAIiB,yBAAyB,QAAQ,gCAAgC;AACrF,SAASjB,OAAO,IAAIkB,WAAW,QAAQ,iBAAiB;AACxD,SAASlB,OAAO,IAAImB,mBAAmB,QAAQ,yBAAyB;AACxE,SAASnB,OAAO,IAAIoB,YAAY,QAAQ,iBAAiB;AACzD,SAASpB,OAAO,IAAIqB,gBAAgB,QAAQ,uBAAuB;AACnE,SAASrB,OAAO,IAAIsB,kBAAkB,QAAQ,wBAAwB;AACtE,SAAStB,OAAO,IAAIuB,qBAAqB,QAAQ,4BAA4B;AAC7E,SAASvB,OAAO,IAAIwB,eAAe,QAAQ,qBAAqB;AAChE,SAASxB,OAAO,IAAIyB,aAAa,QAAQ,mBAAmB;AAC5D,SAASzB,OAAO,IAAI0B,kBAAkB,QAAQ,wBAAwB;AACtE,SAAS1B,OAAO,IAAI2B,mBAAmB,QAAQ,0BAA0B;AACzE,SAAS3B,OAAO,IAAI4B,wBAAwB,QAAQ,+BAA+B;AACnF,SAAS5B,OAAO,IAAI6B,uBAAuB,QAAQ,+BAA+B;AAClF,SAAS7B,OAAO,IAAI8B,oBAAoB,QAAQ,4BAA4B;AAC5E,SAAS9B,OAAO,IAAI+B,SAAS,QAAQ,cAAc;AACnD,SAAS/B,OAAO,IAAIgC,iBAAiB,QAAQ,wBAAwB;AACrE,SAAShC,OAAO,IAAIiC,QAAQ,QAAQ,aAAa;AACjD,SAASjC,OAAO,IAAIkC,oBAAoB,QAAQ,2BAA2B;AAC3E,SAASlC,OAAO,IAAImC,mBAAmB,QAAQ,0BAA0B;AACzE,SAASnC,OAAO,IAAIoC,cAAc,QAAQ,mBAAmB;AAC7D,SAASpC,OAAO,IAAIqC,oBAAoB,QAAQ,0BAA0B;AAC1E,SAASrC,OAAO,IAAIsC,kBAAkB,QAAQ,wBAAwB;AACtE,SAAStC,OAAO,IAAIuC,gBAAgB,QAAQ,sBAAsB;AAClE,SAASvC,OAAO,IAAIwC,aAAa,QAAQ,kBAAkB;AAC3D,SAASxC,OAAO,IAAIyC,gBAAgB,QAAQ,sBAAsB;AAClE,SAASzC,OAAO,IAAI0C,qBAAqB,QAAQ,2BAA2B;AAC5E,SAAS1C,OAAO,IAAI2C,mBAAmB,QAAQ,0BAA0B;AACzE,SAAS3C,OAAO,IAAI4C,oBAAoB,QAAQ,0BAA0B;AAC1E,SAAS5C,OAAO,IAAI6C,kBAAkB,QAAQ,yBAAyB;AACvE,SAAS7C,OAAO,IAAI8C,aAAa,QAAQ,mBAAmB;AAC5D,SAAS9C,OAAO,IAAI+C,wBAAwB,QAAQ,8BAA8B;AAClF,SAAS/C,OAAO,IAAIgD,WAAW,QAAQ,gBAAgB;AACvD,SAAShD,OAAO,IAAIiD,gBAAgB,QAAQ,sBAAsB;AAClE,SAASjD,OAAO,IAAIkD,mBAAmB,QAAQ,0BAA0B;AACzE,SAASlD,OAAO,IAAImD,sBAAsB,QAAQ,6BAA6B;AAC/E,SAASnD,OAAO,IAAIoD,YAAY,QAAQ,iBAAiB;AACzD,SAASpD,OAAO,IAAIqD,cAAc,QAAQ,mBAAmB;AAC7D,SAASrD,OAAO,IAAIsD,uBAAuB,QAAQ,8BAA8B;AACjF,SAAStD,OAAO,IAAIuD,aAAa,QAAQ,mBAAmB;AAC5D,SAASvD,OAAO,IAAIwD,gBAAgB,QAAQ,sBAAsB;AAClE,SAASxD,OAAO,IAAIyD,YAAY,QAAQ,iBAAiB;AACzD,SAASzD,OAAO,IAAI0D,wBAAwB,QAAQ,gCAAgC;AACpF,SAAS1D,OAAO,IAAI2D,wBAAwB,QAAQ,+BAA+B;AACnF,SAAS3D,OAAO,IAAI4D,YAAY,QAAQ,iBAAiB;AACzD,SAAS5D,OAAO,IAAI6D,qBAAqB,QAAQ,4BAA4B;AAC7E,SAAS7D,OAAO,IAAI8D,wBAAwB,QAAQ,+BAA+B;AACnF,SAAS9D,OAAO,IAAI+D,iBAAiB,QAAQ,uBAAuB;AACpE,SAAS/D,OAAO,IAAIgE,cAAc,QAAQ,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import parseInterval from './parse-interval';
|
|
3
|
+
import Banner from '../components/Banner';
|
|
4
|
+
export default function injectBanner(entities, banner) {
|
|
5
|
+
const {
|
|
6
|
+
interval,
|
|
7
|
+
transform = false
|
|
8
|
+
} = banner;
|
|
9
|
+
const parsedInterval = parseInterval(interval);
|
|
10
|
+
const entitySet = [...entities];
|
|
11
|
+
const bannerElement = transform ? /*#__PURE__*/React.createElement(Banner, banner) : banner;
|
|
12
|
+
entitySet.splice(parsedInterval, 0, bannerElement);
|
|
13
|
+
return entitySet;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=inject-banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-banner.js","names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","createElement","splice"],"sources":["../../src/helpers/inject-banner.js"],"sourcesContent":["import React from 'react';\nimport parseInterval from './parse-interval';\nimport Banner from '../components/Banner';\n\nexport default function injectBanner(entities, banner) {\n const { interval, transform = false } = banner;\n const parsedInterval = parseInterval(interval);\n const entitySet = [...entities];\n\n const bannerElement = transform ? <Banner {...banner} /> : banner;\n\n entitySet.splice(parsedInterval, 0, bannerElement);\n\n return entitySet;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,MAAM,MAAM,sBAAsB;AAEzC,eAAe,SAASC,YAAYA,CAACC,QAAQ,EAAEC,MAAM,EAAE;EACrD,MAAM;IAAEC,QAAQ;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGF,MAAM;EAC9C,MAAMG,cAAc,GAAGP,aAAa,CAACK,QAAQ,CAAC;EAC9C,MAAMG,SAAS,GAAG,CAAC,GAAGL,QAAQ,CAAC;EAE/B,MAAMM,aAAa,GAAGH,SAAS,gBAAGP,KAAA,CAAAW,aAAA,CAACT,MAAM,EAAKG,MAAS,CAAC,GAAGA,MAAM;EAEjEI,SAAS,CAACG,MAAM,CAACJ,cAAc,EAAE,CAAC,EAAEE,aAAa,CAAC;EAElD,OAAOD,SAAS;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
const _excluded = ["banner"];
|
|
3
|
+
import injectBanner from './inject-banner';
|
|
4
|
+
import getBannerData from './get-banner-data';
|
|
5
|
+
import injectMultipleBanners from './inject-multiple-banners';
|
|
6
|
+
export default function injectBannersToEntities(entities, _ref) {
|
|
7
|
+
let {
|
|
8
|
+
banner
|
|
9
|
+
} = _ref,
|
|
10
|
+
options = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
if (!entities.length) return [];
|
|
12
|
+
const {
|
|
13
|
+
repeat
|
|
14
|
+
} = banner;
|
|
15
|
+
const bannerData = getBannerData(banner, options);
|
|
16
|
+
const entitiesWithBanner = repeat ? injectMultipleBanners(entities, bannerData) : injectBanner(entities, bannerData);
|
|
17
|
+
return entitiesWithBanner;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=inject-banners-to-entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-banners-to-entities.js","names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","_ref","banner","options","_objectWithoutProperties","_excluded","length","repeat","bannerData","entitiesWithBanner"],"sources":["../../src/helpers/inject-banners-to-entities.js"],"sourcesContent":["import injectBanner from './inject-banner';\nimport getBannerData from './get-banner-data';\nimport injectMultipleBanners from './inject-multiple-banners';\n\nexport default function injectBannersToEntities(entities, { banner, ...options }) {\n if (!entities.length) return [];\n\n const { repeat } = banner;\n const bannerData = getBannerData(banner, options);\n\n const entitiesWithBanner = repeat\n ? injectMultipleBanners(entities, bannerData)\n : injectBanner(entities, bannerData);\n\n return entitiesWithBanner;\n}\n"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,eAAe,SAASC,uBAAuBA,CAACC,QAAQ,EAAAC,IAAA,EAA0B;EAAA,IAAxB;MAAEC;IAAmB,CAAC,GAAAD,IAAA;IAATE,OAAO,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA;EAC5E,IAAI,CAACL,QAAQ,CAACM,MAAM,EAAE,OAAO,EAAE;EAE/B,MAAM;IAAEC;EAAO,CAAC,GAAGL,MAAM;EACzB,MAAMM,UAAU,GAAGX,aAAa,CAACK,MAAM,EAAEC,OAAO,CAAC;EAEjD,MAAMM,kBAAkB,GAAGF,MAAM,GAC7BT,qBAAqB,CAACE,QAAQ,EAAEQ,UAAU,CAAC,GAC3CZ,YAAY,CAACI,QAAQ,EAAEQ,UAAU,CAAC;EAEtC,OAAOC,kBAAkB;AAC3B","ignoreList":[]}
|
package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import flatten from 'lodash.flatten';
|
|
2
|
+
import groupEntities from '../../group-entities';
|
|
3
|
+
import injectBanner from '../../inject-banner';
|
|
4
|
+
export default function getBannersForEntities(entitiesSet, banner) {
|
|
5
|
+
const {
|
|
6
|
+
interval,
|
|
7
|
+
limit
|
|
8
|
+
} = banner;
|
|
9
|
+
const controlledLimit = limit || entitiesSet.length;
|
|
10
|
+
const groups = groupEntities(entitiesSet, interval - 1);
|
|
11
|
+
const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));
|
|
12
|
+
const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);
|
|
13
|
+
return sanitizedEntities;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=get-banners-for-entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-banners-for-entities.js","names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport groupEntities from '../../group-entities';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForEntities(entitiesSet, banner) {\n const { interval, limit } = banner;\n const controlledLimit = limit || entitiesSet.length;\n\n const groups = groupEntities(entitiesSet, interval - 1);\n\n const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));\n\n const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);\n\n return sanitizedEntities;\n}\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,aAAa,MAAM,sBAAsB;AAChD,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,qBAAqBA,CAACC,WAAW,EAAEC,MAAM,EAAE;EACjE,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGF,MAAM;EAClC,MAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAAM;EAEnD,MAAMC,MAAM,GAAGT,aAAa,CAACG,WAAW,EAAEE,QAAQ,GAAG,CAAC,CAAC;EAEvD,MAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAG,CAACC,KAAK,IAAIX,YAAY,CAACW,KAAK,EAAER,MAAM,CAAC,CAAC;EAE3E,MAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAkB,CAAC,CAACI,KAAK,CAAC,CAAC,EAAEP,eAAe,CAAC;EAE/E,OAAOM,iBAAiB;AAC1B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["getBannersForEntities"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/index.js"],"sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\n\nexport default getBannersForEntities;\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAE9D,eAAeA,qBAAqB","ignoreList":[]}
|