@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.
Files changed (527) hide show
  1. package/.browserslistrc +3 -0
  2. package/.eslintrc.js +37 -0
  3. package/.github/workflows/build-test.yml +23 -0
  4. package/.github/workflows/npm-publish.yml +24 -0
  5. package/README.md +71 -0
  6. package/babel.config.js +3 -0
  7. package/cypress.json +1 -0
  8. package/dist/cjs/SearchBoxEntry.vue.d.ts +6 -0
  9. package/dist/cjs/SearchResultsEntry.vue.d.ts +6 -0
  10. package/dist/cjs/components/common/Spinner.vue.d.ts +3 -0
  11. package/dist/cjs/components/search-box/SearchBox.vue.d.ts +60 -0
  12. package/dist/cjs/components/search-box/SearchBoxInput.vue.d.ts +21 -0
  13. package/dist/cjs/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
  14. package/dist/cjs/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
  15. package/dist/cjs/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
  16. package/dist/cjs/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
  17. package/dist/cjs/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
  18. package/dist/cjs/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
  19. package/dist/cjs/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
  20. package/dist/cjs/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
  21. package/dist/cjs/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
  22. package/dist/cjs/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
  23. package/dist/cjs/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
  24. package/dist/cjs/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
  25. package/dist/cjs/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
  26. package/dist/cjs/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
  27. package/dist/cjs/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
  28. package/dist/cjs/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
  29. package/dist/cjs/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
  30. package/dist/cjs/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
  31. package/dist/cjs/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
  32. package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
  33. package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
  34. package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
  35. package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
  36. package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
  37. package/dist/cjs/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
  38. package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
  39. package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
  40. package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
  41. package/dist/cjs/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
  42. package/dist/cjs/components/search-results/SearchResults.vue.d.ts +48 -0
  43. package/dist/cjs/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
  44. package/dist/cjs/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
  45. package/dist/cjs/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
  46. package/dist/cjs/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
  47. package/dist/cjs/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
  48. package/dist/cjs/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
  49. package/dist/cjs/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
  50. package/dist/cjs/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
  51. package/dist/cjs/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
  52. package/dist/cjs/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
  53. package/dist/cjs/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
  54. package/dist/cjs/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
  55. package/dist/cjs/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
  56. package/dist/cjs/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
  57. package/dist/cjs/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
  58. package/dist/cjs/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
  59. package/dist/cjs/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
  60. package/dist/cjs/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
  61. package/dist/cjs/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
  62. package/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
  63. package/dist/cjs/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
  64. package/dist/cjs/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
  65. package/dist/cjs/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
  66. package/dist/cjs/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
  67. package/dist/cjs/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
  68. package/dist/cjs/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
  69. package/dist/cjs/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
  70. package/dist/cjs/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
  71. package/dist/cjs/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
  72. package/dist/cjs/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
  73. package/dist/cjs/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
  74. package/dist/cjs/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
  75. package/dist/cjs/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
  76. package/dist/cjs/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
  77. package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
  78. package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
  79. package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
  80. package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
  81. package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
  82. package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
  83. package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
  84. package/dist/cjs/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
  85. package/dist/cjs/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
  86. package/dist/cjs/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
  87. package/dist/cjs/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
  88. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
  89. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
  90. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
  91. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
  92. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
  93. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
  94. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
  95. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
  96. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
  97. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
  98. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
  99. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
  100. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
  101. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
  102. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
  103. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
  104. package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
  105. package/dist/cjs/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
  106. package/dist/cjs/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
  107. package/dist/cjs/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
  108. package/dist/cjs/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
  109. package/dist/cjs/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
  110. package/dist/cjs/constants/development/searchBoxDev.example.const.d.ts +27 -0
  111. package/dist/cjs/constants/development/searchResultsDev.example.const.d.ts +91 -0
  112. package/dist/cjs/constants/global.const.d.ts +13 -0
  113. package/dist/cjs/constants/mockData..const.d.ts +4 -0
  114. package/dist/cjs/constants/queryParams.const.d.ts +25 -0
  115. package/dist/cjs/constants/searchBox.const.d.ts +48 -0
  116. package/dist/cjs/constants/searchResults.const.d.ts +105 -0
  117. package/dist/cjs/index-iife.d.ts +21 -0
  118. package/dist/cjs/index.d.ts +11 -0
  119. package/dist/cjs/index.min.js +33183 -0
  120. package/dist/cjs/main.d.ts +1 -0
  121. package/dist/cjs/store/__tests__/history.spec.d.ts +1 -0
  122. package/dist/cjs/store/__tests__/params.spec.d.ts +1 -0
  123. package/dist/cjs/store/__tests__/searchBox.spec.d.ts +1 -0
  124. package/dist/cjs/store/__tests__/searchResult.spec.d.ts +1 -0
  125. package/dist/cjs/store/index.d.ts +2 -0
  126. package/dist/cjs/store/modules/history.d.ts +13 -0
  127. package/dist/cjs/store/modules/options.d.ts +16 -0
  128. package/dist/cjs/store/modules/params.d.ts +55 -0
  129. package/dist/cjs/store/modules/searchBox.d.ts +65 -0
  130. package/dist/cjs/store/modules/searchResult.d.ts +47 -0
  131. package/dist/cjs/store/modules/tracking.d.ts +17 -0
  132. package/dist/cjs/store/types/State.d.ts +38 -0
  133. package/dist/cjs/types/AnalyticsOptions.d.ts +7 -0
  134. package/dist/cjs/types/DocumentElement.d.ts +68 -0
  135. package/dist/cjs/types/General.d.ts +12 -0
  136. package/dist/cjs/types/search-box/Common.d.ts +44 -0
  137. package/dist/cjs/types/search-box/SearchBoxHistory.d.ts +6 -0
  138. package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +30 -0
  139. package/dist/cjs/types/search-box/SearchBoxPanel.d.ts +28 -0
  140. package/dist/cjs/types/search-results/BadgeOptions.d.ts +42 -0
  141. package/dist/cjs/types/search-results/FacetAction.d.ts +16 -0
  142. package/dist/cjs/types/search-results/Filters.d.ts +9 -0
  143. package/dist/cjs/types/search-results/PaginationOptions.d.ts +19 -0
  144. package/dist/cjs/types/search-results/QueryParams.d.ts +4 -0
  145. package/dist/cjs/types/search-results/ResultsLayout.d.ts +5 -0
  146. package/dist/cjs/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
  147. package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +109 -0
  148. package/dist/cjs/types/search-results/SearchResultsPagination.d.ts +20 -0
  149. package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
  150. package/dist/cjs/types/search-results/SearchResultsSort.d.ts +11 -0
  151. package/dist/cjs/utils/__tests__/debounce.utils.spec.d.ts +1 -0
  152. package/dist/cjs/utils/__tests__/event.utils.spec.d.ts +1 -0
  153. package/dist/cjs/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
  154. package/dist/cjs/utils/__tests__/filter.utils.spec.d.ts +1 -0
  155. package/dist/cjs/utils/__tests__/history.utils.spec.d.ts +1 -0
  156. package/dist/cjs/utils/__tests__/link.utils.spec.d.ts +1 -0
  157. package/dist/cjs/utils/__tests__/params.utils.spec.d.ts +1 -0
  158. package/dist/cjs/utils/__tests__/picker.utils.spec.d.ts +1 -0
  159. package/dist/cjs/utils/__tests__/price.utils.spec.d.ts +1 -0
  160. package/dist/cjs/utils/__tests__/query.utils.spec.d.ts +1 -0
  161. package/dist/cjs/utils/__tests__/string.utils.spec.d.ts +1 -0
  162. package/dist/cjs/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
  163. package/dist/cjs/utils/__tests__/tracking.utils.spec.d.ts +1 -0
  164. package/dist/cjs/utils/debounce.utils.d.ts +1 -0
  165. package/dist/cjs/utils/document.utils.d.ts +1 -0
  166. package/dist/cjs/utils/event.utils.d.ts +2 -0
  167. package/dist/cjs/utils/filter.toggle.utils.d.ts +23 -0
  168. package/dist/cjs/utils/filter.utils.d.ts +10 -0
  169. package/dist/cjs/utils/history.utils.d.ts +2 -0
  170. package/dist/cjs/utils/link.utils.d.ts +4 -0
  171. package/dist/cjs/utils/merger.utils.d.ts +1 -0
  172. package/dist/cjs/utils/params.utils.d.ts +9 -0
  173. package/dist/cjs/utils/picker.utils.d.ts +5 -0
  174. package/dist/cjs/utils/price.utils.d.ts +2 -0
  175. package/dist/cjs/utils/query.utils.d.ts +4 -0
  176. package/dist/cjs/utils/scroll.utils.d.ts +2 -0
  177. package/dist/cjs/utils/string.utils.d.ts +7 -0
  178. package/dist/cjs/utils/suggestion.utils.d.ts +3 -0
  179. package/dist/cjs/utils/tracking.utils.d.ts +5 -0
  180. package/dist/es/SearchBoxEntry.vue.d.ts +6 -0
  181. package/dist/es/SearchResultsEntry.vue.d.ts +6 -0
  182. package/dist/es/components/common/Spinner.vue.d.ts +3 -0
  183. package/dist/es/components/search-box/SearchBox.vue.d.ts +60 -0
  184. package/dist/es/components/search-box/SearchBoxInput.vue.d.ts +21 -0
  185. package/dist/es/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
  186. package/dist/es/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
  187. package/dist/es/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
  188. package/dist/es/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
  189. package/dist/es/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
  190. package/dist/es/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
  191. package/dist/es/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
  192. package/dist/es/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
  193. package/dist/es/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
  194. package/dist/es/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
  195. package/dist/es/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
  196. package/dist/es/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
  197. package/dist/es/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
  198. package/dist/es/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
  199. package/dist/es/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
  200. package/dist/es/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
  201. package/dist/es/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
  202. package/dist/es/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
  203. package/dist/es/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
  204. package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
  205. package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
  206. package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
  207. package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
  208. package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
  209. package/dist/es/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
  210. package/dist/es/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
  211. package/dist/es/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
  212. package/dist/es/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
  213. package/dist/es/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
  214. package/dist/es/components/search-results/SearchResults.vue.d.ts +48 -0
  215. package/dist/es/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
  216. package/dist/es/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
  217. package/dist/es/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
  218. package/dist/es/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
  219. package/dist/es/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
  220. package/dist/es/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
  221. package/dist/es/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
  222. package/dist/es/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
  223. package/dist/es/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
  224. package/dist/es/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
  225. package/dist/es/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
  226. package/dist/es/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
  227. package/dist/es/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
  228. package/dist/es/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
  229. package/dist/es/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
  230. package/dist/es/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
  231. package/dist/es/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
  232. package/dist/es/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
  233. package/dist/es/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
  234. package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
  235. package/dist/es/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
  236. package/dist/es/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
  237. package/dist/es/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
  238. package/dist/es/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
  239. package/dist/es/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
  240. package/dist/es/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
  241. package/dist/es/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
  242. package/dist/es/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
  243. package/dist/es/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
  244. package/dist/es/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
  245. package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
  246. package/dist/es/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
  247. package/dist/es/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
  248. package/dist/es/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
  249. package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
  250. package/dist/es/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
  251. package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
  252. package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
  253. package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
  254. package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
  255. package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
  256. package/dist/es/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
  257. package/dist/es/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
  258. package/dist/es/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
  259. package/dist/es/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
  260. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
  261. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
  262. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
  263. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
  264. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
  265. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
  266. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
  267. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
  268. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
  269. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
  270. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
  271. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
  272. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
  273. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
  274. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
  275. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
  276. package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
  277. package/dist/es/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
  278. package/dist/es/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
  279. package/dist/es/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
  280. package/dist/es/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
  281. package/dist/es/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
  282. package/dist/es/constants/development/searchBoxDev.example.const.d.ts +27 -0
  283. package/dist/es/constants/development/searchResultsDev.example.const.d.ts +91 -0
  284. package/dist/es/constants/global.const.d.ts +13 -0
  285. package/dist/es/constants/mockData..const.d.ts +4 -0
  286. package/dist/es/constants/queryParams.const.d.ts +25 -0
  287. package/dist/es/constants/searchBox.const.d.ts +48 -0
  288. package/dist/es/constants/searchResults.const.d.ts +105 -0
  289. package/dist/es/index-iife.d.ts +21 -0
  290. package/dist/es/index.d.ts +11 -0
  291. package/dist/es/index.min.js +33179 -0
  292. package/dist/es/main.d.ts +1 -0
  293. package/dist/es/store/__tests__/history.spec.d.ts +1 -0
  294. package/dist/es/store/__tests__/params.spec.d.ts +1 -0
  295. package/dist/es/store/__tests__/searchBox.spec.d.ts +1 -0
  296. package/dist/es/store/__tests__/searchResult.spec.d.ts +1 -0
  297. package/dist/es/store/index.d.ts +2 -0
  298. package/dist/es/store/modules/history.d.ts +13 -0
  299. package/dist/es/store/modules/options.d.ts +16 -0
  300. package/dist/es/store/modules/params.d.ts +55 -0
  301. package/dist/es/store/modules/searchBox.d.ts +65 -0
  302. package/dist/es/store/modules/searchResult.d.ts +47 -0
  303. package/dist/es/store/modules/tracking.d.ts +17 -0
  304. package/dist/es/store/types/State.d.ts +38 -0
  305. package/dist/es/types/AnalyticsOptions.d.ts +7 -0
  306. package/dist/es/types/DocumentElement.d.ts +68 -0
  307. package/dist/es/types/General.d.ts +12 -0
  308. package/dist/es/types/search-box/Common.d.ts +44 -0
  309. package/dist/es/types/search-box/SearchBoxHistory.d.ts +6 -0
  310. package/dist/es/types/search-box/SearchBoxOptions.d.ts +30 -0
  311. package/dist/es/types/search-box/SearchBoxPanel.d.ts +28 -0
  312. package/dist/es/types/search-results/BadgeOptions.d.ts +42 -0
  313. package/dist/es/types/search-results/FacetAction.d.ts +16 -0
  314. package/dist/es/types/search-results/Filters.d.ts +9 -0
  315. package/dist/es/types/search-results/PaginationOptions.d.ts +19 -0
  316. package/dist/es/types/search-results/QueryParams.d.ts +4 -0
  317. package/dist/es/types/search-results/ResultsLayout.d.ts +5 -0
  318. package/dist/es/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
  319. package/dist/es/types/search-results/SearchResultsOptions.d.ts +109 -0
  320. package/dist/es/types/search-results/SearchResultsPagination.d.ts +20 -0
  321. package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
  322. package/dist/es/types/search-results/SearchResultsSort.d.ts +11 -0
  323. package/dist/es/utils/__tests__/debounce.utils.spec.d.ts +1 -0
  324. package/dist/es/utils/__tests__/event.utils.spec.d.ts +1 -0
  325. package/dist/es/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
  326. package/dist/es/utils/__tests__/filter.utils.spec.d.ts +1 -0
  327. package/dist/es/utils/__tests__/history.utils.spec.d.ts +1 -0
  328. package/dist/es/utils/__tests__/link.utils.spec.d.ts +1 -0
  329. package/dist/es/utils/__tests__/params.utils.spec.d.ts +1 -0
  330. package/dist/es/utils/__tests__/picker.utils.spec.d.ts +1 -0
  331. package/dist/es/utils/__tests__/price.utils.spec.d.ts +1 -0
  332. package/dist/es/utils/__tests__/query.utils.spec.d.ts +1 -0
  333. package/dist/es/utils/__tests__/string.utils.spec.d.ts +1 -0
  334. package/dist/es/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
  335. package/dist/es/utils/__tests__/tracking.utils.spec.d.ts +1 -0
  336. package/dist/es/utils/debounce.utils.d.ts +1 -0
  337. package/dist/es/utils/document.utils.d.ts +1 -0
  338. package/dist/es/utils/event.utils.d.ts +2 -0
  339. package/dist/es/utils/filter.toggle.utils.d.ts +23 -0
  340. package/dist/es/utils/filter.utils.d.ts +10 -0
  341. package/dist/es/utils/history.utils.d.ts +2 -0
  342. package/dist/es/utils/link.utils.d.ts +4 -0
  343. package/dist/es/utils/merger.utils.d.ts +1 -0
  344. package/dist/es/utils/params.utils.d.ts +9 -0
  345. package/dist/es/utils/picker.utils.d.ts +5 -0
  346. package/dist/es/utils/price.utils.d.ts +2 -0
  347. package/dist/es/utils/query.utils.d.ts +4 -0
  348. package/dist/es/utils/scroll.utils.d.ts +2 -0
  349. package/dist/es/utils/string.utils.d.ts +7 -0
  350. package/dist/es/utils/suggestion.utils.d.ts +3 -0
  351. package/dist/es/utils/tracking.utils.d.ts +5 -0
  352. package/dist/iife/SearchBoxEntry.vue.d.ts +6 -0
  353. package/dist/iife/SearchResultsEntry.vue.d.ts +6 -0
  354. package/dist/iife/components/common/Spinner.vue.d.ts +3 -0
  355. package/dist/iife/components/search-box/SearchBox.vue.d.ts +60 -0
  356. package/dist/iife/components/search-box/SearchBoxInput.vue.d.ts +21 -0
  357. package/dist/iife/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
  358. package/dist/iife/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
  359. package/dist/iife/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
  360. package/dist/iife/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
  361. package/dist/iife/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
  362. package/dist/iife/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
  363. package/dist/iife/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
  364. package/dist/iife/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
  365. package/dist/iife/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
  366. package/dist/iife/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
  367. package/dist/iife/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
  368. package/dist/iife/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
  369. package/dist/iife/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
  370. package/dist/iife/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
  371. package/dist/iife/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
  372. package/dist/iife/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
  373. package/dist/iife/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
  374. package/dist/iife/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
  375. package/dist/iife/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
  376. package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
  377. package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
  378. package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
  379. package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
  380. package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
  381. package/dist/iife/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
  382. package/dist/iife/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
  383. package/dist/iife/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
  384. package/dist/iife/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
  385. package/dist/iife/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
  386. package/dist/iife/components/search-results/SearchResults.vue.d.ts +48 -0
  387. package/dist/iife/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
  388. package/dist/iife/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
  389. package/dist/iife/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
  390. package/dist/iife/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
  391. package/dist/iife/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
  392. package/dist/iife/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
  393. package/dist/iife/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
  394. package/dist/iife/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
  395. package/dist/iife/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
  396. package/dist/iife/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
  397. package/dist/iife/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
  398. package/dist/iife/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
  399. package/dist/iife/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
  400. package/dist/iife/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
  401. package/dist/iife/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
  402. package/dist/iife/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
  403. package/dist/iife/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
  404. package/dist/iife/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
  405. package/dist/iife/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
  406. package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
  407. package/dist/iife/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
  408. package/dist/iife/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
  409. package/dist/iife/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
  410. package/dist/iife/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
  411. package/dist/iife/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
  412. package/dist/iife/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
  413. package/dist/iife/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
  414. package/dist/iife/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
  415. package/dist/iife/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
  416. package/dist/iife/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
  417. package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
  418. package/dist/iife/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
  419. package/dist/iife/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
  420. package/dist/iife/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
  421. package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
  422. package/dist/iife/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
  423. package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
  424. package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
  425. package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
  426. package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
  427. package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
  428. package/dist/iife/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
  429. package/dist/iife/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
  430. package/dist/iife/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
  431. package/dist/iife/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
  432. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
  433. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
  434. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
  435. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
  436. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
  437. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
  438. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
  439. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
  440. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
  441. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
  442. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
  443. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
  444. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
  445. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
  446. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
  447. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
  448. package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
  449. package/dist/iife/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
  450. package/dist/iife/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
  451. package/dist/iife/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
  452. package/dist/iife/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
  453. package/dist/iife/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
  454. package/dist/iife/constants/development/searchBoxDev.example.const.d.ts +27 -0
  455. package/dist/iife/constants/development/searchResultsDev.example.const.d.ts +91 -0
  456. package/dist/iife/constants/global.const.d.ts +13 -0
  457. package/dist/iife/constants/mockData..const.d.ts +4 -0
  458. package/dist/iife/constants/queryParams.const.d.ts +25 -0
  459. package/dist/iife/constants/searchBox.const.d.ts +48 -0
  460. package/dist/iife/constants/searchResults.const.d.ts +105 -0
  461. package/dist/iife/index-iife.d.ts +21 -0
  462. package/dist/iife/index.d.ts +11 -0
  463. package/dist/iife/index.min.js +1 -0
  464. package/dist/iife/main.d.ts +1 -0
  465. package/dist/iife/store/__tests__/history.spec.d.ts +1 -0
  466. package/dist/iife/store/__tests__/params.spec.d.ts +1 -0
  467. package/dist/iife/store/__tests__/searchBox.spec.d.ts +1 -0
  468. package/dist/iife/store/__tests__/searchResult.spec.d.ts +1 -0
  469. package/dist/iife/store/index.d.ts +2 -0
  470. package/dist/iife/store/modules/history.d.ts +13 -0
  471. package/dist/iife/store/modules/options.d.ts +16 -0
  472. package/dist/iife/store/modules/params.d.ts +55 -0
  473. package/dist/iife/store/modules/searchBox.d.ts +65 -0
  474. package/dist/iife/store/modules/searchResult.d.ts +47 -0
  475. package/dist/iife/store/modules/tracking.d.ts +17 -0
  476. package/dist/iife/store/types/State.d.ts +38 -0
  477. package/dist/iife/types/AnalyticsOptions.d.ts +7 -0
  478. package/dist/iife/types/DocumentElement.d.ts +68 -0
  479. package/dist/iife/types/General.d.ts +12 -0
  480. package/dist/iife/types/search-box/Common.d.ts +44 -0
  481. package/dist/iife/types/search-box/SearchBoxHistory.d.ts +6 -0
  482. package/dist/iife/types/search-box/SearchBoxOptions.d.ts +30 -0
  483. package/dist/iife/types/search-box/SearchBoxPanel.d.ts +28 -0
  484. package/dist/iife/types/search-results/BadgeOptions.d.ts +42 -0
  485. package/dist/iife/types/search-results/FacetAction.d.ts +16 -0
  486. package/dist/iife/types/search-results/Filters.d.ts +9 -0
  487. package/dist/iife/types/search-results/PaginationOptions.d.ts +19 -0
  488. package/dist/iife/types/search-results/QueryParams.d.ts +4 -0
  489. package/dist/iife/types/search-results/ResultsLayout.d.ts +5 -0
  490. package/dist/iife/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
  491. package/dist/iife/types/search-results/SearchResultsOptions.d.ts +109 -0
  492. package/dist/iife/types/search-results/SearchResultsPagination.d.ts +20 -0
  493. package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
  494. package/dist/iife/types/search-results/SearchResultsSort.d.ts +11 -0
  495. package/dist/iife/utils/__tests__/debounce.utils.spec.d.ts +1 -0
  496. package/dist/iife/utils/__tests__/event.utils.spec.d.ts +1 -0
  497. package/dist/iife/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
  498. package/dist/iife/utils/__tests__/filter.utils.spec.d.ts +1 -0
  499. package/dist/iife/utils/__tests__/history.utils.spec.d.ts +1 -0
  500. package/dist/iife/utils/__tests__/link.utils.spec.d.ts +1 -0
  501. package/dist/iife/utils/__tests__/params.utils.spec.d.ts +1 -0
  502. package/dist/iife/utils/__tests__/picker.utils.spec.d.ts +1 -0
  503. package/dist/iife/utils/__tests__/price.utils.spec.d.ts +1 -0
  504. package/dist/iife/utils/__tests__/query.utils.spec.d.ts +1 -0
  505. package/dist/iife/utils/__tests__/string.utils.spec.d.ts +1 -0
  506. package/dist/iife/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
  507. package/dist/iife/utils/__tests__/tracking.utils.spec.d.ts +1 -0
  508. package/dist/iife/utils/debounce.utils.d.ts +1 -0
  509. package/dist/iife/utils/document.utils.d.ts +1 -0
  510. package/dist/iife/utils/event.utils.d.ts +2 -0
  511. package/dist/iife/utils/filter.toggle.utils.d.ts +23 -0
  512. package/dist/iife/utils/filter.utils.d.ts +10 -0
  513. package/dist/iife/utils/history.utils.d.ts +2 -0
  514. package/dist/iife/utils/link.utils.d.ts +4 -0
  515. package/dist/iife/utils/merger.utils.d.ts +1 -0
  516. package/dist/iife/utils/params.utils.d.ts +9 -0
  517. package/dist/iife/utils/picker.utils.d.ts +5 -0
  518. package/dist/iife/utils/price.utils.d.ts +2 -0
  519. package/dist/iife/utils/query.utils.d.ts +4 -0
  520. package/dist/iife/utils/scroll.utils.d.ts +2 -0
  521. package/dist/iife/utils/string.utils.d.ts +7 -0
  522. package/dist/iife/utils/suggestion.utils.d.ts +3 -0
  523. package/dist/iife/utils/tracking.utils.d.ts +5 -0
  524. package/dist/style.css +1 -0
  525. package/dist/style.js +1 -0
  526. package/jest.config.js +22 -0
  527. package/package.json +72 -0
