@empathyco/x-components 6.0.0-alpha.219 → 6.0.0-alpha.220

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 (157) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/docs/API-reference/components/ai/x-components.ai-overview.md +4 -4
  3. package/docs/API-reference/components/common/animations/x-components.animate-width.md +4 -4
  4. package/docs/API-reference/components/common/animations/x-components.change-height.md +10 -6
  5. package/docs/API-reference/components/common/animations/x-components.collapse-height.md +15 -11
  6. package/docs/API-reference/components/common/animations/x-components.collapse-width.md +12 -10
  7. package/docs/API-reference/components/common/animations/x-components.cross-fade.md +9 -9
  8. package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +6 -6
  9. package/docs/API-reference/components/common/animations/x-components.fade.md +9 -9
  10. package/docs/API-reference/components/common/animations/x-components.no-animation.md +2 -2
  11. package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +5 -5
  12. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +13 -9
  13. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +18 -18
  14. package/docs/API-reference/components/common/currency/x-components.base-currency.md +15 -15
  15. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +6 -2
  16. package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +26 -26
  17. package/docs/API-reference/components/common/layouts/x-components.fixed-header-and-asides-layout.md +1 -1
  18. package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +1 -1
  19. package/docs/API-reference/components/common/layouts/x-components.single-column-layout.md +1 -1
  20. package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +5 -3
  21. package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +2 -2
  22. package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +28 -10
  23. package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +2 -2
  24. package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +2 -2
  25. package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +10 -2
  26. package/docs/API-reference/components/common/modals/x-components.base-modal.md +12 -12
  27. package/docs/API-reference/components/common/modals/x-components.close-main-modal.md +5 -1
  28. package/docs/API-reference/components/common/modals/x-components.main-modal.md +20 -4
  29. package/docs/API-reference/components/common/modals/x-components.open-main-modal.md +5 -1
  30. package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +17 -13
  31. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +11 -4
  32. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +20 -13
  33. package/docs/API-reference/components/common/panels/x-components.base-tabs-panel.md +13 -10
  34. package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +4 -4
  35. package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +4 -4
  36. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +7 -5
  37. package/docs/API-reference/components/common/result/x-components.base-result-image.md +25 -19
  38. package/docs/API-reference/components/common/result/x-components.base-result-link.md +5 -5
  39. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +7 -5
  40. package/docs/API-reference/components/common/result/x-components.base-result-rating.md +26 -23
  41. package/docs/API-reference/components/common/result/x-components.result-variant-selector.md +62 -42
  42. package/docs/API-reference/components/common/result/x-components.result-variants-provider.md +35 -25
  43. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +11 -11
  44. package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +24 -24
  45. package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +47 -44
  46. package/docs/API-reference/components/common/x-components.auto-progress-bar.md +8 -5
  47. package/docs/API-reference/components/common/x-components.base-dropdown.md +7 -5
  48. package/docs/API-reference/components/common/x-components.base-event-button.md +9 -7
  49. package/docs/API-reference/components/common/x-components.base-grid.md +23 -23
  50. package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +6 -6
  51. package/docs/API-reference/components/common/x-components.base-rating.md +3 -3
  52. package/docs/API-reference/components/common/x-components.base-slider.md +20 -16
  53. package/docs/API-reference/components/common/x-components.base-switch.md +6 -6
  54. package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +37 -28
  55. package/docs/API-reference/components/common/x-components.display-click-provider.md +9 -9
  56. package/docs/API-reference/components/common/x-components.display-emitter.md +1 -1
  57. package/docs/API-reference/components/common/x-components.global-x-bus.md +3 -3
  58. package/docs/API-reference/components/common/x-components.highlight.md +6 -6
  59. package/docs/API-reference/components/common/x-components.location-provider.md +4 -4
  60. package/docs/API-reference/components/common/x-components.page-loader-button.md +14 -14
  61. package/docs/API-reference/components/common/x-components.page-selector.md +12 -12
  62. package/docs/API-reference/components/common/x-components.sliding-panel.md +23 -20
  63. package/docs/API-reference/components/common/x-components.snippet-callbacks.md +3 -3
  64. package/docs/API-reference/components/device/x-components.device-detector.md +15 -15
  65. package/docs/API-reference/components/empathize/x-components.empathize.md +20 -20
  66. package/docs/API-reference/components/experience-controls/x-components.experience-controls.md +1 -1
  67. package/docs/API-reference/components/extra-params/x-components.extra-params.md +3 -3
  68. package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +9 -5
  69. package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +8 -8
  70. package/docs/API-reference/components/facets/x-components.clear-filters.md +10 -6
  71. package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +16 -16
  72. package/docs/API-reference/components/facets/x-components.facets/facets.md +15 -9
  73. package/docs/API-reference/components/facets/x-components.filters/all-filter.md +20 -6
  74. package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +37 -30
  75. package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +33 -27
  76. package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +19 -16
  77. package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +17 -15
  78. package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +38 -32
  79. package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +30 -30
  80. package/docs/API-reference/components/facets/x-components.lists/filters-list.md +15 -15
  81. package/docs/API-reference/components/facets/x-components.lists/filters-search.md +31 -22
  82. package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +8 -6
  83. package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +5 -5
  84. package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +35 -8
  85. package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +7 -2
  86. package/docs/API-reference/components/facets/x-components.preselected-filters.md +15 -9
  87. package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +8 -5
  88. package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +12 -9
  89. package/docs/API-reference/components/history-queries/x-components.history-queries.md +18 -15
  90. package/docs/API-reference/components/history-queries/x-components.history-query.md +21 -21
  91. package/docs/API-reference/components/history-queries/x-components.my-history.md +14 -11
  92. package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +5 -5
  93. package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +3 -3
  94. package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +7 -7
  95. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +20 -15
  96. package/docs/API-reference/components/next-queries/x-components.next-queries.md +17 -13
  97. package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +36 -25
  98. package/docs/API-reference/components/next-queries/x-components.next-query.md +14 -12
  99. package/docs/API-reference/components/popular-searches/x-components.popular-search.md +11 -11
  100. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +10 -7
  101. package/docs/API-reference/components/queries-preview/x-components.query-preview-button.md +6 -6
  102. package/docs/API-reference/components/queries-preview/x-components.query-preview-list.md +23 -21
  103. package/docs/API-reference/components/queries-preview/x-components.query-preview.md +27 -16
  104. package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +20 -17
  105. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +16 -13
  106. package/docs/API-reference/components/recommendations/x-components.recommendations.md +23 -12
  107. package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +12 -12
  108. package/docs/API-reference/components/related-prompts/x-components.related-prompts-list.md +13 -13
  109. package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +8 -5
  110. package/docs/API-reference/components/related-tags/x-components.related-tag.md +16 -16
  111. package/docs/API-reference/components/related-tags/x-components.related-tags.md +19 -16
  112. package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +9 -5
  113. package/docs/API-reference/components/scroll/x-components.main-scroll.md +16 -8
  114. package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +1 -1
  115. package/docs/API-reference/components/scroll/x-components.scroll.md +27 -27
  116. package/docs/API-reference/components/search/x-components.banner.md +16 -16
  117. package/docs/API-reference/components/search/x-components.banners-list.md +13 -13
  118. package/docs/API-reference/components/search/x-components.fallback-disclaimer.md +4 -4
  119. package/docs/API-reference/components/search/x-components.partial-query-button.md +6 -6
  120. package/docs/API-reference/components/search/x-components.partial-results-list.md +11 -7
  121. package/docs/API-reference/components/search/x-components.promoted.md +16 -16
  122. package/docs/API-reference/components/search/x-components.promoteds-list.md +13 -13
  123. package/docs/API-reference/components/search/x-components.redirection.md +2 -2
  124. package/docs/API-reference/components/search/x-components.results-list.md +17 -13
  125. package/docs/API-reference/components/search/x-components.sort-dropdown.md +13 -9
  126. package/docs/API-reference/components/search/x-components.sort-list.md +7 -7
  127. package/docs/API-reference/components/search/x-components.sort-picker-list.md +10 -10
  128. package/docs/API-reference/components/search/x-components.spellcheck-button.md +2 -2
  129. package/docs/API-reference/components/search/x-components.spellcheck.md +5 -3
  130. package/docs/API-reference/components/search-box/x-components.clear-search-input.md +15 -7
  131. package/docs/API-reference/components/search-box/x-components.search-button.md +11 -11
  132. package/docs/API-reference/components/search-box/x-components.search-input-placeholder.md +22 -16
  133. package/docs/API-reference/components/search-box/x-components.search-input.md +19 -10
  134. package/docs/API-reference/components/semantic-queries/x-components.semantic-queries.md +17 -11
  135. package/docs/API-reference/components/semantic-queries/x-components.semantic-query.md +12 -9
  136. package/docs/API-reference/components/tagging/x-components.tagging.md +8 -4
  137. package/docs/API-reference/components/url/x-components.url-handler.md +2 -2
  138. package/js/store/utils/store-emitters.utils.js.map +1 -1
  139. package/js/x-bus/x-bus.js.map +1 -1
  140. package/js/x-bus/x-priority-queue/x-priority-queue.js.map +1 -1
  141. package/js/x-modules/facets/entities/types.js.map +1 -1
  142. package/package.json +6 -6
  143. package/types/store/utils/store-emitters.utils.d.ts.map +1 -1
  144. package/types/wiring/events.types.d.ts.map +1 -1
  145. package/types/x-bus/x-bus.d.ts.map +1 -1
  146. package/types/x-bus/x-priority-queue/x-priority-queue.d.ts.map +1 -1
  147. package/types/x-modules/facets/entities/types.d.ts.map +1 -1
  148. package/types/x-modules/facets/store/types.d.ts.map +1 -1
  149. package/types/x-modules/history-queries/store/types.d.ts.map +1 -1
  150. package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
  151. package/types/x-modules/next-queries/store/types.d.ts.map +1 -1
  152. package/types/x-modules/popular-searches/store/types.d.ts.map +1 -1
  153. package/types/x-modules/query-suggestions/store/types.d.ts.map +1 -1
  154. package/types/x-modules/recommendations/store/types.d.ts.map +1 -1
  155. package/types/x-modules/related-tags/store/types.d.ts.map +1 -1
  156. package/types/x-modules/search/store/types.d.ts.map +1 -1
  157. package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
