@empathyco/x-components 7.2.3 → 7.2.4

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 (572) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/core/index.js +3 -3
  3. package/js/components/animations/{animate-clip-path2.vue.js → animate-clip-path.vue2.js} +1 -1
  4. package/js/components/animations/animate-clip-path.vue2.js.map +1 -0
  5. package/js/components/animations/animate-clip-path.vue3.js +7 -0
  6. package/js/components/animations/animate-clip-path.vue3.js.map +1 -0
  7. package/js/components/animations/{animate-scale2.vue.js → animate-scale.vue2.js} +1 -1
  8. package/js/components/animations/animate-scale.vue2.js.map +1 -0
  9. package/js/components/animations/{animate-scale3.vue.js → animate-scale.vue3.js} +2 -2
  10. package/js/components/animations/animate-scale.vue3.js.map +1 -0
  11. package/js/components/animations/{animate-translate2.vue.js → animate-translate.vue2.js} +1 -1
  12. package/js/components/animations/animate-translate.vue2.js.map +1 -0
  13. package/js/components/animations/animate-translate.vue3.js +7 -0
  14. package/js/components/animations/animate-translate.vue3.js.map +1 -0
  15. package/js/components/animations/animate-width.vue.js +2 -2
  16. package/js/components/animations/{animate-width2.vue.js → animate-width.vue2.js} +1 -1
  17. package/js/components/animations/{animate-width2.vue.js.map → animate-width.vue2.js.map} +1 -1
  18. package/js/components/animations/{animate-width3.vue.js → animate-width.vue3.js} +1 -1
  19. package/js/components/animations/animate-width.vue3.js.map +1 -0
  20. package/js/components/animations/change-height.vue.js +2 -2
  21. package/js/components/animations/{change-height2.vue.js → change-height.vue2.js} +1 -1
  22. package/js/components/animations/{change-height2.vue.js.map → change-height.vue2.js.map} +1 -1
  23. package/js/components/animations/{change-height3.vue.js → change-height.vue3.js} +1 -1
  24. package/js/components/animations/change-height.vue3.js.map +1 -0
  25. package/js/components/animations/collapse-height.vue.js +2 -2
  26. package/js/components/animations/{collapse-height2.vue.js → collapse-height.vue2.js} +1 -1
  27. package/js/components/animations/{collapse-height2.vue.js.map → collapse-height.vue2.js.map} +1 -1
  28. package/js/components/animations/{collapse-height3.vue.js → collapse-height.vue3.js} +1 -1
  29. package/js/components/animations/collapse-height.vue3.js.map +1 -0
  30. package/js/components/animations/collapse-width.vue.js +2 -2
  31. package/js/components/animations/{collapse-width2.vue.js → collapse-width.vue2.js} +1 -1
  32. package/js/components/animations/{collapse-width2.vue.js.map → collapse-width.vue2.js.map} +1 -1
  33. package/js/components/animations/{collapse-width3.vue.js → collapse-width.vue3.js} +1 -1
  34. package/js/components/animations/collapse-width.vue3.js.map +1 -0
  35. package/js/components/animations/cross-fade.vue.js +2 -2
  36. package/js/components/animations/{cross-fade2.vue.js → cross-fade.vue2.js} +1 -1
  37. package/js/components/animations/{cross-fade2.vue.js.map → cross-fade.vue2.js.map} +1 -1
  38. package/js/components/animations/{cross-fade3.vue.js → cross-fade.vue3.js} +1 -1
  39. package/js/components/animations/cross-fade.vue3.js.map +1 -0
  40. package/js/components/animations/fade-and-slide.vue.js +2 -2
  41. package/js/components/animations/{fade-and-slide2.vue.js → fade-and-slide.vue2.js} +1 -1
  42. package/js/components/animations/{fade-and-slide2.vue.js.map → fade-and-slide.vue2.js.map} +1 -1
  43. package/js/components/animations/{fade-and-slide3.vue.js → fade-and-slide.vue3.js} +1 -1
  44. package/js/components/animations/fade-and-slide.vue3.js.map +1 -0
  45. package/js/components/animations/fade.vue.js +2 -2
  46. package/js/components/animations/{fade2.vue.js → fade.vue2.js} +1 -1
  47. package/js/components/animations/{fade2.vue.js.map → fade.vue2.js.map} +1 -1
  48. package/js/components/animations/{fade3.vue.js → fade.vue3.js} +1 -1
  49. package/js/components/animations/fade.vue3.js.map +1 -0
  50. package/js/components/animations/{no-animation2.vue.js → no-animation.vue2.js} +1 -1
  51. package/js/components/animations/no-animation.vue2.js.map +1 -0
  52. package/js/components/animations/staggered-fade-and-slide.vue.js +2 -2
  53. package/js/components/animations/{staggered-fade-and-slide2.vue.js → staggered-fade-and-slide.vue2.js} +1 -1
  54. package/js/components/animations/{staggered-fade-and-slide2.vue.js.map → staggered-fade-and-slide.vue2.js.map} +1 -1
  55. package/js/components/animations/{staggered-fade-and-slide3.vue.js → staggered-fade-and-slide.vue3.js} +1 -1
  56. package/js/components/animations/staggered-fade-and-slide.vue3.js.map +1 -0
  57. package/js/components/auto-progress-bar.vue.js +2 -2
  58. package/js/components/{auto-progress-bar2.vue.js → auto-progress-bar.vue2.js} +1 -1
  59. package/js/components/{auto-progress-bar2.vue.js.map → auto-progress-bar.vue2.js.map} +1 -1
  60. package/js/components/{auto-progress-bar3.vue.js → auto-progress-bar.vue3.js} +1 -1
  61. package/js/components/auto-progress-bar.vue3.js.map +1 -0
  62. package/js/components/base-dropdown.vue.js +2 -2
  63. package/js/components/{base-dropdown2.vue.js → base-dropdown.vue2.js} +20 -20
  64. package/js/components/{base-dropdown2.vue.js.map → base-dropdown.vue2.js.map} +1 -1
  65. package/js/components/{base-dropdown3.vue.js → base-dropdown.vue3.js} +1 -1
  66. package/js/components/base-dropdown.vue3.js.map +1 -0
  67. package/js/components/base-event-button.vue.js +1 -1
  68. package/js/components/{base-event-button2.vue.js → base-event-button.vue2.js} +1 -1
  69. package/js/components/{base-event-button2.vue.js.map → base-event-button.vue2.js.map} +1 -1
  70. package/js/components/base-grid.vue.js +2 -2
  71. package/js/components/{base-grid2.vue.js → base-grid.vue2.js} +1 -1
  72. package/js/components/{base-grid2.vue.js.map → base-grid.vue2.js.map} +1 -1
  73. package/js/components/{base-grid3.vue.js → base-grid.vue3.js} +1 -1
  74. package/js/components/base-grid.vue3.js.map +1 -0
  75. package/js/components/base-keyboard-navigation.vue.js +1 -1
  76. package/js/components/{base-keyboard-navigation2.vue.js → base-keyboard-navigation.vue2.js} +1 -1
  77. package/js/components/{base-keyboard-navigation2.vue.js.map → base-keyboard-navigation.vue2.js.map} +1 -1
  78. package/js/components/base-rating.vue.js +2 -2
  79. package/js/components/{base-rating2.vue.js → base-rating.vue2.js} +1 -1
  80. package/js/components/{base-rating2.vue.js.map → base-rating.vue2.js.map} +1 -1
  81. package/js/components/{base-rating3.vue.js → base-rating.vue3.js} +1 -1
  82. package/js/components/base-rating.vue3.js.map +1 -0
  83. package/js/components/base-slider.vue.js +2 -2
  84. package/js/components/{base-slider2.vue.js → base-slider.vue2.js} +1 -1
  85. package/js/components/{base-slider2.vue.js.map → base-slider.vue2.js.map} +1 -1
  86. package/js/components/{base-slider3.vue.js → base-slider.vue3.js} +1 -1
  87. package/js/components/base-slider.vue3.js.map +1 -0
  88. package/js/components/base-switch.vue.js +2 -2
  89. package/js/components/{base-switch2.vue.js → base-switch.vue2.js} +1 -1
  90. package/js/components/{base-switch2.vue.js.map → base-switch.vue2.js.map} +1 -1
  91. package/js/components/{base-switch3.vue.js → base-switch.vue3.js} +1 -1
  92. package/js/components/base-switch.vue3.js.map +1 -0
  93. package/js/components/base-teleport.vue.js +1 -1
  94. package/js/components/{base-teleport2.vue.js → base-teleport.vue2.js} +1 -1
  95. package/js/components/{base-teleport2.vue.js.map → base-teleport.vue2.js.map} +1 -1
  96. package/js/components/base-variable-column-grid.vue.js +1 -1
  97. package/js/components/{base-variable-column-grid2.vue.js → base-variable-column-grid.vue2.js} +1 -1
  98. package/js/components/{base-variable-column-grid2.vue.js.map → base-variable-column-grid.vue2.js.map} +1 -1
  99. package/js/components/column-picker/base-column-picker-dropdown.vue.js +1 -1
  100. package/js/components/column-picker/{base-column-picker-dropdown2.vue.js → base-column-picker-dropdown.vue2.js} +1 -1
  101. package/js/components/column-picker/{base-column-picker-dropdown2.vue.js.map → base-column-picker-dropdown.vue2.js.map} +1 -1
  102. package/js/components/column-picker/base-column-picker-list.vue.js +1 -1
  103. package/js/components/column-picker/{base-column-picker-list2.vue.js → base-column-picker-list.vue2.js} +1 -1
  104. package/js/components/column-picker/{base-column-picker-list2.vue.js.map → base-column-picker-list.vue2.js.map} +1 -1
  105. package/js/components/currency/base-currency.vue.js +1 -1
  106. package/js/components/currency/{base-currency2.vue.js → base-currency.vue2.js} +1 -1
  107. package/js/components/currency/{base-currency2.vue.js.map → base-currency.vue2.js.map} +1 -1
  108. package/js/components/{display-click-provider2.vue.js → display-click-provider.vue2.js} +1 -1
  109. package/js/components/display-click-provider.vue2.js.map +1 -0
  110. package/js/components/{display-emitter2.vue.js → display-emitter.vue2.js} +1 -1
  111. package/js/components/display-emitter.vue2.js.map +1 -0
  112. package/js/components/filters/labels/{base-price-filter-label2.vue.js → base-price-filter-label.vue2.js} +1 -1
  113. package/js/components/filters/labels/base-price-filter-label.vue2.js.map +1 -0
  114. package/js/components/filters/labels/base-rating-filter-label.vue.js +1 -1
  115. package/js/components/filters/labels/{base-rating-filter-label2.vue.js → base-rating-filter-label.vue2.js} +1 -1
  116. package/js/components/filters/labels/{base-rating-filter-label2.vue.js.map → base-rating-filter-label.vue2.js.map} +1 -1
  117. package/js/components/{global-x-bus2.vue.js → global-x-bus.vue2.js} +1 -1
  118. package/js/components/global-x-bus.vue2.js.map +1 -0
  119. package/js/components/highlight.vue.js +1 -1
  120. package/js/components/{highlight2.vue.js → highlight.vue2.js} +1 -1
  121. package/js/components/{highlight2.vue.js.map → highlight.vue2.js.map} +1 -1
  122. package/js/components/items-list.vue.js +1 -1
  123. package/js/components/{items-list2.vue.js → items-list.vue2.js} +1 -1
  124. package/js/components/{items-list2.vue.js.map → items-list.vue2.js.map} +1 -1
  125. package/js/components/{location-provider2.vue.js → location-provider.vue2.js} +1 -1
  126. package/js/components/location-provider.vue2.js.map +1 -0
  127. package/js/components/message.vue.js +17 -17
  128. package/js/components/{message2.vue.js → message.vue2.js} +1 -1
  129. package/js/components/message.vue2.js.map +1 -0
  130. package/js/components/modals/base-events-modal-close.vue.js +1 -1
  131. package/js/components/modals/{base-events-modal-close2.vue.js → base-events-modal-close.vue2.js} +1 -1
  132. package/js/components/modals/{base-events-modal-close2.vue.js.map → base-events-modal-close.vue2.js.map} +1 -1
  133. package/js/components/modals/base-events-modal-open.vue.js +1 -1
  134. package/js/components/modals/{base-events-modal-open2.vue.js → base-events-modal-open.vue2.js} +1 -1
  135. package/js/components/modals/{base-events-modal-open2.vue.js.map → base-events-modal-open.vue2.js.map} +1 -1
  136. package/js/components/modals/base-events-modal.vue.js +1 -1
  137. package/js/components/modals/{base-events-modal2.vue.js → base-events-modal.vue2.js} +1 -1
  138. package/js/components/modals/{base-events-modal2.vue.js.map → base-events-modal.vue2.js.map} +1 -1
  139. package/js/components/modals/base-id-modal-close.vue.js +1 -1
  140. package/js/components/modals/{base-id-modal-close2.vue.js → base-id-modal-close.vue2.js} +1 -1
  141. package/js/components/modals/{base-id-modal-close2.vue.js.map → base-id-modal-close.vue2.js.map} +1 -1
  142. package/js/components/modals/base-id-modal-open.vue.js +1 -1
  143. package/js/components/modals/{base-id-modal-open2.vue.js → base-id-modal-open.vue2.js} +1 -1
  144. package/js/components/modals/{base-id-modal-open2.vue.js.map → base-id-modal-open.vue2.js.map} +1 -1
  145. package/js/components/modals/base-id-modal.vue.js +1 -1
  146. package/js/components/modals/{base-id-modal2.vue.js → base-id-modal.vue2.js} +1 -1
  147. package/js/components/modals/{base-id-modal2.vue.js.map → base-id-modal.vue2.js.map} +1 -1
  148. package/js/components/modals/base-modal.vue.js +2 -2
  149. package/js/components/modals/{base-modal2.vue.js → base-modal.vue2.js} +18 -18
  150. package/js/components/modals/{base-modal2.vue.js.map → base-modal.vue2.js.map} +1 -1
  151. package/js/components/modals/{base-modal3.vue.js → base-modal.vue3.js} +1 -1
  152. package/js/components/modals/base-modal.vue3.js.map +1 -0
  153. package/js/components/modals/close-main-modal.vue.js +1 -1
  154. package/js/components/modals/{close-main-modal2.vue.js → close-main-modal.vue2.js} +1 -1
  155. package/js/components/modals/{close-main-modal2.vue.js.map → close-main-modal.vue2.js.map} +1 -1
  156. package/js/components/modals/main-modal.vue.js +1 -1
  157. package/js/components/modals/{main-modal2.vue.js → main-modal.vue2.js} +1 -1
  158. package/js/components/modals/{main-modal2.vue.js.map → main-modal.vue2.js.map} +1 -1
  159. package/js/components/modals/open-main-modal.vue.js +1 -1
  160. package/js/components/modals/{open-main-modal2.vue.js → open-main-modal.vue2.js} +1 -1
  161. package/js/components/modals/{open-main-modal2.vue.js.map → open-main-modal.vue2.js.map} +1 -1
  162. package/js/components/page-loader-button.vue.js +2 -2
  163. package/js/components/{page-loader-button2.vue.js → page-loader-button.vue2.js} +1 -1
  164. package/js/components/{page-loader-button2.vue.js.map → page-loader-button.vue2.js.map} +1 -1
  165. package/js/components/{page-loader-button3.vue.js → page-loader-button.vue3.js} +1 -1
  166. package/js/components/page-loader-button.vue3.js.map +1 -0
  167. package/js/components/page-selector.vue.js +2 -2
  168. package/js/components/{page-selector2.vue.js → page-selector.vue2.js} +1 -1
  169. package/js/components/{page-selector2.vue.js.map → page-selector.vue2.js.map} +1 -1
  170. package/js/components/{page-selector3.vue.js → page-selector.vue3.js} +1 -1
  171. package/js/components/page-selector.vue3.js.map +1 -0
  172. package/js/components/panels/base-header-toggle-panel.vue.js +2 -2
  173. package/js/components/panels/{base-header-toggle-panel2.vue.js → base-header-toggle-panel.vue2.js} +20 -20
  174. package/js/components/panels/{base-header-toggle-panel2.vue.js.map → base-header-toggle-panel.vue2.js.map} +1 -1
  175. package/js/components/panels/{base-header-toggle-panel3.vue.js → base-header-toggle-panel.vue3.js} +1 -1
  176. package/js/components/panels/base-header-toggle-panel.vue3.js.map +1 -0
  177. package/js/components/panels/base-id-toggle-panel-button.vue.js +1 -1
  178. package/js/components/panels/{base-id-toggle-panel-button2.vue.js → base-id-toggle-panel-button.vue2.js} +1 -1
  179. package/js/components/panels/{base-id-toggle-panel-button2.vue.js.map → base-id-toggle-panel-button.vue2.js.map} +1 -1
  180. package/js/components/panels/base-id-toggle-panel.vue.js +1 -1
  181. package/js/components/panels/{base-id-toggle-panel2.vue.js → base-id-toggle-panel.vue2.js} +20 -20
  182. package/js/components/panels/{base-id-toggle-panel2.vue.js.map → base-id-toggle-panel.vue2.js.map} +1 -1
  183. package/js/components/panels/base-tabs-panel.vue.js +2 -2
  184. package/js/components/panels/{base-tabs-panel2.vue.js → base-tabs-panel.vue2.js} +20 -20
  185. package/js/components/panels/{base-tabs-panel2.vue.js.map → base-tabs-panel.vue2.js.map} +1 -1
  186. package/js/components/panels/{base-tabs-panel3.vue.js → base-tabs-panel.vue3.js} +1 -1
  187. package/js/components/panels/base-tabs-panel.vue3.js.map +1 -0
  188. package/js/components/panels/base-toggle-panel.vue.js +1 -1
  189. package/js/components/panels/{base-toggle-panel2.vue.js → base-toggle-panel.vue2.js} +1 -1
  190. package/js/components/panels/{base-toggle-panel2.vue.js.map → base-toggle-panel.vue2.js.map} +1 -1
  191. package/js/components/result/base-result-add-to-cart.vue.js +1 -1
  192. package/js/components/result/{base-result-add-to-cart2.vue.js → base-result-add-to-cart.vue2.js} +1 -1
  193. package/js/components/result/{base-result-add-to-cart2.vue.js.map → base-result-add-to-cart.vue2.js.map} +1 -1
  194. package/js/components/result/base-result-current-price.vue.js +1 -1
  195. package/js/components/result/{base-result-current-price2.vue.js → base-result-current-price.vue2.js} +1 -1
  196. package/js/components/result/{base-result-current-price2.vue.js.map → base-result-current-price.vue2.js.map} +1 -1
  197. package/js/components/result/base-result-image.vue.js +2 -2
  198. package/js/components/result/{base-result-image2.vue.js → base-result-image.vue2.js} +20 -20
  199. package/js/components/result/{base-result-image2.vue.js.map → base-result-image.vue2.js.map} +1 -1
  200. package/js/components/result/{base-result-image3.vue.js → base-result-image.vue3.js} +1 -1
  201. package/js/components/result/base-result-image.vue3.js.map +1 -0
  202. package/js/components/result/base-result-link.vue.js +2 -2
  203. package/js/components/result/{base-result-link2.vue.js → base-result-link.vue2.js} +1 -1
  204. package/js/components/result/{base-result-link2.vue.js.map → base-result-link.vue2.js.map} +1 -1
  205. package/js/components/result/{base-result-link3.vue.js → base-result-link.vue3.js} +1 -1
  206. package/js/components/result/base-result-link.vue3.js.map +1 -0
  207. package/js/components/result/base-result-previous-price.vue.js +1 -1
  208. package/js/components/result/{base-result-previous-price2.vue.js → base-result-previous-price.vue2.js} +1 -1
  209. package/js/components/result/{base-result-previous-price2.vue.js.map → base-result-previous-price.vue2.js.map} +1 -1
  210. package/js/components/result/base-result-rating.vue.js +2 -2
  211. package/js/components/result/{base-result-rating2.vue.js → base-result-rating.vue2.js} +1 -1
  212. package/js/components/result/{base-result-rating2.vue.js.map → base-result-rating.vue2.js.map} +1 -1
  213. package/js/components/result/{base-result-rating3.vue.js → base-result-rating.vue3.js} +1 -1
  214. package/js/components/result/base-result-rating.vue3.js.map +1 -0
  215. package/js/components/result/result-variant-selector.vue.js +2 -2
  216. package/js/components/result/{result-variant-selector2.vue.js → result-variant-selector.vue2.js} +1 -1
  217. package/js/components/result/{result-variant-selector2.vue.js.map → result-variant-selector.vue2.js.map} +1 -1
  218. package/js/components/result/{result-variant-selector3.vue.js → result-variant-selector.vue3.js} +1 -1
  219. package/js/components/result/result-variant-selector.vue3.js.map +1 -0
  220. package/js/components/result/{result-variants-provider2.vue.js → result-variants-provider.vue2.js} +1 -1
  221. package/js/components/result/result-variants-provider.vue2.js.map +1 -0
  222. package/js/components/scroll/base-scroll.vue.js +1 -1
  223. package/js/components/scroll/{base-scroll2.vue.js → base-scroll.vue2.js} +1 -1
  224. package/js/components/scroll/{base-scroll2.vue.js.map → base-scroll.vue2.js.map} +1 -1
  225. package/js/components/sliding-panel.vue.js +2 -2
  226. package/js/components/{sliding-panel2.vue.js → sliding-panel.vue2.js} +1 -1
  227. package/js/components/{sliding-panel2.vue.js.map → sliding-panel.vue2.js.map} +1 -1
  228. package/js/components/{sliding-panel3.vue.js → sliding-panel.vue3.js} +1 -1
  229. package/js/components/sliding-panel.vue3.js.map +1 -0
  230. package/js/components/snippet-callbacks.vue.js +1 -1
  231. package/js/components/{snippet-callbacks2.vue.js → snippet-callbacks.vue2.js} +1 -1
  232. package/js/components/{snippet-callbacks2.vue.js.map → snippet-callbacks.vue2.js.map} +1 -1
  233. package/js/components/suggestions/base-suggestion.vue.js +1 -1
  234. package/js/components/suggestions/{base-suggestion2.vue.js → base-suggestion.vue2.js} +1 -1
  235. package/js/components/suggestions/{base-suggestion2.vue.js.map → base-suggestion.vue2.js.map} +1 -1
  236. package/js/components/suggestions/base-suggestions.vue.js +2 -2
  237. package/js/components/suggestions/{base-suggestions2.vue.js → base-suggestions.vue2.js} +1 -1
  238. package/js/components/suggestions/{base-suggestions2.vue.js.map → base-suggestions.vue2.js.map} +1 -1
  239. package/js/components/suggestions/{base-suggestions3.vue.js → base-suggestions.vue3.js} +1 -1
  240. package/js/components/suggestions/base-suggestions.vue3.js.map +1 -0
  241. package/js/index.js +3 -3
  242. package/js/x-modules/ai/components/ai-carousel.vue.js +2 -2
  243. package/js/x-modules/ai/components/{ai-carousel2.vue.js → ai-carousel.vue2.js} +75 -75
  244. package/js/x-modules/ai/components/{ai-carousel2.vue.js.map → ai-carousel.vue2.js.map} +1 -1
  245. package/js/x-modules/ai/components/{ai-carousel3.vue.js → ai-carousel.vue3.js} +1 -1
  246. package/js/x-modules/ai/components/ai-carousel.vue3.js.map +1 -0
  247. package/js/x-modules/ai/components/ai-grouped-carousel.vue.js +1 -1
  248. package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js +123 -0
  249. package/js/x-modules/ai/components/{ai-grouped-carousel2.vue.js.map → ai-grouped-carousel.vue2.js.map} +1 -1
  250. package/js/x-modules/device/components/device-detector.vue.js +1 -1
  251. package/js/x-modules/device/components/{device-detector2.vue.js → device-detector.vue2.js} +1 -1
  252. package/js/x-modules/device/components/{device-detector2.vue.js.map → device-detector.vue2.js.map} +1 -1
  253. package/js/x-modules/empathize/components/empathize.vue.js +1 -1
  254. package/js/x-modules/empathize/components/{empathize2.vue.js → empathize.vue2.js} +82 -82
  255. package/js/x-modules/empathize/components/{empathize2.vue.js.map → empathize.vue2.js.map} +1 -1
  256. package/js/x-modules/experience-controls/components/{experience-controls2.vue.js → experience-controls.vue2.js} +1 -1
  257. package/js/x-modules/experience-controls/components/experience-controls.vue2.js.map +1 -0
  258. package/js/x-modules/extra-params/components/{extra-params2.vue.js → extra-params.vue2.js} +1 -1
  259. package/js/x-modules/extra-params/components/extra-params.vue2.js.map +1 -0
  260. package/js/x-modules/extra-params/components/{renderless-extra-param2.vue.js → renderless-extra-param.vue2.js} +1 -1
  261. package/js/x-modules/extra-params/components/renderless-extra-param.vue2.js.map +1 -0
  262. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js +1 -1
  263. package/js/x-modules/extra-params/components/{snippet-config-extra-params2.vue.js → snippet-config-extra-params.vue2.js} +1 -1
  264. package/js/x-modules/extra-params/components/{snippet-config-extra-params2.vue.js.map → snippet-config-extra-params.vue2.js.map} +1 -1
  265. package/js/x-modules/facets/components/clear-filters.vue.js +1 -1
  266. package/js/x-modules/facets/components/{clear-filters2.vue.js → clear-filters.vue2.js} +1 -1
  267. package/js/x-modules/facets/components/{clear-filters2.vue.js.map → clear-filters.vue2.js.map} +1 -1
  268. package/js/x-modules/facets/components/facets/facets-provider.vue.js +2 -2
  269. package/js/x-modules/facets/components/facets/{facets-provider2.vue.js → facets-provider.vue2.js} +1 -1
  270. package/js/x-modules/facets/components/facets/{facets-provider2.vue.js.map → facets-provider.vue2.js.map} +1 -1
  271. package/js/x-modules/facets/components/facets/{facets-provider3.vue.js → facets-provider.vue3.js} +1 -1
  272. package/js/x-modules/facets/components/facets/facets-provider.vue3.js.map +1 -0
  273. package/js/x-modules/facets/components/facets/facets.vue.js +2 -2
  274. package/js/x-modules/facets/components/facets/{facets2.vue.js → facets.vue2.js} +1 -1
  275. package/js/x-modules/facets/components/facets/{facets2.vue.js.map → facets.vue2.js.map} +1 -1
  276. package/js/x-modules/facets/components/facets/{facets3.vue.js → facets.vue3.js} +1 -1
  277. package/js/x-modules/{extra-params/components/extra-params2.vue.js.map → facets/components/facets/facets.vue3.js.map} +1 -1
  278. package/js/x-modules/facets/components/filters/all-filter.vue.js +1 -1
  279. package/js/x-modules/facets/components/filters/{all-filter2.vue.js → all-filter.vue2.js} +1 -1
  280. package/js/x-modules/facets/components/filters/{all-filter2.vue.js.map → all-filter.vue2.js.map} +1 -1
  281. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js +2 -2
  282. package/js/x-modules/facets/components/filters/{editable-number-range-filter2.vue.js → editable-number-range-filter.vue2.js} +1 -1
  283. package/js/x-modules/facets/components/filters/{editable-number-range-filter2.vue.js.map → editable-number-range-filter.vue2.js.map} +1 -1
  284. package/js/x-modules/facets/components/filters/{editable-number-range-filter3.vue.js → editable-number-range-filter.vue3.js} +1 -1
  285. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue3.js.map +1 -0
  286. package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js +1 -1
  287. package/js/x-modules/facets/components/filters/{hierarchical-filter2.vue.js → hierarchical-filter.vue2.js} +1 -1
  288. package/js/x-modules/facets/components/filters/{hierarchical-filter2.vue.js.map → hierarchical-filter.vue2.js.map} +1 -1
  289. package/js/x-modules/facets/components/filters/number-range-filter.vue.js +1 -1
  290. package/js/x-modules/facets/components/filters/{number-range-filter2.vue.js → number-range-filter.vue2.js} +1 -1
  291. package/js/x-modules/facets/components/filters/{number-range-filter2.vue.js.map → number-range-filter.vue2.js.map} +1 -1
  292. package/js/x-modules/facets/components/filters/{renderless-filter2.vue.js → renderless-filter.vue2.js} +1 -1
  293. package/js/x-modules/facets/components/filters/renderless-filter.vue2.js.map +1 -0
  294. package/js/x-modules/facets/components/filters/simple-filter.vue.js +1 -1
  295. package/js/x-modules/facets/components/filters/{simple-filter2.vue.js → simple-filter.vue2.js} +1 -1
  296. package/js/x-modules/facets/components/filters/{simple-filter2.vue.js.map → simple-filter.vue2.js.map} +1 -1
  297. package/js/x-modules/facets/components/lists/{exclude-filters-with-no-results2.vue.js → exclude-filters-with-no-results.vue2.js} +1 -1
  298. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue2.js.map +1 -0
  299. package/js/x-modules/facets/components/lists/filters-list.vue.js +2 -2
  300. package/js/x-modules/facets/components/lists/{filters-list2.vue.js → filters-list.vue2.js} +1 -1
  301. package/js/x-modules/facets/components/lists/{filters-list2.vue.js.map → filters-list.vue2.js.map} +1 -1
  302. package/js/x-modules/facets/components/lists/{filters-list3.vue.js → filters-list.vue3.js} +1 -1
  303. package/js/x-modules/facets/components/lists/filters-list.vue3.js.map +1 -0
  304. package/js/x-modules/facets/components/lists/filters-search.vue.js +2 -2
  305. package/js/x-modules/facets/components/lists/{filters-search2.vue.js → filters-search.vue2.js} +1 -1
  306. package/js/x-modules/facets/components/lists/{filters-search2.vue.js.map → filters-search.vue2.js.map} +1 -1
  307. package/js/x-modules/facets/components/lists/{filters-search3.vue.js → filters-search.vue3.js} +1 -1
  308. package/js/x-modules/facets/components/lists/filters-search.vue3.js.map +1 -0
  309. package/js/x-modules/facets/components/lists/selected-filters-list.vue.js +1 -1
  310. package/js/x-modules/facets/components/lists/{selected-filters-list2.vue.js → selected-filters-list.vue2.js} +1 -1
  311. package/js/x-modules/facets/components/lists/{selected-filters-list2.vue.js.map → selected-filters-list.vue2.js.map} +1 -1
  312. package/js/x-modules/facets/components/lists/{selected-filters2.vue.js → selected-filters.vue2.js} +1 -1
  313. package/js/x-modules/facets/components/lists/selected-filters.vue2.js.map +1 -0
  314. package/js/x-modules/facets/components/lists/sliced-filters.vue.js +1 -1
  315. package/js/x-modules/facets/components/lists/{sliced-filters2.vue.js → sliced-filters.vue2.js} +1 -1
  316. package/js/x-modules/facets/components/lists/{sliced-filters2.vue.js.map → sliced-filters.vue2.js.map} +1 -1
  317. package/js/x-modules/facets/components/lists/{sorted-filters2.vue.js → sorted-filters.vue2.js} +1 -1
  318. package/js/x-modules/facets/components/lists/sorted-filters.vue2.js.map +1 -0
  319. package/js/x-modules/facets/components/{preselected-filters2.vue.js → preselected-filters.vue2.js} +1 -1
  320. package/js/x-modules/facets/components/preselected-filters.vue2.js.map +1 -0
  321. package/js/x-modules/history-queries/components/clear-history-queries.vue.js +1 -1
  322. package/js/x-modules/history-queries/components/{clear-history-queries2.vue.js → clear-history-queries.vue2.js} +1 -1
  323. package/js/x-modules/history-queries/components/{clear-history-queries2.vue.js.map → clear-history-queries.vue2.js.map} +1 -1
  324. package/js/x-modules/history-queries/components/history-queries-switch.vue.js +1 -1
  325. package/js/x-modules/history-queries/components/{history-queries-switch2.vue.js → history-queries-switch.vue2.js} +1 -1
  326. package/js/x-modules/history-queries/components/{history-queries-switch2.vue.js.map → history-queries-switch.vue2.js.map} +1 -1
  327. package/js/x-modules/history-queries/components/history-queries.vue.js +1 -1
  328. package/js/x-modules/history-queries/components/{history-queries2.vue.js → history-queries.vue2.js} +1 -1
  329. package/js/x-modules/history-queries/components/{history-queries2.vue.js.map → history-queries.vue2.js.map} +1 -1
  330. package/js/x-modules/history-queries/components/history-query.vue.js +1 -1
  331. package/js/x-modules/history-queries/components/{history-query2.vue.js → history-query.vue2.js} +1 -1
  332. package/js/x-modules/history-queries/components/{history-query2.vue.js.map → history-query.vue2.js.map} +1 -1
  333. package/js/x-modules/history-queries/components/my-history.vue.js +2 -2
  334. package/js/x-modules/history-queries/components/{my-history2.vue.js → my-history.vue2.js} +1 -1
  335. package/js/x-modules/history-queries/components/{my-history2.vue.js.map → my-history.vue2.js.map} +1 -1
  336. package/js/x-modules/history-queries/components/{my-history3.vue.js → my-history.vue3.js} +1 -1
  337. package/js/x-modules/history-queries/components/my-history.vue3.js.map +1 -0
  338. package/js/x-modules/history-queries/components/remove-history-query.vue.js +1 -1
  339. package/js/x-modules/history-queries/components/{remove-history-query2.vue.js → remove-history-query.vue2.js} +1 -1
  340. package/js/x-modules/history-queries/components/{remove-history-query2.vue.js.map → remove-history-query.vue2.js.map} +1 -1
  341. package/js/x-modules/identifier-results/components/identifier-result.vue.js +1 -1
  342. package/js/x-modules/identifier-results/components/{identifier-result2.vue.js → identifier-result.vue2.js} +1 -1
  343. package/js/x-modules/identifier-results/components/{identifier-result2.vue.js.map → identifier-result.vue2.js.map} +1 -1
  344. package/js/x-modules/identifier-results/components/identifier-results.vue.js +2 -2
  345. package/js/x-modules/identifier-results/components/{identifier-results2.vue.js → identifier-results.vue2.js} +1 -1
  346. package/js/x-modules/identifier-results/components/{identifier-results2.vue.js.map → identifier-results.vue2.js.map} +1 -1
  347. package/js/x-modules/identifier-results/components/{identifier-results3.vue.js → identifier-results.vue3.js} +1 -1
  348. package/js/x-modules/identifier-results/components/identifier-results.vue3.js.map +1 -0
  349. package/js/x-modules/next-queries/components/{next-queries-list2.vue.js → next-queries-list.vue2.js} +1 -1
  350. package/js/x-modules/next-queries/components/next-queries-list.vue2.js.map +1 -0
  351. package/js/x-modules/next-queries/components/next-queries.vue.js +1 -1
  352. package/js/x-modules/next-queries/components/{next-queries2.vue.js → next-queries.vue2.js} +1 -1
  353. package/js/x-modules/next-queries/components/{next-queries2.vue.js.map → next-queries.vue2.js.map} +1 -1
  354. package/js/x-modules/next-queries/components/next-query-preview.vue.js +1 -1
  355. package/js/x-modules/next-queries/components/{next-query-preview2.vue.js → next-query-preview.vue2.js} +1 -1
  356. package/js/x-modules/next-queries/components/{next-query-preview2.vue.js.map → next-query-preview.vue2.js.map} +1 -1
  357. package/js/x-modules/next-queries/components/next-query.vue.js +1 -1
  358. package/js/x-modules/next-queries/components/{next-query2.vue.js → next-query.vue2.js} +1 -1
  359. package/js/x-modules/next-queries/components/{next-query2.vue.js.map → next-query.vue2.js.map} +1 -1
  360. package/js/x-modules/popular-searches/components/popular-search.vue.js +1 -1
  361. package/js/x-modules/popular-searches/components/{popular-search2.vue.js → popular-search.vue2.js} +1 -1
  362. package/js/x-modules/popular-searches/components/{popular-search2.vue.js.map → popular-search.vue2.js.map} +1 -1
  363. package/js/x-modules/popular-searches/components/popular-searches.vue.js +1 -1
  364. package/js/x-modules/popular-searches/components/{popular-searches2.vue.js → popular-searches.vue2.js} +1 -1
  365. package/js/x-modules/popular-searches/components/{popular-searches2.vue.js.map → popular-searches.vue2.js.map} +1 -1
  366. package/js/x-modules/queries-preview/components/query-preview-button.vue.js +1 -1
  367. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +165 -0
  368. package/js/x-modules/queries-preview/components/{query-preview-button2.vue.js.map → query-preview-button.vue2.js.map} +1 -1
  369. package/js/x-modules/queries-preview/components/query-preview-list.vue.js +2 -2
  370. package/js/x-modules/queries-preview/components/{query-preview-list2.vue.js → query-preview-list.vue2.js} +1 -1
  371. package/js/x-modules/queries-preview/components/{query-preview-list2.vue.js.map → query-preview-list.vue2.js.map} +1 -1
  372. package/js/x-modules/queries-preview/components/{query-preview-list3.vue.js → query-preview-list.vue3.js} +1 -1
  373. package/js/x-modules/queries-preview/components/query-preview-list.vue3.js.map +1 -0
  374. package/js/x-modules/queries-preview/components/query-preview.vue.js +1 -1
  375. package/js/x-modules/queries-preview/components/{query-preview2.vue.js → query-preview.vue2.js} +82 -82
  376. package/js/x-modules/queries-preview/components/{query-preview2.vue.js.map → query-preview.vue2.js.map} +1 -1
  377. package/js/x-modules/query-suggestions/components/query-suggestion.vue.js +1 -1
  378. package/js/x-modules/query-suggestions/components/{query-suggestion2.vue.js → query-suggestion.vue2.js} +1 -1
  379. package/js/x-modules/query-suggestions/components/{query-suggestion2.vue.js.map → query-suggestion.vue2.js.map} +1 -1
  380. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js +1 -1
  381. package/js/x-modules/query-suggestions/components/{query-suggestions2.vue.js → query-suggestions.vue2.js} +1 -1
  382. package/js/x-modules/query-suggestions/components/{query-suggestions2.vue.js.map → query-suggestions.vue2.js.map} +1 -1
  383. package/js/x-modules/recommendations/components/recommendations.vue.js +2 -2
  384. package/js/x-modules/recommendations/components/{recommendations2.vue.js → recommendations.vue2.js} +1 -1
  385. package/js/x-modules/recommendations/components/{recommendations2.vue.js.map → recommendations.vue2.js.map} +1 -1
  386. package/js/x-modules/recommendations/components/{recommendations3.vue.js → recommendations.vue3.js} +1 -1
  387. package/js/x-modules/recommendations/components/recommendations.vue3.js.map +1 -0
  388. package/js/x-modules/related-prompts/components/related-prompt.vue.js +2 -2
  389. package/js/x-modules/related-prompts/components/{related-prompt2.vue.js → related-prompt.vue2.js} +1 -1
  390. package/js/x-modules/related-prompts/components/{related-prompt2.vue.js.map → related-prompt.vue2.js.map} +1 -1
  391. package/js/x-modules/related-prompts/components/{related-prompt3.vue.js → related-prompt.vue3.js} +1 -1
  392. package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +1 -0
  393. package/js/x-modules/related-prompts/components/{related-prompts-list2.vue.js → related-prompts-list.vue2.js} +1 -1
  394. package/js/x-modules/related-prompts/components/related-prompts-list.vue2.js.map +1 -0
  395. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +2 -2
  396. package/js/x-modules/related-prompts/components/{related-prompts-tag-list2.vue.js → related-prompts-tag-list.vue2.js} +1 -1
  397. package/js/x-modules/related-prompts/components/{related-prompts-tag-list2.vue.js.map → related-prompts-tag-list.vue2.js.map} +1 -1
  398. package/js/x-modules/related-prompts/components/{related-prompts-tag-list3.vue.js → related-prompts-tag-list.vue3.js} +1 -1
  399. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js.map +1 -0
  400. package/js/x-modules/related-tags/components/related-tag.vue.js +1 -1
  401. package/js/x-modules/related-tags/components/{related-tag2.vue.js → related-tag.vue2.js} +1 -1
  402. package/js/x-modules/related-tags/components/{related-tag2.vue.js.map → related-tag.vue2.js.map} +1 -1
  403. package/js/x-modules/related-tags/components/related-tags.vue.js +2 -2
  404. package/js/x-modules/related-tags/components/{related-tags2.vue.js → related-tags.vue2.js} +1 -1
  405. package/js/x-modules/related-tags/components/{related-tags2.vue.js.map → related-tags.vue2.js.map} +1 -1
  406. package/js/x-modules/related-tags/components/{related-tags3.vue.js → related-tags.vue3.js} +1 -1
  407. package/js/x-modules/related-tags/components/related-tags.vue3.js.map +1 -0
  408. package/js/x-modules/scroll/components/main-scroll-item.vue.js +1 -1
  409. package/js/x-modules/scroll/components/{main-scroll-item2.vue.js → main-scroll-item.vue2.js} +1 -1
  410. package/js/x-modules/scroll/components/{main-scroll-item2.vue.js.map → main-scroll-item.vue2.js.map} +1 -1
  411. package/js/x-modules/scroll/components/{main-scroll2.vue.js → main-scroll.vue2.js} +1 -1
  412. package/js/x-modules/scroll/components/main-scroll.vue2.js.map +1 -0
  413. package/js/x-modules/scroll/components/scroll-to-top.vue.js +1 -1
  414. package/js/x-modules/scroll/components/{scroll-to-top2.vue.js → scroll-to-top.vue2.js} +81 -81
  415. package/js/x-modules/scroll/components/{scroll-to-top2.vue.js.map → scroll-to-top.vue2.js.map} +1 -1
  416. package/js/x-modules/scroll/components/scroll.vue.js +1 -1
  417. package/js/x-modules/scroll/components/{scroll2.vue.js → scroll.vue2.js} +1 -1
  418. package/js/x-modules/scroll/components/{scroll2.vue.js.map → scroll.vue2.js.map} +1 -1
  419. package/js/x-modules/search/components/banner.vue.js +2 -2
  420. package/js/x-modules/search/components/{banner2.vue.js → banner.vue2.js} +1 -1
  421. package/js/x-modules/search/components/{banner2.vue.js.map → banner.vue2.js.map} +1 -1
  422. package/js/x-modules/search/components/{banner3.vue.js → banner.vue3.js} +1 -1
  423. package/js/x-modules/search/components/banner.vue3.js.map +1 -0
  424. package/js/x-modules/search/components/{banners-list2.vue.js → banners-list.vue2.js} +1 -1
  425. package/js/x-modules/search/components/banners-list.vue2.js.map +1 -0
  426. package/js/x-modules/search/components/fallback-disclaimer.vue.js +1 -1
  427. package/js/x-modules/search/components/{fallback-disclaimer2.vue.js → fallback-disclaimer.vue2.js} +1 -1
  428. package/js/x-modules/search/components/{fallback-disclaimer2.vue.js.map → fallback-disclaimer.vue2.js.map} +1 -1
  429. package/js/x-modules/search/components/partial-query-button.vue.js +1 -1
  430. package/js/x-modules/search/components/{partial-query-button2.vue.js → partial-query-button.vue2.js} +1 -1
  431. package/js/x-modules/search/components/{partial-query-button2.vue.js.map → partial-query-button.vue2.js.map} +1 -1
  432. package/js/x-modules/search/components/partial-results-list.vue.js +2 -2
  433. package/js/x-modules/search/components/{partial-results-list2.vue.js → partial-results-list.vue2.js} +1 -1
  434. package/js/x-modules/search/components/{partial-results-list2.vue.js.map → partial-results-list.vue2.js.map} +1 -1
  435. package/js/x-modules/search/components/{partial-results-list3.vue.js → partial-results-list.vue3.js} +1 -1
  436. package/js/x-modules/search/components/partial-results-list.vue3.js.map +1 -0
  437. package/js/x-modules/search/components/promoted.vue.js +2 -2
  438. package/js/x-modules/search/components/{promoted2.vue.js → promoted.vue2.js} +1 -1
  439. package/js/x-modules/search/components/{promoted2.vue.js.map → promoted.vue2.js.map} +1 -1
  440. package/js/x-modules/search/components/{promoted3.vue.js → promoted.vue3.js} +1 -1
  441. package/js/x-modules/search/components/promoted.vue3.js.map +1 -0
  442. package/js/x-modules/search/components/{promoteds-list2.vue.js → promoteds-list.vue2.js} +1 -1
  443. package/js/x-modules/search/components/promoteds-list.vue2.js.map +1 -0
  444. package/js/x-modules/search/components/redirection.vue.js +1 -1
  445. package/js/x-modules/search/components/{redirection2.vue.js → redirection.vue2.js} +1 -1
  446. package/js/x-modules/search/components/{redirection2.vue.js.map → redirection.vue2.js.map} +1 -1
  447. package/js/x-modules/search/components/{results-list2.vue.js → results-list.vue2.js} +1 -1
  448. package/js/x-modules/search/components/results-list.vue2.js.map +1 -0
  449. package/js/x-modules/search/components/sort-dropdown.vue.js +1 -1
  450. package/js/x-modules/search/components/{sort-dropdown2.vue.js → sort-dropdown.vue2.js} +1 -1
  451. package/js/x-modules/search/components/{sort-dropdown2.vue.js.map → sort-dropdown.vue2.js.map} +1 -1
  452. package/js/x-modules/search/components/sort-list.vue.js +2 -2
  453. package/js/x-modules/search/components/{sort-list2.vue.js → sort-list.vue2.js} +1 -1
  454. package/js/x-modules/search/components/{sort-list2.vue.js.map → sort-list.vue2.js.map} +1 -1
  455. package/js/x-modules/search/components/{sort-list3.vue.js → sort-list.vue3.js} +1 -1
  456. package/js/x-modules/search/components/sort-list.vue3.js.map +1 -0
  457. package/js/x-modules/search/components/sort-picker-list.vue.js +1 -1
  458. package/js/x-modules/search/components/{sort-picker-list2.vue.js → sort-picker-list.vue2.js} +1 -1
  459. package/js/x-modules/search/components/{sort-picker-list2.vue.js.map → sort-picker-list.vue2.js.map} +1 -1
  460. package/js/x-modules/search/components/spellcheck-button.vue.js +1 -1
  461. package/js/x-modules/search/components/{spellcheck-button2.vue.js → spellcheck-button.vue2.js} +1 -1
  462. package/js/x-modules/search/components/{spellcheck-button2.vue.js.map → spellcheck-button.vue2.js.map} +1 -1
  463. package/js/x-modules/search/components/spellcheck.vue.js +1 -1
  464. package/js/x-modules/search/components/{spellcheck2.vue.js → spellcheck.vue2.js} +1 -1
  465. package/js/x-modules/search/components/{spellcheck2.vue.js.map → spellcheck.vue2.js.map} +1 -1
  466. package/js/x-modules/search-box/components/clear-search-input.vue.js +1 -1
  467. package/js/x-modules/search-box/components/{clear-search-input2.vue.js → clear-search-input.vue2.js} +1 -1
  468. package/js/x-modules/search-box/components/{clear-search-input2.vue.js.map → clear-search-input.vue2.js.map} +1 -1
  469. package/js/x-modules/search-box/components/search-button.vue.js +1 -1
  470. package/js/x-modules/search-box/components/{search-button2.vue.js → search-button.vue2.js} +1 -1
  471. package/js/x-modules/search-box/components/{search-button2.vue.js.map → search-button.vue2.js.map} +1 -1
  472. package/js/x-modules/search-box/components/search-input-placeholder.vue.js +3 -3
  473. package/js/x-modules/search-box/components/{search-input-placeholder2.vue.js → search-input-placeholder.vue2.js} +2 -2
  474. package/js/x-modules/search-box/components/{search-input-placeholder2.vue.js.map → search-input-placeholder.vue2.js.map} +1 -1
  475. package/js/x-modules/search-box/components/{search-input-placeholder3.vue.js → search-input-placeholder.vue3.js} +1 -1
  476. package/js/x-modules/search-box/components/search-input-placeholder.vue3.js.map +1 -0
  477. package/js/x-modules/search-box/components/{search-input-placeholder4.vue.js → search-input-placeholder.vue4.js} +1 -1
  478. package/js/x-modules/search-box/components/search-input-placeholder.vue4.js.map +1 -0
  479. package/js/x-modules/search-box/components/search-input.vue.js +2 -2
  480. package/js/x-modules/search-box/components/{search-input2.vue.js → search-input.vue2.js} +1 -1
  481. package/js/x-modules/search-box/components/{search-input2.vue.js.map → search-input.vue2.js.map} +1 -1
  482. package/js/x-modules/search-box/components/{search-input3.vue.js → search-input.vue3.js} +1 -1
  483. package/js/x-modules/search-box/components/search-input.vue3.js.map +1 -0
  484. package/js/x-modules/semantic-queries/components/semantic-queries.vue.js +1 -1
  485. package/js/x-modules/semantic-queries/components/{semantic-queries2.vue.js → semantic-queries.vue2.js} +1 -1
  486. package/js/x-modules/semantic-queries/components/{semantic-queries2.vue.js.map → semantic-queries.vue2.js.map} +1 -1
  487. package/js/x-modules/semantic-queries/components/semantic-query.vue.js +1 -1
  488. package/js/x-modules/semantic-queries/components/{semantic-query2.vue.js → semantic-query.vue2.js} +1 -1
  489. package/js/x-modules/semantic-queries/components/{semantic-query2.vue.js.map → semantic-query.vue2.js.map} +1 -1
  490. package/js/x-modules/tagging/components/{tagging2.vue.js → tagging.vue2.js} +1 -1
  491. package/js/x-modules/tagging/components/tagging.vue2.js.map +1 -0
  492. package/js/x-modules/url/components/url-handler.vue.js +1 -1
  493. package/js/x-modules/url/components/{url-handler2.vue.js → url-handler.vue2.js} +1 -1
  494. package/js/x-modules/url/components/{url-handler2.vue.js.map → url-handler.vue2.js.map} +1 -1
  495. package/package.json +3 -3
  496. package/js/components/animations/animate-clip-path2.vue.js.map +0 -1
  497. package/js/components/animations/animate-clip-path3.vue.js +0 -7
  498. package/js/components/animations/animate-clip-path3.vue.js.map +0 -1
  499. package/js/components/animations/animate-scale2.vue.js.map +0 -1
  500. package/js/components/animations/animate-scale3.vue.js.map +0 -1
  501. package/js/components/animations/animate-translate2.vue.js.map +0 -1
  502. package/js/components/animations/animate-translate3.vue.js +0 -7
  503. package/js/components/animations/animate-translate3.vue.js.map +0 -1
  504. package/js/components/animations/animate-width3.vue.js.map +0 -1
  505. package/js/components/animations/change-height3.vue.js.map +0 -1
  506. package/js/components/animations/collapse-height3.vue.js.map +0 -1
  507. package/js/components/animations/collapse-width3.vue.js.map +0 -1
  508. package/js/components/animations/cross-fade3.vue.js.map +0 -1
  509. package/js/components/animations/fade-and-slide3.vue.js.map +0 -1
  510. package/js/components/animations/fade3.vue.js.map +0 -1
  511. package/js/components/animations/no-animation2.vue.js.map +0 -1
  512. package/js/components/animations/staggered-fade-and-slide3.vue.js.map +0 -1
  513. package/js/components/auto-progress-bar3.vue.js.map +0 -1
  514. package/js/components/base-dropdown3.vue.js.map +0 -1
  515. package/js/components/base-grid3.vue.js.map +0 -1
  516. package/js/components/base-rating3.vue.js.map +0 -1
  517. package/js/components/base-slider3.vue.js.map +0 -1
  518. package/js/components/base-switch3.vue.js.map +0 -1
  519. package/js/components/display-click-provider2.vue.js.map +0 -1
  520. package/js/components/display-emitter2.vue.js.map +0 -1
  521. package/js/components/filters/labels/base-price-filter-label2.vue.js.map +0 -1
  522. package/js/components/global-x-bus2.vue.js.map +0 -1
  523. package/js/components/location-provider2.vue.js.map +0 -1
  524. package/js/components/message2.vue.js.map +0 -1
  525. package/js/components/modals/base-modal3.vue.js.map +0 -1
  526. package/js/components/page-loader-button3.vue.js.map +0 -1
  527. package/js/components/page-selector3.vue.js.map +0 -1
  528. package/js/components/panels/base-header-toggle-panel3.vue.js.map +0 -1
  529. package/js/components/panels/base-tabs-panel3.vue.js.map +0 -1
  530. package/js/components/result/base-result-image3.vue.js.map +0 -1
  531. package/js/components/result/base-result-link3.vue.js.map +0 -1
  532. package/js/components/result/base-result-rating3.vue.js.map +0 -1
  533. package/js/components/result/result-variant-selector3.vue.js.map +0 -1
  534. package/js/components/result/result-variants-provider2.vue.js.map +0 -1
  535. package/js/components/sliding-panel3.vue.js.map +0 -1
  536. package/js/components/suggestions/base-suggestions3.vue.js.map +0 -1
  537. package/js/x-modules/ai/components/ai-carousel3.vue.js.map +0 -1
  538. package/js/x-modules/ai/components/ai-grouped-carousel2.vue.js +0 -123
  539. package/js/x-modules/experience-controls/components/experience-controls2.vue.js.map +0 -1
  540. package/js/x-modules/extra-params/components/renderless-extra-param2.vue.js.map +0 -1
  541. package/js/x-modules/facets/components/facets/facets-provider3.vue.js.map +0 -1
  542. package/js/x-modules/facets/components/facets/facets3.vue.js.map +0 -1
  543. package/js/x-modules/facets/components/filters/editable-number-range-filter3.vue.js.map +0 -1
  544. package/js/x-modules/facets/components/filters/renderless-filter2.vue.js.map +0 -1
  545. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results2.vue.js.map +0 -1
  546. package/js/x-modules/facets/components/lists/filters-list3.vue.js.map +0 -1
  547. package/js/x-modules/facets/components/lists/filters-search3.vue.js.map +0 -1
  548. package/js/x-modules/facets/components/lists/selected-filters2.vue.js.map +0 -1
  549. package/js/x-modules/facets/components/lists/sorted-filters2.vue.js.map +0 -1
  550. package/js/x-modules/facets/components/preselected-filters2.vue.js.map +0 -1
  551. package/js/x-modules/history-queries/components/my-history3.vue.js.map +0 -1
  552. package/js/x-modules/identifier-results/components/identifier-results3.vue.js.map +0 -1
  553. package/js/x-modules/next-queries/components/next-queries-list2.vue.js.map +0 -1
  554. package/js/x-modules/queries-preview/components/query-preview-button2.vue.js +0 -165
  555. package/js/x-modules/queries-preview/components/query-preview-list3.vue.js.map +0 -1
  556. package/js/x-modules/recommendations/components/recommendations3.vue.js.map +0 -1
  557. package/js/x-modules/related-prompts/components/related-prompt3.vue.js.map +0 -1
  558. package/js/x-modules/related-prompts/components/related-prompts-list2.vue.js.map +0 -1
  559. package/js/x-modules/related-prompts/components/related-prompts-tag-list3.vue.js.map +0 -1
  560. package/js/x-modules/related-tags/components/related-tags3.vue.js.map +0 -1
  561. package/js/x-modules/scroll/components/main-scroll2.vue.js.map +0 -1
  562. package/js/x-modules/search/components/banner3.vue.js.map +0 -1
  563. package/js/x-modules/search/components/banners-list2.vue.js.map +0 -1
  564. package/js/x-modules/search/components/partial-results-list3.vue.js.map +0 -1
  565. package/js/x-modules/search/components/promoted3.vue.js.map +0 -1
  566. package/js/x-modules/search/components/promoteds-list2.vue.js.map +0 -1
  567. package/js/x-modules/search/components/results-list2.vue.js.map +0 -1
  568. package/js/x-modules/search/components/sort-list3.vue.js.map +0 -1
  569. package/js/x-modules/search-box/components/search-input-placeholder3.vue.js.map +0 -1
  570. package/js/x-modules/search-box/components/search-input-placeholder4.vue.js.map +0 -1
  571. package/js/x-modules/search-box/components/search-input3.vue.js.map +0 -1
  572. package/js/x-modules/tagging/components/tagging2.vue.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"page-selector2.vue.js","sources":["../../../src/components/page-selector.vue"],"sourcesContent":["<template>\n <nav v-if=\"visiblePages?.length > 1\" class=\"x-page-selector\" aria-label=\"Pagination\">\n <button\n class=\"xds:button\"\n :class=\"buttonClasses\"\n :disabled=\"currentPage === 1\"\n data-test=\"previous-page-button\"\n aria-label=\"Previous page\"\n :aria-disabled=\"currentPage === 1\"\n @click=\"selectPage(currentPage - 1)\"\n >\n <slot name=\"previous-page-button\">Prev</slot>\n </button>\n\n <button\n v-for=\"page in visiblePages\"\n :key=\"page.value\"\n class=\"x-page-selector__page xds:button\"\n :class=\"[\n itemClasses(page.isSelected),\n {\n 'x-page-selector__page--current': page.isSelected,\n 'x-page-selector__page--hidden': page.value === hiddenPage,\n },\n ]\"\n :data-test=\"`page-button-${page.value}`\"\n :aria-label=\"`Page ${page.value}`\"\n :aria-current=\"page.isSelected ? 'page' : undefined\"\n @click=\"selectPage(page.value)\"\n >\n <slot name=\"page-button\" :page=\"page.value\" :is-selected=\"page.isSelected\">\n {{ page.value }}\n </slot>\n </button>\n\n <button\n class=\"xds:button\"\n :class=\"buttonClasses\"\n :disabled=\"currentPage === totalPages\"\n data-test=\"next-page-button\"\n aria-label=\"Next page\"\n :aria-disabled=\"currentPage === totalPages\"\n @click=\"selectPage(currentPage + 1)\"\n >\n <slot name=\"next-page-button\">Next</slot>\n </button>\n </nav>\n</template>\n\n<script lang=\"ts\">\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent } from 'vue'\nimport { useXBus } from '../composables'\n\ninterface PageItem {\n value: number | string\n isSelected: boolean\n}\n\n/**\n * Component that renders a pagination control with buttons for navigating\n * between pages. It displays the current page, allows selecting other pages,\n * and emits events when a page is selected.\n *\n * @public\n */\nexport default defineComponent({\n name: 'PageSelector',\n props: {\n /**\n * CSS classes to customize the prev/next buttons.\n */\n buttonClasses: {\n type: Array as PropType<(string | Dictionary<boolean>)[]>,\n default: () => [],\n },\n /**\n * The current page number.\n */\n currentPage: {\n type: Number,\n required: true,\n },\n /**\n * The string content of the hidden pages.\n */\n hiddenPage: {\n type: String,\n default: '...',\n },\n /**\n * CSS classes to customize the page items.\n */\n itemClasses: {\n type: Function as PropType<\n (isSelected: boolean) => string | Dictionary<boolean> | (string | Dictionary<boolean>)[]\n >,\n default: () => [],\n },\n /**\n * The number of pages to show before and after the current page.\n */\n range: {\n type: Number,\n default: 2,\n },\n /**\n * The class of the scroll container to scroll to top when a page is selected.\n */\n scrollTarget: {\n type: String,\n default: 'main-scroll',\n },\n /**\n * The total number of pages.\n */\n totalPages: {\n type: Number,\n required: true,\n },\n },\n setup(props) {\n const bus = useXBus()\n\n const visiblePages = computed(() => {\n const start = Math.max(props.currentPage - props.range, 1)\n const end = Math.min(props.currentPage + props.range, props.totalPages)\n const pages: PageItem[] = Array.from({ length: end - start + 1 }, (_, i) => {\n const pageValue: string | number = start + i\n return { value: pageValue, isSelected: pageValue === props.currentPage }\n })\n\n // Ensure first and last pages are always visible when needed\n if (start > 1) {\n pages.unshift({ value: 1, isSelected: props.currentPage === 1 })\n if (start > 2) {\n pages.splice(1, 0, { value: props.hiddenPage, isSelected: false })\n }\n }\n if (end < props.totalPages) {\n if (end < props.totalPages - 1) {\n pages.push({ value: props.hiddenPage, isSelected: false })\n }\n pages.push({\n value: props.totalPages,\n isSelected: props.totalPages === props.currentPage,\n })\n }\n\n return pages\n })\n\n /**\n * Handles the selection of a page.\n *\n * @param page - The page to select. Can be a number representing the page number or a string '...' indicating an ellipsis.\n */\n const selectPage = (page: number | string): void => {\n if (page === '...') {\n return\n }\n if (typeof page === 'number' && page > 0 && page <= props.totalPages) {\n bus.emit('UserSelectedAPage', page)\n /**\n * Emits scroll to top to prevent keeping the position if there is more content\n * after results, as for example Next Queries Preview.\n */\n bus.emit('UserClickedScrollToTop', props.scrollTarget)\n }\n }\n\n return {\n visiblePages,\n selectPage,\n }\n },\n})\n</script>\n\n<style scoped>\n.x-page-selector {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 2px;\n}\n\n.x-page-selector__page--current,\n.x-page-selector__page--hidden {\n cursor: default;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the \"UserSelectedAPage\" and the UserClickedScrollToTop events by default.\n\n## See it in action\n\nBasic example of how the component is rendered.\n\n```vue live\n<template>\n <PageSelector :current-page=\"page\" :total-pages=\"totalPages\" />\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 0,\n totalPages: 10,\n }\n },\n}\n</script>\n```\n\n### Customize the slots\n\nThis component allows to customise its content using slots.\n\n```vue live\n<template>\n <PageSelector\n :total-pages=\"totalPages\"\n :currentPage=\"page\"\n :item-classes=\"\n (isSelected: boolean) =>\n isSelected\n ? 'x-button-lead x-text-neutral-10'\n : 'x-text-neutral-90 x-button-outlined'\n \"\n :buttonClasses=\"['x-rounded-md']\"\n >\n <template #previous-page-button>\n <span>Back</span>\n </template>\n <template #page-button=\"{ page, isSelected }\">\n <h2 :class=\"{ 'x-text1': !isSelected }\">\n {{ page }}\n </h2>\n </template>\n <template #next-page-button>\n <span>Forward</span>\n </template>\n </PageSelector>\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 2,\n totalPages: 10,\n }\n },\n}\n</script>\n```\n\n### Customize the number of pages to show before and after the current page by changing the range default value.\n\n```vue live\n<template>\n <PageSelector :current-page=\"page\" :total-pages=\"totalPages\" :range=\"range\" />\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 6,\n totalPages: 100,\n range: 4,\n }\n },\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;AA4DA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,KAAK,EAAE;AACL;;AAEE;AACF,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,KAAmD;AACzD,YAAA,OAAO,EAAE,MAAM,EAAE;AAClB,SAAA;AACD;;AAEE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;AAEE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;AAEE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,QAEL;AACD,YAAA,OAAO,EAAE,MAAM,EAAE;AAClB,SAAA;AACD;;AAEE;AACF,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;AAEE;AACF,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,aAAa;AACvB,SAAA;AACD;;AAEE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,GAAE,GAAI,OAAO,EAAC;AAEpB,QAAA,MAAM,YAAW,GAAI,QAAQ,CAAC,MAAI;AAChC,YAAA,MAAM,KAAI,GAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAU,GAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;AACzD,YAAA,MAAM,GAAE,GAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAU,GAAI,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAA;YACtE,MAAM,KAAK,GAAe,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAE,GAAI,KAAI,GAAI,CAAA,EAAG,EAAE,CAAC,CAAC,EAAE,CAAC,KAAG;AACxE,gBAAA,MAAM,SAAS,GAAoB,QAAQ,CAAA;AAC3C,gBAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAQ,KAAM,KAAK,CAAC,WAAU,EAAE;AACzE,YAAA,CAAC,CAAA;;AAGD,YAAA,IAAI,KAAI,GAAI,CAAC,EAAE;AACb,gBAAA,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,WAAU,KAAM,CAAA,EAAG,CAAA;AAC/D,gBAAA,IAAI,KAAI,GAAI,CAAC,EAAE;AACb,oBAAA,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAI,EAAG,CAAA;gBACnE;YACF;AACA,YAAA,IAAI,MAAM,KAAK,CAAC,UAAU,EAAE;gBAC1B,IAAI,GAAE,GAAI,KAAK,CAAC,UAAS,GAAI,CAAC,EAAE;AAC9B,oBAAA,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAI,EAAG,CAAA;gBAC3D;gBACA,KAAK,CAAC,IAAI,CAAC;oBACT,KAAK,EAAE,KAAK,CAAC,UAAU;AACvB,oBAAA,UAAU,EAAE,KAAK,CAAC,eAAe,KAAK,CAAC,WAAW;AACnD,iBAAA,CAAA;YACH;AAEA,YAAA,OAAO,KAAI;AACb,QAAA,CAAC,CAAA;AAED;;;;AAIE;AACF,QAAA,MAAM,UAAS,GAAI,CAAC,IAAqB,KAAS;AAChD,YAAA,IAAI,IAAG,KAAM,KAAK,EAAE;gBAClB;YACF;AACA,YAAA,IAAI,OAAO,IAAG,KAAM,QAAO,IAAK,IAAG,GAAI,CAAA,IAAK,IAAG,IAAK,KAAK,CAAC,UAAU,EAAE;AACpE,gBAAA,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAA;AAClC;;;AAGE;gBACF,GAAG,CAAC,IAAI,CAAC,wBAAwB,EAAE,KAAK,CAAC,YAAY,CAAA;YACvD;AACF,QAAA,CAAA;QAEA,OAAO;YACL,YAAY;YACZ,UAAU;SACZ;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"page-selector.vue2.js","sources":["../../../src/components/page-selector.vue"],"sourcesContent":["<template>\n <nav v-if=\"visiblePages?.length > 1\" class=\"x-page-selector\" aria-label=\"Pagination\">\n <button\n class=\"xds:button\"\n :class=\"buttonClasses\"\n :disabled=\"currentPage === 1\"\n data-test=\"previous-page-button\"\n aria-label=\"Previous page\"\n :aria-disabled=\"currentPage === 1\"\n @click=\"selectPage(currentPage - 1)\"\n >\n <slot name=\"previous-page-button\">Prev</slot>\n </button>\n\n <button\n v-for=\"page in visiblePages\"\n :key=\"page.value\"\n class=\"x-page-selector__page xds:button\"\n :class=\"[\n itemClasses(page.isSelected),\n {\n 'x-page-selector__page--current': page.isSelected,\n 'x-page-selector__page--hidden': page.value === hiddenPage,\n },\n ]\"\n :data-test=\"`page-button-${page.value}`\"\n :aria-label=\"`Page ${page.value}`\"\n :aria-current=\"page.isSelected ? 'page' : undefined\"\n @click=\"selectPage(page.value)\"\n >\n <slot name=\"page-button\" :page=\"page.value\" :is-selected=\"page.isSelected\">\n {{ page.value }}\n </slot>\n </button>\n\n <button\n class=\"xds:button\"\n :class=\"buttonClasses\"\n :disabled=\"currentPage === totalPages\"\n data-test=\"next-page-button\"\n aria-label=\"Next page\"\n :aria-disabled=\"currentPage === totalPages\"\n @click=\"selectPage(currentPage + 1)\"\n >\n <slot name=\"next-page-button\">Next</slot>\n </button>\n </nav>\n</template>\n\n<script lang=\"ts\">\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent } from 'vue'\nimport { useXBus } from '../composables'\n\ninterface PageItem {\n value: number | string\n isSelected: boolean\n}\n\n/**\n * Component that renders a pagination control with buttons for navigating\n * between pages. It displays the current page, allows selecting other pages,\n * and emits events when a page is selected.\n *\n * @public\n */\nexport default defineComponent({\n name: 'PageSelector',\n props: {\n /**\n * CSS classes to customize the prev/next buttons.\n */\n buttonClasses: {\n type: Array as PropType<(string | Dictionary<boolean>)[]>,\n default: () => [],\n },\n /**\n * The current page number.\n */\n currentPage: {\n type: Number,\n required: true,\n },\n /**\n * The string content of the hidden pages.\n */\n hiddenPage: {\n type: String,\n default: '...',\n },\n /**\n * CSS classes to customize the page items.\n */\n itemClasses: {\n type: Function as PropType<\n (isSelected: boolean) => string | Dictionary<boolean> | (string | Dictionary<boolean>)[]\n >,\n default: () => [],\n },\n /**\n * The number of pages to show before and after the current page.\n */\n range: {\n type: Number,\n default: 2,\n },\n /**\n * The class of the scroll container to scroll to top when a page is selected.\n */\n scrollTarget: {\n type: String,\n default: 'main-scroll',\n },\n /**\n * The total number of pages.\n */\n totalPages: {\n type: Number,\n required: true,\n },\n },\n setup(props) {\n const bus = useXBus()\n\n const visiblePages = computed(() => {\n const start = Math.max(props.currentPage - props.range, 1)\n const end = Math.min(props.currentPage + props.range, props.totalPages)\n const pages: PageItem[] = Array.from({ length: end - start + 1 }, (_, i) => {\n const pageValue: string | number = start + i\n return { value: pageValue, isSelected: pageValue === props.currentPage }\n })\n\n // Ensure first and last pages are always visible when needed\n if (start > 1) {\n pages.unshift({ value: 1, isSelected: props.currentPage === 1 })\n if (start > 2) {\n pages.splice(1, 0, { value: props.hiddenPage, isSelected: false })\n }\n }\n if (end < props.totalPages) {\n if (end < props.totalPages - 1) {\n pages.push({ value: props.hiddenPage, isSelected: false })\n }\n pages.push({\n value: props.totalPages,\n isSelected: props.totalPages === props.currentPage,\n })\n }\n\n return pages\n })\n\n /**\n * Handles the selection of a page.\n *\n * @param page - The page to select. Can be a number representing the page number or a string '...' indicating an ellipsis.\n */\n const selectPage = (page: number | string): void => {\n if (page === '...') {\n return\n }\n if (typeof page === 'number' && page > 0 && page <= props.totalPages) {\n bus.emit('UserSelectedAPage', page)\n /**\n * Emits scroll to top to prevent keeping the position if there is more content\n * after results, as for example Next Queries Preview.\n */\n bus.emit('UserClickedScrollToTop', props.scrollTarget)\n }\n }\n\n return {\n visiblePages,\n selectPage,\n }\n },\n})\n</script>\n\n<style scoped>\n.x-page-selector {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 2px;\n}\n\n.x-page-selector__page--current,\n.x-page-selector__page--hidden {\n cursor: default;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the \"UserSelectedAPage\" and the UserClickedScrollToTop events by default.\n\n## See it in action\n\nBasic example of how the component is rendered.\n\n```vue live\n<template>\n <PageSelector :current-page=\"page\" :total-pages=\"totalPages\" />\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 0,\n totalPages: 10,\n }\n },\n}\n</script>\n```\n\n### Customize the slots\n\nThis component allows to customise its content using slots.\n\n```vue live\n<template>\n <PageSelector\n :total-pages=\"totalPages\"\n :currentPage=\"page\"\n :item-classes=\"\n (isSelected: boolean) =>\n isSelected\n ? 'x-button-lead x-text-neutral-10'\n : 'x-text-neutral-90 x-button-outlined'\n \"\n :buttonClasses=\"['x-rounded-md']\"\n >\n <template #previous-page-button>\n <span>Back</span>\n </template>\n <template #page-button=\"{ page, isSelected }\">\n <h2 :class=\"{ 'x-text1': !isSelected }\">\n {{ page }}\n </h2>\n </template>\n <template #next-page-button>\n <span>Forward</span>\n </template>\n </PageSelector>\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 2,\n totalPages: 10,\n }\n },\n}\n</script>\n```\n\n### Customize the number of pages to show before and after the current page by changing the range default value.\n\n```vue live\n<template>\n <PageSelector :current-page=\"page\" :total-pages=\"totalPages\" :range=\"range\" />\n</template>\n\n<script>\nimport { PageSelector } from '@empathyco/x-components'\n\nexport default {\n name: 'PageSelectorDemo',\n components: {\n PageSelector,\n },\n data() {\n return {\n page: 6,\n totalPages: 100,\n range: 4,\n }\n },\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;AA4DA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,KAAK,EAAE;AACL;;AAEE;AACF,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,KAAmD;AACzD,YAAA,OAAO,EAAE,MAAM,EAAE;AAClB,SAAA;AACD;;AAEE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;AAEE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;AAEE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,QAEL;AACD,YAAA,OAAO,EAAE,MAAM,EAAE;AAClB,SAAA;AACD;;AAEE;AACF,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;AAEE;AACF,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,aAAa;AACvB,SAAA;AACD;;AAEE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,GAAE,GAAI,OAAO,EAAC;AAEpB,QAAA,MAAM,YAAW,GAAI,QAAQ,CAAC,MAAI;AAChC,YAAA,MAAM,KAAI,GAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAU,GAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;AACzD,YAAA,MAAM,GAAE,GAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAU,GAAI,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAA;YACtE,MAAM,KAAK,GAAe,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAE,GAAI,KAAI,GAAI,CAAA,EAAG,EAAE,CAAC,CAAC,EAAE,CAAC,KAAG;AACxE,gBAAA,MAAM,SAAS,GAAoB,QAAQ,CAAA;AAC3C,gBAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAQ,KAAM,KAAK,CAAC,WAAU,EAAE;AACzE,YAAA,CAAC,CAAA;;AAGD,YAAA,IAAI,KAAI,GAAI,CAAC,EAAE;AACb,gBAAA,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,WAAU,KAAM,CAAA,EAAG,CAAA;AAC/D,gBAAA,IAAI,KAAI,GAAI,CAAC,EAAE;AACb,oBAAA,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAI,EAAG,CAAA;gBACnE;YACF;AACA,YAAA,IAAI,MAAM,KAAK,CAAC,UAAU,EAAE;gBAC1B,IAAI,GAAE,GAAI,KAAK,CAAC,UAAS,GAAI,CAAC,EAAE;AAC9B,oBAAA,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAI,EAAG,CAAA;gBAC3D;gBACA,KAAK,CAAC,IAAI,CAAC;oBACT,KAAK,EAAE,KAAK,CAAC,UAAU;AACvB,oBAAA,UAAU,EAAE,KAAK,CAAC,eAAe,KAAK,CAAC,WAAW;AACnD,iBAAA,CAAA;YACH;AAEA,YAAA,OAAO,KAAI;AACb,QAAA,CAAC,CAAA;AAED;;;;AAIE;AACF,QAAA,MAAM,UAAS,GAAI,CAAC,IAAqB,KAAS;AAChD,YAAA,IAAI,IAAG,KAAM,KAAK,EAAE;gBAClB;YACF;AACA,YAAA,IAAI,OAAO,IAAG,KAAM,QAAO,IAAK,IAAG,GAAI,CAAA,IAAK,IAAG,IAAK,KAAK,CAAC,UAAU,EAAE;AACpE,gBAAA,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAA;AAClC;;;AAGE;gBACF,GAAG,CAAC,IAAI,CAAC,wBAAwB,EAAE,KAAK,CAAC,YAAY,CAAA;YACvD;AACF,QAAA,CAAA;QAEA,OAAO;YACL,YAAY;YACZ,UAAU;SACZ;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -4,4 +4,4 @@ var css = ".x-page-selector[data-v-b08cf95a]{align-items:center;display:flex;gap
4
4
  injectCss(css);
5
5
 
6
6
  export { css };
7
- //# sourceMappingURL=page-selector3.vue.js.map
7
+ //# sourceMappingURL=page-selector.vue3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-selector.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,6 +1,6 @@
1
- import _sfc_main from './base-header-toggle-panel2.vue.js';
1
+ import _sfc_main from './base-header-toggle-panel.vue2.js';
2
2
  import { resolveComponent, openBlock, createElementBlock, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, normalizeClass, createVNode, withCtx } from 'vue';
3
- import './base-header-toggle-panel3.vue.js';
3
+ import './base-header-toggle-panel.vue3.js';
4
4
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
5
5
 
6
6
  const _hoisted_1 = { class: "x-header-toggle-panel" };
@@ -1,25 +1,25 @@
1
1
  import { defineComponent, ref } from 'vue';
2
2
  import { AnimationProp } from '../../types/animation-prop.js';
3
- import '../animations/animate-clip-path2.vue.js';
4
- import '../animations/animate-scale2.vue.js';
5
- import '../animations/animate-translate2.vue.js';
6
- import '../animations/animate-width2.vue.js';
7
- import '../animations/animate-width3.vue.js';
8
- import '../animations/change-height2.vue.js';
9
- import '../animations/change-height3.vue.js';
10
- import '../animations/collapse-height2.vue.js';
11
- import '../animations/collapse-height3.vue.js';
12
- import '../animations/collapse-width2.vue.js';
13
- import '../animations/collapse-width3.vue.js';
14
- import '../animations/cross-fade2.vue.js';
15
- import '../animations/cross-fade3.vue.js';
16
- import '../animations/fade-and-slide2.vue.js';
17
- import '../animations/fade-and-slide3.vue.js';
18
- import '../animations/fade2.vue.js';
19
- import '../animations/fade3.vue.js';
3
+ import '../animations/animate-clip-path.vue2.js';
4
+ import '../animations/animate-scale.vue2.js';
5
+ import '../animations/animate-translate.vue2.js';
6
+ import '../animations/animate-width.vue2.js';
7
+ import '../animations/animate-width.vue3.js';
8
+ import '../animations/change-height.vue2.js';
9
+ import '../animations/change-height.vue3.js';
10
+ import '../animations/collapse-height.vue2.js';
11
+ import '../animations/collapse-height.vue3.js';
12
+ import '../animations/collapse-width.vue2.js';
13
+ import '../animations/collapse-width.vue3.js';
14
+ import '../animations/cross-fade.vue2.js';
15
+ import '../animations/cross-fade.vue3.js';
16
+ import '../animations/fade-and-slide.vue2.js';
17
+ import '../animations/fade-and-slide.vue3.js';
18
+ import '../animations/fade.vue2.js';
19
+ import '../animations/fade.vue3.js';
20
20
  import _sfc_main$1 from '../animations/no-animation.vue.js';
21
- import '../animations/staggered-fade-and-slide2.vue.js';
22
- import '../animations/staggered-fade-and-slide3.vue.js';
21
+ import '../animations/staggered-fade-and-slide.vue2.js';
22
+ import '../animations/staggered-fade-and-slide.vue3.js';
23
23
  import BaseTogglePanel from './base-toggle-panel.vue.js';
24
24
 
25
25
  /**
@@ -74,4 +74,4 @@ var _sfc_main = defineComponent({
74
74
  });
75
75
 
76
76
  export { _sfc_main as default };
77
- //# sourceMappingURL=base-header-toggle-panel2.vue.js.map
77
+ //# sourceMappingURL=base-header-toggle-panel.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-header-toggle-panel2.vue.js","sources":["../../../../src/components/panels/base-header-toggle-panel.vue"],"sourcesContent":["<template>\n <div class=\"x-header-toggle-panel\">\n <!-- @slot (Required) Slot that is be used for replacing the whole header. -->\n <slot name=\"header\" v-bind=\"{ toggleOpen, open }\">\n <!-- header-toggle-panel__header -->\n <button\n class=\"x-header-toggle-panel__header\"\n :class=\"headerClass\"\n data-test=\"toggle-panel-header\"\n @click=\"toggleOpen\"\n >\n <!-- @slot (Required) Slot used to just pass the content. -->\n <slot name=\"header-content\" v-bind=\"{ open }\"></slot>\n </button>\n </slot>\n\n <BaseTogglePanel :open=\"open\" :animation=\"animation\">\n <!-- @slot (Required) Default content. -->\n <slot />\n </BaseTogglePanel>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\nimport BaseTogglePanel from './base-toggle-panel.vue'\n\n/**\n * Toggle panel which uses the base toggle panel, adds a header and manage the\n * open / close state of the panel.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseHeaderTogglePanel',\n components: { BaseTogglePanel },\n props: {\n /** Animation component that will be used to animate the base-toggle-panel. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /** Handles if the panel is open by default. */\n startCollapsed: Boolean,\n /** Class inherited by content element. */\n headerClass: String,\n },\n setup(props, { emit }) {\n /**\n * Handles if the base panel is open or closed.\n *\n * @internal\n */\n const open = ref(!props.startCollapsed)\n\n /**\n * Emits open status event.\n *\n * @internal\n */\n const emitOpenStatusEvent = () => {\n emit(open.value ? 'open' : 'close')\n }\n\n /**\n * Toggles the open property.\n *\n * @internal\n */\n const toggleOpen = () => {\n open.value = !open.value\n emitOpenStatusEvent()\n }\n\n return {\n open,\n toggleOpen,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-header-toggle-panel__header {\n cursor: pointer;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- `open`: emitted after the user clicks the element and opens it.\n- `close`: emitted after the user clicks the element and closes it.\n\n## Examples\n\nToggle panel which uses the base toggle panel, adds a header and manages the open/close state of the panel.\n\n### Basic usage\n\n```vue\n<template>\n <BaseHeaderTogglePanel :animation=\"animation\" :start-collapsed=\"false\">\n <template #header-content=\"{ open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n\n### Custom header\n\n```vue\n<template>\n <BaseHeaderTogglePanel :animation=\"animation\" :start-collapsed=\"true\">\n <template #header=\"{ toggleOpen, open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n <button @click=\"toggleOpen\">Toggle</button>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n\n### Customizing default header with classes\n\nThe `headerClass` prop can be used to add classes to the header of the toggle panel.\n\n```vue\n<template>\n <BaseHeaderTogglePanel headerClass=\"custom-class\" :animation=\"animation\" :start-collapsed=\"false\">\n <template #header-content=\"{ open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6BA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;;AAEL,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;;AAED,QAAA,cAAc,EAAE,OAAO;;AAEvB,QAAA,WAAW,EAAE,MAAM;AACpB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAG,EAAG,EAAA;AACnB;;;;AAIE;QACF,MAAM,IAAG,GAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAA;AAEtC;;;;AAIE;QACF,MAAM,mBAAkB,GAAI,MAAI;AAC9B,YAAA,IAAI,CAAC,IAAI,CAAC,KAAI,GAAI,MAAK,GAAI,OAAO,CAAA;AACpC,QAAA,CAAA;AAEA;;;;AAIE;QACF,MAAM,UAAS,GAAI,MAAI;AACrB,YAAA,IAAI,CAAC,KAAI,GAAI,CAAC,IAAI,CAAC,KAAI;AACvB,YAAA,mBAAmB,EAAC;AACtB,QAAA,CAAA;QAEA,OAAO;YACL,IAAI;YACJ,UAAU;SACZ;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-header-toggle-panel.vue2.js","sources":["../../../../src/components/panels/base-header-toggle-panel.vue"],"sourcesContent":["<template>\n <div class=\"x-header-toggle-panel\">\n <!-- @slot (Required) Slot that is be used for replacing the whole header. -->\n <slot name=\"header\" v-bind=\"{ toggleOpen, open }\">\n <!-- header-toggle-panel__header -->\n <button\n class=\"x-header-toggle-panel__header\"\n :class=\"headerClass\"\n data-test=\"toggle-panel-header\"\n @click=\"toggleOpen\"\n >\n <!-- @slot (Required) Slot used to just pass the content. -->\n <slot name=\"header-content\" v-bind=\"{ open }\"></slot>\n </button>\n </slot>\n\n <BaseTogglePanel :open=\"open\" :animation=\"animation\">\n <!-- @slot (Required) Default content. -->\n <slot />\n </BaseTogglePanel>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\nimport BaseTogglePanel from './base-toggle-panel.vue'\n\n/**\n * Toggle panel which uses the base toggle panel, adds a header and manage the\n * open / close state of the panel.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseHeaderTogglePanel',\n components: { BaseTogglePanel },\n props: {\n /** Animation component that will be used to animate the base-toggle-panel. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /** Handles if the panel is open by default. */\n startCollapsed: Boolean,\n /** Class inherited by content element. */\n headerClass: String,\n },\n setup(props, { emit }) {\n /**\n * Handles if the base panel is open or closed.\n *\n * @internal\n */\n const open = ref(!props.startCollapsed)\n\n /**\n * Emits open status event.\n *\n * @internal\n */\n const emitOpenStatusEvent = () => {\n emit(open.value ? 'open' : 'close')\n }\n\n /**\n * Toggles the open property.\n *\n * @internal\n */\n const toggleOpen = () => {\n open.value = !open.value\n emitOpenStatusEvent()\n }\n\n return {\n open,\n toggleOpen,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-header-toggle-panel__header {\n cursor: pointer;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- `open`: emitted after the user clicks the element and opens it.\n- `close`: emitted after the user clicks the element and closes it.\n\n## Examples\n\nToggle panel which uses the base toggle panel, adds a header and manages the open/close state of the panel.\n\n### Basic usage\n\n```vue\n<template>\n <BaseHeaderTogglePanel :animation=\"animation\" :start-collapsed=\"false\">\n <template #header-content=\"{ open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n\n### Custom header\n\n```vue\n<template>\n <BaseHeaderTogglePanel :animation=\"animation\" :start-collapsed=\"true\">\n <template #header=\"{ toggleOpen, open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n <button @click=\"toggleOpen\">Toggle</button>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n\n### Customizing default header with classes\n\nThe `headerClass` prop can be used to add classes to the header of the toggle panel.\n\n```vue\n<template>\n <BaseHeaderTogglePanel headerClass=\"custom-class\" :animation=\"animation\" :start-collapsed=\"false\">\n <template #header-content=\"{ open }\">\n <p>Header, open: {{ open ? 'close' : 'open' }}</p>\n </template>\n <template #default>\n <p>Default content</p>\n </template>\n </BaseHeaderTogglePanel>\n</template>\n\n<script setup>\nimport { BaseHeaderTogglePanel } from '@empathyco/x-components'\nimport { CollapseHeight } from '@empathyco/x-components/animations'\nconst animation = CollapseHeight\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6BA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;;AAEL,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;;AAED,QAAA,cAAc,EAAE,OAAO;;AAEvB,QAAA,WAAW,EAAE,MAAM;AACpB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAG,EAAG,EAAA;AACnB;;;;AAIE;QACF,MAAM,IAAG,GAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAA;AAEtC;;;;AAIE;QACF,MAAM,mBAAkB,GAAI,MAAI;AAC9B,YAAA,IAAI,CAAC,IAAI,CAAC,KAAI,GAAI,MAAK,GAAI,OAAO,CAAA;AACpC,QAAA,CAAA;AAEA;;;;AAIE;QACF,MAAM,UAAS,GAAI,MAAI;AACrB,YAAA,IAAI,CAAC,KAAI,GAAI,CAAC,IAAI,CAAC,KAAI;AACvB,YAAA,mBAAmB,EAAC;AACtB,QAAA,CAAA;QAEA,OAAO;YACL,IAAI;YACJ,UAAU;SACZ;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -4,4 +4,4 @@ var css = ".x-header-toggle-panel__header[data-v-42c1f271]{cursor:pointer}";
4
4
  injectCss(css);
5
5
 
6
6
  export { css };
7
- //# sourceMappingURL=base-header-toggle-panel3.vue.js.map
7
+ //# sourceMappingURL=base-header-toggle-panel.vue3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-header-toggle-panel.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,4 +1,4 @@
1
- import _sfc_main from './base-id-toggle-panel-button2.vue.js';
1
+ import _sfc_main from './base-id-toggle-panel-button.vue2.js';
2
2
  import { resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
 
@@ -67,4 +67,4 @@ var _sfc_main = defineComponent({
67
67
  });
68
68
 
69
69
  export { _sfc_main as default };
70
- //# sourceMappingURL=base-id-toggle-panel-button2.vue.js.map
70
+ //# sourceMappingURL=base-id-toggle-panel-button.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-id-toggle-panel-button2.vue.js","sources":["../../../../src/components/panels/base-id-toggle-panel-button.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n class=\"x-base-id-toggle-panel-button xds:button\"\n data-test=\"base-id-toggle-button\"\n :aria-pressed=\"isPanelOpen.toString()\"\n >\n <!-- @slot (Required) Button content with a text, an icon or both -->\n <slot :is-panel-open=\"isPanelOpen\" />\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { XEventsTypes } from '../../wiring/events.types'\nimport type { WireMetadata } from '../../wiring/wiring.types'\nimport { computed, defineComponent, ref } from 'vue'\nimport { useXBus } from '../../composables'\nimport BaseEventButton from '../base-event-button.vue'\n\n/**\n * Component containing an event button that emits\n * {@link XEventsTypes.UserClickedPanelToggleButton} when clicked with\n * the panelId as payload.\n *\n * It has a default slot to customize its contents.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseIdTogglePanelButton',\n components: { BaseEventButton },\n props: {\n /**\n * The panelId to use for the toggle event listeners.\n */\n panelId: {\n type: String,\n required: true,\n },\n },\n setup(props) {\n const bus = useXBus()\n\n /**\n * The panel state to pass through the slot.\n */\n const isPanelOpen = ref(false)\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> => ({ UserClickedPanelToggleButton: props.panelId }),\n )\n\n /**\n * The subscription to the {@link XEventsTypes.TogglePanelStateChanged} event\n * to update the `isPanelOpen` property.\n *\n * @param newState - The new isOpen state of the panel.\n * @param id - The `panelId`.\n * @param id.id - The ID of the `panelId`.\n */\n const updatePanelState = (newState: boolean, { id }: WireMetadata) => {\n if (props.panelId === id) {\n isPanelOpen.value = newState\n }\n }\n\n bus\n .on('TogglePanelStateChanged', false)\n .subscribe(newState => updatePanelState(newState, { id: props.panelId, moduleName: null }))\n\n return {\n isPanelOpen,\n events,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedPanelToggleButton`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the id of the panelId\n that is going to be toggled.\n\n## Examples\n\n### Basic example\n\nThe component renders content passed to the default slot and toggles the panel with panelId\n`myToggle`.\n\n```vue\n<template>\n <div>\n <BaseIdTogglePanelButton panelId=\"myToggle\" v-slot=\"{ isPanelOpen }\">\n <template v-if=\"isPanelOpen\">\n <img src=\"./close-button-icon.svg\" alt=\"Close aside\" />\n <span>Close aside</span>\n </template>\n <template v-else>\n <img src=\"./open-button-icon.svg\" alt=\"Open aside\" />\n <span>Open aside</span>\n </template>\n </BaseIdTogglePanelButton>\n <BaseIdTogglePanel :startOpen=\"true\" :animation=\"animation\" panelId=\"myToggle\">\n <div class=\"x-text1\">My toggle</div>\n </BaseIdTogglePanel>\n </div>\n</template>\n\n<script setup>\nimport { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;AAmBA;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,yBAAyB;IAC/B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;AAEE;AACF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,GAAE,GAAI,OAAO,EAAC;AAEpB;;AAEE;AACF,QAAA,MAAM,WAAU,GAAI,GAAG,CAAC,KAAK,CAAA;AAE7B;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CACrB,OAA8B,EAAE,4BAA4B,EAAE,KAAK,CAAC,OAAM,EAAG,CAAC,CAChF;AAEA;;;;;;;AAOE;QACF,MAAM,gBAAe,GAAI,CAAC,QAAiB,EAAE,EAAE,EAAC,EAAiB,KAAG;AAClE,YAAA,IAAI,KAAK,CAAC,OAAM,KAAM,EAAE,EAAE;AACxB,gBAAA,WAAW,CAAC,KAAI,GAAI,QAAO;YAC7B;AACF,QAAA,CAAA;QAEA;AACG,aAAA,EAAE,CAAC,yBAAyB,EAAE,KAAK;aACnC,SAAS,CAAC,QAAO,IAAK,gBAAgB,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAwB,CAAG,CAAC,CAAA;QAE5F,OAAO;YACL,WAAW;YACX,MAAM;SACR;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-id-toggle-panel-button.vue2.js","sources":["../../../../src/components/panels/base-id-toggle-panel-button.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n class=\"x-base-id-toggle-panel-button xds:button\"\n data-test=\"base-id-toggle-button\"\n :aria-pressed=\"isPanelOpen.toString()\"\n >\n <!-- @slot (Required) Button content with a text, an icon or both -->\n <slot :is-panel-open=\"isPanelOpen\" />\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { XEventsTypes } from '../../wiring/events.types'\nimport type { WireMetadata } from '../../wiring/wiring.types'\nimport { computed, defineComponent, ref } from 'vue'\nimport { useXBus } from '../../composables'\nimport BaseEventButton from '../base-event-button.vue'\n\n/**\n * Component containing an event button that emits\n * {@link XEventsTypes.UserClickedPanelToggleButton} when clicked with\n * the panelId as payload.\n *\n * It has a default slot to customize its contents.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseIdTogglePanelButton',\n components: { BaseEventButton },\n props: {\n /**\n * The panelId to use for the toggle event listeners.\n */\n panelId: {\n type: String,\n required: true,\n },\n },\n setup(props) {\n const bus = useXBus()\n\n /**\n * The panel state to pass through the slot.\n */\n const isPanelOpen = ref(false)\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> => ({ UserClickedPanelToggleButton: props.panelId }),\n )\n\n /**\n * The subscription to the {@link XEventsTypes.TogglePanelStateChanged} event\n * to update the `isPanelOpen` property.\n *\n * @param newState - The new isOpen state of the panel.\n * @param id - The `panelId`.\n * @param id.id - The ID of the `panelId`.\n */\n const updatePanelState = (newState: boolean, { id }: WireMetadata) => {\n if (props.panelId === id) {\n isPanelOpen.value = newState\n }\n }\n\n bus\n .on('TogglePanelStateChanged', false)\n .subscribe(newState => updatePanelState(newState, { id: props.panelId, moduleName: null }))\n\n return {\n isPanelOpen,\n events,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedPanelToggleButton`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the id of the panelId\n that is going to be toggled.\n\n## Examples\n\n### Basic example\n\nThe component renders content passed to the default slot and toggles the panel with panelId\n`myToggle`.\n\n```vue\n<template>\n <div>\n <BaseIdTogglePanelButton panelId=\"myToggle\" v-slot=\"{ isPanelOpen }\">\n <template v-if=\"isPanelOpen\">\n <img src=\"./close-button-icon.svg\" alt=\"Close aside\" />\n <span>Close aside</span>\n </template>\n <template v-else>\n <img src=\"./open-button-icon.svg\" alt=\"Open aside\" />\n <span>Open aside</span>\n </template>\n </BaseIdTogglePanelButton>\n <BaseIdTogglePanel :startOpen=\"true\" :animation=\"animation\" panelId=\"myToggle\">\n <div class=\"x-text1\">My toggle</div>\n </BaseIdTogglePanel>\n </div>\n</template>\n\n<script setup>\nimport { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;AAmBA;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,yBAAyB;IAC/B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;AAEE;AACF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,GAAE,GAAI,OAAO,EAAC;AAEpB;;AAEE;AACF,QAAA,MAAM,WAAU,GAAI,GAAG,CAAC,KAAK,CAAA;AAE7B;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CACrB,OAA8B,EAAE,4BAA4B,EAAE,KAAK,CAAC,OAAM,EAAG,CAAC,CAChF;AAEA;;;;;;;AAOE;QACF,MAAM,gBAAe,GAAI,CAAC,QAAiB,EAAE,EAAE,EAAC,EAAiB,KAAG;AAClE,YAAA,IAAI,KAAK,CAAC,OAAM,KAAM,EAAE,EAAE;AACxB,gBAAA,WAAW,CAAC,KAAI,GAAI,QAAO;YAC7B;AACF,QAAA,CAAA;QAEA;AACG,aAAA,EAAE,CAAC,yBAAyB,EAAE,KAAK;aACnC,SAAS,CAAC,QAAO,IAAK,gBAAgB,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAwB,CAAG,CAAC,CAAA;QAE5F,OAAO;YACL,WAAW;YACX,MAAM;SACR;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import _sfc_main from './base-id-toggle-panel2.vue.js';
1
+ import _sfc_main from './base-id-toggle-panel.vue2.js';
2
2
  import { resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
 
@@ -8,26 +8,26 @@ import '../../plugins/x-plugin.js';
8
8
  import '@vueuse/core';
9
9
  import 'rxjs';
10
10
  import { AnimationProp } from '../../types/animation-prop.js';
11
- import '../animations/animate-clip-path2.vue.js';
12
- import '../animations/animate-scale2.vue.js';
13
- import '../animations/animate-translate2.vue.js';
14
- import '../animations/animate-width2.vue.js';
15
- import '../animations/animate-width3.vue.js';
16
- import '../animations/change-height2.vue.js';
17
- import '../animations/change-height3.vue.js';
18
- import '../animations/collapse-height2.vue.js';
19
- import '../animations/collapse-height3.vue.js';
20
- import '../animations/collapse-width2.vue.js';
21
- import '../animations/collapse-width3.vue.js';
22
- import '../animations/cross-fade2.vue.js';
23
- import '../animations/cross-fade3.vue.js';
24
- import '../animations/fade-and-slide2.vue.js';
25
- import '../animations/fade-and-slide3.vue.js';
26
- import '../animations/fade2.vue.js';
27
- import '../animations/fade3.vue.js';
11
+ import '../animations/animate-clip-path.vue2.js';
12
+ import '../animations/animate-scale.vue2.js';
13
+ import '../animations/animate-translate.vue2.js';
14
+ import '../animations/animate-width.vue2.js';
15
+ import '../animations/animate-width.vue3.js';
16
+ import '../animations/change-height.vue2.js';
17
+ import '../animations/change-height.vue3.js';
18
+ import '../animations/collapse-height.vue2.js';
19
+ import '../animations/collapse-height.vue3.js';
20
+ import '../animations/collapse-width.vue2.js';
21
+ import '../animations/collapse-width.vue3.js';
22
+ import '../animations/cross-fade.vue2.js';
23
+ import '../animations/cross-fade.vue3.js';
24
+ import '../animations/fade-and-slide.vue2.js';
25
+ import '../animations/fade-and-slide.vue3.js';
26
+ import '../animations/fade.vue2.js';
27
+ import '../animations/fade.vue3.js';
28
28
  import _sfc_main$1 from '../animations/no-animation.vue.js';
29
- import '../animations/staggered-fade-and-slide2.vue.js';
30
- import '../animations/staggered-fade-and-slide3.vue.js';
29
+ import '../animations/staggered-fade-and-slide.vue2.js';
30
+ import '../animations/staggered-fade-and-slide.vue3.js';
31
31
  import BaseTogglePanel from './base-toggle-panel.vue.js';
32
32
 
33
33
  /**
@@ -101,4 +101,4 @@ var _sfc_main = defineComponent({
101
101
  });
102
102
 
103
103
  export { _sfc_main as default };
104
- //# sourceMappingURL=base-id-toggle-panel2.vue.js.map
104
+ //# sourceMappingURL=base-id-toggle-panel.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-id-toggle-panel2.vue.js","sources":["../../../../src/components/panels/base-id-toggle-panel.vue"],"sourcesContent":["<template>\n <BaseTogglePanel :open=\"isOpen\" :animation=\"animation\">\n <!-- @slot (Required) Default content -->\n <slot />\n </BaseTogglePanel>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref, watch } from 'vue'\nimport { use$x } from '../../composables'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\nimport BaseTogglePanel from './base-toggle-panel.vue'\n\n/**\n * Simple panel that could receives its initial open state via prop, if not the default is opens\n * and a required prop, named `panelId`, which are responsible of rendering default slot\n * inside a configurable transition.\n *\n * It reacts to `UserClickedPanelToggleButton` event, when their payload matches the component's\n * 'panelId' prop, to handle its open/close state.\n *\n * The default slot offers the possibility to customise the modal content.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseIdTogglePanel',\n components: { BaseTogglePanel },\n props: {\n /** Shows the panel open at the beginning or not, depending on its state. */\n startOpen: {\n type: Boolean,\n default: true,\n },\n /** Animation component that will be used to animate the panel content. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /**\n * The id to link with the BaseIdTogglePanelButton.\n * Both components must use the same Id to make them interact.\n */\n panelId: {\n type: String,\n required: true,\n },\n },\n setup(props) {\n const $x = use$x()\n\n /** Whether the toggle panel is open or not. */\n const isOpen = ref(props.startOpen)\n\n /**\n * Method to subscribe to the {@link XEventsTypes.UserClickedPanelToggleButton} event.\n *\n * @param panelId - The payload of the {@link XEventsTypes.UserClickedPanelToggleButton} event.\n *\n * @public\n */\n const togglePanel = (panelId: string) => {\n if (props.panelId === panelId) {\n isOpen.value = !isOpen.value\n }\n }\n\n $x.on('UserClickedPanelToggleButton', false).subscribe(togglePanel)\n\n /**\n * Emits the {@link XEventsTypes.TogglePanelStateChanged} event, when the internal state\n * changes.\n *\n * @remarks This event is necessary to link the state with the {@link BaseIdTogglePanelButton}\n * component.\n * @public\n */\n watch(\n () => isOpen.value,\n () => {\n $x.emit('TogglePanelStateChanged', isOpen.value, {\n id: props.panelId,\n target: document.getElementById(props.panelId) as HTMLElement,\n })\n },\n { immediate: true },\n )\n\n return { isOpen }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will watch and emit:\n\n- [`UserClickedPanelToggleButton`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n watched to toggle the panel when the payload matches the `panelId` prop.\n- [`TogglePanelStateChanged`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n emitted when the internal open state changes, with the new state and panel id.\n\n## Examples\n\n### Basic usage\n\n```vue\n<template>\n <div>\n <BaseIdTogglePanelButton panelId=\"myToggle\">\n <img src=\"./open-button-icon.svg\" alt=\"Toggle Aside\" />\n <span>Toggle Aside</span>\n </BaseIdTogglePanelButton>\n <BaseIdTogglePanel :startOpen=\"true\" :animation=\"animation\" panelId=\"myToggle\">\n <div class=\"x-text1\">My toggle</div>\n </BaseIdTogglePanel>\n </div>\n</template>\n\n<script setup>\nimport { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\n</script>\n```\n\n### Listening to state changes\n\nYou can listen to the `TogglePanelStateChanged` event to react to panel open/close state changes:\n\n```vue\n<template>\n <div>\n <span>Panel is {{ isPanelOpen ? 'open' : 'closed' }}</span>\n </div>\n</template>\n\n<script setup>\nimport { ref } from 'vue'\nimport { use$x } from '@empathyco/x-components'\n\nconst x = use$x()\nconst isPanelOpen = ref(false)\nconst panelId = 'myToggle'\n\nx.on('TogglePanelStateChanged').subscribe((isOpen, { id }) => {\n if (id === panelId) {\n isPanelOpen.value = isOpen\n }\n})\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;;AAWE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;;AAEL,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;;AAED,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;AACD;;;AAGE;AACF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC;;QAGjB,MAAM,MAAK,GAAI,GAAG,CAAC,KAAK,CAAC,SAAS,CAAA;AAElC;;;;;;AAME;AACF,QAAA,MAAM,WAAU,GAAI,CAAC,OAAe,KAAG;AACrC,YAAA,IAAI,KAAK,CAAC,OAAM,KAAM,OAAO,EAAE;AAC7B,gBAAA,MAAM,CAAC,KAAI,GAAI,CAAC,MAAM,CAAC,KAAI;YAC7B;AACF,QAAA,CAAA;AAEA,QAAA,EAAE,CAAC,EAAE,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAA;AAElE;;;;;;;AAOE;QACF,KAAK,CACH,MAAM,MAAM,CAAC,KAAK,EAClB,MAAI;YACF,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,KAAK,EAAE;gBAC/C,EAAE,EAAE,KAAK,CAAC,OAAO;gBACjB,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAgB;AAC9D,aAAA,CAAA;AACH,QAAA,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CACrB;QAEA,OAAO,EAAE,MAAK,EAAE;IAClB,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-id-toggle-panel.vue2.js","sources":["../../../../src/components/panels/base-id-toggle-panel.vue"],"sourcesContent":["<template>\n <BaseTogglePanel :open=\"isOpen\" :animation=\"animation\">\n <!-- @slot (Required) Default content -->\n <slot />\n </BaseTogglePanel>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref, watch } from 'vue'\nimport { use$x } from '../../composables'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\nimport BaseTogglePanel from './base-toggle-panel.vue'\n\n/**\n * Simple panel that could receives its initial open state via prop, if not the default is opens\n * and a required prop, named `panelId`, which are responsible of rendering default slot\n * inside a configurable transition.\n *\n * It reacts to `UserClickedPanelToggleButton` event, when their payload matches the component's\n * 'panelId' prop, to handle its open/close state.\n *\n * The default slot offers the possibility to customise the modal content.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseIdTogglePanel',\n components: { BaseTogglePanel },\n props: {\n /** Shows the panel open at the beginning or not, depending on its state. */\n startOpen: {\n type: Boolean,\n default: true,\n },\n /** Animation component that will be used to animate the panel content. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /**\n * The id to link with the BaseIdTogglePanelButton.\n * Both components must use the same Id to make them interact.\n */\n panelId: {\n type: String,\n required: true,\n },\n },\n setup(props) {\n const $x = use$x()\n\n /** Whether the toggle panel is open or not. */\n const isOpen = ref(props.startOpen)\n\n /**\n * Method to subscribe to the {@link XEventsTypes.UserClickedPanelToggleButton} event.\n *\n * @param panelId - The payload of the {@link XEventsTypes.UserClickedPanelToggleButton} event.\n *\n * @public\n */\n const togglePanel = (panelId: string) => {\n if (props.panelId === panelId) {\n isOpen.value = !isOpen.value\n }\n }\n\n $x.on('UserClickedPanelToggleButton', false).subscribe(togglePanel)\n\n /**\n * Emits the {@link XEventsTypes.TogglePanelStateChanged} event, when the internal state\n * changes.\n *\n * @remarks This event is necessary to link the state with the {@link BaseIdTogglePanelButton}\n * component.\n * @public\n */\n watch(\n () => isOpen.value,\n () => {\n $x.emit('TogglePanelStateChanged', isOpen.value, {\n id: props.panelId,\n target: document.getElementById(props.panelId) as HTMLElement,\n })\n },\n { immediate: true },\n )\n\n return { isOpen }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will watch and emit:\n\n- [`UserClickedPanelToggleButton`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n watched to toggle the panel when the payload matches the `panelId` prop.\n- [`TogglePanelStateChanged`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n emitted when the internal open state changes, with the new state and panel id.\n\n## Examples\n\n### Basic usage\n\n```vue\n<template>\n <div>\n <BaseIdTogglePanelButton panelId=\"myToggle\">\n <img src=\"./open-button-icon.svg\" alt=\"Toggle Aside\" />\n <span>Toggle Aside</span>\n </BaseIdTogglePanelButton>\n <BaseIdTogglePanel :startOpen=\"true\" :animation=\"animation\" panelId=\"myToggle\">\n <div class=\"x-text1\">My toggle</div>\n </BaseIdTogglePanel>\n </div>\n</template>\n\n<script setup>\nimport { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\n</script>\n```\n\n### Listening to state changes\n\nYou can listen to the `TogglePanelStateChanged` event to react to panel open/close state changes:\n\n```vue\n<template>\n <div>\n <span>Panel is {{ isPanelOpen ? 'open' : 'closed' }}</span>\n </div>\n</template>\n\n<script setup>\nimport { ref } from 'vue'\nimport { use$x } from '@empathyco/x-components'\n\nconst x = use$x()\nconst isPanelOpen = ref(false)\nconst panelId = 'myToggle'\n\nx.on('TogglePanelStateChanged').subscribe((isOpen, { id }) => {\n if (id === panelId) {\n isPanelOpen.value = isOpen\n }\n})\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;;AAWE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;;AAEL,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;;AAED,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;AACD;;;AAGE;AACF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC;;QAGjB,MAAM,MAAK,GAAI,GAAG,CAAC,KAAK,CAAC,SAAS,CAAA;AAElC;;;;;;AAME;AACF,QAAA,MAAM,WAAU,GAAI,CAAC,OAAe,KAAG;AACrC,YAAA,IAAI,KAAK,CAAC,OAAM,KAAM,OAAO,EAAE;AAC7B,gBAAA,MAAM,CAAC,KAAI,GAAI,CAAC,MAAM,CAAC,KAAI;YAC7B;AACF,QAAA,CAAA;AAEA,QAAA,EAAE,CAAC,EAAE,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAA;AAElE;;;;;;;AAOE;QACF,KAAK,CACH,MAAM,MAAM,CAAC,KAAK,EAClB,MAAI;YACF,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,KAAK,EAAE;gBAC/C,EAAE,EAAE,KAAK,CAAC,OAAO;gBACjB,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAgB;AAC9D,aAAA,CAAA;AACH,QAAA,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CACrB;QAEA,OAAO,EAAE,MAAK,EAAE;IAClB,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,6 +1,6 @@
1
- import _sfc_main from './base-tabs-panel2.vue.js';
1
+ import _sfc_main from './base-tabs-panel.vue2.js';
2
2
  import { openBlock, createElementBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, normalizeProps, guardReactiveProps, createCommentVNode } from 'vue';
3
- import './base-tabs-panel3.vue.js';
3
+ import './base-tabs-panel.vue3.js';
4
4
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
5
5
 
6
6
  const _hoisted_1 = {
@@ -1,25 +1,25 @@
1
1
  import { defineComponent, ref } from 'vue';
2
2
  import { AnimationProp } from '../../types/animation-prop.js';
3
- import '../animations/animate-clip-path2.vue.js';
4
- import '../animations/animate-scale2.vue.js';
5
- import '../animations/animate-translate2.vue.js';
6
- import '../animations/animate-width2.vue.js';
7
- import '../animations/animate-width3.vue.js';
8
- import '../animations/change-height2.vue.js';
9
- import '../animations/change-height3.vue.js';
10
- import '../animations/collapse-height2.vue.js';
11
- import '../animations/collapse-height3.vue.js';
12
- import '../animations/collapse-width2.vue.js';
13
- import '../animations/collapse-width3.vue.js';
14
- import '../animations/cross-fade2.vue.js';
15
- import '../animations/cross-fade3.vue.js';
16
- import '../animations/fade-and-slide2.vue.js';
17
- import '../animations/fade-and-slide3.vue.js';
18
- import '../animations/fade2.vue.js';
19
- import '../animations/fade3.vue.js';
3
+ import '../animations/animate-clip-path.vue2.js';
4
+ import '../animations/animate-scale.vue2.js';
5
+ import '../animations/animate-translate.vue2.js';
6
+ import '../animations/animate-width.vue2.js';
7
+ import '../animations/animate-width.vue3.js';
8
+ import '../animations/change-height.vue2.js';
9
+ import '../animations/change-height.vue3.js';
10
+ import '../animations/collapse-height.vue2.js';
11
+ import '../animations/collapse-height.vue3.js';
12
+ import '../animations/collapse-width.vue2.js';
13
+ import '../animations/collapse-width.vue3.js';
14
+ import '../animations/cross-fade.vue2.js';
15
+ import '../animations/cross-fade.vue3.js';
16
+ import '../animations/fade-and-slide.vue2.js';
17
+ import '../animations/fade-and-slide.vue3.js';
18
+ import '../animations/fade.vue2.js';
19
+ import '../animations/fade.vue3.js';
20
20
  import _sfc_main$1 from '../animations/no-animation.vue.js';
21
- import '../animations/staggered-fade-and-slide2.vue.js';
22
- import '../animations/staggered-fade-and-slide3.vue.js';
21
+ import '../animations/staggered-fade-and-slide.vue2.js';
22
+ import '../animations/staggered-fade-and-slide.vue3.js';
23
23
 
24
24
  /**
25
25
  * Base Tabs Panel.
@@ -125,4 +125,4 @@ var _sfc_main = defineComponent({
125
125
  });
126
126
 
127
127
  export { _sfc_main as default };
128
- //# sourceMappingURL=base-tabs-panel2.vue.js.map
128
+ //# sourceMappingURL=base-tabs-panel.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-tabs-panel2.vue.js","sources":["../../../../src/components/panels/base-tabs-panel.vue"],"sourcesContent":["<template>\n <section v-if=\"getTabs().length > 0\" class=\"x-tabs-panel\" data-test=\"base-tabs-panel\">\n <component\n :is=\"tabsAnimation\"\n class=\"x-tabs-panel__items-list\"\n :class=\"tabsListClass\"\n data-test=\"base-tabs-panel-list\"\n role=\"tablist\"\n >\n <!--\n @slot Slot used to replace the whole tab.\n @binding {string} tab - The tab name.\n @binding {boolean} isSelected - Indicates if the tab is selected.\n @binding {function} select - Function to select the tab.\n -->\n <slot\n v-for=\"tab in getTabs()\"\n name=\"tab\"\n v-bind=\"{ tab, isSelected: tabIsSelected(tab), select: () => selectTab(tab) }\"\n >\n <button\n :id=\"`base-tabs-panel-${tab}`\"\n :key=\"tab\"\n class=\"x-tabs-panel__list-item x-tabs-panel__button x-button\"\n :class=\"tabIsSelected(tab) ? activeTabClass : tabClass\"\n :aria-selected=\"tabIsSelected(tab)\"\n data-test=\"base-tabs-panel-button\"\n role=\"tab\"\n @click=\"selectTab(tab)\"\n >\n <!--\n @slot Slot used to just pass the content.\n @binding {string} tab - The tab name.\n @binding {boolean} isSelected - Indicates if the tab is selected.\n -->\n <slot name=\"tab-content\" v-bind=\"{ tab, isSelected: tabIsSelected(tab) }\">\n {{ tab }}\n </slot>\n </button>\n </slot>\n </component>\n\n <component :is=\"contentAnimation\">\n <div\n v-if=\"selectedTab && slots[selectedTab]\"\n :key=\"selectedTab\"\n :class=\"contentClass\"\n :aria-labelledby=\"`base-tabs-panel-${selectedTab}`\"\n data-test=\"base-tabs-panel-content\"\n role=\"tabpanel\"\n >\n <!--\n @slot Slot used to display the selected tab content.\n @binding {string} tab - This content's tab name.\n @binding {function} selectTab - Function to select a tab.\n @binding {function} deselectTab - Function to deselect the tab.\n -->\n <slot\n :name=\"selectedTab\"\n v-bind=\"{ tab: selectedTab, selectTab, deselectTab: () => selectTab(selectedTab) }\"\n />\n </div>\n </component>\n </section>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\n\n/**\n * Base Tabs Panel.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseTabsPanel',\n props: {\n /**\n * Animation component that will be used to animate the tabs list.\n *\n * @public\n */\n tabsAnimation: {\n type: AnimationProp,\n default: 'header',\n },\n /**\n * Animation component that will be used to animate the selected tab content.\n *\n * @public\n */\n contentAnimation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /**\n * The tab to be initially selected.\n *\n * @public\n */\n initialTab: {\n type: String,\n default: '',\n },\n /**\n * Allows the tabs to be unselected.\n *\n * @public\n */\n allowTabDeselect: {\n type: Boolean,\n default: false,\n },\n /** Class inherited by content element. */\n activeTabClass: String,\n /** Class inherited by content element. */\n contentClass: String,\n /** Class inherited by content element. */\n tabClass: String,\n /** Class inherited by content element. */\n tabsListClass: String,\n },\n setup(props, { slots }) {\n /**\n * The currently selected tab.\n *\n * @internal\n */\n const selectedTab = ref(props.initialTab)\n\n /**\n * Extracts the tab from the slots.\n *\n * @returns The list of tabs.\n *\n * @internal\n */\n const getTabs = () =>\n Object.keys(slots).filter(slotName => !['tab', 'tab-content'].includes(slotName))\n\n /**\n * Changes the current selected tab. If the tab is already selected\n * and `allowTabDeselect` is `true`, the tab will be unselected.\n *\n * @param tab - The tab to be selected.\n *\n * @internal\n */\n const selectTab = (tab: string) => {\n if (props.allowTabDeselect && selectedTab.value === tab) {\n selectedTab.value = ''\n } else {\n selectedTab.value = tab\n }\n }\n\n /**\n * Checks if a tab is selected.\n *\n * @param tab - Tab to check.\n * @returns True if the tab is selected, false otherwise.\n *\n * @internal\n */\n const tabIsSelected = (tab: string) => selectedTab.value === tab\n\n return {\n selectedTab,\n slots,\n getTabs,\n selectTab,\n tabIsSelected,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-tabs-panel__items-list {\n display: flex;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits no events.\n\n## Examples\n\nThis component renders a list of tabs based on the name of the slots passed on its template. By\ndefault, the name of each slot will be used as tab label. If an initial tab is passed by prop, the\ncontent of its correspondent slot will be displayed in a panel. Otherwise, no content will be displayed\nuntil a tab is selected.\n\n### Basic example\n\nIt renders a list of tabs and, when a tab is clicked, a panel with its content will be displayed.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n### Play with props\n\n#### Define the tab to be initially opened\n\nBy default, no tab is selected so any panel is displayed. The `initialTab` prop allows to indicate\nwhich tab should be opened at first.\n\n```vue\n<template>\n <BaseTabsPanel initialTab=\"summer\">\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Allowing tabs deselection\n\nThe prop `allowTabDeselect` allows the tabs to be deselected. When a tab that is already selected is\nclicked again, the tab will be deselected and no panel content will be displayed. By default, this\nbehavior is deactivated.\n\n```vue\n<template>\n <BaseTabsPanel initialTab=\"summer\" allowTabDeselect>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the content with classes\n\n- The `activeTabClass` prop can be used to add classes to the active tab button.\n- The `contentClass` prop can be used to add classes to the content.\n- The `tabClass` prop can be used to add classes to the tab buttons.\n- The `tabsListClass` prop can be used to add classes to the tabs list.\n\n```vue\n<template>\n <BaseTabsPanel\n activeTabClass=\"x-button-auxiliary\"\n contentClass=\"x-p-12 x-bg-auxiliary-25\"\n tabClass=\"x-button-ghost\"\n tabsListClass=\"x-flex-col\"\n >\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Play with the animations\n\n- The `tabsAnimation` prop can be used to animate the tabs list.\n- The `contentAnimation` prop can be used to animate the selected tab content.\n\n```vue\n<template>\n <BaseTabsPanel :tabsAnimation=\"staggeredFadeAndSlide\" :contentAnimation=\"staggeredFadeAndSlide\">\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, StaggeredFadeAndSlide } from '@empathyco/x-components'\nconst staggeredFadeAndSlide = StaggeredFadeAndSlide\n</script>\n```\n\n### Overriding the slots\n\n#### Customizing the tab button\n\nBy default, the component is rendering a button for each tab to be displayed. This button can be\nreplaced entirely through the `tab` slot.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #tab=\"{ tab, isSelected, select }\">\n <CheckIcon v-if=\"isSelected\" />\n This is the {{ tab }} tab.\n <button @click=\"select\">Open tab</button>\n </template>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the tab button content\n\nAlternatively to the previous example, instead of changing the whole tab button, the slot\n`tab-content` offers the possibility of changing just its contents.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #tab-content=\"{ tab, isSelected }\">\n <CheckIcon v-if=\"isSelected\" />\n {{ tab }}\n </template>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the tab panel content\n\nThe displayed tab name and a method to select a tab are exposed to the tab panel content slot.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #summer=\"{ tab, selectTab, deselectTab }\">\n <h1>{{ tab }}</h1>\n <button @click=\"() => selectTab('fall')\">Open Fall</button>\n <button @click=\"deselectTab\">Close tab</button>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuEA;;;;AAIE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;AACD;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,EAAE;AACZ,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;;AAED,QAAA,cAAc,EAAE,MAAM;;AAEtB,QAAA,YAAY,EAAE,MAAM;;AAEpB,QAAA,QAAQ,EAAE,MAAM;;AAEhB,QAAA,aAAa,EAAE,MAAM;AACtB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,KAAI,EAAG,EAAA;AACpB;;;;AAIE;QACF,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC,UAAU,CAAA;AAExC;;;;;;AAME;AACF,QAAA,MAAM,OAAM,GAAI,MACd,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAO,IAAK,CAAC,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAElF;;;;;;;AAOE;AACF,QAAA,MAAM,SAAQ,GAAI,CAAC,GAAW,KAAG;YAC/B,IAAI,KAAK,CAAC,gBAAe,IAAK,WAAW,CAAC,KAAI,KAAM,GAAG,EAAE;AACvD,gBAAA,WAAW,CAAC,KAAI,GAAI,EAAC;YACvB;iBAAO;AACL,gBAAA,WAAW,CAAC,KAAI,GAAI,GAAE;YACxB;AACF,QAAA,CAAA;AAEA;;;;;;;AAOE;AACF,QAAA,MAAM,aAAY,GAAI,CAAC,GAAW,KAAK,WAAW,CAAC,KAAI,KAAM,GAAE;QAE/D,OAAO;YACL,WAAW;YACX,KAAK;YACL,OAAO;YACP,SAAS;YACT,aAAa;SACf;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-tabs-panel.vue2.js","sources":["../../../../src/components/panels/base-tabs-panel.vue"],"sourcesContent":["<template>\n <section v-if=\"getTabs().length > 0\" class=\"x-tabs-panel\" data-test=\"base-tabs-panel\">\n <component\n :is=\"tabsAnimation\"\n class=\"x-tabs-panel__items-list\"\n :class=\"tabsListClass\"\n data-test=\"base-tabs-panel-list\"\n role=\"tablist\"\n >\n <!--\n @slot Slot used to replace the whole tab.\n @binding {string} tab - The tab name.\n @binding {boolean} isSelected - Indicates if the tab is selected.\n @binding {function} select - Function to select the tab.\n -->\n <slot\n v-for=\"tab in getTabs()\"\n name=\"tab\"\n v-bind=\"{ tab, isSelected: tabIsSelected(tab), select: () => selectTab(tab) }\"\n >\n <button\n :id=\"`base-tabs-panel-${tab}`\"\n :key=\"tab\"\n class=\"x-tabs-panel__list-item x-tabs-panel__button x-button\"\n :class=\"tabIsSelected(tab) ? activeTabClass : tabClass\"\n :aria-selected=\"tabIsSelected(tab)\"\n data-test=\"base-tabs-panel-button\"\n role=\"tab\"\n @click=\"selectTab(tab)\"\n >\n <!--\n @slot Slot used to just pass the content.\n @binding {string} tab - The tab name.\n @binding {boolean} isSelected - Indicates if the tab is selected.\n -->\n <slot name=\"tab-content\" v-bind=\"{ tab, isSelected: tabIsSelected(tab) }\">\n {{ tab }}\n </slot>\n </button>\n </slot>\n </component>\n\n <component :is=\"contentAnimation\">\n <div\n v-if=\"selectedTab && slots[selectedTab]\"\n :key=\"selectedTab\"\n :class=\"contentClass\"\n :aria-labelledby=\"`base-tabs-panel-${selectedTab}`\"\n data-test=\"base-tabs-panel-content\"\n role=\"tabpanel\"\n >\n <!--\n @slot Slot used to display the selected tab content.\n @binding {string} tab - This content's tab name.\n @binding {function} selectTab - Function to select a tab.\n @binding {function} deselectTab - Function to deselect the tab.\n -->\n <slot\n :name=\"selectedTab\"\n v-bind=\"{ tab: selectedTab, selectTab, deselectTab: () => selectTab(selectedTab) }\"\n />\n </div>\n </component>\n </section>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { NoAnimation } from '../animations'\n\n/**\n * Base Tabs Panel.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseTabsPanel',\n props: {\n /**\n * Animation component that will be used to animate the tabs list.\n *\n * @public\n */\n tabsAnimation: {\n type: AnimationProp,\n default: 'header',\n },\n /**\n * Animation component that will be used to animate the selected tab content.\n *\n * @public\n */\n contentAnimation: {\n type: AnimationProp,\n default: () => NoAnimation,\n },\n /**\n * The tab to be initially selected.\n *\n * @public\n */\n initialTab: {\n type: String,\n default: '',\n },\n /**\n * Allows the tabs to be unselected.\n *\n * @public\n */\n allowTabDeselect: {\n type: Boolean,\n default: false,\n },\n /** Class inherited by content element. */\n activeTabClass: String,\n /** Class inherited by content element. */\n contentClass: String,\n /** Class inherited by content element. */\n tabClass: String,\n /** Class inherited by content element. */\n tabsListClass: String,\n },\n setup(props, { slots }) {\n /**\n * The currently selected tab.\n *\n * @internal\n */\n const selectedTab = ref(props.initialTab)\n\n /**\n * Extracts the tab from the slots.\n *\n * @returns The list of tabs.\n *\n * @internal\n */\n const getTabs = () =>\n Object.keys(slots).filter(slotName => !['tab', 'tab-content'].includes(slotName))\n\n /**\n * Changes the current selected tab. If the tab is already selected\n * and `allowTabDeselect` is `true`, the tab will be unselected.\n *\n * @param tab - The tab to be selected.\n *\n * @internal\n */\n const selectTab = (tab: string) => {\n if (props.allowTabDeselect && selectedTab.value === tab) {\n selectedTab.value = ''\n } else {\n selectedTab.value = tab\n }\n }\n\n /**\n * Checks if a tab is selected.\n *\n * @param tab - Tab to check.\n * @returns True if the tab is selected, false otherwise.\n *\n * @internal\n */\n const tabIsSelected = (tab: string) => selectedTab.value === tab\n\n return {\n selectedTab,\n slots,\n getTabs,\n selectTab,\n tabIsSelected,\n }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-tabs-panel__items-list {\n display: flex;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits no events.\n\n## Examples\n\nThis component renders a list of tabs based on the name of the slots passed on its template. By\ndefault, the name of each slot will be used as tab label. If an initial tab is passed by prop, the\ncontent of its correspondent slot will be displayed in a panel. Otherwise, no content will be displayed\nuntil a tab is selected.\n\n### Basic example\n\nIt renders a list of tabs and, when a tab is clicked, a panel with its content will be displayed.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n### Play with props\n\n#### Define the tab to be initially opened\n\nBy default, no tab is selected so any panel is displayed. The `initialTab` prop allows to indicate\nwhich tab should be opened at first.\n\n```vue\n<template>\n <BaseTabsPanel initialTab=\"summer\">\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Allowing tabs deselection\n\nThe prop `allowTabDeselect` allows the tabs to be deselected. When a tab that is already selected is\nclicked again, the tab will be deselected and no panel content will be displayed. By default, this\nbehavior is deactivated.\n\n```vue\n<template>\n <BaseTabsPanel initialTab=\"summer\" allowTabDeselect>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the content with classes\n\n- The `activeTabClass` prop can be used to add classes to the active tab button.\n- The `contentClass` prop can be used to add classes to the content.\n- The `tabClass` prop can be used to add classes to the tab buttons.\n- The `tabsListClass` prop can be used to add classes to the tabs list.\n\n```vue\n<template>\n <BaseTabsPanel\n activeTabClass=\"x-button-auxiliary\"\n contentClass=\"x-p-12 x-bg-auxiliary-25\"\n tabClass=\"x-button-ghost\"\n tabsListClass=\"x-flex-col\"\n >\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n\n#### Play with the animations\n\n- The `tabsAnimation` prop can be used to animate the tabs list.\n- The `contentAnimation` prop can be used to animate the selected tab content.\n\n```vue\n<template>\n <BaseTabsPanel :tabsAnimation=\"staggeredFadeAndSlide\" :contentAnimation=\"staggeredFadeAndSlide\">\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, StaggeredFadeAndSlide } from '@empathyco/x-components'\nconst staggeredFadeAndSlide = StaggeredFadeAndSlide\n</script>\n```\n\n### Overriding the slots\n\n#### Customizing the tab button\n\nBy default, the component is rendering a button for each tab to be displayed. This button can be\nreplaced entirely through the `tab` slot.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #tab=\"{ tab, isSelected, select }\">\n <CheckIcon v-if=\"isSelected\" />\n This is the {{ tab }} tab.\n <button @click=\"select\">Open tab</button>\n </template>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the tab button content\n\nAlternatively to the previous example, instead of changing the whole tab button, the slot\n`tab-content` offers the possibility of changing just its contents.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #tab-content=\"{ tab, isSelected }\">\n <CheckIcon v-if=\"isSelected\" />\n {{ tab }}\n </template>\n <template #summer>\n <div>Summer Top Sales</div>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n <template #outlet>\n <div>Outlet Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'\n</script>\n```\n\n#### Customizing the tab panel content\n\nThe displayed tab name and a method to select a tab are exposed to the tab panel content slot.\n\n```vue\n<template>\n <BaseTabsPanel>\n <template #summer=\"{ tab, selectTab, deselectTab }\">\n <h1>{{ tab }}</h1>\n <button @click=\"() => selectTab('fall')\">Open Fall</button>\n <button @click=\"deselectTab\">Close tab</button>\n </template>\n <template #fall>\n <div>Fall Top Sales</div>\n </template>\n </BaseTabsPanel>\n</template>\n\n<script setup>\nimport { BaseTabsPanel } from '@empathyco/x-components'\n</script>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuEA;;;;AAIE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAW;AAC3B,SAAA;AACD;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,EAAE;AACZ,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;;AAED,QAAA,cAAc,EAAE,MAAM;;AAEtB,QAAA,YAAY,EAAE,MAAM;;AAEpB,QAAA,QAAQ,EAAE,MAAM;;AAEhB,QAAA,aAAa,EAAE,MAAM;AACtB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,KAAI,EAAG,EAAA;AACpB;;;;AAIE;QACF,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC,UAAU,CAAA;AAExC;;;;;;AAME;AACF,QAAA,MAAM,OAAM,GAAI,MACd,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAO,IAAK,CAAC,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAElF;;;;;;;AAOE;AACF,QAAA,MAAM,SAAQ,GAAI,CAAC,GAAW,KAAG;YAC/B,IAAI,KAAK,CAAC,gBAAe,IAAK,WAAW,CAAC,KAAI,KAAM,GAAG,EAAE;AACvD,gBAAA,WAAW,CAAC,KAAI,GAAI,EAAC;YACvB;iBAAO;AACL,gBAAA,WAAW,CAAC,KAAI,GAAI,GAAE;YACxB;AACF,QAAA,CAAA;AAEA;;;;;;;AAOE;AACF,QAAA,MAAM,aAAY,GAAI,CAAC,GAAW,KAAK,WAAW,CAAC,KAAI,KAAM,GAAE;QAE/D,OAAO;YACL,WAAW;YACX,KAAK;YACL,OAAO;YACP,SAAS;YACT,aAAa;SACf;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -4,4 +4,4 @@ var css = ".x-tabs-panel__items-list[data-v-d9d4ee33]{display:flex}";
4
4
  injectCss(css);
5
5
 
6
6
  export { css };
7
- //# sourceMappingURL=base-tabs-panel3.vue.js.map
7
+ //# sourceMappingURL=base-tabs-panel.vue3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-tabs-panel.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,4 +1,4 @@
1
- import _sfc_main from './base-toggle-panel2.vue.js';
1
+ import _sfc_main from './base-toggle-panel.vue2.js';
2
2
  import { openBlock, createBlock, resolveDynamicComponent, withCtx, createElementBlock, renderSlot, createCommentVNode } from 'vue';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
 
@@ -32,4 +32,4 @@ var _sfc_main = defineComponent({
32
32
  });
33
33
 
34
34
  export { _sfc_main as default };
35
- //# sourceMappingURL=base-toggle-panel2.vue.js.map
35
+ //# sourceMappingURL=base-toggle-panel.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-toggle-panel2.vue.js","sources":["../../../../src/components/panels/base-toggle-panel.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div v-if=\"open\" class=\"x-toggle-panel\" data-test=\"base-toggle-panel\">\n <!-- @slot (Required) Default content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport { AnimationProp } from '../../types/animation-prop'\n\n/**\n * Simple panel that receives its open state via prop, which is responsible of rendering\n * default slot inside a configurable transition.\n *\n * @public\n */\nexport default defineComponent({\n props: {\n /**\n * Handles if the panel is rendered. It is used with v-if instead of v-show to get better\n * performance.\n *\n * @public\n */\n open: {\n type: Boolean,\n required: true,\n },\n /**\n * Animation component that will be used to animate the panel content.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'div',\n },\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\nSimple panel that receives its open state via prop, which is responsible for rendering the default slot inside a configurable transition.\n\n### Basic usage\n\n```vue\n<template>\n <BaseTogglePanel :open=\"true\" :animation=\"animation\">\n <Filters :filters=\"filters\">\n <template #default=\"{ filter }\">\n <p>{{ filter.label }}</p>\n </template>\n </Filters>\n </BaseTogglePanel>\n</template>\n\n<script setup>\nimport { BaseTogglePanel } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\nconst filters = [{ label: 'Color' }, { label: 'Size' }, { label: 'Brand' }]\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAaA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE;AACL;;;;;AAKE;AACF,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACF,KAAA;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-toggle-panel.vue2.js","sources":["../../../../src/components/panels/base-toggle-panel.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div v-if=\"open\" class=\"x-toggle-panel\" data-test=\"base-toggle-panel\">\n <!-- @slot (Required) Default content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport { AnimationProp } from '../../types/animation-prop'\n\n/**\n * Simple panel that receives its open state via prop, which is responsible of rendering\n * default slot inside a configurable transition.\n *\n * @public\n */\nexport default defineComponent({\n props: {\n /**\n * Handles if the panel is rendered. It is used with v-if instead of v-show to get better\n * performance.\n *\n * @public\n */\n open: {\n type: Boolean,\n required: true,\n },\n /**\n * Animation component that will be used to animate the panel content.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'div',\n },\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\nSimple panel that receives its open state via prop, which is responsible for rendering the default slot inside a configurable transition.\n\n### Basic usage\n\n```vue\n<template>\n <BaseTogglePanel :open=\"true\" :animation=\"animation\">\n <Filters :filters=\"filters\">\n <template #default=\"{ filter }\">\n <p>{{ filter.label }}</p>\n </template>\n </Filters>\n </BaseTogglePanel>\n</template>\n\n<script setup>\nimport { BaseTogglePanel } from '@empathyco/x-components'\nimport { CollapseFromTop } from '@empathyco/x-components/animations'\nconst animation = CollapseFromTop\nconst filters = [{ label: 'Color' }, { label: 'Size' }, { label: 'Brand' }]\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAaA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE;AACL;;;;;AAKE;AACF,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACF,KAAA;AACF,CAAA,CAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import _sfc_main from './base-result-add-to-cart2.vue.js';
1
+ import _sfc_main from './base-result-add-to-cart.vue2.js';
2
2
  import { resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
 
@@ -52,4 +52,4 @@ var _sfc_main = defineComponent({
52
52
  });
53
53
 
54
54
  export { _sfc_main as default };
55
- //# sourceMappingURL=base-result-add-to-cart2.vue.js.map
55
+ //# sourceMappingURL=base-result-add-to-cart.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-result-add-to-cart2.vue.js","sources":["../../../../src/components/result/base-result-add-to-cart.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n :metadata=\"metadata\"\n class=\"x-result-add-to-cart xds:button\"\n data-test=\"result-add-to-cart\"\n >\n <!-- @slot (Required) Button content with a text, an icon or both -->\n <slot />\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { Result } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport type { PropsWithType } from '../../utils/index'\nimport type { XEventsTypes } from '../../wiring/events.types'\nimport type { WireMetadata } from '../../wiring/index'\nimport { computed, defineComponent, inject } from 'vue'\nimport BaseEventButton from '../base-event-button.vue'\n\n/**\n * Renders a button with a default slot. It receives the result with the data and emits\n * {@link XEventsTypes.UserClickedResultAddToCart} to the bus on click mouse event.\n *\n * @public\n */\nexport default defineComponent({\n components: { BaseEventButton },\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true,\n },\n },\n setup(props) {\n /**\n * The list of additional events to be emitted by the component when user clicks the add2cart button.\n *\n * @internal\n */\n const resultAddToCartExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultAddToCartExtraEvents',\n [],\n )\n\n /**\n * The metadata to be injected in the events emitted by the component.\n */\n const metadata = inject<Omit<WireMetadata, 'moduleName' | 'origin' | 'location'>>(\n 'resultAddToCartExtraEventsMetadata',\n {},\n )\n\n /**\n * The events to be emitted by the button.\n *\n * @returns Events {@link XEventsTypes} to emit.\n *\n * @public\n */\n const events = computed(() => {\n return resultAddToCartExtraEvents.reduce(\n (acc, event) => {\n acc[event] = props.result\n return acc\n },\n { UserClickedResultAddToCart: props.result } as Partial<XEventsTypes>,\n )\n })\n\n return {\n events,\n metadata,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedResultAddToCart`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the result data.\n\n## Examples\n\nRenders a button with a default slot. It receives the result with the data and emits an event\n`UserClickedResultAddToCart` to the bus on click mouse event.\n\n### Basic example\n\nThis component is a button to emit `UserClickedResultAddToCart` when clicked by the user.\n\n```vue\n<template>\n <BaseResultAddToCart :result=\"result\">\n <img src=\"./add-to-cart.svg\" alt=\"Add to cart\" />\n <span>Add to cart</span>\n </BaseResultAddToCart>\n</template>\n\n<script setup>\nimport { BaseResultAddToCart } from '@empathyco/x-components'\nconst result = {\n id: '123',\n name: 'Product name',\n price: 19.99,\n // ...other result properties\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAqBA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;;;AAIE;QACF,MAAM,6BAA6B,MAAM,CACvC,4BAA4B,EAC5B,EAAE,CACJ;AAEA;;AAEE;QACF,MAAM,QAAO,GAAI,MAAM,CACrB,oCAAoC,EACpC,EAAE,CACJ;AAEA;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CAAC,MAAI;YAC1B,OAAO,0BAA0B,CAAC,MAAM,CACtC,CAAC,GAAG,EAAE,KAAK,KAAG;AACZ,gBAAA,GAAG,CAAC,KAAK,CAAA,GAAI,KAAK,CAAC,MAAK;AACxB,gBAAA,OAAO,GAAE;YACX,CAAC,EACD,EAAE,0BAA0B,EAAE,KAAK,CAAC,MAAK,EAA4B,CACvE;AACF,QAAA,CAAC,CAAA;QAED,OAAO;YACL,MAAM;YACN,QAAQ;SACV;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-result-add-to-cart.vue2.js","sources":["../../../../src/components/result/base-result-add-to-cart.vue"],"sourcesContent":["<template>\n <BaseEventButton\n :events=\"events\"\n :metadata=\"metadata\"\n class=\"x-result-add-to-cart xds:button\"\n data-test=\"result-add-to-cart\"\n >\n <!-- @slot (Required) Button content with a text, an icon or both -->\n <slot />\n </BaseEventButton>\n</template>\n\n<script lang=\"ts\">\nimport type { Result } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport type { PropsWithType } from '../../utils/index'\nimport type { XEventsTypes } from '../../wiring/events.types'\nimport type { WireMetadata } from '../../wiring/index'\nimport { computed, defineComponent, inject } from 'vue'\nimport BaseEventButton from '../base-event-button.vue'\n\n/**\n * Renders a button with a default slot. It receives the result with the data and emits\n * {@link XEventsTypes.UserClickedResultAddToCart} to the bus on click mouse event.\n *\n * @public\n */\nexport default defineComponent({\n components: { BaseEventButton },\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true,\n },\n },\n setup(props) {\n /**\n * The list of additional events to be emitted by the component when user clicks the add2cart button.\n *\n * @internal\n */\n const resultAddToCartExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultAddToCartExtraEvents',\n [],\n )\n\n /**\n * The metadata to be injected in the events emitted by the component.\n */\n const metadata = inject<Omit<WireMetadata, 'moduleName' | 'origin' | 'location'>>(\n 'resultAddToCartExtraEventsMetadata',\n {},\n )\n\n /**\n * The events to be emitted by the button.\n *\n * @returns Events {@link XEventsTypes} to emit.\n *\n * @public\n */\n const events = computed(() => {\n return resultAddToCartExtraEvents.reduce(\n (acc, event) => {\n acc[event] = props.result\n return acc\n },\n { UserClickedResultAddToCart: props.result } as Partial<XEventsTypes>,\n )\n })\n\n return {\n events,\n metadata,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedResultAddToCart`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the result data.\n\n## Examples\n\nRenders a button with a default slot. It receives the result with the data and emits an event\n`UserClickedResultAddToCart` to the bus on click mouse event.\n\n### Basic example\n\nThis component is a button to emit `UserClickedResultAddToCart` when clicked by the user.\n\n```vue\n<template>\n <BaseResultAddToCart :result=\"result\">\n <img src=\"./add-to-cart.svg\" alt=\"Add to cart\" />\n <span>Add to cart</span>\n </BaseResultAddToCart>\n</template>\n\n<script setup>\nimport { BaseResultAddToCart } from '@empathyco/x-components'\nconst result = {\n id: '123',\n name: 'Product name',\n price: 19.99,\n // ...other result properties\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAqBA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,eAAc,EAAG;AAC/B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;;;AAIE;QACF,MAAM,6BAA6B,MAAM,CACvC,4BAA4B,EAC5B,EAAE,CACJ;AAEA;;AAEE;QACF,MAAM,QAAO,GAAI,MAAM,CACrB,oCAAoC,EACpC,EAAE,CACJ;AAEA;;;;;;AAME;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CAAC,MAAI;YAC1B,OAAO,0BAA0B,CAAC,MAAM,CACtC,CAAC,GAAG,EAAE,KAAK,KAAG;AACZ,gBAAA,GAAG,CAAC,KAAK,CAAA,GAAI,KAAK,CAAC,MAAK;AACxB,gBAAA,OAAO,GAAE;YACX,CAAC,EACD,EAAE,0BAA0B,EAAE,KAAK,CAAC,MAAK,EAA4B,CACvE;AACF,QAAA,CAAC,CAAA;QAED,OAAO;YACL,MAAM;YACN,QAAQ;SACV;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import _sfc_main from './base-result-current-price2.vue.js';
1
+ import _sfc_main from './base-result-current-price.vue2.js';
2
2
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, createCommentVNode } from 'vue';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
 
@@ -54,4 +54,4 @@ var _sfc_main = defineComponent({
54
54
  });
55
55
 
56
56
  export { _sfc_main as default };
57
- //# sourceMappingURL=base-result-current-price2.vue.js.map
57
+ //# sourceMappingURL=base-result-current-price.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-result-current-price2.vue.js","sources":["../../../../src/components/result/base-result-current-price.vue"],"sourcesContent":["<template>\n <div :class=\"dynamicClasses\" class=\"x-result-current-price\" data-test=\"result-current-price\">\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency\n v-if=\"result.price?.value\"\n :value=\"result.price.value\"\n :currency=\"currency\"\n :format=\"format\"\n />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { Result } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport type { VueCSSClasses } from '../../utils/types'\nimport { computed, defineComponent } from 'vue'\nimport BaseCurrency from '../currency/base-currency.vue'\n\n/**\n * Component that renders the {@link @empathyco/x-types#Result} current price\n * that may or may not be on sale.\n *\n * @public\n */\nexport default defineComponent({\n components: { BaseCurrency },\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true,\n },\n /**\n * Optional value coming from https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes.\n *\n * @public\n */\n currency: String,\n /**\n * The currency format possibilities from Intl.NumberFormatOptions.\n * Allows customization of decimal places, grouping, etc.\n *\n * @public\n */\n format: {\n type: Object as PropType<Omit<Intl.NumberFormatOptions, 'currency' | 'style'>>,\n default: () => ({}),\n },\n },\n setup(props) {\n /**\n * Dynamic CSS classes to add to the root element of this component.\n *\n * @returns A booleans dictionary where each key is the class name to add,\n * and the boolean value tells if it should be added or not.\n * @internal\n */\n const dynamicClasses = computed<VueCSSClasses>(() => ({\n 'x-result-current-price--on-sale': props.result.price?.hasDiscount ?? false,\n }))\n\n return {\n dynamicClasses,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nThis component shows the current price formatted. You can provide the `currency` and `format`\nproperties to customize the display.\n\n```vue\n<template>\n <BaseResultCurrentPrice :result=\"result\" currency=\"USD\" />\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.45, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n\n### Customizing format\n\nYou can customize the number formatting using the `format` prop with `Intl.NumberFormatOptions`:\n\n```vue\n<template>\n <BaseResultCurrentPrice\n :result=\"result\"\n currency=\"EUR\"\n :format=\"{ minimumFractionDigits: 2, maximumFractionDigits: 2 }\"\n />\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.456, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n\n### Overriding default slot\n\n```vue\n<template>\n <BaseResultCurrentPrice :result=\"result\">\n <span class=\"custom-base-result-current-price\">{{ result.price.value }}</span>\n </BaseResultCurrentPrice>\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.45, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAwBA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,YAAW,EAAG;AAC5B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,QAAQ,EAAE,MAAM;AAChB;;;;;AAKE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAAwE;AAC9E,YAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;;;;;AAME;AACF,QAAA,MAAM,cAAa,GAAI,QAAQ,CAAgB,OAAO;YACpD,iCAAiC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,WAAU,IAAK,KAAK;AAC5E,SAAA,CAAC,CAAA;QAEF,OAAO;YACL,cAAc;SAChB;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"base-result-current-price.vue2.js","sources":["../../../../src/components/result/base-result-current-price.vue"],"sourcesContent":["<template>\n <div :class=\"dynamicClasses\" class=\"x-result-current-price\" data-test=\"result-current-price\">\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency\n v-if=\"result.price?.value\"\n :value=\"result.price.value\"\n :currency=\"currency\"\n :format=\"format\"\n />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { Result } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport type { VueCSSClasses } from '../../utils/types'\nimport { computed, defineComponent } from 'vue'\nimport BaseCurrency from '../currency/base-currency.vue'\n\n/**\n * Component that renders the {@link @empathyco/x-types#Result} current price\n * that may or may not be on sale.\n *\n * @public\n */\nexport default defineComponent({\n components: { BaseCurrency },\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true,\n },\n /**\n * Optional value coming from https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes.\n *\n * @public\n */\n currency: String,\n /**\n * The currency format possibilities from Intl.NumberFormatOptions.\n * Allows customization of decimal places, grouping, etc.\n *\n * @public\n */\n format: {\n type: Object as PropType<Omit<Intl.NumberFormatOptions, 'currency' | 'style'>>,\n default: () => ({}),\n },\n },\n setup(props) {\n /**\n * Dynamic CSS classes to add to the root element of this component.\n *\n * @returns A booleans dictionary where each key is the class name to add,\n * and the boolean value tells if it should be added or not.\n * @internal\n */\n const dynamicClasses = computed<VueCSSClasses>(() => ({\n 'x-result-current-price--on-sale': props.result.price?.hasDiscount ?? false,\n }))\n\n return {\n dynamicClasses,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nThis component shows the current price formatted. You can provide the `currency` and `format`\nproperties to customize the display.\n\n```vue\n<template>\n <BaseResultCurrentPrice :result=\"result\" currency=\"USD\" />\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.45, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n\n### Customizing format\n\nYou can customize the number formatting using the `format` prop with `Intl.NumberFormatOptions`:\n\n```vue\n<template>\n <BaseResultCurrentPrice\n :result=\"result\"\n currency=\"EUR\"\n :format=\"{ minimumFractionDigits: 2, maximumFractionDigits: 2 }\"\n />\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.456, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n\n### Overriding default slot\n\n```vue\n<template>\n <BaseResultCurrentPrice :result=\"result\">\n <span class=\"custom-base-result-current-price\">{{ result.price.value }}</span>\n </BaseResultCurrentPrice>\n</template>\n\n<script setup>\nimport { BaseResultCurrentPrice } from '@empathyco/x-components'\nconst result = {\n price: { value: 123.45, hasDiscount: false },\n // ...other result properties\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AAwBA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,YAAW,EAAG;AAC5B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,QAAQ,EAAE,MAAM;AAChB;;;;;AAKE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAAwE;AAC9E,YAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;;;;;AAME;AACF,QAAA,MAAM,cAAa,GAAI,QAAQ,CAAgB,OAAO;YACpD,iCAAiC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,WAAU,IAAK,KAAK;AAC5E,SAAA,CAAC,CAAA;QAEF,OAAO;YACL,cAAc;SAChB;IACF,CAAC;AACF,CAAA,CAAA;;;;"}
@@ -1,6 +1,6 @@
1
- import _sfc_main from './base-result-image2.vue.js';
1
+ import _sfc_main from './base-result-image.vue2.js';
2
2
  import { openBlock, createElementBlock, normalizeStyle, createCommentVNode, createBlock, resolveDynamicComponent, withCtx, renderSlot } from 'vue';
3
- import './base-result-image3.vue.js';
3
+ import './base-result-image.vue3.js';
4
4
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
5
5
 
6
6
  const _hoisted_1 = ["src"];