@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
package/.browserslistrc
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
"plugin:vue/essential",
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"@vue/typescript/recommended",
|
|
10
|
+
"@vue/prettier",
|
|
11
|
+
"@vue/prettier/@typescript-eslint",
|
|
12
|
+
],
|
|
13
|
+
parserOptions: {
|
|
14
|
+
ecmaVersion: 2020,
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
18
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
19
|
+
"prettier/prettier": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
endOfLine: "auto",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
overrides: [
|
|
27
|
+
{
|
|
28
|
+
files: [
|
|
29
|
+
"**/__tests__/*.{j,t}s?(x)",
|
|
30
|
+
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
|
31
|
+
],
|
|
32
|
+
env: {
|
|
33
|
+
jest: true,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This is a basic workflow to help you get started with Actions
|
|
2
|
+
|
|
3
|
+
name: Lupa-Test
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
- uses: c-hive/gha-yarn-cache@v2
|
|
19
|
+
- run: yarn install
|
|
20
|
+
- run: yarn build
|
|
21
|
+
- run: yarn validate:es5
|
|
22
|
+
- run: yarn test:unit
|
|
23
|
+
- run: yarn test:e2e
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: NPM Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
|
|
12
|
+
publish-npm:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
- uses: actions/setup-node@v3
|
|
17
|
+
with:
|
|
18
|
+
node-version: 16
|
|
19
|
+
registry-url: https://registry.npmjs.org/
|
|
20
|
+
- run: yarn install
|
|
21
|
+
- run: yarn build
|
|
22
|
+
- run: yarn publish --access public
|
|
23
|
+
env:
|
|
24
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# search-plugin
|
|
2
|
+
|
|
3
|
+
## Getting started for development
|
|
4
|
+
|
|
5
|
+
Copy example configuration files files to enable live reloading of configuration during development
|
|
6
|
+
|
|
7
|
+
- `src/constants/development/searchBoxDev.example.const.ts`
|
|
8
|
+
|
|
9
|
+
- `src/constants/development/searchResultsDev.example.const.ts`
|
|
10
|
+
|
|
11
|
+
To
|
|
12
|
+
|
|
13
|
+
- `src/constants/development/searchBoxDev.const.ts`
|
|
14
|
+
|
|
15
|
+
- `src/constants/development/searchResultsDev.const.ts`.
|
|
16
|
+
|
|
17
|
+
If files are copied, development build will not work.
|
|
18
|
+
|
|
19
|
+
## Project setup
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
yarn install
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Compiles and hot-reloads for development
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
yarn serve
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Bundles the plugin
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
yarn build
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Lints and fixes files
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
yarn lint
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Runs tests
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
yarn build
|
|
47
|
+
yarn test:unit
|
|
48
|
+
yarn test:e2e
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Interactive Test with Cypress
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
yarn build
|
|
55
|
+
|
|
56
|
+
yarn cypress open
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Customize configuration
|
|
60
|
+
|
|
61
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
62
|
+
|
|
63
|
+
## Documentation
|
|
64
|
+
|
|
65
|
+
If you are integrating standalone version of the plugin (as a cdn link):
|
|
66
|
+
|
|
67
|
+
- See [Getting Started - Standalone](/docs/getting-started-standalone.md) for more information about plugin integration.
|
|
68
|
+
|
|
69
|
+
For integration as an npm package:
|
|
70
|
+
|
|
71
|
+
- See [Getting Started - npm](/docs/getting-started-npm.md) for more information about plugin integration.
|
package/babel.config.js
ADDED
package/cypress.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { RegularPriceDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
5
|
+
export default class SearchBoxProductPrice extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
options: RegularPriceDocumentElement;
|
|
8
|
+
labels?: SearchBoxOptionLabels;
|
|
9
|
+
get price(): string;
|
|
10
|
+
}
|
package/dist/cjs/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { RegularPriceDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
5
|
+
export default class SearchBoxProductRegularPrice extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
options: RegularPriceDocumentElement;
|
|
8
|
+
labels: SearchBoxOptionLabels;
|
|
9
|
+
get price(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { TitleDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchBoxProductTitle extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: TitleDocumentElement;
|
|
7
|
+
get title(): unknown;
|
|
8
|
+
get isHtml(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { CustomHtmlElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchBoxProductCustomHtml extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: CustomHtmlElement;
|
|
7
|
+
get text(): string;
|
|
8
|
+
get className(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DisplaySuggestion } from "@/types/search-box/Common";
|
|
2
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
export default class SearchBoxSuggestion extends Vue {
|
|
5
|
+
suggestion: DisplaySuggestion;
|
|
6
|
+
highlight: boolean[];
|
|
7
|
+
labels: SearchBoxOptionLabels;
|
|
8
|
+
get title(): string;
|
|
9
|
+
handleSelect(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DisplaySuggestion, InputSuggestionFacet } from "@/types/search-box/Common";
|
|
2
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
3
|
+
import { Suggestion } from "@getlupa/client-sdk/Types";
|
|
4
|
+
import Vue from "vue";
|
|
5
|
+
export default class SearchBoxSuggestions extends Vue {
|
|
6
|
+
items: DisplaySuggestion[];
|
|
7
|
+
highlight: boolean[];
|
|
8
|
+
queryKey: string;
|
|
9
|
+
labels: SearchBoxOptionLabels;
|
|
10
|
+
highlightedItem?: {
|
|
11
|
+
queryKey: string;
|
|
12
|
+
index: number;
|
|
13
|
+
};
|
|
14
|
+
get highlightedIndex(): number;
|
|
15
|
+
handleSelect({ suggestion, override, facet, }: {
|
|
16
|
+
suggestion: Suggestion;
|
|
17
|
+
override: boolean;
|
|
18
|
+
facet?: InputSuggestionFacet;
|
|
19
|
+
}): void;
|
|
20
|
+
handleHighlight(): void;
|
|
21
|
+
getSuggestionKey(suggestion: DisplaySuggestion): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DisplaySuggestion } from "@/types/search-box/Common";
|
|
2
|
+
import { SdkOptions } from "@/types/General";
|
|
3
|
+
import { SuggestionSearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
4
|
+
import Vue from "vue";
|
|
5
|
+
import { Options, PublicQuery, SuggestionQueryResult } from "@getlupa/client-sdk/Types";
|
|
6
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
7
|
+
export default class SearchBoxSuggestionsWrapper extends Vue {
|
|
8
|
+
items: DisplaySuggestion[];
|
|
9
|
+
panel: SuggestionSearchBoxPanel;
|
|
10
|
+
options: SdkOptions;
|
|
11
|
+
inputValue: string;
|
|
12
|
+
debounce?: number;
|
|
13
|
+
labels: SearchBoxOptionLabels;
|
|
14
|
+
suggestionResults: Record<string, DisplaySuggestion[]>;
|
|
15
|
+
get searchResult(): DisplaySuggestion[];
|
|
16
|
+
querySuggestions: ({ queryKey, publicQuery, options, }: {
|
|
17
|
+
queryKey: string;
|
|
18
|
+
publicQuery: PublicQuery;
|
|
19
|
+
options?: Options;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
queryKey: string;
|
|
22
|
+
suggestions?: SuggestionQueryResult;
|
|
23
|
+
}>;
|
|
24
|
+
created(): void;
|
|
25
|
+
onInputChange(): void;
|
|
26
|
+
getSuggestionsDebounced: () => unknown;
|
|
27
|
+
getSuggestions(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|