@empathyco/x-components 6.0.0-alpha.222 → 6.0.0-alpha.224

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 (1969) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/ai/index.d.ts +1 -1
  3. package/core/index.d.ts +12 -13
  4. package/core/index.js +2 -3
  5. package/core/index.js.map +1 -1
  6. package/device/index.d.ts +1 -1
  7. package/docs/API-reference/api/x-components.md +11 -11
  8. package/docs/API-reference/api/x-components.pagemode.md +13 -0
  9. package/docs/API-reference/api/x-components.searchconfig.md +1 -1
  10. package/empathize/index.d.ts +1 -1
  11. package/experience-controls/index.d.ts +1 -1
  12. package/extra-params/index.d.ts +1 -1
  13. package/facets/index.d.ts +1 -1
  14. package/history-queries/index.d.ts +1 -1
  15. package/identifier-results/index.d.ts +1 -1
  16. package/js/components/base-keyboard-navigation.vue2.js +1 -6
  17. package/js/components/base-keyboard-navigation.vue2.js.map +1 -1
  18. package/js/components/display-click-provider.vue.js +2 -6
  19. package/js/components/display-click-provider.vue.js.map +1 -1
  20. package/js/components/layouts/fixed-header-and-asides-layout.vue.js.map +1 -1
  21. package/js/components/layouts/fixed-header-and-asides-layout.vue2.js.map +1 -1
  22. package/js/components/layouts/fixed-header-and-asides-layout.vue3.js +1 -1
  23. package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
  24. package/js/components/layouts/multi-column-max-width-layout.vue2.js.map +1 -1
  25. package/js/components/layouts/multi-column-max-width-layout.vue4.js +1 -1
  26. package/js/components/layouts/single-column-layout.vue.js.map +1 -1
  27. package/js/components/layouts/single-column-layout.vue2.js.map +1 -1
  28. package/js/components/layouts/single-column-layout.vue3.js +1 -1
  29. package/js/components/modals/base-id-modal-close.vue2.js +2 -6
  30. package/js/components/modals/base-id-modal-close.vue2.js.map +1 -1
  31. package/js/components/modals/base-id-modal-open.vue2.js +2 -6
  32. package/js/components/modals/base-id-modal-open.vue2.js.map +1 -1
  33. package/js/components/modals/base-id-modal.vue2.js +1 -6
  34. package/js/components/modals/base-id-modal.vue2.js.map +1 -1
  35. package/js/components/modals/base-modal.vue2.js +2 -6
  36. package/js/components/modals/base-modal.vue2.js.map +1 -1
  37. package/js/components/page-loader-button.vue2.js +2 -6
  38. package/js/components/page-loader-button.vue2.js.map +1 -1
  39. package/js/components/page-selector.vue2.js +1 -6
  40. package/js/components/page-selector.vue2.js.map +1 -1
  41. package/js/components/panels/base-id-toggle-panel-button.vue2.js +1 -6
  42. package/js/components/panels/base-id-toggle-panel-button.vue2.js.map +1 -1
  43. package/js/components/panels/base-id-toggle-panel.vue2.js +2 -6
  44. package/js/components/panels/base-id-toggle-panel.vue2.js.map +1 -1
  45. package/js/components/result/base-result-link.vue2.js +2 -6
  46. package/js/components/result/base-result-link.vue2.js.map +1 -1
  47. package/js/components/result/base-result-rating.vue2.js +2 -6
  48. package/js/components/result/base-result-rating.vue2.js.map +1 -1
  49. package/js/components/suggestions/base-suggestion.vue2.js +1 -5
  50. package/js/components/suggestions/base-suggestion.vue2.js.map +1 -1
  51. package/js/composables/use-alias-api.js +1 -6
  52. package/js/composables/use-alias-api.js.map +1 -1
  53. package/js/composables/use-getter.js +1 -6
  54. package/js/composables/use-getter.js.map +1 -1
  55. package/js/directives/infinite-scroll.js +1 -6
  56. package/js/directives/infinite-scroll.js.map +1 -1
  57. package/js/index.js +2 -3
  58. package/js/index.js.map +1 -1
  59. package/js/plugins/x-bus.js +0 -2
  60. package/js/plugins/x-bus.js.map +1 -1
  61. package/js/plugins/x-plugin.js +1 -3
  62. package/js/plugins/x-plugin.js.map +1 -1
  63. package/js/x-bus/x-bus.js +1 -1
  64. package/js/x-bus/x-bus.js.map +1 -1
  65. package/js/x-bus/x-priority-queue.js.map +1 -0
  66. package/js/x-installer/x-installer.js +285 -0
  67. package/js/x-installer/x-installer.js.map +1 -0
  68. package/js/x-modules/ai/components/ai-carousel.vue2.js +1 -5
  69. package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
  70. package/js/x-modules/ai/components/ai-overview.vue2.js +1 -5
  71. package/js/x-modules/ai/components/ai-overview.vue2.js.map +1 -1
  72. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js +1 -6
  73. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js.map +1 -1
  74. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.js +1 -6
  75. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.js.map +1 -1
  76. package/js/x-modules/ai/x-module.js +1 -6
  77. package/js/x-modules/ai/x-module.js.map +1 -1
  78. package/js/x-modules/empathize/components/empathize.vue2.js +1 -5
  79. package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
  80. package/js/x-modules/experience-controls/x-module.js +1 -6
  81. package/js/x-modules/experience-controls/x-module.js.map +1 -1
  82. package/js/x-modules/extra-params/x-module.js +1 -6
  83. package/js/x-modules/extra-params/x-module.js.map +1 -1
  84. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js +2 -6
  85. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js.map +1 -1
  86. package/js/x-modules/facets/service/facets.service.js +1 -6
  87. package/js/x-modules/facets/service/facets.service.js.map +1 -1
  88. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +1 -5
  89. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
  90. package/js/x-modules/queries-preview/components/query-preview-list.vue2.js +2 -6
  91. package/js/x-modules/queries-preview/components/query-preview-list.vue2.js.map +1 -1
  92. package/js/x-modules/queries-preview/components/query-preview.vue2.js +0 -5
  93. package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
  94. package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js +2 -6
  95. package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js.map +1 -1
  96. package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js +2 -6
  97. package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js.map +1 -1
  98. package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js +1 -6
  99. package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js.map +1 -1
  100. package/js/x-modules/recommendations/components/recommendations.vue2.js +2 -6
  101. package/js/x-modules/recommendations/components/recommendations.vue2.js.map +1 -1
  102. package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js +1 -6
  103. package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js.map +1 -1
  104. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +2 -6
  105. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
  106. package/js/x-modules/scroll/components/scroll-to-top.vue2.js +1 -5
  107. package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
  108. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js +2 -6
  109. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js.map +1 -1
  110. package/js/x-modules/tagging/service/external-tagging.service.js +0 -5
  111. package/js/x-modules/tagging/service/external-tagging.service.js.map +1 -1
  112. package/js/x-modules/url/x-module.js +1 -6
  113. package/js/x-modules/url/x-module.js.map +1 -1
  114. package/next-queries/index.d.ts +1 -1
  115. package/package.json +25 -25
  116. package/popular-searches/index.d.ts +1 -1
  117. package/queries-preview/index.d.ts +1 -1
  118. package/query-suggestions/index.d.ts +1 -1
  119. package/recommendations/index.d.ts +1 -1
  120. package/related-prompts/index.d.ts +1 -1
  121. package/related-tags/index.d.ts +1 -1
  122. package/report/tsdoc-metadata.json +1 -1
  123. package/report/x-adapter-platform.api.json +1 -1
  124. package/report/x-components.api.json +176 -196
  125. package/report/x-components.api.md +37 -40
  126. package/report/x-types.api.json +1 -1
  127. package/scroll/index.d.ts +1 -1
  128. package/search/index.d.ts +1 -1
  129. package/search-box/index.d.ts +1 -1
  130. package/semantic-queries/index.d.ts +1 -1
  131. package/tagging/index.d.ts +1 -1
  132. package/types/demo/main.d.ts +2 -0
  133. package/types/demo/main.d.ts.map +1 -0
  134. package/types/demo/plugins/devtools/colors.utils.d.ts +22 -0
  135. package/types/demo/plugins/devtools/colors.utils.d.ts.map +1 -0
  136. package/types/demo/plugins/devtools/devtools.plugin.d.ts.map +1 -0
  137. package/types/demo/plugins/devtools/timeline.devtools.d.ts +19 -0
  138. package/types/demo/plugins/devtools/timeline.devtools.d.ts.map +1 -0
  139. package/types/demo/plugins/devtools/wiring.devtools.d.ts +21 -0
  140. package/types/demo/plugins/devtools/wiring.devtools.d.ts.map +1 -0
  141. package/types/demo/router.d.ts.map +1 -0
  142. package/types/demo/views/adapter.d.ts.map +1 -0
  143. package/types/demo/views/base-config.d.ts +4 -0
  144. package/types/demo/views/base-config.d.ts.map +1 -0
  145. package/types/demo/views/home/types.d.ts.map +1 -0
  146. package/types/demo/vite.config.d.ts +7 -0
  147. package/types/demo/vite.config.d.ts.map +1 -0
  148. package/types/src/components/animations/animate-clip-path/animate-clip-path.factory.d.ts.map +1 -0
  149. package/types/src/components/animations/animate-scale/animate-scale.factory.d.ts.map +1 -0
  150. package/types/src/components/animations/animate-translate/animate-translate.factory.d.ts.map +1 -0
  151. package/types/src/components/animations/animate-width.vue.d.ts.map +1 -0
  152. package/types/src/components/animations/change-height.vue.d.ts.map +1 -0
  153. package/types/src/components/animations/collapse-height.vue.d.ts.map +1 -0
  154. package/types/src/components/animations/collapse-width.vue.d.ts.map +1 -0
  155. package/types/src/components/animations/create-directional-animation-factory.d.ts.map +1 -0
  156. package/types/src/components/animations/cross-fade.vue.d.ts.map +1 -0
  157. package/types/src/components/animations/fade-and-slide.vue.d.ts.map +1 -0
  158. package/types/src/components/animations/fade.vue.d.ts.map +1 -0
  159. package/types/src/components/animations/index.d.ts.map +1 -0
  160. package/types/src/components/animations/no-animation.vue.d.ts.map +1 -0
  161. package/types/src/components/animations/staggered-fade-and-slide.vue.d.ts.map +1 -0
  162. package/types/src/components/animations/use-collapse-animation.d.ts.map +1 -0
  163. package/types/src/components/animations/use-disable-animation.d.ts.map +1 -0
  164. package/types/src/components/auto-progress-bar.vue.d.ts.map +1 -0
  165. package/types/src/components/base-dropdown.vue.d.ts.map +1 -0
  166. package/types/src/components/base-event-button.vue.d.ts.map +1 -0
  167. package/types/src/components/base-grid.types.d.ts.map +1 -0
  168. package/types/src/components/base-grid.vue.d.ts.map +1 -0
  169. package/types/src/components/base-keyboard-navigation.vue.d.ts.map +1 -0
  170. package/types/src/components/base-rating.vue.d.ts.map +1 -0
  171. package/types/src/components/base-slider.vue.d.ts.map +1 -0
  172. package/types/src/components/base-switch.vue.d.ts.map +1 -0
  173. package/types/src/components/base-teleport.vue.d.ts.map +1 -0
  174. package/types/src/components/base-variable-column-grid.vue.d.ts.map +1 -0
  175. package/types/src/components/column-picker/base-column-picker-dropdown.vue.d.ts.map +1 -0
  176. package/types/src/components/column-picker/base-column-picker-list.types.d.ts.map +1 -0
  177. package/types/src/components/column-picker/base-column-picker-list.vue.d.ts.map +1 -0
  178. package/types/src/components/column-picker/index.d.ts.map +1 -0
  179. package/types/src/components/currency/base-currency.vue.d.ts.map +1 -0
  180. package/types/src/components/currency/index.d.ts.map +1 -0
  181. package/types/src/components/decorators/injection.consts.d.ts.map +1 -0
  182. package/types/src/components/display-click-provider.vue.d.ts.map +1 -0
  183. package/types/src/components/display-emitter.vue.d.ts.map +1 -0
  184. package/types/src/components/filters/index.d.ts.map +1 -0
  185. package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -0
  186. package/types/src/components/filters/labels/base-rating-filter-label.vue.d.ts.map +1 -0
  187. package/types/src/components/global-x-bus.vue.d.ts.map +1 -0
  188. package/types/src/components/highlight.vue.d.ts.map +1 -0
  189. package/types/src/components/icons/index.d.ts.map +1 -0
  190. package/types/src/components/index.d.ts.map +1 -0
  191. package/types/src/components/items-list.vue.d.ts.map +1 -0
  192. package/types/src/components/layouts/fixed-header-and-asides-layout.vue.d.ts.map +1 -0
  193. package/types/src/components/layouts/index.d.ts.map +1 -0
  194. package/types/src/components/layouts/multi-column-max-width-layout.vue.d.ts.map +1 -0
  195. package/types/src/components/layouts/single-column-layout.vue.d.ts.map +1 -0
  196. package/types/src/components/location-provider.vue.d.ts.map +1 -0
  197. package/types/src/components/modals/base-events-modal-close.vue.d.ts.map +1 -0
  198. package/types/src/components/modals/base-events-modal-open.vue.d.ts.map +1 -0
  199. package/types/src/components/modals/base-events-modal.vue.d.ts.map +1 -0
  200. package/types/src/components/modals/base-id-modal-close.vue.d.ts.map +1 -0
  201. package/types/src/components/modals/base-id-modal-open.vue.d.ts.map +1 -0
  202. package/types/src/components/modals/base-id-modal.vue.d.ts.map +1 -0
  203. package/types/src/components/modals/base-modal.vue.d.ts.map +1 -0
  204. package/types/src/components/modals/close-main-modal.vue.d.ts.map +1 -0
  205. package/types/src/components/modals/index.d.ts.map +1 -0
  206. package/types/src/components/modals/main-modal.vue.d.ts.map +1 -0
  207. package/types/src/components/modals/open-main-modal.vue.d.ts.map +1 -0
  208. package/types/src/components/page-loader-button.vue.d.ts.map +1 -0
  209. package/types/src/components/page-selector.vue.d.ts.map +1 -0
  210. package/types/src/components/panels/base-header-toggle-panel.vue.d.ts.map +1 -0
  211. package/types/src/components/panels/base-id-toggle-panel-button.vue.d.ts.map +1 -0
  212. package/types/src/components/panels/base-id-toggle-panel.vue.d.ts.map +1 -0
  213. package/types/src/components/panels/base-tabs-panel.vue.d.ts.map +1 -0
  214. package/types/src/components/panels/base-toggle-panel.vue.d.ts.map +1 -0
  215. package/types/src/components/panels/index.d.ts.map +1 -0
  216. package/types/src/components/result/base-result-add-to-cart.vue.d.ts.map +1 -0
  217. package/types/src/components/result/base-result-current-price.vue.d.ts.map +1 -0
  218. package/types/src/components/result/base-result-image.vue.d.ts.map +1 -0
  219. package/types/src/components/result/base-result-link.vue.d.ts.map +1 -0
  220. package/types/src/components/result/base-result-previous-price.vue.d.ts.map +1 -0
  221. package/types/src/components/result/base-result-rating.vue.d.ts.map +1 -0
  222. package/types/src/components/result/index.d.ts.map +1 -0
  223. package/types/src/components/result/result-variant-selector.vue.d.ts.map +1 -0
  224. package/types/src/components/result/result-variants-provider.vue.d.ts.map +1 -0
  225. package/types/src/components/scroll/base-scroll.vue.d.ts.map +1 -0
  226. package/types/src/components/scroll/index.d.ts.map +1 -0
  227. package/types/src/components/scroll/scroll.types.d.ts.map +1 -0
  228. package/types/src/components/scroll/use-scroll.d.ts.map +1 -0
  229. package/types/src/components/sliding-panel.vue.d.ts.map +1 -0
  230. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -0
  231. package/types/src/components/suggestions/base-suggestion.vue.d.ts.map +1 -0
  232. package/types/src/components/suggestions/base-suggestions.vue.d.ts.map +1 -0
  233. package/types/src/components/suggestions/index.d.ts.map +1 -0
  234. package/types/src/components/x-component.utils.d.ts.map +1 -0
  235. package/types/src/composables/create-use-device.d.ts.map +1 -0
  236. package/types/src/composables/index.d.ts.map +1 -0
  237. package/types/src/composables/use-$x.d.ts.map +1 -0
  238. package/types/src/composables/use-alias-api.d.ts.map +1 -0
  239. package/types/src/composables/use-debounce.d.ts.map +1 -0
  240. package/types/src/composables/use-getter.d.ts.map +1 -0
  241. package/types/src/composables/use-on-display.d.ts.map +1 -0
  242. package/types/src/composables/use-state.d.ts.map +1 -0
  243. package/types/src/composables/use-x-bus.d.ts.map +1 -0
  244. package/types/src/directives/index.d.ts.map +1 -0
  245. package/types/src/directives/infinite-scroll.d.ts.map +1 -0
  246. package/types/src/directives/typing.d.ts.map +1 -0
  247. package/types/src/index.d.ts +39 -0
  248. package/types/src/index.d.ts.map +1 -0
  249. package/types/src/plugins/index.d.ts +6 -0
  250. package/types/src/plugins/index.d.ts.map +1 -0
  251. package/types/src/plugins/x-bus.d.ts.map +1 -0
  252. package/types/src/plugins/x-emitters.d.ts.map +1 -0
  253. package/types/src/plugins/x-plugin.d.ts +260 -0
  254. package/types/src/plugins/x-plugin.d.ts.map +1 -0
  255. package/types/src/plugins/x-plugin.types.d.ts.map +1 -0
  256. package/types/src/plugins/x-plugin.utils.d.ts.map +1 -0
  257. package/types/src/services/directional-focus-navigation.service.d.ts.map +1 -0
  258. package/types/src/services/index.d.ts.map +1 -0
  259. package/types/src/services/services.types.d.ts.map +1 -0
  260. package/types/src/services/state-machine.service.d.ts.map +1 -0
  261. package/types/src/store/actions.types.d.ts.map +1 -0
  262. package/types/src/store/getters.types.d.ts.map +1 -0
  263. package/types/src/store/index.d.ts.map +1 -0
  264. package/types/src/store/mutations.types.d.ts.map +1 -0
  265. package/types/src/store/store.types.d.ts.map +1 -0
  266. package/types/src/store/utils/config-store.utils.d.ts.map +1 -0
  267. package/types/src/store/utils/fetch-and-save-action.utils.d.ts.map +1 -0
  268. package/types/src/store/utils/getters-proxy.utils.d.ts.map +1 -0
  269. package/types/src/store/utils/query.utils.d.ts.map +1 -0
  270. package/types/src/store/utils/status-store.utils.d.ts.map +1 -0
  271. package/types/src/store/utils/store-emitters.utils.d.ts.map +1 -0
  272. package/types/src/store/x.module.d.ts.map +1 -0
  273. package/types/src/types/animation-prop.d.ts.map +1 -0
  274. package/types/src/types/index.d.ts +5 -0
  275. package/types/src/types/index.d.ts.map +1 -0
  276. package/types/src/types/origin.d.ts.map +1 -0
  277. package/types/src/types/page-mode.d.ts +6 -0
  278. package/types/src/types/page-mode.d.ts.map +1 -0
  279. package/types/src/types/url-params.d.ts.map +1 -0
  280. package/types/src/utils/array.d.ts.map +1 -0
  281. package/types/src/utils/cancellable-promise.d.ts.map +1 -0
  282. package/types/src/utils/clone.d.ts.map +1 -0
  283. package/types/src/utils/currency-formatter.d.ts.map +1 -0
  284. package/types/src/utils/debounce.d.ts.map +1 -0
  285. package/types/src/utils/filters.d.ts.map +1 -0
  286. package/types/src/utils/focus.d.ts.map +1 -0
  287. package/types/src/utils/function.d.ts.map +1 -0
  288. package/types/src/utils/get-url-parameters.d.ts.map +1 -0
  289. package/types/src/utils/html.d.ts.map +1 -0
  290. package/types/src/utils/index.d.ts.map +1 -0
  291. package/types/src/utils/ios-utils.d.ts.map +1 -0
  292. package/types/src/utils/is-new-query.d.ts.map +1 -0
  293. package/types/src/utils/normalize.d.ts.map +1 -0
  294. package/types/src/utils/number.d.ts.map +1 -0
  295. package/types/src/utils/origin.d.ts.map +1 -0
  296. package/types/src/utils/sanitize.d.ts.map +1 -0
  297. package/types/src/utils/storage.d.ts.map +1 -0
  298. package/types/src/utils/string.d.ts.map +1 -0
  299. package/types/src/utils/throttle.d.ts.map +1 -0
  300. package/types/src/utils/types.d.ts.map +1 -0
  301. package/types/src/wiring/events.types.d.ts.map +1 -0
  302. package/types/src/wiring/index.d.ts.map +1 -0
  303. package/types/src/wiring/namespaced-wires.factory.d.ts.map +1 -0
  304. package/types/src/wiring/namespaced-wires.operators.d.ts.map +1 -0
  305. package/types/src/wiring/namespaced-wiring.types.d.ts.map +1 -0
  306. package/types/src/wiring/wires-operators.utils.d.ts.map +1 -0
  307. package/types/src/wiring/wires.factory.d.ts.map +1 -0
  308. package/types/src/wiring/wires.operators.d.ts.map +1 -0
  309. package/types/src/wiring/wiring.types.d.ts.map +1 -0
  310. package/types/src/wiring/wiring.utils.d.ts.map +1 -0
  311. package/types/src/x-bus/index.d.ts +5 -0
  312. package/types/src/x-bus/index.d.ts.map +1 -0
  313. package/types/src/x-bus/x-bus.d.ts +154 -0
  314. package/types/src/x-bus/x-bus.d.ts.map +1 -0
  315. package/types/src/x-bus/x-bus.types.d.ts.map +1 -0
  316. package/types/src/x-bus/x-priority-queue.d.ts.map +1 -0
  317. package/types/src/x-bus/x-priority-queue.types.d.ts.map +1 -0
  318. package/types/src/x-installer/api/api.types.d.ts.map +1 -0
  319. package/types/src/x-installer/api/base-api.d.ts.map +1 -0
  320. package/types/src/x-installer/api/index.d.ts.map +1 -0
  321. package/types/src/x-installer/index.d.ts +4 -0
  322. package/types/src/x-installer/index.d.ts.map +1 -0
  323. package/types/src/x-installer/types.d.ts +84 -0
  324. package/types/src/x-installer/types.d.ts.map +1 -0
  325. package/types/src/x-installer/x-installer.d.ts +217 -0
  326. package/types/src/x-installer/x-installer.d.ts.map +1 -0
  327. package/types/src/x-modules/ai/components/ai-carousel.vue.d.ts.map +1 -0
  328. package/types/src/x-modules/ai/components/ai-overview.vue.d.ts.map +1 -0
  329. package/types/src/x-modules/ai/components/index.d.ts.map +1 -0
  330. package/types/src/x-modules/ai/config.types.d.ts.map +1 -0
  331. package/types/src/x-modules/ai/events.types.d.ts.map +1 -0
  332. package/types/src/x-modules/ai/index.d.ts.map +1 -0
  333. package/types/src/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +1 -0
  334. package/types/src/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.d.ts.map +1 -0
  335. package/types/src/x-modules/ai/store/actions/index.d.ts.map +1 -0
  336. package/types/src/x-modules/ai/store/actions/save-origin.action.d.ts.map +1 -0
  337. package/types/src/x-modules/ai/store/actions/set-url-params.action.d.ts.map +1 -0
  338. package/types/src/x-modules/ai/store/emitters.d.ts.map +1 -0
  339. package/types/src/x-modules/ai/store/getters/ai-query.getter.d.ts.map +1 -0
  340. package/types/src/x-modules/ai/store/getters/index.d.ts.map +1 -0
  341. package/types/src/x-modules/ai/store/getters/suggestions-request.getter.d.ts.map +1 -0
  342. package/types/src/x-modules/ai/store/getters/suggestions-search-request.getter.d.ts.map +1 -0
  343. package/types/src/x-modules/ai/store/index.d.ts.map +1 -0
  344. package/types/src/x-modules/ai/store/module.d.ts.map +1 -0
  345. package/types/src/x-modules/ai/store/types.d.ts.map +1 -0
  346. package/types/src/x-modules/ai/wiring.d.ts.map +1 -0
  347. package/types/src/x-modules/ai/x-module.d.ts.map +1 -0
  348. package/types/src/x-modules/device/components/device-detector.vue.d.ts.map +1 -0
  349. package/types/src/x-modules/device/components/index.d.ts.map +1 -0
  350. package/types/src/x-modules/device/events.types.d.ts.map +1 -0
  351. package/types/src/x-modules/device/index.d.ts.map +1 -0
  352. package/types/src/x-modules/device/store/emitters.d.ts.map +1 -0
  353. package/types/src/x-modules/device/store/index.d.ts.map +1 -0
  354. package/types/src/x-modules/device/store/module.d.ts.map +1 -0
  355. package/types/src/x-modules/device/store/types.d.ts.map +1 -0
  356. package/types/src/x-modules/device/wiring.d.ts.map +1 -0
  357. package/types/src/x-modules/device/x-module.d.ts.map +1 -0
  358. package/types/src/x-modules/empathize/components/empathize.vue.d.ts.map +1 -0
  359. package/types/src/x-modules/empathize/components/index.d.ts.map +1 -0
  360. package/types/src/x-modules/empathize/config.types.d.ts.map +1 -0
  361. package/types/src/x-modules/empathize/events.types.d.ts.map +1 -0
  362. package/types/src/x-modules/empathize/index.d.ts.map +1 -0
  363. package/types/src/x-modules/empathize/store/emitters.d.ts.map +1 -0
  364. package/types/src/x-modules/empathize/store/index.d.ts.map +1 -0
  365. package/types/src/x-modules/empathize/store/module.d.ts.map +1 -0
  366. package/types/src/x-modules/empathize/store/types.d.ts.map +1 -0
  367. package/types/src/x-modules/empathize/wiring.d.ts.map +1 -0
  368. package/types/src/x-modules/empathize/x-module.d.ts.map +1 -0
  369. package/types/src/x-modules/experience-controls/components/experience-controls.vue.d.ts.map +1 -0
  370. package/types/src/x-modules/experience-controls/components/index.d.ts.map +1 -0
  371. package/types/src/x-modules/experience-controls/events.types.d.ts.map +1 -0
  372. package/types/src/x-modules/experience-controls/index.d.ts.map +1 -0
  373. package/types/src/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts.map +1 -0
  374. package/types/src/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts.map +1 -0
  375. package/types/src/x-modules/experience-controls/store/actions/index.d.ts.map +1 -0
  376. package/types/src/x-modules/experience-controls/store/emitters.d.ts.map +1 -0
  377. package/types/src/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts.map +1 -0
  378. package/types/src/x-modules/experience-controls/store/getters/index.d.ts.map +1 -0
  379. package/types/src/x-modules/experience-controls/store/index.d.ts.map +1 -0
  380. package/types/src/x-modules/experience-controls/store/module.d.ts.map +1 -0
  381. package/types/src/x-modules/experience-controls/store/types.d.ts.map +1 -0
  382. package/types/src/x-modules/experience-controls/wiring.d.ts.map +1 -0
  383. package/types/src/x-modules/experience-controls/x-module.d.ts.map +1 -0
  384. package/types/src/x-modules/extra-params/components/extra-params.vue.d.ts.map +1 -0
  385. package/types/src/x-modules/extra-params/components/index.d.ts.map +1 -0
  386. package/types/src/x-modules/extra-params/components/renderless-extra-param.vue.d.ts.map +1 -0
  387. package/types/src/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +1 -0
  388. package/types/src/x-modules/extra-params/events.types.d.ts.map +1 -0
  389. package/types/src/x-modules/extra-params/index.d.ts.map +1 -0
  390. package/types/src/x-modules/extra-params/store/emitters.d.ts.map +1 -0
  391. package/types/src/x-modules/extra-params/store/index.d.ts.map +1 -0
  392. package/types/src/x-modules/extra-params/store/module.d.ts.map +1 -0
  393. package/types/src/x-modules/extra-params/store/types.d.ts.map +1 -0
  394. package/types/src/x-modules/extra-params/wiring.d.ts.map +1 -0
  395. package/types/src/x-modules/extra-params/x-module.d.ts.map +1 -0
  396. package/types/src/x-modules/facets/components/clear-filters.vue.d.ts.map +1 -0
  397. package/types/src/x-modules/facets/components/facets/facets-provider.vue.d.ts.map +1 -0
  398. package/types/src/x-modules/facets/components/facets/facets.types.d.ts.map +1 -0
  399. package/types/src/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -0
  400. package/types/src/x-modules/facets/components/filters/all-filter.vue.d.ts.map +1 -0
  401. package/types/src/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts.map +1 -0
  402. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -0
  403. package/types/src/x-modules/facets/components/filters/number-range-filter.vue.d.ts.map +1 -0
  404. package/types/src/x-modules/facets/components/filters/renderless-filter.vue.d.ts.map +1 -0
  405. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -0
  406. package/types/src/x-modules/facets/components/index.d.ts.map +1 -0
  407. package/types/src/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts.map +1 -0
  408. package/types/src/x-modules/facets/components/lists/filters-list.vue.d.ts.map +1 -0
  409. package/types/src/x-modules/facets/components/lists/filters-search.vue.d.ts.map +1 -0
  410. package/types/src/x-modules/facets/components/lists/selected-filters-list.types.d.ts.map +1 -0
  411. package/types/src/x-modules/facets/components/lists/selected-filters-list.vue.d.ts.map +1 -0
  412. package/types/src/x-modules/facets/components/lists/selected-filters.vue.d.ts.map +1 -0
  413. package/types/src/x-modules/facets/components/lists/sliced-filters.vue.d.ts.map +1 -0
  414. package/types/src/x-modules/facets/components/lists/sorted-filters.vue.d.ts.map +1 -0
  415. package/types/src/x-modules/facets/components/preselected-filters.vue.d.ts.map +1 -0
  416. package/types/src/x-modules/facets/composables/index.d.ts.map +1 -0
  417. package/types/src/x-modules/facets/composables/use-facets.d.ts.map +1 -0
  418. package/types/src/x-modules/facets/composables/use-filters-injection.d.ts.map +1 -0
  419. package/types/src/x-modules/facets/entities/add-facet-if-not-present.d.ts.map +1 -0
  420. package/types/src/x-modules/facets/entities/editable-number-range-filter.entity.d.ts.map +1 -0
  421. package/types/src/x-modules/facets/entities/filter-entity.factory.d.ts.map +1 -0
  422. package/types/src/x-modules/facets/entities/hierarchical-filter.entity.d.ts.map +1 -0
  423. package/types/src/x-modules/facets/entities/index.d.ts.map +1 -0
  424. package/types/src/x-modules/facets/entities/number-range-filter.entity.d.ts.map +1 -0
  425. package/types/src/x-modules/facets/entities/raw-filter.entity.d.ts.map +1 -0
  426. package/types/src/x-modules/facets/entities/simple-filter.entity.d.ts.map +1 -0
  427. package/types/src/x-modules/facets/entities/single-select.modifier.d.ts.map +1 -0
  428. package/types/src/x-modules/facets/entities/sticky.modifier.d.ts.map +1 -0
  429. package/types/src/x-modules/facets/entities/types.d.ts.map +1 -0
  430. package/types/src/x-modules/facets/events.types.d.ts.map +1 -0
  431. package/types/src/x-modules/facets/index.d.ts.map +1 -0
  432. package/types/src/x-modules/facets/service/facets.service.d.ts.map +1 -0
  433. package/types/src/x-modules/facets/service/index.d.ts.map +1 -0
  434. package/types/src/x-modules/facets/service/types.d.ts.map +1 -0
  435. package/types/src/x-modules/facets/store/actions/fetch-and-save-facets-response.action.d.ts.map +1 -0
  436. package/types/src/x-modules/facets/store/actions/fetch-facets-response.action.d.ts.map +1 -0
  437. package/types/src/x-modules/facets/store/actions/save-origin.action.d.ts.map +1 -0
  438. package/types/src/x-modules/facets/store/constants.d.ts.map +1 -0
  439. package/types/src/x-modules/facets/store/emitters.d.ts.map +1 -0
  440. package/types/src/x-modules/facets/store/getters/facets.getter.d.ts.map +1 -0
  441. package/types/src/x-modules/facets/store/getters/index.d.ts.map +1 -0
  442. package/types/src/x-modules/facets/store/getters/request.getter.d.ts.map +1 -0
  443. package/types/src/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts.map +1 -0
  444. package/types/src/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts.map +1 -0
  445. package/types/src/x-modules/facets/store/getters/selected-filters.getter.d.ts.map +1 -0
  446. package/types/src/x-modules/facets/store/index.d.ts.map +1 -0
  447. package/types/src/x-modules/facets/store/module.d.ts.map +1 -0
  448. package/types/src/x-modules/facets/store/types.d.ts.map +1 -0
  449. package/types/src/x-modules/facets/utils.d.ts.map +1 -0
  450. package/types/src/x-modules/facets/wiring.d.ts.map +1 -0
  451. package/types/src/x-modules/facets/x-module.d.ts.map +1 -0
  452. package/types/src/x-modules/history-queries/components/clear-history-queries.vue.d.ts.map +1 -0
  453. package/types/src/x-modules/history-queries/components/history-queries-switch.vue.d.ts.map +1 -0
  454. package/types/src/x-modules/history-queries/components/history-queries.vue.d.ts.map +1 -0
  455. package/types/src/x-modules/history-queries/components/history-query.vue.d.ts.map +1 -0
  456. package/types/src/x-modules/history-queries/components/index.d.ts.map +1 -0
  457. package/types/src/x-modules/history-queries/components/my-history.vue.d.ts.map +1 -0
  458. package/types/src/x-modules/history-queries/components/remove-history-query.vue.d.ts.map +1 -0
  459. package/types/src/x-modules/history-queries/config.types.d.ts.map +1 -0
  460. package/types/src/x-modules/history-queries/events.types.d.ts.map +1 -0
  461. package/types/src/x-modules/history-queries/index.d.ts.map +1 -0
  462. package/types/src/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts.map +1 -0
  463. package/types/src/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts.map +1 -0
  464. package/types/src/x-modules/history-queries/store/actions/refresh-session.action.d.ts.map +1 -0
  465. package/types/src/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts.map +1 -0
  466. package/types/src/x-modules/history-queries/store/actions/set-history-queries.action.d.ts.map +1 -0
  467. package/types/src/x-modules/history-queries/store/actions/set-url-params.action.d.ts.map +1 -0
  468. package/types/src/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts.map +1 -0
  469. package/types/src/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts.map +1 -0
  470. package/types/src/x-modules/history-queries/store/constants.d.ts.map +1 -0
  471. package/types/src/x-modules/history-queries/store/emitters.d.ts.map +1 -0
  472. package/types/src/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts.map +1 -0
  473. package/types/src/x-modules/history-queries/store/getters/history-queries.getter.d.ts.map +1 -0
  474. package/types/src/x-modules/history-queries/store/getters/normalized-query.getter.d.ts.map +1 -0
  475. package/types/src/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts.map +1 -0
  476. package/types/src/x-modules/history-queries/store/getters/storage-key.getter.d.ts.map +1 -0
  477. package/types/src/x-modules/history-queries/store/index.d.ts.map +1 -0
  478. package/types/src/x-modules/history-queries/store/module.d.ts.map +1 -0
  479. package/types/src/x-modules/history-queries/store/types.d.ts.map +1 -0
  480. package/types/src/x-modules/history-queries/wiring.d.ts.map +1 -0
  481. package/types/src/x-modules/history-queries/x-module.d.ts.map +1 -0
  482. package/types/src/x-modules/identifier-results/components/identifier-result.vue.d.ts.map +1 -0
  483. package/types/src/x-modules/identifier-results/components/identifier-results.vue.d.ts.map +1 -0
  484. package/types/src/x-modules/identifier-results/components/index.d.ts.map +1 -0
  485. package/types/src/x-modules/identifier-results/config.types.d.ts.map +1 -0
  486. package/types/src/x-modules/identifier-results/events.types.d.ts.map +1 -0
  487. package/types/src/x-modules/identifier-results/index.d.ts.map +1 -0
  488. package/types/src/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +1 -0
  489. package/types/src/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts.map +1 -0
  490. package/types/src/x-modules/identifier-results/store/actions/index.d.ts.map +1 -0
  491. package/types/src/x-modules/identifier-results/store/actions/save-origin.action.d.ts.map +1 -0
  492. package/types/src/x-modules/identifier-results/store/actions/save-query.action.d.ts.map +1 -0
  493. package/types/src/x-modules/identifier-results/store/emitters.d.ts.map +1 -0
  494. package/types/src/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts.map +1 -0
  495. package/types/src/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts.map +1 -0
  496. package/types/src/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +1 -0
  497. package/types/src/x-modules/identifier-results/store/index.d.ts.map +1 -0
  498. package/types/src/x-modules/identifier-results/store/module.d.ts.map +1 -0
  499. package/types/src/x-modules/identifier-results/store/types.d.ts.map +1 -0
  500. package/types/src/x-modules/identifier-results/wiring.d.ts.map +1 -0
  501. package/types/src/x-modules/identifier-results/x-module.d.ts.map +1 -0
  502. package/types/src/x-modules/next-queries/components/index.d.ts.map +1 -0
  503. package/types/src/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -0
  504. package/types/src/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -0
  505. package/types/src/x-modules/next-queries/components/next-query-preview.vue.d.ts.map +1 -0
  506. package/types/src/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -0
  507. package/types/src/x-modules/next-queries/config.types.d.ts.map +1 -0
  508. package/types/src/x-modules/next-queries/events.types.d.ts.map +1 -0
  509. package/types/src/x-modules/next-queries/index.d.ts.map +1 -0
  510. package/types/src/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts.map +1 -0
  511. package/types/src/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts.map +1 -0
  512. package/types/src/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts.map +1 -0
  513. package/types/src/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts.map +1 -0
  514. package/types/src/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts.map +1 -0
  515. package/types/src/x-modules/next-queries/store/actions/set-url-params.action.d.ts.map +1 -0
  516. package/types/src/x-modules/next-queries/store/emitters.d.ts.map +1 -0
  517. package/types/src/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts.map +1 -0
  518. package/types/src/x-modules/next-queries/store/getters/next-queries.getter.d.ts.map +1 -0
  519. package/types/src/x-modules/next-queries/store/getters/request.getter.d.ts.map +1 -0
  520. package/types/src/x-modules/next-queries/store/index.d.ts.map +1 -0
  521. package/types/src/x-modules/next-queries/store/module.d.ts.map +1 -0
  522. package/types/src/x-modules/next-queries/store/types.d.ts.map +1 -0
  523. package/types/src/x-modules/next-queries/types.d.ts.map +1 -0
  524. package/types/src/x-modules/next-queries/wiring.d.ts.map +1 -0
  525. package/types/src/x-modules/next-queries/x-module.d.ts.map +1 -0
  526. package/types/src/x-modules/popular-searches/components/index.d.ts.map +1 -0
  527. package/types/src/x-modules/popular-searches/components/popular-search.vue.d.ts.map +1 -0
  528. package/types/src/x-modules/popular-searches/components/popular-searches.vue.d.ts.map +1 -0
  529. package/types/src/x-modules/popular-searches/config.types.d.ts.map +1 -0
  530. package/types/src/x-modules/popular-searches/events.types.d.ts.map +1 -0
  531. package/types/src/x-modules/popular-searches/index.d.ts.map +1 -0
  532. package/types/src/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -0
  533. package/types/src/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts.map +1 -0
  534. package/types/src/x-modules/popular-searches/store/emitters.d.ts.map +1 -0
  535. package/types/src/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts.map +1 -0
  536. package/types/src/x-modules/popular-searches/store/getters/request.getter.d.ts.map +1 -0
  537. package/types/src/x-modules/popular-searches/store/index.d.ts.map +1 -0
  538. package/types/src/x-modules/popular-searches/store/module.d.ts.map +1 -0
  539. package/types/src/x-modules/popular-searches/store/types.d.ts.map +1 -0
  540. package/types/src/x-modules/popular-searches/wiring.d.ts.map +1 -0
  541. package/types/src/x-modules/popular-searches/x-module.d.ts.map +1 -0
  542. package/types/src/x-modules/queries-preview/components/index.d.ts.map +1 -0
  543. package/types/src/x-modules/queries-preview/components/query-preview-button.vue.d.ts.map +1 -0
  544. package/types/src/x-modules/queries-preview/components/query-preview-list.vue.d.ts.map +1 -0
  545. package/types/src/x-modules/queries-preview/components/query-preview.vue.d.ts.map +1 -0
  546. package/types/src/x-modules/queries-preview/composables/index.d.ts.map +1 -0
  547. package/types/src/x-modules/queries-preview/composables/use-queries-preview.composable.d.ts.map +1 -0
  548. package/types/src/x-modules/queries-preview/config.types.d.ts.map +1 -0
  549. package/types/src/x-modules/queries-preview/events.types.d.ts.map +1 -0
  550. package/types/src/x-modules/queries-preview/index.d.ts.map +1 -0
  551. package/types/src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +1 -0
  552. package/types/src/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts.map +1 -0
  553. package/types/src/x-modules/queries-preview/store/emitters.d.ts.map +1 -0
  554. package/types/src/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts.map +1 -0
  555. package/types/src/x-modules/queries-preview/store/index.d.ts.map +1 -0
  556. package/types/src/x-modules/queries-preview/store/module.d.ts.map +1 -0
  557. package/types/src/x-modules/queries-preview/store/types.d.ts.map +1 -0
  558. package/types/src/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts.map +1 -0
  559. package/types/src/x-modules/queries-preview/wiring.d.ts.map +1 -0
  560. package/types/src/x-modules/queries-preview/x-module.d.ts.map +1 -0
  561. package/types/src/x-modules/query-suggestions/components/index.d.ts.map +1 -0
  562. package/types/src/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +1 -0
  563. package/types/src/x-modules/query-suggestions/components/query-suggestions.vue.d.ts.map +1 -0
  564. package/types/src/x-modules/query-suggestions/config.types.d.ts.map +1 -0
  565. package/types/src/x-modules/query-suggestions/events.types.d.ts.map +1 -0
  566. package/types/src/x-modules/query-suggestions/index.d.ts.map +1 -0
  567. package/types/src/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -0
  568. package/types/src/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts.map +1 -0
  569. package/types/src/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts.map +1 -0
  570. package/types/src/x-modules/query-suggestions/store/emitters.d.ts.map +1 -0
  571. package/types/src/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts.map +1 -0
  572. package/types/src/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts.map +1 -0
  573. package/types/src/x-modules/query-suggestions/store/getters/request.getter.d.ts.map +1 -0
  574. package/types/src/x-modules/query-suggestions/store/index.d.ts.map +1 -0
  575. package/types/src/x-modules/query-suggestions/store/module.d.ts.map +1 -0
  576. package/types/src/x-modules/query-suggestions/store/types.d.ts.map +1 -0
  577. package/types/src/x-modules/query-suggestions/wiring.d.ts.map +1 -0
  578. package/types/src/x-modules/query-suggestions/x-module.d.ts.map +1 -0
  579. package/types/src/x-modules/recommendations/components/index.d.ts.map +1 -0
  580. package/types/src/x-modules/recommendations/components/recommendations.vue.d.ts.map +1 -0
  581. package/types/src/x-modules/recommendations/config.types.d.ts.map +1 -0
  582. package/types/src/x-modules/recommendations/events.types.d.ts.map +1 -0
  583. package/types/src/x-modules/recommendations/index.d.ts.map +1 -0
  584. package/types/src/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts.map +1 -0
  585. package/types/src/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts.map +1 -0
  586. package/types/src/x-modules/recommendations/store/constants.d.ts.map +1 -0
  587. package/types/src/x-modules/recommendations/store/emitters.d.ts.map +1 -0
  588. package/types/src/x-modules/recommendations/store/getters/request.getter.d.ts.map +1 -0
  589. package/types/src/x-modules/recommendations/store/index.d.ts.map +1 -0
  590. package/types/src/x-modules/recommendations/store/module.d.ts.map +1 -0
  591. package/types/src/x-modules/recommendations/store/types.d.ts.map +1 -0
  592. package/types/src/x-modules/recommendations/wiring.d.ts.map +1 -0
  593. package/types/src/x-modules/recommendations/x-module.d.ts.map +1 -0
  594. package/types/src/x-modules/related-prompts/components/index.d.ts.map +1 -0
  595. package/types/src/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -0
  596. package/types/src/x-modules/related-prompts/components/related-prompts-list.vue.d.ts.map +1 -0
  597. package/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -0
  598. package/types/src/x-modules/related-prompts/events.types.d.ts.map +1 -0
  599. package/types/src/x-modules/related-prompts/index.d.ts.map +1 -0
  600. package/types/src/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts.map +1 -0
  601. package/types/src/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts.map +1 -0
  602. package/types/src/x-modules/related-prompts/store/actions/set-url-params.action.d.ts.map +1 -0
  603. package/types/src/x-modules/related-prompts/store/emitters.d.ts.map +1 -0
  604. package/types/src/x-modules/related-prompts/store/getters/index.d.ts.map +1 -0
  605. package/types/src/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts.map +1 -0
  606. package/types/src/x-modules/related-prompts/store/getters/request.getter.d.ts.map +1 -0
  607. package/types/src/x-modules/related-prompts/store/index.d.ts.map +1 -0
  608. package/types/src/x-modules/related-prompts/store/module.d.ts.map +1 -0
  609. package/types/src/x-modules/related-prompts/store/types.d.ts.map +1 -0
  610. package/types/src/x-modules/related-prompts/types.d.ts.map +1 -0
  611. package/types/src/x-modules/related-prompts/wiring.d.ts.map +1 -0
  612. package/types/src/x-modules/related-prompts/x-module.d.ts.map +1 -0
  613. package/types/src/x-modules/related-tags/components/index.d.ts.map +1 -0
  614. package/types/src/x-modules/related-tags/components/related-tag.vue.d.ts.map +1 -0
  615. package/types/src/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -0
  616. package/types/src/x-modules/related-tags/config.types.d.ts.map +1 -0
  617. package/types/src/x-modules/related-tags/events.types.d.ts.map +1 -0
  618. package/types/src/x-modules/related-tags/index.d.ts.map +1 -0
  619. package/types/src/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts.map +1 -0
  620. package/types/src/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts.map +1 -0
  621. package/types/src/x-modules/related-tags/store/actions/set-url-params.action.d.ts.map +1 -0
  622. package/types/src/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts.map +1 -0
  623. package/types/src/x-modules/related-tags/store/emitters.d.ts.map +1 -0
  624. package/types/src/x-modules/related-tags/store/getters/query.getter.d.ts.map +1 -0
  625. package/types/src/x-modules/related-tags/store/getters/related-tags.getter.d.ts.map +1 -0
  626. package/types/src/x-modules/related-tags/store/getters/request.getter.d.ts.map +1 -0
  627. package/types/src/x-modules/related-tags/store/index.d.ts.map +1 -0
  628. package/types/src/x-modules/related-tags/store/module.d.ts.map +1 -0
  629. package/types/src/x-modules/related-tags/store/types.d.ts.map +1 -0
  630. package/types/src/x-modules/related-tags/wiring.d.ts.map +1 -0
  631. package/types/src/x-modules/related-tags/x-module.d.ts.map +1 -0
  632. package/types/src/x-modules/scroll/components/index.d.ts.map +1 -0
  633. package/types/src/x-modules/scroll/components/main-scroll-item.vue.d.ts.map +1 -0
  634. package/types/src/x-modules/scroll/components/main-scroll.vue.d.ts.map +1 -0
  635. package/types/src/x-modules/scroll/components/scroll-to-top.vue.d.ts.map +1 -0
  636. package/types/src/x-modules/scroll/components/scroll.const.d.ts.map +1 -0
  637. package/types/src/x-modules/scroll/components/scroll.types.d.ts.map +1 -0
  638. package/types/src/x-modules/scroll/components/scroll.vue.d.ts.map +1 -0
  639. package/types/src/x-modules/scroll/events.types.d.ts.map +1 -0
  640. package/types/src/x-modules/scroll/index.d.ts.map +1 -0
  641. package/types/src/x-modules/scroll/store/emitters.d.ts.map +1 -0
  642. package/types/src/x-modules/scroll/store/index.d.ts.map +1 -0
  643. package/types/src/x-modules/scroll/store/module.d.ts.map +1 -0
  644. package/types/src/x-modules/scroll/store/types.d.ts.map +1 -0
  645. package/types/src/x-modules/scroll/wiring.d.ts.map +1 -0
  646. package/types/src/x-modules/scroll/x-module.d.ts.map +1 -0
  647. package/types/src/x-modules/search/components/banner.vue.d.ts.map +1 -0
  648. package/types/src/x-modules/search/components/banners-list.vue.d.ts.map +1 -0
  649. package/types/src/x-modules/search/components/fallback-disclaimer.vue.d.ts.map +1 -0
  650. package/types/src/x-modules/search/components/index.d.ts.map +1 -0
  651. package/types/src/x-modules/search/components/partial-query-button.vue.d.ts.map +1 -0
  652. package/types/src/x-modules/search/components/partial-results-list.vue.d.ts.map +1 -0
  653. package/types/src/x-modules/search/components/promoted.vue.d.ts.map +1 -0
  654. package/types/src/x-modules/search/components/promoteds-list.vue.d.ts.map +1 -0
  655. package/types/src/x-modules/search/components/redirection.vue.d.ts.map +1 -0
  656. package/types/src/x-modules/search/components/results-list.vue.d.ts.map +1 -0
  657. package/types/src/x-modules/search/components/sort-dropdown.vue.d.ts.map +1 -0
  658. package/types/src/x-modules/search/components/sort-list.vue.d.ts.map +1 -0
  659. package/types/src/x-modules/search/components/sort-picker-list.types.d.ts.map +1 -0
  660. package/types/src/x-modules/search/components/sort-picker-list.vue.d.ts.map +1 -0
  661. package/types/src/x-modules/search/components/spellcheck-button.vue.d.ts.map +1 -0
  662. package/types/src/x-modules/search/components/spellcheck.vue.d.ts.map +1 -0
  663. package/types/src/x-modules/search/config.types.d.ts.map +1 -0
  664. package/types/src/x-modules/search/events.types.d.ts.map +1 -0
  665. package/types/src/x-modules/search/index.d.ts.map +1 -0
  666. package/types/src/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -0
  667. package/types/src/x-modules/search/store/actions/fetch-search-response.action.d.ts.map +1 -0
  668. package/types/src/x-modules/search/store/actions/increase-page-apending-results.action.d.ts.map +1 -0
  669. package/types/src/x-modules/search/store/actions/index.d.ts.map +1 -0
  670. package/types/src/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts.map +1 -0
  671. package/types/src/x-modules/search/store/actions/save-origin.action.d.ts.map +1 -0
  672. package/types/src/x-modules/search/store/actions/save-search-response.action.d.ts.map +1 -0
  673. package/types/src/x-modules/search/store/actions/set-url-params.action.d.ts.map +1 -0
  674. package/types/src/x-modules/search/store/emitters.d.ts.map +1 -0
  675. package/types/src/x-modules/search/store/getters/index.d.ts.map +1 -0
  676. package/types/src/x-modules/search/store/getters/query.getter.d.ts.map +1 -0
  677. package/types/src/x-modules/search/store/getters/request.getter.d.ts.map +1 -0
  678. package/types/src/x-modules/search/store/index.d.ts.map +1 -0
  679. package/types/src/x-modules/search/store/module.d.ts.map +1 -0
  680. package/types/src/x-modules/search/store/types.d.ts.map +1 -0
  681. package/types/src/x-modules/search/types.d.ts.map +1 -0
  682. package/types/src/x-modules/search/wiring.d.ts.map +1 -0
  683. package/types/src/x-modules/search/x-module.d.ts.map +1 -0
  684. package/types/src/x-modules/search-box/components/clear-search-input.vue.d.ts.map +1 -0
  685. package/types/src/x-modules/search-box/components/index.d.ts.map +1 -0
  686. package/types/src/x-modules/search-box/components/search-button.vue.d.ts.map +1 -0
  687. package/types/src/x-modules/search-box/components/search-input-placeholder.vue.d.ts.map +1 -0
  688. package/types/src/x-modules/search-box/components/search-input.vue.d.ts.map +1 -0
  689. package/types/src/x-modules/search-box/events.types.d.ts.map +1 -0
  690. package/types/src/x-modules/search-box/index.d.ts.map +1 -0
  691. package/types/src/x-modules/search-box/store/actions/set-input-status.action.d.ts.map +1 -0
  692. package/types/src/x-modules/search-box/store/actions/set-url-params.action.d.ts.map +1 -0
  693. package/types/src/x-modules/search-box/store/emitters.d.ts.map +1 -0
  694. package/types/src/x-modules/search-box/store/index.d.ts.map +1 -0
  695. package/types/src/x-modules/search-box/store/module.d.ts.map +1 -0
  696. package/types/src/x-modules/search-box/store/types.d.ts.map +1 -0
  697. package/types/src/x-modules/search-box/wiring.d.ts.map +1 -0
  698. package/types/src/x-modules/search-box/x-module.d.ts.map +1 -0
  699. package/types/src/x-modules/semantic-queries/components/index.d.ts.map +1 -0
  700. package/types/src/x-modules/semantic-queries/components/semantic-queries.vue.d.ts.map +1 -0
  701. package/types/src/x-modules/semantic-queries/components/semantic-query.vue.d.ts.map +1 -0
  702. package/types/src/x-modules/semantic-queries/config.types.d.ts.map +1 -0
  703. package/types/src/x-modules/semantic-queries/events.types.d.ts.map +1 -0
  704. package/types/src/x-modules/semantic-queries/index.d.ts.map +1 -0
  705. package/types/src/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts.map +1 -0
  706. package/types/src/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts.map +1 -0
  707. package/types/src/x-modules/semantic-queries/store/actions/index.d.ts.map +1 -0
  708. package/types/src/x-modules/semantic-queries/store/emitters.d.ts.map +1 -0
  709. package/types/src/x-modules/semantic-queries/store/getters/index.d.ts.map +1 -0
  710. package/types/src/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts.map +1 -0
  711. package/types/src/x-modules/semantic-queries/store/getters/request.getter.d.ts.map +1 -0
  712. package/types/src/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts.map +1 -0
  713. package/types/src/x-modules/semantic-queries/store/index.d.ts.map +1 -0
  714. package/types/src/x-modules/semantic-queries/store/module.d.ts.map +1 -0
  715. package/types/src/x-modules/semantic-queries/store/types.d.ts.map +1 -0
  716. package/types/src/x-modules/semantic-queries/wiring.d.ts.map +1 -0
  717. package/types/src/x-modules/semantic-queries/x-module.d.ts.map +1 -0
  718. package/types/src/x-modules/tagging/components/index.d.ts.map +1 -0
  719. package/types/src/x-modules/tagging/components/tagging.vue.d.ts.map +1 -0
  720. package/types/src/x-modules/tagging/config.types.d.ts.map +1 -0
  721. package/types/src/x-modules/tagging/events.types.d.ts.map +1 -0
  722. package/types/src/x-modules/tagging/index.d.ts.map +1 -0
  723. package/types/src/x-modules/tagging/service/external-tagging.service.d.ts.map +1 -0
  724. package/types/src/x-modules/tagging/service/index.d.ts.map +1 -0
  725. package/types/src/x-modules/tagging/service/types.d.ts.map +1 -0
  726. package/types/src/x-modules/tagging/store/actions/index.d.ts.map +1 -0
  727. package/types/src/x-modules/tagging/store/actions/track.action.d.ts.map +1 -0
  728. package/types/src/x-modules/tagging/store/emitters.d.ts.map +1 -0
  729. package/types/src/x-modules/tagging/store/index.d.ts.map +1 -0
  730. package/types/src/x-modules/tagging/store/module.d.ts.map +1 -0
  731. package/types/src/x-modules/tagging/store/types.d.ts.map +1 -0
  732. package/types/src/x-modules/tagging/wiring.d.ts.map +1 -0
  733. package/types/src/x-modules/tagging/x-module.d.ts.map +1 -0
  734. package/types/src/x-modules/url/components/index.d.ts.map +1 -0
  735. package/types/src/x-modules/url/components/url-handler.vue.d.ts.map +1 -0
  736. package/types/src/x-modules/url/events.types.d.ts.map +1 -0
  737. package/types/src/x-modules/url/index.d.ts.map +1 -0
  738. package/types/src/x-modules/url/store/emitters.d.ts.map +1 -0
  739. package/types/src/x-modules/url/store/getters/url-params.getter.d.ts.map +1 -0
  740. package/types/src/x-modules/url/store/index.d.ts.map +1 -0
  741. package/types/src/x-modules/url/store/initial-state.d.ts.map +1 -0
  742. package/types/src/x-modules/url/store/module.d.ts.map +1 -0
  743. package/types/src/x-modules/url/store/mutations/set-params.mutation.d.ts.map +1 -0
  744. package/types/src/x-modules/url/store/types.d.ts.map +1 -0
  745. package/types/src/x-modules/url/wiring.d.ts.map +1 -0
  746. package/types/src/x-modules/url/x-module.d.ts.map +1 -0
  747. package/types/src/x-modules/x-modules.types.d.ts.map +1 -0
  748. package/url/index.d.ts +1 -1
  749. package/docs/API-reference/api/x-components.setupdevtools.md +0 -57
  750. package/js/plugins/devtools/colors.utils.js +0 -49
  751. package/js/plugins/devtools/colors.utils.js.map +0 -1
  752. package/js/plugins/devtools/devtools.plugin.js +0 -32
  753. package/js/plugins/devtools/devtools.plugin.js.map +0 -1
  754. package/js/plugins/devtools/timeline.devtools.js +0 -109
  755. package/js/plugins/devtools/timeline.devtools.js.map +0 -1
  756. package/js/plugins/devtools/wiring.devtools.js +0 -122
  757. package/js/plugins/devtools/wiring.devtools.js.map +0 -1
  758. package/js/x-bus/x-priority-queue/x-priority-queue.js.map +0 -1
  759. package/js/x-installer/x-installer/x-installer.js +0 -285
  760. package/js/x-installer/x-installer/x-installer.js.map +0 -1
  761. package/types/adapter/mocked-responses.d.ts +0 -47
  762. package/types/adapter/mocked-responses.d.ts.map +0 -1
  763. package/types/components/animations/animate-clip-path/animate-clip-path.factory.d.ts.map +0 -1
  764. package/types/components/animations/animate-scale/animate-scale.factory.d.ts.map +0 -1
  765. package/types/components/animations/animate-translate/animate-translate.factory.d.ts.map +0 -1
  766. package/types/components/animations/animate-width.vue.d.ts.map +0 -1
  767. package/types/components/animations/change-height.vue.d.ts.map +0 -1
  768. package/types/components/animations/collapse-height.vue.d.ts.map +0 -1
  769. package/types/components/animations/collapse-width.vue.d.ts.map +0 -1
  770. package/types/components/animations/create-directional-animation-factory.d.ts.map +0 -1
  771. package/types/components/animations/cross-fade.vue.d.ts.map +0 -1
  772. package/types/components/animations/fade-and-slide.vue.d.ts.map +0 -1
  773. package/types/components/animations/fade.vue.d.ts.map +0 -1
  774. package/types/components/animations/index.d.ts.map +0 -1
  775. package/types/components/animations/no-animation.vue.d.ts.map +0 -1
  776. package/types/components/animations/staggered-fade-and-slide.vue.d.ts.map +0 -1
  777. package/types/components/animations/use-collapse-animation.d.ts.map +0 -1
  778. package/types/components/animations/use-disable-animation.d.ts.map +0 -1
  779. package/types/components/auto-progress-bar.vue.d.ts.map +0 -1
  780. package/types/components/base-dropdown.vue.d.ts.map +0 -1
  781. package/types/components/base-event-button.vue.d.ts.map +0 -1
  782. package/types/components/base-grid.types.d.ts.map +0 -1
  783. package/types/components/base-grid.vue.d.ts.map +0 -1
  784. package/types/components/base-keyboard-navigation.vue.d.ts.map +0 -1
  785. package/types/components/base-rating.vue.d.ts.map +0 -1
  786. package/types/components/base-slider.vue.d.ts.map +0 -1
  787. package/types/components/base-switch.vue.d.ts.map +0 -1
  788. package/types/components/base-teleport.vue.d.ts.map +0 -1
  789. package/types/components/base-variable-column-grid.vue.d.ts.map +0 -1
  790. package/types/components/column-picker/base-column-picker-dropdown.vue.d.ts.map +0 -1
  791. package/types/components/column-picker/base-column-picker-list.types.d.ts.map +0 -1
  792. package/types/components/column-picker/base-column-picker-list.vue.d.ts.map +0 -1
  793. package/types/components/column-picker/index.d.ts.map +0 -1
  794. package/types/components/currency/base-currency.vue.d.ts.map +0 -1
  795. package/types/components/currency/index.d.ts.map +0 -1
  796. package/types/components/decorators/injection.consts.d.ts.map +0 -1
  797. package/types/components/display-click-provider.vue.d.ts.map +0 -1
  798. package/types/components/display-emitter.vue.d.ts.map +0 -1
  799. package/types/components/filters/index.d.ts.map +0 -1
  800. package/types/components/filters/labels/base-price-filter-label.vue.d.ts.map +0 -1
  801. package/types/components/filters/labels/base-rating-filter-label.vue.d.ts.map +0 -1
  802. package/types/components/global-x-bus.vue.d.ts.map +0 -1
  803. package/types/components/highlight.vue.d.ts.map +0 -1
  804. package/types/components/icons/index.d.ts.map +0 -1
  805. package/types/components/index.d.ts.map +0 -1
  806. package/types/components/items-list.vue.d.ts.map +0 -1
  807. package/types/components/layouts/fixed-header-and-asides-layout.vue.d.ts.map +0 -1
  808. package/types/components/layouts/index.d.ts.map +0 -1
  809. package/types/components/layouts/multi-column-max-width-layout.vue.d.ts.map +0 -1
  810. package/types/components/layouts/single-column-layout.vue.d.ts.map +0 -1
  811. package/types/components/location-provider.vue.d.ts.map +0 -1
  812. package/types/components/modals/base-events-modal-close.vue.d.ts.map +0 -1
  813. package/types/components/modals/base-events-modal-open.vue.d.ts.map +0 -1
  814. package/types/components/modals/base-events-modal.vue.d.ts.map +0 -1
  815. package/types/components/modals/base-id-modal-close.vue.d.ts.map +0 -1
  816. package/types/components/modals/base-id-modal-open.vue.d.ts.map +0 -1
  817. package/types/components/modals/base-id-modal.vue.d.ts.map +0 -1
  818. package/types/components/modals/base-modal.vue.d.ts.map +0 -1
  819. package/types/components/modals/close-main-modal.vue.d.ts.map +0 -1
  820. package/types/components/modals/index.d.ts.map +0 -1
  821. package/types/components/modals/main-modal.vue.d.ts.map +0 -1
  822. package/types/components/modals/open-main-modal.vue.d.ts.map +0 -1
  823. package/types/components/page-loader-button.vue.d.ts.map +0 -1
  824. package/types/components/page-selector.vue.d.ts.map +0 -1
  825. package/types/components/panels/base-header-toggle-panel.vue.d.ts.map +0 -1
  826. package/types/components/panels/base-id-toggle-panel-button.vue.d.ts.map +0 -1
  827. package/types/components/panels/base-id-toggle-panel.vue.d.ts.map +0 -1
  828. package/types/components/panels/base-tabs-panel.vue.d.ts.map +0 -1
  829. package/types/components/panels/base-toggle-panel.vue.d.ts.map +0 -1
  830. package/types/components/panels/index.d.ts.map +0 -1
  831. package/types/components/result/base-result-add-to-cart.vue.d.ts.map +0 -1
  832. package/types/components/result/base-result-current-price.vue.d.ts.map +0 -1
  833. package/types/components/result/base-result-image.vue.d.ts.map +0 -1
  834. package/types/components/result/base-result-link.vue.d.ts.map +0 -1
  835. package/types/components/result/base-result-previous-price.vue.d.ts.map +0 -1
  836. package/types/components/result/base-result-rating.vue.d.ts.map +0 -1
  837. package/types/components/result/index.d.ts.map +0 -1
  838. package/types/components/result/result-variant-selector.vue.d.ts.map +0 -1
  839. package/types/components/result/result-variants-provider.vue.d.ts.map +0 -1
  840. package/types/components/scroll/base-scroll.vue.d.ts.map +0 -1
  841. package/types/components/scroll/index.d.ts.map +0 -1
  842. package/types/components/scroll/scroll.types.d.ts.map +0 -1
  843. package/types/components/scroll/use-scroll.d.ts.map +0 -1
  844. package/types/components/sliding-panel.vue.d.ts.map +0 -1
  845. package/types/components/snippet-callbacks.vue.d.ts.map +0 -1
  846. package/types/components/suggestions/base-suggestion.vue.d.ts.map +0 -1
  847. package/types/components/suggestions/base-suggestions.vue.d.ts.map +0 -1
  848. package/types/components/suggestions/index.d.ts.map +0 -1
  849. package/types/components/x-component.utils.d.ts.map +0 -1
  850. package/types/composables/create-use-device.d.ts.map +0 -1
  851. package/types/composables/index.d.ts.map +0 -1
  852. package/types/composables/use-$x.d.ts.map +0 -1
  853. package/types/composables/use-alias-api.d.ts.map +0 -1
  854. package/types/composables/use-debounce.d.ts.map +0 -1
  855. package/types/composables/use-getter.d.ts.map +0 -1
  856. package/types/composables/use-on-display.d.ts.map +0 -1
  857. package/types/composables/use-state.d.ts.map +0 -1
  858. package/types/composables/use-x-bus.d.ts.map +0 -1
  859. package/types/directives/index.d.ts.map +0 -1
  860. package/types/directives/infinite-scroll.d.ts.map +0 -1
  861. package/types/directives/typing.d.ts.map +0 -1
  862. package/types/index.d.ts +0 -40
  863. package/types/index.d.ts.map +0 -1
  864. package/types/plugins/devtools/colors.utils.d.ts +0 -22
  865. package/types/plugins/devtools/colors.utils.d.ts.map +0 -1
  866. package/types/plugins/devtools/devtools.plugin.d.ts.map +0 -1
  867. package/types/plugins/devtools/timeline.devtools.d.ts +0 -20
  868. package/types/plugins/devtools/timeline.devtools.d.ts.map +0 -1
  869. package/types/plugins/devtools/wiring.devtools.d.ts +0 -21
  870. package/types/plugins/devtools/wiring.devtools.d.ts.map +0 -1
  871. package/types/plugins/index.d.ts +0 -7
  872. package/types/plugins/index.d.ts.map +0 -1
  873. package/types/plugins/x-bus.d.ts.map +0 -1
  874. package/types/plugins/x-emitters.d.ts.map +0 -1
  875. package/types/plugins/x-plugin.d.ts +0 -260
  876. package/types/plugins/x-plugin.d.ts.map +0 -1
  877. package/types/plugins/x-plugin.types.d.ts.map +0 -1
  878. package/types/plugins/x-plugin.utils.d.ts.map +0 -1
  879. package/types/router.d.ts.map +0 -1
  880. package/types/services/directional-focus-navigation.service.d.ts.map +0 -1
  881. package/types/services/index.d.ts.map +0 -1
  882. package/types/services/services.types.d.ts.map +0 -1
  883. package/types/services/state-machine.service.d.ts.map +0 -1
  884. package/types/store/actions.types.d.ts.map +0 -1
  885. package/types/store/getters.types.d.ts.map +0 -1
  886. package/types/store/index.d.ts.map +0 -1
  887. package/types/store/mutations.types.d.ts.map +0 -1
  888. package/types/store/store.types.d.ts.map +0 -1
  889. package/types/store/utils/config-store.utils.d.ts.map +0 -1
  890. package/types/store/utils/fetch-and-save-action.utils.d.ts.map +0 -1
  891. package/types/store/utils/getters-proxy.utils.d.ts.map +0 -1
  892. package/types/store/utils/query.utils.d.ts.map +0 -1
  893. package/types/store/utils/status-store.utils.d.ts.map +0 -1
  894. package/types/store/utils/store-emitters.utils.d.ts.map +0 -1
  895. package/types/store/x.module.d.ts.map +0 -1
  896. package/types/tailwind/plugin-options.d.ts +0 -3
  897. package/types/tailwind/plugin-options.d.ts.map +0 -1
  898. package/types/types/animation-prop.d.ts.map +0 -1
  899. package/types/types/index.d.ts +0 -4
  900. package/types/types/index.d.ts.map +0 -1
  901. package/types/types/origin.d.ts.map +0 -1
  902. package/types/types/page-mode.d.ts +0 -2
  903. package/types/types/page-mode.d.ts.map +0 -1
  904. package/types/types/url-params.d.ts.map +0 -1
  905. package/types/utils/array.d.ts.map +0 -1
  906. package/types/utils/cancellable-promise.d.ts.map +0 -1
  907. package/types/utils/clone.d.ts.map +0 -1
  908. package/types/utils/currency-formatter.d.ts.map +0 -1
  909. package/types/utils/debounce.d.ts.map +0 -1
  910. package/types/utils/filters.d.ts.map +0 -1
  911. package/types/utils/focus.d.ts.map +0 -1
  912. package/types/utils/function.d.ts.map +0 -1
  913. package/types/utils/get-url-parameters.d.ts.map +0 -1
  914. package/types/utils/html.d.ts.map +0 -1
  915. package/types/utils/index.d.ts.map +0 -1
  916. package/types/utils/ios-utils.d.ts.map +0 -1
  917. package/types/utils/is-new-query.d.ts.map +0 -1
  918. package/types/utils/normalize.d.ts.map +0 -1
  919. package/types/utils/number.d.ts.map +0 -1
  920. package/types/utils/origin.d.ts.map +0 -1
  921. package/types/utils/sanitize.d.ts.map +0 -1
  922. package/types/utils/storage.d.ts.map +0 -1
  923. package/types/utils/string.d.ts.map +0 -1
  924. package/types/utils/throttle.d.ts.map +0 -1
  925. package/types/utils/types.d.ts.map +0 -1
  926. package/types/views/adapter.d.ts.map +0 -1
  927. package/types/views/base-config.d.ts +0 -5
  928. package/types/views/base-config.d.ts.map +0 -1
  929. package/types/views/home/types.d.ts.map +0 -1
  930. package/types/wiring/events.types.d.ts.map +0 -1
  931. package/types/wiring/index.d.ts.map +0 -1
  932. package/types/wiring/namespaced-wires.factory.d.ts.map +0 -1
  933. package/types/wiring/namespaced-wires.operators.d.ts.map +0 -1
  934. package/types/wiring/namespaced-wiring.types.d.ts.map +0 -1
  935. package/types/wiring/wires-operators.utils.d.ts.map +0 -1
  936. package/types/wiring/wires.factory.d.ts.map +0 -1
  937. package/types/wiring/wires.operators.d.ts.map +0 -1
  938. package/types/wiring/wiring.types.d.ts.map +0 -1
  939. package/types/wiring/wiring.utils.d.ts.map +0 -1
  940. package/types/x-bus/index.d.ts +0 -3
  941. package/types/x-bus/index.d.ts.map +0 -1
  942. package/types/x-bus/x-bus.d.ts +0 -154
  943. package/types/x-bus/x-bus.d.ts.map +0 -1
  944. package/types/x-bus/x-bus.spec.d.ts +0 -2
  945. package/types/x-bus/x-bus.spec.d.ts.map +0 -1
  946. package/types/x-bus/x-bus.types.d.ts.map +0 -1
  947. package/types/x-bus/x-priority-queue/index.d.ts +0 -3
  948. package/types/x-bus/x-priority-queue/index.d.ts.map +0 -1
  949. package/types/x-bus/x-priority-queue/x-priority-queue.d.ts.map +0 -1
  950. package/types/x-bus/x-priority-queue/x-priority-queue.spec.d.ts +0 -2
  951. package/types/x-bus/x-priority-queue/x-priority-queue.spec.d.ts.map +0 -1
  952. package/types/x-bus/x-priority-queue/x-priority-queue.types.d.ts.map +0 -1
  953. package/types/x-installer/api/api.types.d.ts.map +0 -1
  954. package/types/x-installer/api/base-api.d.ts.map +0 -1
  955. package/types/x-installer/api/index.d.ts.map +0 -1
  956. package/types/x-installer/index.d.ts +0 -3
  957. package/types/x-installer/index.d.ts.map +0 -1
  958. package/types/x-installer/x-installer/index.d.ts +0 -3
  959. package/types/x-installer/x-installer/index.d.ts.map +0 -1
  960. package/types/x-installer/x-installer/types.d.ts +0 -84
  961. package/types/x-installer/x-installer/types.d.ts.map +0 -1
  962. package/types/x-installer/x-installer/x-installer.d.ts +0 -217
  963. package/types/x-installer/x-installer/x-installer.d.ts.map +0 -1
  964. package/types/x-modules/ai/components/ai-carousel.vue.d.ts.map +0 -1
  965. package/types/x-modules/ai/components/ai-overview.vue.d.ts.map +0 -1
  966. package/types/x-modules/ai/components/index.d.ts.map +0 -1
  967. package/types/x-modules/ai/config.types.d.ts.map +0 -1
  968. package/types/x-modules/ai/events.types.d.ts.map +0 -1
  969. package/types/x-modules/ai/index.d.ts.map +0 -1
  970. package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +0 -1
  971. package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.d.ts.map +0 -1
  972. package/types/x-modules/ai/store/actions/index.d.ts.map +0 -1
  973. package/types/x-modules/ai/store/actions/save-origin.action.d.ts.map +0 -1
  974. package/types/x-modules/ai/store/actions/set-url-params.action.d.ts.map +0 -1
  975. package/types/x-modules/ai/store/emitters.d.ts.map +0 -1
  976. package/types/x-modules/ai/store/getters/ai-query.getter.d.ts.map +0 -1
  977. package/types/x-modules/ai/store/getters/index.d.ts.map +0 -1
  978. package/types/x-modules/ai/store/getters/suggestions-request.getter.d.ts.map +0 -1
  979. package/types/x-modules/ai/store/getters/suggestions-search-request.getter.d.ts.map +0 -1
  980. package/types/x-modules/ai/store/index.d.ts.map +0 -1
  981. package/types/x-modules/ai/store/module.d.ts.map +0 -1
  982. package/types/x-modules/ai/store/types.d.ts.map +0 -1
  983. package/types/x-modules/ai/wiring.d.ts.map +0 -1
  984. package/types/x-modules/ai/x-module.d.ts.map +0 -1
  985. package/types/x-modules/device/components/device-detector.vue.d.ts.map +0 -1
  986. package/types/x-modules/device/components/index.d.ts.map +0 -1
  987. package/types/x-modules/device/events.types.d.ts.map +0 -1
  988. package/types/x-modules/device/index.d.ts.map +0 -1
  989. package/types/x-modules/device/store/emitters.d.ts.map +0 -1
  990. package/types/x-modules/device/store/index.d.ts.map +0 -1
  991. package/types/x-modules/device/store/module.d.ts.map +0 -1
  992. package/types/x-modules/device/store/types.d.ts.map +0 -1
  993. package/types/x-modules/device/wiring.d.ts.map +0 -1
  994. package/types/x-modules/device/x-module.d.ts.map +0 -1
  995. package/types/x-modules/empathize/components/empathize.vue.d.ts.map +0 -1
  996. package/types/x-modules/empathize/components/index.d.ts.map +0 -1
  997. package/types/x-modules/empathize/config.types.d.ts.map +0 -1
  998. package/types/x-modules/empathize/events.types.d.ts.map +0 -1
  999. package/types/x-modules/empathize/index.d.ts.map +0 -1
  1000. package/types/x-modules/empathize/store/emitters.d.ts.map +0 -1
  1001. package/types/x-modules/empathize/store/index.d.ts.map +0 -1
  1002. package/types/x-modules/empathize/store/module.d.ts.map +0 -1
  1003. package/types/x-modules/empathize/store/types.d.ts.map +0 -1
  1004. package/types/x-modules/empathize/wiring.d.ts.map +0 -1
  1005. package/types/x-modules/empathize/x-module.d.ts.map +0 -1
  1006. package/types/x-modules/experience-controls/components/experience-controls.vue.d.ts.map +0 -1
  1007. package/types/x-modules/experience-controls/components/index.d.ts.map +0 -1
  1008. package/types/x-modules/experience-controls/events.types.d.ts.map +0 -1
  1009. package/types/x-modules/experience-controls/index.d.ts.map +0 -1
  1010. package/types/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts.map +0 -1
  1011. package/types/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts.map +0 -1
  1012. package/types/x-modules/experience-controls/store/actions/index.d.ts.map +0 -1
  1013. package/types/x-modules/experience-controls/store/emitters.d.ts.map +0 -1
  1014. package/types/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts.map +0 -1
  1015. package/types/x-modules/experience-controls/store/getters/index.d.ts.map +0 -1
  1016. package/types/x-modules/experience-controls/store/index.d.ts.map +0 -1
  1017. package/types/x-modules/experience-controls/store/module.d.ts.map +0 -1
  1018. package/types/x-modules/experience-controls/store/types.d.ts.map +0 -1
  1019. package/types/x-modules/experience-controls/wiring.d.ts.map +0 -1
  1020. package/types/x-modules/experience-controls/x-module.d.ts.map +0 -1
  1021. package/types/x-modules/extra-params/components/extra-params.vue.d.ts.map +0 -1
  1022. package/types/x-modules/extra-params/components/index.d.ts.map +0 -1
  1023. package/types/x-modules/extra-params/components/renderless-extra-param.vue.d.ts.map +0 -1
  1024. package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +0 -1
  1025. package/types/x-modules/extra-params/events.types.d.ts.map +0 -1
  1026. package/types/x-modules/extra-params/index.d.ts.map +0 -1
  1027. package/types/x-modules/extra-params/store/emitters.d.ts.map +0 -1
  1028. package/types/x-modules/extra-params/store/index.d.ts.map +0 -1
  1029. package/types/x-modules/extra-params/store/module.d.ts.map +0 -1
  1030. package/types/x-modules/extra-params/store/types.d.ts.map +0 -1
  1031. package/types/x-modules/extra-params/wiring.d.ts.map +0 -1
  1032. package/types/x-modules/extra-params/x-module.d.ts.map +0 -1
  1033. package/types/x-modules/facets/components/clear-filters.vue.d.ts.map +0 -1
  1034. package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts.map +0 -1
  1035. package/types/x-modules/facets/components/facets/facets.types.d.ts.map +0 -1
  1036. package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +0 -1
  1037. package/types/x-modules/facets/components/filters/all-filter.vue.d.ts.map +0 -1
  1038. package/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts.map +0 -1
  1039. package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +0 -1
  1040. package/types/x-modules/facets/components/filters/number-range-filter.vue.d.ts.map +0 -1
  1041. package/types/x-modules/facets/components/filters/renderless-filter.vue.d.ts.map +0 -1
  1042. package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +0 -1
  1043. package/types/x-modules/facets/components/index.d.ts.map +0 -1
  1044. package/types/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts.map +0 -1
  1045. package/types/x-modules/facets/components/lists/filters-list.vue.d.ts.map +0 -1
  1046. package/types/x-modules/facets/components/lists/filters-search.vue.d.ts.map +0 -1
  1047. package/types/x-modules/facets/components/lists/selected-filters-list.types.d.ts.map +0 -1
  1048. package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts.map +0 -1
  1049. package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts.map +0 -1
  1050. package/types/x-modules/facets/components/lists/sliced-filters.vue.d.ts.map +0 -1
  1051. package/types/x-modules/facets/components/lists/sorted-filters.vue.d.ts.map +0 -1
  1052. package/types/x-modules/facets/components/preselected-filters.vue.d.ts.map +0 -1
  1053. package/types/x-modules/facets/composables/index.d.ts.map +0 -1
  1054. package/types/x-modules/facets/composables/use-facets.d.ts.map +0 -1
  1055. package/types/x-modules/facets/composables/use-filters-injection.d.ts.map +0 -1
  1056. package/types/x-modules/facets/entities/add-facet-if-not-present.d.ts.map +0 -1
  1057. package/types/x-modules/facets/entities/editable-number-range-filter.entity.d.ts.map +0 -1
  1058. package/types/x-modules/facets/entities/filter-entity.factory.d.ts.map +0 -1
  1059. package/types/x-modules/facets/entities/hierarchical-filter.entity.d.ts.map +0 -1
  1060. package/types/x-modules/facets/entities/index.d.ts.map +0 -1
  1061. package/types/x-modules/facets/entities/number-range-filter.entity.d.ts.map +0 -1
  1062. package/types/x-modules/facets/entities/raw-filter.entity.d.ts.map +0 -1
  1063. package/types/x-modules/facets/entities/simple-filter.entity.d.ts.map +0 -1
  1064. package/types/x-modules/facets/entities/single-select.modifier.d.ts.map +0 -1
  1065. package/types/x-modules/facets/entities/sticky.modifier.d.ts.map +0 -1
  1066. package/types/x-modules/facets/entities/types.d.ts.map +0 -1
  1067. package/types/x-modules/facets/events.types.d.ts.map +0 -1
  1068. package/types/x-modules/facets/index.d.ts.map +0 -1
  1069. package/types/x-modules/facets/service/facets.service.d.ts.map +0 -1
  1070. package/types/x-modules/facets/service/index.d.ts.map +0 -1
  1071. package/types/x-modules/facets/service/types.d.ts.map +0 -1
  1072. package/types/x-modules/facets/store/actions/fetch-and-save-facets-response.action.d.ts.map +0 -1
  1073. package/types/x-modules/facets/store/actions/fetch-facets-response.action.d.ts.map +0 -1
  1074. package/types/x-modules/facets/store/actions/save-origin.action.d.ts.map +0 -1
  1075. package/types/x-modules/facets/store/constants.d.ts.map +0 -1
  1076. package/types/x-modules/facets/store/emitters.d.ts.map +0 -1
  1077. package/types/x-modules/facets/store/getters/facets.getter.d.ts.map +0 -1
  1078. package/types/x-modules/facets/store/getters/index.d.ts.map +0 -1
  1079. package/types/x-modules/facets/store/getters/request.getter.d.ts.map +0 -1
  1080. package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts.map +0 -1
  1081. package/types/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts.map +0 -1
  1082. package/types/x-modules/facets/store/getters/selected-filters.getter.d.ts.map +0 -1
  1083. package/types/x-modules/facets/store/index.d.ts.map +0 -1
  1084. package/types/x-modules/facets/store/module.d.ts.map +0 -1
  1085. package/types/x-modules/facets/store/types.d.ts.map +0 -1
  1086. package/types/x-modules/facets/utils.d.ts.map +0 -1
  1087. package/types/x-modules/facets/wiring.d.ts.map +0 -1
  1088. package/types/x-modules/facets/x-module.d.ts.map +0 -1
  1089. package/types/x-modules/history-queries/components/clear-history-queries.vue.d.ts.map +0 -1
  1090. package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts.map +0 -1
  1091. package/types/x-modules/history-queries/components/history-queries.vue.d.ts.map +0 -1
  1092. package/types/x-modules/history-queries/components/history-query.vue.d.ts.map +0 -1
  1093. package/types/x-modules/history-queries/components/index.d.ts.map +0 -1
  1094. package/types/x-modules/history-queries/components/my-history.vue.d.ts.map +0 -1
  1095. package/types/x-modules/history-queries/components/remove-history-query.vue.d.ts.map +0 -1
  1096. package/types/x-modules/history-queries/config.types.d.ts.map +0 -1
  1097. package/types/x-modules/history-queries/events.types.d.ts.map +0 -1
  1098. package/types/x-modules/history-queries/index.d.ts.map +0 -1
  1099. package/types/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts.map +0 -1
  1100. package/types/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts.map +0 -1
  1101. package/types/x-modules/history-queries/store/actions/refresh-session.action.d.ts.map +0 -1
  1102. package/types/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts.map +0 -1
  1103. package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts.map +0 -1
  1104. package/types/x-modules/history-queries/store/actions/set-url-params.action.d.ts.map +0 -1
  1105. package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts.map +0 -1
  1106. package/types/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts.map +0 -1
  1107. package/types/x-modules/history-queries/store/constants.d.ts.map +0 -1
  1108. package/types/x-modules/history-queries/store/emitters.d.ts.map +0 -1
  1109. package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts.map +0 -1
  1110. package/types/x-modules/history-queries/store/getters/history-queries.getter.d.ts.map +0 -1
  1111. package/types/x-modules/history-queries/store/getters/normalized-query.getter.d.ts.map +0 -1
  1112. package/types/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts.map +0 -1
  1113. package/types/x-modules/history-queries/store/getters/storage-key.getter.d.ts.map +0 -1
  1114. package/types/x-modules/history-queries/store/index.d.ts.map +0 -1
  1115. package/types/x-modules/history-queries/store/module.d.ts.map +0 -1
  1116. package/types/x-modules/history-queries/store/types.d.ts.map +0 -1
  1117. package/types/x-modules/history-queries/wiring.d.ts.map +0 -1
  1118. package/types/x-modules/history-queries/x-module.d.ts.map +0 -1
  1119. package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts.map +0 -1
  1120. package/types/x-modules/identifier-results/components/identifier-results.vue.d.ts.map +0 -1
  1121. package/types/x-modules/identifier-results/components/index.d.ts.map +0 -1
  1122. package/types/x-modules/identifier-results/config.types.d.ts.map +0 -1
  1123. package/types/x-modules/identifier-results/events.types.d.ts.map +0 -1
  1124. package/types/x-modules/identifier-results/index.d.ts.map +0 -1
  1125. package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +0 -1
  1126. package/types/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts.map +0 -1
  1127. package/types/x-modules/identifier-results/store/actions/index.d.ts.map +0 -1
  1128. package/types/x-modules/identifier-results/store/actions/save-origin.action.d.ts.map +0 -1
  1129. package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts.map +0 -1
  1130. package/types/x-modules/identifier-results/store/emitters.d.ts.map +0 -1
  1131. package/types/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts.map +0 -1
  1132. package/types/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts.map +0 -1
  1133. package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +0 -1
  1134. package/types/x-modules/identifier-results/store/index.d.ts.map +0 -1
  1135. package/types/x-modules/identifier-results/store/module.d.ts.map +0 -1
  1136. package/types/x-modules/identifier-results/store/types.d.ts.map +0 -1
  1137. package/types/x-modules/identifier-results/wiring.d.ts.map +0 -1
  1138. package/types/x-modules/identifier-results/x-module.d.ts.map +0 -1
  1139. package/types/x-modules/next-queries/components/index.d.ts.map +0 -1
  1140. package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +0 -1
  1141. package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +0 -1
  1142. package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts.map +0 -1
  1143. package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +0 -1
  1144. package/types/x-modules/next-queries/config.types.d.ts.map +0 -1
  1145. package/types/x-modules/next-queries/events.types.d.ts.map +0 -1
  1146. package/types/x-modules/next-queries/index.d.ts.map +0 -1
  1147. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts.map +0 -1
  1148. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts.map +0 -1
  1149. package/types/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts.map +0 -1
  1150. package/types/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts.map +0 -1
  1151. package/types/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts.map +0 -1
  1152. package/types/x-modules/next-queries/store/actions/set-url-params.action.d.ts.map +0 -1
  1153. package/types/x-modules/next-queries/store/emitters.d.ts.map +0 -1
  1154. package/types/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts.map +0 -1
  1155. package/types/x-modules/next-queries/store/getters/next-queries.getter.d.ts.map +0 -1
  1156. package/types/x-modules/next-queries/store/getters/request.getter.d.ts.map +0 -1
  1157. package/types/x-modules/next-queries/store/index.d.ts.map +0 -1
  1158. package/types/x-modules/next-queries/store/module.d.ts.map +0 -1
  1159. package/types/x-modules/next-queries/store/types.d.ts.map +0 -1
  1160. package/types/x-modules/next-queries/types.d.ts.map +0 -1
  1161. package/types/x-modules/next-queries/wiring.d.ts.map +0 -1
  1162. package/types/x-modules/next-queries/x-module.d.ts.map +0 -1
  1163. package/types/x-modules/popular-searches/components/index.d.ts.map +0 -1
  1164. package/types/x-modules/popular-searches/components/popular-search.vue.d.ts.map +0 -1
  1165. package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts.map +0 -1
  1166. package/types/x-modules/popular-searches/config.types.d.ts.map +0 -1
  1167. package/types/x-modules/popular-searches/events.types.d.ts.map +0 -1
  1168. package/types/x-modules/popular-searches/index.d.ts.map +0 -1
  1169. package/types/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts.map +0 -1
  1170. package/types/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts.map +0 -1
  1171. package/types/x-modules/popular-searches/store/emitters.d.ts.map +0 -1
  1172. package/types/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts.map +0 -1
  1173. package/types/x-modules/popular-searches/store/getters/request.getter.d.ts.map +0 -1
  1174. package/types/x-modules/popular-searches/store/index.d.ts.map +0 -1
  1175. package/types/x-modules/popular-searches/store/module.d.ts.map +0 -1
  1176. package/types/x-modules/popular-searches/store/types.d.ts.map +0 -1
  1177. package/types/x-modules/popular-searches/wiring.d.ts.map +0 -1
  1178. package/types/x-modules/popular-searches/x-module.d.ts.map +0 -1
  1179. package/types/x-modules/queries-preview/components/index.d.ts.map +0 -1
  1180. package/types/x-modules/queries-preview/components/query-preview-button.vue.d.ts.map +0 -1
  1181. package/types/x-modules/queries-preview/components/query-preview-list.vue.d.ts.map +0 -1
  1182. package/types/x-modules/queries-preview/components/query-preview.vue.d.ts.map +0 -1
  1183. package/types/x-modules/queries-preview/composables/index.d.ts.map +0 -1
  1184. package/types/x-modules/queries-preview/composables/use-queries-preview.composable.d.ts.map +0 -1
  1185. package/types/x-modules/queries-preview/config.types.d.ts.map +0 -1
  1186. package/types/x-modules/queries-preview/events.types.d.ts.map +0 -1
  1187. package/types/x-modules/queries-preview/index.d.ts.map +0 -1
  1188. package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +0 -1
  1189. package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts.map +0 -1
  1190. package/types/x-modules/queries-preview/store/emitters.d.ts.map +0 -1
  1191. package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts.map +0 -1
  1192. package/types/x-modules/queries-preview/store/index.d.ts.map +0 -1
  1193. package/types/x-modules/queries-preview/store/module.d.ts.map +0 -1
  1194. package/types/x-modules/queries-preview/store/types.d.ts.map +0 -1
  1195. package/types/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts.map +0 -1
  1196. package/types/x-modules/queries-preview/wiring.d.ts.map +0 -1
  1197. package/types/x-modules/queries-preview/x-module.d.ts.map +0 -1
  1198. package/types/x-modules/query-suggestions/components/index.d.ts.map +0 -1
  1199. package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +0 -1
  1200. package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts.map +0 -1
  1201. package/types/x-modules/query-suggestions/config.types.d.ts.map +0 -1
  1202. package/types/x-modules/query-suggestions/events.types.d.ts.map +0 -1
  1203. package/types/x-modules/query-suggestions/index.d.ts.map +0 -1
  1204. package/types/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts.map +0 -1
  1205. package/types/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts.map +0 -1
  1206. package/types/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts.map +0 -1
  1207. package/types/x-modules/query-suggestions/store/emitters.d.ts.map +0 -1
  1208. package/types/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts.map +0 -1
  1209. package/types/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts.map +0 -1
  1210. package/types/x-modules/query-suggestions/store/getters/request.getter.d.ts.map +0 -1
  1211. package/types/x-modules/query-suggestions/store/index.d.ts.map +0 -1
  1212. package/types/x-modules/query-suggestions/store/module.d.ts.map +0 -1
  1213. package/types/x-modules/query-suggestions/store/types.d.ts.map +0 -1
  1214. package/types/x-modules/query-suggestions/wiring.d.ts.map +0 -1
  1215. package/types/x-modules/query-suggestions/x-module.d.ts.map +0 -1
  1216. package/types/x-modules/recommendations/components/index.d.ts.map +0 -1
  1217. package/types/x-modules/recommendations/components/recommendations.vue.d.ts.map +0 -1
  1218. package/types/x-modules/recommendations/config.types.d.ts.map +0 -1
  1219. package/types/x-modules/recommendations/events.types.d.ts.map +0 -1
  1220. package/types/x-modules/recommendations/index.d.ts.map +0 -1
  1221. package/types/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts.map +0 -1
  1222. package/types/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts.map +0 -1
  1223. package/types/x-modules/recommendations/store/constants.d.ts.map +0 -1
  1224. package/types/x-modules/recommendations/store/emitters.d.ts.map +0 -1
  1225. package/types/x-modules/recommendations/store/getters/request.getter.d.ts.map +0 -1
  1226. package/types/x-modules/recommendations/store/index.d.ts.map +0 -1
  1227. package/types/x-modules/recommendations/store/module.d.ts.map +0 -1
  1228. package/types/x-modules/recommendations/store/types.d.ts.map +0 -1
  1229. package/types/x-modules/recommendations/wiring.d.ts.map +0 -1
  1230. package/types/x-modules/recommendations/x-module.d.ts.map +0 -1
  1231. package/types/x-modules/related-prompts/components/index.d.ts.map +0 -1
  1232. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +0 -1
  1233. package/types/x-modules/related-prompts/components/related-prompts-list.vue.d.ts.map +0 -1
  1234. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +0 -1
  1235. package/types/x-modules/related-prompts/events.types.d.ts.map +0 -1
  1236. package/types/x-modules/related-prompts/index.d.ts.map +0 -1
  1237. package/types/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts.map +0 -1
  1238. package/types/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts.map +0 -1
  1239. package/types/x-modules/related-prompts/store/actions/set-url-params.action.d.ts.map +0 -1
  1240. package/types/x-modules/related-prompts/store/emitters.d.ts.map +0 -1
  1241. package/types/x-modules/related-prompts/store/getters/index.d.ts.map +0 -1
  1242. package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts.map +0 -1
  1243. package/types/x-modules/related-prompts/store/getters/request.getter.d.ts.map +0 -1
  1244. package/types/x-modules/related-prompts/store/index.d.ts.map +0 -1
  1245. package/types/x-modules/related-prompts/store/module.d.ts.map +0 -1
  1246. package/types/x-modules/related-prompts/store/types.d.ts.map +0 -1
  1247. package/types/x-modules/related-prompts/types.d.ts.map +0 -1
  1248. package/types/x-modules/related-prompts/wiring.d.ts.map +0 -1
  1249. package/types/x-modules/related-prompts/x-module.d.ts.map +0 -1
  1250. package/types/x-modules/related-tags/components/index.d.ts.map +0 -1
  1251. package/types/x-modules/related-tags/components/related-tag.vue.d.ts.map +0 -1
  1252. package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +0 -1
  1253. package/types/x-modules/related-tags/config.types.d.ts.map +0 -1
  1254. package/types/x-modules/related-tags/events.types.d.ts.map +0 -1
  1255. package/types/x-modules/related-tags/index.d.ts.map +0 -1
  1256. package/types/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts.map +0 -1
  1257. package/types/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts.map +0 -1
  1258. package/types/x-modules/related-tags/store/actions/set-url-params.action.d.ts.map +0 -1
  1259. package/types/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts.map +0 -1
  1260. package/types/x-modules/related-tags/store/emitters.d.ts.map +0 -1
  1261. package/types/x-modules/related-tags/store/getters/query.getter.d.ts.map +0 -1
  1262. package/types/x-modules/related-tags/store/getters/related-tags.getter.d.ts.map +0 -1
  1263. package/types/x-modules/related-tags/store/getters/request.getter.d.ts.map +0 -1
  1264. package/types/x-modules/related-tags/store/index.d.ts.map +0 -1
  1265. package/types/x-modules/related-tags/store/module.d.ts.map +0 -1
  1266. package/types/x-modules/related-tags/store/types.d.ts.map +0 -1
  1267. package/types/x-modules/related-tags/wiring.d.ts.map +0 -1
  1268. package/types/x-modules/related-tags/x-module.d.ts.map +0 -1
  1269. package/types/x-modules/scroll/components/index.d.ts.map +0 -1
  1270. package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts.map +0 -1
  1271. package/types/x-modules/scroll/components/main-scroll.vue.d.ts.map +0 -1
  1272. package/types/x-modules/scroll/components/scroll-to-top.vue.d.ts.map +0 -1
  1273. package/types/x-modules/scroll/components/scroll.const.d.ts.map +0 -1
  1274. package/types/x-modules/scroll/components/scroll.types.d.ts.map +0 -1
  1275. package/types/x-modules/scroll/components/scroll.vue.d.ts.map +0 -1
  1276. package/types/x-modules/scroll/events.types.d.ts.map +0 -1
  1277. package/types/x-modules/scroll/index.d.ts.map +0 -1
  1278. package/types/x-modules/scroll/store/emitters.d.ts.map +0 -1
  1279. package/types/x-modules/scroll/store/index.d.ts.map +0 -1
  1280. package/types/x-modules/scroll/store/module.d.ts.map +0 -1
  1281. package/types/x-modules/scroll/store/types.d.ts.map +0 -1
  1282. package/types/x-modules/scroll/wiring.d.ts.map +0 -1
  1283. package/types/x-modules/scroll/x-module.d.ts.map +0 -1
  1284. package/types/x-modules/search/components/banner.vue.d.ts.map +0 -1
  1285. package/types/x-modules/search/components/banners-list.vue.d.ts.map +0 -1
  1286. package/types/x-modules/search/components/fallback-disclaimer.vue.d.ts.map +0 -1
  1287. package/types/x-modules/search/components/index.d.ts.map +0 -1
  1288. package/types/x-modules/search/components/partial-query-button.vue.d.ts.map +0 -1
  1289. package/types/x-modules/search/components/partial-results-list.vue.d.ts.map +0 -1
  1290. package/types/x-modules/search/components/promoted.vue.d.ts.map +0 -1
  1291. package/types/x-modules/search/components/promoteds-list.vue.d.ts.map +0 -1
  1292. package/types/x-modules/search/components/redirection.vue.d.ts.map +0 -1
  1293. package/types/x-modules/search/components/results-list.vue.d.ts.map +0 -1
  1294. package/types/x-modules/search/components/sort-dropdown.vue.d.ts.map +0 -1
  1295. package/types/x-modules/search/components/sort-list.vue.d.ts.map +0 -1
  1296. package/types/x-modules/search/components/sort-picker-list.types.d.ts.map +0 -1
  1297. package/types/x-modules/search/components/sort-picker-list.vue.d.ts.map +0 -1
  1298. package/types/x-modules/search/components/spellcheck-button.vue.d.ts.map +0 -1
  1299. package/types/x-modules/search/components/spellcheck.vue.d.ts.map +0 -1
  1300. package/types/x-modules/search/config.types.d.ts.map +0 -1
  1301. package/types/x-modules/search/events.types.d.ts.map +0 -1
  1302. package/types/x-modules/search/index.d.ts.map +0 -1
  1303. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +0 -1
  1304. package/types/x-modules/search/store/actions/fetch-search-response.action.d.ts.map +0 -1
  1305. package/types/x-modules/search/store/actions/increase-page-apending-results.action.d.ts.map +0 -1
  1306. package/types/x-modules/search/store/actions/index.d.ts.map +0 -1
  1307. package/types/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts.map +0 -1
  1308. package/types/x-modules/search/store/actions/save-origin.action.d.ts.map +0 -1
  1309. package/types/x-modules/search/store/actions/save-search-response.action.d.ts.map +0 -1
  1310. package/types/x-modules/search/store/actions/set-url-params.action.d.ts.map +0 -1
  1311. package/types/x-modules/search/store/emitters.d.ts.map +0 -1
  1312. package/types/x-modules/search/store/getters/index.d.ts.map +0 -1
  1313. package/types/x-modules/search/store/getters/query.getter.d.ts.map +0 -1
  1314. package/types/x-modules/search/store/getters/request.getter.d.ts.map +0 -1
  1315. package/types/x-modules/search/store/index.d.ts.map +0 -1
  1316. package/types/x-modules/search/store/module.d.ts.map +0 -1
  1317. package/types/x-modules/search/store/types.d.ts.map +0 -1
  1318. package/types/x-modules/search/types.d.ts.map +0 -1
  1319. package/types/x-modules/search/wiring.d.ts.map +0 -1
  1320. package/types/x-modules/search/x-module.d.ts.map +0 -1
  1321. package/types/x-modules/search-box/components/clear-search-input.vue.d.ts.map +0 -1
  1322. package/types/x-modules/search-box/components/index.d.ts.map +0 -1
  1323. package/types/x-modules/search-box/components/search-button.vue.d.ts.map +0 -1
  1324. package/types/x-modules/search-box/components/search-input-placeholder.vue.d.ts.map +0 -1
  1325. package/types/x-modules/search-box/components/search-input.vue.d.ts.map +0 -1
  1326. package/types/x-modules/search-box/events.types.d.ts.map +0 -1
  1327. package/types/x-modules/search-box/index.d.ts.map +0 -1
  1328. package/types/x-modules/search-box/store/actions/set-input-status.action.d.ts.map +0 -1
  1329. package/types/x-modules/search-box/store/actions/set-url-params.action.d.ts.map +0 -1
  1330. package/types/x-modules/search-box/store/emitters.d.ts.map +0 -1
  1331. package/types/x-modules/search-box/store/index.d.ts.map +0 -1
  1332. package/types/x-modules/search-box/store/module.d.ts.map +0 -1
  1333. package/types/x-modules/search-box/store/types.d.ts.map +0 -1
  1334. package/types/x-modules/search-box/wiring.d.ts.map +0 -1
  1335. package/types/x-modules/search-box/x-module.d.ts.map +0 -1
  1336. package/types/x-modules/semantic-queries/components/index.d.ts.map +0 -1
  1337. package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts.map +0 -1
  1338. package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts.map +0 -1
  1339. package/types/x-modules/semantic-queries/config.types.d.ts.map +0 -1
  1340. package/types/x-modules/semantic-queries/events.types.d.ts.map +0 -1
  1341. package/types/x-modules/semantic-queries/index.d.ts.map +0 -1
  1342. package/types/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts.map +0 -1
  1343. package/types/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts.map +0 -1
  1344. package/types/x-modules/semantic-queries/store/actions/index.d.ts.map +0 -1
  1345. package/types/x-modules/semantic-queries/store/emitters.d.ts.map +0 -1
  1346. package/types/x-modules/semantic-queries/store/getters/index.d.ts.map +0 -1
  1347. package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts.map +0 -1
  1348. package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts.map +0 -1
  1349. package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts.map +0 -1
  1350. package/types/x-modules/semantic-queries/store/index.d.ts.map +0 -1
  1351. package/types/x-modules/semantic-queries/store/module.d.ts.map +0 -1
  1352. package/types/x-modules/semantic-queries/store/types.d.ts.map +0 -1
  1353. package/types/x-modules/semantic-queries/wiring.d.ts.map +0 -1
  1354. package/types/x-modules/semantic-queries/x-module.d.ts.map +0 -1
  1355. package/types/x-modules/tagging/components/index.d.ts.map +0 -1
  1356. package/types/x-modules/tagging/components/tagging.vue.d.ts.map +0 -1
  1357. package/types/x-modules/tagging/config.types.d.ts.map +0 -1
  1358. package/types/x-modules/tagging/events.types.d.ts.map +0 -1
  1359. package/types/x-modules/tagging/index.d.ts.map +0 -1
  1360. package/types/x-modules/tagging/service/external-tagging.service.d.ts.map +0 -1
  1361. package/types/x-modules/tagging/service/index.d.ts.map +0 -1
  1362. package/types/x-modules/tagging/service/types.d.ts.map +0 -1
  1363. package/types/x-modules/tagging/store/actions/index.d.ts.map +0 -1
  1364. package/types/x-modules/tagging/store/actions/track.action.d.ts.map +0 -1
  1365. package/types/x-modules/tagging/store/emitters.d.ts.map +0 -1
  1366. package/types/x-modules/tagging/store/index.d.ts.map +0 -1
  1367. package/types/x-modules/tagging/store/module.d.ts.map +0 -1
  1368. package/types/x-modules/tagging/store/types.d.ts.map +0 -1
  1369. package/types/x-modules/tagging/wiring.d.ts.map +0 -1
  1370. package/types/x-modules/tagging/x-module.d.ts.map +0 -1
  1371. package/types/x-modules/url/components/index.d.ts.map +0 -1
  1372. package/types/x-modules/url/components/url-handler.vue.d.ts.map +0 -1
  1373. package/types/x-modules/url/events.types.d.ts.map +0 -1
  1374. package/types/x-modules/url/index.d.ts.map +0 -1
  1375. package/types/x-modules/url/store/emitters.d.ts.map +0 -1
  1376. package/types/x-modules/url/store/getters/url-params.getter.d.ts.map +0 -1
  1377. package/types/x-modules/url/store/index.d.ts.map +0 -1
  1378. package/types/x-modules/url/store/initial-state.d.ts.map +0 -1
  1379. package/types/x-modules/url/store/module.d.ts.map +0 -1
  1380. package/types/x-modules/url/store/mutations/set-params.mutation.d.ts.map +0 -1
  1381. package/types/x-modules/url/store/types.d.ts.map +0 -1
  1382. package/types/x-modules/url/wiring.d.ts.map +0 -1
  1383. package/types/x-modules/url/x-module.d.ts.map +0 -1
  1384. package/types/x-modules/x-modules.types.d.ts.map +0 -1
  1385. /package/js/x-bus/{x-priority-queue/x-priority-queue.js → x-priority-queue.js} +0 -0
  1386. /package/types/{plugins → demo/plugins}/devtools/devtools.plugin.d.ts +0 -0
  1387. /package/types/{router.d.ts → demo/router.d.ts} +0 -0
  1388. /package/types/{views → demo/views}/adapter.d.ts +0 -0
  1389. /package/types/{views → demo/views}/home/types.d.ts +0 -0
  1390. /package/types/{components → src/components}/animations/animate-clip-path/animate-clip-path.factory.d.ts +0 -0
  1391. /package/types/{components → src/components}/animations/animate-scale/animate-scale.factory.d.ts +0 -0
  1392. /package/types/{components → src/components}/animations/animate-translate/animate-translate.factory.d.ts +0 -0
  1393. /package/types/{components → src/components}/animations/animate-width.vue.d.ts +0 -0
  1394. /package/types/{components → src/components}/animations/change-height.vue.d.ts +0 -0
  1395. /package/types/{components → src/components}/animations/collapse-height.vue.d.ts +0 -0
  1396. /package/types/{components → src/components}/animations/collapse-width.vue.d.ts +0 -0
  1397. /package/types/{components → src/components}/animations/create-directional-animation-factory.d.ts +0 -0
  1398. /package/types/{components → src/components}/animations/cross-fade.vue.d.ts +0 -0
  1399. /package/types/{components → src/components}/animations/fade-and-slide.vue.d.ts +0 -0
  1400. /package/types/{components → src/components}/animations/fade.vue.d.ts +0 -0
  1401. /package/types/{components → src/components}/animations/index.d.ts +0 -0
  1402. /package/types/{components → src/components}/animations/no-animation.vue.d.ts +0 -0
  1403. /package/types/{components → src/components}/animations/staggered-fade-and-slide.vue.d.ts +0 -0
  1404. /package/types/{components → src/components}/animations/use-collapse-animation.d.ts +0 -0
  1405. /package/types/{components → src/components}/animations/use-disable-animation.d.ts +0 -0
  1406. /package/types/{components → src/components}/auto-progress-bar.vue.d.ts +0 -0
  1407. /package/types/{components → src/components}/base-dropdown.vue.d.ts +0 -0
  1408. /package/types/{components → src/components}/base-event-button.vue.d.ts +0 -0
  1409. /package/types/{components → src/components}/base-grid.types.d.ts +0 -0
  1410. /package/types/{components → src/components}/base-grid.vue.d.ts +0 -0
  1411. /package/types/{components → src/components}/base-keyboard-navigation.vue.d.ts +0 -0
  1412. /package/types/{components → src/components}/base-rating.vue.d.ts +0 -0
  1413. /package/types/{components → src/components}/base-slider.vue.d.ts +0 -0
  1414. /package/types/{components → src/components}/base-switch.vue.d.ts +0 -0
  1415. /package/types/{components → src/components}/base-teleport.vue.d.ts +0 -0
  1416. /package/types/{components → src/components}/base-variable-column-grid.vue.d.ts +0 -0
  1417. /package/types/{components → src/components}/column-picker/base-column-picker-dropdown.vue.d.ts +0 -0
  1418. /package/types/{components → src/components}/column-picker/base-column-picker-list.types.d.ts +0 -0
  1419. /package/types/{components → src/components}/column-picker/base-column-picker-list.vue.d.ts +0 -0
  1420. /package/types/{components → src/components}/column-picker/index.d.ts +0 -0
  1421. /package/types/{components → src/components}/currency/base-currency.vue.d.ts +0 -0
  1422. /package/types/{components → src/components}/currency/index.d.ts +0 -0
  1423. /package/types/{components → src/components}/decorators/injection.consts.d.ts +0 -0
  1424. /package/types/{components → src/components}/display-click-provider.vue.d.ts +0 -0
  1425. /package/types/{components → src/components}/display-emitter.vue.d.ts +0 -0
  1426. /package/types/{components → src/components}/filters/index.d.ts +0 -0
  1427. /package/types/{components → src/components}/filters/labels/base-price-filter-label.vue.d.ts +0 -0
  1428. /package/types/{components → src/components}/filters/labels/base-rating-filter-label.vue.d.ts +0 -0
  1429. /package/types/{components → src/components}/global-x-bus.vue.d.ts +0 -0
  1430. /package/types/{components → src/components}/highlight.vue.d.ts +0 -0
  1431. /package/types/{components → src/components}/icons/index.d.ts +0 -0
  1432. /package/types/{components → src/components}/index.d.ts +0 -0
  1433. /package/types/{components → src/components}/items-list.vue.d.ts +0 -0
  1434. /package/types/{components → src/components}/layouts/fixed-header-and-asides-layout.vue.d.ts +0 -0
  1435. /package/types/{components → src/components}/layouts/index.d.ts +0 -0
  1436. /package/types/{components → src/components}/layouts/multi-column-max-width-layout.vue.d.ts +0 -0
  1437. /package/types/{components → src/components}/layouts/single-column-layout.vue.d.ts +0 -0
  1438. /package/types/{components → src/components}/location-provider.vue.d.ts +0 -0
  1439. /package/types/{components → src/components}/modals/base-events-modal-close.vue.d.ts +0 -0
  1440. /package/types/{components → src/components}/modals/base-events-modal-open.vue.d.ts +0 -0
  1441. /package/types/{components → src/components}/modals/base-events-modal.vue.d.ts +0 -0
  1442. /package/types/{components → src/components}/modals/base-id-modal-close.vue.d.ts +0 -0
  1443. /package/types/{components → src/components}/modals/base-id-modal-open.vue.d.ts +0 -0
  1444. /package/types/{components → src/components}/modals/base-id-modal.vue.d.ts +0 -0
  1445. /package/types/{components → src/components}/modals/base-modal.vue.d.ts +0 -0
  1446. /package/types/{components → src/components}/modals/close-main-modal.vue.d.ts +0 -0
  1447. /package/types/{components → src/components}/modals/index.d.ts +0 -0
  1448. /package/types/{components → src/components}/modals/main-modal.vue.d.ts +0 -0
  1449. /package/types/{components → src/components}/modals/open-main-modal.vue.d.ts +0 -0
  1450. /package/types/{components → src/components}/page-loader-button.vue.d.ts +0 -0
  1451. /package/types/{components → src/components}/page-selector.vue.d.ts +0 -0
  1452. /package/types/{components → src/components}/panels/base-header-toggle-panel.vue.d.ts +0 -0
  1453. /package/types/{components → src/components}/panels/base-id-toggle-panel-button.vue.d.ts +0 -0
  1454. /package/types/{components → src/components}/panels/base-id-toggle-panel.vue.d.ts +0 -0
  1455. /package/types/{components → src/components}/panels/base-tabs-panel.vue.d.ts +0 -0
  1456. /package/types/{components → src/components}/panels/base-toggle-panel.vue.d.ts +0 -0
  1457. /package/types/{components → src/components}/panels/index.d.ts +0 -0
  1458. /package/types/{components → src/components}/result/base-result-add-to-cart.vue.d.ts +0 -0
  1459. /package/types/{components → src/components}/result/base-result-current-price.vue.d.ts +0 -0
  1460. /package/types/{components → src/components}/result/base-result-image.vue.d.ts +0 -0
  1461. /package/types/{components → src/components}/result/base-result-link.vue.d.ts +0 -0
  1462. /package/types/{components → src/components}/result/base-result-previous-price.vue.d.ts +0 -0
  1463. /package/types/{components → src/components}/result/base-result-rating.vue.d.ts +0 -0
  1464. /package/types/{components → src/components}/result/index.d.ts +0 -0
  1465. /package/types/{components → src/components}/result/result-variant-selector.vue.d.ts +0 -0
  1466. /package/types/{components → src/components}/result/result-variants-provider.vue.d.ts +0 -0
  1467. /package/types/{components → src/components}/scroll/base-scroll.vue.d.ts +0 -0
  1468. /package/types/{components → src/components}/scroll/index.d.ts +0 -0
  1469. /package/types/{components → src/components}/scroll/scroll.types.d.ts +0 -0
  1470. /package/types/{components → src/components}/scroll/use-scroll.d.ts +0 -0
  1471. /package/types/{components → src/components}/sliding-panel.vue.d.ts +0 -0
  1472. /package/types/{components → src/components}/snippet-callbacks.vue.d.ts +0 -0
  1473. /package/types/{components → src/components}/suggestions/base-suggestion.vue.d.ts +0 -0
  1474. /package/types/{components → src/components}/suggestions/base-suggestions.vue.d.ts +0 -0
  1475. /package/types/{components → src/components}/suggestions/index.d.ts +0 -0
  1476. /package/types/{components → src/components}/x-component.utils.d.ts +0 -0
  1477. /package/types/{composables → src/composables}/create-use-device.d.ts +0 -0
  1478. /package/types/{composables → src/composables}/index.d.ts +0 -0
  1479. /package/types/{composables → src/composables}/use-$x.d.ts +0 -0
  1480. /package/types/{composables → src/composables}/use-alias-api.d.ts +0 -0
  1481. /package/types/{composables → src/composables}/use-debounce.d.ts +0 -0
  1482. /package/types/{composables → src/composables}/use-getter.d.ts +0 -0
  1483. /package/types/{composables → src/composables}/use-on-display.d.ts +0 -0
  1484. /package/types/{composables → src/composables}/use-state.d.ts +0 -0
  1485. /package/types/{composables → src/composables}/use-x-bus.d.ts +0 -0
  1486. /package/types/{directives → src/directives}/index.d.ts +0 -0
  1487. /package/types/{directives → src/directives}/infinite-scroll.d.ts +0 -0
  1488. /package/types/{directives → src/directives}/typing.d.ts +0 -0
  1489. /package/types/{plugins → src/plugins}/x-bus.d.ts +0 -0
  1490. /package/types/{plugins → src/plugins}/x-emitters.d.ts +0 -0
  1491. /package/types/{plugins → src/plugins}/x-plugin.types.d.ts +0 -0
  1492. /package/types/{plugins → src/plugins}/x-plugin.utils.d.ts +0 -0
  1493. /package/types/{services → src/services}/directional-focus-navigation.service.d.ts +0 -0
  1494. /package/types/{services → src/services}/index.d.ts +0 -0
  1495. /package/types/{services → src/services}/services.types.d.ts +0 -0
  1496. /package/types/{services → src/services}/state-machine.service.d.ts +0 -0
  1497. /package/types/{store → src/store}/actions.types.d.ts +0 -0
  1498. /package/types/{store → src/store}/getters.types.d.ts +0 -0
  1499. /package/types/{store → src/store}/index.d.ts +0 -0
  1500. /package/types/{store → src/store}/mutations.types.d.ts +0 -0
  1501. /package/types/{store → src/store}/store.types.d.ts +0 -0
  1502. /package/types/{store → src/store}/utils/config-store.utils.d.ts +0 -0
  1503. /package/types/{store → src/store}/utils/fetch-and-save-action.utils.d.ts +0 -0
  1504. /package/types/{store → src/store}/utils/getters-proxy.utils.d.ts +0 -0
  1505. /package/types/{store → src/store}/utils/query.utils.d.ts +0 -0
  1506. /package/types/{store → src/store}/utils/status-store.utils.d.ts +0 -0
  1507. /package/types/{store → src/store}/utils/store-emitters.utils.d.ts +0 -0
  1508. /package/types/{store → src/store}/x.module.d.ts +0 -0
  1509. /package/types/{types → src/types}/animation-prop.d.ts +0 -0
  1510. /package/types/{types → src/types}/origin.d.ts +0 -0
  1511. /package/types/{types → src/types}/url-params.d.ts +0 -0
  1512. /package/types/{utils → src/utils}/array.d.ts +0 -0
  1513. /package/types/{utils → src/utils}/cancellable-promise.d.ts +0 -0
  1514. /package/types/{utils → src/utils}/clone.d.ts +0 -0
  1515. /package/types/{utils → src/utils}/currency-formatter.d.ts +0 -0
  1516. /package/types/{utils → src/utils}/debounce.d.ts +0 -0
  1517. /package/types/{utils → src/utils}/filters.d.ts +0 -0
  1518. /package/types/{utils → src/utils}/focus.d.ts +0 -0
  1519. /package/types/{utils → src/utils}/function.d.ts +0 -0
  1520. /package/types/{utils → src/utils}/get-url-parameters.d.ts +0 -0
  1521. /package/types/{utils → src/utils}/html.d.ts +0 -0
  1522. /package/types/{utils → src/utils}/index.d.ts +0 -0
  1523. /package/types/{utils → src/utils}/ios-utils.d.ts +0 -0
  1524. /package/types/{utils → src/utils}/is-new-query.d.ts +0 -0
  1525. /package/types/{utils → src/utils}/normalize.d.ts +0 -0
  1526. /package/types/{utils → src/utils}/number.d.ts +0 -0
  1527. /package/types/{utils → src/utils}/origin.d.ts +0 -0
  1528. /package/types/{utils → src/utils}/sanitize.d.ts +0 -0
  1529. /package/types/{utils → src/utils}/storage.d.ts +0 -0
  1530. /package/types/{utils → src/utils}/string.d.ts +0 -0
  1531. /package/types/{utils → src/utils}/throttle.d.ts +0 -0
  1532. /package/types/{utils → src/utils}/types.d.ts +0 -0
  1533. /package/types/{wiring → src/wiring}/events.types.d.ts +0 -0
  1534. /package/types/{wiring → src/wiring}/index.d.ts +0 -0
  1535. /package/types/{wiring → src/wiring}/namespaced-wires.factory.d.ts +0 -0
  1536. /package/types/{wiring → src/wiring}/namespaced-wires.operators.d.ts +0 -0
  1537. /package/types/{wiring → src/wiring}/namespaced-wiring.types.d.ts +0 -0
  1538. /package/types/{wiring → src/wiring}/wires-operators.utils.d.ts +0 -0
  1539. /package/types/{wiring → src/wiring}/wires.factory.d.ts +0 -0
  1540. /package/types/{wiring → src/wiring}/wires.operators.d.ts +0 -0
  1541. /package/types/{wiring → src/wiring}/wiring.types.d.ts +0 -0
  1542. /package/types/{wiring → src/wiring}/wiring.utils.d.ts +0 -0
  1543. /package/types/{x-bus → src/x-bus}/x-bus.types.d.ts +0 -0
  1544. /package/types/{x-bus/x-priority-queue → src/x-bus}/x-priority-queue.d.ts +0 -0
  1545. /package/types/{x-bus/x-priority-queue → src/x-bus}/x-priority-queue.types.d.ts +0 -0
  1546. /package/types/{x-installer → src/x-installer}/api/api.types.d.ts +0 -0
  1547. /package/types/{x-installer → src/x-installer}/api/base-api.d.ts +0 -0
  1548. /package/types/{x-installer → src/x-installer}/api/index.d.ts +0 -0
  1549. /package/types/{x-modules → src/x-modules}/ai/components/ai-carousel.vue.d.ts +0 -0
  1550. /package/types/{x-modules → src/x-modules}/ai/components/ai-overview.vue.d.ts +0 -0
  1551. /package/types/{x-modules → src/x-modules}/ai/components/index.d.ts +0 -0
  1552. /package/types/{x-modules → src/x-modules}/ai/config.types.d.ts +0 -0
  1553. /package/types/{x-modules → src/x-modules}/ai/events.types.d.ts +0 -0
  1554. /package/types/{x-modules → src/x-modules}/ai/index.d.ts +0 -0
  1555. /package/types/{x-modules → src/x-modules}/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts +0 -0
  1556. /package/types/{x-modules → src/x-modules}/ai/store/actions/fetch-and-save-ai-suggestions.action.d.ts +0 -0
  1557. /package/types/{x-modules → src/x-modules}/ai/store/actions/index.d.ts +0 -0
  1558. /package/types/{x-modules → src/x-modules}/ai/store/actions/save-origin.action.d.ts +0 -0
  1559. /package/types/{x-modules → src/x-modules}/ai/store/actions/set-url-params.action.d.ts +0 -0
  1560. /package/types/{x-modules → src/x-modules}/ai/store/emitters.d.ts +0 -0
  1561. /package/types/{x-modules → src/x-modules}/ai/store/getters/ai-query.getter.d.ts +0 -0
  1562. /package/types/{x-modules → src/x-modules}/ai/store/getters/index.d.ts +0 -0
  1563. /package/types/{x-modules → src/x-modules}/ai/store/getters/suggestions-request.getter.d.ts +0 -0
  1564. /package/types/{x-modules → src/x-modules}/ai/store/getters/suggestions-search-request.getter.d.ts +0 -0
  1565. /package/types/{x-modules → src/x-modules}/ai/store/index.d.ts +0 -0
  1566. /package/types/{x-modules → src/x-modules}/ai/store/module.d.ts +0 -0
  1567. /package/types/{x-modules → src/x-modules}/ai/store/types.d.ts +0 -0
  1568. /package/types/{x-modules → src/x-modules}/ai/wiring.d.ts +0 -0
  1569. /package/types/{x-modules → src/x-modules}/ai/x-module.d.ts +0 -0
  1570. /package/types/{x-modules → src/x-modules}/device/components/device-detector.vue.d.ts +0 -0
  1571. /package/types/{x-modules → src/x-modules}/device/components/index.d.ts +0 -0
  1572. /package/types/{x-modules → src/x-modules}/device/events.types.d.ts +0 -0
  1573. /package/types/{x-modules → src/x-modules}/device/index.d.ts +0 -0
  1574. /package/types/{x-modules → src/x-modules}/device/store/emitters.d.ts +0 -0
  1575. /package/types/{x-modules → src/x-modules}/device/store/index.d.ts +0 -0
  1576. /package/types/{x-modules → src/x-modules}/device/store/module.d.ts +0 -0
  1577. /package/types/{x-modules → src/x-modules}/device/store/types.d.ts +0 -0
  1578. /package/types/{x-modules → src/x-modules}/device/wiring.d.ts +0 -0
  1579. /package/types/{x-modules → src/x-modules}/device/x-module.d.ts +0 -0
  1580. /package/types/{x-modules → src/x-modules}/empathize/components/empathize.vue.d.ts +0 -0
  1581. /package/types/{x-modules → src/x-modules}/empathize/components/index.d.ts +0 -0
  1582. /package/types/{x-modules → src/x-modules}/empathize/config.types.d.ts +0 -0
  1583. /package/types/{x-modules → src/x-modules}/empathize/events.types.d.ts +0 -0
  1584. /package/types/{x-modules → src/x-modules}/empathize/index.d.ts +0 -0
  1585. /package/types/{x-modules → src/x-modules}/empathize/store/emitters.d.ts +0 -0
  1586. /package/types/{x-modules → src/x-modules}/empathize/store/index.d.ts +0 -0
  1587. /package/types/{x-modules → src/x-modules}/empathize/store/module.d.ts +0 -0
  1588. /package/types/{x-modules → src/x-modules}/empathize/store/types.d.ts +0 -0
  1589. /package/types/{x-modules → src/x-modules}/empathize/wiring.d.ts +0 -0
  1590. /package/types/{x-modules → src/x-modules}/empathize/x-module.d.ts +0 -0
  1591. /package/types/{x-modules → src/x-modules}/experience-controls/components/experience-controls.vue.d.ts +0 -0
  1592. /package/types/{x-modules → src/x-modules}/experience-controls/components/index.d.ts +0 -0
  1593. /package/types/{x-modules → src/x-modules}/experience-controls/events.types.d.ts +0 -0
  1594. /package/types/{x-modules → src/x-modules}/experience-controls/index.d.ts +0 -0
  1595. /package/types/{x-modules → src/x-modules}/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts +0 -0
  1596. /package/types/{x-modules → src/x-modules}/experience-controls/store/actions/fetch-experience-controls.action.d.ts +0 -0
  1597. /package/types/{x-modules → src/x-modules}/experience-controls/store/actions/index.d.ts +0 -0
  1598. /package/types/{x-modules → src/x-modules}/experience-controls/store/emitters.d.ts +0 -0
  1599. /package/types/{x-modules → src/x-modules}/experience-controls/store/getters/experience-controls-results-request.getter.d.ts +0 -0
  1600. /package/types/{x-modules → src/x-modules}/experience-controls/store/getters/index.d.ts +0 -0
  1601. /package/types/{x-modules → src/x-modules}/experience-controls/store/index.d.ts +0 -0
  1602. /package/types/{x-modules → src/x-modules}/experience-controls/store/module.d.ts +0 -0
  1603. /package/types/{x-modules → src/x-modules}/experience-controls/store/types.d.ts +0 -0
  1604. /package/types/{x-modules → src/x-modules}/experience-controls/wiring.d.ts +0 -0
  1605. /package/types/{x-modules → src/x-modules}/experience-controls/x-module.d.ts +0 -0
  1606. /package/types/{x-modules → src/x-modules}/extra-params/components/extra-params.vue.d.ts +0 -0
  1607. /package/types/{x-modules → src/x-modules}/extra-params/components/index.d.ts +0 -0
  1608. /package/types/{x-modules → src/x-modules}/extra-params/components/renderless-extra-param.vue.d.ts +0 -0
  1609. /package/types/{x-modules → src/x-modules}/extra-params/components/snippet-config-extra-params.vue.d.ts +0 -0
  1610. /package/types/{x-modules → src/x-modules}/extra-params/events.types.d.ts +0 -0
  1611. /package/types/{x-modules → src/x-modules}/extra-params/index.d.ts +0 -0
  1612. /package/types/{x-modules → src/x-modules}/extra-params/store/emitters.d.ts +0 -0
  1613. /package/types/{x-modules → src/x-modules}/extra-params/store/index.d.ts +0 -0
  1614. /package/types/{x-modules → src/x-modules}/extra-params/store/module.d.ts +0 -0
  1615. /package/types/{x-modules → src/x-modules}/extra-params/store/types.d.ts +0 -0
  1616. /package/types/{x-modules → src/x-modules}/extra-params/wiring.d.ts +0 -0
  1617. /package/types/{x-modules → src/x-modules}/extra-params/x-module.d.ts +0 -0
  1618. /package/types/{x-modules → src/x-modules}/facets/components/clear-filters.vue.d.ts +0 -0
  1619. /package/types/{x-modules → src/x-modules}/facets/components/facets/facets-provider.vue.d.ts +0 -0
  1620. /package/types/{x-modules → src/x-modules}/facets/components/facets/facets.types.d.ts +0 -0
  1621. /package/types/{x-modules → src/x-modules}/facets/components/facets/facets.vue.d.ts +0 -0
  1622. /package/types/{x-modules → src/x-modules}/facets/components/filters/all-filter.vue.d.ts +0 -0
  1623. /package/types/{x-modules → src/x-modules}/facets/components/filters/editable-number-range-filter.vue.d.ts +0 -0
  1624. /package/types/{x-modules → src/x-modules}/facets/components/filters/hierarchical-filter.vue.d.ts +0 -0
  1625. /package/types/{x-modules → src/x-modules}/facets/components/filters/number-range-filter.vue.d.ts +0 -0
  1626. /package/types/{x-modules → src/x-modules}/facets/components/filters/renderless-filter.vue.d.ts +0 -0
  1627. /package/types/{x-modules → src/x-modules}/facets/components/filters/simple-filter.vue.d.ts +0 -0
  1628. /package/types/{x-modules → src/x-modules}/facets/components/index.d.ts +0 -0
  1629. /package/types/{x-modules → src/x-modules}/facets/components/lists/exclude-filters-with-no-results.vue.d.ts +0 -0
  1630. /package/types/{x-modules → src/x-modules}/facets/components/lists/filters-list.vue.d.ts +0 -0
  1631. /package/types/{x-modules → src/x-modules}/facets/components/lists/filters-search.vue.d.ts +0 -0
  1632. /package/types/{x-modules → src/x-modules}/facets/components/lists/selected-filters-list.types.d.ts +0 -0
  1633. /package/types/{x-modules → src/x-modules}/facets/components/lists/selected-filters-list.vue.d.ts +0 -0
  1634. /package/types/{x-modules → src/x-modules}/facets/components/lists/selected-filters.vue.d.ts +0 -0
  1635. /package/types/{x-modules → src/x-modules}/facets/components/lists/sliced-filters.vue.d.ts +0 -0
  1636. /package/types/{x-modules → src/x-modules}/facets/components/lists/sorted-filters.vue.d.ts +0 -0
  1637. /package/types/{x-modules → src/x-modules}/facets/components/preselected-filters.vue.d.ts +0 -0
  1638. /package/types/{x-modules → src/x-modules}/facets/composables/index.d.ts +0 -0
  1639. /package/types/{x-modules → src/x-modules}/facets/composables/use-facets.d.ts +0 -0
  1640. /package/types/{x-modules → src/x-modules}/facets/composables/use-filters-injection.d.ts +0 -0
  1641. /package/types/{x-modules → src/x-modules}/facets/entities/add-facet-if-not-present.d.ts +0 -0
  1642. /package/types/{x-modules → src/x-modules}/facets/entities/editable-number-range-filter.entity.d.ts +0 -0
  1643. /package/types/{x-modules → src/x-modules}/facets/entities/filter-entity.factory.d.ts +0 -0
  1644. /package/types/{x-modules → src/x-modules}/facets/entities/hierarchical-filter.entity.d.ts +0 -0
  1645. /package/types/{x-modules → src/x-modules}/facets/entities/index.d.ts +0 -0
  1646. /package/types/{x-modules → src/x-modules}/facets/entities/number-range-filter.entity.d.ts +0 -0
  1647. /package/types/{x-modules → src/x-modules}/facets/entities/raw-filter.entity.d.ts +0 -0
  1648. /package/types/{x-modules → src/x-modules}/facets/entities/simple-filter.entity.d.ts +0 -0
  1649. /package/types/{x-modules → src/x-modules}/facets/entities/single-select.modifier.d.ts +0 -0
  1650. /package/types/{x-modules → src/x-modules}/facets/entities/sticky.modifier.d.ts +0 -0
  1651. /package/types/{x-modules → src/x-modules}/facets/entities/types.d.ts +0 -0
  1652. /package/types/{x-modules → src/x-modules}/facets/events.types.d.ts +0 -0
  1653. /package/types/{x-modules → src/x-modules}/facets/index.d.ts +0 -0
  1654. /package/types/{x-modules → src/x-modules}/facets/service/facets.service.d.ts +0 -0
  1655. /package/types/{x-modules → src/x-modules}/facets/service/index.d.ts +0 -0
  1656. /package/types/{x-modules → src/x-modules}/facets/service/types.d.ts +0 -0
  1657. /package/types/{x-modules → src/x-modules}/facets/store/actions/fetch-and-save-facets-response.action.d.ts +0 -0
  1658. /package/types/{x-modules → src/x-modules}/facets/store/actions/fetch-facets-response.action.d.ts +0 -0
  1659. /package/types/{x-modules → src/x-modules}/facets/store/actions/save-origin.action.d.ts +0 -0
  1660. /package/types/{x-modules → src/x-modules}/facets/store/constants.d.ts +0 -0
  1661. /package/types/{x-modules → src/x-modules}/facets/store/emitters.d.ts +0 -0
  1662. /package/types/{x-modules → src/x-modules}/facets/store/getters/facets.getter.d.ts +0 -0
  1663. /package/types/{x-modules → src/x-modules}/facets/store/getters/index.d.ts +0 -0
  1664. /package/types/{x-modules → src/x-modules}/facets/store/getters/request.getter.d.ts +0 -0
  1665. /package/types/{x-modules → src/x-modules}/facets/store/getters/selected-filters-by-facet.getter.d.ts +0 -0
  1666. /package/types/{x-modules → src/x-modules}/facets/store/getters/selected-filters-for-request.getter.d.ts +0 -0
  1667. /package/types/{x-modules → src/x-modules}/facets/store/getters/selected-filters.getter.d.ts +0 -0
  1668. /package/types/{x-modules → src/x-modules}/facets/store/index.d.ts +0 -0
  1669. /package/types/{x-modules → src/x-modules}/facets/store/module.d.ts +0 -0
  1670. /package/types/{x-modules → src/x-modules}/facets/store/types.d.ts +0 -0
  1671. /package/types/{x-modules → src/x-modules}/facets/utils.d.ts +0 -0
  1672. /package/types/{x-modules → src/x-modules}/facets/wiring.d.ts +0 -0
  1673. /package/types/{x-modules → src/x-modules}/facets/x-module.d.ts +0 -0
  1674. /package/types/{x-modules → src/x-modules}/history-queries/components/clear-history-queries.vue.d.ts +0 -0
  1675. /package/types/{x-modules → src/x-modules}/history-queries/components/history-queries-switch.vue.d.ts +0 -0
  1676. /package/types/{x-modules → src/x-modules}/history-queries/components/history-queries.vue.d.ts +0 -0
  1677. /package/types/{x-modules → src/x-modules}/history-queries/components/history-query.vue.d.ts +0 -0
  1678. /package/types/{x-modules → src/x-modules}/history-queries/components/index.d.ts +0 -0
  1679. /package/types/{x-modules → src/x-modules}/history-queries/components/my-history.vue.d.ts +0 -0
  1680. /package/types/{x-modules → src/x-modules}/history-queries/components/remove-history-query.vue.d.ts +0 -0
  1681. /package/types/{x-modules → src/x-modules}/history-queries/config.types.d.ts +0 -0
  1682. /package/types/{x-modules → src/x-modules}/history-queries/events.types.d.ts +0 -0
  1683. /package/types/{x-modules → src/x-modules}/history-queries/index.d.ts +0 -0
  1684. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/add-query-to-history.action.d.ts +0 -0
  1685. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts +0 -0
  1686. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/refresh-session.action.d.ts +0 -0
  1687. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/remove-query-from-history.action.d.ts +0 -0
  1688. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/set-history-queries.action.d.ts +0 -0
  1689. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/set-url-params.action.d.ts +0 -0
  1690. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/toggle-history-queries.action.d.ts +0 -0
  1691. /package/types/{x-modules → src/x-modules}/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts +0 -0
  1692. /package/types/{x-modules → src/x-modules}/history-queries/store/constants.d.ts +0 -0
  1693. /package/types/{x-modules → src/x-modules}/history-queries/store/emitters.d.ts +0 -0
  1694. /package/types/{x-modules → src/x-modules}/history-queries/store/getters/history-queries-with-results.getter.d.ts +0 -0
  1695. /package/types/{x-modules → src/x-modules}/history-queries/store/getters/history-queries.getter.d.ts +0 -0
  1696. /package/types/{x-modules → src/x-modules}/history-queries/store/getters/normalized-query.getter.d.ts +0 -0
  1697. /package/types/{x-modules → src/x-modules}/history-queries/store/getters/session-history-queries.getter.d.ts +0 -0
  1698. /package/types/{x-modules → src/x-modules}/history-queries/store/getters/storage-key.getter.d.ts +0 -0
  1699. /package/types/{x-modules → src/x-modules}/history-queries/store/index.d.ts +0 -0
  1700. /package/types/{x-modules → src/x-modules}/history-queries/store/module.d.ts +0 -0
  1701. /package/types/{x-modules → src/x-modules}/history-queries/store/types.d.ts +0 -0
  1702. /package/types/{x-modules → src/x-modules}/history-queries/wiring.d.ts +0 -0
  1703. /package/types/{x-modules → src/x-modules}/history-queries/x-module.d.ts +0 -0
  1704. /package/types/{x-modules → src/x-modules}/identifier-results/components/identifier-result.vue.d.ts +0 -0
  1705. /package/types/{x-modules → src/x-modules}/identifier-results/components/identifier-results.vue.d.ts +0 -0
  1706. /package/types/{x-modules → src/x-modules}/identifier-results/components/index.d.ts +0 -0
  1707. /package/types/{x-modules → src/x-modules}/identifier-results/config.types.d.ts +0 -0
  1708. /package/types/{x-modules → src/x-modules}/identifier-results/events.types.d.ts +0 -0
  1709. /package/types/{x-modules → src/x-modules}/identifier-results/index.d.ts +0 -0
  1710. /package/types/{x-modules → src/x-modules}/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts +0 -0
  1711. /package/types/{x-modules → src/x-modules}/identifier-results/store/actions/fetch-identifier-results.action.d.ts +0 -0
  1712. /package/types/{x-modules → src/x-modules}/identifier-results/store/actions/index.d.ts +0 -0
  1713. /package/types/{x-modules → src/x-modules}/identifier-results/store/actions/save-origin.action.d.ts +0 -0
  1714. /package/types/{x-modules → src/x-modules}/identifier-results/store/actions/save-query.action.d.ts +0 -0
  1715. /package/types/{x-modules → src/x-modules}/identifier-results/store/emitters.d.ts +0 -0
  1716. /package/types/{x-modules → src/x-modules}/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts +0 -0
  1717. /package/types/{x-modules → src/x-modules}/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts +0 -0
  1718. /package/types/{x-modules → src/x-modules}/identifier-results/store/getters/identifier-results-request.getter.d.ts +0 -0
  1719. /package/types/{x-modules → src/x-modules}/identifier-results/store/index.d.ts +0 -0
  1720. /package/types/{x-modules → src/x-modules}/identifier-results/store/module.d.ts +0 -0
  1721. /package/types/{x-modules → src/x-modules}/identifier-results/store/types.d.ts +0 -0
  1722. /package/types/{x-modules → src/x-modules}/identifier-results/wiring.d.ts +0 -0
  1723. /package/types/{x-modules → src/x-modules}/identifier-results/x-module.d.ts +0 -0
  1724. /package/types/{x-modules → src/x-modules}/next-queries/components/index.d.ts +0 -0
  1725. /package/types/{x-modules → src/x-modules}/next-queries/components/next-queries-list.vue.d.ts +0 -0
  1726. /package/types/{x-modules → src/x-modules}/next-queries/components/next-queries.vue.d.ts +0 -0
  1727. /package/types/{x-modules → src/x-modules}/next-queries/components/next-query-preview.vue.d.ts +0 -0
  1728. /package/types/{x-modules → src/x-modules}/next-queries/components/next-query.vue.d.ts +0 -0
  1729. /package/types/{x-modules → src/x-modules}/next-queries/config.types.d.ts +0 -0
  1730. /package/types/{x-modules → src/x-modules}/next-queries/events.types.d.ts +0 -0
  1731. /package/types/{x-modules → src/x-modules}/next-queries/index.d.ts +0 -0
  1732. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts +0 -0
  1733. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts +0 -0
  1734. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/fetch-next-queries.action.d.ts +0 -0
  1735. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/fetch-next-query-preview.action.d.ts +0 -0
  1736. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/set-query-from-last-history-query.action.d.ts +0 -0
  1737. /package/types/{x-modules → src/x-modules}/next-queries/store/actions/set-url-params.action.d.ts +0 -0
  1738. /package/types/{x-modules → src/x-modules}/next-queries/store/emitters.d.ts +0 -0
  1739. /package/types/{x-modules → src/x-modules}/next-queries/store/getters/next-queries-query.getter.d.ts +0 -0
  1740. /package/types/{x-modules → src/x-modules}/next-queries/store/getters/next-queries.getter.d.ts +0 -0
  1741. /package/types/{x-modules → src/x-modules}/next-queries/store/getters/request.getter.d.ts +0 -0
  1742. /package/types/{x-modules → src/x-modules}/next-queries/store/index.d.ts +0 -0
  1743. /package/types/{x-modules → src/x-modules}/next-queries/store/module.d.ts +0 -0
  1744. /package/types/{x-modules → src/x-modules}/next-queries/store/types.d.ts +0 -0
  1745. /package/types/{x-modules → src/x-modules}/next-queries/types.d.ts +0 -0
  1746. /package/types/{x-modules → src/x-modules}/next-queries/wiring.d.ts +0 -0
  1747. /package/types/{x-modules → src/x-modules}/next-queries/x-module.d.ts +0 -0
  1748. /package/types/{x-modules → src/x-modules}/popular-searches/components/index.d.ts +0 -0
  1749. /package/types/{x-modules → src/x-modules}/popular-searches/components/popular-search.vue.d.ts +0 -0
  1750. /package/types/{x-modules → src/x-modules}/popular-searches/components/popular-searches.vue.d.ts +0 -0
  1751. /package/types/{x-modules → src/x-modules}/popular-searches/config.types.d.ts +0 -0
  1752. /package/types/{x-modules → src/x-modules}/popular-searches/events.types.d.ts +0 -0
  1753. /package/types/{x-modules → src/x-modules}/popular-searches/index.d.ts +0 -0
  1754. /package/types/{x-modules → src/x-modules}/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts +0 -0
  1755. /package/types/{x-modules → src/x-modules}/popular-searches/store/actions/fetch-suggestions.action.d.ts +0 -0
  1756. /package/types/{x-modules → src/x-modules}/popular-searches/store/emitters.d.ts +0 -0
  1757. /package/types/{x-modules → src/x-modules}/popular-searches/store/getters/popular-searches.getter.d.ts +0 -0
  1758. /package/types/{x-modules → src/x-modules}/popular-searches/store/getters/request.getter.d.ts +0 -0
  1759. /package/types/{x-modules → src/x-modules}/popular-searches/store/index.d.ts +0 -0
  1760. /package/types/{x-modules → src/x-modules}/popular-searches/store/module.d.ts +0 -0
  1761. /package/types/{x-modules → src/x-modules}/popular-searches/store/types.d.ts +0 -0
  1762. /package/types/{x-modules → src/x-modules}/popular-searches/wiring.d.ts +0 -0
  1763. /package/types/{x-modules → src/x-modules}/popular-searches/x-module.d.ts +0 -0
  1764. /package/types/{x-modules → src/x-modules}/queries-preview/components/index.d.ts +0 -0
  1765. /package/types/{x-modules → src/x-modules}/queries-preview/components/query-preview-button.vue.d.ts +0 -0
  1766. /package/types/{x-modules → src/x-modules}/queries-preview/components/query-preview-list.vue.d.ts +0 -0
  1767. /package/types/{x-modules → src/x-modules}/queries-preview/components/query-preview.vue.d.ts +0 -0
  1768. /package/types/{x-modules → src/x-modules}/queries-preview/composables/index.d.ts +0 -0
  1769. /package/types/{x-modules → src/x-modules}/queries-preview/composables/use-queries-preview.composable.d.ts +0 -0
  1770. /package/types/{x-modules → src/x-modules}/queries-preview/config.types.d.ts +0 -0
  1771. /package/types/{x-modules → src/x-modules}/queries-preview/events.types.d.ts +0 -0
  1772. /package/types/{x-modules → src/x-modules}/queries-preview/index.d.ts +0 -0
  1773. /package/types/{x-modules → src/x-modules}/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts +0 -0
  1774. /package/types/{x-modules → src/x-modules}/queries-preview/store/actions/fetch-query-preview.action.d.ts +0 -0
  1775. /package/types/{x-modules → src/x-modules}/queries-preview/store/emitters.d.ts +0 -0
  1776. /package/types/{x-modules → src/x-modules}/queries-preview/store/getters/loaded-queries-preview.getter.d.ts +0 -0
  1777. /package/types/{x-modules → src/x-modules}/queries-preview/store/index.d.ts +0 -0
  1778. /package/types/{x-modules → src/x-modules}/queries-preview/store/module.d.ts +0 -0
  1779. /package/types/{x-modules → src/x-modules}/queries-preview/store/types.d.ts +0 -0
  1780. /package/types/{x-modules → src/x-modules}/queries-preview/utils/get-hash-from-query-preview.d.ts +0 -0
  1781. /package/types/{x-modules → src/x-modules}/queries-preview/wiring.d.ts +0 -0
  1782. /package/types/{x-modules → src/x-modules}/queries-preview/x-module.d.ts +0 -0
  1783. /package/types/{x-modules → src/x-modules}/query-suggestions/components/index.d.ts +0 -0
  1784. /package/types/{x-modules → src/x-modules}/query-suggestions/components/query-suggestion.vue.d.ts +0 -0
  1785. /package/types/{x-modules → src/x-modules}/query-suggestions/components/query-suggestions.vue.d.ts +0 -0
  1786. /package/types/{x-modules → src/x-modules}/query-suggestions/config.types.d.ts +0 -0
  1787. /package/types/{x-modules → src/x-modules}/query-suggestions/events.types.d.ts +0 -0
  1788. /package/types/{x-modules → src/x-modules}/query-suggestions/index.d.ts +0 -0
  1789. /package/types/{x-modules → src/x-modules}/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts +0 -0
  1790. /package/types/{x-modules → src/x-modules}/query-suggestions/store/actions/fetch-suggestions.action.d.ts +0 -0
  1791. /package/types/{x-modules → src/x-modules}/query-suggestions/store/actions/set-url-params.action.d.ts +0 -0
  1792. /package/types/{x-modules → src/x-modules}/query-suggestions/store/emitters.d.ts +0 -0
  1793. /package/types/{x-modules → src/x-modules}/query-suggestions/store/getters/normalized-query.getter.d.ts +0 -0
  1794. /package/types/{x-modules → src/x-modules}/query-suggestions/store/getters/query-suggestions.getter.d.ts +0 -0
  1795. /package/types/{x-modules → src/x-modules}/query-suggestions/store/getters/request.getter.d.ts +0 -0
  1796. /package/types/{x-modules → src/x-modules}/query-suggestions/store/index.d.ts +0 -0
  1797. /package/types/{x-modules → src/x-modules}/query-suggestions/store/module.d.ts +0 -0
  1798. /package/types/{x-modules → src/x-modules}/query-suggestions/store/types.d.ts +0 -0
  1799. /package/types/{x-modules → src/x-modules}/query-suggestions/wiring.d.ts +0 -0
  1800. /package/types/{x-modules → src/x-modules}/query-suggestions/x-module.d.ts +0 -0
  1801. /package/types/{x-modules → src/x-modules}/recommendations/components/index.d.ts +0 -0
  1802. /package/types/{x-modules → src/x-modules}/recommendations/components/recommendations.vue.d.ts +0 -0
  1803. /package/types/{x-modules → src/x-modules}/recommendations/config.types.d.ts +0 -0
  1804. /package/types/{x-modules → src/x-modules}/recommendations/events.types.d.ts +0 -0
  1805. /package/types/{x-modules → src/x-modules}/recommendations/index.d.ts +0 -0
  1806. /package/types/{x-modules → src/x-modules}/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts +0 -0
  1807. /package/types/{x-modules → src/x-modules}/recommendations/store/actions/fetch-recommendations.action.d.ts +0 -0
  1808. /package/types/{x-modules → src/x-modules}/recommendations/store/constants.d.ts +0 -0
  1809. /package/types/{x-modules → src/x-modules}/recommendations/store/emitters.d.ts +0 -0
  1810. /package/types/{x-modules → src/x-modules}/recommendations/store/getters/request.getter.d.ts +0 -0
  1811. /package/types/{x-modules → src/x-modules}/recommendations/store/index.d.ts +0 -0
  1812. /package/types/{x-modules → src/x-modules}/recommendations/store/module.d.ts +0 -0
  1813. /package/types/{x-modules → src/x-modules}/recommendations/store/types.d.ts +0 -0
  1814. /package/types/{x-modules → src/x-modules}/recommendations/wiring.d.ts +0 -0
  1815. /package/types/{x-modules → src/x-modules}/recommendations/x-module.d.ts +0 -0
  1816. /package/types/{x-modules → src/x-modules}/related-prompts/components/index.d.ts +0 -0
  1817. /package/types/{x-modules → src/x-modules}/related-prompts/components/related-prompt.vue.d.ts +0 -0
  1818. /package/types/{x-modules → src/x-modules}/related-prompts/components/related-prompts-list.vue.d.ts +0 -0
  1819. /package/types/{x-modules → src/x-modules}/related-prompts/components/related-prompts-tag-list.vue.d.ts +0 -0
  1820. /package/types/{x-modules → src/x-modules}/related-prompts/events.types.d.ts +0 -0
  1821. /package/types/{x-modules → src/x-modules}/related-prompts/index.d.ts +0 -0
  1822. /package/types/{x-modules → src/x-modules}/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts +0 -0
  1823. /package/types/{x-modules → src/x-modules}/related-prompts/store/actions/fetch-related-prompts.action.d.ts +0 -0
  1824. /package/types/{x-modules → src/x-modules}/related-prompts/store/actions/set-url-params.action.d.ts +0 -0
  1825. /package/types/{x-modules → src/x-modules}/related-prompts/store/emitters.d.ts +0 -0
  1826. /package/types/{x-modules → src/x-modules}/related-prompts/store/getters/index.d.ts +0 -0
  1827. /package/types/{x-modules → src/x-modules}/related-prompts/store/getters/related-prompts-query.getter.d.ts +0 -0
  1828. /package/types/{x-modules → src/x-modules}/related-prompts/store/getters/request.getter.d.ts +0 -0
  1829. /package/types/{x-modules → src/x-modules}/related-prompts/store/index.d.ts +0 -0
  1830. /package/types/{x-modules → src/x-modules}/related-prompts/store/module.d.ts +0 -0
  1831. /package/types/{x-modules → src/x-modules}/related-prompts/store/types.d.ts +0 -0
  1832. /package/types/{x-modules → src/x-modules}/related-prompts/types.d.ts +0 -0
  1833. /package/types/{x-modules → src/x-modules}/related-prompts/wiring.d.ts +0 -0
  1834. /package/types/{x-modules → src/x-modules}/related-prompts/x-module.d.ts +0 -0
  1835. /package/types/{x-modules → src/x-modules}/related-tags/components/index.d.ts +0 -0
  1836. /package/types/{x-modules → src/x-modules}/related-tags/components/related-tag.vue.d.ts +0 -0
  1837. /package/types/{x-modules → src/x-modules}/related-tags/components/related-tags.vue.d.ts +0 -0
  1838. /package/types/{x-modules → src/x-modules}/related-tags/config.types.d.ts +0 -0
  1839. /package/types/{x-modules → src/x-modules}/related-tags/events.types.d.ts +0 -0
  1840. /package/types/{x-modules → src/x-modules}/related-tags/index.d.ts +0 -0
  1841. /package/types/{x-modules → src/x-modules}/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts +0 -0
  1842. /package/types/{x-modules → src/x-modules}/related-tags/store/actions/fetch-related-tags.action.d.ts +0 -0
  1843. /package/types/{x-modules → src/x-modules}/related-tags/store/actions/set-url-params.action.d.ts +0 -0
  1844. /package/types/{x-modules → src/x-modules}/related-tags/store/actions/toggle-related-tag.action.d.ts +0 -0
  1845. /package/types/{x-modules → src/x-modules}/related-tags/store/emitters.d.ts +0 -0
  1846. /package/types/{x-modules → src/x-modules}/related-tags/store/getters/query.getter.d.ts +0 -0
  1847. /package/types/{x-modules → src/x-modules}/related-tags/store/getters/related-tags.getter.d.ts +0 -0
  1848. /package/types/{x-modules → src/x-modules}/related-tags/store/getters/request.getter.d.ts +0 -0
  1849. /package/types/{x-modules → src/x-modules}/related-tags/store/index.d.ts +0 -0
  1850. /package/types/{x-modules → src/x-modules}/related-tags/store/module.d.ts +0 -0
  1851. /package/types/{x-modules → src/x-modules}/related-tags/store/types.d.ts +0 -0
  1852. /package/types/{x-modules → src/x-modules}/related-tags/wiring.d.ts +0 -0
  1853. /package/types/{x-modules → src/x-modules}/related-tags/x-module.d.ts +0 -0
  1854. /package/types/{x-modules → src/x-modules}/scroll/components/index.d.ts +0 -0
  1855. /package/types/{x-modules → src/x-modules}/scroll/components/main-scroll-item.vue.d.ts +0 -0
  1856. /package/types/{x-modules → src/x-modules}/scroll/components/main-scroll.vue.d.ts +0 -0
  1857. /package/types/{x-modules → src/x-modules}/scroll/components/scroll-to-top.vue.d.ts +0 -0
  1858. /package/types/{x-modules → src/x-modules}/scroll/components/scroll.const.d.ts +0 -0
  1859. /package/types/{x-modules → src/x-modules}/scroll/components/scroll.types.d.ts +0 -0
  1860. /package/types/{x-modules → src/x-modules}/scroll/components/scroll.vue.d.ts +0 -0
  1861. /package/types/{x-modules → src/x-modules}/scroll/events.types.d.ts +0 -0
  1862. /package/types/{x-modules → src/x-modules}/scroll/index.d.ts +0 -0
  1863. /package/types/{x-modules → src/x-modules}/scroll/store/emitters.d.ts +0 -0
  1864. /package/types/{x-modules → src/x-modules}/scroll/store/index.d.ts +0 -0
  1865. /package/types/{x-modules → src/x-modules}/scroll/store/module.d.ts +0 -0
  1866. /package/types/{x-modules → src/x-modules}/scroll/store/types.d.ts +0 -0
  1867. /package/types/{x-modules → src/x-modules}/scroll/wiring.d.ts +0 -0
  1868. /package/types/{x-modules → src/x-modules}/scroll/x-module.d.ts +0 -0
  1869. /package/types/{x-modules → src/x-modules}/search/components/banner.vue.d.ts +0 -0
  1870. /package/types/{x-modules → src/x-modules}/search/components/banners-list.vue.d.ts +0 -0
  1871. /package/types/{x-modules → src/x-modules}/search/components/fallback-disclaimer.vue.d.ts +0 -0
  1872. /package/types/{x-modules → src/x-modules}/search/components/index.d.ts +0 -0
  1873. /package/types/{x-modules → src/x-modules}/search/components/partial-query-button.vue.d.ts +0 -0
  1874. /package/types/{x-modules → src/x-modules}/search/components/partial-results-list.vue.d.ts +0 -0
  1875. /package/types/{x-modules → src/x-modules}/search/components/promoted.vue.d.ts +0 -0
  1876. /package/types/{x-modules → src/x-modules}/search/components/promoteds-list.vue.d.ts +0 -0
  1877. /package/types/{x-modules → src/x-modules}/search/components/redirection.vue.d.ts +0 -0
  1878. /package/types/{x-modules → src/x-modules}/search/components/results-list.vue.d.ts +0 -0
  1879. /package/types/{x-modules → src/x-modules}/search/components/sort-dropdown.vue.d.ts +0 -0
  1880. /package/types/{x-modules → src/x-modules}/search/components/sort-list.vue.d.ts +0 -0
  1881. /package/types/{x-modules → src/x-modules}/search/components/sort-picker-list.types.d.ts +0 -0
  1882. /package/types/{x-modules → src/x-modules}/search/components/sort-picker-list.vue.d.ts +0 -0
  1883. /package/types/{x-modules → src/x-modules}/search/components/spellcheck-button.vue.d.ts +0 -0
  1884. /package/types/{x-modules → src/x-modules}/search/components/spellcheck.vue.d.ts +0 -0
  1885. /package/types/{x-modules → src/x-modules}/search/config.types.d.ts +0 -0
  1886. /package/types/{x-modules → src/x-modules}/search/events.types.d.ts +0 -0
  1887. /package/types/{x-modules → src/x-modules}/search/index.d.ts +0 -0
  1888. /package/types/{x-modules → src/x-modules}/search/store/actions/fetch-and-save-search-response.action.d.ts +0 -0
  1889. /package/types/{x-modules → src/x-modules}/search/store/actions/fetch-search-response.action.d.ts +0 -0
  1890. /package/types/{x-modules → src/x-modules}/search/store/actions/increase-page-apending-results.action.d.ts +0 -0
  1891. /package/types/{x-modules → src/x-modules}/search/store/actions/index.d.ts +0 -0
  1892. /package/types/{x-modules → src/x-modules}/search/store/actions/reset-request-on-refinement.action.d.ts +0 -0
  1893. /package/types/{x-modules → src/x-modules}/search/store/actions/save-origin.action.d.ts +0 -0
  1894. /package/types/{x-modules → src/x-modules}/search/store/actions/save-search-response.action.d.ts +0 -0
  1895. /package/types/{x-modules → src/x-modules}/search/store/actions/set-url-params.action.d.ts +0 -0
  1896. /package/types/{x-modules → src/x-modules}/search/store/emitters.d.ts +0 -0
  1897. /package/types/{x-modules → src/x-modules}/search/store/getters/index.d.ts +0 -0
  1898. /package/types/{x-modules → src/x-modules}/search/store/getters/query.getter.d.ts +0 -0
  1899. /package/types/{x-modules → src/x-modules}/search/store/getters/request.getter.d.ts +0 -0
  1900. /package/types/{x-modules → src/x-modules}/search/store/index.d.ts +0 -0
  1901. /package/types/{x-modules → src/x-modules}/search/store/module.d.ts +0 -0
  1902. /package/types/{x-modules → src/x-modules}/search/store/types.d.ts +0 -0
  1903. /package/types/{x-modules → src/x-modules}/search/types.d.ts +0 -0
  1904. /package/types/{x-modules → src/x-modules}/search/wiring.d.ts +0 -0
  1905. /package/types/{x-modules → src/x-modules}/search/x-module.d.ts +0 -0
  1906. /package/types/{x-modules → src/x-modules}/search-box/components/clear-search-input.vue.d.ts +0 -0
  1907. /package/types/{x-modules → src/x-modules}/search-box/components/index.d.ts +0 -0
  1908. /package/types/{x-modules → src/x-modules}/search-box/components/search-button.vue.d.ts +0 -0
  1909. /package/types/{x-modules → src/x-modules}/search-box/components/search-input-placeholder.vue.d.ts +0 -0
  1910. /package/types/{x-modules → src/x-modules}/search-box/components/search-input.vue.d.ts +0 -0
  1911. /package/types/{x-modules → src/x-modules}/search-box/events.types.d.ts +0 -0
  1912. /package/types/{x-modules → src/x-modules}/search-box/index.d.ts +0 -0
  1913. /package/types/{x-modules → src/x-modules}/search-box/store/actions/set-input-status.action.d.ts +0 -0
  1914. /package/types/{x-modules → src/x-modules}/search-box/store/actions/set-url-params.action.d.ts +0 -0
  1915. /package/types/{x-modules → src/x-modules}/search-box/store/emitters.d.ts +0 -0
  1916. /package/types/{x-modules → src/x-modules}/search-box/store/index.d.ts +0 -0
  1917. /package/types/{x-modules → src/x-modules}/search-box/store/module.d.ts +0 -0
  1918. /package/types/{x-modules → src/x-modules}/search-box/store/types.d.ts +0 -0
  1919. /package/types/{x-modules → src/x-modules}/search-box/wiring.d.ts +0 -0
  1920. /package/types/{x-modules → src/x-modules}/search-box/x-module.d.ts +0 -0
  1921. /package/types/{x-modules → src/x-modules}/semantic-queries/components/index.d.ts +0 -0
  1922. /package/types/{x-modules → src/x-modules}/semantic-queries/components/semantic-queries.vue.d.ts +0 -0
  1923. /package/types/{x-modules → src/x-modules}/semantic-queries/components/semantic-query.vue.d.ts +0 -0
  1924. /package/types/{x-modules → src/x-modules}/semantic-queries/config.types.d.ts +0 -0
  1925. /package/types/{x-modules → src/x-modules}/semantic-queries/events.types.d.ts +0 -0
  1926. /package/types/{x-modules → src/x-modules}/semantic-queries/index.d.ts +0 -0
  1927. /package/types/{x-modules → src/x-modules}/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts +0 -0
  1928. /package/types/{x-modules → src/x-modules}/semantic-queries/store/actions/fetch-semantic-query.action.d.ts +0 -0
  1929. /package/types/{x-modules → src/x-modules}/semantic-queries/store/actions/index.d.ts +0 -0
  1930. /package/types/{x-modules → src/x-modules}/semantic-queries/store/emitters.d.ts +0 -0
  1931. /package/types/{x-modules → src/x-modules}/semantic-queries/store/getters/index.d.ts +0 -0
  1932. /package/types/{x-modules → src/x-modules}/semantic-queries/store/getters/normalized-query.getter.d.ts +0 -0
  1933. /package/types/{x-modules → src/x-modules}/semantic-queries/store/getters/request.getter.d.ts +0 -0
  1934. /package/types/{x-modules → src/x-modules}/semantic-queries/store/getters/semanti-queries-query.getter.d.ts +0 -0
  1935. /package/types/{x-modules → src/x-modules}/semantic-queries/store/index.d.ts +0 -0
  1936. /package/types/{x-modules → src/x-modules}/semantic-queries/store/module.d.ts +0 -0
  1937. /package/types/{x-modules → src/x-modules}/semantic-queries/store/types.d.ts +0 -0
  1938. /package/types/{x-modules → src/x-modules}/semantic-queries/wiring.d.ts +0 -0
  1939. /package/types/{x-modules → src/x-modules}/semantic-queries/x-module.d.ts +0 -0
  1940. /package/types/{x-modules → src/x-modules}/tagging/components/index.d.ts +0 -0
  1941. /package/types/{x-modules → src/x-modules}/tagging/components/tagging.vue.d.ts +0 -0
  1942. /package/types/{x-modules → src/x-modules}/tagging/config.types.d.ts +0 -0
  1943. /package/types/{x-modules → src/x-modules}/tagging/events.types.d.ts +0 -0
  1944. /package/types/{x-modules → src/x-modules}/tagging/index.d.ts +0 -0
  1945. /package/types/{x-modules → src/x-modules}/tagging/service/external-tagging.service.d.ts +0 -0
  1946. /package/types/{x-modules → src/x-modules}/tagging/service/index.d.ts +0 -0
  1947. /package/types/{x-modules → src/x-modules}/tagging/service/types.d.ts +0 -0
  1948. /package/types/{x-modules → src/x-modules}/tagging/store/actions/index.d.ts +0 -0
  1949. /package/types/{x-modules → src/x-modules}/tagging/store/actions/track.action.d.ts +0 -0
  1950. /package/types/{x-modules → src/x-modules}/tagging/store/emitters.d.ts +0 -0
  1951. /package/types/{x-modules → src/x-modules}/tagging/store/index.d.ts +0 -0
  1952. /package/types/{x-modules → src/x-modules}/tagging/store/module.d.ts +0 -0
  1953. /package/types/{x-modules → src/x-modules}/tagging/store/types.d.ts +0 -0
  1954. /package/types/{x-modules → src/x-modules}/tagging/wiring.d.ts +0 -0
  1955. /package/types/{x-modules → src/x-modules}/tagging/x-module.d.ts +0 -0
  1956. /package/types/{x-modules → src/x-modules}/url/components/index.d.ts +0 -0
  1957. /package/types/{x-modules → src/x-modules}/url/components/url-handler.vue.d.ts +0 -0
  1958. /package/types/{x-modules → src/x-modules}/url/events.types.d.ts +0 -0
  1959. /package/types/{x-modules → src/x-modules}/url/index.d.ts +0 -0
  1960. /package/types/{x-modules → src/x-modules}/url/store/emitters.d.ts +0 -0
  1961. /package/types/{x-modules → src/x-modules}/url/store/getters/url-params.getter.d.ts +0 -0
  1962. /package/types/{x-modules → src/x-modules}/url/store/index.d.ts +0 -0
  1963. /package/types/{x-modules → src/x-modules}/url/store/initial-state.d.ts +0 -0
  1964. /package/types/{x-modules → src/x-modules}/url/store/module.d.ts +0 -0
  1965. /package/types/{x-modules → src/x-modules}/url/store/mutations/set-params.mutation.d.ts +0 -0
  1966. /package/types/{x-modules → src/x-modules}/url/store/types.d.ts +0 -0
  1967. /package/types/{x-modules → src/x-modules}/url/wiring.d.ts +0 -0
  1968. /package/types/{x-modules → src/x-modules}/url/x-module.d.ts +0 -0
  1969. /package/types/{x-modules → src/x-modules}/x-modules.types.d.ts +0 -0
