@empathyco/x-components 3.0.0-alpha.30 → 3.0.0-alpha.34

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 (671) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/core/index.js +3 -0
  3. package/core/index.js.map +1 -1
  4. package/design-system/default-theme.css +6 -1
  5. package/design-system/full-theme.css +6 -1
  6. package/design-system/list-default.css +3 -0
  7. package/design-system/suggestion-default.css +3 -1
  8. package/docs/API-reference/api/x-adapter.empathyrelatedtag.md +1 -0
  9. package/docs/API-reference/api/x-adapter.empathyrelatedtag.source.md +11 -0
  10. package/docs/API-reference/api/x-components.defaultsessionservice.clearsessionid.md +2 -0
  11. package/docs/API-reference/api/x-components.defaultsessionservice.getsessionid.md +4 -0
  12. package/docs/API-reference/api/x-components.defaultsessionservice.md +3 -3
  13. package/docs/API-reference/api/x-components.defaultsessionservice.session_id_key.md +3 -1
  14. package/docs/API-reference/api/x-components.featurelocation.md +1 -1
  15. package/docs/API-reference/api/x-components.globalxbus.created.md +15 -0
  16. package/docs/API-reference/api/x-components.globalxbus.md +21 -0
  17. package/docs/API-reference/api/x-components.identifierresultsactions.md +0 -1
  18. package/docs/API-reference/api/x-components.identifierresultsmutations.md +1 -0
  19. package/docs/API-reference/api/x-components.identifierresultsmutations.setparams.md +24 -0
  20. package/docs/API-reference/api/x-components.identifierresultsstate.md +1 -0
  21. package/docs/API-reference/api/x-components.identifierresultsstate.params.md +13 -0
  22. package/docs/API-reference/api/x-components.md +8 -0
  23. package/docs/API-reference/api/x-components.relatedtag.highlightcurated.md +13 -0
  24. package/docs/API-reference/api/x-components.relatedtag.md +1 -0
  25. package/docs/API-reference/api/x-components.relatedtags.highlightcurated.md +13 -0
  26. package/docs/API-reference/api/x-components.setconsent.md +1 -1
  27. package/docs/API-reference/api/x-components.setidentifierresultsextraparams.md +13 -0
  28. package/docs/API-reference/api/x-components.setquerytaggingdebounce.md +1 -1
  29. package/docs/API-reference/api/x-components.setsessionduration.md +1 -1
  30. package/docs/API-reference/api/x-components.snippetcallbacks.md +15 -0
  31. package/docs/API-reference/api/x-components.snippetconfig.callbacks.md +13 -0
  32. package/docs/API-reference/api/x-components.snippetconfig.isspa.md +13 -0
  33. package/docs/API-reference/api/x-components.snippetconfig.md +2 -0
  34. package/docs/API-reference/api/x-components.tagging.activeconsent.md +18 -0
  35. package/docs/API-reference/api/x-components.tagging.consent.md +13 -0
  36. package/docs/API-reference/api/x-components.tagging.md +28 -0
  37. package/docs/API-reference/api/x-components.tagging.render.md +15 -0
  38. package/docs/API-reference/api/x-components.taggingactions.md +7 -0
  39. package/docs/API-reference/api/x-components.taggingactions.track.md +24 -0
  40. package/docs/API-reference/api/x-components.tagicon.md +11 -0
  41. package/docs/API-reference/api/x-components.track.md +13 -0
  42. package/docs/API-reference/api/x-components.trackwire.md +13 -0
  43. package/docs/API-reference/api/x-components.xeventlisteners.md +17 -0
  44. package/docs/API-reference/api/x-components.xeventstypes.md +1 -0
  45. package/docs/API-reference/api/x-components.xeventstypes.snippetcallbackexecuted.md +16 -0
  46. package/docs/API-reference/api/x-types.relatedtag.iscurated.md +13 -0
  47. package/docs/API-reference/api/x-types.relatedtag.md +1 -0
  48. package/docs/API-reference/components/common/animations/x-components.animate-width.md +5 -6
  49. package/docs/API-reference/components/common/animations/x-components.collapse-from-top.md +6 -7
  50. package/docs/API-reference/components/common/animations/x-components.collapse-height.md +7 -8
  51. package/docs/API-reference/components/common/animations/x-components.collapse-width.md +7 -8
  52. package/docs/API-reference/components/common/animations/x-components.cross-fade.md +6 -7
  53. package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +6 -7
  54. package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +7 -8
  55. package/docs/API-reference/components/common/animations/x-components.translate-from-left.md +6 -7
  56. package/docs/API-reference/components/common/animations/x-components.translate-from-right.md +6 -7
  57. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +7 -8
  58. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +6 -7
  59. package/docs/API-reference/components/common/currency/x-components.base-currency.md +7 -8
  60. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +7 -8
  61. package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +7 -8
  62. package/docs/API-reference/components/common/icons/x-components.arrow.md +3 -4
  63. package/docs/API-reference/components/common/icons/x-components.bag.md +3 -4
  64. package/docs/API-reference/components/common/icons/x-components.bar-code.md +4 -5
  65. package/docs/API-reference/components/common/icons/x-components.barcode-tiny.md +4 -5
  66. package/docs/API-reference/components/common/icons/x-components.cart.md +3 -4
  67. package/docs/API-reference/components/common/icons/x-components.check-tiny.md +4 -5
  68. package/docs/API-reference/components/common/icons/x-components.check.md +3 -4
  69. package/docs/API-reference/components/common/icons/x-components.checkbox-card-selected.md +4 -5
  70. package/docs/API-reference/components/common/icons/x-components.checkbox-card-unselected.md +4 -5
  71. package/docs/API-reference/components/common/icons/x-components.checkbox-selected.md +4 -5
  72. package/docs/API-reference/components/common/icons/x-components.checkbox-unselected.md +4 -5
  73. package/docs/API-reference/components/common/icons/x-components.chevron-down.md +4 -5
  74. package/docs/API-reference/components/common/icons/x-components.chevron-left.md +4 -5
  75. package/docs/API-reference/components/common/icons/x-components.chevron-right.md +4 -5
  76. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-down.md +4 -5
  77. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-left.md +4 -5
  78. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-right.md +4 -5
  79. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-up.md +4 -5
  80. package/docs/API-reference/components/common/icons/x-components.chevron-up.md +4 -5
  81. package/docs/API-reference/components/common/icons/x-components.cross-tiny.md +4 -5
  82. package/docs/API-reference/components/common/icons/x-components.cross.md +3 -4
  83. package/docs/API-reference/components/common/icons/x-components.filters.md +3 -4
  84. package/docs/API-reference/components/common/icons/x-components.grid-1-col.md +4 -5
  85. package/docs/API-reference/components/common/icons/x-components.grid-2-col.md +4 -5
  86. package/docs/API-reference/components/common/icons/x-components.hide.md +3 -4
  87. package/docs/API-reference/components/common/icons/x-components.history-tiny.md +4 -5
  88. package/docs/API-reference/components/common/icons/x-components.history.md +3 -4
  89. package/docs/API-reference/components/common/icons/x-components.menu.md +3 -4
  90. package/docs/API-reference/components/common/icons/x-components.minus-tiny.md +4 -5
  91. package/docs/API-reference/components/common/icons/x-components.minus.md +3 -4
  92. package/docs/API-reference/components/common/icons/x-components.nq-1.md +4 -5
  93. package/docs/API-reference/components/common/icons/x-components.nq-2.md +4 -5
  94. package/docs/API-reference/components/common/icons/x-components.nq-3.md +4 -5
  95. package/docs/API-reference/components/common/icons/x-components.nq-4.md +4 -5
  96. package/docs/API-reference/components/common/icons/x-components.plus.md +3 -4
  97. package/docs/API-reference/components/common/icons/x-components.search-tiny.md +4 -5
  98. package/docs/API-reference/components/common/icons/x-components.search.md +3 -4
  99. package/docs/API-reference/components/common/icons/x-components.show.md +3 -4
  100. package/docs/API-reference/components/common/icons/x-components.star.md +3 -4
  101. package/docs/API-reference/components/common/icons/x-components.tag.md +7 -0
  102. package/docs/API-reference/components/common/icons/x-components.trash-open.md +4 -5
  103. package/docs/API-reference/components/common/icons/x-components.trash.md +3 -4
  104. package/docs/API-reference/components/common/icons/x-components.trending-tiny.md +4 -5
  105. package/docs/API-reference/components/common/icons/x-components.trending.md +3 -4
  106. package/docs/API-reference/components/common/icons/x-components.user.md +3 -4
  107. package/docs/API-reference/components/common/layouts/x-components.fixed-header-and-asides-layout.md +6 -7
  108. package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +6 -7
  109. package/docs/API-reference/components/common/layouts/x-components.single-column-layout.md +6 -5
  110. package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +7 -8
  111. package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +7 -8
  112. package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +12 -13
  113. package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +7 -8
  114. package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +7 -8
  115. package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +9 -10
  116. package/docs/API-reference/components/common/modals/x-components.base-modal.md +6 -7
  117. package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +7 -8
  118. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +8 -9
  119. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +8 -9
  120. package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +6 -7
  121. package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +7 -8
  122. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +7 -8
  123. package/docs/API-reference/components/common/result/x-components.base-result-fallback-image.md +4 -5
  124. package/docs/API-reference/components/common/result/x-components.base-result-image.md +6 -7
  125. package/docs/API-reference/components/common/result/x-components.base-result-link.md +5 -6
  126. package/docs/API-reference/components/common/result/x-components.base-result-placeholder-image.md +4 -5
  127. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +6 -7
  128. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +6 -7
  129. package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +7 -8
  130. package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +6 -7
  131. package/docs/API-reference/components/common/x-components.auto-progress-bar.md +5 -6
  132. package/docs/API-reference/components/common/x-components.base-dropdown.md +7 -8
  133. package/docs/API-reference/components/common/x-components.base-event-button.md +9 -10
  134. package/docs/API-reference/components/common/x-components.base-grid.md +11 -12
  135. package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +6 -7
  136. package/docs/API-reference/components/common/x-components.base-rating.md +7 -8
  137. package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +9 -10
  138. package/docs/API-reference/components/common/x-components.global-x-bus.md +50 -0
  139. package/docs/API-reference/components/common/x-components.items-list.md +6 -5
  140. package/docs/API-reference/components/common/x-components.location-provider.md +6 -7
  141. package/docs/API-reference/components/common/x-components.sliding-panel.md +6 -7
  142. package/docs/API-reference/components/common/x-components.snippet-callbacks.md +36 -0
  143. package/docs/API-reference/components/common/x-components.staggering-transition-group.md +6 -7
  144. package/docs/API-reference/components/device/x-components.device-detector.md +8 -9
  145. package/docs/API-reference/components/empathize/x-components.empathize.md +6 -7
  146. package/docs/API-reference/components/extra-params/x-components.extra-params.md +7 -8
  147. package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +7 -8
  148. package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +6 -7
  149. package/docs/API-reference/components/facets/x-components.clear-filters.md +6 -7
  150. package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +9 -10
  151. package/docs/API-reference/components/facets/x-components.facets/facets.md +6 -7
  152. package/docs/API-reference/components/facets/x-components.filters/all-filter.md +10 -11
  153. package/docs/API-reference/components/facets/x-components.filters/base-filter.md +8 -9
  154. package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +7 -8
  155. package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +5 -6
  156. package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +6 -7
  157. package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +9 -10
  158. package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +6 -7
  159. package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +8 -9
  160. package/docs/API-reference/components/facets/x-components.lists/filters-list.md +8 -9
  161. package/docs/API-reference/components/facets/x-components.lists/filters-search.md +6 -7
  162. package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +7 -8
  163. package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +7 -8
  164. package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +8 -9
  165. package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +6 -7
  166. package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +8 -9
  167. package/docs/API-reference/components/history-queries/x-components.history-queries.md +6 -7
  168. package/docs/API-reference/components/history-queries/x-components.history-query.md +8 -9
  169. package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +8 -9
  170. package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +7 -8
  171. package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +8 -9
  172. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +7 -8
  173. package/docs/API-reference/components/next-queries/x-components.next-queries.md +10 -11
  174. package/docs/API-reference/components/next-queries/x-components.next-query.md +8 -9
  175. package/docs/API-reference/components/popular-searches/x-components.popular-search.md +8 -9
  176. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +9 -10
  177. package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +8 -9
  178. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +8 -9
  179. package/docs/API-reference/components/recommendations/x-components.recommendations.md +10 -11
  180. package/docs/API-reference/components/related-tags/x-components.related-tag.md +19 -17
  181. package/docs/API-reference/components/related-tags/x-components.related-tags.md +19 -19
  182. package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +7 -8
  183. package/docs/API-reference/components/scroll/x-components.main-scroll.md +7 -8
  184. package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +7 -8
  185. package/docs/API-reference/components/scroll/x-components.scroll.md +7 -8
  186. package/docs/API-reference/components/scroll/x-components.window-scroll.md +8 -9
  187. package/docs/API-reference/components/search/x-components.banner.md +8 -9
  188. package/docs/API-reference/components/search/x-components.banners-list.md +7 -8
  189. package/docs/API-reference/components/search/x-components.partial-query-button.md +8 -9
  190. package/docs/API-reference/components/search/x-components.partial-results-list.md +7 -8
  191. package/docs/API-reference/components/search/x-components.promoted.md +7 -8
  192. package/docs/API-reference/components/search/x-components.promoteds-list.md +7 -8
  193. package/docs/API-reference/components/search/x-components.redirection.md +7 -8
  194. package/docs/API-reference/components/search/x-components.results-list.md +7 -8
  195. package/docs/API-reference/components/search/x-components.sort-dropdown.md +7 -8
  196. package/docs/API-reference/components/search/x-components.sort-list.md +7 -8
  197. package/docs/API-reference/components/search/x-components.spellcheck-button.md +8 -9
  198. package/docs/API-reference/components/search/x-components.spellcheck.md +8 -9
  199. package/docs/API-reference/components/search-box/x-components.clear-search-input.md +6 -7
  200. package/docs/API-reference/components/search-box/x-components.search-button.md +6 -7
  201. package/docs/API-reference/components/search-box/x-components.search-input.md +7 -8
  202. package/docs/API-reference/components/tagging/x-components.tagging.md +8 -5
  203. package/docs/API-reference/components/url/x-components.url-handler.md +7 -8
  204. package/docs/build-search-ui/README.md +108 -0
  205. package/docs/build-search-ui/web-archetype-integration-guide.md +178 -0
  206. package/docs/build-search-ui/web-use-x-components-guide.md +165 -0
  207. package/docs/build-search-ui/web-x-components-integration-guide.md +192 -0
  208. package/docs/build-search-ui/x-architecture/README.md +128 -0
  209. package/identifier-results/index.js +1 -1
  210. package/js/components/animations/animate-width.vue.js +1 -1
  211. package/js/components/animations/collapse-from-top.vue.js +1 -1
  212. package/js/components/animations/collapse-height.vue.js +3 -3
  213. package/js/components/animations/collapse-width.vue.js +3 -3
  214. package/js/components/animations/cross-fade.vue.js +1 -1
  215. package/js/components/animations/fade-and-slide.vue.js +2 -2
  216. package/js/components/animations/staggered-fade-and-slide.vue.js +2 -2
  217. package/js/components/animations/translate-from-left.vue.js +1 -1
  218. package/js/components/animations/translate-from-right.vue.js +1 -1
  219. package/js/components/auto-progress-bar.vue.js +4 -5
  220. package/js/components/auto-progress-bar.vue.js.map +1 -1
  221. package/js/components/base-dropdown.vue.js +33 -45
  222. package/js/components/base-dropdown.vue.js.map +1 -1
  223. package/js/components/base-event-button.vue.js +1 -1
  224. package/js/components/base-grid.vue.js +7 -9
  225. package/js/components/base-grid.vue.js.map +1 -1
  226. package/js/components/base-keyboard-navigation.vue.js +7 -10
  227. package/js/components/base-keyboard-navigation.vue.js.map +1 -1
  228. package/js/components/base-rating.vue.js +19 -20
  229. package/js/components/base-rating.vue.js.map +1 -1
  230. package/js/components/base-variable-column-grid.vue.js +6 -7
  231. package/js/components/base-variable-column-grid.vue.js.map +1 -1
  232. package/js/components/column-picker/base-column-picker-dropdown.vue.js +11 -14
  233. package/js/components/column-picker/base-column-picker-dropdown.vue.js.map +1 -1
  234. package/js/components/column-picker/base-column-picker-list.vue.js +9 -11
  235. package/js/components/column-picker/base-column-picker-list.vue.js.map +1 -1
  236. package/js/components/currency/base-currency.vue.js +2 -3
  237. package/js/components/currency/base-currency.vue.js.map +1 -1
  238. package/js/components/filters/labels/base-rating-filter-label.vue.js +7 -8
  239. package/js/components/filters/labels/base-rating-filter-label.vue.js.map +1 -1
  240. package/js/components/global-x-bus.vue.js +39 -0
  241. package/js/components/global-x-bus.vue.js.map +1 -0
  242. package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js +46 -0
  243. package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js.map +1 -0
  244. package/js/components/icons/arrow.vue.js +4 -6
  245. package/js/components/icons/arrow.vue.js.map +1 -1
  246. package/js/components/icons/bag.vue.js +8 -12
  247. package/js/components/icons/bag.vue.js.map +1 -1
  248. package/js/components/icons/bar-code.vue.js +6 -9
  249. package/js/components/icons/bar-code.vue.js.map +1 -1
  250. package/js/components/icons/barcode-tiny.vue.js +6 -9
  251. package/js/components/icons/barcode-tiny.vue.js.map +1 -1
  252. package/js/components/icons/cart.vue.js +10 -13
  253. package/js/components/icons/cart.vue.js.map +1 -1
  254. package/js/components/icons/check-tiny.vue.js +4 -6
  255. package/js/components/icons/check-tiny.vue.js.map +1 -1
  256. package/js/components/icons/check.vue.js +4 -6
  257. package/js/components/icons/check.vue.js.map +1 -1
  258. package/js/components/icons/checkbox-card-selected.vue.js +5 -7
  259. package/js/components/icons/checkbox-card-selected.vue.js.map +1 -1
  260. package/js/components/icons/checkbox-card-unselected.vue.js +5 -7
  261. package/js/components/icons/checkbox-card-unselected.vue.js.map +1 -1
  262. package/js/components/icons/checkbox-selected.vue.js +5 -7
  263. package/js/components/icons/checkbox-selected.vue.js.map +1 -1
  264. package/js/components/icons/checkbox-unselected.vue.js +6 -6
  265. package/js/components/icons/chevron-down.vue.js +6 -8
  266. package/js/components/icons/chevron-down.vue.js.map +1 -1
  267. package/js/components/icons/chevron-left.vue.js +6 -8
  268. package/js/components/icons/chevron-left.vue.js.map +1 -1
  269. package/js/components/icons/chevron-right.vue.js +4 -6
  270. package/js/components/icons/chevron-right.vue.js.map +1 -1
  271. package/js/components/icons/chevron-tiny-down.vue.js +6 -8
  272. package/js/components/icons/chevron-tiny-down.vue.js.map +1 -1
  273. package/js/components/icons/chevron-tiny-left.vue.js +6 -8
  274. package/js/components/icons/chevron-tiny-left.vue.js.map +1 -1
  275. package/js/components/icons/chevron-tiny-right.vue.js +6 -8
  276. package/js/components/icons/chevron-tiny-right.vue.js.map +1 -1
  277. package/js/components/icons/chevron-tiny-up.vue.js +6 -8
  278. package/js/components/icons/chevron-tiny-up.vue.js.map +1 -1
  279. package/js/components/icons/chevron-up.vue.js +6 -8
  280. package/js/components/icons/chevron-up.vue.js.map +1 -1
  281. package/js/components/icons/cross-tiny.vue.js +4 -6
  282. package/js/components/icons/cross-tiny.vue.js.map +1 -1
  283. package/js/components/icons/cross.vue.js +4 -6
  284. package/js/components/icons/cross.vue.js.map +1 -1
  285. package/js/components/icons/filters.vue.js +10 -15
  286. package/js/components/icons/filters.vue.js.map +1 -1
  287. package/js/components/icons/grid-1-col.vue.js +6 -9
  288. package/js/components/icons/grid-1-col.vue.js.map +1 -1
  289. package/js/components/icons/grid-2-col.vue.js +8 -10
  290. package/js/components/icons/grid-2-col.vue.js.map +1 -1
  291. package/js/components/icons/hide.vue.js +10 -15
  292. package/js/components/icons/hide.vue.js.map +1 -1
  293. package/js/components/icons/history-tiny.vue.js +9 -12
  294. package/js/components/icons/history-tiny.vue.js.map +1 -1
  295. package/js/components/icons/history.vue.js +9 -12
  296. package/js/components/icons/history.vue.js.map +1 -1
  297. package/js/components/icons/menu.vue.js +6 -8
  298. package/js/components/icons/menu.vue.js.map +1 -1
  299. package/js/components/icons/minus-tiny.vue.js +4 -6
  300. package/js/components/icons/minus-tiny.vue.js.map +1 -1
  301. package/js/components/icons/minus.vue.js +4 -6
  302. package/js/components/icons/minus.vue.js.map +1 -1
  303. package/js/components/icons/nq-1.vue.js +4 -6
  304. package/js/components/icons/nq-1.vue.js.map +1 -1
  305. package/js/components/icons/nq-2.vue.js +4 -6
  306. package/js/components/icons/nq-2.vue.js.map +1 -1
  307. package/js/components/icons/nq-3.vue.js +6 -8
  308. package/js/components/icons/nq-3.vue.js.map +1 -1
  309. package/js/components/icons/nq-4.vue.js +9 -12
  310. package/js/components/icons/nq-4.vue.js.map +1 -1
  311. package/js/components/icons/plus.vue.js +4 -6
  312. package/js/components/icons/plus.vue.js.map +1 -1
  313. package/js/components/icons/search-tiny.vue.js +6 -9
  314. package/js/components/icons/search-tiny.vue.js.map +1 -1
  315. package/js/components/icons/search.vue.js +6 -8
  316. package/js/components/icons/search.vue.js.map +1 -1
  317. package/js/components/icons/show.vue.js +7 -10
  318. package/js/components/icons/show.vue.js.map +1 -1
  319. package/js/components/icons/star.vue.js +6 -9
  320. package/js/components/icons/star.vue.js.map +1 -1
  321. package/js/components/icons/tag.vue.js +59 -0
  322. package/js/components/icons/tag.vue.js.map +1 -0
  323. package/js/components/icons/tag.vue_rollup-plugin-vue=script.js +4 -0
  324. package/js/components/icons/tag.vue_rollup-plugin-vue=script.js.map +1 -0
  325. package/js/components/icons/trash-open.vue.js +12 -15
  326. package/js/components/icons/trash-open.vue.js.map +1 -1
  327. package/js/components/icons/trash.vue.js +8 -11
  328. package/js/components/icons/trash.vue.js.map +1 -1
  329. package/js/components/icons/trending-tiny.vue.js +8 -10
  330. package/js/components/icons/trending-tiny.vue.js.map +1 -1
  331. package/js/components/icons/trending.vue.js +8 -10
  332. package/js/components/icons/trending.vue.js.map +1 -1
  333. package/js/components/icons/user.vue.js +6 -9
  334. package/js/components/icons/user.vue.js.map +1 -1
  335. package/js/components/items-list.vue.js +6 -7
  336. package/js/components/items-list.vue.js.map +1 -1
  337. package/js/components/layouts/multi-column-max-width-layout.vue.js +54 -88
  338. package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
  339. package/js/components/layouts/single-column-layout.vue.js +39 -67
  340. package/js/components/layouts/single-column-layout.vue.js.map +1 -1
  341. package/js/components/modals/base-events-modal-close.vue.js +2 -2
  342. package/js/components/modals/base-events-modal-open.vue.js +2 -2
  343. package/js/components/modals/base-events-modal.vue.js +3 -3
  344. package/js/components/modals/base-id-modal-close.vue.js +2 -2
  345. package/js/components/modals/base-id-modal-open.vue.js +2 -2
  346. package/js/components/modals/base-id-modal.vue.js +3 -3
  347. package/js/components/modals/base-modal.vue.js +9 -11
  348. package/js/components/modals/base-modal.vue.js.map +1 -1
  349. package/js/components/panels/base-header-toggle-panel.vue.js +5 -7
  350. package/js/components/panels/base-header-toggle-panel.vue.js.map +1 -1
  351. package/js/components/panels/base-id-toggle-panel-button.vue.js +2 -2
  352. package/js/components/panels/base-id-toggle-panel.vue.js +1 -1
  353. package/js/components/panels/base-toggle-panel.vue.js +3 -4
  354. package/js/components/panels/base-toggle-panel.vue.js.map +1 -1
  355. package/js/components/result/base-result-add-to-cart.vue.js +2 -2
  356. package/js/components/result/base-result-current-price.vue.js +6 -8
  357. package/js/components/result/base-result-current-price.vue.js.map +1 -1
  358. package/js/components/result/base-result-fallback-image.vue.js +7 -9
  359. package/js/components/result/base-result-fallback-image.vue.js.map +1 -1
  360. package/js/components/result/base-result-image.vue.js +9 -12
  361. package/js/components/result/base-result-image.vue.js.map +1 -1
  362. package/js/components/result/base-result-link.vue.js +5 -5
  363. package/js/components/result/base-result-placeholder-image.vue.js +7 -9
  364. package/js/components/result/base-result-placeholder-image.vue.js.map +1 -1
  365. package/js/components/result/base-result-previous-price.vue.js +7 -9
  366. package/js/components/result/base-result-previous-price.vue.js.map +1 -1
  367. package/js/components/scroll/base-scroll.vue.js +2 -2
  368. package/js/components/sliding-panel.vue.js +11 -14
  369. package/js/components/sliding-panel.vue.js.map +1 -1
  370. package/js/components/snippet-callbacks.vue.js +47 -0
  371. package/js/components/snippet-callbacks.vue.js.map +1 -0
  372. package/js/components/snippet-callbacks.vue_rollup-plugin-vue=script.js +58 -0
  373. package/js/components/snippet-callbacks.vue_rollup-plugin-vue=script.js.map +1 -0
  374. package/js/components/suggestions/base-suggestion.vue.js +6 -8
  375. package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
  376. package/js/components/suggestions/base-suggestions.vue.js +6 -7
  377. package/js/components/suggestions/base-suggestions.vue.js.map +1 -1
  378. package/js/index.js +7 -2
  379. package/js/index.js.map +1 -1
  380. package/js/utils/origin.js +5 -3
  381. package/js/utils/origin.js.map +1 -1
  382. package/js/utils/storage.js +2 -2
  383. package/js/utils/storage.js.map +1 -1
  384. package/js/x-modules/device/components/device-detector.vue.js +2 -2
  385. package/js/x-modules/empathize/components/empathize.vue.js +5 -6
  386. package/js/x-modules/empathize/components/empathize.vue.js.map +1 -1
  387. package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js +3 -0
  388. package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
  389. package/js/x-modules/extra-params/components/renderless-extra-param.vue.js +3 -4
  390. package/js/x-modules/extra-params/components/renderless-extra-param.vue.js.map +1 -1
  391. package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js +3 -0
  392. package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js.map +1 -1
  393. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js +1 -1
  394. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js +3 -0
  395. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
  396. package/js/x-modules/facets/components/clear-filters.vue.js +6 -8
  397. package/js/x-modules/facets/components/clear-filters.vue.js.map +1 -1
  398. package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js +3 -0
  399. package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js.map +1 -1
  400. package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js +3 -0
  401. package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js.map +1 -1
  402. package/js/x-modules/facets/components/facets/facets.vue.js +10 -11
  403. package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
  404. package/js/x-modules/facets/components/filters/all-filter.vue.js +5 -6
  405. package/js/x-modules/facets/components/filters/all-filter.vue.js.map +1 -1
  406. package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js +3 -0
  407. package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  408. package/js/x-modules/facets/components/filters/base-filter.vue.js +5 -6
  409. package/js/x-modules/facets/components/filters/base-filter.vue.js.map +1 -1
  410. package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js +3 -0
  411. package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  412. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js +19 -23
  413. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js.map +1 -1
  414. package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js +29 -38
  415. package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js.map +1 -1
  416. package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js +3 -0
  417. package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  418. package/js/x-modules/facets/components/filters/number-range-filter.vue.js +5 -6
  419. package/js/x-modules/facets/components/filters/number-range-filter.vue.js.map +1 -1
  420. package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js +3 -0
  421. package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  422. package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js +3 -0
  423. package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  424. package/js/x-modules/facets/components/filters/simple-filter.vue.js +13 -17
  425. package/js/x-modules/facets/components/filters/simple-filter.vue.js.map +1 -1
  426. package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js +3 -0
  427. package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js.map +1 -1
  428. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js +3 -0
  429. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js.map +1 -1
  430. package/js/x-modules/facets/components/lists/filters-list.vue.js +4 -4
  431. package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js +3 -0
  432. package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js.map +1 -1
  433. package/js/x-modules/facets/components/lists/filters-search.vue.js +8 -10
  434. package/js/x-modules/facets/components/lists/filters-search.vue.js.map +1 -1
  435. package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js +3 -0
  436. package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js.map +1 -1
  437. package/js/x-modules/facets/components/lists/selected-filters-list.vue.js +14 -20
  438. package/js/x-modules/facets/components/lists/selected-filters-list.vue.js.map +1 -1
  439. package/js/x-modules/facets/components/lists/selected-filters.vue.js +3 -4
  440. package/js/x-modules/facets/components/lists/selected-filters.vue.js.map +1 -1
  441. package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js +3 -0
  442. package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js.map +1 -1
  443. package/js/x-modules/facets/components/lists/sliced-filters.vue.js +12 -18
  444. package/js/x-modules/facets/components/lists/sliced-filters.vue.js.map +1 -1
  445. package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js +3 -0
  446. package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js.map +1 -1
  447. package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js +3 -0
  448. package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js.map +1 -1
  449. package/js/x-modules/history-queries/components/clear-history-queries.vue.js +5 -6
  450. package/js/x-modules/history-queries/components/clear-history-queries.vue.js.map +1 -1
  451. package/js/x-modules/history-queries/components/history-queries.vue.js +19 -25
  452. package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
  453. package/js/x-modules/history-queries/components/history-query.vue.js +14 -18
  454. package/js/x-modules/history-queries/components/history-query.vue.js.map +1 -1
  455. package/js/x-modules/history-queries/components/history-query.vue_rollup-plugin-vue=script.js.map +1 -1
  456. package/js/x-modules/history-queries/components/remove-history-query.vue.js +2 -2
  457. package/js/x-modules/identifier-results/components/identifier-result.vue.js +2 -2
  458. package/js/x-modules/identifier-results/components/identifier-results.vue.js +4 -4
  459. package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js +4 -2
  460. package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js.map +1 -1
  461. package/js/x-modules/identifier-results/store/actions/save-query.action.js +4 -0
  462. package/js/x-modules/identifier-results/store/actions/save-query.action.js.map +1 -1
  463. package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js +4 -9
  464. package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js.map +1 -1
  465. package/js/x-modules/identifier-results/store/module.js +5 -3
  466. package/js/x-modules/identifier-results/store/module.js.map +1 -1
  467. package/js/x-modules/identifier-results/wiring.js +16 -3
  468. package/js/x-modules/identifier-results/wiring.js.map +1 -1
  469. package/js/x-modules/next-queries/components/next-queries-list.vue.js +9 -12
  470. package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
  471. package/js/x-modules/next-queries/components/next-queries.vue.js +15 -20
  472. package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
  473. package/js/x-modules/next-queries/components/next-query.vue.js +9 -10
  474. package/js/x-modules/next-queries/components/next-query.vue.js.map +1 -1
  475. package/js/x-modules/next-queries/components/next-query.vue_rollup-plugin-vue=script.js.map +1 -1
  476. package/js/x-modules/popular-searches/components/popular-search.vue.js +9 -10
  477. package/js/x-modules/popular-searches/components/popular-search.vue.js.map +1 -1
  478. package/js/x-modules/popular-searches/components/popular-search.vue_rollup-plugin-vue=script.js.map +1 -1
  479. package/js/x-modules/popular-searches/components/popular-searches.vue.js +15 -20
  480. package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
  481. package/js/x-modules/query-suggestions/components/query-suggestion.vue.js +10 -11
  482. package/js/x-modules/query-suggestions/components/query-suggestion.vue.js.map +1 -1
  483. package/js/x-modules/query-suggestions/components/query-suggestion.vue_rollup-plugin-vue=script.js.map +1 -1
  484. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js +15 -20
  485. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +1 -1
  486. package/js/x-modules/recommendations/components/recommendations.vue.js +9 -12
  487. package/js/x-modules/recommendations/components/recommendations.vue.js.map +1 -1
  488. package/js/x-modules/related-tags/components/related-tag.vue.js +11 -8
  489. package/js/x-modules/related-tags/components/related-tag.vue.js.map +1 -1
  490. package/js/x-modules/related-tags/components/related-tag.vue_rollup-plugin-vue=script.js +35 -7
  491. package/js/x-modules/related-tags/components/related-tag.vue_rollup-plugin-vue=script.js.map +1 -1
  492. package/js/x-modules/related-tags/components/related-tags.vue.js +28 -21
  493. package/js/x-modules/related-tags/components/related-tags.vue.js.map +1 -1
  494. package/js/x-modules/related-tags/components/related-tags.vue_rollup-plugin-vue=script.js +3 -0
  495. package/js/x-modules/related-tags/components/related-tags.vue_rollup-plugin-vue=script.js.map +1 -1
  496. package/js/x-modules/scroll/components/main-scroll-item.vue.js +1 -1
  497. package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue=script.js +3 -0
  498. package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue=script.js.map +1 -1
  499. package/js/x-modules/scroll/components/scroll-to-top.vue.js +3 -4
  500. package/js/x-modules/scroll/components/scroll-to-top.vue.js.map +1 -1
  501. package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue=script.js +3 -0
  502. package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue=script.js.map +1 -1
  503. package/js/x-modules/scroll/components/scroll.vue.js +4 -4
  504. package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue=script.js +3 -0
  505. package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue=script.js.map +1 -1
  506. package/js/x-modules/search/components/banner.vue.js +4 -6
  507. package/js/x-modules/search/components/banner.vue.js.map +1 -1
  508. package/js/x-modules/search/components/banners-list.vue.js +9 -12
  509. package/js/x-modules/search/components/banners-list.vue.js.map +1 -1
  510. package/js/x-modules/search/components/partial-query-button.vue.js +4 -5
  511. package/js/x-modules/search/components/partial-query-button.vue.js.map +1 -1
  512. package/js/x-modules/search/components/partial-query-button.vue_rollup-plugin-vue=script.js +14 -6
  513. package/js/x-modules/search/components/partial-query-button.vue_rollup-plugin-vue=script.js.map +1 -1
  514. package/js/x-modules/search/components/partial-results-list.vue.js +4 -4
  515. package/js/x-modules/search/components/promoted.vue.js +4 -6
  516. package/js/x-modules/search/components/promoted.vue.js.map +1 -1
  517. package/js/x-modules/search/components/promoteds-list.vue.js +9 -12
  518. package/js/x-modules/search/components/promoteds-list.vue.js.map +1 -1
  519. package/js/x-modules/search/components/redirection.vue.js +4 -5
  520. package/js/x-modules/search/components/redirection.vue.js.map +1 -1
  521. package/js/x-modules/search/components/results-list.vue.js +9 -12
  522. package/js/x-modules/search/components/results-list.vue.js.map +1 -1
  523. package/js/x-modules/search/components/sort-dropdown.vue.js +13 -16
  524. package/js/x-modules/search/components/sort-dropdown.vue.js.map +1 -1
  525. package/js/x-modules/search/components/sort-list.vue.js +8 -10
  526. package/js/x-modules/search/components/sort-list.vue.js.map +1 -1
  527. package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js +3 -0
  528. package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js.map +1 -1
  529. package/js/x-modules/search/components/sort.mixin.js +3 -0
  530. package/js/x-modules/search/components/sort.mixin.js.map +1 -1
  531. package/js/x-modules/search/components/spellcheck-button.vue.js +4 -5
  532. package/js/x-modules/search/components/spellcheck-button.vue.js.map +1 -1
  533. package/js/x-modules/search/components/spellcheck-button.vue_rollup-plugin-vue=script.js +14 -6
  534. package/js/x-modules/search/components/spellcheck-button.vue_rollup-plugin-vue=script.js.map +1 -1
  535. package/js/x-modules/search/components/spellcheck.vue.js +4 -6
  536. package/js/x-modules/search/components/spellcheck.vue.js.map +1 -1
  537. package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js +3 -0
  538. package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js.map +1 -1
  539. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +7 -2
  540. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
  541. package/js/x-modules/search/store/emitters.js +8 -1
  542. package/js/x-modules/search/store/emitters.js.map +1 -1
  543. package/js/x-modules/search/store/getters/request.getter.js +2 -3
  544. package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
  545. package/js/x-modules/search/wiring.js +4 -3
  546. package/js/x-modules/search/wiring.js.map +1 -1
  547. package/js/x-modules/search-box/components/clear-search-input.vue.js +5 -6
  548. package/js/x-modules/search-box/components/clear-search-input.vue.js.map +1 -1
  549. package/js/x-modules/search-box/components/search-button.vue.js +4 -5
  550. package/js/x-modules/search-box/components/search-button.vue.js.map +1 -1
  551. package/js/x-modules/search-box/components/search-button.vue_rollup-plugin-vue=script.js +14 -6
  552. package/js/x-modules/search-box/components/search-button.vue_rollup-plugin-vue=script.js.map +1 -1
  553. package/js/x-modules/search-box/components/search-input.vue.js +9 -11
  554. package/js/x-modules/search-box/components/search-input.vue.js.map +1 -1
  555. package/js/x-modules/search-box/components/search-input.vue_rollup-plugin-vue=script.js +17 -14
  556. package/js/x-modules/search-box/components/search-input.vue_rollup-plugin-vue=script.js.map +1 -1
  557. package/js/x-modules/tagging/components/tagging.vue.js +39 -0
  558. package/js/x-modules/tagging/components/tagging.vue.js.map +1 -0
  559. package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js +65 -0
  560. package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js.map +1 -0
  561. package/js/x-modules/tagging/service/session.service.js +23 -6
  562. package/js/x-modules/tagging/service/session.service.js.map +1 -1
  563. package/js/x-modules/tagging/store/actions/track.action.js +43 -0
  564. package/js/x-modules/tagging/store/actions/track.action.js.map +1 -0
  565. package/js/x-modules/tagging/store/module.js +6 -2
  566. package/js/x-modules/tagging/store/module.js.map +1 -1
  567. package/js/x-modules/tagging/wiring.js +30 -3
  568. package/js/x-modules/tagging/wiring.js.map +1 -1
  569. package/js/x-modules/url/components/url-handler.vue.js +2 -2
  570. package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
  571. package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue=script.js +101 -5
  572. package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue=script.js.map +1 -1
  573. package/package.json +16 -14
  574. package/report/tsdoc-metadata.json +1 -1
  575. package/report/x-adapter.api.json +29 -3
  576. package/report/x-components.api.json +662 -59
  577. package/report/x-components.api.md +106 -18
  578. package/report/x-types.api.json +27 -1
  579. package/tagging/index.js +4 -2
  580. package/types/adapter/mocked-adapter.d.ts.map +1 -1
  581. package/types/components/global-x-bus.vue.d.ts +25 -0
  582. package/types/components/global-x-bus.vue.d.ts.map +1 -0
  583. package/types/components/icons/index.d.ts +1 -0
  584. package/types/components/icons/index.d.ts.map +1 -1
  585. package/types/components/icons/tag.vue.d.ts +3 -0
  586. package/types/components/icons/tag.vue.d.ts.map +1 -0
  587. package/types/components/index.d.ts +2 -0
  588. package/types/components/index.d.ts.map +1 -1
  589. package/types/components/snippet-callbacks.vue.d.ts +27 -0
  590. package/types/components/snippet-callbacks.vue.d.ts.map +1 -0
  591. package/types/types/origin.d.ts +1 -1
  592. package/types/types/origin.d.ts.map +1 -1
  593. package/types/utils/origin.d.ts +3 -1
  594. package/types/utils/origin.d.ts.map +1 -1
  595. package/types/utils/storage.d.ts +1 -7
  596. package/types/utils/storage.d.ts.map +1 -1
  597. package/types/wiring/events.types.d.ts +8 -0
  598. package/types/wiring/events.types.d.ts.map +1 -1
  599. package/types/x-installer/api/api.types.d.ts +14 -0
  600. package/types/x-installer/api/api.types.d.ts.map +1 -1
  601. package/types/x-modules/history-queries/components/history-query.vue.d.ts.map +1 -1
  602. package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +1 -1
  603. package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts.map +1 -1
  604. package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +1 -1
  605. package/types/x-modules/identifier-results/store/module.d.ts.map +1 -1
  606. package/types/x-modules/identifier-results/store/types.d.ts +9 -7
  607. package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
  608. package/types/x-modules/identifier-results/wiring.d.ts +11 -1
  609. package/types/x-modules/identifier-results/wiring.d.ts.map +1 -1
  610. package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -1
  611. package/types/x-modules/popular-searches/components/popular-search.vue.d.ts.map +1 -1
  612. package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +1 -1
  613. package/types/x-modules/related-tags/components/related-tag.vue.d.ts +22 -0
  614. package/types/x-modules/related-tags/components/related-tag.vue.d.ts.map +1 -1
  615. package/types/x-modules/related-tags/components/related-tags.vue.d.ts +6 -0
  616. package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -1
  617. package/types/x-modules/search/components/partial-query-button.vue.d.ts +8 -0
  618. package/types/x-modules/search/components/partial-query-button.vue.d.ts.map +1 -1
  619. package/types/x-modules/search/components/spellcheck-button.vue.d.ts +8 -0
  620. package/types/x-modules/search/components/spellcheck-button.vue.d.ts.map +1 -1
  621. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
  622. package/types/x-modules/search/store/emitters.d.ts +4 -1
  623. package/types/x-modules/search/store/emitters.d.ts.map +1 -1
  624. package/types/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
  625. package/types/x-modules/search/wiring.d.ts +2 -1
  626. package/types/x-modules/search/wiring.d.ts.map +1 -1
  627. package/types/x-modules/search-box/components/search-button.vue.d.ts +8 -0
  628. package/types/x-modules/search-box/components/search-button.vue.d.ts.map +1 -1
  629. package/types/x-modules/search-box/components/search-input.vue.d.ts +6 -3
  630. package/types/x-modules/search-box/components/search-input.vue.d.ts.map +1 -1
  631. package/types/x-modules/tagging/components/tagging.vue.d.ts +47 -0
  632. package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -0
  633. package/types/x-modules/tagging/index.d.ts +1 -0
  634. package/types/x-modules/tagging/index.d.ts.map +1 -1
  635. package/types/x-modules/tagging/service/session.service.d.ts +18 -1
  636. package/types/x-modules/tagging/service/session.service.d.ts.map +1 -1
  637. package/types/x-modules/tagging/store/actions/index.d.ts +2 -0
  638. package/types/x-modules/tagging/store/actions/index.d.ts.map +1 -0
  639. package/types/x-modules/tagging/store/actions/track.action.d.ts +12 -0
  640. package/types/x-modules/tagging/store/actions/track.action.d.ts.map +1 -0
  641. package/types/x-modules/tagging/store/index.d.ts +1 -0
  642. package/types/x-modules/tagging/store/index.d.ts.map +1 -1
  643. package/types/x-modules/tagging/store/module.d.ts.map +1 -1
  644. package/types/x-modules/tagging/store/types.d.ts +7 -0
  645. package/types/x-modules/tagging/store/types.d.ts.map +1 -1
  646. package/types/x-modules/tagging/wiring.d.ts +17 -7
  647. package/types/x-modules/tagging/wiring.d.ts.map +1 -1
  648. package/types/x-modules/url/components/url-handler.vue.d.ts +70 -7
  649. package/types/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
  650. package/docs/API-reference/api/x-components.identifierresultsactions.seturlparams.md +0 -24
  651. package/docs/css/global.scss +0 -1
  652. package/docs/css/utils/utils.scss +0 -35
  653. package/docs/css/xcomponents/clear-search-input.scss +0 -9
  654. package/docs/css/xcomponents/index.scss +0 -16
  655. package/docs/css/xcomponents/search-input.scss +0 -10
  656. package/docs/css/xcomponents/suggestions.scss +0 -19
  657. package/docs/guide/getting-started/components/clear-search-input.md +0 -98
  658. package/docs/guide/getting-started/components/live-examples.md +0 -100
  659. package/docs/guide/getting-started/components/query-suggestions.md +0 -76
  660. package/docs/guide/getting-started/components/search-button.md +0 -98
  661. package/docs/guide/getting-started/components/search-input.md +0 -105
  662. package/docs/guide/getting-started/install-xplugin.md +0 -72
  663. package/docs/guide/getting-started/use-components.md +0 -75
  664. package/docs/guide/install.md +0 -30
  665. package/docs/react-components/ReactComponents.jsx +0 -46
  666. package/docs/react-components/Utils.jsx +0 -34
  667. package/docs/sidebar.json +0 -1
  668. package/js/x-modules/identifier-results/store/actions/set-url-params.action.js +0 -17
  669. package/js/x-modules/identifier-results/store/actions/set-url-params.action.js.map +0 -1
  670. package/types/x-modules/identifier-results/store/actions/set-url-params.action.d.ts +0 -12
  671. package/types/x-modules/identifier-results/store/actions/set-url-params.action.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"results-list.vue.js","sources":["../../../../../src/x-modules/search/components/results-list.vue"],"sourcesContent":["<template>\n <NoElement>\n <!--\n @slot Customize ResultsList.\n @binding {Result[]} items - Results to render.\n @binding {Vue | string} animation - Animation to animate the elements.\n -->\n <slot v-bind=\"{ items, animation }\">\n <ItemsList :animation=\"animation\" :items=\"items\">\n <template v-for=\"(_, slotName) in $scopedSlots\" v-slot:[slotName]=\"{ item }\">\n <slot :name=\"slotName\" :item=\"item\" />\n </template>\n </ItemsList>\n </slot>\n </NoElement>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { LIST_ITEMS_KEY } from '../../../components/decorators/injection.consts';\n import { XProvide } from '../../../components/decorators/injection.decorators';\n import { State } from '../../../components/decorators/store.decorators';\n import { NoElement } from '../../../components/no-element';\n import ItemsList from '../../../components/items-list.vue';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { InfiniteScroll } from '../../../directives/infinite-scroll/infinite-scroll.types';\n import { searchXModule } from '../x-module';\n\n /**\n * It renders a {@link ItemsList} list with the results from {@link SearchState.results} by\n * default.\n *\n * The component provides a default slot which wraps the whole component with the `results` bound.\n *\n * It also provides the slot result to customize the item, which is within the default slot, with\n * the result bound.\n *\n * @public\n */\n @Component({\n components: {\n NoElement,\n ItemsList\n },\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class ResultsList extends Vue implements InfiniteScroll {\n /**\n * The results to render from the state.\n *\n * @remarks The results list are provided with `items` key. It can be\n * concatenated with list items from components such as `BannersList`, `PromotedsList`,\n * `BaseGrid` or any component that injects the list.\n *\n * @public\n */\n @XProvide(LIST_ITEMS_KEY)\n @State('search', 'results')\n public items!: Result[];\n\n /**\n * Animation component that will be used to animate the results.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It emits an {@link SearchXEvents.UserReachedResultsListEnd} event.\n *\n * @internal\n */\n onInfiniteScrollEnd(): void {\n this.$x.emit('UserReachedResultsListEnd');\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component doesn't emit events.\n\n## See it in action\n\n<!-- prettier-ignore-start -->\n:::warning Backend service required\nTo use this component, the Search service must be implemented.\n:::\n<!-- prettier-ignore-end -->\n\nHere you have a basic example of how the ResultsList is rendered.\n\n_Type any term in the input field to try it out!_\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList />\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n }\n };\n</script>\n```\n\n### Play with the animation\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList :animation=\"fadeAndSlide\" />\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n import { FadeAndSlide } from '@empathyco/x-components/animations';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n },\n data() {\n return {\n fadeAndSlide: FadeAndSlide\n };\n }\n };\n</script>\n```\n\n### Overriding default content\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList #default=\"{ items, animation }\">\n <BaseGrid :items=\"items\" :animation=\"animation\">\n <template #result=\"{ item }\">\n <span>Result: {{ item.name }}</span>\n </template>\n <template #default=\"{ item }\">\n <span>Default: {{ item }}</span>\n </template>\n </BaseGrid>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n import { BaseGrid } from '@empathyco/x-components';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList,\n BaseGrid\n }\n };\n</script>\n```\n\n### Overriding result content\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList #result=\"{ item }\">\n <span class=\"result\">\n {{ item.name }}\n </span>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { SearchInput, ResultsList } from '@empathyco/x-components/search';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n }\n };\n</script>\n```\n\n### Data injection\n\nStarting with the `ResultsList` component as root element, you can concat the list of list items\nusing `BannersList`, `PromotedsList`, `BaseGrid` or any component that injects the `listItems`\nvalue.\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList>\n <BannersList>\n <PromotedsList>\n <template #result=\"{ item }\">Result: {{ item.id }}</template>\n <template #banner=\"{ item }\">Banner: {{ item.id }}</template>\n <template #promoted=\"{ item }\">Promoted: {{ item.id }}</template>\n </PromotedsList>\n </BannersList>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { ResultsList, BannersList, PromotedsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList,\n BannersList,\n PromotedsList\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"results-list.vue.js","sources":["../../../../../src/x-modules/search/components/results-list.vue"],"sourcesContent":["<template>\n <NoElement>\n <!--\n @slot Customize ResultsList.\n @binding {Result[]} items - Results to render.\n @binding {Vue | string} animation - Animation to animate the elements.\n -->\n <slot v-bind=\"{ items, animation }\">\n <ItemsList :animation=\"animation\" :items=\"items\">\n <template v-for=\"(_, slotName) in $scopedSlots\" v-slot:[slotName]=\"{ item }\">\n <slot :name=\"slotName\" :item=\"item\" />\n </template>\n </ItemsList>\n </slot>\n </NoElement>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { LIST_ITEMS_KEY } from '../../../components/decorators/injection.consts';\n import { XProvide } from '../../../components/decorators/injection.decorators';\n import { State } from '../../../components/decorators/store.decorators';\n import { NoElement } from '../../../components/no-element';\n import ItemsList from '../../../components/items-list.vue';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { InfiniteScroll } from '../../../directives/infinite-scroll/infinite-scroll.types';\n import { searchXModule } from '../x-module';\n\n /**\n * It renders a {@link ItemsList} list with the results from {@link SearchState.results} by\n * default.\n *\n * The component provides a default slot which wraps the whole component with the `results` bound.\n *\n * It also provides the slot result to customize the item, which is within the default slot, with\n * the result bound.\n *\n * @public\n */\n @Component({\n components: {\n NoElement,\n ItemsList\n },\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class ResultsList extends Vue implements InfiniteScroll {\n /**\n * The results to render from the state.\n *\n * @remarks The results list are provided with `items` key. It can be\n * concatenated with list items from components such as `BannersList`, `PromotedsList`,\n * `BaseGrid` or any component that injects the list.\n *\n * @public\n */\n @XProvide(LIST_ITEMS_KEY)\n @State('search', 'results')\n public items!: Result[];\n\n /**\n * Animation component that will be used to animate the results.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It emits an {@link SearchXEvents.UserReachedResultsListEnd} event.\n *\n * @internal\n */\n onInfiniteScrollEnd(): void {\n this.$x.emit('UserReachedResultsListEnd');\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component doesn't emit events.\n\n## See it in action\n\n<!-- prettier-ignore-start -->\n:::warning Backend service required\nTo use this component, the Search service must be implemented.\n:::\n<!-- prettier-ignore-end -->\n\nHere you have a basic example of how the ResultsList is rendered.\n\n_Type any term in the input field to try it out!_\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList />\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n }\n };\n</script>\n```\n\n### Play with the animation\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList :animation=\"fadeAndSlide\" />\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n import { FadeAndSlide } from '@empathyco/x-components/animations';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n },\n data() {\n return {\n fadeAndSlide: FadeAndSlide\n };\n }\n };\n</script>\n```\n\n### Overriding default content\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList #default=\"{ items, animation }\">\n <BaseGrid :items=\"items\" :animation=\"animation\">\n <template #result=\"{ item }\">\n <span>Result: {{ item.name }}</span>\n </template>\n <template #default=\"{ item }\">\n <span>Default: {{ item }}</span>\n </template>\n </BaseGrid>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { ResultsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n import { BaseGrid } from '@empathyco/x-components';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList,\n BaseGrid\n }\n };\n</script>\n```\n\n### Overriding result content\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList #result=\"{ item }\">\n <span class=\"result\">\n {{ item.name }}\n </span>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { SearchInput, ResultsList } from '@empathyco/x-components/search';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList\n }\n };\n</script>\n```\n\n### Data injection\n\nStarting with the `ResultsList` component as root element, you can concat the list of list items\nusing `BannersList`, `PromotedsList`, `BaseGrid` or any component that injects the `listItems`\nvalue.\n\n```vue\n<template>\n <div>\n <SearchInput />\n <ResultsList>\n <BannersList>\n <PromotedsList>\n <template #result=\"{ item }\">Result: {{ item.id }}</template>\n <template #banner=\"{ item }\">Banner: {{ item.id }}</template>\n <template #promoted=\"{ item }\">Promoted: {{ item.id }}</template>\n </PromotedsList>\n </BannersList>\n </ResultsList>\n </div>\n</template>\n\n<script>\n import { ResultsList, BannersList, PromotedsList } from '@empathyco/x-components/search';\n import { SearchInput } from '@empathyco/x-components/search-box';\n\n export default {\n name: 'ResultsListDemo',\n components: {\n SearchInput,\n ResultsList,\n BannersList,\n PromotedsList\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@ import script from './sort-dropdown.vue_rollup-plugin-vue=script.js';
5
5
  var __vue_script__ = script;
6
6
 
7
7
  /* template */
8
- var __vue_render__ = function() {
8
+ var __vue_render__ = function () {
9
9
  var _vm = this;
10
10
  var _h = _vm.$createElement;
11
11
  var _c = _vm._self._c || _h;
@@ -15,54 +15,51 @@ var __vue_render__ = function() {
15
15
  animation: _vm.animation,
16
16
  items: _vm.items,
17
17
  value: _vm.selectedSort,
18
- "data-test": "sort-dropdown"
18
+ "data-test": "sort-dropdown",
19
19
  },
20
20
  on: { change: _vm.emitUserClickedASort },
21
21
  scopedSlots: _vm._u(
22
22
  [
23
23
  {
24
24
  key: "toggle",
25
- fn: function(ref) {
25
+ fn: function (ref) {
26
26
  var isOpen = ref.isOpen;
27
27
  var item = ref.item;
28
28
  return [
29
29
  _vm._t(
30
30
  "toggle",
31
- function() {
31
+ function () {
32
32
  return [_vm._v(_vm._s(item))]
33
33
  },
34
34
  null,
35
35
  { isOpen: isOpen, item: item }
36
- )
37
- ]
38
- }
36
+ ) ]
37
+ },
39
38
  },
40
39
  {
41
40
  key: "item",
42
- fn: function(ref) {
41
+ fn: function (ref) {
43
42
  var item = ref.item;
44
43
  var isHighlighted = ref.isHighlighted;
45
44
  var isSelected = ref.isSelected;
46
45
  return [
47
46
  _vm._t(
48
47
  "item",
49
- function() {
48
+ function () {
50
49
  return [_vm._v(_vm._s(item))]
51
50
  },
52
51
  null,
53
52
  {
54
53
  item: item,
55
54
  isHighlighted: isHighlighted,
56
- isSelected: isSelected
55
+ isSelected: isSelected,
57
56
  }
58
- )
59
- ]
60
- }
61
- }
62
- ],
57
+ ) ]
58
+ },
59
+ } ],
63
60
  null,
