@blaze-cms/react-page-builder 0.139.0-project-admin-customisations.0 → 0.139.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 +69 -3
- package/README.md +9 -0
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -2
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +4 -6
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +1 -2
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +3 -4
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +3 -4
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +1 -2
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +15 -30
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +3 -4
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +1 -2
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +3 -4
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -4
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +1 -2
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +10 -20
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -4
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +3 -4
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +1 -2
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +3 -4
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +8 -7
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +4 -8
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js +1 -2
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +4 -6
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js +2 -4
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js +1 -2
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js +1 -2
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +1 -2
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +1 -2
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-items-to-display.js +1 -2
- package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-sort-properties.js +1 -2
- package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js +1 -2
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js +1 -2
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +1 -2
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +1 -2
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +27 -19
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +1 -2
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +1 -2
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +35 -62
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +1 -2
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js +56 -0
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib/components/Carousel/index.js +1 -2
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js +1 -2
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -4
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +1 -2
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js +1 -2
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +3 -4
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +3 -4
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +3 -4
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +1 -2
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +1 -2
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +1 -2
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +3 -4
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js +5 -10
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -2
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -2
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/index.js +1 -2
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +1 -2
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js +1 -2
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +3 -4
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +1 -2
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +1 -2
- 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 +1 -2
- 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 +1 -2
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +1 -2
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js +3 -5
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +1 -2
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +1 -2
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +1 -2
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +3 -4
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +1 -2
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +1 -2
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +1 -2
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js +2 -4
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js +1 -2
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -4
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +1 -2
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -4
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +3 -4
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +1 -2
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +23 -12
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +9 -4
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +3 -4
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +1 -2
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +1 -2
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +3 -4
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +1 -2
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +1 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +1 -2
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +1 -2
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +1 -2
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +5 -10
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -2
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +1 -2
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +8 -5
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +3 -4
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +3 -4
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js +3 -6
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -2
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +1 -2
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/index.js +1 -2
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +1 -2
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -4
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +1 -2
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +3 -4
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +1 -2
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +3 -4
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +1 -2
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +3 -4
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +1 -2
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +10 -7
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +3 -4
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +1 -2
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -2
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +1 -2
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +1 -2
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +3 -4
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +1 -2
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +1 -2
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -4
- 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 +1 -2
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/constants.js +7 -14
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +1 -2
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +2 -4
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +1 -2
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +1 -2
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +1 -2
- 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 +1 -2
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js +1 -2
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +1 -2
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js +1 -2
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +1 -2
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +1 -2
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +1 -2
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js +1 -2
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js +1 -2
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +4 -6
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +1 -2
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +3 -4
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js +1 -2
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +1 -2
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +1 -2
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +58 -56
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -2
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +17 -19
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +9 -18
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js +10 -0
- package/lib/components/SearchContent/constants.js.map +1 -0
- package/lib/components/SearchContent/index.js +1 -2
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +3 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +3 -4
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +1 -2
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +1 -2
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +1 -2
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +24 -48
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js +1 -2
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -2
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +1 -2
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +2 -4
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +1 -2
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +1 -2
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +1 -2
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +1 -2
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +1 -2
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -2
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +1 -2
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -2
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +4 -8
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +1 -2
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +2 -4
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +1 -2
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +1 -2
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +1 -2
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +1 -2
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +1 -2
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +4 -8
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +1 -2
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +1 -2
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +1 -2
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +1 -2
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +1 -2
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js +3 -4
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -2
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js +1 -2
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +1 -2
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +3 -4
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +1 -2
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +1 -2
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +3 -4
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +3 -6
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +3 -4
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +1 -2
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +1 -2
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +3 -4
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +1 -2
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +107 -212
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +1 -2
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +1 -2
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js +1 -2
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-image-properties.js +1 -2
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +1 -2
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +1 -2
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +1 -2
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -2
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js +1 -2
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +2 -4
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js +1 -2
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +1 -2
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +1 -2
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +1 -2
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +1 -2
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js +1 -2
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +1 -2
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +3 -6
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js +1 -2
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +1 -2
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js +1 -2
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js +1 -2
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +1 -2
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +1 -2
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entity-data.js +1 -2
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +1 -2
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +1 -2
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +1 -2
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +1 -2
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +1 -2
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +1 -2
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +1 -2
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +1 -2
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +1 -2
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +1 -2
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +1 -2
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +1 -2
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +1 -2
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +1 -2
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +1 -2
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +1 -2
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +1 -2
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +1 -2
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +1 -2
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +1 -2
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +1 -2
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +1 -2
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -2
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/has-children.js +1 -2
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +1 -2
- 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/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/is-browser.js +1 -2
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +1 -2
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +1 -2
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +1 -2
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +3 -4
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +3 -4
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +4 -6
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +1 -2
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +1 -2
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +1 -2
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +1 -2
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js +1 -2
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js +1 -2
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +1 -2
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +1 -2
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +10 -4
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +1 -2
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +1 -2
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +1 -2
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +1 -2
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +2 -4
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +4 -8
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +1 -2
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-banners-by-type.js +1 -2
- package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +1 -2
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js +18 -0
- package/lib/hooks/helpers/getVariant.js.map +1 -0
- package/lib/hooks/helpers/index.js +1 -2
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-banners.js +1 -2
- package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +1 -2
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +1 -2
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +1 -2
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +1 -2
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +1 -2
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +1 -2
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -2
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +3 -4
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +5 -5
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +1 -2
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +1 -2
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js +4 -5
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-image-data.js +1 -2
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +1 -2
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +7 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/variant-handler.js +39 -0
- package/lib/utils/variant-handler.js.map +1 -0
- package/lib/variants/index.js +9 -0
- package/lib/variants/index.js.map +1 -0
- package/lib-es/components/Card/Card.js +5 -3
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsContainer.js +2 -5
- package/lib-es/components/Card/CardsContainer.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js +1 -2
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +27 -17
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +33 -53
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +18 -8
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js +9 -3
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +8 -4
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js +9 -5
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +53 -49
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +16 -17
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +13 -23
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js +2 -2
- package/lib-es/hooks/helpers/RenderComponent.js +5 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js +4 -4
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/index.js +2 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/component-map.js +4 -4
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/index.js +2 -1
- package/lib-es/utils/index.js.map +1 -1
- package/lib-es/utils/variant-handler.js +26 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/index.js +2 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +10 -10
- package/src/components/Card/Card.js +1 -2
- package/src/components/Card/CardsContainer.js +0 -3
- package/src/components/Card/CardsRender.js +0 -1
- package/src/components/Carousel/Carousel.js +28 -12
- package/src/components/Carousel/CarouselRender/CarouselRender.js +36 -56
- package/src/components/Carousel/hooks/useCarouselNavigation.js +50 -0
- package/src/components/Image/ImageFactory.js +20 -5
- package/src/components/Image/ImageRender.js +14 -8
- package/src/components/Layout/Layout.js +8 -5
- package/src/components/List/components/Full/FullRender.js +11 -3
- package/src/components/SearchContent/SearchContent.js +66 -52
- package/src/components/SearchContent/SearchContentResults.js +17 -17
- package/src/components/SearchContent/SearchContentToggleIcon.js +10 -23
- package/src/components/SearchContent/constants.js +6 -0
- package/src/hooks/helpers/RenderComponent.js +4 -0
- package/src/hooks/helpers/getVariant.js +11 -0
- package/src/hooks/use-get-image-id-from-relation.js +13 -2
- package/src/hooks/use-get-images.js +4 -4
- package/src/index.js +2 -1
- package/src/utils/component-map.js +4 -5
- package/src/utils/index.js +9 -1
- package/src/utils/variant-handler.js +33 -0
- package/src/variants/index.js +1 -0
- package/tests/unit/src/components/Carousel/Carousel.test.js +23 -0
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +14 -22
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +10 -0
- package/tests/unit/src/components/Image/ImageFactory.test.js +20 -3
- package/tests/unit/src/components/Image/ImageRender.test.js +12 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +24 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +9 -0
- package/tests/unit/src/components/Image/mocks.js +49 -1
- package/tests/unit/src/components/Layout/Layout.test.js +11 -0
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +14 -1
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +24 -6
- package/tests/unit/src/components/List/components/mocks.js +9 -3
- package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +1 -1
- package/tests/unit/src/components/PlaceholderIcon/__snapshots__/index.test.js.snap +4 -6
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -7
- package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +66 -2
- package/tests/unit/src/utils/variant-handler.test.js +41 -0
|
@@ -47,6 +47,5 @@ var buildSortValues = function buildSortValues(sortFilters, relations, stringPro
|
|
|
47
47
|
sort: sortValues
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
var _default = buildSortValues;
|
|
51
|
-
exports["default"] = _default;
|
|
50
|
+
var _default = exports["default"] = buildSortValues;
|
|
52
51
|
//# sourceMappingURL=build-sort-values.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-sort-values.js","names":["_getSortByFieldName","_interopRequireDefault","require","buildAzSort","sortFilters","relations","stringProps","sortValues","forEach","_ref","sort","propsToDisplay","sortFieldName","getSortbyFieldName","toLowerCase","buildSortValues","useSortObject","length","map","_ref2","isScore","concat","filter","item","index","arr","indexOf","join","_default","exports"],"sources":["../../src/helpers/build-sort-values.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\n\nconst buildAzSort = (sortFilters, relations, stringProps) => {\n const sortValues = {};\n sortFilters.forEach(({ sort, propsToDisplay }) => {\n if (!sort) return;\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n if (sortFieldName) sortValues[sortFieldName] = sort.toLowerCase();\n });\n\n return sortValues;\n};\n\nconst buildSortValues = (sortFilters, relations, stringProps, useSortObject) => {\n if (!sortFilters || !sortFilters.length) return useSortObject ? null : { sort: [] };\n if (useSortObject) return buildAzSort(sortFilters, relations, stringProps);\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay, isScore }) => {\n if (isScore) return '_score';\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter((item, index, arr) => (!item ? false : arr.indexOf(item) === index))\n .join(',');\n\n return { sort: sortValues };\n};\n\nexport default buildSortValues;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAK;EAC3D,IAAMC,UAAU,GAAG,CAAC,CAAC;EACrBH,WAAW,CAACI,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACzC,IAAI,CAACD,IAAI,EAAE;IACX,IAAME,aAAa,GAAG,IAAAC,8BAAkB,EAACR,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,IAAIM,aAAa,EAAEL,UAAU,CAACK,aAAa,CAAC,GAAGF,IAAI,CAACI,WAAW,CAAC,CAAC;EACnE,CAAC,CAAC;EAEF,OAAOP,UAAU;AACnB,CAAC;AAED,IAAMQ,eAAe,GAAG,SAAlBA,eAAeA,CAAIX,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAEU,aAAa,EAAK;EAC9E,IAAI,CAACZ,WAAW,IAAI,CAACA,WAAW,CAACa,MAAM,EAAE,OAAOD,aAAa,GAAG,IAAI,GAAG;IAAEN,IAAI,EAAE;EAAG,CAAC;EACnF,IAAIM,aAAa,EAAE,OAAOb,WAAW,CAACC,WAAW,EAAEC,SAAS,EAAEC,WAAW,CAAC;EAE1E,IAAMC,UAAU,GAAGH,WAAW,CAC3Bc,GAAG,CAAC,UAAAC,KAAA,EAAuC;IAAA,IAApCT,IAAI,GAAAS,KAAA,CAAJT,IAAI;MAAEC,cAAc,GAAAQ,KAAA,CAAdR,cAAc;MAAES,OAAO,GAAAD,KAAA,CAAPC,OAAO;IACnC,IAAIA,OAAO,EAAE,OAAO,QAAQ;IAC5B,IAAI,CAACV,IAAI,EAAE,OAAO,IAAI;IAEtB,IAAME,aAAa,GAAG,IAAAC,8BAAkB,EAACR,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,OAAOM,aAAa,MAAAS,MAAA,CAAMT,aAAa,OAAAS,MAAA,CAAIX,IAAI,CAACI,WAAW,CAAC,CAAC,IAAK,IAAI;EACxE,CAAC,CAAC,CACDQ,MAAM,CAAC,UAACC,IAAI,EAAEC,KAAK,EAAEC,GAAG;IAAA,OAAM,CAACF,IAAI,GAAG,KAAK,GAAGE,GAAG,CAACC,OAAO,CAACH,IAAI,CAAC,KAAKC,KAAK;EAAA,CAAC,CAAC,CAC3EG,IAAI,CAAC,GAAG,CAAC;EAEZ,OAAO;IAAEjB,IAAI,EAAEH;EAAW,CAAC;AAC7B,CAAC;AAAC,IAAAqB,QAAA,
|
|
1
|
+
{"version":3,"file":"build-sort-values.js","names":["_getSortByFieldName","_interopRequireDefault","require","buildAzSort","sortFilters","relations","stringProps","sortValues","forEach","_ref","sort","propsToDisplay","sortFieldName","getSortbyFieldName","toLowerCase","buildSortValues","useSortObject","length","map","_ref2","isScore","concat","filter","item","index","arr","indexOf","join","_default","exports"],"sources":["../../src/helpers/build-sort-values.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\n\nconst buildAzSort = (sortFilters, relations, stringProps) => {\n const sortValues = {};\n sortFilters.forEach(({ sort, propsToDisplay }) => {\n if (!sort) return;\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n if (sortFieldName) sortValues[sortFieldName] = sort.toLowerCase();\n });\n\n return sortValues;\n};\n\nconst buildSortValues = (sortFilters, relations, stringProps, useSortObject) => {\n if (!sortFilters || !sortFilters.length) return useSortObject ? null : { sort: [] };\n if (useSortObject) return buildAzSort(sortFilters, relations, stringProps);\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay, isScore }) => {\n if (isScore) return '_score';\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter((item, index, arr) => (!item ? false : arr.indexOf(item) === index))\n .join(',');\n\n return { sort: sortValues };\n};\n\nexport default buildSortValues;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAK;EAC3D,IAAMC,UAAU,GAAG,CAAC,CAAC;EACrBH,WAAW,CAACI,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACzC,IAAI,CAACD,IAAI,EAAE;IACX,IAAME,aAAa,GAAG,IAAAC,8BAAkB,EAACR,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,IAAIM,aAAa,EAAEL,UAAU,CAACK,aAAa,CAAC,GAAGF,IAAI,CAACI,WAAW,CAAC,CAAC;EACnE,CAAC,CAAC;EAEF,OAAOP,UAAU;AACnB,CAAC;AAED,IAAMQ,eAAe,GAAG,SAAlBA,eAAeA,CAAIX,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAEU,aAAa,EAAK;EAC9E,IAAI,CAACZ,WAAW,IAAI,CAACA,WAAW,CAACa,MAAM,EAAE,OAAOD,aAAa,GAAG,IAAI,GAAG;IAAEN,IAAI,EAAE;EAAG,CAAC;EACnF,IAAIM,aAAa,EAAE,OAAOb,WAAW,CAACC,WAAW,EAAEC,SAAS,EAAEC,WAAW,CAAC;EAE1E,IAAMC,UAAU,GAAGH,WAAW,CAC3Bc,GAAG,CAAC,UAAAC,KAAA,EAAuC;IAAA,IAApCT,IAAI,GAAAS,KAAA,CAAJT,IAAI;MAAEC,cAAc,GAAAQ,KAAA,CAAdR,cAAc;MAAES,OAAO,GAAAD,KAAA,CAAPC,OAAO;IACnC,IAAIA,OAAO,EAAE,OAAO,QAAQ;IAC5B,IAAI,CAACV,IAAI,EAAE,OAAO,IAAI;IAEtB,IAAME,aAAa,GAAG,IAAAC,8BAAkB,EAACR,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,OAAOM,aAAa,MAAAS,MAAA,CAAMT,aAAa,OAAAS,MAAA,CAAIX,IAAI,CAACI,WAAW,CAAC,CAAC,IAAK,IAAI;EACxE,CAAC,CAAC,CACDQ,MAAM,CAAC,UAACC,IAAI,EAAEC,KAAK,EAAEC,GAAG;IAAA,OAAM,CAACF,IAAI,GAAG,KAAK,GAAGE,GAAG,CAACC,OAAO,CAACH,IAAI,CAAC,KAAKC,KAAK;EAAA,CAAC,CAAC,CAC3EG,IAAI,CAAC,GAAG,CAAC;EAEZ,OAAO;IAAEjB,IAAI,EAAEH;EAAW,CAAC;AAC7B,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,cAEad,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-for-error.js","names":["checkForError","errors","arguments","length","undefined","_ref","find","err","message","errMsg","hasErr","_default","exports"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAA,EAAoB;EAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAChC,IAAAG,IAAA,GAA4BJ,MAAM,CAACK,IAAI,CAAC;MAAA,IAACC,GAAG,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKK,GAAG,IAAIA,GAAG,CAACC,OAAO;IAAA,EAAC,IAAI,CAAC,CAAC;IAA9DC,MAAM,GAAAJ,IAAA,CAAfG,OAAO;EAEf,OAAO;IACLE,MAAM,EAAE,CAAC,CAACD,MAAM;IAChBA,MAAM,EAANA;EACF,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,
|
|
1
|
+
{"version":3,"file":"check-for-error.js","names":["checkForError","errors","arguments","length","undefined","_ref","find","err","message","errMsg","hasErr","_default","exports"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAA,EAAoB;EAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAChC,IAAAG,IAAA,GAA4BJ,MAAM,CAACK,IAAI,CAAC;MAAA,IAACC,GAAG,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKK,GAAG,IAAIA,GAAG,CAACC,OAAO;IAAA,EAAC,IAAI,CAAC,CAAC;IAA9DC,MAAM,GAAAJ,IAAA,CAAfG,OAAO;EAEf,OAAO;IACLE,MAAM,EAAE,CAAC,CAACD,MAAM;IAChBA,MAAM,EAANA;EACF,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaZ,aAAa"}
|
|
@@ -17,6 +17,5 @@ var checkPropsToUse = function checkPropsToUse() {
|
|
|
17
17
|
return propertiesToDisplay;
|
|
18
18
|
})) : propsToDisplay;
|
|
19
19
|
};
|
|
20
|
-
var _default = checkPropsToUse;
|
|
21
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = checkPropsToUse;
|
|
22
21
|
//# sourceMappingURL=check-props-to-use.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props-to-use.js","names":["_lodash","_interopRequireDefault","require","_isObject","checkPropsToUse","propsToDisplay","arguments","length","undefined","isObject","flatten","map","_ref","propertiesToDisplay","_default","exports"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAA;EAAA,IAAIC,cAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAC1CD,cAAc,IAAI,IAAAI,oBAAQ,EAACJ,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,IAAAK,kBAAO,EAACL,cAAc,CAACM,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAA,OAAOA,mBAAmB;EAAA,EAAC,CAAC,GAC7ER,cAAc;AAAA;AAAC,IAAAS,QAAA,
|
|
1
|
+
{"version":3,"file":"check-props-to-use.js","names":["_lodash","_interopRequireDefault","require","_isObject","checkPropsToUse","propsToDisplay","arguments","length","undefined","isObject","flatten","map","_ref","propertiesToDisplay","_default","exports"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAA;EAAA,IAAIC,cAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAC1CD,cAAc,IAAI,IAAAI,oBAAQ,EAACJ,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,IAAAK,kBAAO,EAACL,cAAc,CAACM,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAA,OAAOA,mBAAmB;EAAA,EAAC,CAAC,GAC7ER,cAAc;AAAA;AAAC,IAAAS,QAAA,GAAAC,OAAA,cAENX,eAAe"}
|
|
@@ -5,17 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.propsSchema = exports.defaultProps = exports.dataSchema = void 0;
|
|
8
|
-
var dataSchema = {
|
|
8
|
+
var dataSchema = exports.dataSchema = {
|
|
9
9
|
getEntitySchema: {
|
|
10
10
|
actions: {},
|
|
11
11
|
interfaces: []
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var propsSchema = {
|
|
14
|
+
var propsSchema = exports.propsSchema = {
|
|
16
15
|
itemsPerRow: {}
|
|
17
16
|
};
|
|
18
|
-
exports.
|
|
19
|
-
var defaultProps = 'id,name';
|
|
20
|
-
exports.defaultProps = defaultProps;
|
|
17
|
+
var defaultProps = exports.defaultProps = 'id,name';
|
|
21
18
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["dataSchema","getEntitySchema","actions","interfaces","
|
|
1
|
+
{"version":3,"file":"constants.js","names":["dataSchema","exports","getEntitySchema","actions","interfaces","propsSchema","itemsPerRow","defaultProps"],"sources":["../../../src/helpers/entities/constants.js"],"sourcesContent":["export const dataSchema = {\n getEntitySchema: {\n actions: {},\n interfaces: []\n }\n};\n\nexport const propsSchema = {\n itemsPerRow: {}\n};\n\nexport const defaultProps = 'id,name';\n"],"mappings":";;;;;;;AAAO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;AAEM,IAAMC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,GAAG;EACzBC,WAAW,EAAE,CAAC;AAChB,CAAC;AAEM,IAAMC,YAAY,GAAAN,OAAA,CAAAM,YAAA,GAAG,SAAS"}
|
|
@@ -10,6 +10,5 @@ var getCheckboxFilters = function getCheckboxFilters(checkboxFilters, name, valu
|
|
|
10
10
|
if (value !== 'off') checkboxFilters.push([name, value]);
|
|
11
11
|
} else if (value) checkboxFilters.push(name);
|
|
12
12
|
};
|
|
13
|
-
var _default = getCheckboxFilters;
|
|
14
|
-
exports["default"] = _default;
|
|
13
|
+
var _default = exports["default"] = getCheckboxFilters;
|
|
15
14
|
//# sourceMappingURL=get-checkbox-filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-checkbox-filters.js","names":["getCheckboxFilters","checkboxFilters","name","value","push","_default","exports"],"sources":["../../src/helpers/get-checkbox-filters.js"],"sourcesContent":["const getCheckboxFilters = (checkboxFilters, name, value) => {\n if (typeof value === 'string') {\n if (value !== 'off') checkboxFilters.push([name, value]);\n } else if (value) checkboxFilters.push(name);\n};\n\nexport default getCheckboxFilters;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,eAAe,EAAEC,IAAI,EAAEC,KAAK,EAAK;EAC3D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,KAAK,KAAK,EAAEF,eAAe,CAACG,IAAI,CAAC,CAACF,IAAI,EAAEC,KAAK,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIA,KAAK,EAAEF,eAAe,CAACG,IAAI,CAACF,IAAI,CAAC;AAC9C,CAAC;AAAC,IAAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"get-checkbox-filters.js","names":["getCheckboxFilters","checkboxFilters","name","value","push","_default","exports"],"sources":["../../src/helpers/get-checkbox-filters.js"],"sourcesContent":["const getCheckboxFilters = (checkboxFilters, name, value) => {\n if (typeof value === 'string') {\n if (value !== 'off') checkboxFilters.push([name, value]);\n } else if (value) checkboxFilters.push(name);\n};\n\nexport default getCheckboxFilters;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,eAAe,EAAEC,IAAI,EAAEC,KAAK,EAAK;EAC3D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,KAAK,KAAK,EAAEF,eAAe,CAACG,IAAI,CAAC,CAACF,IAAI,EAAEC,KAAK,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIA,KAAK,EAAEF,eAAe,CAACG,IAAI,CAACF,IAAI,CAAC;AAC9C,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaN,kBAAkB"}
|
|
@@ -61,6 +61,5 @@ var getClickWrapperOptions = function getClickWrapperOptions() {
|
|
|
61
61
|
wrapperProps: wrapperProps
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
var _default = getClickWrapperOptions;
|
|
65
|
-
exports["default"] = _default;
|
|
64
|
+
var _default = exports["default"] = getClickWrapperOptions;
|
|
66
65
|
//# sourceMappingURL=get-click-wrapper-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getClickWrapperOptions","children","undefined","componentProps","id","shouldUseClickWrapper","_ref","_ref$props","props","_ref$props2","_ref$props2$children","childComponents","wrapperProps","clickEvents","map","child","_ref2","_ref2$props","_ref2$props2","_ref2$props2$componen","component","_ref2$props2$componen2","_ref2$props2$componen3","settings","_ref2$props2$componen4","gtmEvents","find","_ref3","eventTrigger","ON_CLICK","Boolean","gtmChildren","_default","exports"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAwC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,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,OAAO,CAAC;EAElBzB,qBAAqB,GAAG,CAAC,CAACQ,WAAW,IAAI,CAAC,CAACA,WAAW,CAACnB,MAAM;EAE7D,IAAMkB,YAAY,GAAGP,qBAAqB,GAAAb,aAAA,CAAAA,aAAA;IACpCuC,WAAW,EAAE9B;EAAQ,GAAKE,cAAc;IAAEC,EAAE,EAAFA;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEO,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,IAAAoB,QAAA,
|
|
1
|
+
{"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getClickWrapperOptions","children","undefined","componentProps","id","shouldUseClickWrapper","_ref","_ref$props","props","_ref$props2","_ref$props2$children","childComponents","wrapperProps","clickEvents","map","child","_ref2","_ref2$props","_ref2$props2","_ref2$props2$componen","component","_ref2$props2$componen2","_ref2$props2$componen3","settings","_ref2$props2$componen4","gtmEvents","find","_ref3","eventTrigger","ON_CLICK","Boolean","gtmChildren","_default","exports"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ?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AAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,YAAY,GAAAD,KAAA,CAAZC,YAAY;MAAA,OAAOA,YAAY,KAAKC,mBAAQ;IAAA,EAAC;EACxE,CAAC,CAAC,CACD1C,MAAM,CAAC2C,OAAO,CAAC;EAElBzB,qBAAqB,GAAG,CAAC,CAACQ,WAAW,IAAI,CAAC,CAACA,WAAW,CAACnB,MAAM;EAE7D,IAAMkB,YAAY,GAAGP,qBAAqB,GAAAb,aAAA,CAAAA,aAAA;IACpCuC,WAAW,EAAE9B;EAAQ,GAAKE,cAAc;IAAEC,EAAE,EAAFA;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEO,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,cAEajC,sBAAsB"}
|
|
@@ -15,6 +15,5 @@ var getCurrentOffset = function getCurrentOffset() {
|
|
|
15
15
|
var cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);
|
|
16
16
|
return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;
|
|
17
17
|
};
|
|
18
|
-
var _default = getCurrentOffset;
|
|
19
|
-
exports["default"] = _default;
|
|
18
|
+
var _default = exports["default"] = getCurrentOffset;
|
|
20
19
|
//# sourceMappingURL=get-current-offset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","arguments","length","undefined","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset","_default","exports"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":";;;;;;;;AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAiE;EAAA,IAA7DC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,YAAY,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,eAAe,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,KAAK,GAAAL,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAChF,IAAIE,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACP,MAAM,CAAC;EAC/C,IAAMQ,gBAAgB,GAAGD,MAAM,CAACP,MAAM,CAAC,GAAGO,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGN,MAAM,GAAGQ,gBAAgB;AACzE,CAAC;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","arguments","length","undefined","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset","_default","exports"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":";;;;;;;;AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAiE;EAAA,IAA7DC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,YAAY,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,eAAe,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,KAAK,GAAAL,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAChF,IAAIE,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACP,MAAM,CAAC;EAC/C,IAAMQ,gBAAgB,GAAGD,MAAM,CAACP,MAAM,CAAC,GAAGO,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGN,MAAM,GAAGQ,gBAAgB;AACzE,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEaX,gBAAgB"}
|
|
@@ -16,6 +16,5 @@ var dictionary = {
|
|
|
16
16
|
var getDictionaryMatch = function getDictionaryMatch(key) {
|
|
17
17
|
return dictionary[key] || dictionary[1];
|
|
18
18
|
};
|
|
19
|
-
var _default = getDictionaryMatch;
|
|
20
|
-
exports["default"] = _default;
|
|
19
|
+
var _default = exports["default"] = getDictionaryMatch;
|
|
21
20
|
//# sourceMappingURL=get-dictionary-match.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key","_default","exports"],"sources":["../../src/helpers/get-dictionary-match.js"],"sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"mappings":";;;;;;;AAAA,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAGC,GAAG;EAAA,OAAIF,UAAU,CAACE,GAAG,CAAC,IAAIF,UAAU,CAAC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key","_default","exports"],"sources":["../../src/helpers/get-dictionary-match.js"],"sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"mappings":";;;;;;;AAAA,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAGC,GAAG;EAAA,OAAIF,UAAU,CAACE,GAAG,CAAC,IAAIF,UAAU,CAAC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEpDH,kBAAkB"}
|
|
@@ -17,6 +17,5 @@ function getDisplayCountData(displayMessage, images) {
|
|
|
17
17
|
countMessage: countMessage
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var _default = getDisplayCountData;
|
|
21
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = getDisplayCountData;
|
|
22
21
|
//# sourceMappingURL=get-display-count-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-display-count-data.js","names":["_constants","require","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","concat","IMAGE","IMAGES","countMessage","_default","exports"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":";;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,IAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,IAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,IAAMG,OAAO,MAAAC,MAAA,CAAMJ,YAAY,OAAAI,MAAA,CAAIJ,YAAY,KAAK,CAAC,GAAGK,gBAAK,GAAGC,iBAAM,CAAE;EACxE,IAAMC,YAAY,GAAGL,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB,EAAlBA,kBAAkB;IAAEK,YAAY,EAAZA;EAAa,CAAC;AAC7C;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-display-count-data.js","names":["_constants","require","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","concat","IMAGE","IMAGES","countMessage","_default","exports"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":";;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,IAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,IAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,IAAMG,OAAO,MAAAC,MAAA,CAAMJ,YAAY,OAAAI,MAAA,CAAIJ,YAAY,KAAK,CAAC,GAAGK,gBAAK,GAAGC,iBAAM,CAAE;EACxE,IAAMC,YAAY,GAAGL,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB,EAAlBA,kBAAkB;IAAEK,YAAY,EAAZA;EAAa,CAAC;AAC7C;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEcZ,mBAAmB"}
|
|
@@ -10,6 +10,5 @@ var getElasticsearchOperator = function getElasticsearchOperator(_ref) {
|
|
|
10
10
|
var operator = _ref.operator;
|
|
11
11
|
return operator === _constants.AND ? _constants.AND_OPERATOR : _constants.OR_OPERATOR;
|
|
12
12
|
};
|
|
13
|
-
var _default = getElasticsearchOperator;
|
|
14
|
-
exports["default"] = _default;
|
|
13
|
+
var _default = exports["default"] = getElasticsearchOperator;
|
|
15
14
|
//# sourceMappingURL=get-elasticsearch-operator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-elasticsearch-operator.js","names":["_constants","require","getElasticsearchOperator","_ref","operator","AND","AND_OPERATOR","OR_OPERATOR","_default","exports"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,OAAQA,QAAQ,KAAKC,cAAG,GAAGC,uBAAY,GAAGC,sBAAW;AAAA,CAAC;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-elasticsearch-operator.js","names":["_constants","require","getElasticsearchOperator","_ref","operator","AND","AND_OPERATOR","OR_OPERATOR","_default","exports"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,OAAQA,QAAQ,KAAKC,cAAG,GAAGC,uBAAY,GAAGC,sBAAW;AAAA,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEpFP,wBAAwB"}
|
|
@@ -34,6 +34,5 @@ var getEntityData = function getEntityData(entity, schema) {
|
|
|
34
34
|
entityType: publishedEntityType
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
var _default = getEntityData;
|
|
38
|
-
exports["default"] = _default;
|
|
37
|
+
var _default = exports["default"] = getEntityData;
|
|
39
38
|
//# sourceMappingURL=get-entity-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-data.js","names":["_lodash","_interopRequireDefault","require","_lodash2","getEntityData","entity","schema","publishedDocType","concat","publishedEntityType","upperFirst","camelcase","_ref","interfaces","_ref$entity","_ref$entity2","nestedInterfaces","interfacesToCheck","includes","docType","entityType","_default","exports"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { entity, docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { entity, docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,MAAM,EAAK;EACxC,IAAMC,gBAAgB,gBAAAC,MAAA,CAAgBH,MAAM,CAAE;EAC9C,IAAMI,mBAAmB,eAAAD,MAAA,CAAe,IAAAE,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC,CAAC,CAAE;EAEvE,IAAIC,MAAM,EAAE;IACV,IAAAM,IAAA,GAAwEN,MAAM,IAAI,CAAC,CAAC;MAA5EO,UAAU,GAAAD,IAAA,CAAVC,UAAU;MAAAC,WAAA,GAAAF,IAAA,CAAGP,MAAM;MAAAU,YAAA,GAAAD,WAAA,cAAsC,CAAC,CAAC,GAAAA,WAAA;MAAvBE,gBAAgB,GAAAD,YAAA,CAA5BF,UAAU;IAC1C,IAAMI,iBAAiB,GAAGJ,UAAU,IAAIG,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEb,MAAM,EAANA,MAAM;QAAEc,OAAO,EAAEd,MAAM;QAAEe,UAAU,EAAE,IAAAV,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC;MAAE,CAAC;IAC/E;EACF;EAEA,OAAO;IAAEA,MAAM,EAANA,MAAM;IAAEc,OAAO,EAAEZ,gBAAgB;IAAEa,UAAU,EAAEX;EAAoB,CAAC;AAC/E,CAAC;AAAC,IAAAY,QAAA,
|
|
1
|
+
{"version":3,"file":"get-entity-data.js","names":["_lodash","_interopRequireDefault","require","_lodash2","getEntityData","entity","schema","publishedDocType","concat","publishedEntityType","upperFirst","camelcase","_ref","interfaces","_ref$entity","_ref$entity2","nestedInterfaces","interfacesToCheck","includes","docType","entityType","_default","exports"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { entity, docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { entity, docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,MAAM,EAAK;EACxC,IAAMC,gBAAgB,gBAAAC,MAAA,CAAgBH,MAAM,CAAE;EAC9C,IAAMI,mBAAmB,eAAAD,MAAA,CAAe,IAAAE,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC,CAAC,CAAE;EAEvE,IAAIC,MAAM,EAAE;IACV,IAAAM,IAAA,GAAwEN,MAAM,IAAI,CAAC,CAAC;MAA5EO,UAAU,GAAAD,IAAA,CAAVC,UAAU;MAAAC,WAAA,GAAAF,IAAA,CAAGP,MAAM;MAAAU,YAAA,GAAAD,WAAA,cAAsC,CAAC,CAAC,GAAAA,WAAA;MAAvBE,gBAAgB,GAAAD,YAAA,CAA5BF,UAAU;IAC1C,IAAMI,iBAAiB,GAAGJ,UAAU,IAAIG,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEb,MAAM,EAANA,MAAM;QAAEc,OAAO,EAAEd,MAAM;QAAEe,UAAU,EAAE,IAAAV,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC;MAAE,CAAC;IAC/E;EACF;EAEA,OAAO;IAAEA,MAAM,EAANA,MAAM;IAAEc,OAAO,EAAEZ,gBAAgB;IAAEa,UAAU,EAAEX;EAAoB,CAAC;AAC/E,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,cAEalB,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-render-props.js","names":["_constants","require","_query","getEntityRenderProps","queryProps","data","arguments","length","undefined","dataSchema","isPreview","getEntitySchema","_getEntitySchema$acti","actions","getAllPublished","getAll","actionKey","action","getAction","_default","exports"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,UAAU,EAAwC;EAAA,IAAtCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,qBAAU;EAAA,IAAEC,SAAS,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAC5E,IAAQK,eAAe,GAAKN,IAAI,CAAxBM,eAAe;EAEvB,IAAAC,qBAAA,GAEID,eAAe,CADjBE,OAAO;IAAIC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;EAEpC,IAAMC,SAAS,GAAGN,SAAS,GAAGK,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,IAAME,MAAM,GAAG,IAAAC,gBAAS,EAACF,SAAS,EAAEZ,UAAU,CAAC;EAE/C,OAAO;IAAEY,SAAS,EAATA,SAAS;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC9B;AAAC,IAAAE,QAAA,
|
|
1
|
+
{"version":3,"file":"get-entity-render-props.js","names":["_constants","require","_query","getEntityRenderProps","queryProps","data","arguments","length","undefined","dataSchema","isPreview","getEntitySchema","_getEntitySchema$acti","actions","getAllPublished","getAll","actionKey","action","getAction","_default","exports"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,UAAU,EAAwC;EAAA,IAAtCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,qBAAU;EAAA,IAAEC,SAAS,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAC5E,IAAQK,eAAe,GAAKN,IAAI,CAAxBM,eAAe;EAEvB,IAAAC,qBAAA,GAEID,eAAe,CADjBE,OAAO;IAAIC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;EAEpC,IAAMC,SAAS,GAAGN,SAAS,GAAGK,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,IAAME,MAAM,GAAG,IAAAC,gBAAS,EAACF,SAAS,EAAEZ,UAAU,CAAC;EAE/C,OAAO;IAAEY,SAAS,EAATA,SAAS;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC9B;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEcjB,oBAAoB"}
|
|
@@ -54,6 +54,5 @@ var getExtraAzBits = function getExtraAzBits(_ref3) {
|
|
|
54
54
|
if (shouldReturnAggs) return AZ_AGGS;
|
|
55
55
|
return ALL_AZ_SORT;
|
|
56
56
|
};
|
|
57
|
-
var _default = getExtraAzBits;
|
|
58
|
-
exports["default"] = _default;
|
|
57
|
+
var _default = exports["default"] = getExtraAzBits;
|
|
59
58
|
//# sourceMappingURL=get-extra-az-bits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getAzArgs","azSortProperty","azProp","concat","AZ_AGGS","aggs","azCount","terms","script","size","sort","_defineProperty2","ALL_AZ_SORT","_script","type","lang","source","params","letters","AZ","order","getExtraAzBits","_ref3","shouldReturnAggs","isAZ","_ref3$azSortProperty","AZ_DEFAULT_PROP","azFilter","_getAzArgs","_default","exports"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ, AZ_DEFAULT_PROP } from '../constants';\n\nfunction getAzArgs(azSortProperty) {\n const azProp = `${azSortProperty}.keyword`;\n\n const AZ_AGGS = {\n aggs: {\n azCount: {\n terms: {\n script: `doc['${azProp}'].getValue().substring(0,1).toUpperCase()`,\n size: 500\n }\n }\n },\n sort: [{ [azProp]: 'asc' }]\n };\n const ALL_AZ_SORT = {\n sort: [\n {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source: `int charPos = params.letters.indexOf(doc['${azProp}'].value.substring(0,1).toUpperCase()); charPos > -1 ? charPos : 100`,\n params: {\n letters: AZ\n }\n },\n order: 'asc'\n }\n },\n { [azProp]: 'asc' }\n ]\n };\n\n return { ALL_AZ_SORT, AZ_AGGS };\n}\n\nconst getExtraAzBits = ({ shouldReturnAggs, isAZ, azSortProperty = AZ_DEFAULT_PROP, azFilter }) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n\n const { AZ_AGGS, ALL_AZ_SORT } = getAzArgs(azSortProperty);\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,SAASA,CAACC,cAAc,EAAE;EACjC,IAAMC,MAAM,MAAAC,MAAA,CAAMF,cAAc,aAAU;EAE1C,IAAMG,OAAO,GAAG;IACdC,IAAI,EAAE;MACJC,OAAO,EAAE;QACPC,KAAK,EAAE;UACLC,MAAM,UAAAL,MAAA,CAAUD,MAAM,+CAA4C;UAClEO,IAAI,EAAE;QACR;MACF;IACF,CAAC;IACDC,IAAI,EAAE,KAAAC,gBAAA,iBAAIT,MAAM,EAAG,KAAK;EAC1B,CAAC;EACD,IAAMU,WAAW,GAAG;IAClBF,IAAI,EAAE,CACJ;MACEG,OAAO,EAAE;QACPC,IAAI,EAAE,QAAQ;QACdN,MAAM,EAAE;UACNO,IAAI,EAAE,UAAU;UAChBC,MAAM,+CAAAb,MAAA,CAA+CD,MAAM,yEAAsE;UACjIe,MAAM,EAAE;YACNC,OAAO,EAAEC;UACX;QACF,CAAC;QACDC,KAAK,EAAE;MACT;IACF,CAAC,MAAAT,gBAAA,iBACET,MAAM,EAAG,KAAK;EAErB,CAAC;EAED,OAAO;IAAEU,WAAW,EAAXA,WAAW;IAAER,OAAO,EAAPA;EAAQ,CAAC;AACjC;AAEA,IAAMiB,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAA+E;EAAA,IAAzEC,gBAAgB,GAAAD,KAAA,CAAhBC,gBAAgB;IAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI;IAAAC,oBAAA,GAAAH,KAAA,CAAErB,cAAc;IAAdA,cAAc,GAAAwB,oBAAA,cAAGC,0BAAe,GAAAD,oBAAA;IAAEE,QAAQ,GAAAL,KAAA,CAARK,QAAQ;EAC1F,IAAI,CAACH,IAAI,IAAKA,IAAI,IAAIG,QAAS,EAAE,OAAO,CAAC,CAAC;EAE1C,IAAAC,UAAA,GAAiC5B,SAAS,CAACC,cAAc,CAAC;IAAlDG,OAAO,GAAAwB,UAAA,CAAPxB,OAAO;IAAEQ,WAAW,GAAAgB,UAAA,CAAXhB,WAAW;EAC5B,IAAIW,gBAAgB,EAAE,OAAOnB,OAAO;EAEpC,OAAOQ,WAAW;AACpB,CAAC;AAAC,IAAAiB,QAAA,
|
|
1
|
+
{"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getAzArgs","azSortProperty","azProp","concat","AZ_AGGS","aggs","azCount","terms","script","size","sort","_defineProperty2","ALL_AZ_SORT","_script","type","lang","source","params","letters","AZ","order","getExtraAzBits","_ref3","shouldReturnAggs","isAZ","_ref3$azSortProperty","AZ_DEFAULT_PROP","azFilter","_getAzArgs","_default","exports"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ, AZ_DEFAULT_PROP } from '../constants';\n\nfunction getAzArgs(azSortProperty) {\n const azProp = `${azSortProperty}.keyword`;\n\n const AZ_AGGS = {\n aggs: {\n azCount: {\n terms: {\n script: `doc['${azProp}'].getValue().substring(0,1).toUpperCase()`,\n size: 500\n }\n }\n },\n sort: [{ [azProp]: 'asc' }]\n };\n const ALL_AZ_SORT = {\n sort: [\n {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source: `int charPos = params.letters.indexOf(doc['${azProp}'].value.substring(0,1).toUpperCase()); charPos > -1 ? charPos : 100`,\n params: {\n letters: AZ\n }\n },\n order: 'asc'\n }\n },\n { [azProp]: 'asc' }\n ]\n };\n\n return { ALL_AZ_SORT, AZ_AGGS };\n}\n\nconst getExtraAzBits = ({ shouldReturnAggs, isAZ, azSortProperty = AZ_DEFAULT_PROP, azFilter }) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n\n const { AZ_AGGS, ALL_AZ_SORT } = getAzArgs(azSortProperty);\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,SAASA,CAACC,cAAc,EAAE;EACjC,IAAMC,MAAM,MAAAC,MAAA,CAAMF,cAAc,aAAU;EAE1C,IAAMG,OAAO,GAAG;IACdC,IAAI,EAAE;MACJC,OAAO,EAAE;QACPC,KAAK,EAAE;UACLC,MAAM,UAAAL,MAAA,CAAUD,MAAM,+CAA4C;UAClEO,IAAI,EAAE;QACR;MACF;IACF,CAAC;IACDC,IAAI,EAAE,KAAAC,gBAAA,iBAAIT,MAAM,EAAG,KAAK;EAC1B,CAAC;EACD,IAAMU,WAAW,GAAG;IAClBF,IAAI,EAAE,CACJ;MACEG,OAAO,EAAE;QACPC,IAAI,EAAE,QAAQ;QACdN,MAAM,EAAE;UACNO,IAAI,EAAE,UAAU;UAChBC,MAAM,+CAAAb,MAAA,CAA+CD,MAAM,yEAAsE;UACjIe,MAAM,EAAE;YACNC,OAAO,EAAEC;UACX;QACF,CAAC;QACDC,KAAK,EAAE;MACT;IACF,CAAC,MAAAT,gBAAA,iBACET,MAAM,EAAG,KAAK;EAErB,CAAC;EAED,OAAO;IAAEU,WAAW,EAAXA,WAAW;IAAER,OAAO,EAAPA;EAAQ,CAAC;AACjC;AAEA,IAAMiB,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAA+E;EAAA,IAAzEC,gBAAgB,GAAAD,KAAA,CAAhBC,gBAAgB;IAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI;IAAAC,oBAAA,GAAAH,KAAA,CAAErB,cAAc;IAAdA,cAAc,GAAAwB,oBAAA,cAAGC,0BAAe,GAAAD,oBAAA;IAAEE,QAAQ,GAAAL,KAAA,CAARK,QAAQ;EAC1F,IAAI,CAACH,IAAI,IAAKA,IAAI,IAAIG,QAAS,EAAE,OAAO,CAAC,CAAC;EAE1C,IAAAC,UAAA,GAAiC5B,SAAS,CAACC,cAAc,CAAC;IAAlDG,OAAO,GAAAwB,UAAA,CAAPxB,OAAO;IAAEQ,WAAW,GAAAgB,UAAA,CAAXhB,WAAW;EAC5B,IAAIW,gBAAgB,EAAE,OAAOnB,OAAO;EAEpC,OAAOQ,WAAW;AACpB,CAAC;AAAC,IAAAiB,QAAA,GAAAC,OAAA,cAEaT,cAAc"}
|
|
@@ -67,6 +67,5 @@ var getFilterProps = function getFilterProps(filter) {
|
|
|
67
67
|
shouldIgnoreFilter: shouldIgnoreFilter
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
var _default = getFilterProps;
|
|
71
|
-
exports["default"] = _default;
|
|
70
|
+
var _default = exports["default"] = getFilterProps;
|
|
72
71
|
//# sourceMappingURL=get-filter-props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-filter-props.js","names":["_getFilterRelationKeys","_interopRequireDefault","require","getFilterLocalKeys","relationName","relations","_ref","find","_ref2","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","_ref3","_ref4","foreignKey","getFilterProps","filter","_ref5","arguments","length","undefined","_ref5$relations","currentEntityRelations","_ref5$properties","properties","currentEntityProperties","_ref5$dynamicProperti","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","_ref6","_ref6$relations","filteryEntityId","_filter$split","split","_filter$split2","_slicedToArray2","_filterName$split","_filterName$split2","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","shouldIgnoreFilter","_default","exports"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,IAAAC,IAAA,GACED,SAAS,CAACE,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKL,YAAY;IAAA,EAAC,IAAI,CAAC,CAAC;IAD/DM,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,qBAAqB,EAAK;EAC/D,IAAAC,KAAA,GACED,qBAAqB,CAACN,IAAI,CAAC,UAAAQ,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,UAAU;IAAA,EAAC,IAAI,CAAC,CAAC;IADzEF,gBAAgB,GAAAI,KAAA,CAAhBJ,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMO,cAAc,GAAG,SAAjBA,cAAcA,CAClBC,MAAM,EAQH;EAAA,IAAAC,KAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAFC,CAAC,CAAC;IAAAG,eAAA,GAAAJ,KAAA,CAJJd,SAAS;IAAEmB,sBAAsB,GAAAD,eAAA,cAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAN,KAAA,CACtCO,UAAU;IAAEC,uBAAuB,GAAAF,gBAAA,cAAG,CAAC,CAAC,GAAAA,gBAAA;IAA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,wBAAwB,GAChD,IAAAE,iCAAqB,EAACL,kBAAkB,EAAEtB,sBAAsB,EAAEG,uBAAuB,CAAC,GAC1F,EAAE;EACN,IAAMyB,kBAAkB,GAAGH,wBAAwB,IAAI,CAACC,mBAAmB,CAAC7B,MAAM;EAElF,OAAO;IACLT,UAAU,EAAVA,UAAU;IACVmC,UAAU,EAAVA,UAAU;IACV3C,YAAY,EAAZA,YAAY;IACZsC,YAAY,EAAZA,YAAY;IACZC,WAAW,EAAXA,WAAW;IACXC,kBAAkB,EAAlBA,kBAAkB;IAClBI,cAAc,EAAdA,cAAc;IACdE,mBAAmB,EAAnBA,mBAAmB;IACnBE,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-filter-props.js","names":["_getFilterRelationKeys","_interopRequireDefault","require","getFilterLocalKeys","relationName","relations","_ref","find","_ref2","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","_ref3","_ref4","foreignKey","getFilterProps","filter","_ref5","arguments","length","undefined","_ref5$relations","currentEntityRelations","_ref5$properties","properties","currentEntityProperties","_ref5$dynamicProperti","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","_ref6","_ref6$relations","filteryEntityId","_filter$split","split","_filter$split2","_slicedToArray2","_filterName$split","_filterName$split2","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","shouldIgnoreFilter","_default","exports"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,IAAAC,IAAA,GACED,SAAS,CAACE,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKL,YAAY;IAAA,EAAC,IAAI,CAAC,CAAC;IAD/DM,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,qBAAqB,EAAK;EAC/D,IAAAC,KAAA,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iBAAA;IAAnDpC,YAAY,GAAAqC,kBAAA;IAAEC,YAAY,GAAAD,kBAAA;EACjC,IAAME,WAAW,GAAG,CAAC,EACnBhB,uBAAuB,CAACf,UAAU,CAAC,IAAIkB,8BAA8B,CAAClB,UAAU,CAAC,CAClF;EACD,IAAMgC,kBAAkB,GAAGF,YAAY,GACnCvC,kBAAkB,CAACC,YAAY,EAAEoB,sBAAsB,CAAC,GACxD,IAAI;EACR,IAAMqB,gBAAgB,GAAGlC,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,IAAMiC,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,IAAME,UAAU,GAAGF,gBAAgB,GAAGV,eAAe,GAAGS,kBAAkB;EAC1E,IAAMI,cAAc,GAAGjB,eAAe,KAAKe,kBAAkB;EAC7D,IAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,IAAMM,mBAAmB,GAAGD,wBAAwB,GAChD,IAAAE,iCAAqB,EAACL,kBAAkB,EAAEtB,sBAAsB,EAAEG,uBAAuB,CAAC,GAC1F,EAAE;EACN,IAAMyB,kBAAkB,GAAGH,wBAAwB,IAAI,CAACC,mBAAmB,CAAC7B,MAAM;EAElF,OAAO;IACLT,UAAU,EAAVA,UAAU;IACVmC,UAAU,EAAVA,UAAU;IACV3C,YAAY,EAAZA,YAAY;IACZsC,YAAY,EAAZA,YAAY;IACZC,WAAW,EAAXA,WAAW;IACXC,kBAAkB,EAAlBA,kBAAkB;IAClBI,cAAc,EAAdA,cAAc;IACdE,mBAAmB,EAAnBA,mBAAmB;IACnBE,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEarC,cAAc"}
|
|
@@ -18,6 +18,5 @@ var getFilterRelationKeys = function getFilterRelationKeys(entityName, currentEn
|
|
|
18
18
|
return foreignKey;
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
var _default = getFilterRelationKeys;
|
|
22
|
-
exports["default"] = _default;
|
|
21
|
+
var _default = exports["default"] = getFilterRelationKeys;
|
|
23
22
|
//# sourceMappingURL=get-filter-relation-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","_ref","entityIdentifier","foreignKey","map","_ref2","_default","exports"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB;EAAA,OACxFD,sBAAsB,CACnBE,MAAM,CACL,UAAAC,IAAA;IAAA,IAAGC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,OAC7BD,gBAAgB,KAAKL,UAAU,IAAIE,uBAAuB,CAACI,UAAU,CAAC;EAAA,CAC1E,CAAC,CACAC,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGF,UAAU,GAAAE,KAAA,CAAVF,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,IAAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","_ref","entityIdentifier","foreignKey","map","_ref2","_default","exports"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB;EAAA,OACxFD,sBAAsB,CACnBE,MAAM,CACL,UAAAC,IAAA;IAAA,IAAGC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,OAC7BD,gBAAgB,KAAKL,UAAU,IAAIE,uBAAuB,CAACI,UAAU,CAAC;EAAA,CAC1E,CAAC,CACAC,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGF,UAAU,GAAAE,KAAA,CAAVF,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAE1BX,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-props.js","names":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getGenericProps","props","undefined","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch","_default","exports"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmD,SAAAE,QAAAC,CAAA,EAAAC,CAA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a,YAAY,EAAZA;EAAY,GAAKJ,KAAK;AACjC;AAAC,IAAAM,QAAA,
|
|
1
|
+
{"version":3,"file":"get-generic-props.js","names":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getGenericProps","props","undefined","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch","_default","exports"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmD,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAEnD,SAASoB,eAAeA,CAAA,EAAsB;EAAA,IAArBC,KAAK,GAAAR,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAS,SAAA,GAAAT,SAAA,MAAGU,sBAAW;EAC1C,IAAQC,WAAW,GAAKH,KAAK,CAArBG,WAAW;EACnB,IAAMC,YAAY,GAAG,IAAAC,8BAAkB,EAACF,WAAW,CAAC;EAEpD,OAAAZ,aAAA;IAASa,YAAY,EAAZA;EAAY,GAAKJ,KAAK;AACjC;AAAC,IAAAM,QAAA,GAAAC,OAAA,cAEcR,eAAe"}
|
|
@@ -82,6 +82,5 @@ var getGenericRenderVariables = function getGenericRenderVariables(_ref) {
|
|
|
82
82
|
rawQueryStringified: JSON.stringify(rawQueryCopy)
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
-
var _default = getGenericRenderVariables;
|
|
86
|
-
exports["default"] = _default;
|
|
85
|
+
var _default = exports["default"] = getGenericRenderVariables;
|
|
87
86
|
//# sourceMappingURL=get-generic-render-variables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-render-variables.js","names":["_constants","require","_buildSortValues","_interopRequireDefault","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getCorrectSort","relations","filterProps","stringProps","useSortObject","sort","sortby","_filterProps$sortProp","sortProperties","buildSortValues","propsToDisplay","concat","_toConsumableArray2","getGenericRenderVariables","_ref","_ref$filterProps","_ref$stringProps","_ref$rawQuery","rawQuery","_ref$useRandomSort","useRandomSort","rawQueryCopy","_filterProps$limit","limit","DEFAULT_LIMIT","offset","limitToUse","Number","offsetToUse","DEFAULT_OFFSET","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_default","exports"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\nimport buildSortValues from './build-sort-values';\n\nconst getCorrectSort = (relations, filterProps, stringProps, useSortObject) => {\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps,\n useSortObject\n );\n};\n\nconst getGenericRenderVariables = ({\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n useRandomSort = false\n}) => {\n const rawQueryCopy = { ...rawQuery };\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQueryCopy && rawQueryCopy.query ? rawQueryCopy.query : rawQueryCopy,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, !!rawQueryCopy.sort);\n\n if (rawQueryCopy.sort && sort) {\n rawQueryCopy.sort = [...rawQueryCopy.sort, sort];\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n }\n\n return {\n limit: limitToUse,\n offset: offs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AW,GAAGD,MAAM,CAACF,MAAM,IAAII,yBAAc,CAAC;EAEpD,IAAIT,aAAa,EAAE;IACjB,IAAMU,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEZ,YAAY,IAAIA,YAAY,CAACY,KAAK,GAAGZ,YAAY,CAACY,KAAK,GAAGZ,YAAY;UAC7Ec,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLb,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAnBA;IACF,CAAC;EACH;EAEA,IAAMzB,IAAI,GAAGL,cAAc,CAACC,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAE,CAAC,CAACkB,YAAY,CAAChB,IAAI,CAAC;EAErF,IAAIgB,YAAY,CAAChB,IAAI,IAAIA,IAAI,EAAE;IAC7BgB,YAAY,CAAChB,IAAI,MAAAM,MAAA,KAAAC,mBAAA,aAAOS,YAAY,CAAChB,IAAI,IAAEA,IAAI,EAAC;IAEhD,OAAO;MACLkB,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;IAClD,CAAC;EACH;EAEA,OAAA7B,aAAA,CAAAA,aAAA;IACE+B,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBvB,IAAI;IACPyB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;EAAC;AAErD,CAAC;AAAC,IAAAgB,QAAA,
|
|
1
|
+
{"version":3,"file":"get-generic-render-variables.js","names":["_constants","require","_buildSortValues","_interopRequireDefault","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getCorrectSort","relations","filterProps","stringProps","useSortObject","sort","sortby","_filterProps$sortProp","sortProperties","buildSortValues","propsToDisplay","concat","_toConsumableArray2","getGenericRenderVariables","_ref","_ref$filterProps","_ref$stringProps","_ref$rawQuery","rawQuery","_ref$useRandomSort","useRandomSort","rawQueryCopy","_filterProps$limit","limit","DEFAULT_LIMIT","offset","limitToUse","Number","offsetToUse","DEFAULT_OFFSET","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_default","exports"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\nimport buildSortValues from './build-sort-values';\n\nconst getCorrectSort = (relations, filterProps, stringProps, useSortObject) => {\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps,\n useSortObject\n );\n};\n\nconst getGenericRenderVariables = ({\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n useRandomSort = false\n}) => {\n const rawQueryCopy = { ...rawQuery };\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQueryCopy && rawQueryCopy.query ? rawQueryCopy.query : rawQueryCopy,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, !!rawQueryCopy.sort);\n\n if (rawQueryCopy.sort && sort) {\n rawQueryCopy.sort = [...rawQueryCopy.sort, sort];\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n }\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryString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AM,IAAII,yBAAc,CAAC;EAEpD,IAAIT,aAAa,EAAE;IACjB,IAAMU,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEZ,YAAY,IAAIA,YAAY,CAACY,KAAK,GAAGZ,YAAY,CAACY,KAAK,GAAGZ,YAAY;UAC7Ec,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLb,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAnBA;IACF,CAAC;EACH;EAEA,IAAMzB,IAAI,GAAGL,cAAc,CAACC,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAE,CAAC,CAACkB,YAAY,CAAChB,IAAI,CAAC;EAErF,IAAIgB,YAAY,CAAChB,IAAI,IAAIA,IAAI,EAAE;IAC7BgB,YAAY,CAAChB,IAAI,MAAAM,MAAA,KAAAC,mBAAA,aAAOS,YAAY,CAAChB,IAAI,IAAEA,IAAI,EAAC;IAEhD,OAAO;MACLkB,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;IAClD,CAAC;EACH;EAEA,OAAA7B,aAAA,CAAAA,aAAA;IACE+B,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBvB,IAAI;IACPyB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;EAAC;AAErD,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEazB,yBAAyB"}
|
|
@@ -38,6 +38,5 @@ var getImageIds = function getImageIds(imageRelation, relationData, imageId) {
|
|
|
38
38
|
}
|
|
39
39
|
return imageIdArray;
|
|
40
40
|
};
|
|
41
|
-
var _default = getImageIds;
|
|
42
|
-
exports["default"] = _default;
|
|
41
|
+
var _default = exports["default"] = getImageIds;
|
|
43
42
|
//# sourceMappingURL=get-image-ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-image-ids.js","names":["_lodash","_interopRequireDefault","require","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","_imageRelation","_slicedToArray2","imageData","_imageData$split","split","_imageData$split2","relationName","Array","isArray","isPlainObject","_default","exports"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,EAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACF,MAAM,EAAE,OAAO,EAAE;IACzC,OAAOE,KAAK,CAACJ,YAAY,CAAC;EAC5B,CAAC,CAAC,CACDO,MAAM,CAACC,OAAO,CAAC;AACpB,CAAC;AAED,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,aAAa,EAAEC,YAAY,EAAEV,OAAO,EAAK;EAC5D,IAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,IAAAC,cAAA,OAAAC,eAAA,aAAoBL,aAAa;MAA1BM,SAAS,GAAAF,cAAA;IAChB,IAAAG,gBAAA,GAAqCD,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,iBAAA,OAAAJ,eAAA,aAAAE,gBAAA;MAAlDG,YAAY,GAAAD,iBAAA;MAAEnB,YAAY,GAAAmB,iBAAA;IACjC,IAAMpB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACO,YAAY,CAAC;IAE/D,IAAI,CAACrB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIS,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAI,IAAAsB,kBAAa,EAACxB,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOmB,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAACC,YAAY,CAAC,CAAC,GACjDD,iBAAiB,CAACC,YAAY,CAAC,GAC/B,CAACD,iBAAiB,CAACC,YAAY,CAAC,CAAC;IACvC;EACF;EAEA,OAAOY,YAAY;AACrB,CAAC;AAAC,IAAAY,QAAA,
|
|
1
|
+
{"version":3,"file":"get-image-ids.js","names":["_lodash","_interopRequireDefault","require","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","_imageRelation","_slicedToArray2","imageData","_imageData$split","split","_imageData$split2","relationName","Array","isArray","isPlainObject","_default","exports"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,EAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACF,MAAM,EAAE,OAAO,EAAE;IACzC,OAAOE,KAAK,CAACJ,YAAY,CAAC;EAC5B,CAAC,CAAC,CACDO,MAAM,CAACC,OAAO,CAAC;AACpB,CAAC;AAED,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,aAAa,EAAEC,YAAY,EAAEV,OAAO,EAAK;EAC5D,IAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,IAAAC,cAAA,OAAAC,eAAA,aAAoBL,aAAa;MAA1BM,SAAS,GAAAF,cAAA;IAChB,IAAAG,gBAAA,GAAqCD,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,iBAAA,OAAAJ,eAAA,aAAAE,gBAAA;MAAlDG,YAAY,GAAAD,iBAAA;MAAEnB,YAAY,GAAAmB,iBAAA;IACjC,IAAMpB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACO,YAAY,CAAC;IAE/D,IAAI,CAACrB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIS,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAI,IAAAsB,kBAAa,EAACxB,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOmB,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAACC,YAAY,CAAC,CAAC,GACjDD,iBAAiB,CAACC,YAAY,CAAC,GAC/B,CAACD,iBAAiB,CAACC,YAAY,CAAC,CAAC;IACvC;EACF;EAEA,OAAOY,YAAY;AACrB,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,cAEahB,WAAW"}
|
|
@@ -26,6 +26,5 @@ var getInheritedFilters = function getInheritedFilters(filterBy, filterByPropert
|
|
|
26
26
|
return acc;
|
|
27
27
|
}, []);
|
|
28
28
|
};
|
|
29
|
-
var _default = getInheritedFilters;
|
|
30
|
-
exports["default"] = _default;
|
|
29
|
+
var _default = exports["default"] = getInheritedFilters;
|
|
31
30
|
//# sourceMappingURL=get-inherited-filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","_property$split","split","_property$split2","_slicedToArray2","propName","filterByMatched","filter","filterId","includes","concat","push","_default","exports"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,UAACC,GAAG,EAAEC,QAAQ,EAAK;IAChD,IAAAC,eAAA,GAAmBD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAA/BI,QAAQ,GAAAF,gBAAA;IACf,IAAMG,eAAe,GAAGX,QAAQ,CAACY,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,CAACC,QAAQ,IAAAC,MAAA,CAAIL,QAAQ,MAAG,CAAC;IAAA,EAAC;IAEtF,IAAI,CAACC,eAAe,CAACT,MAAM,EAAEE,GAAG,CAACY,IAAI,CAACX,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAC,IAAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","_property$split","split","_property$split2","_slicedToArray2","propName","filterByMatched","filter","filterId","includes","concat","push","_default","exports"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,UAACC,GAAG,EAAEC,QAAQ,EAAK;IAChD,IAAAC,eAAA,GAAmBD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAA/BI,QAAQ,GAAAF,gBAAA;IACf,IAAMG,eAAe,GAAGX,QAAQ,CAACY,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,CAACC,QAAQ,IAAAC,MAAA,CAAIL,QAAQ,MAAG,CAAC;IAAA,EAAC;IAEtF,IAAI,CAACC,eAAe,CAACT,MAAM,EAAEE,GAAG,CAACY,IAAI,CAACX,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEanB,mBAAmB"}
|
|
@@ -23,6 +23,5 @@ function getItemsToDisplayIds(itemsToDisplay) {
|
|
|
23
23
|
}, []);
|
|
24
24
|
return (0, _toConsumableArray2["default"])(new Set((0, _toConsumableArray2["default"])(ids)));
|
|
25
25
|
}
|
|
26
|
-
var _default = getItemsToDisplayIds;
|
|
27
|
-
exports["default"] = _default;
|
|
26
|
+
var _default = exports["default"] = getItemsToDisplayIds;
|
|
28
27
|
//# sourceMappingURL=get-items-to-display-ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","_ref","displayItems","concat","_toConsumableArray2","Set","_default","exports"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,IAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAAC,IAAA,EAAuB;IAAA,IAAnBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACpD,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACL,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACG,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,WAAAE,mBAAA,aAAW,IAAIC,GAAG,KAAAD,mBAAA,aAAKN,GAAG,CAAC,CAAC;AAC9B;AAAC,IAAAQ,QAAA,
|
|
1
|
+
{"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","_ref","displayItems","concat","_toConsumableArray2","Set","_default","exports"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,IAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAAC,IAAA,EAAuB;IAAA,IAAnBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACpD,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACL,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACG,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,WAAAE,mBAAA,aAAW,IAAIC,GAAG,KAAAD,mBAAA,aAAKN,GAAG,CAAC,CAAC;AAC9B;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEcZ,oBAAoB"}
|
|
@@ -33,6 +33,5 @@ var validateModifier = function validateModifier(base, modifier) {
|
|
|
33
33
|
if (isValidModifier) return withBase ? "".concat(base, " ").concat(base, "--").concat(modifier) : "".concat(base, "--").concat(modifier);
|
|
34
34
|
return base;
|
|
35
35
|
};
|
|
36
|
-
var _default = getModifiers;
|
|
37
|
-
exports["default"] = _default;
|
|
36
|
+
var _default = exports["default"] = getModifiers;
|
|
38
37
|
//# sourceMappingURL=get-modifiers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","_toConsumableArray2","Set","join","withBase","arguments","length","undefined","isValidModifier","concat","_default","exports"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,IAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAAC,UAAAC,IAAI;MAAA,OAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC;IAAA,EAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,IAAMS,eAAe,OAAAC,mBAAA,aAAO,IAAIC,GAAG,CAACP,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACG,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOL,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIP,IAAI,EAAEC,QAAQ,EAAsB;EAAA,IAApBY,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EACvD,IAAMG,eAAe,GAAGhB,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIgB,eAAe,EAAE,OAAOJ,QAAQ,MAAAK,MAAA,CAAMlB,IAAI,OAAAkB,MAAA,CAAIlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,OAAAiB,MAAA,CAAQlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,CAAE;EAE9F,OAAOD,IAAI;AACb,CAAC;AAAC,IAAAmB,QAAA,
|
|
1
|
+
{"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","_toConsumableArray2","Set","join","withBase","arguments","length","undefined","isValidModifier","concat","_default","exports"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,IAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAAC,UAAAC,IAAI;MAAA,OAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC;IAAA,EAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,IAAMS,eAAe,OAAAC,mBAAA,aAAO,IAAIC,GAAG,CAACP,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACG,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOL,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIP,IAAI,EAAEC,QAAQ,EAAsB;EAAA,IAApBY,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EACvD,IAAMG,eAAe,GAAGhB,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIgB,eAAe,EAAE,OAAOJ,QAAQ,MAAAK,MAAA,CAAMlB,IAAI,OAAAkB,MAAA,CAAIlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,OAAAiB,MAAA,CAAQlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,CAAE;EAE9F,OAAOD,IAAI;AACb,CAAC;AAAC,IAAAmB,QAAA,GAAAC,OAAA,cAEarB,YAAY"}
|
|
@@ -13,6 +13,5 @@ function getPaginationIndex(query, name) {
|
|
|
13
13
|
var paginationIndex = query["".concat(_constants.PB_QUERY_CONST, "[").concat(name, "]").concat(_constants.PAGINATION_QUERY_CONST)];
|
|
14
14
|
return Number(paginationIndex) || 1;
|
|
15
15
|
}
|
|
16
|
-
var _default = getPaginationIndex;
|
|
17
|
-
exports["default"] = _default;
|
|
16
|
+
var _default = exports["default"] = getPaginationIndex;
|
|
18
17
|
//# sourceMappingURL=get-pagination-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pagination-index.js","names":["_constants","require","getPaginationIndex","query","name","paginationIndex","concat","PB_QUERY_CONST","PAGINATION_QUERY_CONST","Number","_default","exports"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,IAAMC,eAAe,GAAGF,KAAK,IAAAG,MAAA,CAAIC,yBAAc,OAAAD,MAAA,CAAIF,IAAI,OAAAE,MAAA,CAAIE,iCAAsB,EAAG;EACpF,OAAOC,MAAM,CAACJ,eAAe,CAAC,IAAI,CAAC;AACrC;AAAC,IAAAK,QAAA,
|
|
1
|
+
{"version":3,"file":"get-pagination-index.js","names":["_constants","require","getPaginationIndex","query","name","paginationIndex","concat","PB_QUERY_CONST","PAGINATION_QUERY_CONST","Number","_default","exports"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,IAAMC,eAAe,GAAGF,KAAK,IAAAG,MAAA,CAAIC,yBAAc,OAAAD,MAAA,CAAIF,IAAI,OAAAE,MAAA,CAAIE,iCAAsB,EAAG;EACpF,OAAOC,MAAM,CAACJ,eAAe,CAAC,IAAI,CAAC;AACrC;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEcT,kBAAkB"}
|
|
@@ -47,6 +47,5 @@ var getParsedPropValues = function getParsedPropValues(_ref) {
|
|
|
47
47
|
return shouldStrip ? (0, _removeUnwantedCharacters["default"])(value) : value;
|
|
48
48
|
}).filter(Boolean);
|
|
49
49
|
};
|
|
50
|
-
var _default = getParsedPropValues;
|
|
51
|
-
exports["default"] = _default;
|
|
50
|
+
var _default = exports["default"] = getParsedPropValues;
|
|
52
51
|
//# sourceMappingURL=get-parsed-prop-values.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-parsed-prop-values.js","names":["_react","_interopRequireDefault","require","_nextjsComponents","_isObject","_removeUnwantedCharacters","getParsedPropValues","_ref","propertiesToDisplay","props","enableLink","shouldStrip","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","index","propValue","sanitizedValue","removeUnwantedCharacters","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","Link","key","href","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA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AOvB,UAAU,IAAIa,IAAI,CAACW,GAAG,gBAC3BlC,MAAA,YAAAmC,aAAA,CAAChC,iBAAA,CAAAiC,IAAI;UAACC,GAAG,EAAEL,OAAQ;UAACM,IAAI,EAAEf,IAAI,CAACW;QAAI,GAChCJ,WACG,CAAC,GAEPA,WACD;MACH,CAAC,CAAC;IACJ;IAEA,IAAI,IAAAS,oBAAQ,EAACnB,KAAK,CAAC,EAAE;MACnB,OAAOT,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAACD,OAAO,CAAC,CAAC,GAAGC,KAAK,CAACD,OAAO,CAAC;IAChF;IAEA,OAAOR,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAAC,GAAGA,KAAK;EAC9D,CAAC,CAAC,CACDoB,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-parsed-prop-values.js","names":["_react","_interopRequireDefault","require","_nextjsComponents","_isObject","_removeUnwantedCharacters","getParsedPropValues","_ref","propertiesToDisplay","props","enableLink","shouldStrip","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","index","propValue","sanitizedValue","removeUnwantedCharacters","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","Link","key","href","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,yBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA;EAAA,IAAMC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAEC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;EAAA,OAChFH,mBAAmB,CAChBI,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGX,KAAK,CAACS,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAACW,IAAI,EAAEC,KAAK,EAAK;QAChC,IAAMC,SAAS,GAAGN,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;QAChD,IAAMG,cAAc,GAAGf,WAAW,GAAG,IAAAgB,oCAAwB,EAACF,SAAS,CAAC,GAAGA,SAAS;QAEpF,IAAMG,WAAW,GAAGJ,KAAK,KAAKJ,KAAK,CAACS,MAAM,GAAG,CAAC;QAC9C,IAAMC,WAAW,GAAGF,WAAW,GAAGF,cAAc,GAAGA,cAAc,CAACK,MAAM,CAAC,IAAI,CAAC;QAC9E,IAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEK,IAAI,CAACJ,OAAO,CAAC,EAAEK,KAAK,CAAC,CAACS,IAAI,CAAC,GAAG,CAAC;QAElE,OAAOvB,UAAU,IAAIa,IAAI,CAACW,GAAG,gBAC3BlC,MAAA,YAAAmC,aAAA,CAAChC,iBAAA,CAAAiC,IAAI;UAACC,GAAG,EAAEL,OAAQ;UAACM,IAAI,EAAEf,IAAI,CAACW;QAAI,GAChCJ,WACG,CAAC,GAEPA,WACD;MACH,CAAC,CAAC;IACJ;IAEA,IAAI,IAAAS,oBAAQ,EAACnB,KAAK,CAAC,EAAE;MACnB,OAAOT,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAACD,OAAO,CAAC,CAAC,GAAGC,KAAK,CAACD,OAAO,CAAC;IAChF;IAEA,OAAOR,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAAC,GAAGA,KAAK;EAC9D,CAAC,CAAC,CACDoB,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAENrC,mBAAmB"}
|
|
@@ -16,6 +16,5 @@ function getParsedSummaryValue(value) {
|
|
|
16
16
|
if (value === FALSE) return parsedSummaryValues.FALSE;
|
|
17
17
|
return value;
|
|
18
18
|
}
|
|
19
|
-
var _default = getParsedSummaryValue;
|
|
20
|
-
exports["default"] = _default;
|
|
19
|
+
var _default = exports["default"] = getParsedSummaryValue;
|
|
21
20
|
//# sourceMappingURL=get-parsed-summary-value.js.map
|