@@ -98,15 +98,11 @@ import '../../../components/suggestions/base-suggestions.vue2.js';
98
98
  import '../../../components/suggestions/base-suggestions.vue3.js';
99
99
  import '../../../composables/create-use-device.js';
100
100
  import 'vuex';
101
- import '@vue/devtools-api';
102
- import '../../../plugins/devtools/timeline.devtools.js';
103
- import 'rxjs/operators';
104
- import 'rxjs';
105
- import '../../../plugins/devtools/colors.utils.js';
106
101
  import '../../../plugins/x-bus.js';
107
102
  import '../../../plugins/x-plugin.js';
108
103
  import { useDebounce } from '../../../composables/use-debounce.js';
109
104
  import '@vueuse/core';
105
+ import 'rxjs';
110
106
  import { AnimationProp } from '../../../types/animation-prop.js';
111
107
  import { getActiveElement } from '../../../utils/html.js';
112
108
  import '../../../utils/storage.js';
@@ -1 +1 @@
1
- {"version":3,"file":"empathize.vue2.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpenAndHasContent\"\n ref=\"empathizeRef\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType, WatchStopHandle } from 'vue'\nimport type { XEvent } from '../../../wiring'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { NoAnimation } from '../../../components'\nimport { use$x, useDebounce } from '../../../composables'\nimport { AnimationProp } from '../../../types'\nimport { getActiveElement } from '../../../utils'\nimport { empathizeXModule } from '../x-module'\n\n/**\n * Component containing the empathize. It has a required slot to define its content.\n *\n * @public\n */\nexport default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox'],\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox',\n ],\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /** Whether the empathize has content or not. As it is only known in the client, it is a prop. */\n hasContent: {\n type: Boolean,\n default: true,\n },\n /** Fallback flag to trigger a search and close the empathize when has no-content. */\n searchAndCloseOnNoContent: {\n type: Boolean,\n default: false,\n },\n /** Debounce time in milliseconds to search and close the empathize when has no-content. */\n searchAndCloseDebounceInMs: {\n type: Number,\n default: 1000,\n },\n },\n setup(props) {\n const $x = use$x()\n\n const empathizeRef = ref<HTMLDivElement | null>(null)\n const isOpen = ref(false)\n const isOpenAndHasContent = computed(() => isOpen.value && props.hasContent)\n\n /** Emit 'EmpathizeOpened' or 'EmpathizeClosed' event when computed changes. */\n watch(isOpenAndHasContent, () => {\n const empathizeEvent = isOpenAndHasContent.value ? 'EmpathizeOpened' : 'EmpathizeClosed'\n $x.emit(empathizeEvent, undefined, { target: empathizeRef.value })\n })\n\n /** Debounce function to change the state `isOpen` to the new value. */\n const changeOpenDebounced = useDebounce((newOpen: boolean) => (isOpen.value = newOpen), 0)\n\n /**\n * Open empathize. This function will be executed on any event in\n * {@link Empathize.eventsToOpenEmpathize} and on DOM event `focusin` on the Empathize root\n * element.\n */\n function open() {\n changeOpenDebounced(true)\n }\n\n /**\n * Close empathize. This function will be executed on any event in\n * {@link Empathize.eventsToCloseEmpathize} and on DOM event `focusout` on the Empathize root\n * element.\n */\n function close() {\n const activeElement = getActiveElement()\n if (!empathizeRef.value?.contains(activeElement)) {\n changeOpenDebounced(false)\n }\n }\n\n /** Events subscriptions to open and close empathize. */\n props.eventsToOpenEmpathize.forEach(event => $x.on(event, false).subscribe(open))\n props.eventsToCloseEmpathize.forEach(event => $x.on(event, false).subscribe(close))\n\n let unwatchSearchBoxQuery: WatchStopHandle = () => {}\n\n /** Debounced function to unwatch the search-box query and also search and close empathize. */\n const searchAndCloseDebounced = useDebounce(async () => {\n if (isOpen.value) {\n unwatchSearchBoxQuery()\n await $x.emit('UserAcceptedAQuery', $x.query.searchBox)\n close()\n }\n }, props.searchAndCloseDebounceInMs)\n\n /**\n * Watcher triggered when `hasContent` change and the `searchAndCloseOnNoContent` flag is active\n * with the following casuistics:\n * 1. Empathize has content: unwatch the search-box query and cancel debounced search&close.\n * 2. Empathize has NO content: create a watcher for the search-box query. It is to debounce the\n * search fallback when the user types in the search-box during debounced time.\n */\n watch(\n () => props.hasContent,\n () => {\n if (props.searchAndCloseOnNoContent) {\n if (props.hasContent) {\n unwatchSearchBoxQuery()\n searchAndCloseDebounced.cancel()\n } else {\n unwatchSearchBoxQuery = watch(() => $x.query.searchBox, searchAndCloseDebounced, {\n immediate: true,\n })\n }\n }\n },\n )\n\n return { empathizeRef, isOpenAndHasContent, open, close }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`EmpathizeOpened`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `true` and `hasContent` to `true`.\n The event payload is undefined and can have a metadata with the module and the element that emitted it.\n- [`EmpathizeClosed`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `false` and `hasContent` to `true`.\n The event payload is undefined and can have a metadata with the module and the element that emitted it.\n\n## Examples\n\nThis component will listen to the configured events in `eventsToOpenEmpathize` and\n`eventsToCloseEmpathize` props and open/close itself accordingly. By default, those props values\nare:\n\n- Open: `UserFocusedSearchBox`, `UserIsTypingAQuery`, `UserClickedSearchBox`\n- Close: `UserClosedEmpathize`, `UserSelectedASuggestion`, `UserPressedEnterKey`, `UserBlurredSearchBox`\n\n### Basic example\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation.\n\n```vue\n<template>\n <Empathize>\n <BaseKeyboardNavigation>\n <QuerySuggestions />\n <PopularSearches />\n <HistoryQueries />\n </BaseKeyboardNavigation>\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport BaseKeyboardNavigation from '@empathyco/x-components/js/components/base-keyboard-navigation.vue'\nimport QuerySuggestions from '@empathyco/x-components/js/x-modules/query-suggestions/components/query-suggestions.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport HistoryQueries from '@empathyco/x-components/js/x-modules/history-queries/components/history-queries.vue'\n</script>\n```\n\nDefining custom values for the events to open and close the Empathize. For example, opening it when\nthe search box loses the focus and closing it when the search box receives the focus:\n\n```vue\n<template>\n <Empathize\n :events-to-open-empathize=\"['UserBlurredSearchBox']\"\n :events-to-close-empathize=\"['UserFocusedSearchBox']\"\n >\n Please, type a query in the Search Box.\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\n</script>\n```\n\nAn animation can be used for the opening and closing using the `animation` prop. The animation must\nbe a component with a `Transition` and a slot inside:\n\n```vue\n<template>\n <Empathize :animation=\"collapseFromTop\">\n <PopularSearches />\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport CollapseFromTop from './collapseFromTop.vue'\nconst animation = CollapseFromTop\n</script>\n```\n\n### Advanced example\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation. It also configures `searchAndCloseOnNoContent` to trigger a search and close the empathize\nwhen it has no content as fallback behaviour. To do that, `hasContent` prop must be reactive to know\nif the empathize has content or not. It also configures `searchAndCloseDebounceInMs` to 500ms as debounce time to search and close the empathize when it has no content.\n\n```vue\n<template>\n <Empathize\n :animation=\"empathizeAnimation\"\n :events-to-close-empathize=\"empathizeCloseEvents\"\n :has-content=\"showEmpathize\"\n :search-and-close-debounce-in-ms=\"500\"\n search-and-close-on-no-content\n >\n <BaseKeyboardNavigation>\n <QuerySuggestions />\n <PopularSearches />\n <HistoryQueries />\n </BaseKeyboardNavigation>\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport BaseKeyboardNavigation from '@empathyco/x-components/js/components/base-keyboard-navigation.vue'\nimport QuerySuggestions from '@empathyco/x-components/js/x-modules/query-suggestions/components/query-suggestions.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport HistoryQueries from '@empathyco/x-components/js/x-modules/history-queries/components/history-queries.vue'\nimport CollapseFromTop from './collapseFromTop.vue'\nimport { ref } from 'vue'\nconst empathizeAnimation = CollapseFromTop\nconst empathizeCloseEvents = ['UserClosedEmpathize', 'UserSelectedASuggestion']\nconst showEmpathize = ref(true)\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA;;;;AAIE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,gBAAgB,CAAC,IAAI;AAC9B,IAAA,KAAK,EAAE;;AAEL,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,KAA2B;YACjC,OAAO,EAAE,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,CAAC;AACtF,SAAA;;AAED,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,KAA2B;YACjC,OAAO,EAAE,MAAM;gBACb,qBAAqB;gBACrB,yBAAyB;gBACzB,qBAAqB;gBACrB,sBAAsB;AACvB,aAAA;AACF,SAAA;;AAED,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;;AAED,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;;AAED,QAAA,yBAAyB,EAAE;AACzB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;;AA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SAAS,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAElF,QAAA,IAAI,qBAAqB,GAAoB,QAAO,CAAA;;AAGpD,QAAA,MAAM,uBAAsB,GAAI,WAAW,CAAC,YAAU;AACpD,YAAA,IAAI,MAAM,CAAC,KAAK,EAAE;AAChB,gBAAA,qBAAqB,EAAC;AACtB,gBAAA,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAA;AACtD,gBAAA,KAAK,EAAC;YACR;AACF,QAAA,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAA;AAEnC;;;;;;AAME;QACF,KAAK,CACH,MAAM,KAAK,CAAC,UAAU,EACtB,MAAI;AACF,YAAA,IAAI,KAAK,CAAC,yBAAyB,EAAE;AACnC,gBAAA,IAAI,KAAK,CAAC,UAAU,EAAE;AACpB,oBAAA,qBAAqB,EAAC;oBACtB,uBAAuB,CAAC,MAAM,EAAC;gBACjC;qBAAO;AACL,oBAAA,qBAAoB,GAAI,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,uBAAuB,EAAE;AAC/E,wBAAA,SAAS,EAAE,IAAI;AAChB,qBAAA,CAAA;gBACH;YACF;AACF,QAAA,CAAC,CACH;QAEA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAI,EAAE;IAC1D,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"empathize.vue2.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpenAndHasContent\"\n ref=\"empathizeRef\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType, WatchStopHandle } from 'vue'\nimport type { XEvent } from '../../../wiring'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { NoAnimation } from '../../../components'\nimport { use$x, useDebounce } from '../../../composables'\nimport { AnimationProp } from '../../../types'\nimport { getActiveElement } from '../../../utils'\nimport { empathizeXModule } from '../x-module'\n\n/**\n * Component containing the empathize. It has a required slot to define its content.\n *\n * @public\n */\nexport default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox'],\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox',\n ],\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /** Whether the empathize has content or not. As it is only known in the client, it is a prop. */\n hasContent: {\n type: Boolean,\n default: true,\n },\n /** Fallback flag to trigger a search and close the empathize when has no-content. */\n searchAndCloseOnNoContent: {\n type: Boolean,\n default: false,\n },\n /** Debounce time in milliseconds to search and close the empathize when has no-content. */\n searchAndCloseDebounceInMs: {\n type: Number,\n default: 1000,\n },\n },\n setup(props) {\n const $x = use$x()\n\n const empathizeRef = ref<HTMLDivElement | null>(null)\n const isOpen = ref(false)\n const isOpenAndHasContent = computed(() => isOpen.value && props.hasContent)\n\n /** Emit 'EmpathizeOpened' or 'EmpathizeClosed' event when computed changes. */\n watch(isOpenAndHasContent, () => {\n const empathizeEvent = isOpenAndHasContent.value ? 'EmpathizeOpened' : 'EmpathizeClosed'\n $x.emit(empathizeEvent, undefined, { target: empathizeRef.value })\n })\n\n /** Debounce function to change the state `isOpen` to the new value. */\n const changeOpenDebounced = useDebounce((newOpen: boolean) => (isOpen.value = newOpen), 0)\n\n /**\n * Open empathize. This function will be executed on any event in\n * {@link Empathize.eventsToOpenEmpathize} and on DOM event `focusin` on the Empathize root\n * element.\n */\n function open() {\n changeOpenDebounced(true)\n }\n\n /**\n * Close empathize. This function will be executed on any event in\n * {@link Empathize.eventsToCloseEmpathize} and on DOM event `focusout` on the Empathize root\n * element.\n */\n function close() {\n const activeElement = getActiveElement()\n if (!empathizeRef.value?.contains(activeElement)) {\n changeOpenDebounced(false)\n }\n }\n\n /** Events subscriptions to open and close empathize. */\n props.eventsToOpenEmpathize.forEach(event => $x.on(event, false).subscribe(open))\n props.eventsToCloseEmpathize.forEach(event => $x.on(event, false).subscribe(close))\n\n let unwatchSearchBoxQuery: WatchStopHandle = () => {}\n\n /** Debounced function to unwatch the search-box query and also search and close empathize. */\n const searchAndCloseDebounced = useDebounce(async () => {\n if (isOpen.value) {\n unwatchSearchBoxQuery()\n await $x.emit('UserAcceptedAQuery', $x.query.searchBox)\n close()\n }\n }, props.searchAndCloseDebounceInMs)\n\n /**\n * Watcher triggered when `hasContent` change and the `searchAndCloseOnNoContent` flag is active\n * with the following casuistics:\n * 1. Empathize has content: unwatch the search-box query and cancel debounced search&close.\n * 2. Empathize has NO content: create a watcher for the search-box query. It is to debounce the\n * search fallback when the user types in the search-box during debounced time.\n */\n watch(\n () => props.hasContent,\n () => {\n if (props.searchAndCloseOnNoContent) {\n if (props.hasContent) {\n unwatchSearchBoxQuery()\n searchAndCloseDebounced.cancel()\n } else {\n unwatchSearchBoxQuery = watch(() => $x.query.searchBox, searchAndCloseDebounced, {\n immediate: true,\n })\n }\n }\n },\n )\n\n return { empathizeRef, isOpenAndHasContent, open, close }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`EmpathizeOpened`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `true` and `hasContent` to `true`.\n The event payload is undefined and can have a metadata with the module and the element that emitted it.\n- [`EmpathizeClosed`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `false` and `hasContent` to `true`.\n The event payload is undefined and can have a metadata with the module and the element that emitted it.\n\n## Examples\n\nThis component will listen to the configured events in `eventsToOpenEmpathize` and\n`eventsToCloseEmpathize` props and open/close itself accordingly. By default, those props values\nare:\n\n- Open: `UserFocusedSearchBox`, `UserIsTypingAQuery`, `UserClickedSearchBox`\n- Close: `UserClosedEmpathize`, `UserSelectedASuggestion`, `UserPressedEnterKey`, `UserBlurredSearchBox`\n\n### Basic example\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation.\n\n```vue\n<template>\n <Empathize>\n <BaseKeyboardNavigation>\n <QuerySuggestions />\n <PopularSearches />\n <HistoryQueries />\n </BaseKeyboardNavigation>\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport BaseKeyboardNavigation from '@empathyco/x-components/js/components/base-keyboard-navigation.vue'\nimport QuerySuggestions from '@empathyco/x-components/js/x-modules/query-suggestions/components/query-suggestions.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport HistoryQueries from '@empathyco/x-components/js/x-modules/history-queries/components/history-queries.vue'\n</script>\n```\n\nDefining custom values for the events to open and close the Empathize. For example, opening it when\nthe search box loses the focus and closing it when the search box receives the focus:\n\n```vue\n<template>\n <Empathize\n :events-to-open-empathize=\"['UserBlurredSearchBox']\"\n :events-to-close-empathize=\"['UserFocusedSearchBox']\"\n >\n Please, type a query in the Search Box.\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\n</script>\n```\n\nAn animation can be used for the opening and closing using the `animation` prop. The animation must\nbe a component with a `Transition` and a slot inside:\n\n```vue\n<template>\n <Empathize :animation=\"collapseFromTop\">\n <PopularSearches />\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport CollapseFromTop from './collapseFromTop.vue'\nconst animation = CollapseFromTop\n</script>\n```\n\n### Advanced example\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation. It also configures `searchAndCloseOnNoContent` to trigger a search and close the empathize\nwhen it has no content as fallback behaviour. To do that, `hasContent` prop must be reactive to know\nif the empathize has content or not. It also configures `searchAndCloseDebounceInMs` to 500ms as debounce time to search and close the empathize when it has no content.\n\n```vue\n<template>\n <Empathize\n :animation=\"empathizeAnimation\"\n :events-to-close-empathize=\"empathizeCloseEvents\"\n :has-content=\"showEmpathize\"\n :search-and-close-debounce-in-ms=\"500\"\n search-and-close-on-no-content\n >\n <BaseKeyboardNavigation>\n <QuerySuggestions />\n <PopularSearches />\n <HistoryQueries />\n </BaseKeyboardNavigation>\n </Empathize>\n</template>\n\n<script setup>\nimport Empathize from '@empathyco/x-components/js/x-modules/empathize/components/empathize.vue'\nimport BaseKeyboardNavigation from '@empathyco/x-components/js/components/base-keyboard-navigation.vue'\nimport QuerySuggestions from '@empathyco/x-components/js/x-modules/query-suggestions/components/query-suggestions.vue'\nimport PopularSearches from '@empathyco/x-components/js/x-modules/popular-searches/components/popular-searches.vue'\nimport HistoryQueries from '@empathyco/x-components/js/x-modules/history-queries/components/history-queries.vue'\nimport CollapseFromTop from './collapseFromTop.vue'\nimport { ref } from 'vue'\nconst empathizeAnimation = CollapseFromTop\nconst empathizeCloseEvents = ['UserClosedEmpathize', 'UserSelectedASuggestion']\nconst showEmpathize = ref(true)\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,KAAK,CAAC,UAAU,EACtB,MAAI;AACF,YAAA,IAAI,KAAK,CAAC,yBAAyB,EAAE;AACnC,gBAAA,IAAI,KAAK,CAAC,UAAU,EAAE;AACpB,oBAAA,qBAAqB,EAAC;oBACtB,uBAAuB,CAAC,MAAM,EAAC;gBACjC;qBAAO;AACL,oBAAA,qBAAoB,GAAI,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,uBAAuB,EAAE;AAC/E,wBAAA,SAAS,EAAE,IAAI;AAChB,qBAAA,CAAA;gBACH;YACF;AACF,QAAA,CAAC,CACH;QAEA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAI,EAAE;IAC1D,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,10 +1,5 @@
1
- import '@vue/devtools-api';
2
- import '../../plugins/devtools/timeline.devtools.js';
3
- import '@empathyco/x-utils';
4
- import 'rxjs/operators';
5
- import 'rxjs';
6
- import '../../plugins/devtools/colors.utils.js';
7
1
  import '../../plugins/x-bus.js';
2
+ import '@empathyco/x-utils';
8
3
  import { XPlugin } from '../../plugins/x-plugin.js';
9
4
  import { experienceControlsEmitters } from './store/emitters.js';
10
5
  import { experienceControlsXStoreModule } from './store/module.js';
@@ -1 +1 @@
1
- {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/experience-controls/x-module.ts"],"sourcesContent":["import type { XModule } from '../x-modules.types'\nimport type { ExperienceControlsXStoreModule } from './store/types'\nimport { XPlugin } from '../../plugins/index'\nimport { experienceControlsEmitters } from './store/emitters'\nimport { experienceControlsXStoreModule } from './store/module'\nimport { experienceControlsWiring } from './wiring'\n\n/**\n * Search {@link XModule} alias.\n *\n * @public\n */\nexport type ExperienceControlsXModule = XModule<ExperienceControlsXStoreModule>\n\n/**\n * Search {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `x-controls` entry point.\n *\n * @public\n */\nexport const experienceControlsXModule: ExperienceControlsXModule = {\n name: 'experienceControls',\n storeModule: experienceControlsXStoreModule,\n storeEmitters: experienceControlsEmitters,\n wiring: experienceControlsWiring,\n}\n\nXPlugin.registerXModule(experienceControlsXModule)\n"],"names":[],"mappings":";;;;;;;;;;;;AAcA;;;;;AAKG;AACI,MAAM,yBAAyB,GAA8B;AAClE,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,WAAW,EAAE,8BAA8B;AAC3C,IAAA,aAAa,EAAE,0BAA0B;AACzC,IAAA,MAAM,EAAE,wBAAwB;;AAGlC,OAAO,CAAC,eAAe,CAAC,yBAAyB,CAAC;;;;"}
1
+ {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/experience-controls/x-module.ts"],"sourcesContent":["import type { XModule } from '../x-modules.types'\nimport type { ExperienceControlsXStoreModule } from './store/types'\nimport { XPlugin } from '../../plugins/index'\nimport { experienceControlsEmitters } from './store/emitters'\nimport { experienceControlsXStoreModule } from './store/module'\nimport { experienceControlsWiring } from './wiring'\n\n/**\n * Search {@link XModule} alias.\n *\n * @public\n */\nexport type ExperienceControlsXModule = XModule<ExperienceControlsXStoreModule>\n\n/**\n * Search {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `x-controls` entry point.\n *\n * @public\n */\nexport const experienceControlsXModule: ExperienceControlsXModule = {\n name: 'experienceControls',\n storeModule: experienceControlsXStoreModule,\n storeEmitters: experienceControlsEmitters,\n wiring: experienceControlsWiring,\n}\n\nXPlugin.registerXModule(experienceControlsXModule)\n"],"names":[],"mappings":";;;;;;;AAcA;;;;;AAKG;AACI,MAAM,yBAAyB,GAA8B;AAClE,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,WAAW,EAAE,8BAA8B;AAC3C,IAAA,aAAa,EAAE,0BAA0B;AACzC,IAAA,MAAM,EAAE,wBAAwB;;AAGlC,OAAO,CAAC,eAAe,CAAC,yBAAyB,CAAC;;;;"}
@@ -1,10 +1,5 @@
1
- import '@vue/devtools-api';
2
- import '../../plugins/devtools/timeline.devtools.js';
3
- import '@empathyco/x-utils';
4
- import 'rxjs/operators';
5
- import 'rxjs';
6
- import '../../plugins/devtools/colors.utils.js';
7
1
  import '../../plugins/x-bus.js';
2
+ import '@empathyco/x-utils';
8
3
  import { XPlugin } from '../../plugins/x-plugin.js';
9
4
  import { extraParamsEmitters } from './store/emitters.js';
10
5
  import { extraParamsXStoreModule } from './store/module.js';
@@ -1 +1 @@
1
- {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/extra-params/x-module.ts"],"sourcesContent":["import type { XModule } from '../x-modules.types'\nimport type { ExtraParamsXStoreModule } from './store/types'\nimport { XPlugin } from '../../plugins/index'\nimport { extraParamsEmitters } from './store/emitters'\nimport { extraParamsXStoreModule } from './store/module'\nimport { extraParamsWiring } from './wiring'\n\n/**\n * ExtraParams {@link XModule} alias.\n *\n * @public\n */\nexport type ExtraParamsXModule = XModule<ExtraParamsXStoreModule>\n\n/**\n * ExtraParams {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `extraParams` entry point.\n *\n * @public\n */\nexport const extraParamsXModule: ExtraParamsXModule = {\n name: 'extraParams',\n storeModule: extraParamsXStoreModule,\n storeEmitters: extraParamsEmitters,\n wiring: extraParamsWiring,\n}\n\nXPlugin.registerXModule(extraParamsXModule)\n"],"names":[],"mappings":";;;;;;;;;;;;AAcA;;;;;AAKG;AACI,MAAM,kBAAkB,GAAuB;AACpD,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,WAAW,EAAE,uBAAuB;AACpC,IAAA,aAAa,EAAE,mBAAmB;AAClC,IAAA,MAAM,EAAE,iBAAiB;;AAG3B,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC;;;;"}
1
+ {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/extra-params/x-module.ts"],"sourcesContent":["import type { XModule } from '../x-modules.types'\nimport type { ExtraParamsXStoreModule } from './store/types'\nimport { XPlugin } from '../../plugins/index'\nimport { extraParamsEmitters } from './store/emitters'\nimport { extraParamsXStoreModule } from './store/module'\nimport { extraParamsWiring } from './wiring'\n\n/**\n * ExtraParams {@link XModule} alias.\n *\n * @public\n */\nexport type ExtraParamsXModule = XModule<ExtraParamsXStoreModule>\n\n/**\n * ExtraParams {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `extraParams` entry point.\n *\n * @public\n */\nexport const extraParamsXModule: ExtraParamsXModule = {\n name: 'extraParams',\n storeModule: extraParamsXStoreModule,\n storeEmitters: extraParamsEmitters,\n wiring: extraParamsWiring,\n}\n\nXPlugin.registerXModule(extraParamsXModule)\n"],"names":[],"mappings":";;;;;;;AAcA;;;;;AAKG;AACI,MAAM,kBAAkB,GAAuB;AACpD,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,WAAW,EAAE,uBAAuB;AACpC,IAAA,aAAa,EAAE,mBAAmB;AAClC,IAAA,MAAM,EAAE,iBAAiB;;AAG3B,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC;;;;"}
@@ -2,15 +2,11 @@ import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import '../../../../composables/create-use-device.js';
3
3
  import { use$x } from '../../../../composables/use-_x.js';
4
4
  import 'vuex';
5
- import '@vue/devtools-api';
6
- import '../../../../plugins/devtools/timeline.devtools.js';
7
- import '@empathyco/x-utils';
8
- import 'rxjs/operators';
9
- import 'rxjs';
10
- import '../../../../plugins/devtools/colors.utils.js';
11
5
  import '../../../../plugins/x-bus.js';
6
+ import '@empathyco/x-utils';
12
7
  import '../../../../plugins/x-plugin.js';
13
8
  import '@vueuse/core';
9
+ import 'rxjs';
14
10
  import { facetsXModule } from '../../x-module.js';
15
11
 
16
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"editable-number-range-filter.vue2.js","sources":["../../../../../../src/x-modules/facets/components/filters/editable-number-range-filter.vue"],"sourcesContent":["<template>\n <div\n class=\"x-editable-number-range-filter\"\n :class=\"cssClasses\"\n data-test=\"editable-number-range-filter\"\n >\n <!--\n @slot Empty slot used to customize the whole component.\n @binding {min} number - Component min value.\n @binding {max} number - Component max value.\n @binding {setMin} function - Component min setter.\n @binding {setMax} function - Component max setter.\n @binding {emitUserModifiedFilter} function - It emits the\n `UserModifiedEditableNumberRangeFilter` X event.\n @binding {clearValues} function - It sets component min and max values to null.\n @binding {hasError} boolean - Returns true when there is an error with component values.\n -->\n <slot\n v-bind=\"{\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n }\"\n >\n <!-- eslint-disable max-len -->\n <input\n name=\"min\"\n type=\"number\"\n class=\"x-editable-number-range-filter__input x-editable-number-range-filter__input--min x-input\"\n :class=\"inputsClass\"\n :value=\"!isAnyRange ? min : null\"\n data-test=\"range-min\"\n :aria-label=\"rangeFilterMin\"\n @change=\"setMin(($event?.target as HTMLInputElement)?.valueAsNumber)\"\n />\n\n <input\n name=\"max\"\n type=\"number\"\n class=\"x-editable-number-range-filter__input x-editable-number-range-filter__input--max x-input\"\n :class=\"inputsClass\"\n :value=\"max\"\n data-test=\"range-max\"\n :aria-label=\"rangeFilterMax\"\n @change=\"setMax(($event?.target as HTMLInputElement)?.valueAsNumber)\"\n />\n <!-- eslint-enable max-len -->\n\n <button\n v-if=\"!isInstant\"\n class=\"x-editable-number-range-filter__apply x-button\"\n :class=\"buttonsClass\"\n :disabled=\"hasError\"\n data-test=\"range-apply\"\n @click=\"emitUserModifiedFilter\"\n >\n <!--\n @slot Slot used to customize the apply button content.\n -->\n <slot name=\"apply-content\">✓</slot>\n </button>\n\n <button\n v-if=\"renderClearButton\"\n class=\"x-editable-number-range-filter__clear x-button\"\n :class=\"buttonsClass\"\n data-test=\"range-clear\"\n @click=\"clearValues\"\n >\n <!--\n @slot Slot used to customize the clear button content.\n -->\n <slot name=\"clear-content\">𐄂</slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type {\n EditableNumberRangeFilter as EditableNumberRangeFilterModel,\n RangeValue,\n} from '@empathyco/x-types'\nimport type { PropType, Ref } from 'vue'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { use$x } from '../../../../composables'\nimport { facetsXModule } from '../../x-module'\n\n/**\n * Renders an editable number range filter. It has two input fields to handle min and max values,\n * emitting the needed events when clicked.\n *\n * It provides a default slot, with some utils bind, to customize the whole component; and two\n * named slots `apply-content` and `clear-content` to override each button content.\n *\n * If `instant` prop is true, the needed events are emitted immediately; else, apply button is\n * rendered to confirm to do it. False by default.\n *\n * If `clear` prop is true, clear button, which sets to null component min and max values, is\n * rendered. True by default.\n *\n * @public\n */\nexport default defineComponent({\n name: 'EditableNumberRangeFilter',\n xModule: facetsXModule.name,\n props: {\n /**\n * The filter data to render and edit.\n *\n * @public\n */\n filter: {\n type: Object as PropType<EditableNumberRangeFilterModel>,\n required: true,\n },\n /**\n * If `instant` prop is true, the needed events are emitted immediately; else, apply button is\n * rendered to confirm to do it. False by default.\n *\n * @public\n */\n isInstant: Boolean,\n /**\n * If `clear` prop is true, clear button, which sets to null component min and max values, is\n * rendered. True by default.\n *\n * @public\n */\n hasClearButton: {\n type: Boolean,\n default: true,\n },\n /** Class inherited by content element. */\n inputsClass: String,\n /** Class inherited by content element. */\n buttonsClass: String,\n },\n setup(props) {\n const $x = use$x()\n\n const rangeFilterMin = 'minimum amount'\n const rangeFilterMax = 'maximum amount'\n /**\n * Component min value.\n *\n * @internal\n */\n const min: Ref<RangeValue['min']> = ref(null)\n /**\n * Component max value.\n *\n * @internal\n */\n const max: Ref<RangeValue['max']> = ref(null)\n\n /**\n * Returns {@link @empathyco/x-types#RangeValue} with component min and max\n * values.\n *\n * @returns Range value object with component values.\n *\n * @internal\n */\n const range = computed((): RangeValue => {\n return { min: min.value, max: max.value }\n })\n\n /**\n * It checks if component min and max values are valid.\n *\n * @returns True if there is any error in the component min and max values.\n *\n * @internal\n */\n const hasError = computed(\n () => min.value !== null && max.value !== null && min.value > max.value,\n )\n\n /**\n * It checks if component min and max values are different from the ones within the filter\n * provided as property.\n *\n * @returns True if they are different.\n *\n * @internal\n */\n const areValuesDifferent = computed(\n () => min.value !== props.filter.range.min || max.value !== props.filter.range.max,\n )\n\n /**\n * Dynamic CSS classes.\n *\n * @returns Object which contains dynamic CSS classes.\n *\n * @internal\n */\n const cssClasses = computed(() => {\n return { 'x-editable-number-range-filter--error': hasError.value }\n })\n\n /**\n * Checks if the range of the filter allows any value, which happens when the min is\n * null or 0 and the max is null.\n *\n * @returns True if the range of the filter allows any value.\n *\n * @internal\n */\n const isAnyRange = computed(() => !min.value && max.value === null)\n\n /**\n * It returns true if the property `hasClearButton` is true and there are values to clear.\n *\n * @returns True if the clear button has to be rendered.\n *\n * @internal\n */\n const renderClearButton = computed(() => props.hasClearButton && !isAnyRange.value)\n\n /**\n * It emits {@link FacetsXEvents.UserModifiedEditableNumberRangeFilter} event if there are no\n * errors and component `min` and `max` values are different than `filter.range` ones.\n *\n * @internal\n */\n const emitUserModifiedFilter = () => {\n if (!hasError.value && areValuesDifferent.value) {\n $x.emit('UserModifiedEditableNumberRangeFilter', {\n ...props.filter,\n range: range.value,\n })\n }\n }\n\n /**\n * It returns the number if possible or null otherwise.\n *\n * @param value - Value.\n * @returns The element value as a number if possible or null.\n *\n * @internal\n */\n const parseRangeValue = (value: number) => (Number.isNaN(value) ? null : value)\n\n /**\n * `min` setter.\n *\n * @param value - The component `min` value to be set.\n *\n * @internal\n */\n const setMin = (value: number) => {\n min.value = parseRangeValue(value)\n }\n\n /**\n * `max` setter.\n *\n * @param value - The component `max` value to be set.\n *\n * @internal\n */\n const setMax = (value: number) => {\n max.value = parseRangeValue(value)\n }\n\n /**\n * It sets component `min` and `max` values to null , and it emits the change if component is\n * working in instant mode.\n *\n * @internal\n */\n const clearValues = () => {\n min.value = null\n max.value = null\n }\n\n /**\n * It resets the min/max range values to null if the\n * {@link FacetsXEvents.UserClickedClearAllFilters} event is fired.\n *\n * @public\n */\n $x.on('UserClickedClearAllFilters', false).subscribe(clearValues)\n\n /**\n * It watches the filter range values passed as property and updates component range values if\n * they change.\n *\n * @param newRange - New range value.\n *\n * @internal\n */\n watch(\n () => props.filter.range,\n (newRange: RangeValue) => {\n min.value = newRange.min\n max.value = newRange.max\n },\n { immediate: true, deep: true },\n )\n\n /**\n * It watches range values in order to emit the event with the change if `isInstant`\n * property is true.\n *\n * @internal\n */\n watch(\n range,\n () => {\n if (props.isInstant) {\n emitUserModifiedFilter()\n }\n },\n { deep: true },\n )\n\n return {\n rangeFilterMin,\n rangeFilterMax,\n cssClasses,\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n renderClearButton,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-editable-number-range-filter--error .x-editable-number-range-filter__input {\n border-color: red;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserModifiedEditableNumberRangeFilter`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n this event is emitted instantly after typing the value or clicking the submit button. The event\n payload in both cases is an object containing the filter and the new value for the range.\n\n## Example\n\nRenders an editable number range filter. It has two input fields to handle min and max values,\nemitting the needed events when clicked.\n\nIt provides a default slot, with some utils bind, to customize the whole component; and two named\nslots `apply-content` and `clear-content` to override each button content.\n\nIf `instant` prop is true, the needed events are emitted immediately; else, apply button is rendered\nto confirm to do it. False by default.\n\nIf `clear` prop is true, clear button, which sets to null component min and max values, is rendered.\nTrue by default.\n\n### Basic usage\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\" />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Properties\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\" :isInstant=\"true\" :hasClearButton=\"false\" />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing content slots\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\">\n <template #apply-content>Apply</template>\n <template #clear-content>Clear</template>\n </EditableNumberRangeFilter>\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing default slot\n\n```vue\n<template>\n <EditableNumberRangeFilter\n :filter=\"editableFilter\"\n #default=\"{\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n }\"\n >\n <button @click=\"emitUserModifiedFilter\">✅ Apply!</button>\n <button @click=\"clearValues\">🗑 Clear!</button>\n <input :value=\"!isAnyRange ? min : null\" @change=\"setMin($event.target.valueAsNumber)\" />\n <input :value=\"max\" @change=\"setMax($event.target.valueAsNumber)\" />\n <div class=\"has-error\" v-if=\"hasError\">⚠️ Invalid range values</div>\n </EditableNumberRangeFilter>\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing the items with classes\n\nThe `buttonsClass` and `inputsClass` props can be used to add classes to the inputs and buttons of\nthe component.\n\n```\n<template>\n <EditableNumberRangeFilter\n :filter=\"editableFilter\"\n :inputsClass=\"'my-inputs-class'\"\n :buttonsClass=\"'my-buttons-class'\"\n />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA6FA;;;;;;;;;;;;;;AAcE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAAkD;AACxD,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;;AAKE;AACF,QAAA,SAAS,EAAE,OAAO;AAClB;;;;;AAKE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;;AAED,QAAA,WAAW,EAAE,MAAM;;AAEnB,QAAA,YAAY,EAAE,MAAM;AACrB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC;QAEjB,MAAM,cAAa,GAAI,gBAAe;QACtC,MAAM,cAAa,GAAI,gBAAe;AACtC;;;;AAIE;AACF,QAAA,MAAM,GAAG,GAA2B,GAAG,CAAC,IAAI,CAAA;AAC5C;;;;AAIE;AACF,QAAA,MAAM,GAAG,GAA2B,GAAG,CAAC,IAAI,CAAA;AAE5C;;;;;;;AAOE;AACF,QAAA,MAAM,KAAI,GAAI,QAAQ,CAAC,MAAgB;AACrC,YAAA,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,KAAI,EAAE;AAC1C,QAAA,CAAC,CAAA;AAED;;;;;;AAME;QACF,MAAM,QA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AAG;AAC9B,YAAA,GAAG,CAAC,KAAI,GAAI,eAAe,CAAC,KAAK,CAAA;AACnC,QAAA,CAAA;AAEA;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,CAAC,KAAa,KAAG;AAC9B,YAAA,GAAG,CAAC,KAAI,GAAI,eAAe,CAAC,KAAK,CAAA;AACnC,QAAA,CAAA;AAEA;;;;;AAKE;QACF,MAAM,WAAU,GAAI,MAAI;AACtB,YAAA,GAAG,CAAC,KAAI,GAAI,IAAG;AACf,YAAA,GAAG,CAAC,KAAI,GAAI,IAAG;AACjB,QAAA,CAAA;AAEA;;;;;AAKE;AACF,QAAA,EAAE,CAAC,EAAE,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAA;AAEhE;;;;;;;AAOE;AACF,QAAA,KAAK,CACH,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,EACxB,CAAC,QAAoB,KAAG;AACtB,YAAA,GAAG,CAAC,KAAI,GAAI,QAAQ,CAAC,GAAE;AACvB,YAAA,GAAG,CAAC,KAAI,GAAI,QAAQ,CAAC,GAAE;QACzB,CAAC,EACD,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAG,EAAG,CACjC;AAEA;;;;;AAKE;AACF,QAAA,KAAK,CACH,KAAK,EACL,MAAI;AACF,YAAA,IAAI,KAAK,CAAC,SAAS,EAAE;AACnB,gBAAA,sBAAsB,EAAC;YACzB;AACF,QAAA,CAAC,EACD,EAAE,IAAI,EAAE,IAAG,EAAG,CAChB;QAEA,OAAO;YACL,cAAc;YACd,cAAc;YACd,UAAU;YACV,GAAG;YACH,GAAG;YACH,MAAM;YACN,MAAM;YACN,sBAAsB;YACtB,WAAW;YACX,QAAQ;YACR,UAAU;YACV,iBAAiB;SACnB;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"editable-number-range-filter.vue2.js","sources":["../../../../../../src/x-modules/facets/components/filters/editable-number-range-filter.vue"],"sourcesContent":["<template>\n <div\n class=\"x-editable-number-range-filter\"\n :class=\"cssClasses\"\n data-test=\"editable-number-range-filter\"\n >\n <!--\n @slot Empty slot used to customize the whole component.\n @binding {min} number - Component min value.\n @binding {max} number - Component max value.\n @binding {setMin} function - Component min setter.\n @binding {setMax} function - Component max setter.\n @binding {emitUserModifiedFilter} function - It emits the\n `UserModifiedEditableNumberRangeFilter` X event.\n @binding {clearValues} function - It sets component min and max values to null.\n @binding {hasError} boolean - Returns true when there is an error with component values.\n -->\n <slot\n v-bind=\"{\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n }\"\n >\n <!-- eslint-disable max-len -->\n <input\n name=\"min\"\n type=\"number\"\n class=\"x-editable-number-range-filter__input x-editable-number-range-filter__input--min x-input\"\n :class=\"inputsClass\"\n :value=\"!isAnyRange ? min : null\"\n data-test=\"range-min\"\n :aria-label=\"rangeFilterMin\"\n @change=\"setMin(($event?.target as HTMLInputElement)?.valueAsNumber)\"\n />\n\n <input\n name=\"max\"\n type=\"number\"\n class=\"x-editable-number-range-filter__input x-editable-number-range-filter__input--max x-input\"\n :class=\"inputsClass\"\n :value=\"max\"\n data-test=\"range-max\"\n :aria-label=\"rangeFilterMax\"\n @change=\"setMax(($event?.target as HTMLInputElement)?.valueAsNumber)\"\n />\n <!-- eslint-enable max-len -->\n\n <button\n v-if=\"!isInstant\"\n class=\"x-editable-number-range-filter__apply x-button\"\n :class=\"buttonsClass\"\n :disabled=\"hasError\"\n data-test=\"range-apply\"\n @click=\"emitUserModifiedFilter\"\n >\n <!--\n @slot Slot used to customize the apply button content.\n -->\n <slot name=\"apply-content\">✓</slot>\n </button>\n\n <button\n v-if=\"renderClearButton\"\n class=\"x-editable-number-range-filter__clear x-button\"\n :class=\"buttonsClass\"\n data-test=\"range-clear\"\n @click=\"clearValues\"\n >\n <!--\n @slot Slot used to customize the clear button content.\n -->\n <slot name=\"clear-content\">𐄂</slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type {\n EditableNumberRangeFilter as EditableNumberRangeFilterModel,\n RangeValue,\n} from '@empathyco/x-types'\nimport type { PropType, Ref } from 'vue'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { use$x } from '../../../../composables'\nimport { facetsXModule } from '../../x-module'\n\n/**\n * Renders an editable number range filter. It has two input fields to handle min and max values,\n * emitting the needed events when clicked.\n *\n * It provides a default slot, with some utils bind, to customize the whole component; and two\n * named slots `apply-content` and `clear-content` to override each button content.\n *\n * If `instant` prop is true, the needed events are emitted immediately; else, apply button is\n * rendered to confirm to do it. False by default.\n *\n * If `clear` prop is true, clear button, which sets to null component min and max values, is\n * rendered. True by default.\n *\n * @public\n */\nexport default defineComponent({\n name: 'EditableNumberRangeFilter',\n xModule: facetsXModule.name,\n props: {\n /**\n * The filter data to render and edit.\n *\n * @public\n */\n filter: {\n type: Object as PropType<EditableNumberRangeFilterModel>,\n required: true,\n },\n /**\n * If `instant` prop is true, the needed events are emitted immediately; else, apply button is\n * rendered to confirm to do it. False by default.\n *\n * @public\n */\n isInstant: Boolean,\n /**\n * If `clear` prop is true, clear button, which sets to null component min and max values, is\n * rendered. True by default.\n *\n * @public\n */\n hasClearButton: {\n type: Boolean,\n default: true,\n },\n /** Class inherited by content element. */\n inputsClass: String,\n /** Class inherited by content element. */\n buttonsClass: String,\n },\n setup(props) {\n const $x = use$x()\n\n const rangeFilterMin = 'minimum amount'\n const rangeFilterMax = 'maximum amount'\n /**\n * Component min value.\n *\n * @internal\n */\n const min: Ref<RangeValue['min']> = ref(null)\n /**\n * Component max value.\n *\n * @internal\n */\n const max: Ref<RangeValue['max']> = ref(null)\n\n /**\n * Returns {@link @empathyco/x-types#RangeValue} with component min and max\n * values.\n *\n * @returns Range value object with component values.\n *\n * @internal\n */\n const range = computed((): RangeValue => {\n return { min: min.value, max: max.value }\n })\n\n /**\n * It checks if component min and max values are valid.\n *\n * @returns True if there is any error in the component min and max values.\n *\n * @internal\n */\n const hasError = computed(\n () => min.value !== null && max.value !== null && min.value > max.value,\n )\n\n /**\n * It checks if component min and max values are different from the ones within the filter\n * provided as property.\n *\n * @returns True if they are different.\n *\n * @internal\n */\n const areValuesDifferent = computed(\n () => min.value !== props.filter.range.min || max.value !== props.filter.range.max,\n )\n\n /**\n * Dynamic CSS classes.\n *\n * @returns Object which contains dynamic CSS classes.\n *\n * @internal\n */\n const cssClasses = computed(() => {\n return { 'x-editable-number-range-filter--error': hasError.value }\n })\n\n /**\n * Checks if the range of the filter allows any value, which happens when the min is\n * null or 0 and the max is null.\n *\n * @returns True if the range of the filter allows any value.\n *\n * @internal\n */\n const isAnyRange = computed(() => !min.value && max.value === null)\n\n /**\n * It returns true if the property `hasClearButton` is true and there are values to clear.\n *\n * @returns True if the clear button has to be rendered.\n *\n * @internal\n */\n const renderClearButton = computed(() => props.hasClearButton && !isAnyRange.value)\n\n /**\n * It emits {@link FacetsXEvents.UserModifiedEditableNumberRangeFilter} event if there are no\n * errors and component `min` and `max` values are different than `filter.range` ones.\n *\n * @internal\n */\n const emitUserModifiedFilter = () => {\n if (!hasError.value && areValuesDifferent.value) {\n $x.emit('UserModifiedEditableNumberRangeFilter', {\n ...props.filter,\n range: range.value,\n })\n }\n }\n\n /**\n * It returns the number if possible or null otherwise.\n *\n * @param value - Value.\n * @returns The element value as a number if possible or null.\n *\n * @internal\n */\n const parseRangeValue = (value: number) => (Number.isNaN(value) ? null : value)\n\n /**\n * `min` setter.\n *\n * @param value - The component `min` value to be set.\n *\n * @internal\n */\n const setMin = (value: number) => {\n min.value = parseRangeValue(value)\n }\n\n /**\n * `max` setter.\n *\n * @param value - The component `max` value to be set.\n *\n * @internal\n */\n const setMax = (value: number) => {\n max.value = parseRangeValue(value)\n }\n\n /**\n * It sets component `min` and `max` values to null , and it emits the change if component is\n * working in instant mode.\n *\n * @internal\n */\n const clearValues = () => {\n min.value = null\n max.value = null\n }\n\n /**\n * It resets the min/max range values to null if the\n * {@link FacetsXEvents.UserClickedClearAllFilters} event is fired.\n *\n * @public\n */\n $x.on('UserClickedClearAllFilters', false).subscribe(clearValues)\n\n /**\n * It watches the filter range values passed as property and updates component range values if\n * they change.\n *\n * @param newRange - New range value.\n *\n * @internal\n */\n watch(\n () => props.filter.range,\n (newRange: RangeValue) => {\n min.value = newRange.min\n max.value = newRange.max\n },\n { immediate: true, deep: true },\n )\n\n /**\n * It watches range values in order to emit the event with the change if `isInstant`\n * property is true.\n *\n * @internal\n */\n watch(\n range,\n () => {\n if (props.isInstant) {\n emitUserModifiedFilter()\n }\n },\n { deep: true },\n )\n\n return {\n rangeFilterMin,\n rangeFilterMax,\n cssClasses,\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n renderClearButton,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-editable-number-range-filter--error .x-editable-number-range-filter__input {\n border-color: red;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserModifiedEditableNumberRangeFilter`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n this event is emitted instantly after typing the value or clicking the submit button. The event\n payload in both cases is an object containing the filter and the new value for the range.\n\n## Example\n\nRenders an editable number range filter. It has two input fields to handle min and max values,\nemitting the needed events when clicked.\n\nIt provides a default slot, with some utils bind, to customize the whole component; and two named\nslots `apply-content` and `clear-content` to override each button content.\n\nIf `instant` prop is true, the needed events are emitted immediately; else, apply button is rendered\nto confirm to do it. False by default.\n\nIf `clear` prop is true, clear button, which sets to null component min and max values, is rendered.\nTrue by default.\n\n### Basic usage\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\" />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Properties\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\" :isInstant=\"true\" :hasClearButton=\"false\" />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing content slots\n\n```vue\n<template>\n <EditableNumberRangeFilter :filter=\"editableFilter\">\n <template #apply-content>Apply</template>\n <template #clear-content>Clear</template>\n </EditableNumberRangeFilter>\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing default slot\n\n```vue\n<template>\n <EditableNumberRangeFilter\n :filter=\"editableFilter\"\n #default=\"{\n min,\n max,\n setMin,\n setMax,\n emitUserModifiedFilter,\n clearValues,\n hasError,\n isAnyRange,\n }\"\n >\n <button @click=\"emitUserModifiedFilter\">✅ Apply!</button>\n <button @click=\"clearValues\">🗑 Clear!</button>\n <input :value=\"!isAnyRange ? min : null\" @change=\"setMin($event.target.valueAsNumber)\" />\n <input :value=\"max\" @change=\"setMax($event.target.valueAsNumber)\" />\n <div class=\"has-error\" v-if=\"hasError\">⚠️ Invalid range values</div>\n </EditableNumberRangeFilter>\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n\n### Customizing the items with classes\n\nThe `buttonsClass` and `inputsClass` props can be used to add classes to the inputs and buttons of\nthe component.\n\n```\n<template>\n <EditableNumberRangeFilter\n :filter=\"editableFilter\"\n :inputsClass=\"'my-inputs-class'\"\n :buttonsClass=\"'my-buttons-class'\"\n />\n</template>\n\n<script setup>\nimport { EditableNumberRangeFilter } from '@empathyco/x-components/facets'\nimport { ref } from 'vue'\n\nconst editableFilter = ref({\n facetId: 'age',\n id: 'age:primary',\n label: 'primary',\n modelName: 'EditableNumberRangeFilter',\n range: {\n min: null,\n max: null,\n },\n})\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;AA6FA;;;;;;;;;;;;;;AAcE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAAkD;AACxD,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;;AAKE;AACF,QAAA,SAAS,EAAE,OAAO;AAClB;;;;;AAKE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;;AAED,QAAA,WAAW,EAAE,MAAM;;AAEnB,QAAA,YAAY,EAAE,MAAM;AACrB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC;QAEjB,MAAM,cAAa,GAAI,gBAAe;QACtC,MAAM,cAAa,GAAI,gBAAe;AACtC;;;;AAIE;AACF,QAAA,MAAM,GAAG,GAA2B,GAAG,CAAC,IAAI,CAAA;AAC5C;;;;AAIE;AACF,QAAA,MAAM,GAAG,GAA2B,GAAG,CAAC,IAAI,CAAA;AAE5C;;;;;;;AAOE;AACF,QAAA,MAAM,KAAI,GAAI,QAAQ,CAAC,MAAgB;AACrC,YAAA,OAAO,EAAE,GAAG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SACnB;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,11 +1,6 @@
1
1
  import { isFacetFilter, isHierarchicalFacet } from '@empathyco/x-types';
2
- import '@vue/devtools-api';
3
- import '../../../plugins/devtools/timeline.devtools.js';
4
- import '@empathyco/x-utils';
5
- import 'rxjs/operators';
6
- import 'rxjs';
7
- import '../../../plugins/devtools/colors.utils.js';
8
2
  import '../../../plugins/x-bus.js';
3
+ import '@empathyco/x-utils';
9
4
  import { XPlugin } from '../../../plugins/x-plugin.js';
10
5
  import { isArrayEmpty, arrayToObject, groupItemsBy } from '../../../utils/array.js';
11
6
  import '../../../utils/storage.js';
@@ -1 +1 @@
1
- {"version":3,"file":"facets.service.js","sources":["../../../../../src/x-modules/facets/service/facets.service.ts"],"sourcesContent":["import type { Facet, Filter } from '@empathyco/x-types'\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { Store } from 'vuex'\nimport type { RootXStoreState } from '../../../store/index'\nimport type { FilterEntity } from '../entities/types'\nimport type { FacetGroupEntry, FacetsGetters } from '../store/types'\nimport type { FacetsGroup, FacetsService, FiltersMetadata } from './types'\nimport { isFacetFilter, isHierarchicalFacet } from '@empathyco/x-types'\nimport { XPlugin } from '../../../plugins/index'\nimport { arrayToObject, groupItemsBy, isArrayEmpty } from '../../../utils/index'\nimport { FilterEntityFactory } from '../entities/filter-entity.factory'\nimport { flatHierarchicalFilters } from '../utils'\n\n/**\n * Default implementation for the {@link FacetsService}.\n *\n * @public\n */\nexport class DefaultFacetsService implements FacetsService {\n /**\n * Global instance of the {@link FacetsService}.\n */\n public static instance: FacetsService = new DefaultFacetsService()\n\n public constructor(\n protected filterEntityFactory: FilterEntityFactory = FilterEntityFactory.instance,\n ) {}\n\n /**\n * The {@link https://vuex.vuejs.org/ | Vuex} store to use in the service.\n *\n * @returns The store.\n * @internal\n */\n protected get store(): Store<RootXStoreState> {\n return XPlugin.store\n }\n\n setFacets(facetsGroup: FacetsGroup): void {\n const newFilters = this.updateStore(facetsGroup)\n /* Ensures that filters are selected with valid values. For example, you can't set a single\n select facet with 2 or more selected filters */\n this.updateFiltersSelectedState(newFilters)\n }\n\n updateFacets(facetsGroup: FacetsGroup): void {\n const selectedFilters = this.getSelectedFilters()\n const newFilters = this.updateStore(facetsGroup)\n this.updateFiltersSelectedState(newFilters, selectedFilters)\n }\n\n updatePreselectedFilters(filters: Filter[]): void {\n this.setPreselectedFilter(filters)\n }\n\n selectPreselectedFilters(): void {\n this.select(this.store.state.x.facets.preselectedFilters)\n }\n\n clearFilters(facetIds?: Array<Facet['id']>, metadata?: FiltersMetadata): void {\n this.getSelectedFilters()\n .filter(filter => !facetIds || (isFacetFilter(filter) && facetIds.includes(filter.facetId)))\n .forEach(filter => this.deselect.bind(this)(filter, metadata))\n }\n\n clearFiltersWithMetadata({\n facetIds,\n metadata,\n }: { facetIds?: Array<Facet['id']>; metadata?: FiltersMetadata } = {}): void {\n this.clearFilters(facetIds, metadata)\n }\n\n deselect(filter: Filter, metadata?: Dictionary): void {\n this.getFilterEntity(filter).deselect(filter, metadata)\n }\n\n select(filterOrFilters: Filter | Filter[]): void {\n const filters = Array.isArray(filterOrFilters) ? filterOrFilters : [filterOrFilters]\n filters.forEach(filter => this.getFilterEntity(filter).select(filter))\n }\n\n toggle(filter: Filter): void {\n if (filter.selected) {\n this.deselect(filter)\n } else {\n this.select(filter)\n }\n }\n\n /**\n * Sets the query.\n *\n * @param query - The query searched.\n * @internal\n */\n setQuery(query: string): void {\n this.store.commit('x/facets/setQuery', query)\n }\n\n /**\n * Creates an entity from a filter DTO.\n *\n * @param filter - The filter to create an entity from.\n * @returns The filter entity.\n * @internal\n */\n protected getFilterEntity(filter: Filter): FilterEntity {\n return this.filterEntityFactory.getFilterEntity(this.store, filter)\n }\n\n /**\n * Sets in the store the Facets, the Filters and the FacetsGroup, without applying any logic\n * to the selected state.\n *\n * @param facetsGroup - The {@link FacetsGroup} to set into the store state.\n * @returns An array with the new filters.\n * @internal\n */\n protected updateStore(facetsGroup: FacetsGroup): Filter[] {\n this.removeGroupFacets(facetsGroup.id)\n this.removeGroupFilters(facetsGroup.id)\n facetsGroup.facets.forEach(facet => {\n this.setFacetGroup({ facetId: facet.id, groupId: facetsGroup.id })\n this.setFacet(facet)\n })\n const newFilters = this.flatFilters(facetsGroup)\n this.setFilters(newFilters)\n return newFilters\n }\n\n /**\n * This function returns the filters of the facets group flattened in an array. It keeps the\n * relations between the filters (parent--children).\n *\n * @privateRemarks If it is necessary to deal with more cases than the hierarchical, we need to\n * refactor this logic and maybe move it to the entities, to not make this service dependant of\n * the facet type. At the moment it is only one `if`, and is ok as long as no more `if`s are\n * needed.\n * @param facetsGroup - The facets group from where extract the filters to flat.\n * @returns An array with the filters flattened.\n * @internal\n */\n protected flatFilters(facetsGroup: FacetsGroup): Filter[] {\n return facetsGroup.facets.flatMap(facet =>\n isHierarchicalFacet(facet) ? flatHierarchicalFilters(facet.filters) : facet.filters,\n )\n }\n\n /**\n * Retrieves the selected filters from the store.\n *\n * @returns The list of selected filters of the store.\n * @internal\n */\n protected getSelectedFilters(): FacetsGetters['selectedFilters'] {\n // eslint-disable-next-line ts/no-unsafe-member-access,ts/no-unsafe-return\n return this.store.getters['x/facets/selectedFilters']\n }\n\n /**\n * Changes the filters selection state to match the store.\n *\n * @param newFilters - The list of filters to save.\n * @param previousFilters - (Optional) The list of old filters, used to set the `newFilters`\n * selected state.\n */\n protected updateFiltersSelectedState(newFilters: Filter[], previousFilters?: Filter[]): void {\n if (!isArrayEmpty(newFilters)) {\n const newStateFiltersMap = arrayToObject(previousFilters ?? newFilters, 'id')\n newFilters.forEach(filter => {\n const filterEntity = this.getFilterEntity(filter)\n if (newStateFiltersMap[filter.id]?.selected) {\n filterEntity.select(filter)\n } else {\n filterEntity.deselect(filter)\n }\n })\n }\n }\n\n /**\n * Removes the filters that belong to the given group.\n *\n * @param groupId - The id of the group from whom remove the filters that are in the store.\n *\n * @returns The removed filters.\n *\n * @internal\n */\n protected removeGroupFilters(groupId: FacetsGroup['id']): Filter[] {\n const filtersToRemove =\n groupItemsBy(Object.values(this.store.state.x.facets.filters), filter =>\n isFacetFilter(filter)\n ? this.store.state.x.facets.groups[filter.facetId]\n : '__unknown-group__',\n )[groupId] ?? []\n this.removeFilters(filtersToRemove)\n return filtersToRemove\n }\n\n /**\n * Removes the facets that belong to the given group.\n *\n * @param groupId - The id of the group from whom remove the facets that are in the store.\n * @returns The removed facets.\n * @internal\n */\n protected removeGroupFacets(groupId: FacetsGroup['id']): Omit<Facet, 'filters'>[] {\n const facetsToRemove = Object.values(this.store.state.x.facets.facets).filter(\n facet => this.store.state.x.facets.groups[facet.id] === groupId,\n )\n facetsToRemove.forEach(this.removeFacet.bind(this))\n return facetsToRemove\n }\n\n /**\n * Sets the group that a facet belongs to.\n *\n * @param facetGroup - The id of the facet, and the group it belongs to.\n * @internal\n */\n protected setFacetGroup(facetGroup: FacetGroupEntry): void {\n this.store.commit('x/facets/setFacetGroup', facetGroup)\n }\n\n /**\n * Sets the Facet to the store facets record.\n *\n * @param facet - The facet to store.\n * @internal\n */\n protected setFacet({ filters, ...restFacet }: Facet): void {\n this.store.commit('x/facets/setFacet', restFacet)\n }\n\n /**\n * Removes a facet from the store.\n *\n * @param facet - The facet to remove.\n * @internal\n */\n protected removeFacet(facet: Omit<Facet, 'filters'>): void {\n this.store.commit('x/facets/removeFacet', facet)\n }\n\n /**\n * Saves a list of filters to the store without any state change logic applied.\n *\n * @param filters - The filters to save.\n * @internal\n */\n protected setFilters(filters: Filter[]): void {\n this.store.commit('x/facets/setFilters', filters)\n }\n\n /**\n * Saves a list of preselected filters to the store without any state change logic applied.\n *\n * @param filters - The filters to save.\n * @internal\n */\n protected setPreselectedFilter(filters: Filter[]): void {\n this.store.commit('x/facets/setPreselectedFilters', filters)\n }\n\n /**\n * Removes a list of filters from the store.\n *\n * @param filters - The filters to remove.\n * @internal\n */\n protected removeFilters(filters: Filter[]): void {\n this.store.commit('x/facets/removeFilters', filters)\n }\n}\n"],"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A6B,EAAA;QACjD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,CAAC;IAClD;AAEA;;;;;AAKG;AACO,IAAA,UAAU,CAAC,OAAiB,EAAA;QACpC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACnD;AAEA;;;;;AAKG;AACO,IAAA,oBAAoB,CAAC,OAAiB,EAAA;QAC9C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,EAAE,OAAO,CAAC;IAC9D;AAEA;;;;;AAKG;AACO,IAAA,aAAa,CAAC,OAAiB,EAAA;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC;IACtD;;AA9PA;;AAEG;AACW,oBAAA,CAAA,QAAQ,GAAkB,IAAI,oBAAoB,EAAE;;;;"}
1
+ {"version":3,"file":"facets.service.js","sources":["../../../../../src/x-modules/facets/service/facets.service.ts"],"sourcesContent":["import type { Facet, Filter } from '@empathyco/x-types'\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { Store } from 'vuex'\nimport type { RootXStoreState } from '../../../store/index'\nimport type { FilterEntity } from '../entities/types'\nimport type { FacetGroupEntry, FacetsGetters } from '../store/types'\nimport type { FacetsGroup, FacetsService, FiltersMetadata } from './types'\nimport { isFacetFilter, isHierarchicalFacet } from '@empathyco/x-types'\nimport { XPlugin } from '../../../plugins/index'\nimport { arrayToObject, groupItemsBy, isArrayEmpty } from '../../../utils/index'\nimport { FilterEntityFactory } from '../entities/filter-entity.factory'\nimport { flatHierarchicalFilters } from '../utils'\n\n/**\n * Default implementation for the {@link FacetsService}.\n *\n * @public\n */\nexport class DefaultFacetsService implements FacetsService {\n /**\n * Global instance of the {@link FacetsService}.\n */\n public static instance: FacetsService = new DefaultFacetsService()\n\n public constructor(\n protected filterEntityFactory: FilterEntityFactory = FilterEntityFactory.instance,\n ) {}\n\n /**\n * The {@link https://vuex.vuejs.org/ | Vuex} store to use in the service.\n *\n * @returns The store.\n * @internal\n */\n protected get store(): Store<RootXStoreState> {\n return XPlugin.store\n }\n\n setFacets(facetsGroup: FacetsGroup): void {\n const newFilters = this.updateStore(facetsGroup)\n /* Ensures that filters are selected with valid values. For example, you can't set a single\n select facet with 2 or more selected filters */\n this.updateFiltersSelectedState(newFilters)\n }\n\n updateFacets(facetsGroup: FacetsGroup): void {\n const selectedFilters = this.getSelectedFilters()\n const newFilters = this.updateStore(facetsGroup)\n this.updateFiltersSelectedState(newFilters, selectedFilters)\n }\n\n updatePreselectedFilters(filters: Filter[]): void {\n this.setPreselectedFilter(filters)\n }\n\n selectPreselectedFilters(): void {\n this.select(this.store.state.x.facets.preselectedFilters)\n }\n\n clearFilters(facetIds?: Array<Facet['id']>, metadata?: FiltersMetadata): void {\n this.getSelectedFilters()\n .filter(filter => !facetIds || (isFacetFilter(filter) && facetIds.includes(filter.facetId)))\n .forEach(filter => this.deselect.bind(this)(filter, metadata))\n }\n\n clearFiltersWithMetadata({\n facetIds,\n metadata,\n }: { facetIds?: Array<Facet['id']>; metadata?: FiltersMetadata } = {}): void {\n this.clearFilters(facetIds, metadata)\n }\n\n deselect(filter: Filter, metadata?: Dictionary): void {\n this.getFilterEntity(filter).deselect(filter, metadata)\n }\n\n select(filterOrFilters: Filter | Filter[]): void {\n const filters = Array.isArray(filterOrFilters) ? filterOrFilters : [filterOrFilters]\n filters.forEach(filter => this.getFilterEntity(filter).select(filter))\n }\n\n toggle(filter: Filter): void {\n if (filter.selected) {\n this.deselect(filter)\n } else {\n this.select(filter)\n }\n }\n\n /**\n * Sets the query.\n *\n * @param query - The query searched.\n * @internal\n */\n setQuery(query: string): void {\n this.store.commit('x/facets/setQuery', query)\n }\n\n /**\n * Creates an entity from a filter DTO.\n *\n * @param filter - The filter to create an entity from.\n * @returns The filter entity.\n * @internal\n */\n protected getFilterEntity(filter: Filter): FilterEntity {\n return this.filterEntityFactory.getFilterEntity(this.store, filter)\n }\n\n /**\n * Sets in the store the Facets, the Filters and the FacetsGroup, without applying any logic\n * to the selected state.\n *\n * @param facetsGroup - The {@link FacetsGroup} to set into the store state.\n * @returns An array with the new filters.\n * @internal\n */\n protected updateStore(facetsGroup: FacetsGroup): Filter[] {\n this.removeGroupFacets(facetsGroup.id)\n this.removeGroupFilters(facetsGroup.id)\n facetsGroup.facets.forEach(facet => {\n this.setFacetGroup({ facetId: facet.id, groupId: facetsGroup.id })\n this.setFacet(facet)\n })\n const newFilters = this.flatFilters(facetsGroup)\n this.setFilters(newFilters)\n return newFilters\n }\n\n /**\n * This function returns the filters of the facets group flattened in an array. It keeps the\n * relations between the filters (parent--children).\n *\n * @privateRemarks If it is necessary to deal with more cases than the hierarchical, we need to\n * refactor this logic and maybe move it to the entities, to not make this service dependant of\n * the facet type. At the moment it is only one `if`, and is ok as long as no more `if`s are\n * needed.\n * @param facetsGroup - The facets group from where extract the filters to flat.\n * @returns An array with the filters flattened.\n * @internal\n */\n protected flatFilters(facetsGroup: FacetsGroup): Filter[] {\n return facetsGroup.facets.flatMap(facet =>\n isHierarchicalFacet(facet) ? flatHierarchicalFilters(facet.filters) : facet.filters,\n )\n }\n\n /**\n * Retrieves the selected filters from the store.\n *\n * @returns The list of selected filters of the store.\n * @internal\n */\n protected getSelectedFilters(): FacetsGetters['selectedFilters'] {\n // eslint-disable-next-line ts/no-unsafe-member-access,ts/no-unsafe-return\n return this.store.getters['x/facets/selectedFilters']\n }\n\n /**\n * Changes the filters selection state to match the store.\n *\n * @param newFilters - The list of filters to save.\n * @param previousFilters - (Optional) The list of old filters, used to set the `newFilters`\n * selected state.\n */\n protected updateFiltersSelectedState(newFilters: Filter[], previousFilters?: Filter[]): void {\n if (!isArrayEmpty(newFilters)) {\n const newStateFiltersMap = arrayToObject(previousFilters ?? newFilters, 'id')\n newFilters.forEach(filter => {\n const filterEntity = this.getFilterEntity(filter)\n if (newStateFiltersMap[filter.id]?.selected) {\n filterEntity.select(filter)\n } else {\n filterEntity.deselect(filter)\n }\n })\n }\n }\n\n /**\n * Removes the filters that belong to the given group.\n *\n * @param groupId - The id of the group from whom remove the filters that are in the store.\n *\n * @returns The removed filters.\n *\n * @internal\n */\n protected removeGroupFilters(groupId: FacetsGroup['id']): Filter[] {\n const filtersToRemove =\n groupItemsBy(Object.values(this.store.state.x.facets.filters), filter =>\n isFacetFilter(filter)\n ? this.store.state.x.facets.groups[filter.facetId]\n : '__unknown-group__',\n )[groupId] ?? []\n this.removeFilters(filtersToRemove)\n return filtersToRemove\n }\n\n /**\n * Removes the facets that belong to the given group.\n *\n * @param groupId - The id of the group from whom remove the facets that are in the store.\n * @returns The removed facets.\n * @internal\n */\n protected removeGroupFacets(groupId: FacetsGroup['id']): Omit<Facet, 'filters'>[] {\n const facetsToRemove = Object.values(this.store.state.x.facets.facets).filter(\n facet => this.store.state.x.facets.groups[facet.id] === groupId,\n )\n facetsToRemove.forEach(this.removeFacet.bind(this))\n return facetsToRemove\n }\n\n /**\n * Sets the group that a facet belongs to.\n *\n * @param facetGroup - The id of the facet, and the group it belongs to.\n * @internal\n */\n protected setFacetGroup(facetGroup: FacetGroupEntry): void {\n this.store.commit('x/facets/setFacetGroup', facetGroup)\n }\n\n /**\n * Sets the Facet to the store facets record.\n *\n * @param facet - The facet to store.\n * @internal\n */\n protected setFacet({ filters, ...restFacet }: Facet): void {\n this.store.commit('x/facets/setFacet', restFacet)\n }\n\n /**\n * Removes a facet from the store.\n *\n * @param facet - The facet to remove.\n * @internal\n */\n protected removeFacet(facet: Omit<Facet, 'filters'>): void {\n this.store.commit('x/facets/removeFacet', facet)\n }\n\n /**\n * Saves a list of filters to the store without any state change logic applied.\n *\n * @param filters - The filters to save.\n * @internal\n */\n protected setFilters(filters: Filter[]): void {\n this.store.commit('x/facets/setFilters', filters)\n }\n\n /**\n * Saves a list of preselected filters to the store without any state change logic applied.\n *\n * @param filters - The filters to save.\n * @internal\n */\n protected setPreselectedFilter(filters: Filter[]): void {\n this.store.commit('x/facets/setPreselectedFilters', filters)\n }\n\n /**\n * Removes a list of filters from the store.\n *\n * @param filters - The filters to remove.\n * @internal\n */\n protected removeFilters(filters: Filter[]): void {\n this.store.commit('x/facets/removeFilters', filters)\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAaA;;;;AAIG;MACU,oBAAoB,CAAA;IAM/B,WAAA,CACY,mBAAA,GAA2C,mBAAmB,CAAC,QAAQ,EAAA;QAAvE,IAAA,CAAA,mBAAmB,GAAnB,mBAAmB;IAC5B;AAEH;;;;;AAKG;AACH,IAAA,IAAc,KAAK,GAAA;QACjB,OAAO,OAAO,CAAC,KAAK;IACtB;AAEA,IAAA,SAAS,CAAC,WAAwB,EAAA;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;AAChD;AACgD;AAChD,QAAA,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC;IAC7C;AAEA,IAAA,YAAY,CAAC,WAAwB,EAAA;AACnC,QAAA,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE;QACjD,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;AAChD,QAAA,IAAI,CAAC,0BAA0B,CAAC,UAAU,EAAE,eAAe,CAAC;IAC9D;AAEA,IAAA,wBAAwB,CAAC,OAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;IACpC;IAEA,wBAAwB,GAAA;AACtB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;IAC3D;IAEA,YAAY,CAAC,QAA6B,EAAE,QAA0B,EAAA;QACpE,IAAI,CAAC,kBAAkB;aACpB,MAAM,CAAC,MAAM,IAAI,CAAC,QAAQ,KAAK,aAAa,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAC1F,aAAA,OAAO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AS,EAAA;QACjD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,SAAS,CAAC;IACnD;AAEA;;;;;AAKG;AACO,IAAA,WAAW,CAAC,KAA6B,EAAA;QACjD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,CAAC;IAClD;AAEA;;;;;AAKG;AACO,IAAA,UAAU,CAAC,OAAiB,EAAA;QACpC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACnD;AAEA;;;;;AAKG;AACO,IAAA,oBAAoB,CAAC,OAAiB,EAAA;QAC9C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,EAAE,OAAO,CAAC;IAC9D;AAEA;;;;;AAKG;AACO,IAAA,aAAa,CAAC,OAAiB,EAAA;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC;IACtD;;AA9PA;;AAEG;AACW,oBAAA,CAAA,QAAQ,GAAkB,IAAI,oBAAoB,EAAE;;;;"}
@@ -90,13 +90,9 @@ import '../../../components/result/result-variants-provider.vue.js';
90
90
  import '../../../components/scroll/base-scroll.vue2.js';
91
91
  import '@empathyco/x-utils';
92
92
  import 'vuex';
93
- import '@vue/devtools-api';
94
- import '../../../plugins/devtools/timeline.devtools.js';
95
- import 'rxjs/operators';
96
- import 'rxjs';
97
- import '../../../plugins/devtools/colors.utils.js';
98
93
  import '../../../plugins/x-bus.js';
99
94
  import '../../../plugins/x-plugin.js';
95
+ import 'rxjs';
100
96
  import '../../../components/sliding-panel.vue2.js';
101
97
  import '../../../components/sliding-panel.vue3.js';
102
98
  import '../../../components/snippet-callbacks.vue2.js';
@@ -1 +1 @@
1
- {"version":3,"file":"query-preview-button.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview-button.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n :metadata=\"metadata\"\n class=\"x-query-preview-button x-button\"\n data-test=\"query-preview-button\"\n >\n <!-- @slot Button content with a text, an icon or both -->\n <slot :query-preview-info=\"fullQueryPreviewInfo\">\n {{ queryPreviewInfo.query }}\n </slot>\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { XEventsTypes } from '../../../wiring/events.types'\nimport type { WireMetadata } from '../../../wiring/index'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { computed, defineComponent } from 'vue'\nimport { BaseEventButton } from '../../../components'\nimport { useState } from '../../../composables/use-state'\nimport { queriesPreviewXModule } from '../x-module'\n\n/**\n * Component containing an event button that emits\n * {@link QueriesPreviewXEvents.UserAcceptedAQueryPreview} when clicked with\n * the full query preview info as payload.\n *\n * It has a default slot to customize its contents.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreviewButton',\n xModule: queriesPreviewXModule.name,\n components: { BaseEventButton },\n props: {\n /**\n * The information about the request of the query preview.\n *\n * @public\n */\n queryPreviewInfo: {\n type: Object as PropType<QueryPreviewInfo>,\n required: true,\n },\n /**\n * The metadata property for the request on each query preview.\n *\n * @public\n */\n metadata: {\n type: Object as PropType<Omit<WireMetadata, 'moduleName'>>,\n },\n },\n setup(props) {\n /**\n * We use the module extra params to combine them with the query preview's extra params.\n */\n const { params } = useState('queriesPreview')\n\n /**\n * The provided query preview with the base extra params from the module merged in.\n *\n * @returns The query preview info with the base extra params merged in.\n * @public\n */\n const fullQueryPreviewInfo = computed(\n (): QueryPreviewInfo => ({\n ...props.queryPreviewInfo,\n extraParams: {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n },\n filters: props.queryPreviewInfo.filters,\n }),\n )\n\n /**\n * List of events to emit by the BaseEventButton.\n *\n * @returns An object with the event and payload.\n *\n * @internal\n */\n const events = computed(\n (): Partial<XEventsTypes> => ({ UserAcceptedAQueryPreview: fullQueryPreviewInfo.value }),\n )\n\n return {\n fullQueryPreviewInfo,\n events,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nThe component content has the query preview query as default.\n\n```vue\n<template>\n <QueryPreviewButton queryPreviewInfo=\"queryPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreviewButton } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'shoes' })\n</script>\n```\n\n### Customizing slots\n\nThe content of the button is customizable via its default slot.\n\n```vue\n<template>\n <QueryPreviewButton queryPreviewInfo=\"queryPreviewInfo\">\n {{ `Search for: ${queryPreviewInfo.query}` }}\n </QueryPreviewButton>\n</template>\n\n<script setup>\nimport { QueryPreviewButton } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'shoes' })\n</script>\n```\n\n## Events\n\nA list of events that the component will emit:\n\n- `UserAcceptedAQueryPreview`: the event is emitted after the user clicks the button. The event\n payload is the `QueryPreviewInfo` of the query.\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,qBAAqB,CAAC,IAAI;IACnC,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAoC;AAC1C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAoD;AAC3D,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;AAEE;QACF,MAAM,EAAE,QAAO,GAAI,QAAQ,CAAC,gBAAgB,CAAA;AAE5C;;;;;AAKE;AACF,QAAA,MAAM,oBAAmB,GAAI,QAAQ,CACnC,OAAyB;YACvB,GAAG,KAAK,CAAC,gBAAgB;AACzB,YAAA,WAAW,EAAE;gBACX,GAAG,MAAM,CAAC,KAAK;AACf,gBAAA,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW;AACtC,aAAA;AACD,YAAA,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO;AACxC,SAAA,CAAC,CACJ;AAEA;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CACrB,OAA8B,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,KAAI,EAAG,CAAC,CAC1F;QAEA,OAAO;YACL,oBAAoB;YACpB,MAAM;SACR;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"query-preview-button.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview-button.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n :metadata=\"metadata\"\n class=\"x-query-preview-button x-button\"\n data-test=\"query-preview-button\"\n >\n <!-- @slot Button content with a text, an icon or both -->\n <slot :query-preview-info=\"fullQueryPreviewInfo\">\n {{ queryPreviewInfo.query }}\n </slot>\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { XEventsTypes } from '../../../wiring/events.types'\nimport type { WireMetadata } from '../../../wiring/index'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { computed, defineComponent } from 'vue'\nimport { BaseEventButton } from '../../../components'\nimport { useState } from '../../../composables/use-state'\nimport { queriesPreviewXModule } from '../x-module'\n\n/**\n * Component containing an event button that emits\n * {@link QueriesPreviewXEvents.UserAcceptedAQueryPreview} when clicked with\n * the full query preview info as payload.\n *\n * It has a default slot to customize its contents.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreviewButton',\n xModule: queriesPreviewXModule.name,\n components: { BaseEventButton },\n props: {\n /**\n * The information about the request of the query preview.\n *\n * @public\n */\n queryPreviewInfo: {\n type: Object as PropType<QueryPreviewInfo>,\n required: true,\n },\n /**\n * The metadata property for the request on each query preview.\n *\n * @public\n */\n metadata: {\n type: Object as PropType<Omit<WireMetadata, 'moduleName'>>,\n },\n },\n setup(props) {\n /**\n * We use the module extra params to combine them with the query preview's extra params.\n */\n const { params } = useState('queriesPreview')\n\n /**\n * The provided query preview with the base extra params from the module merged in.\n *\n * @returns The query preview info with the base extra params merged in.\n * @public\n */\n const fullQueryPreviewInfo = computed(\n (): QueryPreviewInfo => ({\n ...props.queryPreviewInfo,\n extraParams: {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n },\n filters: props.queryPreviewInfo.filters,\n }),\n )\n\n /**\n * List of events to emit by the BaseEventButton.\n *\n * @returns An object with the event and payload.\n *\n * @internal\n */\n const events = computed(\n (): Partial<XEventsTypes> => ({ UserAcceptedAQueryPreview: fullQueryPreviewInfo.value }),\n )\n\n return {\n fullQueryPreviewInfo,\n events,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nThe component content has the query preview query as default.\n\n```vue\n<template>\n <QueryPreviewButton queryPreviewInfo=\"queryPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreviewButton } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'shoes' })\n</script>\n```\n\n### Customizing slots\n\nThe content of the button is customizable via its default slot.\n\n```vue\n<template>\n <QueryPreviewButton queryPreviewInfo=\"queryPreviewInfo\">\n {{ `Search for: ${queryPreviewInfo.query}` }}\n </QueryPreviewButton>\n</template>\n\n<script setup>\nimport { QueryPreviewButton } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'shoes' })\n</script>\n```\n\n## Events\n\nA list of events that the component will emit:\n\n- `UserAcceptedAQueryPreview`: the event is emitted after the user clicks the button. The event\n payload is the `QueryPreviewInfo` of the query.\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,qBAAqB,CAAC,IAAI;IACnC,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAoC;AAC1C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAoD;AAC3D,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;AAEE;QACF,MAAM,EAAE,QAAO,GAAI,QAAQ,CAAC,gBAAgB,CAAA;AAE5C;;;;;AAKE;AACF,QAAA,MAAM,oBAAmB,GAAI,QAAQ,CACnC,OAAyB;YACvB,GAAG,KAAK,CAAC,gBAAgB;AACzB,YAAA,WAAW,EAAE;gBACX,GAAG,MAAM,CAAC,KAAK;AACf,gBAAA,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW;AACtC,aAAA;AACD,YAAA,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO;AACxC,SAAA,CAAC,CACJ;AAEA;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CACrB,OAA8B,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,KAAI,EAAG,CAAC,CAC1F;QAEA,OAAO;YACL,oBAAoB;YACpB,MAAM;SACR;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,14 +1,10 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import '../../../composables/create-use-device.js';
3
3
  import 'vuex';
4
- import '@vue/devtools-api';
5
- import '../../../plugins/devtools/timeline.devtools.js';
6
- import '@empathyco/x-utils';
7
- import 'rxjs/operators';
8
- import 'rxjs';
9
- import '../../../plugins/devtools/colors.utils.js';
10
4
  import '../../../plugins/x-bus.js';
5
+ import '@empathyco/x-utils';
11
6
  import '../../../plugins/x-plugin.js';
7
+ import 'rxjs';
12
8
  import '@vueuse/core';
13
9
  import { useState } from '../../../composables/use-state.js';
14
10
  import { AnimationProp } from '../../../types/animation-prop.js';
@@ -1 +1 @@
1
- {"version":3,"file":"query-preview-list.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview-list.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" class=\"x-query-preview-list\" tag=\"ul\">\n <li\n v-for=\"(queryPreview, index) in renderedQueryPreviews\"\n :key=\"index\"\n :class=\"{ 'padding-block-1': loadWhenVisible }\"\n data-test=\"query-preview-item\"\n >\n <QueryPreview\n :debounce-time-ms=\"debounceTimeMs\"\n :load-when-visible=\"loadWhenVisible\"\n :max-items-to-render=\"maxItemsToRender\"\n :persist-in-cache=\"persistInCache\"\n :query-feature=\"queryFeature\"\n :query-preview-info=\"queryPreview\"\n @load=\"flagAsLoaded\"\n @error=\"flagAsFailed\"\n >\n <template v-for=\"(_, slotName) in $slots\" #[slotName]=\"scope\">\n <slot :name=\"slotName\" v-bind=\"scope\" />\n </template>\n </QueryPreview>\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { RequestStatus } from '../../../store'\nimport type { QueryFeature } from '../../../types'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { useState } from '../../../composables/index'\nimport { AnimationProp } from '../../../types'\nimport { getHashFromQueryPreviewInfo } from '../utils/get-hash-from-query-preview'\nimport { queriesPreviewXModule } from '../x-module'\nimport QueryPreview from './query-preview.vue'\n\ninterface QueryPreviewStatusRecord {\n [query: string]: RequestStatus\n}\n\n/**\n * Renders the results previews of a list of objects with the information about the query preview,\n * and exposes the {@link QueryPreview} slots to modify the content.\n * The requests are made in sequential order.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreviewList',\n xModule: queriesPreviewXModule.name,\n components: { QueryPreview },\n props: {\n /**\n * The list of queries preview to render.\n *\n * @public\n */\n queriesPreviewInfo: {\n type: Array as PropType<QueryPreviewInfo[]>,\n required: true,\n },\n /**\n * The origin property for the request on each query preview.\n *\n * @public\n */\n queryFeature: {\n type: String as PropType<QueryFeature>,\n },\n /**\n * Number of query preview results to be rendered on each query preview.\n *\n * @public\n */\n maxItemsToRender: {\n type: Number,\n },\n /**\n * Controls whether the query preview requests should be triggered when the component is visible in the viewport.\n *\n * @public\n */\n loadWhenVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Debounce time in milliseconds for triggering the search requests\n * on each query preview.\n *\n * It will default to 0 to fit the most common use case (pre-search),\n * and it would work properly with a 250 value inside empathize.\n */\n debounceTimeMs: {\n type: Number,\n default: 0,\n },\n /**\n * Controls whether all the QueryPreview should be removed from the state\n * when the component is destroyed.\n *\n * @public\n */\n persistInCache: Boolean,\n /**\n * Animation component that will be used to animate the elements.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul',\n },\n },\n setup(props) {\n const { params } = useState('queriesPreview')\n\n /**\n * Contains the status of the preview requests, indexed by query.\n */\n const queriesStatus = ref<QueryPreviewStatusRecord>({})\n\n /**\n * The list of queries to preview.\n *\n * @returns The list of queries in the queriesPreviewInfo list.\n * @internal\n */\n const queries = computed((): string[] =>\n props.queriesPreviewInfo.map(item =>\n getHashFromQueryPreviewInfo(item, { ...params.value, ...item.extraParams }),\n ),\n )\n\n /**\n * Gets all the queries to render, that are those that don't have an `error` status.\n *\n * @returns A list of queries.\n * @internal\n */\n const renderedQueryPreviews = computed((): QueryPreviewInfo[] => {\n return props.queriesPreviewInfo.filter(item => {\n const queryPreviewHash = getHashFromQueryPreviewInfo(item, {\n ...params.value,\n ...item.extraParams,\n })\n return (\n queriesStatus.value[queryPreviewHash] === 'success' ||\n queriesStatus.value[queryPreviewHash] === 'loading'\n )\n })\n })\n\n /**\n * Tries to load the next query.\n *\n * @internal\n */\n const loadNext = (): void => {\n const queryToLoad = queries.value.find(query => !(query in queriesStatus.value))\n if (queryToLoad) {\n queriesStatus.value[queryToLoad] = 'loading'\n }\n }\n\n /**\n * Resets the status of all queries if they change.\n *\n * @param newQueries - The new queries.\n * @param oldQueries - The old queries.\n * @internal\n */\n watch(\n queries,\n (newQueries: string[], oldQueries: string[] | undefined) => {\n if (newQueries.toString() !== oldQueries?.toString()) {\n for (const key of Object.keys(queriesStatus.value)) {\n if (!newQueries.includes(key)) {\n delete queriesStatus.value[key]\n }\n }\n loadNext()\n }\n },\n { immediate: true, deep: true },\n )\n\n /**\n * Sets the status of a given query to `success`.\n *\n * @param loadedQuery - The query to flag as loaded.\n * @internal\n */\n const flagAsLoaded = (loadedQuery: string): void => {\n queriesStatus.value[loadedQuery] = 'success'\n loadNext()\n }\n\n /**\n * Sets the status of a given query to `error`.\n *\n * @param failedQuery - The query to flag as failed.\n * @internal\n */\n const flagAsFailed = (failedQuery: string): void => {\n queriesStatus.value[failedQuery] = 'error'\n loadNext()\n }\n\n return {\n renderedQueryPreviews,\n flagAsFailed,\n flagAsLoaded,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.padding-block-1 {\n padding-block: 1px;\n}\n</style>\n\n<docs lang=\"mdx\">\n## See it in action\n\nHere you have a basic example of how the QueryPreviewList is rendered. Keep in mind that this\ncomponent is intended to be used overriding its default slot. By default it will only render the\nnames of the results.\n\n```vue live\n<template>\n <QueryPreviewList :queriesPreviewInfo=\"queriesPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n\n### Play with the default slot\n\nIn this example, the results will be rendered inside a sliding panel.\n\n```vue live\n<template>\n <QueryPreviewList\n :queriesPreviewInfo=\"queriesPreviewInfo\"\n #default=\"{ queryPreviewInfo, totalResults, results }\"\n >\n <div class=\"x-flex x-flex-col x-gap-8 x-mb-16\">\n <h1 class=\"x-title2\">{{ queryPreviewInfo.query }} ({{ totalResults }})</h1>\n <SlidingPanel :resetOnContentChange=\"false\">\n <div class=\"x-flex x-gap-8\">\n <Result\n v-for=\"result in results\"\n :key=\"result.id\"\n :result=\"result\"\n style=\"max-width: 180px\"\n />\n </div>\n </SlidingPanel>\n </div>\n </QueryPreviewList>\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport SlidingPanel from '@empathyco/x-components/sliding-panel.vue'\nimport Result from '@empathyco/x-components/result.vue'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n\n### Play with the result slot\n\nThe component exposes a slot to override the result content, without modifying the list.\n\nIn this example, the ID of the results will be rendered along with the name.\n\n```vue\n<template>\n <QueryPreviewList\n class=\"x-flex x-gap-8\"\n :queriesPreviewInfo=\"queriesPreviewInfo\"\n #result=\"{ result }\"\n >\n <span class=\"x-font-bold\">{{ result.id }}:</span>\n <span>{{ result.name }}</span>\n </QueryPreviewList>\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AA0CA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,qBAAqB,CAAC,IAAI;IACnC,UAAU,EAAE,EAAE,YAAW,EAAG;AAC5B,IAAA,KAAK,EAAE;AACL;;;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AC,WAAW,IAAI,OAAM;AACzC,YAAA,QAAQ,EAAC;AACX,QAAA,CAAA;QAEA,OAAO;YACL,qBAAqB;YACrB,YAAY;YACZ,YAAY;SACd;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"query-preview-list.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview-list.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" class=\"x-query-preview-list\" tag=\"ul\">\n <li\n v-for=\"(queryPreview, index) in renderedQueryPreviews\"\n :key=\"index\"\n :class=\"{ 'padding-block-1': loadWhenVisible }\"\n data-test=\"query-preview-item\"\n >\n <QueryPreview\n :debounce-time-ms=\"debounceTimeMs\"\n :load-when-visible=\"loadWhenVisible\"\n :max-items-to-render=\"maxItemsToRender\"\n :persist-in-cache=\"persistInCache\"\n :query-feature=\"queryFeature\"\n :query-preview-info=\"queryPreview\"\n @load=\"flagAsLoaded\"\n @error=\"flagAsFailed\"\n >\n <template v-for=\"(_, slotName) in $slots\" #[slotName]=\"scope\">\n <slot :name=\"slotName\" v-bind=\"scope\" />\n </template>\n </QueryPreview>\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { RequestStatus } from '../../../store'\nimport type { QueryFeature } from '../../../types'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { computed, defineComponent, ref, watch } from 'vue'\nimport { useState } from '../../../composables/index'\nimport { AnimationProp } from '../../../types'\nimport { getHashFromQueryPreviewInfo } from '../utils/get-hash-from-query-preview'\nimport { queriesPreviewXModule } from '../x-module'\nimport QueryPreview from './query-preview.vue'\n\ninterface QueryPreviewStatusRecord {\n [query: string]: RequestStatus\n}\n\n/**\n * Renders the results previews of a list of objects with the information about the query preview,\n * and exposes the {@link QueryPreview} slots to modify the content.\n * The requests are made in sequential order.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreviewList',\n xModule: queriesPreviewXModule.name,\n components: { QueryPreview },\n props: {\n /**\n * The list of queries preview to render.\n *\n * @public\n */\n queriesPreviewInfo: {\n type: Array as PropType<QueryPreviewInfo[]>,\n required: true,\n },\n /**\n * The origin property for the request on each query preview.\n *\n * @public\n */\n queryFeature: {\n type: String as PropType<QueryFeature>,\n },\n /**\n * Number of query preview results to be rendered on each query preview.\n *\n * @public\n */\n maxItemsToRender: {\n type: Number,\n },\n /**\n * Controls whether the query preview requests should be triggered when the component is visible in the viewport.\n *\n * @public\n */\n loadWhenVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Debounce time in milliseconds for triggering the search requests\n * on each query preview.\n *\n * It will default to 0 to fit the most common use case (pre-search),\n * and it would work properly with a 250 value inside empathize.\n */\n debounceTimeMs: {\n type: Number,\n default: 0,\n },\n /**\n * Controls whether all the QueryPreview should be removed from the state\n * when the component is destroyed.\n *\n * @public\n */\n persistInCache: Boolean,\n /**\n * Animation component that will be used to animate the elements.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul',\n },\n },\n setup(props) {\n const { params } = useState('queriesPreview')\n\n /**\n * Contains the status of the preview requests, indexed by query.\n */\n const queriesStatus = ref<QueryPreviewStatusRecord>({})\n\n /**\n * The list of queries to preview.\n *\n * @returns The list of queries in the queriesPreviewInfo list.\n * @internal\n */\n const queries = computed((): string[] =>\n props.queriesPreviewInfo.map(item =>\n getHashFromQueryPreviewInfo(item, { ...params.value, ...item.extraParams }),\n ),\n )\n\n /**\n * Gets all the queries to render, that are those that don't have an `error` status.\n *\n * @returns A list of queries.\n * @internal\n */\n const renderedQueryPreviews = computed((): QueryPreviewInfo[] => {\n return props.queriesPreviewInfo.filter(item => {\n const queryPreviewHash = getHashFromQueryPreviewInfo(item, {\n ...params.value,\n ...item.extraParams,\n })\n return (\n queriesStatus.value[queryPreviewHash] === 'success' ||\n queriesStatus.value[queryPreviewHash] === 'loading'\n )\n })\n })\n\n /**\n * Tries to load the next query.\n *\n * @internal\n */\n const loadNext = (): void => {\n const queryToLoad = queries.value.find(query => !(query in queriesStatus.value))\n if (queryToLoad) {\n queriesStatus.value[queryToLoad] = 'loading'\n }\n }\n\n /**\n * Resets the status of all queries if they change.\n *\n * @param newQueries - The new queries.\n * @param oldQueries - The old queries.\n * @internal\n */\n watch(\n queries,\n (newQueries: string[], oldQueries: string[] | undefined) => {\n if (newQueries.toString() !== oldQueries?.toString()) {\n for (const key of Object.keys(queriesStatus.value)) {\n if (!newQueries.includes(key)) {\n delete queriesStatus.value[key]\n }\n }\n loadNext()\n }\n },\n { immediate: true, deep: true },\n )\n\n /**\n * Sets the status of a given query to `success`.\n *\n * @param loadedQuery - The query to flag as loaded.\n * @internal\n */\n const flagAsLoaded = (loadedQuery: string): void => {\n queriesStatus.value[loadedQuery] = 'success'\n loadNext()\n }\n\n /**\n * Sets the status of a given query to `error`.\n *\n * @param failedQuery - The query to flag as failed.\n * @internal\n */\n const flagAsFailed = (failedQuery: string): void => {\n queriesStatus.value[failedQuery] = 'error'\n loadNext()\n }\n\n return {\n renderedQueryPreviews,\n flagAsFailed,\n flagAsLoaded,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.padding-block-1 {\n padding-block: 1px;\n}\n</style>\n\n<docs lang=\"mdx\">\n## See it in action\n\nHere you have a basic example of how the QueryPreviewList is rendered. Keep in mind that this\ncomponent is intended to be used overriding its default slot. By default it will only render the\nnames of the results.\n\n```vue live\n<template>\n <QueryPreviewList :queriesPreviewInfo=\"queriesPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n\n### Play with the default slot\n\nIn this example, the results will be rendered inside a sliding panel.\n\n```vue live\n<template>\n <QueryPreviewList\n :queriesPreviewInfo=\"queriesPreviewInfo\"\n #default=\"{ queryPreviewInfo, totalResults, results }\"\n >\n <div class=\"x-flex x-flex-col x-gap-8 x-mb-16\">\n <h1 class=\"x-title2\">{{ queryPreviewInfo.query }} ({{ totalResults }})</h1>\n <SlidingPanel :resetOnContentChange=\"false\">\n <div class=\"x-flex x-gap-8\">\n <Result\n v-for=\"result in results\"\n :key=\"result.id\"\n :result=\"result\"\n style=\"max-width: 180px\"\n />\n </div>\n </SlidingPanel>\n </div>\n </QueryPreviewList>\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport SlidingPanel from '@empathyco/x-components/sliding-panel.vue'\nimport Result from '@empathyco/x-components/result.vue'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n\n### Play with the result slot\n\nThe component exposes a slot to override the result content, without modifying the list.\n\nIn this example, the ID of the results will be rendered along with the name.\n\n```vue\n<template>\n <QueryPreviewList\n class=\"x-flex x-gap-8\"\n :queriesPreviewInfo=\"queriesPreviewInfo\"\n #result=\"{ result }\"\n >\n <span class=\"x-font-bold\">{{ result.id }}:</span>\n <span>{{ result.name }}</span>\n </QueryPreviewList>\n</template>\n\n<script setup>\nimport { QueryPreviewList } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queriesPreviewInfo = reactive([\n { query: 'sandals' },\n { query: 'tshirt' },\n { query: 'jacket' },\n])\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA0CA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,qBAAqB,CAAC,IAAI;IACnC,UAAU,EAAE,EAAE,YAAW,EAAG;AAC5B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,KAAqC;AAC3C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAgC;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../../components/result/result-variant-selector.vue3.js';
91
91
  import '../../../components/result/result-variants-provider.vue.js';
92
92
  import '../../../components/scroll/base-scroll.vue2.js';
93
93
  import 'vuex';
94
- import '@vue/devtools-api';
95
- import '../../../plugins/devtools/timeline.devtools.js';
96
- import 'rxjs/operators';
97
- import 'rxjs';
98
- import '../../../plugins/devtools/colors.utils.js';
99
94
  import '../../../plugins/x-bus.js';
100
95
  import '../../../plugins/x-plugin.js';
101
96
  import { useXBus } from '../../../composables/use-x-bus.js';
@@ -1 +1 @@
1
- {"version":3,"file":"query-preview.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview.vue"],"sourcesContent":["<template>\n <!-- eslint-disable-next-line vue/no-unused-refs -->\n <section ref=\"queryPreviewElement\" class=\"x-query-preview-wrapper__default-content\">\n <ul v-if=\"hasResults\" data-test=\"query-preview\" class=\"x-query-preview\">\n <li\n v-for=\"result in queryPreviewResults?.results\"\n :key=\"result.id\"\n class=\"x-query-preview__item\"\n data-test=\"query-preview-item\"\n >\n <!--\n @slot Query Preview result slot.\n @binding {Result} result - A Query Preview result\n -->\n <slot name=\"result\" :result=\"result\">\n <span data-test=\"result-name\">{{ result.name }}</span>\n </slot>\n </li>\n </ul>\n </section>\n</template>\n\n<script lang=\"ts\">\nimport type { Filter, SearchRequest } from '@empathyco/x-types'\nimport type { PropType, Ref } from 'vue'\nimport type { FeatureLocation, QueryFeature } from '../../../types'\nimport type { DebouncedFunction } from '../../../utils'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { deepEqual } from '@empathyco/x-utils'\nimport { computed, defineComponent, h, inject, onBeforeUnmount, provide, ref, watch } from 'vue'\nimport { LIST_ITEMS_KEY } from '../../../components'\nimport { useOnDisplay, useState, useXBus } from '../../../composables'\nimport { createOrigin, createRawFilters, debounceFunction } from '../../../utils'\nimport { getHashFromQueryPreviewInfo } from '../utils/get-hash-from-query-preview'\nimport { queriesPreviewXModule } from '../x-module'\n\n/**\n * Retrieves a preview of the results of a query and exposes them in the default slot,\n * along with the query preview and the totalResults of the search request.\n * By default, it renders the names of the results.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreview',\n xModule: queriesPreviewXModule.name,\n props: {\n /** The information about the request of the query preview. */\n queryPreviewInfo: {\n type: Object as PropType<QueryPreviewInfo>,\n required: true,\n },\n /** The origin property for the request. */\n queryFeature: {\n type: String as PropType<QueryFeature>,\n },\n /** Number of query preview results to be rendered. */\n maxItemsToRender: {\n type: Number,\n },\n /**\n * Controls whether the query preview requests should be triggered when the component is visible in the viewport.\n */\n loadWhenVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Debounce time in milliseconds for triggering the search requests.\n * It will default to 0 to fit the most common use case (pre-search),\n * and it would work properly with a 250 value inside empathize.\n */\n debounceTimeMs: {\n type: Number,\n default: 0,\n },\n /**\n * Controls whether the QueryPreview should be removed from the state\n * when the component is destroyed.\n */\n persistInCache: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['load', 'error'],\n setup(props, { emit, slots }) {\n const xBus = useXBus()\n\n /**\n * previewResults: The results preview of the queries preview cacheable mounted.\n * It is a dictionary, indexed by the query preview query.\n *\n * params: As the request is handled in this component, we need\n * the extra params that will be used in the request.\n *\n * config: As the request is handled in this component, we need\n * the config that will be used in the request.\n */\n const { queriesPreview: previewResults, params, config } = useState('queriesPreview')\n\n /**\n * Template ref for the root element to track visibility.\n */\n const queryPreviewElement = ref<HTMLElement | null>(null)\n\n /**\n * Query Preview key converted into a unique id.\n *\n * @returns The query hash.\n */\n const queryPreviewHash = computed(() =>\n getHashFromQueryPreviewInfo(props.queryPreviewInfo, {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n }),\n )\n\n provide('queryPreviewHash', queryPreviewHash)\n\n /**\n * Gets from the state the results preview of the query preview.\n *\n * @returns The results preview of the actual query preview.\n */\n const queryPreviewResults = computed(() => {\n const resultsPreview = previewResults.value[queryPreviewHash.value]\n return resultsPreview?.results\n ? {\n ...resultsPreview,\n results: resultsPreview.results.slice(0, props.maxItemsToRender),\n }\n : undefined\n })\n\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 * @returns A list of results.\n */\n const results = computed(() => queryPreviewResults.value?.results)\n provide(LIST_ITEMS_KEY as string, results)\n\n /**\n * It injects the provided {@link FeatureLocation} of the selected query in the search request.\n *\n * @internal\n */\n const injectedLocation = inject<Ref<FeatureLocation> | FeatureLocation>('location', 'none')\n const location =\n typeof injectedLocation === 'object' && 'value' in injectedLocation\n ? injectedLocation.value\n : injectedLocation\n\n /**\n * The computed request object to be used to retrieve the query preview results.\n *\n * @returns The search request object.\n */\n const queryPreviewRequest = computed<SearchRequest>(() => {\n const origin = createOrigin({\n feature: props.queryFeature,\n location,\n })\n const filters = props.queryPreviewInfo.filters?.reduce(\n (filtersList, filterId) => {\n const facetId = filterId.split(':')[0]\n const rawFilter = createRawFilters([filterId])[0]\n filtersList[facetId] = filtersList[facetId]\n ? filtersList[facetId].concat(rawFilter)\n : [rawFilter]\n\n return filtersList\n },\n {} as Record<string, Filter[]>,\n )\n\n return {\n query: props.queryPreviewInfo.query,\n rows: config.value.maxItemsToRequest,\n extraParams: {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n },\n filters,\n ...(origin && { origin }),\n }\n })\n\n /**\n * The debounce method to trigger the request after the debounceTimeMs defined\n * for cacheable queries.\n *\n * @returns The search request object.\n */\n const emitQueryPreviewRequestUpdated = computed<DebouncedFunction<[SearchRequest]>>(() =>\n debounceFunction(request => {\n xBus.emit('QueryPreviewRequestUpdated', request, { priority: 0, replaceable: false })\n }, props.debounceTimeMs),\n )\n\n /**\n * Initialises watcher to emit debounced requests, and first value for the requests.\n *\n * @internal\n */\n watch(queryPreviewRequest, (newRequest, oldRequest) => {\n if (!deepEqual(newRequest, oldRequest) && !props.loadWhenVisible) {\n emitQueryPreviewRequestUpdated.value(newRequest)\n }\n })\n\n const cachedQueryPreview = previewResults.value[queryPreviewHash.value]\n\n // If the query has been saved it will emit load instead of the emitting the updated request.\n if (cachedQueryPreview?.status === 'success') {\n emit('load', queryPreviewHash.value)\n xBus.emit('QueryPreviewMounted', queryPreviewHash.value, {\n priority: 0,\n replaceable: false,\n })\n } else if (!props.loadWhenVisible) {\n emitQueryPreviewRequestUpdated.value(queryPreviewRequest.value)\n }\n\n /**\n * Watch element visibility and emit request when it becomes visible for the first time\n * (only when loadWhenVisible is true).\n */\n const { unwatchDisplay } = useOnDisplay({\n element: queryPreviewElement,\n callback: () => {\n if (props.loadWhenVisible && cachedQueryPreview?.status !== 'success') {\n emitQueryPreviewRequestUpdated.value(queryPreviewRequest.value)\n }\n },\n })\n\n /**\n * Cancels the (remaining) requests when the component is destroyed\n * via the `debounce.cancel()` method.\n * If the prop 'persistInCache' is set to false, it also removes the QueryPreview\n * from the state when the component is destroyed.\n */\n onBeforeUnmount(() => {\n unwatchDisplay?.()\n emitQueryPreviewRequestUpdated.value.cancel()\n xBus.emit(\n 'QueryPreviewUnmounted',\n { queryPreviewHash: queryPreviewHash.value, cache: props.persistInCache },\n {\n priority: 0,\n replaceable: false,\n },\n )\n })\n\n /**\n * Cancels the previous request when the debounced function changes (e.g: the debounceTimeMs\n * prop changes or there is a request in progress that cancels it).\n *\n * @param _new - The new debounced function.\n * @param old - The previous debounced function.\n * @internal\n */\n watch(\n emitQueryPreviewRequestUpdated,\n (_new: DebouncedFunction<[SearchRequest]>, old: DebouncedFunction<[SearchRequest]>) => {\n old.cancel()\n },\n )\n\n const queryPreviewResultsStatus = computed(() => queryPreviewResults.value?.status)\n\n /**\n * Emits an event when the query results are loaded or fail to load.\n *\n * @param status - The status of the query preview request.\n */\n watch(queryPreviewResultsStatus, () => {\n if (queryPreviewResultsStatus.value === 'success') {\n emit(results.value?.length ? 'load' : 'error', queryPreviewHash.value)\n } else if (queryPreviewResultsStatus.value === 'error') {\n emit('error', queryPreviewHash.value)\n }\n })\n\n const hasResults = computed(() => (queryPreviewResults.value?.totalResults ?? 0) > 0)\n\n /**\n * Render function to execute the `default` slot, binding `slotsProps` and getting only the\n * first `vNode` to avoid Fragments and Text root nodes.\n *\n * @remarks `slotProps` must be values without Vue reactivity and located inside the\n * render-function to update the binding data properly.\n *\n * @returns The root `vNode` of the `default` slot or empty string if there are no results. Always wrapped in a section\n * element with the `x-query-preview-wrapper__slot-content` class.\n */\n function renderDefaultSlot() {\n const slotProps = {\n queryPreviewInfo: props.queryPreviewInfo,\n results: queryPreviewResults.value?.results,\n totalResults: queryPreviewResults.value?.totalResults,\n displayTagging: queryPreviewResults.value?.displayTagging,\n queryTagging: queryPreviewResults.value?.queryTagging,\n }\n\n const slotContent = hasResults.value ? slots.default?.(slotProps)[0] : ''\n\n return h(\n 'section',\n { ref: queryPreviewElement, class: 'x-query-preview-wrapper__slot-content' },\n [slotContent],\n )\n }\n\n /* Hack to render through a render-function, the `default` slot or, in its absence,\n the component itself. It is the alternative for the NoElement antipattern. */\n const componentProps = { hasResults, queryPreviewResults, queryPreviewElement }\n return (slots.default ? renderDefaultSlot : componentProps) as typeof componentProps\n },\n})\n</script>\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`QueryPreviewRequestUpdated`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted when the component is mounted and when the properties of the request object\n changes. The event payload is the `queryPreviewRequest` object.\n\n## Vue Events\n\nA list of vue events that the component will emit:\n\n- `load`: the event is emitted when the query results have been loaded.\n- `error`: the event is emitted if there is some error when retrieving the query results.\n\n## See it in action\n\nHere you have a basic example of how the QueryPreview is rendered. Keep in mind that this component\nis intended to be used overriding its default slot. By default it will only render the names of the\nresults.\n\n```vue live\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'sandals' })\n</script>\n```\n\n### Play with the default slot\n\nIn this example, the results will be rendered inside a sliding panel.\n\n```vue live\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" #default=\"{ totalResults, results }\">\n <section>\n <p>Total results: {{ totalResults }}</p>\n <SlidingPanel :resetOnContentChange=\"false\">\n <article\n v-for=\"result in results\"\n :key=\"result.id\"\n class=\"x-result\"\n style=\"max-width: 300px; overflow: hidden\"\n >\n <BaseResultLink :result=\"result\">\n <BaseResultImage :result=\"result\" class=\"x-result__picture\" />\n </BaseResultLink>\n <div class=\"x-result__description\">\n <BaseResultLink :result=\"result\">\n <h1 class=\"x-title3\">{{ result.name }}</h1>\n </BaseResultLink>\n </div>\n </article>\n </SlidingPanel>\n </section>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { BaseResultImage, BaseResultLink, SlidingPanel } from '@empathyco/x-components'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n\n### Play with the result slot\n\nThe component exposes a slot to override the result content, without modifying the list.\n\nIn this example, the ID of the results will be rendered along with the name.\n\n```vue\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" #result=\"{ result }\">\n <span>{{ result.id }}</span>\n <span>{{ result.name }}</span>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n\n### Play with props\n\nIn this example, the query preview has been limited to render a maximum of 4 results.\n\n```vue\n<template>\n <QueryPreview\n :maxItemsToRender=\"maxItemsToRender\"\n :queryPreviewInfo=\"queryPreviewInfo\"\n #default=\"{ results }\"\n >\n <BaseGrid #default=\"{ item }\" :items=\"results\">\n <BaseResultLink :result=\"item\">\n <BaseResultImage :result=\"item\" />\n </BaseResultLink>\n </BaseGrid>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { BaseGrid, BaseResultImage, BaseResultLink } from '@empathyco/x-components'\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst maxItemsToRender = 4\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n</docs>\n"],"names":["debounceFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,qBAAqB,CAAC,IAAI;AACnC,IAAA,KAAK,EAAE;;AAEL,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAoC;AAC1C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;;AAED,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAgC;AACvC,SAAA;;AAED,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAM;AACb,SAAA;AACD;;AAEE;AACF,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;;AAGE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;AACxB,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAI,EAAG,EAAA;AAC1B,QAAA,MAAM,IAAG,GAAI,OAAO,EAAC;AAErB;;;;;;;;;AASE;AACF,QAAA,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O,CAAC,CACN,SAAS,EACT,EAAE,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,yCAAyC,EAC5E,CAAC,WAAW,CAAC,CACf;QACF;AAEA;AAC+E;QAC/E,MAAM,cAAa,GAAI,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAkB,EAAE;AAC9E,QAAA,QAAQ,KAAK,CAAC,OAAM,GAAI,iBAAgB,GAAI,cAAc;IAC5D,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"query-preview.vue2.js","sources":["../../../../../src/x-modules/queries-preview/components/query-preview.vue"],"sourcesContent":["<template>\n <!-- eslint-disable-next-line vue/no-unused-refs -->\n <section ref=\"queryPreviewElement\" class=\"x-query-preview-wrapper__default-content\">\n <ul v-if=\"hasResults\" data-test=\"query-preview\" class=\"x-query-preview\">\n <li\n v-for=\"result in queryPreviewResults?.results\"\n :key=\"result.id\"\n class=\"x-query-preview__item\"\n data-test=\"query-preview-item\"\n >\n <!--\n @slot Query Preview result slot.\n @binding {Result} result - A Query Preview result\n -->\n <slot name=\"result\" :result=\"result\">\n <span data-test=\"result-name\">{{ result.name }}</span>\n </slot>\n </li>\n </ul>\n </section>\n</template>\n\n<script lang=\"ts\">\nimport type { Filter, SearchRequest } from '@empathyco/x-types'\nimport type { PropType, Ref } from 'vue'\nimport type { FeatureLocation, QueryFeature } from '../../../types'\nimport type { DebouncedFunction } from '../../../utils'\nimport type { QueryPreviewInfo } from '../store/types'\nimport { deepEqual } from '@empathyco/x-utils'\nimport { computed, defineComponent, h, inject, onBeforeUnmount, provide, ref, watch } from 'vue'\nimport { LIST_ITEMS_KEY } from '../../../components'\nimport { useOnDisplay, useState, useXBus } from '../../../composables'\nimport { createOrigin, createRawFilters, debounceFunction } from '../../../utils'\nimport { getHashFromQueryPreviewInfo } from '../utils/get-hash-from-query-preview'\nimport { queriesPreviewXModule } from '../x-module'\n\n/**\n * Retrieves a preview of the results of a query and exposes them in the default slot,\n * along with the query preview and the totalResults of the search request.\n * By default, it renders the names of the results.\n *\n * @public\n */\nexport default defineComponent({\n name: 'QueryPreview',\n xModule: queriesPreviewXModule.name,\n props: {\n /** The information about the request of the query preview. */\n queryPreviewInfo: {\n type: Object as PropType<QueryPreviewInfo>,\n required: true,\n },\n /** The origin property for the request. */\n queryFeature: {\n type: String as PropType<QueryFeature>,\n },\n /** Number of query preview results to be rendered. */\n maxItemsToRender: {\n type: Number,\n },\n /**\n * Controls whether the query preview requests should be triggered when the component is visible in the viewport.\n */\n loadWhenVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Debounce time in milliseconds for triggering the search requests.\n * It will default to 0 to fit the most common use case (pre-search),\n * and it would work properly with a 250 value inside empathize.\n */\n debounceTimeMs: {\n type: Number,\n default: 0,\n },\n /**\n * Controls whether the QueryPreview should be removed from the state\n * when the component is destroyed.\n */\n persistInCache: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['load', 'error'],\n setup(props, { emit, slots }) {\n const xBus = useXBus()\n\n /**\n * previewResults: The results preview of the queries preview cacheable mounted.\n * It is a dictionary, indexed by the query preview query.\n *\n * params: As the request is handled in this component, we need\n * the extra params that will be used in the request.\n *\n * config: As the request is handled in this component, we need\n * the config that will be used in the request.\n */\n const { queriesPreview: previewResults, params, config } = useState('queriesPreview')\n\n /**\n * Template ref for the root element to track visibility.\n */\n const queryPreviewElement = ref<HTMLElement | null>(null)\n\n /**\n * Query Preview key converted into a unique id.\n *\n * @returns The query hash.\n */\n const queryPreviewHash = computed(() =>\n getHashFromQueryPreviewInfo(props.queryPreviewInfo, {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n }),\n )\n\n provide('queryPreviewHash', queryPreviewHash)\n\n /**\n * Gets from the state the results preview of the query preview.\n *\n * @returns The results preview of the actual query preview.\n */\n const queryPreviewResults = computed(() => {\n const resultsPreview = previewResults.value[queryPreviewHash.value]\n return resultsPreview?.results\n ? {\n ...resultsPreview,\n results: resultsPreview.results.slice(0, props.maxItemsToRender),\n }\n : undefined\n })\n\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 * @returns A list of results.\n */\n const results = computed(() => queryPreviewResults.value?.results)\n provide(LIST_ITEMS_KEY as string, results)\n\n /**\n * It injects the provided {@link FeatureLocation} of the selected query in the search request.\n *\n * @internal\n */\n const injectedLocation = inject<Ref<FeatureLocation> | FeatureLocation>('location', 'none')\n const location =\n typeof injectedLocation === 'object' && 'value' in injectedLocation\n ? injectedLocation.value\n : injectedLocation\n\n /**\n * The computed request object to be used to retrieve the query preview results.\n *\n * @returns The search request object.\n */\n const queryPreviewRequest = computed<SearchRequest>(() => {\n const origin = createOrigin({\n feature: props.queryFeature,\n location,\n })\n const filters = props.queryPreviewInfo.filters?.reduce(\n (filtersList, filterId) => {\n const facetId = filterId.split(':')[0]\n const rawFilter = createRawFilters([filterId])[0]\n filtersList[facetId] = filtersList[facetId]\n ? filtersList[facetId].concat(rawFilter)\n : [rawFilter]\n\n return filtersList\n },\n {} as Record<string, Filter[]>,\n )\n\n return {\n query: props.queryPreviewInfo.query,\n rows: config.value.maxItemsToRequest,\n extraParams: {\n ...params.value,\n ...props.queryPreviewInfo.extraParams,\n },\n filters,\n ...(origin && { origin }),\n }\n })\n\n /**\n * The debounce method to trigger the request after the debounceTimeMs defined\n * for cacheable queries.\n *\n * @returns The search request object.\n */\n const emitQueryPreviewRequestUpdated = computed<DebouncedFunction<[SearchRequest]>>(() =>\n debounceFunction(request => {\n xBus.emit('QueryPreviewRequestUpdated', request, { priority: 0, replaceable: false })\n }, props.debounceTimeMs),\n )\n\n /**\n * Initialises watcher to emit debounced requests, and first value for the requests.\n *\n * @internal\n */\n watch(queryPreviewRequest, (newRequest, oldRequest) => {\n if (!deepEqual(newRequest, oldRequest) && !props.loadWhenVisible) {\n emitQueryPreviewRequestUpdated.value(newRequest)\n }\n })\n\n const cachedQueryPreview = previewResults.value[queryPreviewHash.value]\n\n // If the query has been saved it will emit load instead of the emitting the updated request.\n if (cachedQueryPreview?.status === 'success') {\n emit('load', queryPreviewHash.value)\n xBus.emit('QueryPreviewMounted', queryPreviewHash.value, {\n priority: 0,\n replaceable: false,\n })\n } else if (!props.loadWhenVisible) {\n emitQueryPreviewRequestUpdated.value(queryPreviewRequest.value)\n }\n\n /**\n * Watch element visibility and emit request when it becomes visible for the first time\n * (only when loadWhenVisible is true).\n */\n const { unwatchDisplay } = useOnDisplay({\n element: queryPreviewElement,\n callback: () => {\n if (props.loadWhenVisible && cachedQueryPreview?.status !== 'success') {\n emitQueryPreviewRequestUpdated.value(queryPreviewRequest.value)\n }\n },\n })\n\n /**\n * Cancels the (remaining) requests when the component is destroyed\n * via the `debounce.cancel()` method.\n * If the prop 'persistInCache' is set to false, it also removes the QueryPreview\n * from the state when the component is destroyed.\n */\n onBeforeUnmount(() => {\n unwatchDisplay?.()\n emitQueryPreviewRequestUpdated.value.cancel()\n xBus.emit(\n 'QueryPreviewUnmounted',\n { queryPreviewHash: queryPreviewHash.value, cache: props.persistInCache },\n {\n priority: 0,\n replaceable: false,\n },\n )\n })\n\n /**\n * Cancels the previous request when the debounced function changes (e.g: the debounceTimeMs\n * prop changes or there is a request in progress that cancels it).\n *\n * @param _new - The new debounced function.\n * @param old - The previous debounced function.\n * @internal\n */\n watch(\n emitQueryPreviewRequestUpdated,\n (_new: DebouncedFunction<[SearchRequest]>, old: DebouncedFunction<[SearchRequest]>) => {\n old.cancel()\n },\n )\n\n const queryPreviewResultsStatus = computed(() => queryPreviewResults.value?.status)\n\n /**\n * Emits an event when the query results are loaded or fail to load.\n *\n * @param status - The status of the query preview request.\n */\n watch(queryPreviewResultsStatus, () => {\n if (queryPreviewResultsStatus.value === 'success') {\n emit(results.value?.length ? 'load' : 'error', queryPreviewHash.value)\n } else if (queryPreviewResultsStatus.value === 'error') {\n emit('error', queryPreviewHash.value)\n }\n })\n\n const hasResults = computed(() => (queryPreviewResults.value?.totalResults ?? 0) > 0)\n\n /**\n * Render function to execute the `default` slot, binding `slotsProps` and getting only the\n * first `vNode` to avoid Fragments and Text root nodes.\n *\n * @remarks `slotProps` must be values without Vue reactivity and located inside the\n * render-function to update the binding data properly.\n *\n * @returns The root `vNode` of the `default` slot or empty string if there are no results. Always wrapped in a section\n * element with the `x-query-preview-wrapper__slot-content` class.\n */\n function renderDefaultSlot() {\n const slotProps = {\n queryPreviewInfo: props.queryPreviewInfo,\n results: queryPreviewResults.value?.results,\n totalResults: queryPreviewResults.value?.totalResults,\n displayTagging: queryPreviewResults.value?.displayTagging,\n queryTagging: queryPreviewResults.value?.queryTagging,\n }\n\n const slotContent = hasResults.value ? slots.default?.(slotProps)[0] : ''\n\n return h(\n 'section',\n { ref: queryPreviewElement, class: 'x-query-preview-wrapper__slot-content' },\n [slotContent],\n )\n }\n\n /* Hack to render through a render-function, the `default` slot or, in its absence,\n the component itself. It is the alternative for the NoElement antipattern. */\n const componentProps = { hasResults, queryPreviewResults, queryPreviewElement }\n return (slots.default ? renderDefaultSlot : componentProps) as typeof componentProps\n },\n})\n</script>\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`QueryPreviewRequestUpdated`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted when the component is mounted and when the properties of the request object\n changes. The event payload is the `queryPreviewRequest` object.\n\n## Vue Events\n\nA list of vue events that the component will emit:\n\n- `load`: the event is emitted when the query results have been loaded.\n- `error`: the event is emitted if there is some error when retrieving the query results.\n\n## See it in action\n\nHere you have a basic example of how the QueryPreview is rendered. Keep in mind that this component\nis intended to be used overriding its default slot. By default it will only render the names of the\nresults.\n\n```vue live\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" />\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'sandals' })\n</script>\n```\n\n### Play with the default slot\n\nIn this example, the results will be rendered inside a sliding panel.\n\n```vue live\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" #default=\"{ totalResults, results }\">\n <section>\n <p>Total results: {{ totalResults }}</p>\n <SlidingPanel :resetOnContentChange=\"false\">\n <article\n v-for=\"result in results\"\n :key=\"result.id\"\n class=\"x-result\"\n style=\"max-width: 300px; overflow: hidden\"\n >\n <BaseResultLink :result=\"result\">\n <BaseResultImage :result=\"result\" class=\"x-result__picture\" />\n </BaseResultLink>\n <div class=\"x-result__description\">\n <BaseResultLink :result=\"result\">\n <h1 class=\"x-title3\">{{ result.name }}</h1>\n </BaseResultLink>\n </div>\n </article>\n </SlidingPanel>\n </section>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { BaseResultImage, BaseResultLink, SlidingPanel } from '@empathyco/x-components'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n\n### Play with the result slot\n\nThe component exposes a slot to override the result content, without modifying the list.\n\nIn this example, the ID of the results will be rendered along with the name.\n\n```vue\n<template>\n <QueryPreview :queryPreviewInfo=\"queryPreviewInfo\" #result=\"{ result }\">\n <span>{{ result.id }}</span>\n <span>{{ result.name }}</span>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n\n### Play with props\n\nIn this example, the query preview has been limited to render a maximum of 4 results.\n\n```vue\n<template>\n <QueryPreview\n :maxItemsToRender=\"maxItemsToRender\"\n :queryPreviewInfo=\"queryPreviewInfo\"\n #default=\"{ results }\"\n >\n <BaseGrid #default=\"{ item }\" :items=\"results\">\n <BaseResultLink :result=\"item\">\n <BaseResultImage :result=\"item\" />\n </BaseResultLink>\n </BaseGrid>\n </QueryPreview>\n</template>\n\n<script setup>\nimport { BaseGrid, BaseResultImage, BaseResultLink } from '@empathyco/x-components'\nimport { QueryPreview } from '@empathyco/x-components/queries-preview'\nimport { reactive } from 'vue'\nconst maxItemsToRender = 4\nconst queryPreviewInfo = reactive({ query: 'flip-flops' })\n</script>\n```\n</docs>\n"],"names":["debounceFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,qBAAqB,CAAC,IAAI;AACnC,IAAA,KAAK,EAAE;;AAEL,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAoC;AAC1C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;;AAED,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAgC;AACvC,SAAA;;AAED,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,MAAM;AACb,SAAA;AACD;;AAEE;AACF,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;;AAGE;AACF,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;AACxB,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAI,EAAG,EAAA;AAC1B,QAAA,MAAM,IAAG,GAAI,OAAO,EAAC;AAErB;;;;;;;;;AASE;AACF,QAAA,MAAM,EAAE,cAAc,EAAE,cAAc,EAA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