@blaze-cms/react-page-builder 0.125.0-alpha.3 → 0.125.0-auth-updates.0
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 +3 -9
- package/README.md +7 -0
- package/lib/BannerContext/helpers/index.js +0 -3
- package/lib/BannerContext/helpers/index.js.map +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -8
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +3 -18
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/index.js +0 -3
- package/lib/HOC/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +11 -44
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +1 -18
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +0 -3
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +2 -30
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +5 -31
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +0 -4
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +16 -43
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +25 -65
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +39 -75
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +18 -95
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +1 -16
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +9 -40
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +24 -58
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +0 -4
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +31 -76
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +55 -93
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardContainer.js +26 -60
- package/lib/components/Card/CardContainer.js.map +1 -1
- package/lib/components/Card/CardFactory.js +14 -33
- package/lib/components/Card/CardFactory.js.map +1 -1
- package/lib/components/Card/CardRender.js +79 -147
- package/lib/components/Card/CardRender.js.map +1 -1
- package/lib/components/Card/constants.js +0 -1
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js +12 -32
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js +11 -18
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +0 -12
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +0 -3
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/index.js +0 -9
- package/lib/components/Card/helpers/index.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js +0 -6
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js +0 -4
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +1 -13
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +0 -4
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +3 -13
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +16 -31
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +0 -4
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +9 -42
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +0 -4
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/index.js +0 -4
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper.js +23 -49
- package/lib/components/CarouselWrapper.js.map +1 -1
- package/lib/components/ClickWrapper.js +6 -37
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +1 -35
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +3 -25
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/index.js +0 -3
- package/lib/components/Code/helpers/index.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +2 -17
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +0 -4
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +18 -44
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +15 -29
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +2 -10
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -27
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +0 -4
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +1 -11
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +5 -32
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +0 -4
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +1 -11
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +5 -33
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +0 -4
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +1 -11
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +5 -32
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +0 -4
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +1 -11
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +5 -32
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +0 -4
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +5 -19
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +6 -32
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +4 -28
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js +2 -8
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +0 -8
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +2 -17
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +0 -8
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +3 -20
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js +0 -11
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/index.js +0 -9
- package/lib/components/DataSummary/helpers/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +0 -3
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +1 -11
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +0 -4
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +23 -54
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +0 -4
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +0 -6
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +31 -73
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +2 -8
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +1 -16
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +42 -91
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +3 -9
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +19 -48
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +15 -28
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +8 -34
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +0 -4
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +0 -4
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +29 -62
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +0 -4
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +13 -31
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +0 -4
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +14 -36
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +0 -4
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +0 -1
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +0 -3
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +0 -5
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +0 -6
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/index.js +0 -7
- package/lib/components/ItemList/helpers/index.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +0 -5
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +0 -16
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/index.js +0 -3
- package/lib/components/ItemList/hooks/index.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +3 -13
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +8 -37
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/constants.js +0 -1
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -16
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +0 -3
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/helpers/index.js +0 -4
- package/lib/components/Layout/helpers/index.js.map +1 -1
- package/lib/components/Layout/index.js +0 -4
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +7 -23
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +1 -16
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +35 -70
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +71 -140
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +24 -39
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +0 -6
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +18 -60
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +33 -46
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +5 -30
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +0 -4
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +9 -46
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +17 -51
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +0 -6
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +0 -4
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +5 -18
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +0 -4
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +6 -17
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +10 -48
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +5 -16
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +0 -4
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -8
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js +0 -8
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/components/helpers/index.js +0 -4
- package/lib/components/List/components/helpers/index.js.map +1 -1
- package/lib/components/List/components/index.js +0 -6
- package/lib/components/List/components/index.js.map +1 -1
- package/lib/components/List/constants.js +0 -6
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +0 -12
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +0 -24
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +5 -17
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +0 -20
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +0 -5
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js +0 -4
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +4 -14
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +3 -9
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/index.js +0 -10
- package/lib/components/List/helpers/index.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +2 -12
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/index.js +0 -4
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +18 -46
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +0 -5
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +0 -4
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +8 -36
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js +0 -4
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +3 -13
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +0 -4
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +18 -50
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +5 -14
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +2 -11
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +1 -8
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/index.js +0 -4
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +0 -8
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +11 -42
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -8
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +0 -8
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +23 -58
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +0 -4
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +43 -115
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +10 -50
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +17 -54
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +10 -31
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +2 -15
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/components/index.js +0 -6
- package/lib/components/SearchFilter/components/index.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +0 -1
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js +12 -43
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-query.js +0 -4
- package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-query.js +1 -14
- package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +0 -10
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +1 -7
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +0 -3
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +1 -5
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +0 -5
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +4 -13
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +2 -14
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +1 -16
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +0 -6
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +8 -24
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +0 -7
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +3 -9
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/index.js +0 -18
- package/lib/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +0 -4
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +0 -11
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +0 -4
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +10 -31
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +0 -1
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +0 -15
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/index.js +0 -4
- package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +3 -28
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +0 -4
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +6 -13
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +2 -15
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +2 -15
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +0 -4
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +0 -3
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +1 -8
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +0 -4
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +1 -12
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +4 -31
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +12 -42
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js +5 -24
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -13
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js +0 -4
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +3 -9
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +0 -9
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +9 -38
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -10
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +4 -13
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +35 -64
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +7 -19
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +4 -20
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +0 -4
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +5 -15
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +26 -56
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +0 -4
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +2 -16
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +5 -26
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +0 -3
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-image-properties.js +4 -11
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +7 -36
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +4 -9
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +9 -51
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +0 -4
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +21 -62
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js +8 -40
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +37 -70
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +0 -8
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +8 -30
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/check-for-error.js +4 -11
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +0 -7
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +0 -1
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-banner-data.js +3 -18
- package/lib/helpers/get-banner-data.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +3 -25
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js +0 -4
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js +0 -3
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +0 -5
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +0 -4
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js +0 -4
- package/lib/helpers/get-entities-with-banner.js.map +1 -1
- package/lib/helpers/get-entity-data.js +2 -14
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +2 -7
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +0 -4
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +23 -43
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +1 -7
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +0 -18
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +6 -35
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +4 -25
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +2 -17
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +0 -12
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +0 -16
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-not-equal-query.js +0 -2
- package/lib/helpers/get-not-equal-query.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +0 -6
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +6 -29
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +0 -3
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +3 -21
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +2 -15
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +7 -21
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +9 -28
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +0 -5
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +1 -6
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +10 -32
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +0 -10
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +0 -9
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -13
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/group-entities.js +0 -8
- package/lib/helpers/group-entities.js.map +1 -1
- package/lib/helpers/has-children.js +0 -7
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/index.js +0 -55
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-banner.js +2 -10
- package/lib/helpers/inject-banner.js.map +1 -1
- package/lib/helpers/inject-banners-to-entities.js +1 -10
- package/lib/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +1 -9
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +0 -4
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +0 -20
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +0 -11
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +0 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +0 -4
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +0 -4
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js +0 -6
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib/helpers/is-browser.js +0 -3
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +0 -9
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +0 -6
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +0 -3
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +4 -24
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-interval.js +0 -2
- package/lib/helpers/parse-interval.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +5 -27
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +2 -7
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +0 -24
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +1 -28
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +0 -3
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js +1 -4
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js +0 -9
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +4 -26
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +2 -18
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +11 -27
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +3 -26
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +1 -26
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +15 -61
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +5 -15
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +2 -19
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +0 -1
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +0 -4
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-banners-by-type.js +6 -17
- package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +0 -33
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getComponent.js +0 -3
- package/lib/hooks/helpers/getComponent.js.map +1 -1
- package/lib/hooks/helpers/index.js +0 -4
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-banners.js +5 -34
- package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +16 -57
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +7 -44
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +0 -6
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/index.js +0 -10
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +2 -13
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +5 -17
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +9 -23
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +2 -15
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +17 -35
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +7 -17
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +8 -15
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +3 -16
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js +6 -13
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js +1 -16
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +15 -39
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-image-data.js +2 -17
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +0 -4
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +0 -7
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-object-empty.js +0 -3
- package/lib/utils/is-object-empty.js.map +1 -1
- package/lib-es/BannerContext/helpers/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js +0 -1
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib-es/BannerContext/index.js +0 -2
- package/lib-es/BannerContext/index.js.map +1 -1
- package/lib-es/HOC/index.js.map +1 -1
- package/lib-es/HOC/withInfiniteScroll.js +0 -6
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
- package/lib-es/HOC/withTitle.js +0 -3
- package/lib-es/HOC/withTitle.js.map +1 -1
- package/lib-es/PBContext/index.js.map +1 -1
- package/lib-es/application/query/index.js +2 -14
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/BackToTop/BackToTop.js +4 -10
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
- package/lib-es/components/BackToTop/index.js.map +1 -1
- package/lib-es/components/Banner/AdSlotRender.js +0 -2
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
- package/lib-es/components/Banner/Banner.js +3 -6
- package/lib-es/components/Banner/Banner.js.map +1 -1
- package/lib-es/components/Banner/BannerRender.js +15 -23
- package/lib-es/components/Banner/BannerRender.js.map +1 -1
- package/lib-es/components/Banner/helpers.js +0 -29
- package/lib-es/components/Banner/helpers.js.map +1 -1
- package/lib-es/components/Banner/index.js +1 -3
- package/lib-es/components/Banner/index.js.map +1 -1
- package/lib-es/components/BlazeLink.js +0 -5
- package/lib-es/components/BlazeLink.js.map +1 -1
- package/lib-es/components/Breadcrumb/Breadcrumb.js +3 -6
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib-es/components/Breadcrumb/index.js.map +1 -1
- package/lib-es/components/Button.js +24 -27
- package/lib-es/components/Button.js.map +1 -1
- package/lib-es/components/Card/Card.js +27 -34
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardContainer.js +29 -33
- package/lib-es/components/Card/CardContainer.js.map +1 -1
- package/lib-es/components/Card/CardFactory.js +11 -16
- package/lib-es/components/Card/CardFactory.js.map +1 -1
- package/lib-es/components/Card/CardRender.js +6 -16
- package/lib-es/components/Card/CardRender.js.map +1 -1
- package/lib-es/components/Card/constants.js.map +1 -1
- package/lib-es/components/Card/helpers/filter-query-setup.js +2 -7
- package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/filters-setup.js +0 -2
- package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js +0 -2
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib-es/components/Card/helpers/get-published-listing-url.js +0 -1
- package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib-es/components/Card/helpers/index.js.map +1 -1
- package/lib-es/components/Card/helpers/should-return.js +0 -1
- package/lib-es/components/Card/helpers/should-return.js.map +1 -1
- package/lib-es/components/Card/helpers/should-skip-single-query.js +0 -2
- package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js +0 -1
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib-es/components/Card/index.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +5 -8
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +0 -4
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +4 -11
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib-es/components/Carousel/index.js.map +1 -1
- package/lib-es/components/CarouselWrapper.js +0 -8
- package/lib-es/components/CarouselWrapper.js.map +1 -1
- package/lib-es/components/ClickWrapper.js +5 -11
- package/lib-es/components/ClickWrapper.js.map +1 -1
- package/lib-es/components/Code/Code.js +3 -7
- package/lib-es/components/Code/Code.js.map +1 -1
- package/lib-es/components/Code/ScriptTag.js +3 -6
- package/lib-es/components/Code/ScriptTag.js.map +1 -1
- package/lib-es/components/Code/helpers/index.js.map +1 -1
- package/lib-es/components/Code/helpers/wrap-script-tags.js +4 -10
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib-es/components/Code/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryFactory.js +12 -15
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryRender.js +10 -13
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +3 -6
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +3 -6
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +3 -6
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +3 -6
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +0 -2
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +5 -15
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js +0 -7
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js +0 -7
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js +0 -3
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js +0 -5
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js +0 -2
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js +0 -1
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-prop-value.js +0 -4
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js +0 -2
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js +0 -1
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js +0 -2
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib-es/components/DataSummary/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/EmailConfirm.js +0 -3
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib-es/components/EmailConfirm/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +12 -23
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +0 -2
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js +1 -3
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib-es/components/Image/Image.js +24 -32
- package/lib-es/components/Image/Image.js.map +1 -1
- package/lib-es/components/Image/ImageDetails.js +0 -2
- package/lib-es/components/Image/ImageDetails.js.map +1 -1
- package/lib-es/components/Image/ImageFactory.js +0 -2
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js +17 -20
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Image/Lightbox/Lightbox.js +2 -2
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib-es/components/Image/Lightbox/index.js.map +1 -1
- package/lib-es/components/Image/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +0 -7
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +0 -4
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js +0 -4
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib-es/components/ItemList/constants.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-data.js +0 -1
- package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-id.js +0 -2
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js +0 -2
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib-es/components/ItemList/helpers/index.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-item-list-id.js +0 -2
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js +0 -3
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib-es/components/ItemList/hooks/index.js.map +1 -1
- package/lib-es/components/ItemList/hooks/use-item-list-id.js +0 -3
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +8 -14
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/constants.js.map +1 -1
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js +0 -3
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js +0 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib-es/components/Layout/helpers/index.js.map +1 -1
- package/lib-es/components/Layout/index.js.map +1 -1
- package/lib-es/components/LazyImage/LazyImage.js +6 -9
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
- package/lib-es/components/LazyImage/index.js +1 -3
- package/lib-es/components/LazyImage/index.js.map +1 -1
- package/lib-es/components/List/ListBuilder.js +0 -6
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js +0 -7
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/ListRender.js +0 -2
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRender.js +14 -20
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderItem.js +0 -2
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js +7 -10
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib-es/components/List/components/Cards/index.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js +9 -16
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js +0 -5
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib-es/components/List/components/Full/index.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js +0 -2
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Header/index.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js +0 -2
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js +9 -19
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js +0 -4
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/components/Pagination/index.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js +0 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js +0 -3
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib-es/components/List/components/helpers/index.js.map +1 -1
- package/lib-es/components/List/components/index.js.map +1 -1
- package/lib-es/components/List/constants.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-aggregations.js +0 -5
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-url.js +0 -8
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js +0 -5
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js +0 -6
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/List/helpers/get-az-query-filter.js +0 -2
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js +0 -2
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib-es/components/List/helpers/get-sort-props.js +0 -1
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib-es/components/List/helpers/has-required-item-list-details.js +0 -4
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib-es/components/List/helpers/index.js.map +1 -1
- package/lib-es/components/List/helpers/sort-aggs.js +0 -2
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib-es/components/List/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +0 -3
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/Menu/index.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItem.js +0 -5
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-es/components/MenuItem/index.js.map +1 -1
- package/lib-es/components/Modal/Modal.js +5 -8
- package/lib-es/components/Modal/Modal.js.map +1 -1
- package/lib-es/components/Modal/index.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +0 -8
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentItems.js +0 -2
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +0 -3
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +0 -3
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchContent/index.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js +0 -2
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js +6 -14
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js +0 -2
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +0 -2
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +0 -7
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -17
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js +0 -7
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Range.js +2 -9
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js +0 -4
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilter/components/TextSearch.js +0 -2
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib-es/components/SearchFilter/components/index.js.map +1 -1
- package/lib-es/components/SearchFilter/constants.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-filters-query.js +0 -9
- package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-new-query.js +0 -1
- package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-query.js +0 -3
- package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js +0 -4
- package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js +0 -2
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-step.js +0 -1
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js +0 -2
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/decode-encode.js +0 -2
- package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-display-value.js +0 -1
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js +0 -6
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js +0 -4
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js +0 -2
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-range-value.js +0 -4
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js +0 -2
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-select-options.js +0 -2
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js +0 -2
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js +0 -6
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib-es/components/SearchFilter/index.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js +0 -4
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js +0 -4
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js +0 -7
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/index.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js +0 -2
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollow.js +3 -6
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollowRender.js +0 -2
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib-es/components/SocialFollow/index.js.map +1 -1
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
- package/lib-es/components/SubMenu/SubMenu.js +0 -2
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
- package/lib-es/components/SubMenu/index.js.map +1 -1
- package/lib-es/components/TextBlock/TextBlockRender.js +0 -2
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib-es/components/TextBlock/index.js +6 -11
- package/lib-es/components/TextBlock/index.js.map +1 -1
- package/lib-es/components/Video/Video.js +12 -18
- package/lib-es/components/Video/Video.js.map +1 -1
- package/lib-es/components/Video/VideoModal.js +2 -4
- package/lib-es/components/Video/VideoModal.js.map +1 -1
- package/lib-es/components/Video/VideoRender.js +3 -6
- package/lib-es/components/Video/VideoRender.js.map +1 -1
- package/lib-es/components/Video/index.js.map +1 -1
- package/lib-es/components/Video/providers/Default.js +2 -2
- package/lib-es/components/Video/providers/Default.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js +1 -11
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js +0 -10
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js +0 -2
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js +0 -2
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -8
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/helpers/index.js +0 -4
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js +4 -14
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/components/Video/providers/index.js.map +1 -1
- package/lib-es/components/Wrapper.js +7 -8
- package/lib-es/components/Wrapper.js.map +1 -1
- package/lib-es/components/index.js +26 -87
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/constants/componentsDefaultValues.js.map +1 -1
- package/lib-es/constants/index.js +1 -7
- package/lib-es/constants/index.js.map +1 -1
- package/lib-es/helpers/append-images.js +0 -4
- package/lib-es/helpers/append-images.js.map +1 -1
- package/lib-es/helpers/build-az-filter.js +0 -1
- package/lib-es/helpers/build-az-filter.js.map +1 -1
- package/lib-es/helpers/build-image-properties.js +0 -2
- package/lib-es/helpers/build-image-properties.js.map +1 -1
- package/lib-es/helpers/build-inherited-filters.js +0 -13
- package/lib-es/helpers/build-inherited-filters.js.map +1 -1
- package/lib-es/helpers/build-link-extra-props.js +0 -2
- package/lib-es/helpers/build-link-extra-props.js.map +1 -1
- package/lib-es/helpers/build-props-query.js +0 -14
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js +0 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-raw-query-base.js +0 -12
- package/lib-es/helpers/build-raw-query-base.js.map +1 -1
- package/lib-es/helpers/build-raw-query.js +0 -12
- package/lib-es/helpers/build-raw-query.js.map +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js +0 -6
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib-es/helpers/build-search-values-text.js +0 -2
- package/lib-es/helpers/build-search-values-text.js.map +1 -1
- package/lib-es/helpers/build-set-filters.js +0 -7
- package/lib-es/helpers/build-set-filters.js.map +1 -1
- package/lib-es/helpers/check-for-error.js +0 -1
- package/lib-es/helpers/check-for-error.js.map +1 -1
- package/lib-es/helpers/check-props-to-use.js +2 -2
- package/lib-es/helpers/check-props-to-use.js.map +1 -1
- package/lib-es/helpers/entities/constants.js.map +1 -1
- package/lib-es/helpers/get-banner-data.js +0 -3
- package/lib-es/helpers/get-banner-data.js.map +1 -1
- package/lib-es/helpers/get-click-wrapper-options.js +0 -5
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib-es/helpers/get-current-offset.js +0 -1
- package/lib-es/helpers/get-current-offset.js.map +1 -1
- package/lib-es/helpers/get-dictionary-match.js +0 -2
- package/lib-es/helpers/get-dictionary-match.js.map +1 -1
- package/lib-es/helpers/get-display-count-data.js +0 -2
- package/lib-es/helpers/get-display-count-data.js.map +1 -1
- package/lib-es/helpers/get-elasticsearch-operator.js +0 -2
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
- package/lib-es/helpers/get-entity-data.js +0 -5
- package/lib-es/helpers/get-entity-data.js.map +1 -1
- package/lib-es/helpers/get-entity-render-props.js +0 -2
- package/lib-es/helpers/get-entity-render-props.js.map +1 -1
- package/lib-es/helpers/get-extra-az-bits.js +0 -2
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
- package/lib-es/helpers/get-filter-props.js +0 -4
- package/lib-es/helpers/get-filter-props.js.map +1 -1
- package/lib-es/helpers/get-filter-relation-keys.js +0 -1
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib-es/helpers/get-generic-props.js +0 -5
- package/lib-es/helpers/get-generic-props.js.map +1 -1
- package/lib-es/helpers/get-generic-render-variables.js +0 -10
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
- package/lib-es/helpers/get-image-ids.js +0 -6
- package/lib-es/helpers/get-image-ids.js.map +1 -1
- package/lib-es/helpers/get-inherited-filters.js +0 -1
- package/lib-es/helpers/get-inherited-filters.js.map +1 -1
- package/lib-es/helpers/get-items-to-display-ids.js +0 -1
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib-es/helpers/get-modifiers.js +0 -3
- package/lib-es/helpers/get-modifiers.js.map +1 -1
- package/lib-es/helpers/get-not-equal-query.js.map +1 -1
- package/lib-es/helpers/get-pagination-index.js +0 -2
- package/lib-es/helpers/get-pagination-index.js.map +1 -1
- package/lib-es/helpers/get-parsed-prop-values.js +0 -5
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib-es/helpers/get-parsed-summary-value.js +0 -2
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib-es/helpers/get-prop-values.js +0 -5
- package/lib-es/helpers/get-prop-values.js.map +1 -1
- package/lib-es/helpers/get-query-filters.js +0 -3
- package/lib-es/helpers/get-query-filters.js.map +1 -1
- package/lib-es/helpers/get-query-props.js +0 -4
- package/lib-es/helpers/get-query-props.js.map +1 -1
- package/lib-es/helpers/get-required-schemas.js +0 -3
- package/lib-es/helpers/get-required-schemas.js.map +1 -1
- package/lib-es/helpers/get-sanitized-prop-values.js +0 -1
- package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib-es/helpers/get-search-filter-type.js +0 -1
- package/lib-es/helpers/get-search-filter-type.js.map +1 -1
- package/lib-es/helpers/get-sort-by-field-name.js +0 -5
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib-es/helpers/get-unpublished-entity-name.js +0 -2
- package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib-es/helpers/get-updated-filter-by.js +0 -3
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/helpers/get-wrapped-value-with-link.js +0 -3
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib-es/helpers/group-entities.js +0 -2
- package/lib-es/helpers/group-entities.js.map +1 -1
- package/lib-es/helpers/has-children.js +0 -3
- package/lib-es/helpers/has-children.js.map +1 -1
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-banner.js.map +1 -1
- package/lib-es/helpers/inject-banners-to-entities.js +3 -4
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +0 -3
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib-es/helpers/is-browser.js +0 -1
- package/lib-es/helpers/is-browser.js.map +1 -1
- package/lib-es/helpers/is-filter-entitys-id.js +0 -2
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib-es/helpers/is-object.js +0 -1
- package/lib-es/helpers/is-object.js.map +1 -1
- package/lib-es/helpers/is-using-relation-image.js +0 -1
- package/lib-es/helpers/is-using-relation-image.js.map +1 -1
- package/lib-es/helpers/parse-TextBlock.js +0 -4
- package/lib-es/helpers/parse-TextBlock.js.map +1 -1
- package/lib-es/helpers/parse-interval.js.map +1 -1
- package/lib-es/helpers/parse-props-to-display.js +2 -2
- package/lib-es/helpers/parse-props-to-display.js.map +1 -1
- package/lib-es/helpers/remove-extra-items.js +2 -5
- package/lib-es/helpers/remove-extra-items.js.map +1 -1
- package/lib-es/helpers/remove-unwanted-characters.js +0 -6
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib-es/helpers/render-children.js +0 -8
- package/lib-es/helpers/render-children.js.map +1 -1
- package/lib-es/helpers/should-render-waypoint.js +0 -1
- package/lib-es/helpers/should-render-waypoint.js.map +1 -1
- package/lib-es/helpers/should-show-property.js +0 -1
- package/lib-es/helpers/should-show-property.js.map +1 -1
- package/lib-es/helpers/sort-response-data.js +0 -2
- package/lib-es/helpers/sort-response-data.js.map +1 -1
- package/lib-es/helpers/split-children.js +0 -6
- package/lib-es/helpers/split-children.js.map +1 -1
- package/lib-es/helpers/update-childrens-parent.js +2 -6
- package/lib-es/helpers/update-childrens-parent.js.map +1 -1
- package/lib-es/hooks/helpers/RenderComponent.js +9 -12
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/StoreImages.js +0 -13
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
- package/lib-es/hooks/helpers/append-gtm-classname.js +0 -5
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.js +0 -9
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib-es/hooks/helpers/check-banner-insertion-set.js +0 -3
- package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib-es/hooks/helpers/check-collisions.js +0 -5
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
- package/lib-es/hooks/helpers/constants.js.map +1 -1
- package/lib-es/hooks/helpers/get-banner-index.js +0 -1
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib-es/hooks/helpers/get-banners-by-type.js +0 -3
- package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib-es/hooks/helpers/get-lightbox-images.js +0 -14
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib-es/hooks/helpers/getComponent.js.map +1 -1
- package/lib-es/hooks/helpers/index.js.map +1 -1
- package/lib-es/hooks/helpers/inject-element-banners.js +0 -12
- package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js +0 -14
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib-es/hooks/helpers/insert-banners.js +2 -18
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
- package/lib-es/hooks/helpers/update-targetings.js +0 -2
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
- package/lib-es/hooks/index.js.map +1 -1
- package/lib-es/hooks/use-banner-insertion.js +0 -2
- package/lib-es/hooks/use-banner-insertion.js.map +1 -1
- package/lib-es/hooks/use-check-mobile-screen.js +2 -5
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schema.js +0 -4
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js +2 -4
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js +0 -2
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js +0 -4
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/hooks/use-get-single-entity-schema.js +0 -2
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-page-builder.js +0 -3
- package/lib-es/hooks/use-page-builder.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/component-map.js +0 -7
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/get-class-modifiers.js +0 -3
- package/lib-es/utils/get-class-modifiers.js.map +1 -1
- package/lib-es/utils/get-image-data.js +0 -4
- package/lib-es/utils/get-image-data.js.map +1 -1
- package/lib-es/utils/get-props-to-display-modifiers.js +0 -1
- package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib-es/utils/index.js.map +1 -1
- package/lib-es/utils/is-object-empty.js.map +1 -1
- package/package.json +6 -5
- package/src/components/Button.js +11 -4
- package/src/components/index.js +1 -7
- package/src/constants/index.js +0 -13
- package/src/index.js +1 -1
- package/tests/unit/src/components/Button.test.js +7 -0
- package/tests/unit/src/components/__snapshots__/index.test.js.snap +0 -12
- package/lib/components/Login/LoggedInMessage.js +0 -34
- package/lib/components/Login/LoggedInMessage.js.map +0 -1
- package/lib/components/Login/Login.js +0 -180
- package/lib/components/Login/Login.js.map +0 -1
- package/lib/components/Login/LoginForm.js +0 -138
- package/lib/components/Login/LoginForm.js.map +0 -1
- package/lib/components/Login/helpers/check-gtm-children.js +0 -58
- package/lib/components/Login/helpers/check-gtm-children.js.map +0 -1
- package/lib/components/Login/helpers/get-url-to-use.js +0 -22
- package/lib/components/Login/helpers/get-url-to-use.js.map +0 -1
- package/lib/components/Login/helpers/index.js +0 -26
- package/lib/components/Login/helpers/index.js.map +0 -1
- package/lib/components/Login/index.js +0 -16
- package/lib/components/Login/index.js.map +0 -1
- package/lib/components/PasswordReset/PasswordReset.js +0 -229
- package/lib/components/PasswordReset/PasswordReset.js.map +0 -1
- package/lib/components/PasswordReset/helpers/index.js +0 -18
- package/lib/components/PasswordReset/helpers/index.js.map +0 -1
- package/lib/components/PasswordReset/helpers/validatePassword.js +0 -21
- package/lib/components/PasswordReset/helpers/validatePassword.js.map +0 -1
- package/lib/components/PasswordReset/index.js +0 -16
- package/lib/components/PasswordReset/index.js.map +0 -1
- package/lib/components/PasswordResetRequest/PasswordResetRequest.js +0 -146
- package/lib/components/PasswordResetRequest/PasswordResetRequest.js.map +0 -1
- package/lib/components/PasswordResetRequest/index.js +0 -16
- package/lib/components/PasswordResetRequest/index.js.map +0 -1
- package/lib-es/components/Login/LoggedInMessage.js +0 -20
- package/lib-es/components/Login/LoggedInMessage.js.map +0 -1
- package/lib-es/components/Login/Login.js +0 -90
- package/lib-es/components/Login/Login.js.map +0 -1
- package/lib-es/components/Login/LoginForm.js +0 -93
- package/lib-es/components/Login/LoginForm.js.map +0 -1
- package/lib-es/components/Login/helpers/check-gtm-children.js +0 -41
- package/lib-es/components/Login/helpers/check-gtm-children.js.map +0 -1
- package/lib-es/components/Login/helpers/get-url-to-use.js +0 -11
- package/lib-es/components/Login/helpers/get-url-to-use.js.map +0 -1
- package/lib-es/components/Login/helpers/index.js +0 -4
- package/lib-es/components/Login/helpers/index.js.map +0 -1
- package/lib-es/components/Login/index.js +0 -3
- package/lib-es/components/Login/index.js.map +0 -1
- package/lib-es/components/PasswordReset/PasswordReset.js +0 -153
- package/lib-es/components/PasswordReset/PasswordReset.js.map +0 -1
- package/lib-es/components/PasswordReset/helpers/index.js +0 -3
- package/lib-es/components/PasswordReset/helpers/index.js.map +0 -1
- package/lib-es/components/PasswordReset/helpers/validatePassword.js +0 -9
- package/lib-es/components/PasswordReset/helpers/validatePassword.js.map +0 -1
- package/lib-es/components/PasswordReset/index.js +0 -3
- package/lib-es/components/PasswordReset/index.js.map +0 -1
- package/lib-es/components/PasswordResetRequest/PasswordResetRequest.js +0 -94
- package/lib-es/components/PasswordResetRequest/PasswordResetRequest.js.map +0 -1
- package/lib-es/components/PasswordResetRequest/index.js +0 -3
- package/lib-es/components/PasswordResetRequest/index.js.map +0 -1
- package/src/components/Login/LoggedInMessage.js +0 -24
- package/src/components/Login/Login.js +0 -74
- package/src/components/Login/LoginForm.js +0 -81
- package/src/components/Login/helpers/check-gtm-children.js +0 -30
- package/src/components/Login/helpers/get-url-to-use.js +0 -6
- package/src/components/Login/helpers/index.js +0 -4
- package/src/components/Login/index.js +0 -3
- package/src/components/PasswordReset/PasswordReset.js +0 -120
- package/src/components/PasswordReset/helpers/index.js +0 -3
- package/src/components/PasswordReset/helpers/validatePassword.js +0 -8
- package/src/components/PasswordReset/index.js +0 -3
- package/src/components/PasswordResetRequest/PasswordResetRequest.js +0 -82
- package/src/components/PasswordResetRequest/index.js +0 -3
- package/tests/unit/src/components/Login/Login.test.js +0 -36
- package/tests/unit/src/components/Login/__snapshots__/Login.test.js.snap +0 -103
- package/tests/unit/src/components/Login/helpers/check-gtm-children.test.js +0 -60
- package/tests/unit/src/components/Login/helpers/get-url-to-use.test.js +0 -15
- package/tests/unit/src/components/PasswordReset/PasswordReset.test.js +0 -85
- package/tests/unit/src/components/PasswordReset/__snapshots__/PasswordReset.test.js.snap +0 -83
- package/tests/unit/src/components/PasswordReset/helpers/validatePassword.test.js +0 -21
- package/tests/unit/src/components/PasswordResetRequest/PasswordResetRequest.test.js +0 -79
- package/tests/unit/src/components/PasswordResetRequest/__snapshots__/PasswordResetRequest.test.js.snap +0 -39
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import flatten from 'lodash.flatten';
|
|
2
2
|
import isFilterEntitysId from './is-filter-entitys-id';
|
|
3
3
|
import getFilterProps from './get-filter-props';
|
|
4
|
-
|
|
5
4
|
const getRelationData = (entityData, relationName, currentRelationNames) => {
|
|
6
5
|
if (!entityData) return null;
|
|
7
|
-
|
|
8
6
|
if (currentRelationNames && currentRelationNames.length) {
|
|
9
7
|
const arrayOfRelations = currentRelationNames.map(name => entityData[name]).filter(Boolean);
|
|
10
8
|
return arrayOfRelations.length ? flatten(arrayOfRelations) : null;
|
|
11
9
|
}
|
|
12
|
-
|
|
13
10
|
return entityData[relationName];
|
|
14
11
|
};
|
|
15
|
-
|
|
16
12
|
const checkIfArrayHasData = (isDataArray, relationData) => isDataArray && !!relationData.length;
|
|
17
|
-
|
|
18
13
|
const setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationName) => {
|
|
19
14
|
const filters = [];
|
|
20
|
-
|
|
21
15
|
if (arrayHasData) {
|
|
22
16
|
const filterValues = relationData.reduce((acc, relationValue) => {
|
|
23
17
|
if (relationValue && typeof relationValue !== 'object') acc.push(`${relationName}/${relationValue}`);
|
|
@@ -27,10 +21,8 @@ const setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationN
|
|
|
27
21
|
} else if (!isDataArray && typeof relationData !== 'object') {
|
|
28
22
|
filters.push(`${relationName}/${relationData}`);
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
return filters;
|
|
32
25
|
};
|
|
33
|
-
|
|
34
26
|
const buildInheritedFilters = (entityData, inheritedFilters, currentSchema, filterEntitySchema, itemId) => {
|
|
35
27
|
const relationFilters = [];
|
|
36
28
|
const {
|
|
@@ -47,20 +39,16 @@ const buildInheritedFilters = (entityData, inheritedFilters, currentSchema, filt
|
|
|
47
39
|
shouldIgnoreFilter
|
|
48
40
|
} = getFilterProps(filter, currentSchema, filterEntitySchema);
|
|
49
41
|
const relationData = getRelationData(entityData, relationName, relationForeignKeys);
|
|
50
|
-
|
|
51
42
|
if (currentEntityId === entityName && isFilterEntitysId(filterName, currentEntityId) || shouldIgnoreFilter) {
|
|
52
43
|
relationFilters.push(`${filterName}/${itemId}`);
|
|
53
44
|
}
|
|
54
|
-
|
|
55
45
|
if (!relationData) return;
|
|
56
46
|
const isDataArray = Array.isArray(relationData);
|
|
57
47
|
const arrayHasData = checkIfArrayHasData(isDataArray, relationData);
|
|
58
|
-
|
|
59
48
|
if (!relationEntityName) {
|
|
60
49
|
const filtersNoRelation = setFiltersNoRelation(isDataArray, arrayHasData, relationData, relationName);
|
|
61
50
|
relationFilters.push(...filtersNoRelation);
|
|
62
51
|
}
|
|
63
|
-
|
|
64
52
|
if (arrayHasData) {
|
|
65
53
|
const filterValues = relationData.reduce((acc, relationValue) => {
|
|
66
54
|
if (relationValue[relationProp]) acc.push(`${filterName}/${relationValue[relationProp]}`);
|
|
@@ -73,6 +61,5 @@ const buildInheritedFilters = (entityData, inheritedFilters, currentSchema, filt
|
|
|
73
61
|
});
|
|
74
62
|
return relationFilters;
|
|
75
63
|
};
|
|
76
|
-
|
|
77
64
|
export default buildInheritedFilters;
|
|
78
65
|
//# sourceMappingURL=build-inherited-filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-inherited-filters.js","names":["flatten","isFilterEntitysId","getFilterProps","getRelationData","entityData","relationName","currentRelationNames","length","arrayOfRelations","map","name","filter","Boolean","checkIfArrayHasData","isDataArray","relationData","setFiltersNoRelation","arrayHasData","filters","filterValues","reduce","acc","relationValue","push","buildInheritedFilters","inheritedFilters","currentSchema","filterEntitySchema","itemId","relationFilters","identifier","currentEntityId","forEach","filterName","entityName","relationProp","relationEntityName","relationForeignKeys","shouldIgnoreFilter","Array","isArray","filtersNoRelation"],"sources":["../../src/helpers/build-inherited-filters.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\n\nconst getRelationData = (entityData, relationName, currentRelationNames) => {\n if (!entityData) return null;\n if (currentRelationNames && currentRelationNames.length) {\n const arrayOfRelations = currentRelationNames.map(name => entityData[name]).filter(Boolean);\n return arrayOfRelations.length ? flatten(arrayOfRelations) : null;\n }\n return entityData[relationName];\n};\n\nconst checkIfArrayHasData = (isDataArray, relationData) => isDataArray && !!relationData.length;\n\nconst setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationName) => {\n const filters = [];\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n if (relationValue && typeof relationValue !== 'object')\n acc.push(`${relationName}/${relationValue}`);\n return acc;\n }, []);\n filters.push(...filterValues);\n } else if (!isDataArray && typeof relationData !== 'object') {\n filters.push(`${relationName}/${relationData}`);\n }\n\n return filters;\n};\nconst buildInheritedFilters = (\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n) => {\n const relationFilters = [];\n const { identifier: currentEntityId } = currentSchema;\n\n inheritedFilters.forEach(filter => {\n const {\n filterName,\n entityName,\n relationName,\n relationProp,\n relationEntityName,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n const relationData = getRelationData(entityData, relationName, relationForeignKeys);\n\n if (\n (currentEntityId === entityName && isFilterEntitysId(filterName, currentEntityId)) ||\n shouldIgnoreFilter\n ) {\n relationFilters.push(`${filterName}/${itemId}`);\n }\n\n if (!relationData) return;\n\n const isDataArray = Array.isArray(relationData);\n const arrayHasData = checkIfArrayHasData(isDataArray, relationData);\n\n if (!relationEntityName) {\n const filtersNoRelation = setFiltersNoRelation(\n isDataArray,\n arrayHasData,\n relationData,\n relationName\n );\n relationFilters.push(...filtersNoRelation);\n }\n\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n if (relationValue[relationProp]) acc.push(`${filterName}/${relationValue[relationProp]}`);\n return acc;\n }, []);\n relationFilters.push(...filterValues);\n } else if (!isDataArray && relationData[relationProp]) {\n relationFilters.push(`${filterName}/${relationData[relationProp]}`);\n }\n });\n\n return relationFilters;\n};\n\nexport default buildInheritedFilters;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"build-inherited-filters.js","names":["flatten","isFilterEntitysId","getFilterProps","getRelationData","entityData","relationName","currentRelationNames","length","arrayOfRelations","map","name","filter","Boolean","checkIfArrayHasData","isDataArray","relationData","setFiltersNoRelation","arrayHasData","filters","filterValues","reduce","acc","relationValue","push","buildInheritedFilters","inheritedFilters","currentSchema","filterEntitySchema","itemId","relationFilters","identifier","currentEntityId","forEach","filterName","entityName","relationProp","relationEntityName","relationForeignKeys","shouldIgnoreFilter","Array","isArray","filtersNoRelation"],"sources":["../../src/helpers/build-inherited-filters.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\n\nconst getRelationData = (entityData, relationName, currentRelationNames) => {\n if (!entityData) return null;\n if (currentRelationNames && currentRelationNames.length) {\n const arrayOfRelations = currentRelationNames.map(name => entityData[name]).filter(Boolean);\n return arrayOfRelations.length ? flatten(arrayOfRelations) : null;\n }\n return entityData[relationName];\n};\n\nconst checkIfArrayHasData = (isDataArray, relationData) => isDataArray && !!relationData.length;\n\nconst setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationName) => {\n const filters = [];\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n if (relationValue && typeof relationValue !== 'object')\n acc.push(`${relationName}/${relationValue}`);\n return acc;\n }, []);\n filters.push(...filterValues);\n } else if (!isDataArray && typeof relationData !== 'object') {\n filters.push(`${relationName}/${relationData}`);\n }\n\n return filters;\n};\nconst buildInheritedFilters = (\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n) => {\n const relationFilters = [];\n const { identifier: currentEntityId } = currentSchema;\n\n inheritedFilters.forEach(filter => {\n const {\n filterName,\n entityName,\n relationName,\n relationProp,\n relationEntityName,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n const relationData = getRelationData(entityData, relationName, relationForeignKeys);\n\n if (\n (currentEntityId === entityName && isFilterEntitysId(filterName, currentEntityId)) ||\n shouldIgnoreFilter\n ) {\n relationFilters.push(`${filterName}/${itemId}`);\n }\n\n if (!relationData) return;\n\n const isDataArray = Array.isArray(relationData);\n const arrayHasData = checkIfArrayHasData(isDataArray, relationData);\n\n if (!relationEntityName) {\n const filtersNoRelation = setFiltersNoRelation(\n isDataArray,\n arrayHasData,\n relationData,\n relationName\n );\n relationFilters.push(...filtersNoRelation);\n }\n\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n if (relationValue[relationProp]) acc.push(`${filterName}/${relationValue[relationProp]}`);\n return acc;\n }, []);\n relationFilters.push(...filterValues);\n } else if (!isDataArray && relationData[relationProp]) {\n relationFilters.push(`${filterName}/${relationData[relationProp]}`);\n }\n });\n\n return relationFilters;\n};\n\nexport default buildInheritedFilters;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,iBAAiB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a,YAAY,CAAE,EAAC,CAAC;QACzF,OAAOd,GAAG;MACZ,CAAC,EAAE,EAAE,CAAC;MACNQ,eAAe,CAACN,IAAI,CAAC,GAAGJ,YAAY,CAAC;IACvC,CAAC,MAAM,IAAI,CAACL,WAAW,IAAIC,YAAY,CAACoB,YAAY,CAAC,EAAE;MACrDN,eAAe,CAACN,IAAI,CAAE,GAAEU,UAAW,IAAGlB,YAAY,CAACoB,YAAY,CAAE,EAAC,CAAC;IACrE;EACF,CAAC,CAAC;EAEF,OAAON,eAAe;AACxB,CAAC;AAED,eAAeL,qBAAqB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GTM_DATA_ID_ATTR } from '../constants';
|
|
2
|
-
|
|
3
2
|
const buildLinkExtraProps = ({
|
|
4
3
|
className,
|
|
5
4
|
name,
|
|
@@ -14,6 +13,5 @@ const buildLinkExtraProps = ({
|
|
|
14
13
|
if (gtmId) linkExtraProps[GTM_DATA_ID_ATTR] = gtmId;
|
|
15
14
|
return linkExtraProps;
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
export default buildLinkExtraProps;
|
|
19
17
|
//# sourceMappingURL=build-link-extra-props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-link-extra-props.js","names":["GTM_DATA_ID_ATTR","buildLinkExtraProps","className","name","title","as","gtmId","linkExtraProps"],"sources":["../../src/helpers/build-link-extra-props.js"],"sourcesContent":["import { GTM_DATA_ID_ATTR } from '../constants';\n\nconst buildLinkExtraProps = ({ className, name, title, as, gtmId }) => {\n const linkExtraProps = {};\n if (as) linkExtraProps.as = as;\n if (className) linkExtraProps.className = className;\n if (name) linkExtraProps.name = name;\n if (gtmId) linkExtraProps[GTM_DATA_ID_ATTR] = gtmId;\n return linkExtraProps;\n};\n\nexport default buildLinkExtraProps;\n"],"mappings":"AAAA,SAASA,
|
|
1
|
+
{"version":3,"file":"build-link-extra-props.js","names":["GTM_DATA_ID_ATTR","buildLinkExtraProps","className","name","title","as","gtmId","linkExtraProps"],"sources":["../../src/helpers/build-link-extra-props.js"],"sourcesContent":["import { GTM_DATA_ID_ATTR } from '../constants';\n\nconst buildLinkExtraProps = ({ className, name, title, as, gtmId }) => {\n const linkExtraProps = {};\n if (as) linkExtraProps.as = as;\n if (className) linkExtraProps.className = className;\n if (name) linkExtraProps.name = name;\n if (gtmId) linkExtraProps[GTM_DATA_ID_ATTR] = gtmId;\n return linkExtraProps;\n};\n\nexport default buildLinkExtraProps;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,cAAc;AAE/C,MAAMC,mBAAmB,GAAG,CAAC;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAEC,EAAE;EAAEC;AAAM,CAAC,KAAK;EACrE,MAAMC,cAAc,GAAG,CAAC,CAAC;EACzB,IAAIF,EAAE,EAAEE,cAAc,CAACF,EAAE,GAAGA,EAAE;EAC9B,IAAIH,SAAS,EAAEK,cAAc,CAACL,SAAS,GAAGA,SAAS;EACnD,IAAIC,IAAI,EAAEI,cAAc,CAACJ,IAAI,GAAGA,IAAI;EACpC,IAAIG,KAAK,EAAEC,cAAc,CAACP,gBAAgB,CAAC,GAAGM,KAAK;EACnD,OAAOC,cAAc;AACvB,CAAC;AAED,eAAeN,mBAAmB"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';
|
|
2
2
|
const defaultProps = [ID, 'name'];
|
|
3
3
|
const categoryProps = 'id publishedListingPage{id, url}';
|
|
4
|
-
|
|
5
4
|
const checkProps = props => !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);
|
|
6
|
-
|
|
7
5
|
const buildPropsQuery = (data, extraProps = [], cardOptions = null) => {
|
|
8
6
|
const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;
|
|
9
7
|
const {
|
|
@@ -16,7 +14,6 @@ const buildPropsQuery = (data, extraProps = [], cardOptions = null) => {
|
|
|
16
14
|
const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps, data);
|
|
17
15
|
return [...basicProps, ...complexProps].join(',');
|
|
18
16
|
};
|
|
19
|
-
|
|
20
17
|
const buildComplexProps = (shouldAddCategoryProps, props, {
|
|
21
18
|
getEntitySchema: {
|
|
22
19
|
relations
|
|
@@ -29,14 +26,11 @@ const buildComplexProps = (shouldAddCategoryProps, props, {
|
|
|
29
26
|
if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');
|
|
30
27
|
const jointNestedProps = nestedProps.join(',');
|
|
31
28
|
if (base === 'category' && shouldAddCategoryProps) return `${base}{${jointNestedProps}, ${categoryProps}}`;
|
|
32
|
-
|
|
33
29
|
if (base.includes('published')) {
|
|
34
30
|
return `${base}{${jointNestedProps},url}`;
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
return `${base}{${jointNestedProps}}`;
|
|
38
33
|
});
|
|
39
|
-
|
|
40
34
|
const getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {
|
|
41
35
|
const isCard = !!cardOptions;
|
|
42
36
|
const {
|
|
@@ -64,36 +58,28 @@ const getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {
|
|
|
64
58
|
typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));
|
|
65
59
|
typeBasedProps.push(...getContentProps(isContent));
|
|
66
60
|
if (properties.url || dynamicProperties.url) typeBasedProps.push('url');
|
|
67
|
-
|
|
68
61
|
if (displayThumbnail && relations.find(({
|
|
69
62
|
localField
|
|
70
63
|
}) => localField === 'image')) {
|
|
71
64
|
typeBasedProps.push('image.id', 'image.url', 'image.data');
|
|
72
65
|
}
|
|
73
|
-
|
|
74
66
|
return {
|
|
75
67
|
typeBasedProps,
|
|
76
68
|
shouldAddCategoryProps
|
|
77
69
|
};
|
|
78
70
|
};
|
|
79
|
-
|
|
80
71
|
const getContentProps = isContent => isContent ? ['url', 'sponsored', 'featured'] : [];
|
|
81
|
-
|
|
82
72
|
const getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {
|
|
83
73
|
if (!shouldAddCategoryProps) return [];
|
|
84
74
|
const props = [];
|
|
85
|
-
|
|
86
75
|
if (hasCategory) {
|
|
87
76
|
props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');
|
|
88
77
|
}
|
|
89
|
-
|
|
90
78
|
if (hasPreheader) {
|
|
91
79
|
props.push(`${PREHEADER_PROP}{name}`);
|
|
92
80
|
props.push(HEADLINE_PROP);
|
|
93
81
|
}
|
|
94
|
-
|
|
95
82
|
return props;
|
|
96
83
|
};
|
|
97
|
-
|
|
98
84
|
export default buildPropsQuery;
|
|
99
85
|
//# sourceMappingURL=build-props-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-props-query.js","names":["CATEGORY_ID","ID","PREHEADER_PROP","HEADLINE_PROP","defaultProps","categoryProps","checkProps","props","Object","keys","filter","prop","length","buildPropsQuery","data","extraProps","cardOptions","extraPropsHaveCategory","includes","typeBasedProps","shouldAddCategoryProps","getTypeBaseProps","allProps","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","getEntitySchema","relations","map","nested","split","base","matchingRelation","find","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","displayCategory","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","getCategoyProps","getContentProps","url"],"sources":["../../src/helpers/build-props-query.js"],"sourcesContent":["import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';\n\nconst defaultProps = [ID, 'name'];\nconst categoryProps = 'id publishedListingPage{id, url}';\n\nconst checkProps = props =>\n !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);\n\nconst buildPropsQuery = (data, extraProps = [], cardOptions = null) => {\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n data,\n cardOptions,\n extraPropsHaveCategory\n );\n\n const allProps = [...typeBasedProps, ...extraProps];\n\n const uniqueProps = [...new Set([...allProps])];\n\n const basicProps = uniqueProps\n .filter(prop => prop && !prop.includes('.'))\n .filter((prop, i, arr) => arr.indexOf(prop) === i);\n const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps, data);\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props, { getEntitySchema: { relations } }) =>\n props\n .filter(prop => prop && prop.includes('.'))\n .map(nested => nested.split('.')[0])\n .filter((prop, i, arr) => arr.indexOf(prop) === i)\n .map(base => {\n const matchingRelation = relations.find(({ localField }) => localField === base);\n const nestedProps = props\n .filter(\n (extraProp, i, arr) =>\n extraProp && extraProp.startsWith(`${base}.`) && arr.indexOf(extraProp) === i\n )\n .map(nested => nested.split('.')[1]);\n if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');\n\n const jointNestedProps = nestedProps.join(',');\n if (base === 'category' && shouldAddCategoryProps)\n return `${base}{${jointNestedProps}, ${categoryProps}}`;\n if (base.includes('published')) {\n return `${base}{${jointNestedProps},url}`;\n }\n return `${base}{${jointNestedProps}}`;\n });\n\nconst getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {\n const isCard = !!cardOptions;\n const { displayCategory = true, displayThumbnail = true } = cardOptions || {};\n\n const shouldAddCategoryProps =\n (isCard && displayCategory) || (!isCard && !extraPropsHaveCategory);\n\n if (!isCard) return { typeBasedProps: [ID], shouldAddCategoryProps };\n\n const { getEntitySchema } = data;\n const { interfaces, properties, dynamicProperties, relations } = getEntitySchema;\n\n const isContent = !!interfaces.includes('content/content');\n const hasCategory = checkProps(properties) || checkProps(dynamicProperties);\n const hasPreheader = properties[PREHEADER_PROP];\n\n const typeBasedProps = [...defaultProps];\n\n typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));\n typeBasedProps.push(...getContentProps(isContent));\n\n if (properties.url || dynamicProperties.url) typeBasedProps.push('url');\n\n if (displayThumbnail && relations.find(({ localField }) => localField === 'image')) {\n typeBasedProps.push('image.id', 'image.url', 'image.data');\n }\n\n return { typeBasedProps, shouldAddCategoryProps };\n};\n\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n\n const props = [];\n\n if (hasCategory) {\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n }\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n\n return props;\n};\n\nexport default buildPropsQuery;\n"],"mappings":"AAAA,SAASA,
|
|
1
|
+
{"version":3,"file":"build-props-query.js","names":["CATEGORY_ID","ID","PREHEADER_PROP","HEADLINE_PROP","defaultProps","categoryProps","checkProps","props","Object","keys","filter","prop","length","buildPropsQuery","data","extraProps","cardOptions","extraPropsHaveCategory","includes","typeBasedProps","shouldAddCategoryProps","getTypeBaseProps","allProps","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","getEntitySchema","relations","map","nested","split","base","matchingRelation","find","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","displayCategory","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","getCategoyProps","getContentProps","url"],"sources":["../../src/helpers/build-props-query.js"],"sourcesContent":["import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';\n\nconst defaultProps = [ID, 'name'];\nconst categoryProps = 'id publishedListingPage{id, url}';\n\nconst checkProps = props =>\n !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);\n\nconst buildPropsQuery = (data, extraProps = [], cardOptions = null) => {\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n data,\n cardOptions,\n extraPropsHaveCategory\n );\n\n const allProps = [...typeBasedProps, ...extraProps];\n\n const uniqueProps = [...new Set([...allProps])];\n\n const basicProps = uniqueProps\n .filter(prop => prop && !prop.includes('.'))\n .filter((prop, i, arr) => arr.indexOf(prop) === i);\n const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps, data);\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props, { getEntitySchema: { relations } }) =>\n props\n .filter(prop => prop && prop.includes('.'))\n .map(nested => nested.split('.')[0])\n .filter((prop, i, arr) => arr.indexOf(prop) === i)\n .map(base => {\n const matchingRelation = relations.find(({ localField }) => localField === base);\n const nestedProps = props\n .filter(\n (extraProp, i, arr) =>\n extraProp && extraProp.startsWith(`${base}.`) && arr.indexOf(extraProp) === i\n )\n .map(nested => nested.split('.')[1]);\n if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');\n\n const jointNestedProps = nestedProps.join(',');\n if (base === 'category' && shouldAddCategoryProps)\n return `${base}{${jointNestedProps}, ${categoryProps}}`;\n if (base.includes('published')) {\n return `${base}{${jointNestedProps},url}`;\n }\n return `${base}{${jointNestedProps}}`;\n });\n\nconst getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {\n const isCard = !!cardOptions;\n const { displayCategory = true, displayThumbnail = true } = cardOptions || {};\n\n const shouldAddCategoryProps =\n (isCard && displayCategory) || (!isCard && !extraPropsHaveCategory);\n\n if (!isCard) return { typeBasedProps: [ID], shouldAddCategoryProps };\n\n const { getEntitySchema } = data;\n const { interfaces, properties, dynamicProperties, relations } = getEntitySchema;\n\n const isContent = !!interfaces.includes('content/content');\n const hasCategory = checkProps(properties) || checkProps(dynamicProperties);\n const hasPreheader = properties[PREHEADER_PROP];\n\n const typeBasedProps = [...defaultProps];\n\n typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));\n typeBasedProps.push(...getContentProps(isContent));\n\n if (properties.url || dynamicProperties.url) typeBasedProps.push('url');\n\n if (displayThumbnail && relations.find(({ localField }) => localField === 'image')) {\n typeBasedProps.push('image.id', 'image.url', 'image.data');\n }\n\n return { typeBasedProps, shouldAddCategoryProps };\n};\n\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n\n const props = [];\n\n if (hasCategory) {\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n }\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n\n return props;\n};\n\nexport default buildPropsQuery;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,EAAE,EAAEC,cAAc,EAAEC,aAAa,QAAQ,cAAc;AAE7E,MAAMC,YAAY,GAAG,CAACH,EAAE,EAAE,MAAM,CAAC;AACjC,MAAMI,aAAa,GAAG,kCAAkC;AAExD,MAAMC,UAAU,GAAGC,KAAK,IACtB,CAAC,EAAEA,KAAK,IAAIC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,MAAM,CAACC,IAAI,IAAIA,IAAI,KAAKX,WAAW,CAAC,CAACY,MAAM,CAAC;AAE7E,MAAMC,eAAe,GAAG,CAACC,IAAI,EAAEC,UAAU,GAAG,EAAE,EAAEC,WAAW,GAAG,IAAI,KAAK;EACrE,MAAMC,sBAAsB,GAAG,CAAC,CAACF,UAAU,CAACL,MAAM,CAACC,IAAI,IAAIA,IAAI,CAACO,QAAQ,CAAC,WAAW,CAAC,CAAC,CAACN,MAAM;EAE7F,MAAM;IAAEO,cAAc;IAAEC;EAAuB,CAAC,GAAGC,gBAAgB,CACjEP,IAAI,EACJE,WAAW,EACXC,sBAAsB,CACvB;EAED,MAAMK,QAAQ,GAAG,CAAC,GAAGH,cAAc,EAAE,GAAGJ,UAAU,CAAC;EAEnD,MAAMQ,WAAW,GAAG,CAAC,GAAG,IAAIC,GAAG,CAAC,CAAC,GAAGF,QAAQ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B;EAEA,OAAOI,KAAK;AACd,CAAC;AAED,eAAeM,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityType","isFullList"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityType, isFullList) =>\n `results {\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,
|
|
1
|
+
{"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityType","isFullList"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityType, isFullList) =>\n `results {\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,qBAAqB,EAAEC,UAAU,EAAEC,UAAU,KACpE;AACH,aAAaD,UAAW;AACxB,QAAQD,qBAAsB;AAC9B;AACA;AACA,QAAQE,UAAU,GAAG,uBAAuB,GAAG,EAAG;AAClD;AACA;AACA;AACA,GAAG;AAEH,eAAeH,gBAAgB"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
4
|
import getItemsToDisplayIds from './get-items-to-display-ids';
|
|
8
5
|
import { OR, OR_OPERATOR, KEYWORD } from '../constants';
|
|
9
|
-
|
|
10
6
|
const buildCheckboxFilters = checkboxFilters => checkboxFilters.reduce((acc, checkboxFilter) => {
|
|
11
7
|
acc.push({
|
|
12
8
|
match: {
|
|
@@ -15,14 +11,12 @@ const buildCheckboxFilters = checkboxFilters => checkboxFilters.reduce((acc, che
|
|
|
15
11
|
});
|
|
16
12
|
return acc;
|
|
17
13
|
}, []);
|
|
18
|
-
|
|
19
14
|
const buildFilterValues = (listFilterValues, relations, stringProps) => {
|
|
20
15
|
const listFilterValuesKeys = Object.keys(listFilterValues);
|
|
21
16
|
return listFilterValuesKeys.map(key => {
|
|
22
17
|
const values = listFilterValues[key].map(el => {
|
|
23
18
|
let updatedKey = key;
|
|
24
19
|
const isRelation = key.includes('.');
|
|
25
|
-
|
|
26
20
|
if (isRelation) {
|
|
27
21
|
const [relationName, relationProp] = key.split('.');
|
|
28
22
|
const [relation] = relations.filter(({
|
|
@@ -33,7 +27,6 @@ const buildFilterValues = (listFilterValues, relations, stringProps) => {
|
|
|
33
27
|
} = relation || {};
|
|
34
28
|
if (entityIdentifier && entityIdentifier !== relationName) updatedKey = `${entityIdentifier}.${relationProp}`;
|
|
35
29
|
}
|
|
36
|
-
|
|
37
30
|
const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;
|
|
38
31
|
return {
|
|
39
32
|
match: {
|
|
@@ -48,7 +41,6 @@ const buildFilterValues = (listFilterValues, relations, stringProps) => {
|
|
|
48
41
|
};
|
|
49
42
|
});
|
|
50
43
|
};
|
|
51
|
-
|
|
52
44
|
const buildItemsToDisplayValues = itemsToDisplay => {
|
|
53
45
|
if (!itemsToDisplay || !itemsToDisplay.length) return [];
|
|
54
46
|
const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);
|
|
@@ -58,7 +50,6 @@ const buildItemsToDisplayValues = itemsToDisplay => {
|
|
|
58
50
|
}
|
|
59
51
|
}];
|
|
60
52
|
};
|
|
61
|
-
|
|
62
53
|
const buildRawQueryBase = ({
|
|
63
54
|
docType,
|
|
64
55
|
id,
|
|
@@ -84,7 +75,6 @@ const buildRawQueryBase = ({
|
|
|
84
75
|
}
|
|
85
76
|
}, ...itemsToDisplayValues, ...checkboxFiltersValue]
|
|
86
77
|
};
|
|
87
|
-
|
|
88
78
|
if (isOperatorOr) {
|
|
89
79
|
if (addListFiltersToQuery) {
|
|
90
80
|
queryFilters.push(...listFilterFinalValues);
|
|
@@ -98,7 +88,6 @@ const buildRawQueryBase = ({
|
|
|
98
88
|
} else {
|
|
99
89
|
baseBoolObject.must.push(...listFilterFinalValues);
|
|
100
90
|
}
|
|
101
|
-
|
|
102
91
|
const mustNot = id ? [{
|
|
103
92
|
ids: {
|
|
104
93
|
values: [id]
|
|
@@ -115,6 +104,5 @@ const buildRawQueryBase = ({
|
|
|
115
104
|
must_not: mustNot
|
|
116
105
|
});
|
|
117
106
|
};
|
|
118
|
-
|
|
119
107
|
export default buildRawQueryBase;
|
|
120
108
|
//# sourceMappingURL=build-raw-query-base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query-base.js","names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","must_not"],"sources":["../../src/helpers/build-raw-query-base.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-raw-query-base.js","names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","must_not"],"sources":["../../src/helpers/build-raw-query-base.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"mappings":";;;AAAA,OAAOA,oBAAoB,MAAM,4BAA4B;AAC7D,SAASC,EA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,CAAC,MAAM;MACLK,cAAc,CAACC,IAAI,CAAC3C,IAAI,CAAC;QAAEwB,IAAI,EAAE;UAAE,CAAC/B,WAAW,GAAG,CAAC,GAAG4C,qBAAqB;QAAE;MAAE,CAAC,CAAC;IACnF;EACF,CAAC,MAAM;IACLK,cAAc,CAACC,IAAI,CAAC3C,IAAI,CAAC,GAAGqC,qBAAqB,CAAC;EACpD;EAEA,MAAMQ,OAAO,GAAGZ,EAAE,GAAG,CAAC;IAAEH,GAAG,EAAE;MAAEnB,MAAM,EAAE,CAACsB,EAAE;IAAE;EAAE,CAAC,CAAC,GAAGa,SAAS;EAE5D,MAAMC,WAAW,GAAGN,YAAY,CAACb,MAAM,GACnC;IAAE,CAACnC,WAAW,GAAGgD,YAAY;IAAEO,oBAAoB,EAAE;EAAE,CAAC,GACxD,CAAC,CAAC;EACN,uCACKD,WAAW;IACd3B,MAAM,EAAE;MACNI,IAAI,EAAEkB;IACR,CAAC;IACDO,QAAQ,EAAEJ;EAAO;AAErB,CAAC;AAED,eAAed,iBAAiB"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
4
|
import buildRawQueryBase from './build-raw-query-base';
|
|
8
5
|
import getItemsToDisplayIds from './get-items-to-display-ids';
|
|
9
6
|
import getExtraAzBits from './get-extra-az-bits';
|
|
10
7
|
import buildAzFilter from './build-az-filter';
|
|
11
8
|
import { AND_OPERATOR } from '../constants';
|
|
12
|
-
|
|
13
9
|
const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToDisplay, shouldApplySort, azOptions) => {
|
|
14
10
|
const {
|
|
15
11
|
searchValuesText,
|
|
@@ -29,13 +25,10 @@ const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToD
|
|
|
29
25
|
} = azOptions || {};
|
|
30
26
|
const searchValuesTextCheckboxSelectJoined = operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];
|
|
31
27
|
let searchValuesTextCheckboxOr = searchValuesText;
|
|
32
|
-
|
|
33
28
|
if (searchValuesCheckboxOr.length) {
|
|
34
29
|
searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];
|
|
35
30
|
}
|
|
36
|
-
|
|
37
31
|
let finalValue;
|
|
38
|
-
|
|
39
32
|
if (searchValuesTextCheckboxSelectJoined.length) {
|
|
40
33
|
const finalValueWithCheckboxOrValues = {
|
|
41
34
|
must: [...searchValuesTextCheckboxSelectJoined, {
|
|
@@ -57,7 +50,6 @@ const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToD
|
|
|
57
50
|
}]
|
|
58
51
|
};
|
|
59
52
|
}
|
|
60
|
-
|
|
61
53
|
const mustValues = [{
|
|
62
54
|
bool: finalValue
|
|
63
55
|
}];
|
|
@@ -75,7 +67,6 @@ const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToD
|
|
|
75
67
|
}))
|
|
76
68
|
};
|
|
77
69
|
const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);
|
|
78
|
-
|
|
79
70
|
if (itemsToDisplay && itemsToDisplay.length) {
|
|
80
71
|
const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);
|
|
81
72
|
query.bool.must.push({
|
|
@@ -83,7 +74,6 @@ const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToD
|
|
|
83
74
|
values: itemsToDisplayIds
|
|
84
75
|
}
|
|
85
76
|
});
|
|
86
|
-
|
|
87
77
|
if (shouldApplySort) {
|
|
88
78
|
return _objectSpread({
|
|
89
79
|
query,
|
|
@@ -103,11 +93,9 @@ const buildRawQuery = (docType, operator, searchValues, filterData, id, itemsToD
|
|
|
103
93
|
}, azQueryBits);
|
|
104
94
|
}
|
|
105
95
|
}
|
|
106
|
-
|
|
107
96
|
return isAZ ? _objectSpread({
|
|
108
97
|
query
|
|
109
98
|
}, azQueryBits) : query;
|
|
110
99
|
};
|
|
111
|
-
|
|
112
100
|
export default buildRawQuery;
|
|
113
101
|
//# sourceMappingURL=build-raw-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query.js","names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"sources":["../../src/helpers/build-raw-query.js"],"sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-raw-query.js","names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"sources":["../../src/helpers/build-raw-query.js"],"sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"mappings":";;;AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,SAASC,YAAY,QAAQ,cAAc;AAE3C,MAAMC,aAAa,GAAG,CACpBC,OAAO,EACPC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,EAAE,EACFC,cAAc,EACdC,eAAe,EACfC,SAAS,KACN;EACH,MAAM;IACJC,gBAAgB;IAChBC,+BAA+B;IAC/BC;EACF,CAAC,GAAGR,YAAY;EAEhB,MAAM;IAAES,YAAY;IAAEC,cAAc;IAAEC,SAAS;IAAEC,WAAW;IAAEC;EAAS,CAAC,GAAGZ,UAAU;EACrF,MAAM;IAAEa,gBAAgB;IAAEC;EAA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c,CAACe,MAAM,EAAE;IAC3C,MAAMU,iBAAiB,GAAGnC,oBAAoB,CAACU,cAAc,CAAC;IAE9DuB,KAAK,CAACJ,IAAI,CAACD,IAAI,CAACQ,IAAI,CAAC;MAAEC,GAAG,EAAE;QAAEC,MAAM,EAAEH;MAAkB;IAAE,CAAC,CAAC;IAC5D,IAAIxB,eAAe,EAAE;MACnB;QACEsB,KAAK;QACLM,IAAI,EAAE;UACJC,OAAO,EAAE;YACPC,IAAI,EAAE,QAAQ;YACdC,MAAM,EAAE;cACNC,IAAI,EAAE,UAAU;cAChBC,MAAM,EACJ,kFAAkF;cACpFC,MAAM,EAAE;gBACNC,SAAS,EAAEX;cACb;YACF,CAAC;YACDY,KAAK,EAAE;UACT;QACF;MAAC,GACEb,WAAW;IAElB;EACF;EAEA,OAAOZ,IAAI;IAELW;EAAK,GACFC,WAAW,IAEhBD,KAAK;AACX,CAAC;AAED,eAAe7B,aAAa"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import flatten from 'lodash.flatten';
|
|
2
2
|
import { SEARCH_TERM, AND, KEYWORD } from '../constants';
|
|
3
|
-
|
|
4
3
|
const buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;
|
|
5
|
-
|
|
6
4
|
const getFiltersProps = filters => flatten(filters.map(({
|
|
7
5
|
propsToDisplay
|
|
8
6
|
}) => propsToDisplay));
|
|
9
|
-
|
|
10
7
|
const buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {
|
|
11
8
|
const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);
|
|
12
9
|
const rangeFilterProps = getFiltersProps(rangeFilters);
|
|
@@ -17,7 +14,6 @@ const buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, s
|
|
|
17
14
|
valuesOr
|
|
18
15
|
} = queryParams.reduce((acc, queryParam) => {
|
|
19
16
|
const isQueryParamString = typeof query[queryParam] === 'string';
|
|
20
|
-
|
|
21
17
|
if (isQueryParamString) {
|
|
22
18
|
if (rangeFilterProps.includes(queryParam)) {
|
|
23
19
|
const [min, max] = query[queryParam].split('-');
|
|
@@ -53,7 +49,6 @@ const buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, s
|
|
|
53
49
|
});
|
|
54
50
|
});
|
|
55
51
|
}
|
|
56
|
-
|
|
57
52
|
return acc;
|
|
58
53
|
}, {
|
|
59
54
|
values: [],
|
|
@@ -64,6 +59,5 @@ const buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, s
|
|
|
64
59
|
valuesOr
|
|
65
60
|
};
|
|
66
61
|
};
|
|
67
|
-
|
|
68
62
|
export default buildSearchValuesCheckboxSelect;
|
|
69
63
|
//# sourceMappingURL=build-search-values-checkbox-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-checkbox-select.js","names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"build-search-values-checkbox-select.js","names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,WAAW,EAAEC,GAAG,EAAEC,OAAO,QAAQ,cAAc;AAExD,MAAMC,cAAc,GAAGC,SAAS,IAAK,GAAEA,SAAU,IAAGF,OAAQ,EAAC;AAE7D,MAAMG,eAAe,GAAGC,OAAO,IAAIP,OAAO,CAACO,OAAO,CAACC,GAAG,CAAC,CAAC;EAAEC;AAAe,CAAC,KAA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C;MACJ;IACF,CAAC,MAAM;MACL,MAAMY,cAAc,GAAG1B,eAAe,CAACK,MAAM,CAC3C,CAAC;QAAET,cAAc,EAAE,CAAC+B,kBAAkB;MAAE,CAAC,KAAKA,kBAAkB,KAAKb,UAAU,CAChF;MAED,IAAI,CAACY,cAAc,CAACE,MAAM,EAAE,OAAOf,GAAG;MAEtC,MAAMgB,2BAA2B,GAAGH,cAAc,CAACrB,MAAM,CACvD,CAAC;QAAEyB;MAAS,CAAC,KAAKA,QAAQ,KAAKzC,GAAG,CACnC,CAACuC,MAAM;MAER,MAAMG,WAAW,GAAGF,2BAA2B,GAAGhB,GAAG,CAACF,QAAQ,GAAGE,GAAG,CAACH,MAAM;MAE3EZ,KAAK,CAACgB,UAAU,CAAC,CAACkB,OAAO,CAACC,KAAK,IAAI;QACjCF,WAAW,CAACX,IAAI,CAAC;UAAEK,KAAK,EAAE;YAAE,CAAClC,cAAc,CAACuB,UAAU,CAAC,GAAGmB;UAAM;QAAE,CAAC,CAAC;MACtE,CAAC,CAAC;IACJ;IAEA,OAAOpB,GAAG;EACZ,CAAC,EACD;IACEH,MAAM,EAAE,EAAE;IACVC,QAAQ,EAAE;EACZ,CAAC,CACF;EAED,OAAO;IAAED,MAAM;IAAEC;EAAS,CAAC;AAC7B,CAAC;AAED,eAAed,+BAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","query","fuzziness"],"sources":["../../src/helpers/build-search-values-text.js"],"sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n acc[index] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\nexport default buildSearchValuesText;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAAC;EAAEC;
|
|
1
|
+
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","query","fuzziness"],"sources":["../../src/helpers/build-search-values-text.js"],"sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n acc[index] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\nexport default buildSearchValuesText;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAAC;EAAEC;AAAe,CAAC,EAAE;EAAEC,WAAW,EAAEC;AAAW,CAAC,KAC5EF,cAAc,CAACG,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,EAAEC,KAAK,KAAK;EAC3C,IAAID,KAAK,IAAIH,UAAU,EAAE;IACvBE,GAAG,CAACE,KAAK,CAAC,GAAG;MACXC,KAAK,EAAE;QACL,CAACF,KAAK,GAAG;UACPG,KAAK,EAAEN,UAAU;UACjBO,SAAS,EAAE;QACb;MACF;IACF,CAAC;EACH;EACA,OAAOL,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AACR,eAAeL,qBAAqB"}
|