64
61
  true
65
- )
62
+ ),
66
63
  })
67
64
  };
68
65
  var __vue_staticRenderFns__ = [];
@@ -1 +1 @@
1
- {"version":3,"file":"sort-dropdown.vue.js","sources":["../../../../../src/x-modules/search/components/sort-dropdown.vue"],"sourcesContent":["<template>\n <BaseDropdown\n @change=\"emitUserClickedASort\"\n :animation=\"animation\"\n :items=\"items\"\n :value=\"selectedSort\"\n class=\"x-sort-dropdown\"\n data-test=\"sort-dropdown\"\n >\n <template #toggle=\"{ isOpen, item }\">\n <!--\n @slot Used to render the contents of the dropdown toggle button. If not provided, it uses\n the item slot as fallback.\n @binding {Sort} item - The sort data to render.\n @binding {boolean} isOpen - True if the dropdown is opened, and false if it is closed.\n -->\n <slot v-bind=\"{ isOpen, item }\" name=\"toggle\">{{ item }}</slot>\n </template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <!--\n @slot (required) Used to render each one of the items content, and as fallback\n for the toggle button content slot if it is not provided.\n @binding {Sort} item - Sort to render\n @binding {boolean} isHighlighted - True when the item has the focus.\n @binding {boolean} isSelected - True when the item is selected.\n -->\n <slot v-bind=\"{ item, isHighlighted, isSelected }\" name=\"item\">{{ item }}</slot>\n </template>\n </BaseDropdown>\n</template>\n\n<script lang=\"ts\">\n import { Sort } from '@empathyco/x-types';\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import BaseDropdown from '../../../components/base-dropdown.vue';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { searchXModule } from '../x-module';\n import SortMixin from './sort.mixin';\n\n /**\n * The `SortDropdown` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)],\n components: { BaseDropdown },\n model: {\n event: 'change'\n }\n })\n export default class SortDropdown extends mixins(SortMixin) {\n /**\n * The transition to use for opening and closing the dropdown.\n *\n * @public\n */\n @Prop()\n public animation?: string | typeof Vue;\n /**\n * Emits the events related to the selection of a sort value.\n *\n * @param sort - The selected sort.\n * @internal\n */\n protected emitUserClickedASort(sort: Sort): void {\n this.$x.emit('UserClickedASort', sort, { target: this.$el as HTMLElement });\n this.$emit('change', sort);\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Sort Dropdown\n\nThe `SortDropdown` component can be used to change the way the search results are ordered.\n\nTo do so, the list of valid sort values has to be provided using the `items` prop. These are the\nvalues that can be received then in the `SearchAdapter`.\n\nThe component also optionally accepts the selected sort, which can be set using the `value` prop.\nThis prop allows changing programmatically the selected sort, as it will be synced with the store\nimmediately. If this prop is not provided, the first item from the `items` prop will be the one\nselected by default.\n\nThis component also allows customizing both the toggle button and each one of the possible sort\nvalues. This can be done with the`toggle` and `item` slots.\n\n## Examples\n\n### Only providing the list of items\n\n```vue\n<template>\n <SortDropdown :items=\"sortValues\">\n <template #toggle=\"{ item, isOpen }\">{{ item }} {{ isOpen ? '🔼' : '🔽' }}</template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n <span v-if=\"isHighlighted\">🟢</span>\n {{ item }}\n </template>\n </SortDropdown>\n</template>\n\n<script>\n import { SortDropdown } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortDropdown\n },\n data() {\n return { sortValues: ['Relevance', 'Price asc', 'Price desc'] };\n }\n };\n</script>\n```\n\n### Providing also the selected value\n\n```vue\n<template>\n <SortDropdown v-model=\"selectedSort\" :items=\"sortValues\">\n <template #toggle=\"{ item, isOpen }\">{{ item }} {{ isOpen ? '🔼' : '🔽' }}</template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n <span v-if=\"isHighlighted\">🟢</span>\n {{ item }}\n </template>\n </SortDropdown>\n</template>\n\n<script>\n import { SortDropdown } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortDropdown\n },\n data() {\n return {\n selectedSort: 'Price asc',\n sortValues: ['Relevance', 'Price asc', 'Price desc']\n };\n }\n };\n</script>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- SelectedSortProvided: To sync the selected sort with the store state value. This event is emitted\n as soon as the list of items is received, whenever this list changes if there is no provided\n value, and when the provided value changes.\n- UserClickedASort: As its name suggest, the event is emitted after the user clicks one of the sort\n options. This does not mean that the sort has changed, only that the user has clicked it.\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"sort-dropdown.vue.js","sources":["../../../../../src/x-modules/search/components/sort-dropdown.vue"],"sourcesContent":["<template>\n <BaseDropdown\n @change=\"emitUserClickedASort\"\n :animation=\"animation\"\n :items=\"items\"\n :value=\"selectedSort\"\n class=\"x-sort-dropdown\"\n data-test=\"sort-dropdown\"\n >\n <template #toggle=\"{ isOpen, item }\">\n <!--\n @slot Used to render the contents of the dropdown toggle button. If not provided, it uses\n the item slot as fallback.\n @binding {Sort} item - The sort data to render.\n @binding {boolean} isOpen - True if the dropdown is opened, and false if it is closed.\n -->\n <slot v-bind=\"{ isOpen, item }\" name=\"toggle\">{{ item }}</slot>\n </template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <!--\n @slot (required) Used to render each one of the items content, and as fallback\n for the toggle button content slot if it is not provided.\n @binding {Sort} item - Sort to render\n @binding {boolean} isHighlighted - True when the item has the focus.\n @binding {boolean} isSelected - True when the item is selected.\n -->\n <slot v-bind=\"{ item, isHighlighted, isSelected }\" name=\"item\">{{ item }}</slot>\n </template>\n </BaseDropdown>\n</template>\n\n<script lang=\"ts\">\n import { Sort } from '@empathyco/x-types';\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import BaseDropdown from '../../../components/base-dropdown.vue';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { searchXModule } from '../x-module';\n import SortMixin from './sort.mixin';\n\n /**\n * The `SortDropdown` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)],\n components: { BaseDropdown },\n model: {\n event: 'change'\n }\n })\n export default class SortDropdown extends mixins(SortMixin) {\n /**\n * The transition to use for opening and closing the dropdown.\n *\n * @public\n */\n @Prop()\n public animation?: string | typeof Vue;\n /**\n * Emits the events related to the selection of a sort value.\n *\n * @param sort - The selected sort.\n * @internal\n */\n protected emitUserClickedASort(sort: Sort): void {\n this.$x.emit('UserClickedASort', sort, { target: this.$el as HTMLElement });\n this.$emit('change', sort);\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Sort Dropdown\n\nThe `SortDropdown` component can be used to change the way the search results are ordered.\n\nTo do so, the list of valid sort values has to be provided using the `items` prop. These are the\nvalues that can be received then in the `SearchAdapter`.\n\nThe component also optionally accepts the selected sort, which can be set using the `value` prop.\nThis prop allows changing programmatically the selected sort, as it will be synced with the store\nimmediately. If this prop is not provided, the first item from the `items` prop will be the one\nselected by default.\n\nThis component also allows customizing both the toggle button and each one of the possible sort\nvalues. This can be done with the`toggle` and `item` slots.\n\n## Examples\n\n### Only providing the list of items\n\n```vue\n<template>\n <SortDropdown :items=\"sortValues\">\n <template #toggle=\"{ item, isOpen }\">{{ item }} {{ isOpen ? '🔼' : '🔽' }}</template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n <span v-if=\"isHighlighted\">🟢</span>\n {{ item }}\n </template>\n </SortDropdown>\n</template>\n\n<script>\n import { SortDropdown } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortDropdown\n },\n data() {\n return { sortValues: ['Relevance', 'Price asc', 'Price desc'] };\n }\n };\n</script>\n```\n\n### Providing also the selected value\n\n```vue\n<template>\n <SortDropdown v-model=\"selectedSort\" :items=\"sortValues\">\n <template #toggle=\"{ item, isOpen }\">{{ item }} {{ isOpen ? '🔼' : '🔽' }}</template>\n <template #item=\"{ item, isHighlighted, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n <span v-if=\"isHighlighted\">🟢</span>\n {{ item }}\n </template>\n </SortDropdown>\n</template>\n\n<script>\n import { SortDropdown } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortDropdown\n },\n data() {\n return {\n selectedSort: 'Price asc',\n sortValues: ['Relevance', 'Price asc', 'Price desc']\n };\n }\n };\n</script>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- SelectedSortProvided: To sync the selected sort with the store state value. This event is emitted\n as soon as the list of items is received, whenever this list changes if there is no provided\n value, and when the provided value changes.\n- UserClickedASort: As its name suggest, the event is emitted after the user clicks one of the sort\n options. This does not mean that the sort has changed, only that the user has clicked it.\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ import script from './sort-list.vue_rollup-plugin-vue=script.js';
6
6
  var __vue_script__ = script;
7
7
 
8
8
  /* template */
9
- var __vue_render__ = function() {
9
+ var __vue_render__ = function () {
10
10
  var _vm = this;
11
11
  var _h = _vm.$createElement;
12
12
  var _c = _vm._self._c || _h;
@@ -15,9 +15,9 @@ var __vue_render__ = function() {
15
15
  {
16
16
  tag: "component",
17
17
  staticClass: "x-option-list x-sort-list",
18
- attrs: { tag: "ul", "data-test": "sort-list" }
18
+ attrs: { tag: "ul", "data-test": "sort-list" },
19
19
  },
20
- _vm._l(_vm.listItems, function(ref) {
20
+ _vm._l(_vm.listItems, function (ref) {
21
21
  var item = ref.item;
22
22
  var cssClasses = ref.cssClasses;
23
23
  var event = ref.event;
@@ -26,28 +26,26 @@ var __vue_render__ = function() {
26
26
  {
27
27
  key: item,
28
28
  staticClass: "x-option-list__item x-sort-list__item",
29
- class: cssClasses
29
+ class: cssClasses,
30
30
  },
31
31
  [
32
32
  _c(
33
33
  "BaseEventButton",
34
34
  {
35
35
  staticClass: "x-button x-sort-list__button",
36
- attrs: { "data-test": "x-sort-button", events: event }
36
+ attrs: { "data-test": "x-sort-button", events: event },
37
37
  },
38
38
  [
39
39
  _vm._t(
40
40
  "default",
41
- function() {
41
+ function () {
42
42
  return [_vm._v("\n " + _vm._s(item) + "\n ")]
43
43
  },
44
44
  null,
45
45
  { item: item, isSelected: item === _vm.selectedSort }
46
- )
47
- ],
46
+ ) ],
48
47
  2
49
- )
50
- ],
48
+ ) ],
51
49
  1
52
50
  )
53
51
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"sort-list.vue.js","sources":["../../../../../src/x-modules/search/components/sort-list.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" tag=\"ul\" class=\"x-option-list x-sort-list\" data-test=\"sort-list\">\n <li\n v-for=\"{ item, cssClasses, event } in listItems\"\n :key=\"item\"\n :class=\"cssClasses\"\n class=\"x-option-list__item x-sort-list__item\"\n >\n <BaseEventButton\n class=\"x-button x-sort-list__button\"\n data-test=\"x-sort-button\"\n :events=\"event\"\n >\n <slot v-bind=\"{ item, isSelected: item === selectedSort }\">\n {{ item }}\n </slot>\n </BaseEventButton>\n </li>\n </component>\n</template>\n\n<style lang=\"scss\" scoped>\n .x-sort-list {\n list-style-type: none;\n }\n</style>\n\n<script lang=\"ts\">\n import { Sort } from '@empathyco/x-types';\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import { BaseEventButton } from '../../../components';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { VueCSSClasses } from '../../../utils';\n import { XEventsTypes } from '../../../wiring';\n import { searchXModule } from '../x-module';\n import SortMixin from './sort.mixin';\n\n /**\n * Sort list item options.\n *\n * @public\n */\n interface SortListItem {\n item: Sort;\n cssClasses: VueCSSClasses;\n event: Partial<XEventsTypes>;\n }\n /**\n * The `SortList` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)],\n components: {\n BaseEventButton\n }\n })\n export default class SortList extends mixins(SortMixin) {\n /**\n * The transition to use for rendering the list.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n public animation?: string | typeof Vue;\n /**\n * Sort list items.\n *\n * @returns A list of items with their css class and the event associate to it.\n *\n * @internal\n */\n protected get listItems(): SortListItem[] {\n return this.items.map(item => ({\n item,\n cssClasses: [\n {\n 'x-sort-list__item--is-selected': item === this.selectedSort,\n 'x-option-list__item--is-selected': item === this.selectedSort\n }\n ],\n event: { UserClickedASort: item }\n }));\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Sort List\n\nThe `SortList` component can be used to change the way the search results are ordered.\n\nTo do so, the list of valid sort values has to be provided using the `items` prop. These are the\nvalues that can then be received in the `SearchAdapter`.\n\nThe component also optionally accepts the selected sort, which can be set using the `value` prop.\nThis prop allows changing programmatically the selected sort, as it will be synced with the store\nimmediately. If this prop is not provided, the first item from the `items` prop will be the one\nselected by default.\n\nThis component also allows customizing each one of the possible sort values. This can be done with\nthe `default` slot.\n\n## Examples\n\n### Only providing the list of items\n\n```vue\n<template>\n <SortList :items=\"sortValues\">\n <template #item=\"{ item, isSelected }\">Item: {{ item }}</template>\n </SortList>\n</template>\n\n<script>\n import { SortList } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortList\n },\n data() {\n return { sortValues: ['Relevance', 'Price asc', 'Price desc'] };\n }\n };\n</script>\n```\n\n### Providing also the selected value\n\n```vue\n<template>\n <SortList v-model=\"selectedSort\" :items=\"sortValues\">\n <template #item=\"{ item, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n {{ item }}\n </template>\n </SortList>\n</template>\n\n<script>\n import { SortList } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortList\n },\n data() {\n return {\n selectedSort: 'Price asc',\n sortValues: ['Relevance', 'Price asc', 'Price desc']\n };\n }\n };\n</script>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- SelectedSortProvided: To sync the selected sort with the store state value. This event is emitted\n as soon as the list of items is received, whenever this list changes if there is no provided\n value, and when the provided value changes.\n- UserClickedASort: As its name suggest, the event is emitted after the user clicks one of the sort\n options. This does not mean that the sort has changed, only that the user has clicked it.\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"sort-list.vue.js","sources":["../../../../../src/x-modules/search/components/sort-list.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" tag=\"ul\" class=\"x-option-list x-sort-list\" data-test=\"sort-list\">\n <li\n v-for=\"{ item, cssClasses, event } in listItems\"\n :key=\"item\"\n :class=\"cssClasses\"\n class=\"x-option-list__item x-sort-list__item\"\n >\n <BaseEventButton\n class=\"x-button x-sort-list__button\"\n data-test=\"x-sort-button\"\n :events=\"event\"\n >\n <slot v-bind=\"{ item, isSelected: item === selectedSort }\">\n {{ item }}\n </slot>\n </BaseEventButton>\n </li>\n </component>\n</template>\n\n<style lang=\"scss\" scoped>\n .x-sort-list {\n list-style-type: none;\n }\n</style>\n\n<script lang=\"ts\">\n import { Sort } from '@empathyco/x-types';\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import { BaseEventButton } from '../../../components';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { VueCSSClasses } from '../../../utils';\n import { XEventsTypes } from '../../../wiring';\n import { searchXModule } from '../x-module';\n import SortMixin from './sort.mixin';\n\n /**\n * Sort list item options.\n *\n * @public\n */\n interface SortListItem {\n item: Sort;\n cssClasses: VueCSSClasses;\n event: Partial<XEventsTypes>;\n }\n /**\n * The `SortList` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)],\n components: {\n BaseEventButton\n }\n })\n export default class SortList extends mixins(SortMixin) {\n /**\n * The transition to use for rendering the list.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n public animation?: string | typeof Vue;\n /**\n * Sort list items.\n *\n * @returns A list of items with their css class and the event associate to it.\n *\n * @internal\n */\n protected get listItems(): SortListItem[] {\n return this.items.map(item => ({\n item,\n cssClasses: [\n {\n 'x-sort-list__item--is-selected': item === this.selectedSort,\n 'x-option-list__item--is-selected': item === this.selectedSort\n }\n ],\n event: { UserClickedASort: item }\n }));\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Sort List\n\nThe `SortList` component can be used to change the way the search results are ordered.\n\nTo do so, the list of valid sort values has to be provided using the `items` prop. These are the\nvalues that can then be received in the `SearchAdapter`.\n\nThe component also optionally accepts the selected sort, which can be set using the `value` prop.\nThis prop allows changing programmatically the selected sort, as it will be synced with the store\nimmediately. If this prop is not provided, the first item from the `items` prop will be the one\nselected by default.\n\nThis component also allows customizing each one of the possible sort values. This can be done with\nthe `default` slot.\n\n## Examples\n\n### Only providing the list of items\n\n```vue\n<template>\n <SortList :items=\"sortValues\">\n <template #item=\"{ item, isSelected }\">Item: {{ item }}</template>\n </SortList>\n</template>\n\n<script>\n import { SortList } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortList\n },\n data() {\n return { sortValues: ['Relevance', 'Price asc', 'Price desc'] };\n }\n };\n</script>\n```\n\n### Providing also the selected value\n\n```vue\n<template>\n <SortList v-model=\"selectedSort\" :items=\"sortValues\">\n <template #item=\"{ item, isSelected }\">\n <span v-if=\"isSelected\">✅</span>\n {{ item }}\n </template>\n </SortList>\n</template>\n\n<script>\n import { SortList } from '@empathyco/x-components/search';\n\n export default {\n components: {\n SortList\n },\n data() {\n return {\n selectedSort: 'Price asc',\n sortValues: ['Relevance', 'Price asc', 'Price desc']\n };\n }\n };\n</script>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- SelectedSortProvided: To sync the selected sort with the store state value. This event is emitted\n as soon as the list of items is received, whenever this list changes if there is no provided\n value, and when the provided value changes.\n- UserClickedASort: As its name suggest, the event is emitted after the user clicks one of the sort\n options. This does not mean that the sort has changed, only that the user has clicked it.\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -63,6 +63,7 @@ import '../../../components/icons/plus.vue.js';
63
63
  import '../../../components/icons/search.vue.js';
64
64
  import '../../../components/icons/show.vue.js';
65
65
  import '../../../components/icons/search-tiny.vue.js';
66
+ import '../../../components/icons/tag.vue.js';
66
67
  import '../../../components/icons/trash-open.vue.js';
67
68
  import '../../../components/icons/trash.vue.js';
68
69
  import '../../../components/icons/trending-tiny.vue.js';
@@ -104,6 +105,8 @@ import { xComponentMixin } from '../../../components/x-component.mixin.js';
104
105
  import '../../../components/layouts/multi-column-max-width-layout.vue.js';
105
106
  import '../../../components/layouts/single-column-layout.vue.js';
106
107
  import '../../../components/location-provider.vue.js';
108
+ import '../../../components/global-x-bus.vue.js';
109
+ import '../../../components/snippet-callbacks.vue.js';
107
110
  import '../../../components/items-list-injection.mixin.js';
108
111
  import { searchXModule } from '../x-module.js';
109
112
  import SortMixin from './sort.mixin.js';
@@ -1 +1 @@
1
- {"version":3,"file":"sort-list.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/sort-list.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Sort } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { BaseEventButton } from '../../../components';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { VueCSSClasses } from '../../../utils';\nimport { XEventsTypes } from '../../../wiring';\nimport { searchXModule } from '../x-module';\nimport SortMixin from './sort.mixin';\n\n/**\n * Sort list item options.\n *\n * @public\n */\ninterface SortListItem {\n item: Sort;\n cssClasses: VueCSSClasses;\n event: Partial<XEventsTypes>;\n}\n/**\n * The `SortList` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)],\n components: {\n BaseEventButton\n }\n})\nexport default class SortList extends mixins(SortMixin) {\n /**\n * The transition to use for rendering the list.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n public animation?: string | typeof Vue;\n /**\n * Sort list items.\n *\n * @returns A list of items with their css class and the event associate to it.\n *\n * @internal\n */\n protected get listItems(): SortListItem[] {\n return this.items.map(item => ({\n item,\n cssClasses: [\n {\n 'x-sort-list__item--is-selected': item === this.selectedSort,\n 'x-option-list__item--is-selected': item === this.selectedSort\n }\n ],\n event: { UserClickedASort: item }\n }));\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA;;;;;;;;AAcA;IAAsC,4BAAiB;IAAvD;;KA2BC;IAZC,sBAAc,+BAAS;;;;;;;;aAAvB;YAAA,iBAWC;YAVC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,QAAC;gBAC7B,IAAI,MAAA;gBACJ,UAAU,EAAE;oBACV;wBACE,gCAAgC,EAAE,IAAI,KAAK,KAAI,CAAC,YAAY;wBAC5D,kCAAkC,EAAE,IAAI,KAAK,KAAI,CAAC,YAAY;qBAC/D;iBACF;gBACD,KAAK,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE;aAClC,IAAC,CAAC,CAAC;SACL;;;OAAA;IAnBD;QADC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACe;IAPpB,QAAQ;QAN5B,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;YACxC,UAAU,EAAE;gBACV,eAAe,iBAAA;aAChB;SACF,CAAC;OACmB,QAAQ,CA2B5B;IAAD,eAAC;CA3BD,CAAsC,MAAM,CAAC,SAAS,CAAC;;;;"}
1
+ {"version":3,"file":"sort-list.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/sort-list.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Sort } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { BaseEventButton } from '../../../components';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { VueCSSClasses } from '../../../utils';\nimport { XEventsTypes } from '../../../wiring';\nimport { searchXModule } from '../x-module';\nimport SortMixin from './sort.mixin';\n\n/**\n * Sort list item options.\n *\n * @public\n */\ninterface SortListItem {\n item: Sort;\n cssClasses: VueCSSClasses;\n event: Partial<XEventsTypes>;\n}\n/**\n * The `SortList` component allows user to select the search results order. This component\n * also allows to change the selected sort programmatically.\n *\n * @remarks It extends {@link SortMixin}.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)],\n components: {\n BaseEventButton\n }\n})\nexport default class SortList extends mixins(SortMixin) {\n /**\n * The transition to use for rendering the list.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n public animation?: string | typeof Vue;\n /**\n * Sort list items.\n *\n * @returns A list of items with their css class and the event associate to it.\n *\n * @internal\n */\n protected get listItems(): SortListItem[] {\n return this.items.map(item => ({\n item,\n cssClasses: [\n {\n 'x-sort-list__item--is-selected': item === this.selectedSort,\n 'x-option-list__item--is-selected': item === this.selectedSort\n }\n ],\n event: { UserClickedASort: item }\n }));\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA;;;;;;;;AAcA;IAAsC,4BAAiB;IAAvD;;KA2BC;IAZC,sBAAc,+BAAS;;;;;;;;aAAvB;YAAA,iBAWC;YAVC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,QAAC;gBAC7B,IAAI,MAAA;gBACJ,UAAU,EAAE;oBACV;wBACE,gCAAgC,EAAE,IAAI,KAAK,KAAI,CAAC,YAAY;wBAC5D,kCAAkC,EAAE,IAAI,KAAK,KAAI,CAAC,YAAY;qBAC/D;iBACF;gBACD,KAAK,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE;aAClC,IAAC,CAAC,CAAC;SACL;;;OAAA;IAnBD;QADC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACe;IAPpB,QAAQ;QAN5B,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;YACxC,UAAU,EAAE;gBACV,eAAe,iBAAA;aAChB;SACF,CAAC;OACmB,QAAQ,CA2B5B;IAAD,eAAC;CA3BD,CAAsC,MAAM,CAAC,SAAS,CAAC;;;;"}
@@ -64,6 +64,7 @@ import '../../../components/icons/plus.vue.js';
64
64
  import '../../../components/icons/search.vue.js';
65
65
  import '../../../components/icons/show.vue.js';
66
66
  import '../../../components/icons/search-tiny.vue.js';
67
+ import '../../../components/icons/tag.vue.js';
67
68
  import '../../../components/icons/trash-open.vue.js';
68
69
  import '../../../components/icons/trash.vue.js';
69
70
  import '../../../components/icons/trending-tiny.vue.js';
@@ -105,6 +106,8 @@ import '../../../components/x-component.mixin.js';
105
106
  import '../../../components/layouts/multi-column-max-width-layout.vue.js';
106
107
  import '../../../components/layouts/single-column-layout.vue.js';
107
108
  import '../../../components/location-provider.vue.js';
109
+ import '../../../components/global-x-bus.vue.js';
110
+ import '../../../components/snippet-callbacks.vue.js';
108
111
  import '../../../components/items-list-injection.mixin.js';
109
112
 
110
113
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sort.mixin.js","sources":["../../../../../src/x-modules/search/components/sort.mixin.ts"],"sourcesContent":["import { Sort } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport Component from 'vue-class-component';\nimport { Prop } from 'vue-property-decorator';\nimport { State, XEmit } from '../../../components';\n\n/**\n * Mixin to share Sort logic.\n *\n * @public\n */\n@Component\nexport default class SortMixin extends Vue {\n /**\n * The list of possible sort values. If there are no values selected, the first item of\n * this list will be selected.\n *\n * @public\n */\n @Prop({ required: true })\n public items!: Sort[];\n\n /**\n * The search module selected sort. This is the source of truth when checking which\n * sort is selected.\n *\n * @internal\n */\n @State('search', 'sort')\n public selectedSort!: Sort;\n\n /**\n * Emits the {@link SearchXEvents.SelectedSortProvided | SelectedSortProvided} event whenever the\n * provided {@link SortMixin.selectedSort} changes. If no value is provided, the first item of the\n * {@link SortMixin.items} will be used as fallback.\n *\n * @returns The sorting value.\n *\n * @public\n */\n @XEmit('SelectedSortProvided')\n public get providedSelectedSort(): Sort {\n return this.selectedSort;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;AAMA;IAAuC,6BAAG;IAA1C;;KAgCC;IAHC,sBAAW,2CAAoB;;;;;;;;;;aAA/B;YACE,OAAO,IAAI,CAAC,YAAY,CAAC;SAC1B;;;OAAA;IAvBD;QADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;4CACH;IAStB;QADC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;mDACG;IAY3B;QADC,KAAK,CAAC,sBAAsB,CAAC;yDAG7B;IA/BkB,SAAS;QAD7B,SAAS;OACW,SAAS,CAgC7B;IAAD,gBAAC;CAAA,CAhCsC,GAAG;;;;"}
1
+ {"version":3,"file":"sort.mixin.js","sources":["../../../../../src/x-modules/search/components/sort.mixin.ts"],"sourcesContent":["import { Sort } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport Component from 'vue-class-component';\nimport { Prop } from 'vue-property-decorator';\nimport { State, XEmit } from '../../../components';\n\n/**\n * Mixin to share Sort logic.\n *\n * @public\n */\n@Component\nexport default class SortMixin extends Vue {\n /**\n * The list of possible sort values. If there are no values selected, the first item of\n * this list will be selected.\n *\n * @public\n */\n @Prop({ required: true })\n public items!: Sort[];\n\n /**\n * The search module selected sort. This is the source of truth when checking which\n * sort is selected.\n *\n * @internal\n */\n @State('search', 'sort')\n public selectedSort!: Sort;\n\n /**\n * Emits the {@link SearchXEvents.SelectedSortProvided | SelectedSortProvided} event whenever the\n * provided {@link SortMixin.selectedSort} changes. If no value is provided, the first item of the\n * {@link SortMixin.items} will be used as fallback.\n *\n * @returns The sorting value.\n *\n * @public\n */\n @XEmit('SelectedSortProvided')\n public get providedSelectedSort(): Sort {\n return this.selectedSort;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;AAMA;IAAuC,6BAAG;IAA1C;;KAgCC;IAHC,sBAAW,2CAAoB;;;;;;;;;;aAA/B;YACE,OAAO,IAAI,CAAC,YAAY,CAAC;SAC1B;;;OAAA;IAvBD;QADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;4CACH;IAStB;QADC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;mDACG;IAY3B;QADC,KAAK,CAAC,sBAAsB,CAAC;yDAG7B;IA/BkB,SAAS;QAD7B,SAAS;OACW,SAAS,CAgC7B;IAAD,gBAAC;CAAA,CAhCsC,GAAG;;;;"}
@@ -5,7 +5,7 @@ import script from './spellcheck-button.vue_rollup-plugin-vue=script.js';
5
5
  var __vue_script__ = script;
6
6
 
7
7
  /* template */
8
- var __vue_render__ = function() {
8
+ var __vue_render__ = function () {
9
9
  var _vm = this;
10
10
  var _h = _vm.$createElement;
11
11
  var _c = _vm._self._c || _h;
@@ -15,18 +15,17 @@ var __vue_render__ = function() {
15
15
  {
16
16
  staticClass: "x-spellcheck-button",
17
17
  attrs: { "data-test": "set-spellcheck" },
18
- on: { click: _vm.emitEvents }
18
+ on: { click: _vm.emitEvents },
19
19
  },
20
20
  [
21
21
  _vm._t(
22
22
  "default",
23
- function() {
23
+ function () {
24
24
  return [_vm._v(_vm._s(_vm.spellcheckedQuery))]
25
25
  },
26
26
  null,
27
27
  { spellcheckedQuery: _vm.spellcheckedQuery }
28
- )
29
- ],
28
+ ) ],
30
29
  2
31
30
  )
32
31
  : _vm._e()
@@ -1 +1 @@
1
- {"version":3,"file":"spellcheck-button.vue.js","sources":["../../../../../src/x-modules/search/components/spellcheck-button.vue"],"sourcesContent":["<template>\n <button\n v-if=\"spellcheckedQuery\"\n @click=\"emitEvents\"\n class=\"x-spellcheck-button\"\n data-test=\"set-spellcheck\"\n >\n <slot v-bind=\"{ spellcheckedQuery }\">{{ spellcheckedQuery }}</slot>\n </button>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { State } from '../../../components/decorators/store.decorators';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { searchXModule } from '../x-module';\n /**\n * A button that when pressed emits the {@link XEventsTypes.UserAcceptedAQuery}\n * and {@link XEventsTypes.UserAcceptedSpellcheckQuery} events, expressing the user\n * intention to set the spellchecked query.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class SpellcheckButton extends Vue {\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n\n /**\n * Emits events when the button is clicked.\n *\n * @public\n */\n protected emitEvents(): void {\n this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, {\n target: this.$el as HTMLElement\n });\n this.$x.emit('UserAcceptedSpellcheckQuery', this.spellcheckedQuery, {\n target: this.$el as HTMLElement\n });\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThe component sets the current spellcheckedQuery as the new query and emits the `UserAcceptedAQuery`\nand `UserAcceptedSpellcheckQuery` events.\n\n```vue\n<SpellcheckButton />\n```\n\n## Customizing its contents\n\n```vue\n<SpellcheckButton>\n <template #default=\"{ spellcheckedQuery }\">\n <span class=\"x-spellcheck__text\">\n Set the Spellcheck as the new query: {{ spellcheckedQuery}}!\n </span>\n </template>\n</SpellcheckButton>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- UserAcceptedAQuery: the event is emitted after the user clicks the button. The event payload is\n the spellchecked query data.\n- UserAcceptedSpellcheckQuery: the event is emitted after the user clicks the button. The event\n payload is the spellchecked query data.\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"spellcheck-button.vue.js","sources":["../../../../../src/x-modules/search/components/spellcheck-button.vue"],"sourcesContent":["<template>\n <button\n v-if=\"spellcheckedQuery\"\n @click=\"emitEvents\"\n class=\"x-spellcheck-button\"\n data-test=\"set-spellcheck\"\n >\n <slot v-bind=\"{ spellcheckedQuery }\">{{ spellcheckedQuery }}</slot>\n </button>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { State } from '../../../components/decorators/store.decorators';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { WireMetadata } from '../../../wiring/wiring.types';\n import { searchXModule } from '../x-module';\n /**\n * A button that when pressed emits the {@link XEventsTypes.UserAcceptedAQuery}\n * and {@link XEventsTypes.UserAcceptedSpellcheckQuery} events, expressing the user\n * intention to set the spellchecked query.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class SpellcheckButton extends Vue {\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n\n /**\n * Generates the {@link WireMetadata | event metadata} object omitting the moduleName.\n *\n * @returns The {@link WireMetadata} object omitting the moduleName.\n * @internal\n */\n protected createEventMetadata(): Omit<WireMetadata, 'moduleName'> {\n return {\n target: this.$el as HTMLElement,\n feature: 'spellcheck'\n };\n }\n\n /**\n * Emits events when the button is clicked.\n *\n * @public\n */\n protected emitEvents(): void {\n this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, this.createEventMetadata());\n this.$x.emit(\n 'UserAcceptedSpellcheckQuery',\n this.spellcheckedQuery,\n this.createEventMetadata()\n );\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThe component sets the current spellcheckedQuery as the new query and emits the `UserAcceptedAQuery`\nand `UserAcceptedSpellcheckQuery` events.\n\n```vue\n<SpellcheckButton />\n```\n\n## Customizing its contents\n\n```vue\n<SpellcheckButton>\n <template #default=\"{ spellcheckedQuery }\">\n <span class=\"x-spellcheck__text\">\n Set the Spellcheck as the new query: {{ spellcheckedQuery}}!\n </span>\n </template>\n</SpellcheckButton>\n```\n\n## Events\n\nThis component emits 2 different events:\n\n- UserAcceptedAQuery: the event is emitted after the user clicks the button. The event payload is\n the spellchecked query data.\n- UserAcceptedSpellcheckQuery: the event is emitted after the user clicks the button. The event\n payload is the spellchecked query data.\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -17,18 +17,26 @@ var SpellcheckButton = /** @class */ (function (_super) {
17
17
  function SpellcheckButton() {
18
18
  return _super !== null && _super.apply(this, arguments) || this;
19
19
  }
20
+ /**
21
+ * Generates the {@link WireMetadata | event metadata} object omitting the moduleName.
22
+ *
23
+ * @returns The {@link WireMetadata} object omitting the moduleName.
24
+ * @internal
25
+ */
26
+ SpellcheckButton.prototype.createEventMetadata = function () {
27
+ return {
28
+ target: this.$el,
29
+ feature: 'spellcheck'
30
+ };
31
+ };
20
32
  /**
21
33
  * Emits events when the button is clicked.
22
34
  *
23
35
  * @public
24
36
  */
25
37
  SpellcheckButton.prototype.emitEvents = function () {
26
- this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, {
27
- target: this.$el
28
- });
29
- this.$x.emit('UserAcceptedSpellcheckQuery', this.spellcheckedQuery, {
30
- target: this.$el
31
- });
38
+ this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, this.createEventMetadata());
39
+ this.$x.emit('UserAcceptedSpellcheckQuery', this.spellcheckedQuery, this.createEventMetadata());
32
40
  };
33
41
  __decorate([
34
42
  State('search', 'spellcheckedQuery')
@@ -1 +1 @@
1
- {"version":3,"file":"spellcheck-button.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/spellcheck-button.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { searchXModule } from '../x-module';\n/**\n * A button that when pressed emits the {@link XEventsTypes.UserAcceptedAQuery}\n * and {@link XEventsTypes.UserAcceptedSpellcheckQuery} events, expressing the user\n * intention to set the spellchecked query.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)]\n})\nexport default class SpellcheckButton extends Vue {\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n\n /**\n * Emits events when the button is clicked.\n *\n * @public\n */\n protected emitEvents(): void {\n this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, {\n target: this.$el as HTMLElement\n });\n this.$x.emit('UserAcceptedSpellcheckQuery', this.spellcheckedQuery, {\n target: this.$el as HTMLElement\n });\n }\n}\n"],"names":[],"mappings":";;;;;;;AAiBA;;;;;;;AAUA;IAA8C,oCAAG;IAAjD;;KAsBC;;;;;;IARW,qCAAU,GAApB;QACE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,EAAE;YACzD,MAAM,EAAE,IAAI,CAAC,GAAkB;SAChC,CAAC,CAAC;QACH,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,6BAA6B,EAAE,IAAI,CAAC,iBAAiB,EAAE;YAClE,MAAM,EAAE,IAAI,CAAC,GAAkB;SAChC,CAAC,CAAC;KACJ;IAdD;QADC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC;+DACH;IAPf,gBAAgB;QAHpC,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,gBAAgB,CAsBpC;IAAD,uBAAC;CAAA,CAtB6C,GAAG;;;;"}
1
+ {"version":3,"file":"spellcheck-button.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/spellcheck-button.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { WireMetadata } from '../../../wiring/wiring.types';\nimport { searchXModule } from '../x-module';\n/**\n * A button that when pressed emits the {@link XEventsTypes.UserAcceptedAQuery}\n * and {@link XEventsTypes.UserAcceptedSpellcheckQuery} events, expressing the user\n * intention to set the spellchecked query.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)]\n})\nexport default class SpellcheckButton extends Vue {\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n\n /**\n * Generates the {@link WireMetadata | event metadata} object omitting the moduleName.\n *\n * @returns The {@link WireMetadata} object omitting the moduleName.\n * @internal\n */\n protected createEventMetadata(): Omit<WireMetadata, 'moduleName'> {\n return {\n target: this.$el as HTMLElement,\n feature: 'spellcheck'\n };\n }\n\n /**\n * Emits events when the button is clicked.\n *\n * @public\n */\n protected emitEvents(): void {\n this.$x.emit('UserAcceptedAQuery', this.spellcheckedQuery, this.createEventMetadata());\n this.$x.emit(\n 'UserAcceptedSpellcheckQuery',\n this.spellcheckedQuery,\n this.createEventMetadata()\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;AAkBA;;;;;;;AAUA;IAA8C,oCAAG;IAAjD;;KAmCC;;;;;;;IApBW,8CAAmB,GAA7B;QACE,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,GAAkB;YAC/B,OAAO,EAAE,YAAY;SACtB,CAAC;KACH;;;;;;IAOS,qCAAU,GAApB;QACE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;QACvF,IAAI,CAAC,EAAE,CAAC,IAAI,CACV,6BAA6B,EAC7B,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,mBAAmB,EAAE,CAC3B,CAAC;KACH;IA3BD;QADC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC;+DACH;IAPf,gBAAgB;QAHpC,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,gBAAgB,CAmCpC;IAAD,uBAAC;CAAA,CAnC6C,GAAG;;;;"}
@@ -5,7 +5,7 @@ import script from './spellcheck.vue_rollup-plugin-vue=script.js';
5
5
  var __vue_script__ = script;
6
6
 
7
7
  /* template */
8
- var __vue_render__ = function() {
8
+ var __vue_render__ = function () {
9
9
  var _vm = this;
10
10
  var _h = _vm.$createElement;
11
11
  var _c = _vm._self._c || _h;
@@ -16,17 +16,15 @@ var __vue_render__ = function() {
16
16
  [
17
17
  _vm._t(
18
18
  "default",
19
- function() {
19
+ function () {
20
20
  return [
21
21
  _vm._v(
22
22
  _vm._s(_vm.query) + " - " + _vm._s(_vm.spellcheckedQuery)
23
- )
24
- ]
23
+ ) ]
25
24
  },
26
25
  null,
27
26
  { query: _vm.query, spellcheckedQuery: _vm.spellcheckedQuery }
28
- )
29
- ],
27
+ ) ],
30
28
  2
31
29
  )
32
30
  : _vm._e()
@@ -1 +1 @@
1
- {"version":3,"file":"spellcheck.vue.js","sources":["../../../../../src/x-modules/search/components/spellcheck.vue"],"sourcesContent":["<template>\n <div v-if=\"spellcheckedQuery\" class=\"x-spellcheck\" data-test=\"spellcheck\">\n <slot v-bind=\"{ query, spellcheckedQuery }\">{{ query }} - {{ spellcheckedQuery }}</slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { State, xComponentMixin } from '../../../components';\n import { searchXModule } from '../x-module';\n\n /**\n * The `Spellcheck` component allows to inform the user with a friendly message that he\n * might have misspelled the search query. This message can be set using the default slot\n * of the component, which gives access to the searched query using the `query` scope property,\n * and the spellchecked query proposal, using the `spellcheckedQuery` scope property.\n *\n * The component will only render itself if the `spellcheckedQuery` property has value.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class Spellcheck extends Vue {\n /**\n * The query from the search state.\n *\n * @public\n */\n @State('search', 'query')\n public query!: string;\n\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\nThis default spellcheck component expects a query and a spellcheckedQuery to render and pass to its\ndefault slot.\n\nThis two props should be show like a message comparing them.\n\n## Basic usage\n\n```vue\n<Spellcheck />\n```\n\n## Customizing its contents\n\n```vue\n<Spellcheck>\n <template #default=\"{ query, spellcheckedQuery }\">\n No results found for '{{ query }}'. We show you results for '{{ spellcheckedQuery }}'\n </template>\n</Spellcheck>\n\n<script>\n import { Spellcheck } from '@empathyco/x-components/search';\n\n export default {\n components: {\n Spellcheck\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"spellcheck.vue.js","sources":["../../../../../src/x-modules/search/components/spellcheck.vue"],"sourcesContent":["<template>\n <div v-if=\"spellcheckedQuery\" class=\"x-spellcheck\" data-test=\"spellcheck\">\n <slot v-bind=\"{ query, spellcheckedQuery }\">{{ query }} - {{ spellcheckedQuery }}</slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { State, xComponentMixin } from '../../../components';\n import { searchXModule } from '../x-module';\n\n /**\n * The `Spellcheck` component allows to inform the user with a friendly message that he\n * might have misspelled the search query. This message can be set using the default slot\n * of the component, which gives access to the searched query using the `query` scope property,\n * and the spellchecked query proposal, using the `spellcheckedQuery` scope property.\n *\n * The component will only render itself if the `spellcheckedQuery` property has value.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(searchXModule)]\n })\n export default class Spellcheck extends Vue {\n /**\n * The query from the search state.\n *\n * @public\n */\n @State('search', 'query')\n public query!: string;\n\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\nThis default spellcheck component expects a query and a spellcheckedQuery to render and pass to its\ndefault slot.\n\nThis two props should be show like a message comparing them.\n\n## Basic usage\n\n```vue\n<Spellcheck />\n```\n\n## Customizing its contents\n\n```vue\n<Spellcheck>\n <template #default=\"{ query, spellcheckedQuery }\">\n No results found for '{{ query }}'. We show you results for '{{ spellcheckedQuery }}'\n </template>\n</Spellcheck>\n\n<script>\n import { Spellcheck } from '@empathyco/x-components/search';\n\n export default {\n components: {\n Spellcheck\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -63,6 +63,7 @@ import '../../../components/icons/plus.vue.js';
63
63
  import '../../../components/icons/search.vue.js';
64
64
  import '../../../components/icons/show.vue.js';
65
65
  import '../../../components/icons/search-tiny.vue.js';
66
+ import '../../../components/icons/tag.vue.js';
66
67
  import '../../../components/icons/trash-open.vue.js';
67
68
  import '../../../components/icons/trash.vue.js';
68
69
  import '../../../components/icons/trending-tiny.vue.js';
@@ -104,6 +105,8 @@ import { xComponentMixin } from '../../../components/x-component.mixin.js';
104
105
  import '../../../components/layouts/multi-column-max-width-layout.vue.js';
105
106
  import '../../../components/layouts/single-column-layout.vue.js';
106
107
  import '../../../components/location-provider.vue.js';
108
+ import '../../../components/global-x-bus.vue.js';
109
+ import '../../../components/snippet-callbacks.vue.js';
107
110
  import '../../../components/items-list-injection.mixin.js';
108
111
  import { searchXModule } from '../x-module.js';
109
112
 
@@ -1 +1 @@
1
- {"version":3,"file":"spellcheck.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/spellcheck.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State, xComponentMixin } from '../../../components';\nimport { searchXModule } from '../x-module';\n\n/**\n * The `Spellcheck` component allows to inform the user with a friendly message that he\n * might have misspelled the search query. This message can be set using the default slot\n * of the component, which gives access to the searched query using the `query` scope property,\n * and the spellchecked query proposal, using the `spellcheckedQuery` scope property.\n *\n * The component will only render itself if the `spellcheckedQuery` property has value.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)]\n})\nexport default class Spellcheck extends Vue {\n /**\n * The query from the search state.\n *\n * @public\n */\n @State('search', 'query')\n public query!: string;\n\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;;;;;AAaA;IAAwC,8BAAG;IAA3C;;KAgBC;IATC;QADC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC;6CACH;IAQtB;QADC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC;yDACH;IAff,UAAU;QAH9B,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,UAAU,CAgB9B;IAAD,iBAAC;CAAA,CAhBuC,GAAG;;;;"}
1
+ {"version":3,"file":"spellcheck.vue_rollup-plugin-vue=script.js","sources":["../../../../../src/x-modules/search/components/spellcheck.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State, xComponentMixin } from '../../../components';\nimport { searchXModule } from '../x-module';\n\n/**\n * The `Spellcheck` component allows to inform the user with a friendly message that he\n * might have misspelled the search query. This message can be set using the default slot\n * of the component, which gives access to the searched query using the `query` scope property,\n * and the spellchecked query proposal, using the `spellcheckedQuery` scope property.\n *\n * The component will only render itself if the `spellcheckedQuery` property has value.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(searchXModule)]\n})\nexport default class Spellcheck extends Vue {\n /**\n * The query from the search state.\n *\n * @public\n */\n @State('search', 'query')\n public query!: string;\n\n /**\n * The spellcheckedQuery from the search state.\n *\n * @public\n */\n @State('search', 'spellcheckedQuery')\n public spellcheckedQuery!: string;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;;;;;AAaA;IAAwC,8BAAG;IAA3C;;KAgBC;IATC;QADC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC;6CACH;IAQtB;QADC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC;yDACH;IAff,UAAU;QAH9B,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,UAAU,CAgB9B;IAAD,iBAAC;CAAA,CAhBuC,GAAG;;;;"}
@@ -2,7 +2,10 @@ import { createFetchAndSaveActions } from '../../../../store/utils/fetch-and-sav
2
2
 
3
3
  var _a = createFetchAndSaveActions({
4
4
  fetch: function (_a, request) {
5
- var dispatch = _a.dispatch;
5
+ var dispatch = _a.dispatch, origin = _a.state.origin;
6
+ if (request && origin) {
7
+ request.origin = origin;
8
+ }
6
9
  return dispatch('fetchSearchResponse', request);
7
10
  },
8
11
  onSuccess: function (_a, _b) {
@@ -21,7 +24,9 @@ var _a = createFetchAndSaveActions({
21
24
  if (facets) {
22
25
  commit('setFacets', facets);
23
26
  }
24
- commit('setQueryTagging', queryTagging);
27
+ if (queryTagging) {
28
+ commit('setQueryTagging', queryTagging);
29
+ }
25
30
  commit('setTotalResults', totalResults);
26
31
  commit('setSpellcheck', spellcheck !== null && spellcheck !== void 0 ? spellcheck : '');
27
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-and-save-search-response.action.js","sources":["../../../../../../src/x-modules/search/store/actions/fetch-and-save-search-response.action.ts"],"sourcesContent":["import { SearchResponse, SearchRequest } from '@empathyco/x-adapter';\nimport { createFetchAndSaveActions } from '../../../../store/utils/fetch-and-save-action.utils';\nimport { SearchActionContext } from '../types';\n\nconst { fetchAndSave, cancelPrevious } = createFetchAndSaveActions<\n SearchActionContext,\n SearchRequest | null,\n SearchResponse\n>({\n fetch({ dispatch }, request) {\n return dispatch('fetchSearchResponse', request);\n },\n onSuccess(\n { commit, state },\n {\n results,\n partialResults,\n facets,\n banners,\n promoteds,\n totalResults,\n spellcheck,\n redirections,\n queryTagging\n }\n ) {\n if (state.isAppendResults) {\n commit('appendResults', results);\n } else {\n commit('setResults', results);\n commit('setBanners', banners);\n commit('setPromoteds', promoteds);\n commit('setRedirections', redirections);\n }\n\n commit('setPartialResults', partialResults ?? []);\n\n if (facets) {\n commit('setFacets', facets);\n }\n\n commit('setQueryTagging', queryTagging);\n commit('setTotalResults', totalResults);\n commit('setSpellcheck', spellcheck ?? '');\n }\n});\n\n/**\n * Default implementation for {@link SearchActions.fetchAndSaveSearchResponse} action.\n *\n * @public\n */\nexport const fetchAndSaveSearchResponse = fetchAndSave;\n\n/**\n * Default implementation for {@link SearchActions.cancelFetchAndSaveSearchResponse} action.\n *\n * @public\n */\nexport const cancelFetchAndSaveSearchResponse = cancelPrevious;\n"],"names":[],"mappings":";;AAIM,IAAA,KAAmC,yBAAyB,CAIhE;IACA,KAAK,YAAC,EAAY,EAAE,OAAO;YAAnB,QAAQ,cAAA;QACd,OAAO,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;KACjD;IACD,SAAS,YACP,EAAiB,EACjB,EAUC;YAXC,MAAM,YAAA,EAAE,KAAK,WAAA;YAEb,OAAO,aAAA,EACP,cAAc,oBAAA,EACd,MAAM,YAAA,EACN,OAAO,aAAA,EACP,SAAS,eAAA,EACT,YAAY,kBAAA,EACZ,UAAU,gBAAA,EACV,YAAY,kBAAA,EACZ,YAAY,kBAAA;QAGd,IAAI,KAAK,CAAC,eAAe,EAAE;YACzB,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;SAClC;aAAM;YACL,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC9B,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;YAClC,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;SACzC;QAED,MAAM,CAAC,mBAAmB,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,EAAE,CAAC,CAAC;QAElD,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SAC7B;QAED,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QACxC,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QACxC,MAAM,CAAC,eAAe,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC,CAAC;KAC3C;CACF,CAAC,EAzCM,YAAY,kBAAA,EAAE,cAAc,oBAyClC,CAAC;AAEH;;;;;IAKa,0BAA0B,GAAG,aAAa;AAEvD;;;;;IAKa,gCAAgC,GAAG;;;;"}
1
+ {"version":3,"file":"fetch-and-save-search-response.action.js","sources":["../../../../../../src/x-modules/search/store/actions/fetch-and-save-search-response.action.ts"],"sourcesContent":["import { SearchResponse, SearchRequest } from '@empathyco/x-adapter';\nimport { createFetchAndSaveActions } from '../../../../store/utils/fetch-and-save-action.utils';\nimport { SearchActionContext } from '../types';\n\nconst { fetchAndSave, cancelPrevious } = createFetchAndSaveActions<\n SearchActionContext,\n SearchRequest | null,\n SearchResponse\n>({\n fetch({ dispatch, state: { origin } }, request) {\n if (request && origin) {\n request.origin = origin;\n }\n\n return dispatch('fetchSearchResponse', request);\n },\n onSuccess(\n { commit, state },\n {\n results,\n partialResults,\n facets,\n banners,\n promoteds,\n totalResults,\n spellcheck,\n redirections,\n queryTagging\n }\n ) {\n if (state.isAppendResults) {\n commit('appendResults', results);\n } else {\n commit('setResults', results);\n commit('setBanners', banners);\n commit('setPromoteds', promoteds);\n commit('setRedirections', redirections);\n }\n\n commit('setPartialResults', partialResults ?? []);\n\n if (facets) {\n commit('setFacets', facets);\n }\n\n if (queryTagging) {\n commit('setQueryTagging', queryTagging);\n }\n commit('setTotalResults', totalResults);\n commit('setSpellcheck', spellcheck ?? '');\n }\n});\n\n/**\n * Default implementation for {@link SearchActions.fetchAndSaveSearchResponse} action.\n *\n * @public\n */\nexport const fetchAndSaveSearchResponse = fetchAndSave;\n\n/**\n * Default implementation for {@link SearchActions.cancelFetchAndSaveSearchResponse} action.\n *\n * @public\n */\nexport const cancelFetchAndSaveSearchResponse = cancelPrevious;\n"],"names":[],"mappings":";;AAIM,IAAA,KAAmC,yBAAyB,CAIhE;IACA,KAAK,YAAC,EAA+B,EAAE,OAAO;YAAtC,QAAQ,cAAA,EAAW,MAAM,kBAAA;QAC/B,IAAI,OAAO,IAAI,MAAM,EAAE;YACrB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;SACzB;QAED,OAAO,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;KACjD;IACD,SAAS,YACP,EAAiB,EACjB,EAUC;YAXC,MAAM,YAAA,EAAE,KAAK,WAAA;YAEb,OAAO,aAAA,EACP,cAAc,oBAAA,EACd,MAAM,YAAA,EACN,OAAO,aAAA,EACP,SAAS,eAAA,EACT,YAAY,kBAAA,EACZ,UAAU,gBAAA,EACV,YAAY,kBAAA,EACZ,YAAY,kBAAA;QAGd,IAAI,KAAK,CAAC,eAAe,EAAE;YACzB,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;SAClC;aAAM;YACL,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC9B,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;YAClC,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;SACzC;QAED,MAAM,CAAC,mBAAmB,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,EAAE,CAAC,CAAC;QAElD,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SAC7B;QAED,IAAI,YAAY,EAAE;YAChB,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;SACzC;QACD,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QACxC,MAAM,CAAC,eAAe,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC,CAAC;KAC3C;CACF,CAAC,EA/CM,YAAY,kBAAA,EAAE,cAAc,oBA+ClC,CAAC;AAEH;;;;;IAKa,0BAA0B,GAAG,aAAa;AAEvD;;;;;IAKa,gCAAgC,GAAG;;;;"}
@@ -1,3 +1,4 @@
1
+ import { isStringEmpty } from '../../../utils/string.js';
1
2
  import '../../../store/x.module.js';
2
3
  import '../../../store/utils/fetch-and-save-action.utils.js';
3
4
  import '../../../store/utils/status-store.utils.js';
@@ -19,7 +20,13 @@ var searchEmitters = createStoreEmitters(searchXStoreModule, {
19
20
  PageChanged: function (state) { return state.page; },
20
21
  ResultsChanged: function (state) { return state.results; },
21
22
  SearchRequestChanged: function (_, getters) { return getters.request; },
22
- SearchTaggingChanged: function (state) { return state.queryTagging; },
23
+ SearchTaggingChanged: {
24
+ selector: function (state) { return state.queryTagging; },
25
+ filter: function (_a) {
26
+ var url = _a.url;
27
+ return !isStringEmpty(url);
28
+ }
29
+ },
23
30
  SpellcheckChanged: function (state) { return state.spellcheckedQuery; },
24
31
  SortChanged: function (state) { return state.sort; }
25
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"sourcesContent":["import { createStoreEmitters } from '../../../store';\nimport { searchXStoreModule } from './module';\n\n/**\n * {@link StoreEmitters} For the search module.\n *\n * @internal\n */\nexport const searchEmitters = createStoreEmitters(searchXStoreModule, {\n FacetsChanged: {\n selector: state => state.facets,\n filter(newValue, oldValue): boolean {\n return newValue.length !== 0 || oldValue.length !== 0;\n }\n },\n PageChanged: state => state.page,\n ResultsChanged: state => state.results,\n SearchRequestChanged: (_, getters) => getters.request,\n SearchTaggingChanged: state => state.queryTagging,\n SpellcheckChanged: state => state.spellcheckedQuery,\n SortChanged: state => state.sort\n});\n"],"names":[],"mappings":";;;;;;AAGA;;;;;IAKa,cAAc,GAAG,mBAAmB,CAAC,kBAAkB,EAAE;IACpE,aAAa,EAAE;QACb,QAAQ,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,MAAM,GAAA;QAC/B,MAAM,EAAN,UAAO,QAAQ,EAAE,QAAQ;YACvB,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;SACvD;KACF;IACD,WAAW,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,GAAA;IAChC,cAAc,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,OAAO,GAAA;IACtC,oBAAoB,EAAE,UAAC,CAAC,EAAE,OAAO,IAAK,OAAA,OAAO,CAAC,OAAO,GAAA;IACrD,oBAAoB,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,YAAY,GAAA;IACjD,iBAAiB,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,iBAAiB,GAAA;IACnD,WAAW,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,GAAA;CACjC;;;;"}
1
+ {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"sourcesContent":["import { createStoreEmitters } from '../../../store';\nimport { isStringEmpty } from '../../../utils/string';\nimport { searchXStoreModule } from './module';\n\n/**\n * {@link StoreEmitters} For the search module.\n *\n * @internal\n */\nexport const searchEmitters = createStoreEmitters(searchXStoreModule, {\n FacetsChanged: {\n selector: state => state.facets,\n filter(newValue, oldValue): boolean {\n return newValue.length !== 0 || oldValue.length !== 0;\n }\n },\n PageChanged: state => state.page,\n ResultsChanged: state => state.results,\n SearchRequestChanged: (_, getters) => getters.request,\n SearchTaggingChanged: {\n selector: state => state.queryTagging,\n filter: ({ url }) => !isStringEmpty(url)\n },\n SpellcheckChanged: state => state.spellcheckedQuery,\n SortChanged: state => state.sort\n});\n"],"names":[],"mappings":";;;;;;;AAIA;;;;;IAKa,cAAc,GAAG,mBAAmB,CAAC,kBAAkB,EAAE;IACpE,aAAa,EAAE;QACb,QAAQ,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,MAAM,GAAA;QAC/B,MAAM,EAAN,UAAO,QAAQ,EAAE,QAAQ;YACvB,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;SACvD;KACF;IACD,WAAW,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,GAAA;IAChC,cAAc,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,OAAO,GAAA;IACtC,oBAAoB,EAAE,UAAC,CAAC,EAAE,OAAO,IAAK,OAAA,OAAO,CAAC,OAAO,GAAA;IACrD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,YAAY,GAAA;QACrC,MAAM,EAAE,UAAC,EAAO;gBAAL,GAAG,SAAA;YAAO,OAAA,CAAC,aAAa,CAAC,GAAG,CAAC;SAAA;KACzC;IACD,iBAAiB,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,iBAAiB,GAAA;IACnD,WAAW,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,GAAA;CACjC;;;;"}
@@ -10,10 +10,9 @@ import { __assign } from 'tslib';
10
10
  * @public
11
11
  */
12
12
  var request = function (_a) {
13
- var query = _a.query, params = _a.params, config = _a.config, relatedTags = _a.relatedTags, selectedFilters = _a.selectedFilters, sort = _a.sort, page = _a.page, origin = _a.origin, isAppendResults = _a.isAppendResults;
14
- var newOrigin = origin === null ? undefined : origin;
13
+ var query = _a.query, params = _a.params, config = _a.config, relatedTags = _a.relatedTags, selectedFilters = _a.selectedFilters, sort = _a.sort, page = _a.page, isAppendResults = _a.isAppendResults;
15
14
  return query.trim()
16
- ? __assign({ query: query, relatedTags: relatedTags, sort: sort, rows: isAppendResults ? config.pageSize : config.pageSize * page, start: isAppendResults ? config.pageSize * (page - 1) : 0, origin: newOrigin, filters: selectedFilters }, params) : null;
15
+ ? __assign({ query: query, relatedTags: relatedTags, sort: sort, rows: isAppendResults ? config.pageSize : config.pageSize * page, start: isAppendResults ? config.pageSize * (page - 1) : 0, filters: selectedFilters }, params) : null;
17
16
  };
18
17
 
19
18
  export { request };
@@ -1 +1 @@
1
- {"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/search/store/getters/request.getter.ts"],"sourcesContent":["import { SearchXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link SearchGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the search\n * module.\n * @returns The search request to fetch data from the API.\n *\n * @public\n */\nexport const request: SearchXStoreModule['getters']['request'] = ({\n query,\n params,\n config,\n relatedTags,\n selectedFilters,\n sort,\n page,\n origin,\n isAppendResults\n}) => {\n const newOrigin = origin === null ? undefined : origin;\n return query.trim()\n ? {\n query,\n relatedTags,\n sort,\n rows: isAppendResults ? config.pageSize : config.pageSize * page,\n start: isAppendResults ? config.pageSize * (page - 1) : 0,\n origin: newOrigin,\n filters: selectedFilters,\n ...params\n }\n : null;\n};\n"],"names":[],"mappings":";;AAEA;;;;;;;;;IASa,OAAO,GAA6C,UAAC,EAUjE;QATC,KAAK,WAAA,EACL,MAAM,YAAA,EACN,MAAM,YAAA,EACN,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,eAAe,qBAAA;IAEf,IAAM,SAAS,GAAG,MAAM,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;IACvD,OAAO,KAAK,CAAC,IAAI,EAAE;qBAEb,KAAK,OAAA,EACL,WAAW,aAAA,EACX,IAAI,MAAA,EACJ,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,IAAI,EAChE,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC,QAAQ,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EACzD,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,eAAe,IACrB,MAAM,IAEX,IAAI,CAAC;AACX;;;;"}
1
+ {"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/search/store/getters/request.getter.ts"],"sourcesContent":["import { SearchXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link SearchGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the search\n * module.\n * @returns The search request to fetch data from the API.\n *\n * @public\n */\nexport const request: SearchXStoreModule['getters']['request'] = ({\n query,\n params,\n config,\n relatedTags,\n selectedFilters,\n sort,\n page,\n isAppendResults\n}) => {\n return query.trim()\n ? {\n query,\n relatedTags,\n sort,\n rows: isAppendResults ? config.pageSize : config.pageSize * page,\n start: isAppendResults ? config.pageSize * (page - 1) : 0,\n filters: selectedFilters,\n ...params\n }\n : null;\n};\n"],"names":[],"mappings":";;AAEA;;;;;;;;;IASa,OAAO,GAA6C,UAAC,EASjE;QARC,KAAK,WAAA,EACL,MAAM,YAAA,EACN,MAAM,YAAA,EACN,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,eAAe,qBAAA;IAEf,OAAO,KAAK,CAAC,IAAI,EAAE;qBAEb,KAAK,OAAA,EACL,WAAW,aAAA,EACX,IAAI,MAAA,EACJ,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,IAAI,EAChE,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC,QAAQ,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,eAAe,IACrB,MAAM,IAEX,IAAI,CAAC;AACX;;;;"}
@@ -159,6 +159,7 @@ var searchWiring = createWiring({
159
159
  setSort: setSort
160
160
  },
161
161
  UserPickedARelatedTag: {
162
+ saveOriginWire: saveOriginWire,
162
163
  resetPage: resetPage
163
164
  },
164
165
  UserChangedExtraParams: {
@@ -173,8 +174,7 @@ var searchWiring = createWiring({
173
174
  fetchAndSaveSearchResponseWire: fetchAndSaveSearchResponseWire
174
175
  },
175
176
  SelectedRelatedTagsChanged: {
176
- setRelatedTags: setRelatedTags,
177
- saveOriginWire: saveOriginWire
177
+ setRelatedTags: setRelatedTags
178
178
  },
179
179
  SelectedFiltersChanged: {
180
180
  setSelectedFilters: setSelectedFilters
@@ -189,7 +189,8 @@ var searchWiring = createWiring({
189
189
  setSearchExtraParams: setSearchExtraParams
190
190
  },
191
191
  ParamsLoadedFromUrl: {
192
- setUrlParams: setUrlParams
192
+ setUrlParams: setUrlParams,
193
+ saveOriginWire: saveOriginWire
193
194
  }
194
195
  });
195
196