@@ -32,17 +32,17 @@ when clicking the content, the CSS classes and if the content should be deactiva
32
32
  </template>
33
33
 
34
34
  <script setup>
35
- import { RenderlessFilter } from '@empathyco/x-components/facets'
36
- import { ref } from 'vue'
35
+ import { RenderlessFilter } from "@empathyco/x-components/facets";
36
+ import { ref } from "vue";
37
37
 
38
38
  const filter = ref({
39
- id: 'color:red',
40
- modelName: 'SimpleFilter',
41
- label: 'Red',
42
- facetId: 'color',
39
+ id: "color:red",
40
+ modelName: "SimpleFilter",
41
+ label: "Red",
42
+ facetId: "color",
43
43
  selected: false,
44
44
  totalResults: 10,
45
- })
45
+ });
46
46
  </script>
47
47
  ```
48
48
 
@@ -62,17 +62,19 @@ const filter = ref({
62
62
  </template>
63
63
 
64
64
  <script setup>
65
- import { RenderlessFilter } from '@empathyco/x-components/facets'
66
- import { ref, computed } from 'vue'
65
+ import { RenderlessFilter } from "@empathyco/x-components/facets";
66
+ import { ref, computed } from "vue";
67
67
 
68
68
  const filter = ref({
69
- id: 'color:red',
70
- modelName: 'SimpleFilter',
71
- label: 'Red',
72
- facetId: 'color',
69
+ id: "color:red",
70
+ modelName: "SimpleFilter",
71
+ label: "Red",
72
+ facetId: "color",
73
73
  selected: false,
74
74
  totalResults: 10,
75
- })
76
- const clickEvents = computed(() => ({ UserClickedAHierarchicalFilter: filter.value }))
75
+ });
76
+ const clickEvents = computed(() => ({
77
+ UserClickedAHierarchicalFilter: filter.value,
78
+ }));
77
79
  </script>
78
80
  ```