@@ -0,0 +1,48 @@
1
+ import { QueryParams } from "@/types/search-results/QueryParams";
2
+ import { ProductGrid, SearchResultsDidYouMeanLabels, SearchResultsOptions, SearchResultsProductOptions } from "@/types/search-results/SearchResultsOptions";
3
+ import { PublicQuery, SearchQueryResult } from "@getlupa/client-sdk/Types";
4
+ import Vue from "vue";
5
+ export default class SearchResults extends Vue {
6
+ options: SearchResultsOptions;
7
+ get productsOptions(): SearchResultsProductOptions;
8
+ get didYouMeanLabels(): SearchResultsDidYouMeanLabels;
9
+ get queryText(): string;
10
+ get showFilterSidebar(): boolean;
11
+ trackSearch: ({ queryKey, query, }: {
12
+ queryKey: string;
13
+ query: PublicQuery;
14
+ }) => void;
15
+ trackResults: ({ queryKey, results, }: {
16
+ queryKey: string;
17
+ results: SearchQueryResult;
18
+ }) => void;
19
+ currentQueryText: string;
20
+ suggestedSearchText: string;
21
+ searchString: string;
22
+ setDefaultLimit: (defaultLimit: number) => {
23
+ defaultLimit: number;
24
+ };
25
+ addParams: (params: QueryParams) => {
26
+ params: QueryParams;
27
+ };
28
+ setSearchResultOptions: ({ options, }: {
29
+ options: SearchResultsOptions;
30
+ }) => void;
31
+ mounted(): void;
32
+ beforeDestroy(): void;
33
+ handleMounted(): void;
34
+ handleParamsChange(): void;
35
+ addSearchResult: (searchResult: SearchQueryResult) => SearchQueryResult;
36
+ setLoading: (loading: boolean) => {
37
+ loading: boolean;
38
+ };
39
+ handleUrlChange(params?: URLSearchParams): void;
40
+ query(publicQuery: PublicQuery): void;
41
+ setColumnCount: ({ width, grid, }: {
42
+ width: number;
43
+ grid: ProductGrid;
44
+ }) => {
45
+ columnCount: number;
46
+ };
47
+ handleResize(): void;
48
+ }
@@ -0,0 +1,7 @@
1
+ import { SearchResultsBreadcrumb } from "@/types/search-results/SearchResultsOptions";
2
+ import Vue from "vue";
3
+ export default class SearchResultsBreadcrumbs extends Vue {
4
+ breadcrumbs: SearchResultsBreadcrumb[];
5
+ currentQueryText: string;
6
+ getLabel(label: string): string;
7
+ }
@@ -0,0 +1,19 @@
1
+ import { InputSuggestionFacet } from "@/types/search-box/Common";
2
+ import { QueryParams } from "@/types/search-results/QueryParams";
3
+ import { SearchResultsDidYouMeanLabels } from "@/types/search-results/SearchResultsOptions";
4
+ import { SearchQueryResult } from "@getlupa/client-sdk/Types";
5
+ import Vue from "vue";
6
+ export default class SearchResultsDidYouMean extends Vue {
7
+ labels: SearchResultsDidYouMeanLabels;
8
+ searchResult: SearchQueryResult;
9
+ get didYouMeanLabel(): string;
10
+ get didYouMeanValue(): string;
11
+ insertValue(text: string): string;
12
+ getStyle(text: string): string;
13
+ goToResults: ({ searchText, facet, }: {
14
+ searchText: string;
15
+ facet?: InputSuggestionFacet;
16
+ }) => {
17
+ params: QueryParams;
18
+ };
19
+ }
@@ -0,0 +1,21 @@
1
+ import { SearchResultsAdditionalPanelOptions } from "@/types/search-results/SearchResultsAdditionalPanelOptions";
2
+ import Vue from "vue";
3
+ import { SdkOptions } from "@/types/General";
4
+ import { SearchQueryResult } from "@getlupa/client-sdk/Types";
5
+ import { Document } from "@getlupa/client-sdk/Types";
6
+ export default class AdditionalPanels extends Vue {
7
+ panel: SearchResultsAdditionalPanelOptions;
8
+ options: SdkOptions;
9
+ result: SearchQueryResult;
10
+ query: string;
11
+ showAll: boolean;
12
+ get displayShowMore(): boolean;
13
+ get itemCount(): number;
14
+ get items(): Document[];
15
+ get visibleItems(): Document[];
16
+ get hasResults(): boolean;
17
+ mounted(): void;
18
+ handleQueryChange(): void;
19
+ toggleShowMore(): void;
20
+ addParams(label: string, itemCount: number): string;
21
+ }
@@ -0,0 +1,11 @@
1
+ import { SdkOptions } from "@/types/General";
2
+ import { SearchResultsAdditionalPanelOptions } from "@/types/search-results/SearchResultsAdditionalPanelOptions";
3
+ import { SearchResultsAdditionalPanels } from "@/types/search-results/SearchResultsOptions";
4
+ import Vue from "vue";
5
+ export default class AdditionalPanels extends Vue {
6
+ options: SearchResultsAdditionalPanels;
7
+ sdkOptions: SdkOptions;
8
+ location: "top" | "bottom";
9
+ get locationPanels(): SearchResultsAdditionalPanelOptions[];
10
+ get isVisible(): boolean;
11
+ }
@@ -0,0 +1,6 @@
1
+ import Vue from "vue";
2
+ import { LabeledFilter } from "@/types/search-results/Filters";
3
+ export default class CurrentFilterDisplay extends Vue {
4
+ filter: LabeledFilter;
5
+ handleClick(): void;
6
+ }
@@ -0,0 +1,36 @@
1
+ import Vue from "vue";
2
+ import { ResultCurrentFilterOptions } from "@/types/search-results/SearchResultsOptions";
3
+ import { FacetResult, FilterGroup } from "@getlupa/client-sdk/Types";
4
+ import { LabeledFilter } from "@/types/search-results/Filters";
5
+ import { QueryParams } from "@/types/search-results/QueryParams";
6
+ export default class CurrentFilters extends Vue {
7
+ options: ResultCurrentFilterOptions;
8
+ expandable: boolean;
9
+ isOpen: boolean;
10
+ currentFilters: FilterGroup;
11
+ facets: FacetResult[] | undefined;
12
+ get labeledFilters(): LabeledFilter[];
13
+ get hasFilters(): boolean;
14
+ get filterCount(): number;
15
+ removeParams: ({ paramsToRemove, }: {
16
+ paramsToRemove?: string[];
17
+ }) => {
18
+ params: QueryParams;
19
+ };
20
+ removeAllFilters: () => {
21
+ params: QueryParams;
22
+ };
23
+ handleClearAll: () => void;
24
+ appendParams: ({ params, paramsToRemove, }: {
25
+ params: {
26
+ name: string;
27
+ value: string | string[];
28
+ }[];
29
+ paramsToRemove?: string[];
30
+ }) => {
31
+ params: QueryParams;
32
+ };
33
+ handleRemove({ filter }: {
34
+ filter: LabeledFilter;
35
+ }): void;
36
+ }
@@ -0,0 +1,5 @@
1
+ import Vue from "vue";
2
+ import { SearchResultsFilterOptions } from "@/types/search-results/SearchResultsOptions";
3
+ export default class FiltersTopDropdown extends Vue {
4
+ options: SearchResultsFilterOptions;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { SearchResultsFilterOptions } from "@/types/search-results/SearchResultsOptions";
2
+ import Vue from "vue";
3
+ export default class MobileFilterSidebar extends Vue {
4
+ options: SearchResultsFilterOptions;
5
+ setSidebarVisibility: ({ visible, }: {
6
+ visible: boolean;
7
+ }) => void;
8
+ isMobileSidebarVisible: boolean;
9
+ handleMobileToggle(): void;
10
+ }
@@ -0,0 +1,7 @@
1
+ import Vue from "vue";
2
+ import { SearchResultsFilterOptions } from "@/types/search-results/SearchResultsOptions";
3
+ export default class SearchResultsFilters extends Vue {
4
+ options: SearchResultsFilterOptions;
5
+ expandable: boolean;
6
+ get showCurrentFilters(): boolean;
7
+ }
@@ -0,0 +1,20 @@
1
+ import Vue from "vue";
2
+ import { FacetResult, FilterGroup } from "@getlupa/client-sdk/Types";
3
+ import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ import { FacetAction } from "@/types/search-results/FacetAction";
5
+ export default class FacetDisplay extends Vue {
6
+ options: ResultFacetOptions;
7
+ facet: FacetResult;
8
+ currentFilters: FilterGroup;
9
+ clearable: boolean;
10
+ isOpen: boolean;
11
+ get facetType(): string;
12
+ get hasItems(): boolean;
13
+ get hasFilter(): boolean;
14
+ mounted(): void;
15
+ beforeDestroy(): void;
16
+ handleMouseClick(e: MouseEvent): void;
17
+ toggleFacet(): void;
18
+ handleFacetSelect(item: FacetAction): void;
19
+ clear(): void;
20
+ }
@@ -0,0 +1,13 @@
1
+ import Vue from "vue";
2
+ import { FacetResult, FilterGroup } from "@getlupa/client-sdk/Types";
3
+ import { FacetStyle, ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ import { FacetAction } from "@/types/search-results/FacetAction";
5
+ export default class FacetList extends Vue {
6
+ options: ResultFacetOptions;
7
+ facets: FacetResult[];
8
+ currentFilters: FilterGroup;
9
+ facetStyle: FacetStyle;
10
+ clearable: boolean;
11
+ handleFacetSelect(facetAction: FacetAction): void;
12
+ clear(facet: FacetResult): void;
13
+ }
@@ -0,0 +1,31 @@
1
+ import Vue from "vue";
2
+ import { FacetStyle, ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
3
+ import { FacetResult, FilterGroup } from "@getlupa/client-sdk/Types";
4
+ import { QueryParams } from "@/types/search-results/QueryParams";
5
+ import { FacetAction } from "@/types/search-results/FacetAction";
6
+ export default class Facets extends Vue {
7
+ options: ResultFacetOptions;
8
+ facetStyle: FacetStyle;
9
+ clearable: boolean;
10
+ currentFilters: FilterGroup;
11
+ facets: FacetResult[] | undefined;
12
+ get promotedFacets(): FacetResult[] | undefined;
13
+ get regularFacets(): FacetResult[] | undefined;
14
+ removeParams: ({ paramsToRemove, }: {
15
+ paramsToRemove?: string[];
16
+ }) => {
17
+ params: QueryParams;
18
+ };
19
+ appendParams: ({ params, paramsToRemove, encode, }: {
20
+ params: {
21
+ name: string;
22
+ value: string | string[];
23
+ }[];
24
+ paramsToRemove?: string[];
25
+ encode?: boolean;
26
+ }) => {
27
+ params: QueryParams;
28
+ };
29
+ handleFacetSelect(facetAction: FacetAction): void;
30
+ clear(facet: FacetResult): void;
31
+ }
@@ -0,0 +1,21 @@
1
+ import Vue from "vue";
2
+ import { FacetGroupHierarchy, FacetGroupItem, FilterGroupItemTypeTerms, HierarchyTree } from "@getlupa/client-sdk/Types";
3
+ import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ export default class HierarchyFacet extends Vue {
5
+ options: ResultFacetOptions;
6
+ facet: FacetGroupHierarchy;
7
+ currentFilters: FilterGroupItemTypeTerms;
8
+ showAll: boolean;
9
+ termFilter: string;
10
+ level: number;
11
+ get itemLimit(): number;
12
+ get allValues(): HierarchyTree[];
13
+ get displayValues(): HierarchyTree[];
14
+ get filteredValues(): HierarchyTree[];
15
+ get isFilterable(): boolean;
16
+ handleFacetClick({ value }: {
17
+ value: string;
18
+ }): void;
19
+ handleShowAll(): void;
20
+ isChecked(item: FacetGroupItem): boolean;
21
+ }
@@ -0,0 +1,12 @@
1
+ import Vue from "vue";
2
+ import { FilterGroupItemTypeHierarchy, HierarchyTree } from "@getlupa/client-sdk/Types";
3
+ import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ export default class HierarchyFacetLevel extends Vue {
5
+ options: ResultFacetOptions;
6
+ level: number;
7
+ item: HierarchyTree;
8
+ currentFilters: FilterGroupItemTypeHierarchy;
9
+ handleFacetClick(item: HierarchyTree): void;
10
+ get showChildren(): boolean;
11
+ get isChecked(): boolean;
12
+ }
@@ -0,0 +1,23 @@
1
+ import Vue from "vue";
2
+ import { FacetGroupTypeStats, FilterGroupItemTypeRange } from "@getlupa/client-sdk/Types";
3
+ import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ export default class TermFacet extends Vue {
5
+ options: ResultFacetOptions;
6
+ facet: FacetGroupTypeStats;
7
+ currentFilters: FilterGroupItemTypeRange;
8
+ innerSliderRange: number[];
9
+ get currentGte(): number | undefined;
10
+ get currentLte(): number | undefined;
11
+ get currentMinValue(): number;
12
+ get currentMaxValue(): number;
13
+ get sliderRange(): number[];
14
+ set sliderRange(value: number[]);
15
+ get isPrice(): boolean;
16
+ get facetMin(): number;
17
+ get facetMax(): number;
18
+ get statsSummary(): string;
19
+ onMinValueChange(): void;
20
+ onMaxValueChange(): void;
21
+ handleChange(): void;
22
+ handleDragging(value: number[]): void;
23
+ }
@@ -0,0 +1,18 @@
1
+ import Vue from "vue";
2
+ import { FacetGroup, FacetGroupItem, FilterGroupItemTypeTerms } from "@getlupa/client-sdk/Types";
3
+ import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
4
+ export default class TermFacet extends Vue {
5
+ options: ResultFacetOptions;
6
+ facet: FacetGroup;
7
+ currentFilters: FilterGroupItemTypeTerms;
8
+ showAll: boolean;
9
+ termFilter: string;
10
+ get itemLimit(): number;
11
+ get allValues(): FacetGroupItem[];
12
+ get displayValues(): FacetGroupItem[];
13
+ get filteredValues(): FacetGroupItem[];
14
+ get isFilterable(): boolean;
15
+ handleFacetClick(item: FacetGroupItem): void;
16
+ handleShowAll(): void;
17
+ isChecked(item: FacetGroupItem): boolean;
18
+ }
@@ -0,0 +1,8 @@
1
+ import { ResultsLayout } from "@/types/search-results/ResultsLayout";
2
+ import Vue from "vue";
3
+ export default class SearchResultsLayoutSelection extends Vue {
4
+ layout: ResultsLayout;
5
+ classMap: Record<string, string>;
6
+ setLayout: (layout: ResultsLayout) => void;
7
+ handleLayoutChange(layout: ResultsLayout): void;
8
+ }
@@ -0,0 +1,8 @@
1
+ import Vue from "vue";
2
+ export default class SearchResultsMobileToggle extends Vue {
3
+ label: string;
4
+ setSidebarVisibility: ({ visible, }: {
5
+ visible: boolean;
6
+ }) => void;
7
+ handleMobileToggle(): void;
8
+ }
@@ -0,0 +1,29 @@
1
+ import { PaginationDisplay, PaginationOptions } from "@/types/search-results/PaginationOptions";
2
+ import { ResultsLayout } from "@/types/search-results/ResultsLayout";
3
+ import { ResultCurrentFilterOptions, SearchResultsProductOptions, SearchResultsSimilarQueriesLabels } from "@/types/search-results/SearchResultsOptions";
4
+ import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
5
+ import { SortOptions } from "@/types/search-results/SearchResultsSort";
6
+ import { Document, SearchQueryResult } from "@getlupa/client-sdk/Types";
7
+ import Vue from "vue";
8
+ export default class SearchResultsProducts extends Vue {
9
+ options: SearchResultsProductOptions;
10
+ loading: boolean;
11
+ hasResults: boolean;
12
+ currentQueryText: string;
13
+ isMobileSidebarVisible: boolean;
14
+ productCardOptions(): SearchResultsProductCardOptions;
15
+ get similarQueriesLabels(): SearchResultsSimilarQueriesLabels;
16
+ get showTopFilters(): boolean;
17
+ get currentFilterOptions(): ResultCurrentFilterOptions | undefined;
18
+ columnCount: number;
19
+ searchResult: SearchQueryResult;
20
+ layout: ResultsLayout;
21
+ limit: number;
22
+ page: number;
23
+ get columnSize(): string;
24
+ get sortOptions(): SortOptions;
25
+ get paginationOptions(): PaginationOptions;
26
+ get topPagination(): PaginationDisplay;
27
+ get bottomPagination(): PaginationDisplay;
28
+ getProductKey(index: string, product: Document): string;
29
+ }
@@ -0,0 +1,8 @@
1
+ import Vue from "vue";
2
+ export default class SearchResultsSummary extends Vue {
3
+ label: string;
4
+ clearable: boolean;
5
+ totalItems: number;
6
+ itemRange: number[];
7
+ get summaryLabel(): string;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { PaginationDisplay, PaginationOptions } from "@/types/search-results/PaginationOptions";
2
+ import Vue from "vue";
3
+ import { SortOptions } from "@/types/search-results/SearchResultsSort";
4
+ import { SearchResultsProductOptions } from "@/types/search-results/SearchResultsOptions";
5
+ import { QueryParams } from "@/types/search-results/QueryParams";
6
+ export default class SearchResultsToolbar extends Vue {
7
+ options: SearchResultsProductOptions;
8
+ paginationOptions: PaginationOptions;
9
+ paginationDisplay: PaginationDisplay;
10
+ sortOptions: SortOptions;
11
+ showLayoutSelection: boolean;
12
+ showItemSummary: boolean;
13
+ showFilterClear: boolean;
14
+ hasAnyFilter: boolean;
15
+ get displayPageSelect(): boolean;
16
+ get searchSummaryLabel(): string;
17
+ removeAllFilters: () => {
18
+ params: QueryParams;
19
+ };
20
+ handleClearAll: () => void;
21
+ }
@@ -0,0 +1,18 @@
1
+ import { PaginationPageSelect } from "@/types/search-results/PaginationOptions";
2
+ import { QueryParams } from "@/types/search-results/QueryParams";
3
+ import Vue from "vue";
4
+ export default class SearchResultsPageSelect extends Vue {
5
+ label: string;
6
+ options: PaginationPageSelect;
7
+ get pages(): number[];
8
+ appendParams: ({ params, paramsToRemove, }: {
9
+ params: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ paramsToRemove?: string[];
14
+ }) => {
15
+ params: QueryParams;
16
+ };
17
+ handlePageChange(page: number): void;
18
+ }
@@ -0,0 +1,19 @@
1
+ import { PaginationPageSize } from "@/types/search-results/PaginationOptions";
2
+ import { QueryParams } from "@/types/search-results/QueryParams";
3
+ import Vue from "vue";
4
+ export default class SearchResultsPageSize extends Vue {
5
+ label: string;
6
+ options: PaginationPageSize;
7
+ limit: number;
8
+ updated(): void;
9
+ appendParams: ({ params, paramsToRemove, }: {
10
+ params: {
11
+ name: string;
12
+ value: string;
13
+ }[];
14
+ paramsToRemove?: string[];
15
+ }) => {
16
+ params: QueryParams;
17
+ };
18
+ handleSelect(e: Event): void;
19
+ }
@@ -0,0 +1,33 @@
1
+ import { DocumentElement } from "@/types/DocumentElement";
2
+ import { TrackableEventData } from "@/types/search-box/Common";
3
+ import { BadgeOptions } from "@/types/search-results/BadgeOptions";
4
+ import { ResultsLayout } from "@/types/search-results/ResultsLayout";
5
+ import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
6
+ import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
7
+ import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
8
+ import Vue from "vue";
9
+ export default class SearchResultsProductCard extends Vue {
10
+ product: Document;
11
+ options: SearchResultsProductCardOptions;
12
+ isAdditionalPanel: boolean;
13
+ layout: ResultsLayout;
14
+ query: string;
15
+ trackClick: ({ queryKey, data, }: {
16
+ queryKey: string;
17
+ data: TrackableEventData;
18
+ }) => void;
19
+ get listLayoutClass(): string;
20
+ get badgesOptions(): BadgeOptions;
21
+ get imageElements(): DocumentElement[];
22
+ get detailElements(): DocumentElement[];
23
+ get labels(): SearchResultsOptionLabels;
24
+ get link(): string;
25
+ isInStock: boolean;
26
+ mounted(): void;
27
+ checkIfIsInStock(): Promise<void>;
28
+ get id(): string;
29
+ handleClick(): void;
30
+ handleProductEvent(item: {
31
+ type: ReportableEventType;
32
+ }): void;
33
+ }
@@ -0,0 +1,7 @@
1
+ import { CustomHtmlBadgeElement } from "@/types/search-results/BadgeOptions";
2
+ import Vue from "vue";
3
+ export default class CustomBadge extends Vue {
4
+ badge: CustomHtmlBadgeElement;
5
+ get text(): string;
6
+ get className(): string;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { ImageBadgeElement } from "@/types/search-results/BadgeOptions";
2
+ import Vue from "vue";
3
+ export default class ImageBadge extends Vue {
4
+ badge: ImageBadgeElement;
5
+ get badges(): string[];
6
+ getImageUrl(src: string): string;
7
+ get displayBadges(): string[];
8
+ }
@@ -0,0 +1,9 @@
1
+ import { BadgeElement, BadgeOptions } from "@/types/search-results/BadgeOptions";
2
+ import { AnchorPosition } from "@/types/search-results/SearchResultsProductCardOptions";
3
+ import Vue from "vue";
4
+ export default class SearchResultsBadgeWrapper extends Vue {
5
+ options: BadgeOptions;
6
+ get anchorPosition(): AnchorPosition;
7
+ get badges(): BadgeElement[];
8
+ getBadgeComponent(type: string): string;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { TextBadgeElement } from "@/types/search-results/BadgeOptions";
2
+ import Vue from "vue";
3
+ export default class TextBadge extends Vue {
4
+ badge: TextBadgeElement;
5
+ get badges(): string[];
6
+ get displayBadges(): string[];
7
+ }
@@ -0,0 +1,12 @@
1
+ import Vue from "vue";
2
+ import { Document } from "@getlupa/client-sdk/Types";
3
+ import { AddToCartElement } from "@/types/DocumentElement";
4
+ export default class SearchResultsProductAddToCart extends Vue {
5
+ item: Document;
6
+ options: AddToCartElement;
7
+ inStock: boolean;
8
+ addToCartAmount: number;
9
+ loading: boolean;
10
+ get label(): string;
11
+ handleClick(): Promise<void>;
12
+ }
@@ -0,0 +1,16 @@
1
+ import Vue from "vue";
2
+ import { Document } from "@getlupa/client-sdk/Types";
3
+ import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
4
+ import { DocumentElement } from "@/types/DocumentElement";
5
+ export default class SearchResultsProductCardElement extends Vue {
6
+ item: Document;
7
+ element: DocumentElement;
8
+ labels?: SearchBoxOptionLabels;
9
+ inStock?: boolean;
10
+ link: string;
11
+ get elementComponent(): string;
12
+ get displayElement(): boolean;
13
+ handleProductEvent(item: {
14
+ type: string;
15
+ }): void;
16
+ }
@@ -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 SearchResultsProductCustom extends Vue {
5
+ item: Document;
6
+ options: CustomDocumentElement;
7
+ get text(): string;
8
+ get className(): string;
9
+ get isHtml(): boolean;
10
+ }
@@ -0,0 +1,10 @@
1
+ import Vue from "vue";
2
+ import { Document } from "@getlupa/client-sdk/Types";
3
+ import { DescriptionDocumentElement } from "@/types/DocumentElement";
4
+ export default class SearchResultsProductDescription extends Vue {
5
+ item: Document;
6
+ options: DescriptionDocumentElement;
7
+ get description(): unknown;
8
+ get isHtml(): boolean;
9
+ get maxLines(): number;
10
+ }