@getlupa/client 0.4.3-1
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/.browserslistrc +3 -0
- package/.eslintrc.js +37 -0
- package/.github/workflows/build-test.yml +23 -0
- package/.github/workflows/npm-publish.yml +24 -0
- package/README.md +71 -0
- package/babel.config.js +3 -0
- package/cypress.json +1 -0
- package/dist/cjs/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/cjs/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/cjs/components/common/Spinner.vue.d.ts +3 -0
- package/dist/cjs/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/cjs/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/cjs/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/cjs/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/cjs/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/cjs/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/cjs/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/cjs/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/cjs/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/cjs/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/cjs/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/cjs/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/cjs/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/cjs/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/cjs/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/cjs/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/cjs/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/cjs/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/cjs/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/cjs/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/cjs/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/cjs/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/cjs/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/cjs/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/cjs/constants/global.const.d.ts +13 -0
- package/dist/cjs/constants/mockData..const.d.ts +4 -0
- package/dist/cjs/constants/queryParams.const.d.ts +25 -0
- package/dist/cjs/constants/searchBox.const.d.ts +48 -0
- package/dist/cjs/constants/searchResults.const.d.ts +105 -0
- package/dist/cjs/index-iife.d.ts +21 -0
- package/dist/cjs/index.d.ts +11 -0
- package/dist/cjs/index.min.js +33183 -0
- package/dist/cjs/main.d.ts +1 -0
- package/dist/cjs/store/__tests__/history.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/params.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/cjs/store/index.d.ts +2 -0
- package/dist/cjs/store/modules/history.d.ts +13 -0
- package/dist/cjs/store/modules/options.d.ts +16 -0
- package/dist/cjs/store/modules/params.d.ts +55 -0
- package/dist/cjs/store/modules/searchBox.d.ts +65 -0
- package/dist/cjs/store/modules/searchResult.d.ts +47 -0
- package/dist/cjs/store/modules/tracking.d.ts +17 -0
- package/dist/cjs/store/types/State.d.ts +38 -0
- package/dist/cjs/types/AnalyticsOptions.d.ts +7 -0
- package/dist/cjs/types/DocumentElement.d.ts +68 -0
- package/dist/cjs/types/General.d.ts +12 -0
- package/dist/cjs/types/search-box/Common.d.ts +44 -0
- package/dist/cjs/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/cjs/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/cjs/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/cjs/types/search-results/FacetAction.d.ts +16 -0
- package/dist/cjs/types/search-results/Filters.d.ts +9 -0
- package/dist/cjs/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/cjs/types/search-results/QueryParams.d.ts +4 -0
- package/dist/cjs/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/cjs/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/cjs/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/cjs/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/cjs/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/debounce.utils.d.ts +1 -0
- package/dist/cjs/utils/document.utils.d.ts +1 -0
- package/dist/cjs/utils/event.utils.d.ts +2 -0
- package/dist/cjs/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/cjs/utils/filter.utils.d.ts +10 -0
- package/dist/cjs/utils/history.utils.d.ts +2 -0
- package/dist/cjs/utils/link.utils.d.ts +4 -0
- package/dist/cjs/utils/merger.utils.d.ts +1 -0
- package/dist/cjs/utils/params.utils.d.ts +9 -0
- package/dist/cjs/utils/picker.utils.d.ts +5 -0
- package/dist/cjs/utils/price.utils.d.ts +2 -0
- package/dist/cjs/utils/query.utils.d.ts +4 -0
- package/dist/cjs/utils/scroll.utils.d.ts +2 -0
- package/dist/cjs/utils/string.utils.d.ts +7 -0
- package/dist/cjs/utils/suggestion.utils.d.ts +3 -0
- package/dist/cjs/utils/tracking.utils.d.ts +5 -0
- package/dist/es/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/es/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/es/components/common/Spinner.vue.d.ts +3 -0
- package/dist/es/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/es/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/es/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/es/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/es/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/es/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/es/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/es/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/es/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/es/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/es/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/es/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/es/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/es/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/es/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/es/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/es/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/es/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/es/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/es/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/es/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/es/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/es/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/es/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/es/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/es/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/es/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/es/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/es/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/es/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/es/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/es/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/es/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/es/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/es/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/es/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/es/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/es/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/es/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/es/constants/global.const.d.ts +13 -0
- package/dist/es/constants/mockData..const.d.ts +4 -0
- package/dist/es/constants/queryParams.const.d.ts +25 -0
- package/dist/es/constants/searchBox.const.d.ts +48 -0
- package/dist/es/constants/searchResults.const.d.ts +105 -0
- package/dist/es/index-iife.d.ts +21 -0
- package/dist/es/index.d.ts +11 -0
- package/dist/es/index.min.js +33179 -0
- package/dist/es/main.d.ts +1 -0
- package/dist/es/store/__tests__/history.spec.d.ts +1 -0
- package/dist/es/store/__tests__/params.spec.d.ts +1 -0
- package/dist/es/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/es/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/es/store/index.d.ts +2 -0
- package/dist/es/store/modules/history.d.ts +13 -0
- package/dist/es/store/modules/options.d.ts +16 -0
- package/dist/es/store/modules/params.d.ts +55 -0
- package/dist/es/store/modules/searchBox.d.ts +65 -0
- package/dist/es/store/modules/searchResult.d.ts +47 -0
- package/dist/es/store/modules/tracking.d.ts +17 -0
- package/dist/es/store/types/State.d.ts +38 -0
- package/dist/es/types/AnalyticsOptions.d.ts +7 -0
- package/dist/es/types/DocumentElement.d.ts +68 -0
- package/dist/es/types/General.d.ts +12 -0
- package/dist/es/types/search-box/Common.d.ts +44 -0
- package/dist/es/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/es/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/es/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/es/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/es/types/search-results/FacetAction.d.ts +16 -0
- package/dist/es/types/search-results/Filters.d.ts +9 -0
- package/dist/es/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/es/types/search-results/QueryParams.d.ts +4 -0
- package/dist/es/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/es/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/es/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/es/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/es/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/es/utils/debounce.utils.d.ts +1 -0
- package/dist/es/utils/document.utils.d.ts +1 -0
- package/dist/es/utils/event.utils.d.ts +2 -0
- package/dist/es/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/es/utils/filter.utils.d.ts +10 -0
- package/dist/es/utils/history.utils.d.ts +2 -0
- package/dist/es/utils/link.utils.d.ts +4 -0
- package/dist/es/utils/merger.utils.d.ts +1 -0
- package/dist/es/utils/params.utils.d.ts +9 -0
- package/dist/es/utils/picker.utils.d.ts +5 -0
- package/dist/es/utils/price.utils.d.ts +2 -0
- package/dist/es/utils/query.utils.d.ts +4 -0
- package/dist/es/utils/scroll.utils.d.ts +2 -0
- package/dist/es/utils/string.utils.d.ts +7 -0
- package/dist/es/utils/suggestion.utils.d.ts +3 -0
- package/dist/es/utils/tracking.utils.d.ts +5 -0
- package/dist/iife/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/iife/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/iife/components/common/Spinner.vue.d.ts +3 -0
- package/dist/iife/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/iife/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/iife/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/iife/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/iife/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/iife/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/iife/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/iife/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/iife/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/iife/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/iife/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/iife/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/iife/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/iife/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/iife/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/iife/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/iife/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/iife/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/iife/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/iife/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/iife/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/iife/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/iife/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/iife/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/iife/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/iife/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/iife/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/iife/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/iife/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/iife/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/iife/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/iife/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/iife/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/iife/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/iife/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/iife/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/iife/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/iife/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/iife/constants/global.const.d.ts +13 -0
- package/dist/iife/constants/mockData..const.d.ts +4 -0
- package/dist/iife/constants/queryParams.const.d.ts +25 -0
- package/dist/iife/constants/searchBox.const.d.ts +48 -0
- package/dist/iife/constants/searchResults.const.d.ts +105 -0
- package/dist/iife/index-iife.d.ts +21 -0
- package/dist/iife/index.d.ts +11 -0
- package/dist/iife/index.min.js +1 -0
- package/dist/iife/main.d.ts +1 -0
- package/dist/iife/store/__tests__/history.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/params.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/iife/store/index.d.ts +2 -0
- package/dist/iife/store/modules/history.d.ts +13 -0
- package/dist/iife/store/modules/options.d.ts +16 -0
- package/dist/iife/store/modules/params.d.ts +55 -0
- package/dist/iife/store/modules/searchBox.d.ts +65 -0
- package/dist/iife/store/modules/searchResult.d.ts +47 -0
- package/dist/iife/store/modules/tracking.d.ts +17 -0
- package/dist/iife/store/types/State.d.ts +38 -0
- package/dist/iife/types/AnalyticsOptions.d.ts +7 -0
- package/dist/iife/types/DocumentElement.d.ts +68 -0
- package/dist/iife/types/General.d.ts +12 -0
- package/dist/iife/types/search-box/Common.d.ts +44 -0
- package/dist/iife/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/iife/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/iife/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/iife/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/iife/types/search-results/FacetAction.d.ts +16 -0
- package/dist/iife/types/search-results/Filters.d.ts +9 -0
- package/dist/iife/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/iife/types/search-results/QueryParams.d.ts +4 -0
- package/dist/iife/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/iife/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/iife/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/iife/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/iife/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/iife/utils/debounce.utils.d.ts +1 -0
- package/dist/iife/utils/document.utils.d.ts +1 -0
- package/dist/iife/utils/event.utils.d.ts +2 -0
- package/dist/iife/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/iife/utils/filter.utils.d.ts +10 -0
- package/dist/iife/utils/history.utils.d.ts +2 -0
- package/dist/iife/utils/link.utils.d.ts +4 -0
- package/dist/iife/utils/merger.utils.d.ts +1 -0
- package/dist/iife/utils/params.utils.d.ts +9 -0
- package/dist/iife/utils/picker.utils.d.ts +5 -0
- package/dist/iife/utils/price.utils.d.ts +2 -0
- package/dist/iife/utils/query.utils.d.ts +4 -0
- package/dist/iife/utils/scroll.utils.d.ts +2 -0
- package/dist/iife/utils/string.utils.d.ts +7 -0
- package/dist/iife/utils/suggestion.utils.d.ts +3 -0
- package/dist/iife/utils/tracking.utils.d.ts +5 -0
- package/dist/style.css +1 -0
- package/dist/style.js +1 -0
- package/jest.config.js +22 -0
- package/package.json +72 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { SdkOptions } from "../General";
|
|
2
|
+
import { SearchResultsAdditionalPanelOptions } from "./SearchResultsAdditionalPanelOptions";
|
|
3
|
+
import { SearchResultsProductCardOptions } from "./SearchResultsProductCardOptions";
|
|
4
|
+
import { SearchResultsSortOptions } from "./SearchResultsSort";
|
|
5
|
+
export declare type SearchResultsOptions = SearchResultsProductOptions & SearchResultsAdditionalPanels & {
|
|
6
|
+
containerSelector: string;
|
|
7
|
+
breadcrumbs: SearchResultsBreadcrumb[];
|
|
8
|
+
classMap?: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
export declare type SearchResultsDidYouMeanLabels = {
|
|
11
|
+
noResultsSuggestion: string;
|
|
12
|
+
didYouMean: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type SearchResultsSimilarQueriesLabels = {
|
|
15
|
+
similarQuery: string;
|
|
16
|
+
similarQueries: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type SearchResultsOptionLabels = SearchResultsPaginationLabels & SearchResultsDidYouMeanLabels & SearchResultsSimilarQueriesLabels & {
|
|
19
|
+
sortBy: string;
|
|
20
|
+
currency: string;
|
|
21
|
+
itemCount: string;
|
|
22
|
+
emptyResults: string;
|
|
23
|
+
mobileFilterButton: string;
|
|
24
|
+
htmlTitleTemplate: string;
|
|
25
|
+
};
|
|
26
|
+
export declare type SearchResultsAdditionalPanels = {
|
|
27
|
+
additionalPanels?: SearchResultsAdditionalPanelOptions[];
|
|
28
|
+
};
|
|
29
|
+
export declare type SearchResultsProductOptions = SearchResultsProductCardOptions & SearchResultsAdditionalPanels & {
|
|
30
|
+
grid: ProductGrid;
|
|
31
|
+
options: SdkOptions;
|
|
32
|
+
queryKey: string;
|
|
33
|
+
pagination: SearchResultsPagination;
|
|
34
|
+
sort: SearchResultsSortOptions[];
|
|
35
|
+
filters?: SearchResultsFilterOptions;
|
|
36
|
+
toolbar?: {
|
|
37
|
+
layoutSelector?: boolean;
|
|
38
|
+
itemSummary?: boolean;
|
|
39
|
+
clearFilters?: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare type ProductGrid = {
|
|
43
|
+
columns: {
|
|
44
|
+
xl: number;
|
|
45
|
+
l: number;
|
|
46
|
+
md: number;
|
|
47
|
+
sm: number;
|
|
48
|
+
xs: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare type SearchResultsPaginationLabels = {
|
|
52
|
+
pageSize: string;
|
|
53
|
+
showMore: string;
|
|
54
|
+
};
|
|
55
|
+
export declare type SearchResultsPagination = {
|
|
56
|
+
sizeSelection: {
|
|
57
|
+
sizes: number[];
|
|
58
|
+
position: SearchResultsPaginationPosition;
|
|
59
|
+
};
|
|
60
|
+
pageSelection: {
|
|
61
|
+
position: SearchResultsPaginationPosition;
|
|
62
|
+
display: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare type SearchResultsPaginationPosition = {
|
|
66
|
+
top: boolean;
|
|
67
|
+
bottom: boolean;
|
|
68
|
+
};
|
|
69
|
+
export declare type ResultCurrentFilterOptions = {
|
|
70
|
+
labels: {
|
|
71
|
+
title: string;
|
|
72
|
+
clearAll: string;
|
|
73
|
+
};
|
|
74
|
+
visibility?: {
|
|
75
|
+
mobileSidebar: boolean;
|
|
76
|
+
mobileToolbar: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare type FacetStyle = "sidebar" | "top-dropdown";
|
|
80
|
+
export declare type ResultFacetOptions = {
|
|
81
|
+
labels: {
|
|
82
|
+
title: string;
|
|
83
|
+
showAll: string;
|
|
84
|
+
facetFilter: string;
|
|
85
|
+
facetClear?: string;
|
|
86
|
+
};
|
|
87
|
+
promotedFacets?: string[];
|
|
88
|
+
filterable?: {
|
|
89
|
+
minValues: number;
|
|
90
|
+
};
|
|
91
|
+
hierarchy?: {
|
|
92
|
+
maxInitialLevel: number;
|
|
93
|
+
topLevelValueCountLimit?: number;
|
|
94
|
+
filterable?: boolean;
|
|
95
|
+
};
|
|
96
|
+
facetValueCountLimit?: number;
|
|
97
|
+
showDocumentCount?: boolean;
|
|
98
|
+
style?: {
|
|
99
|
+
type: FacetStyle;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export declare type SearchResultsFilterOptions = {
|
|
103
|
+
currentFilters?: ResultCurrentFilterOptions;
|
|
104
|
+
facets?: ResultFacetOptions;
|
|
105
|
+
};
|
|
106
|
+
export declare type SearchResultsBreadcrumb = {
|
|
107
|
+
label: string;
|
|
108
|
+
link?: string;
|
|
109
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare type SearchResultsPaginationLabels = {
|
|
2
|
+
pageSize: string;
|
|
3
|
+
showMore: string;
|
|
4
|
+
itemCount: string;
|
|
5
|
+
filteredItemCount?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type SearchResultsPagination = {
|
|
8
|
+
sizeSelection: {
|
|
9
|
+
sizes: number[];
|
|
10
|
+
position: SearchResultsPaginationPosition;
|
|
11
|
+
};
|
|
12
|
+
pageSelection: {
|
|
13
|
+
position: SearchResultsPaginationPosition;
|
|
14
|
+
display: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare type SearchResultsPaginationPosition = {
|
|
18
|
+
top: boolean;
|
|
19
|
+
bottom: boolean;
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import { DocumentElement } from "../DocumentElement";
|
|
3
|
+
import { BadgeElement } from "./BadgeOptions";
|
|
4
|
+
import { SearchResultsOptionLabels } from "./SearchResultsOptions";
|
|
5
|
+
export declare type SearchResultsProductCardOptions = {
|
|
6
|
+
labels: SearchResultsOptionLabels;
|
|
7
|
+
isInStock: (doc: Document) => boolean;
|
|
8
|
+
badges: SearchResultBadgeOptions;
|
|
9
|
+
links: {
|
|
10
|
+
details: string;
|
|
11
|
+
};
|
|
12
|
+
elements: DocumentElement[];
|
|
13
|
+
queryKey: string;
|
|
14
|
+
idKey?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type SearchResultBadgeOptions = {
|
|
17
|
+
anchor: AnchorPosition;
|
|
18
|
+
elements: BadgeElement[];
|
|
19
|
+
};
|
|
20
|
+
export declare type AnchorPosition = "tr" | "tl";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SortDirection } from "@getlupa/client-sdk/Types";
|
|
2
|
+
export declare type SearchResultsSortOptions = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
config: Record<string, SortDirection>[];
|
|
6
|
+
default?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type SortOptions = {
|
|
9
|
+
label: string;
|
|
10
|
+
options: SearchResultsSortOptions[];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const debounce: (func: (...args: unknown[]) => unknown, timeout?: number | undefined) => (() => unknown);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setDocumentTitle: (template: string, textToInsert?: string) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HierarchyFacetAction, RangeFacetAction, TermFacetAction } from "@/types/search-results/FacetAction";
|
|
2
|
+
import { FilterType } from "@/types/search-results/Filters";
|
|
3
|
+
import { FilterGroup } from "@getlupa/client-sdk/Types";
|
|
4
|
+
declare type AppendParams = ({ params, paramsToRemove, encode, }: {
|
|
5
|
+
params: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string | string[];
|
|
8
|
+
}[];
|
|
9
|
+
paramsToRemove?: string[];
|
|
10
|
+
encode?: boolean;
|
|
11
|
+
}) => unknown;
|
|
12
|
+
export declare const getFacetKey: (key: string, type: FilterType) => string;
|
|
13
|
+
export declare const getFacetParam: (key: string, value: string[] | string, type?: string) => {
|
|
14
|
+
name: string;
|
|
15
|
+
value: string[] | string;
|
|
16
|
+
};
|
|
17
|
+
export declare const toggleTermFilter: (appendParams: AppendParams, facetAction: TermFacetAction, currentFilters?: FilterGroup | undefined) => void;
|
|
18
|
+
export declare const toggleHierarchyFilter: (appendParams: AppendParams, facetAction: HierarchyFacetAction, currentFilters?: FilterGroup | undefined, removeAllLevels?: boolean) => void;
|
|
19
|
+
export declare const toggleRangeFilter: (appendParams: AppendParams, facetAction: RangeFacetAction) => void;
|
|
20
|
+
export declare const toggleTermParam: (params?: string[], param?: string) => string[];
|
|
21
|
+
export declare const toggleLastPram: (params?: string[], param?: string) => string[];
|
|
22
|
+
export declare const toggleHierarchyParam: (params?: string[], param?: string, removeAllLevels?: boolean) => string[];
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LabeledFilter, UnfoldedFilter } from "@/types/search-results/Filters";
|
|
2
|
+
import { FacetResult, FilterGroup, FilterGroupItemTypeRange, HierarchyTree } from "@getlupa/client-sdk/Types";
|
|
3
|
+
export declare const formatRange: (filter: FilterGroupItemTypeRange) => string;
|
|
4
|
+
export declare const unfoldFilters: (filters?: FilterGroup | undefined) => UnfoldedFilter[];
|
|
5
|
+
export declare const getLabeledFilters: (filters: UnfoldedFilter[], facets?: FacetResult[] | undefined) => LabeledFilter[];
|
|
6
|
+
export declare const isFacetKey: (key: string) => boolean;
|
|
7
|
+
export declare const isArrayKey: (key: string) => boolean;
|
|
8
|
+
export declare const getMostSpecificHierarchyTerms: (terms: string[]) => string[];
|
|
9
|
+
export declare const recursiveFilter: (items: HierarchyTree[], query?: string) => HierarchyTree[];
|
|
10
|
+
export declare const recursiveFilterItem: (item: HierarchyTree, query?: string) => HierarchyTree | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InputSuggestionFacet } from "@/types/search-box/Common";
|
|
2
|
+
export declare const generateLink: (linkPattern: string, document: Record<string, unknown>) => string;
|
|
3
|
+
export declare const generateResultLink: (link: string, searchText?: string | undefined, facet?: InputSuggestionFacet | undefined) => string;
|
|
4
|
+
export declare const getPathName: (resultPageLink: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const merge: <A extends Record<string, any>, B extends Record<string, any>>(target: A, source: B) => A & B;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
2
|
+
export declare const parseParams: (searchParams?: URLSearchParams | undefined) => QueryParams;
|
|
3
|
+
export declare const appendParam: (url: URL, { name, value }: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string | string[];
|
|
6
|
+
}, encode?: boolean) => void;
|
|
7
|
+
export declare const getRemovableParams: (url: URL, paramsToRemove?: string[] | "all" | undefined) => string[] | undefined;
|
|
8
|
+
export declare const removeParams: (url: URL, params?: string[]) => void;
|
|
9
|
+
export declare const encodeParam: (param: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const pick: <T extends Record<string, unknown>, U extends keyof T>(obj: T, keys: U[]) => Pick<T, U>;
|
|
2
|
+
export declare const getHint: (suggestion: string, inputValue: string) => string;
|
|
3
|
+
export declare const reverseKeyValue: (obj: Record<string, string>) => Record<string, string>;
|
|
4
|
+
export declare const pickClosestNumber: (numbers: number[], closestTo: number) => number;
|
|
5
|
+
export declare const getPageCount: (total: number, limit: number) => number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
2
|
+
import { SearchResultsSortOptions } from "@/types/search-results/SearchResultsSort";
|
|
3
|
+
import { PublicQuery } from "@getlupa/client-sdk/Types";
|
|
4
|
+
export declare const createPublicQuery: (queryParams: QueryParams, sortOptions?: SearchResultsSortOptions[] | undefined) => PublicQuery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
2
|
+
export declare const getNormalizedString: (str?: string | number | undefined) => string;
|
|
3
|
+
export declare const capitalize: (str?: string | undefined) => string;
|
|
4
|
+
export declare const addParamsToLabel: (label: string, ...params: unknown[]) => string;
|
|
5
|
+
export declare const getRandomString: (length: number) => string;
|
|
6
|
+
export declare const getDisplayValue: (value?: string | number | undefined) => string;
|
|
7
|
+
export declare const getProductKey: (index: string, product: Document, idKey: string | undefined) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TrackingOptions } from "@/types/General";
|
|
2
|
+
import { TrackableEventData } from "@/types/search-box/Common";
|
|
3
|
+
import { Options } from "@getlupa/client-sdk/Types";
|
|
4
|
+
export declare const initTracking: (options: TrackingOptions) => void;
|
|
5
|
+
export declare const track: (queryKey?: string | undefined, data?: TrackableEventData, options?: Options | undefined) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
|
+
export default class SearchResultsEntry extends Vue {
|
|
4
|
+
searchResultsOptions: SearchResultsOptions;
|
|
5
|
+
get fullSearchResultsOptions(): SearchResultsOptions;
|
|
6
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FetchedData, HighlightedDocInfo, InputSuggestion, InputSuggestionFacet, SelectedData, TrackableEventData } from "@/types/search-box/Common";
|
|
2
|
+
import { SearchBoxInputOptions, SearchBoxOptions, SearchBoxPanelOptions } from "@/types/search-box/SearchBoxOptions";
|
|
3
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
4
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
5
|
+
import Vue from "vue";
|
|
6
|
+
export default class SearchBox extends Vue {
|
|
7
|
+
options: SearchBoxOptions;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
suggestedValue: InputSuggestion;
|
|
10
|
+
opened: boolean;
|
|
11
|
+
highlightedDocument?: {
|
|
12
|
+
doc?: Document;
|
|
13
|
+
link?: string;
|
|
14
|
+
};
|
|
15
|
+
addHistory: ({ item }: {
|
|
16
|
+
item: string;
|
|
17
|
+
}) => string[];
|
|
18
|
+
saveOptions: ({ options, }: {
|
|
19
|
+
options: SearchBoxOptions;
|
|
20
|
+
}) => void;
|
|
21
|
+
get searchValue(): string;
|
|
22
|
+
get inputOptions(): SearchBoxInputOptions;
|
|
23
|
+
get panelOptions(): SearchBoxPanelOptions;
|
|
24
|
+
get searchTriggers(): string[];
|
|
25
|
+
trackClick: ({ queryKey, data, }: {
|
|
26
|
+
queryKey: string;
|
|
27
|
+
data: TrackableEventData;
|
|
28
|
+
}) => void;
|
|
29
|
+
setSearchResultsLink: (searchResultsLink: string) => {
|
|
30
|
+
searchResultsLink: string;
|
|
31
|
+
};
|
|
32
|
+
setSearchBoxOptions: ({ options, }: {
|
|
33
|
+
options: SearchBoxOptions;
|
|
34
|
+
}) => void;
|
|
35
|
+
mounted(): void;
|
|
36
|
+
beforeDestroy(): void;
|
|
37
|
+
handleMouseClick(e: MouseEvent): void;
|
|
38
|
+
handleKeyDown(e: KeyboardEvent): void;
|
|
39
|
+
handleInput(value: string): void;
|
|
40
|
+
handleItemsFetch(data: FetchedData): void;
|
|
41
|
+
handleItemSelect(data: SelectedData): void;
|
|
42
|
+
selectSuggestion(inputSuggestion: InputSuggestion, shouldSearch?: boolean): void;
|
|
43
|
+
handleNavigateDocument({ link }: {
|
|
44
|
+
doc?: Document;
|
|
45
|
+
link?: string;
|
|
46
|
+
}): void;
|
|
47
|
+
handleCurrentValueSearch(): void;
|
|
48
|
+
goToResults: ({ searchText, facet, }: {
|
|
49
|
+
searchText: string;
|
|
50
|
+
facet?: InputSuggestionFacet;
|
|
51
|
+
}) => {
|
|
52
|
+
params: QueryParams;
|
|
53
|
+
};
|
|
54
|
+
handleSearch({ query }?: {
|
|
55
|
+
query: string;
|
|
56
|
+
}): void;
|
|
57
|
+
trackDocumentClick(doc: HighlightedDocInfo): void;
|
|
58
|
+
trackSuggestionClick(suggestion?: string): void;
|
|
59
|
+
resetValues(): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InputSuggestion } from "@/types/search-box/Common";
|
|
2
|
+
import { SearchBoxInputOptions } from "@/types/search-box/SearchBoxOptions";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
export default class SearchBoxInput extends Vue {
|
|
5
|
+
options: SearchBoxInputOptions;
|
|
6
|
+
suggestedValue: InputSuggestion;
|
|
7
|
+
labels: import("@/types/search-box/SearchBoxOptions").SearchBoxOptionLabels;
|
|
8
|
+
input: string;
|
|
9
|
+
saveInputValue: ({ input, }: {
|
|
10
|
+
input: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
query: string;
|
|
13
|
+
get inputValue(): string;
|
|
14
|
+
set inputValue(value: string);
|
|
15
|
+
get showHint(): boolean;
|
|
16
|
+
get inputAttributes(): Record<string, string>;
|
|
17
|
+
onSuggestedValueChange(): void;
|
|
18
|
+
handleQueryChange(): void;
|
|
19
|
+
handleInput(evt?: InputEvent): void;
|
|
20
|
+
handleFocus(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SearchBoxPanelOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { SearchBoxPanel, SearchBoxPanelType } from "@/types/search-box/SearchBoxPanel";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
import { SdkOptions } from "@/types/General";
|
|
5
|
+
import { DisplaySuggestion } from "@/types/search-box/Common";
|
|
6
|
+
export default class SearchBoxMainPanel extends Vue {
|
|
7
|
+
options: SearchBoxPanelOptions;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
focused: boolean;
|
|
10
|
+
history: string[];
|
|
11
|
+
labels: import("@/types/search-box/SearchBoxOptions").SearchBoxOptionLabels;
|
|
12
|
+
panels: SearchBoxPanel[];
|
|
13
|
+
sdkOptions: SdkOptions;
|
|
14
|
+
get displayResults(): boolean;
|
|
15
|
+
get displayHistory(): boolean;
|
|
16
|
+
suggestionResults: Record<string, DisplaySuggestion[]>;
|
|
17
|
+
getInput(panel: SearchBoxPanel): string;
|
|
18
|
+
highlightChange: ({ action, }: {
|
|
19
|
+
action: "up" | "down" | "clear";
|
|
20
|
+
}) => void;
|
|
21
|
+
mounted(): void;
|
|
22
|
+
beforeDestroy(): void;
|
|
23
|
+
handleNavigation(e: KeyboardEvent): void;
|
|
24
|
+
handleGoToResults({ query }?: {
|
|
25
|
+
query: string;
|
|
26
|
+
}): void;
|
|
27
|
+
remove({ item }: {
|
|
28
|
+
item: string;
|
|
29
|
+
}): void;
|
|
30
|
+
removeAll(): void;
|
|
31
|
+
getComponent(type: SearchBoxPanelType): string;
|
|
32
|
+
appHeight(): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SearchBoxOptionLabels, SearchBoxOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { SearchQueryResult } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
export default class SearchBoxMoreResults extends Vue {
|
|
5
|
+
labels: SearchBoxOptionLabels;
|
|
6
|
+
showTotalCount: boolean;
|
|
7
|
+
docResults: Record<string, SearchQueryResult>;
|
|
8
|
+
options: SearchBoxOptions;
|
|
9
|
+
get totalCount(): string;
|
|
10
|
+
handleClick(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { SearchBoxHistory } from "@/types/search-box/SearchBoxHistory";
|
|
3
|
+
export default class SearchBoxHistoryPanel extends Vue {
|
|
4
|
+
options: SearchBoxHistory;
|
|
5
|
+
highlightedIndex: number;
|
|
6
|
+
history: string[];
|
|
7
|
+
removeItem: ({ item, }: {
|
|
8
|
+
item: string;
|
|
9
|
+
}) => string[];
|
|
10
|
+
clear: () => string[];
|
|
11
|
+
get highlightIndex(): number;
|
|
12
|
+
get hasHistory(): boolean;
|
|
13
|
+
mounted(): void;
|
|
14
|
+
beforeDestroy(): void;
|
|
15
|
+
remove({ item }: {
|
|
16
|
+
item: string;
|
|
17
|
+
}): void;
|
|
18
|
+
removeAll(): void;
|
|
19
|
+
goToResults({ query }: {
|
|
20
|
+
query: string;
|
|
21
|
+
}): void;
|
|
22
|
+
handleKeyDown(e: KeyboardEvent): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { DocumentSearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
4
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
5
|
+
import { DocumentElement } from "@/types/DocumentElement";
|
|
6
|
+
import { TrackableEventData } from "@/types/search-box/Common";
|
|
7
|
+
export default class SearchBoxProduct extends Vue {
|
|
8
|
+
item: Document;
|
|
9
|
+
inputValue: string;
|
|
10
|
+
panelOptions: DocumentSearchBoxPanel;
|
|
11
|
+
labels?: SearchBoxOptionLabels;
|
|
12
|
+
highlighted?: boolean;
|
|
13
|
+
trackClick: ({ queryKey, data, }: {
|
|
14
|
+
queryKey: string;
|
|
15
|
+
data: TrackableEventData;
|
|
16
|
+
}) => void;
|
|
17
|
+
addHistory: ({ item }: {
|
|
18
|
+
item: string;
|
|
19
|
+
}) => string[];
|
|
20
|
+
get link(): string;
|
|
21
|
+
get imageElements(): DocumentElement[];
|
|
22
|
+
get detailElements(): DocumentElement[];
|
|
23
|
+
get id(): string;
|
|
24
|
+
handleClick(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { DocumentSearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
4
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
5
|
+
export default class SearchBoxProducts extends Vue {
|
|
6
|
+
items: Document[];
|
|
7
|
+
inputValue: string;
|
|
8
|
+
panelOptions: DocumentSearchBoxPanel;
|
|
9
|
+
labels: SearchBoxOptionLabels;
|
|
10
|
+
highlightedItem?: {
|
|
11
|
+
queryKey: string;
|
|
12
|
+
index: number;
|
|
13
|
+
};
|
|
14
|
+
get highlightedIndex(): number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SdkOptions } from "@/types/General";
|
|
2
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
3
|
+
import { DocumentSearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
4
|
+
import { Options, PublicQuery, SearchQueryResult } from "@getlupa/client-sdk/Types";
|
|
5
|
+
import Vue from "vue";
|
|
6
|
+
export default class SearchBoxProductsWrapper extends Vue {
|
|
7
|
+
panel: DocumentSearchBoxPanel;
|
|
8
|
+
options: SdkOptions;
|
|
9
|
+
inputValue: string;
|
|
10
|
+
labels: SearchBoxOptionLabels;
|
|
11
|
+
debounce?: number;
|
|
12
|
+
docResults: Record<string, SearchQueryResult>;
|
|
13
|
+
get searchResult(): SearchQueryResult;
|
|
14
|
+
queryDocuments: ({ queryKey, publicQuery, options, }: {
|
|
15
|
+
queryKey: string;
|
|
16
|
+
publicQuery: PublicQuery;
|
|
17
|
+
options?: Options;
|
|
18
|
+
}) => Promise<{
|
|
19
|
+
queryKey: string;
|
|
20
|
+
result?: SearchQueryResult;
|
|
21
|
+
}>;
|
|
22
|
+
created(): void;
|
|
23
|
+
onInputChange(): void;
|
|
24
|
+
getItemsDebounced: () => unknown;
|
|
25
|
+
getItems(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { CustomDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchBoxProductCustom extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: CustomDocumentElement;
|
|
7
|
+
get text(): string;
|
|
8
|
+
get className(): string;
|
|
9
|
+
get isHtml(): boolean;
|
|
10
|
+
}
|
package/dist/iife/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { DescriptionDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchBoxProductDescription extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: DescriptionDocumentElement;
|
|
7
|
+
get description(): unknown;
|
|
8
|
+
get isHtml(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { DocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
5
|
+
export default class SearchBoxProductElement extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
element: DocumentElement;
|
|
8
|
+
labels?: SearchBoxOptionLabels;
|
|
9
|
+
get elementComponent(): string;
|
|
10
|
+
get displayElement(): boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { ImageDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchBoxProductImage extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: ImageDocumentElement;
|
|
7
|
+
get hasFullImageUrl(): boolean;
|
|
8
|
+
get rootImageUrl(): string | undefined;
|
|
9
|
+
get image(): string;
|
|
10
|
+
get imageUrl(): string;
|
|
11
|
+
get hasImage(): boolean;
|
|
12
|
+
get placeholder(): string;
|
|
13
|
+
replaceWithPlaceholder(e: Event): void;
|
|
14
|
+
}
|