@@ -47,17 +47,17 @@ to emit on click.
47
47
  </template>
48
48
 
49
49
  <script setup>
50
- import { SimpleFilter } from '@empathyco/x-components/facets'
51
- import { ref } from 'vue'
50
+ import { SimpleFilter } from "@empathyco/x-components/facets";
51
+ import { ref } from "vue";
52
52
 
53
53
  const filter = ref({
54
- modelName: 'SimpleFilter',
54
+ modelName: "SimpleFilter",
55
55
  selected: false,
56
- id: 'category:shirts',
57
- value: 'category:shirts',
58
- facetId: 'category',
56
+ id: "category:shirts",
57
+ value: "category:shirts",
58
+ facetId: "category",
59
59
  totalResults: 10,
60
- })
60
+ });
61
61
  </script>
62
62
  ```
63
63
 
@@ -67,21 +67,24 @@ Configuring the events to emit when the filter is clicked.
67
67
 
68
68
  ```vue
69
69
  <template>
70
- <SimpleFilter :clickEvents="{ UserClickedASimpleFilter: filter }" :filter="filter" />
70
+ <SimpleFilter
71
+ :clickEvents="{ UserClickedASimpleFilter: filter }"
72
+ :filter="filter"
73
+ />
71
74
  </template>
72
75
 
73
76
  <script setup>
74
- import { SimpleFilter } from '@empathyco/x-components/facets'
75
- import { ref } from 'vue'
77
+ import { SimpleFilter } from "@empathyco/x-components/facets";
78
+ import { ref } from "vue";
76
79
 
77
80
  const filter = ref({
78
- modelName: 'SimpleFilter',
81
+ modelName: "SimpleFilter",
79
82
  selected: false,
80
- id: 'category:shirts',
81
- value: 'category:shirts',
82
- facetId: 'category',
83
+ id: "category:shirts",
84
+ value: "category:shirts",
85
+ facetId: "category",
83
86
  totalResults: 10,
84
- })
87
+ });
85
88
  </script>
86
89
  ```
87
90
 
@@ -93,7 +96,10 @@ data and methods needed:
93
96
 
94
97
  ```vue
95
98
  <template>
96
- <SimpleFilter v-slot="{ filter, clickFilter, isDisabled, cssClasses }" :filter="filter">
99
+ <SimpleFilter
100
+ v-slot="{ filter, clickFilter, isDisabled, cssClasses }"
101
+ :filter="filter"
102
+ >
97
103
  <label :class="cssClasses">
98
104
  <input :checked="filter.selected" type="checkbox" @change="clickFilter" />
99
105
  {{ filter.label }}
@@ -102,18 +108,18 @@ data and methods needed:
102
108
  </template>
103
109
 
104
110
  <script setup>
105
- import { SimpleFilter } from '@empathyco/x-components/facets'
106
- import { ref } from 'vue'
111
+ import { SimpleFilter } from "@empathyco/x-components/facets";
112
+ import { ref } from "vue";
107
113
 
108
114
  const filter = ref({
109
- modelName: 'SimpleFilter',
115
+ modelName: "SimpleFilter",
110
116
  selected: false,
111
- id: 'category:shirts',
112
- value: 'category:shirts',
113
- facetId: 'category',
114
- label: 'Shirts',
117
+ id: "category:shirts",
118
+ value: "category:shirts",
119
+ facetId: "category",
120
+ label: "Shirts",
115
121
  totalResults: 10,
116
- })
122
+ });
117
123
  </script>
118
124
  ```
119
125
 
@@ -133,17 +139,17 @@ receive the filter data.
133
139
  </template>
134
140
 
135
141
  <script setup>
136
- import { SimpleFilter } from '@empathyco/x-components/facets'
137
- import { ref } from 'vue'
142
+ import { SimpleFilter } from "@empathyco/x-components/facets";
143
+ import { ref } from "vue";
138
144
 
139
145
  const filter = ref({
140
- modelName: 'SimpleFilter',
146
+ modelName: "SimpleFilter",
141
147
  selected: false,
142
- id: 'category:shirts',
143
- value: 'category:shirts',
144
- facetId: 'category',
145
- label: 'Shirts',
148
+ id: "category:shirts",
149
+ value: "category:shirts",
150
+ facetId: "category",
151
+ label: "Shirts",
146
152
  totalResults: 10,
147
- })
153
+ });
148
154
  </script>
149
155
  ```
@@ -47,36 +47,36 @@ filters list to their children, it is mandatory to send it as prop.
47
47
  </template>
48
48
 
49
49
  <script setup>
50
- import { ExcludeFiltersWithNoResults } from '@empathyco/x-components/facets'
51
- import { ref } from 'vue'
50
+ import { ExcludeFiltersWithNoResults } from "@empathyco/x-components/facets";
51
+ import { ref } from "vue";
52
52
 
53
53
  const filters = ref([
54
54
  {
55
55
  // This is the only filter that will be removed.
56
- facetId: 'category',
57
- id: 'category:men',
58
- modelName: 'SimpleFilter',
56
+ facetId: "category",
57
+ id: "category:men",
58
+ modelName: "SimpleFilter",
59
59
  selected: false,
60
- label: 'Men',
60
+ label: "Men",
61
61
  totalResults: 0,
62
62
  },
63
63
  {
64
- facetId: 'category',
65
- id: 'category:women',
66
- modelName: 'SimpleFilter',
64
+ facetId: "category",
65
+ id: "category:women",
66
+ modelName: "SimpleFilter",
67
67
  selected: false,
68
- label: 'Women',
68
+ label: "Women",
69
69
  totalResults: 10,
70
70
  },
71
71
  {
72
- facetId: 'category',
73
- id: 'category:kids',
74
- modelName: 'SimpleFilter',
72
+ facetId: "category",
73
+ id: "category:kids",
74
+ modelName: "SimpleFilter",
75
75
  selected: false,
76
- label: 'Kids',
76
+ label: "Kids",
77
77
  totalResults: undefined,
78
78
  },
79
- ])
79
+ ]);
80
80
  </script>
81
81
  ```
82
82
 
@@ -102,35 +102,35 @@ import {
102
102
  FiltersSearch,
103
103
  Filters,
104
104
  SimpleFilter,
105
- } from '@empathyco/x-components/facets'
106
- import { ref } from 'vue'
105
+ } from "@empathyco/x-components/facets";
106
+ import { ref } from "vue";
107
107
 
108
108
  const filters = ref([
109
109
  {
110
110
  // This is the only filter that will be removed.
111
- facetId: 'category',
112
- id: 'category:men',
113
- modelName: 'SimpleFilter',
111
+ facetId: "category",
112
+ id: "category:men",
113
+ modelName: "SimpleFilter",
114
114
  selected: false,
115
- label: 'Men',
115
+ label: "Men",
116
116
  totalResults: 0,
117
117
  },
118
118
  {
119
- facetId: 'category',
120
- id: 'category:women',
121
- modelName: 'SimpleFilter',
119
+ facetId: "category",
120
+ id: "category:women",
121
+ modelName: "SimpleFilter",
122
122
  selected: false,
123
- label: 'Women',
123
+ label: "Women",
124
124
  totalResults: 10,
125
125
  },
126
126
  {
127
- facetId: 'category',
128
- id: 'category:kids',
129
- modelName: 'SimpleFilter',
127
+ facetId: "category",
128
+ id: "category:kids",
129
+ modelName: "SimpleFilter",
130
130
  selected: false,
131
- label: 'Kids',
131
+ label: "Kids",
132
132
  totalResults: undefined,
133
133
  },
134
- ])
134
+ ]);
135
135
  </script>
136
136
  ```
@@ -49,13 +49,13 @@ Using default slot:
49
49
  </template>
50
50
 
51
51
  <script setup>
52
- import { FiltersList } from '@empathyco/x-components/facets'
53
- import { ref } from 'vue'
52
+ import { FiltersList } from "@empathyco/x-components/facets";
53
+ import { ref } from "vue";
54
54
 
55
55
  const filters = ref([
56
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
57
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
58
- ])
56
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
57
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
58
+ ]);
59
59
  </script>
60
60
  ```
61
61
 
@@ -69,13 +69,13 @@ Using default slot abbreviated syntax:
69
69
  </template>
70
70
 
71
71
  <script setup>
72
- import { FiltersList } from '@empathyco/x-components/facets'
73
- import { ref } from 'vue'
72
+ import { FiltersList } from "@empathyco/x-components/facets";
73
+ import { ref } from "vue";
74
74
 
75
75
  const filters = ref([
76
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
77
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
78
- ])
76
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
77
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
78
+ ]);
79
79
  </script>
80
80
  ```
81
81
 
@@ -94,12 +94,12 @@ const filters = ref([
94
94
  </template>
95
95
 
96
96
  <script setup>
97
- import { SlicedFilters, FiltersList } from '@empathyco/x-components/facets'
98
- import { ref } from 'vue'
97
+ import { SlicedFilters, FiltersList } from "@empathyco/x-components/facets";
98
+ import { ref } from "vue";
99
99
 
100
100
  const filters = ref([
101
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
102
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
103
- ])
101
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
102
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
103
+ ]);
104
104
  </script>
105
105
  ```
@@ -52,13 +52,13 @@ Using default and required slot:
52
52
  </template>
53
53
 
54
54
  <script setup>
55
- import { FiltersSearch } from '@empathyco/x-components/facets'
56
- import { ref } from 'vue'
55
+ import { FiltersSearch } from "@empathyco/x-components/facets";
56
+ import { ref } from "vue";
57
57
 
58
58
  const filters = ref([
59
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
60
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
61
- ])
59
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
60
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
61
+ ]);
62
62
  </script>
63
63
  ```
64
64
 
@@ -66,7 +66,11 @@ Setting debounce time:
66
66
 
67
67
  ```vue
68
68
  <template>
69
- <FiltersSearch :filters="filters" :debounceInMs="500" v-slot="{ siftedFilters }">
69
+ <FiltersSearch
70
+ :filters="filters"
71
+ :debounceInMs="500"
72
+ v-slot="{ siftedFilters }"
73
+ >
70
74
  <ul v-for="filter in siftedFilters">
71
75
  <li :key="filter.id">{{ filter.label }}</li>
72
76
  </ul>
@@ -74,13 +78,13 @@ Setting debounce time:
74
78
  </template>
75
79
 
76
80
  <script setup>
77
- import { FiltersSearch } from '@empathyco/x-components/facets'
78
- import { ref } from 'vue'
81
+ import { FiltersSearch } from "@empathyco/x-components/facets";
82
+ import { ref } from "vue";
79
83
 
80
84
  const filters = ref([
81
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
82
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
83
- ])
85
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
86
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
87
+ ]);
84
88
  </script>
85
89
  ```
86
90
 
@@ -107,13 +111,13 @@ Replacing search triggering:
107
111
  </template>
108
112
 
109
113
  <script setup>
110
- import { FiltersSearch } from '@empathyco/x-components/facets'
111
- import { ref } from 'vue'
114
+ import { FiltersSearch } from "@empathyco/x-components/facets";
115
+ import { ref } from "vue";
112
116
 
113
117
  const filters = ref([
114
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
115
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
116
- ])
118
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
119
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
120
+ ]);
117
121
  </script>
118
122
  ```
119
123
 
@@ -136,15 +140,20 @@ const filters = ref([
136
140
  </template>
137
141
 
138
142
  <script setup>
139
- import { Facets } from '@empathyco/x-components/facets'
140
- import { SlicedFilters, FiltersSearch, Filters, SimpleFilter } from '@empathyco/x-components/facets'
141
- import { ref } from 'vue'
143
+ import { Facets } from "@empathyco/x-components/facets";
144
+ import {
145
+ SlicedFilters,
146
+ FiltersSearch,
147
+ Filters,
148
+ SimpleFilter,
149
+ } from "@empathyco/x-components/facets";
150
+ import { ref } from "vue";
142
151
 
143
152
  const facet = ref({
144
153
  filters: [
145
- { id: '1', label: 'Filter 1', modelName: 'SimpleFilter', selected: false },
146
- { id: '2', label: 'Filter 2', modelName: 'SimpleFilter', selected: false },
154
+ { id: "1", label: "Filter 1", modelName: "SimpleFilter", selected: false },
155
+ { id: "2", label: "Filter 2", modelName: "SimpleFilter", selected: false },
147
156
  ],
148
- })
157
+ });
149
158
  </script>
150
159
  ```
@@ -47,7 +47,7 @@ The property "alwaysVisible" handles if the component is rendered if no filters
47
47
  </template>
48
48
 
49
49
  <script setup>
50
- import { SelectedFiltersList } from '@empathyco/x-components/facets'
50
+ import { SelectedFiltersList } from "@empathyco/x-components/facets";
51
51
  </script>
52
52
  ```
53
53
 
@@ -55,11 +55,13 @@ import { SelectedFiltersList } from '@empathyco/x-components/facets'
55
55
 
56
56
  ```vue
57
57
  <template>
58
- <SelectedFiltersList #default="{ filter }">Default: {{ filter.label }}</SelectedFiltersList>
58
+ <SelectedFiltersList #default="{ filter }"
59
+ >Default: {{ filter.label }}</SelectedFiltersList
60
+ >
59
61
  </template>
60
62
 
61
63
  <script setup>
62
- import { SelectedFiltersList } from '@empathyco/x-components/facets'
64
+ import { SelectedFiltersList } from "@empathyco/x-components/facets";
63
65
  </script>
64
66
  ```
65
67
 
@@ -74,7 +76,7 @@ import { SelectedFiltersList } from '@empathyco/x-components/facets'
74
76
  </template>
75
77
 
76
78
  <script setup>
77
- import { SelectedFiltersList } from '@empathyco/x-components/facets'
79
+ import { SelectedFiltersList } from "@empathyco/x-components/facets";
78
80
  </script>
79
81
  ```
80
82
 
@@ -89,7 +91,7 @@ If "alwaysVisible" is false (default), the component is rendered if there are so
89
91
  </template>
90
92
 
91
93
  <script setup>
92
- import { SelectedFiltersList } from '@empathyco/x-components/facets'
94
+ import { SelectedFiltersList } from "@empathyco/x-components/facets";
93
95
  </script>
94
96
  ```
95
97
 
@@ -112,6 +114,6 @@ properties.
112
114
  </template>
113
115
 
114
116
  <script setup>
115
- import { SelectedFiltersList } from '@empathyco/x-components/facets'
117
+ import { SelectedFiltersList } from "@empathyco/x-components/facets";
116
118
  </script>
117
119
  ```
@@ -34,7 +34,7 @@ The default slot renders the length of the selected filters array.
34
34
  </template>
35
35
 
36
36
  <script setup>
37
- import { SelectedFilters } from '@empathyco/x-components/facets'
37
+ import { SelectedFilters } from "@empathyco/x-components/facets";
38
38
  </script>
39
39
  ```
40
40
 
@@ -49,7 +49,7 @@ If "alwaysVisible" is false (default), the component is rendered if there are so
49
49
  </template>
50
50
 
51
51
  <script setup>
52
- import { SelectedFilters } from '@empathyco/x-components/facets'
52
+ import { SelectedFilters } from "@empathyco/x-components/facets";
53
53
  </script>
54
54
  ```
55
55
 
@@ -73,7 +73,7 @@ In this example, renders a custom message using the default scoped slot.
73
73
  </template>
74
74
 
75
75
  <script setup>
76
- import { SelectedFilters } from '@empathyco/x-components/facets'
76
+ import { SelectedFilters } from "@empathyco/x-components/facets";
77
77
  </script>
78
78
  ```
79
79
 
@@ -91,7 +91,7 @@ In this example, the selected filters are filtered by the facetsIds property.
91
91
  </template>
92
92
 
93
93
  <script setup>
94
- import { SelectedFilters } from '@empathyco/x-components/facets'
94
+ import { SelectedFilters } from "@empathyco/x-components/facets";
95
95
  </script>
96
96
  ```
97
97
 
@@ -105,6 +105,6 @@ import { SelectedFilters } from '@empathyco/x-components/facets'
105
105
  </template>
106
106
 
107
107
  <script setup>
108
- import { SelectedFilters } from '@empathyco/x-components/facets'
108
+ import { SelectedFilters } from "@empathyco/x-components/facets";
109
109
  </script>
110
110
  ```
@@ -80,7 +80,12 @@ filters list to their children, it is mandatory to send it as prop.
80
80
  </template>
81
81
 
82
82
  <script setup>
83
- import { Facets, SlicedFilters, Filters, SimpleFilter } from '@empathyco/x-components'
83
+ import {
84
+ Facets,
85
+ SlicedFilters,
86
+ Filters,
87
+ SimpleFilter,
88
+ } from "@empathyco/x-components";
84
89
  </script>
85
90
  ```
86
91
 
@@ -96,14 +101,23 @@ import { Facets, SlicedFilters, Filters, SimpleFilter } from '@empathyco/x-compo
96
101
  <Filters v-slot="{ filter }">
97
102
  <SimpleFilter :filter="filter" />
98
103
  </Filters>
99
- <template #show-more="{ difference }">Show {{ difference }} more filters</template>
100
- <template #show-less="{ difference }">Show {{ difference }} less filters</template>
104
+ <template #show-more="{ difference }"
105
+ >Show {{ difference }} more filters</template
106
+ >
107
+ <template #show-less="{ difference }"
108
+ >Show {{ difference }} less filters</template
109
+ >
101
110
  </SlicedFilters>
102
111
  </Facets>
103
112
  </template>
104
113
 
105
114
  <script setup>
106
- import { Facets, SlicedFilters, Filters, SimpleFilter } from '@empathyco/x-components'
115
+ import {
116
+ Facets,
117
+ SlicedFilters,
118
+ Filters,
119
+ SimpleFilter,
120
+ } from "@empathyco/x-components";
107
121
  </script>
108
122
  ```
109
123
 
@@ -114,17 +128,30 @@ The `buttonClass` prop can be used to add classes to the show more/less buttons.
114
128
  ```vue
115
129
  <template>
116
130
  <Facets v-slot="{ facet }">
117
- <SlicedFilters :filters="facet.filters" :max="4" buttonClass="x-facet-filter-lg">
131
+ <SlicedFilters
132
+ :filters="facet.filters"
133
+ :max="4"
134
+ buttonClass="x-facet-filter-lg"
135
+ >
118
136
  <Filters v-slot="{ filter }">
119
137
  <SimpleFilter :filter="filter" />
120
138
  </Filters>
121
- <template #show-more="{ difference }">Show {{ difference }} more filters</template>
122
- <template #show-less="{ difference }">Show {{ difference }} less filters</template>
139
+ <template #show-more="{ difference }"
140
+ >Show {{ difference }} more filters</template
141
+ >
142
+ <template #show-less="{ difference }"
143
+ >Show {{ difference }} less filters</template
144
+ >
123
145
  </SlicedFilters>
124
146
  </Facets>
125
147
  </template>
126
148
 
127
149
  <script setup>
128
- import { Facets, SlicedFilters, Filters, SimpleFilter } from '@empathyco/x-components'
150
+ import {
151
+ Facets,
152
+ SlicedFilters,
153
+ Filters,
154
+ SimpleFilter,
155
+ } from "@empathyco/x-components";
129
156
  </script>
130
157
  ```
@@ -45,7 +45,12 @@ returns the result with XProvide.
45
45
  </template>
46
46
 
47
47
  <script setup>
48
- import { Facets, SortedFilters, Filters, SimpleFilter } from '@empathyco/x-components'
48
+ import {
49
+ Facets,
50
+ SortedFilters,
51
+ Filters,
52
+ SimpleFilter,
53
+ } from "@empathyco/x-components";
49
54
  </script>
50
55
  ```
51
56
 
@@ -71,6 +76,6 @@ import {
71
76
  SortedFilters,
72
77
  Filters,
73
78
  SimpleFilter,
74
- } from '@empathyco/x-components'
79
+ } from "@empathyco/x-components";
75
80
  </script>
76
81
  ```
@@ -31,12 +31,15 @@ _See how the event is triggered when the component is rendered._
31
31
  </template>
32
32
 
33
33
  <script setup>
34
- import { PreselectedFilters } from '@empathyco/x-components'
35
- import { provide } from 'vue'
36
-
37
- provide('snippetConfig', {
38
- filters: ['{!tag=brand_facet}brand_facet:"Lego"', '{!tag=age_facet}age_facet:"toddler"'],
39
- })
34
+ import { PreselectedFilters } from "@empathyco/x-components";
35
+ import { provide } from "vue";
36
+
37
+ provide("snippetConfig", {
38
+ filters: [
39
+ '{!tag=brand_facet}brand_facet:"Lego"',
40
+ '{!tag=age_facet}age_facet:"toddler"',
41
+ ],
42
+ });
40
43
  </script>
41
44
  ```
42
45
 
@@ -51,9 +54,12 @@ prop:
51
54
  </template>
52
55
 
53
56
  <script setup>
54
- import { PreselectedFilters } from '@empathyco/x-components'
55
- import { ref } from 'vue'
57
+ import { PreselectedFilters } from "@empathyco/x-components";
58
+ import { ref } from "vue";
56
59
 
57
- const filters = ref(['{!tag=brand_facet}brand_facet:"Lego"', '{!tag=age_facet}age_facet:"toddler"'])
60
+ const filters = ref([
61
+ '{!tag=brand_facet}brand_facet:"Lego"',
62
+ '{!tag=age_facet}age_facet:"toddler"',
63
+ ]);
58
64
  </script>
59
65
  ```