@empathyco/x-components 5.0.0-alpha.8 → 5.0.0-alpha.9

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 (137) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/core/index.js +0 -1
  3. package/core/index.js.map +1 -1
  4. package/design-system/deprecated-full-theme.css +110 -110
  5. package/docs/API-reference/api/x-components.bannerslist.md +23 -11
  6. package/docs/API-reference/api/x-components.basegrid.md +4 -1
  7. package/docs/API-reference/api/x-components.itemslist.md +35 -11
  8. package/docs/API-reference/api/x-components.md +5 -6
  9. package/docs/API-reference/api/x-components.nextquerieslist.md +57 -17
  10. package/docs/API-reference/api/x-components.promotedslist.md +19 -11
  11. package/docs/API-reference/api/x-components.resultslist.md +20 -24
  12. package/docs/API-reference/components/common/x-components.items-list.md +5 -4
  13. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +8 -8
  14. package/docs/API-reference/components/search/x-components.banners-list.md +3 -3
  15. package/docs/API-reference/components/search/x-components.promoteds-list.md +3 -3
  16. package/docs/API-reference/components/search/x-components.results-list.md +9 -3
  17. package/js/components/base-grid.vue.js +2 -2
  18. package/js/components/base-grid.vue.js.map +1 -1
  19. package/js/components/base-grid.vue2.js +16 -7
  20. package/js/components/base-grid.vue2.js.map +1 -1
  21. package/js/components/base-grid.vue3.js +1 -1
  22. package/js/components/items-list.vue.js.map +1 -1
  23. package/js/components/items-list.vue2.js +52 -31
  24. package/js/components/items-list.vue2.js.map +1 -1
  25. package/js/components/location-provider.vue.js.map +1 -1
  26. package/js/components/location-provider.vue2.js +0 -10
  27. package/js/components/location-provider.vue2.js.map +1 -1
  28. package/js/index.js +0 -1
  29. package/js/index.js.map +1 -1
  30. package/js/x-modules/extra-params/components/extra-params.vue2.js +0 -1
  31. package/js/x-modules/extra-params/components/extra-params.vue2.js.map +1 -1
  32. package/js/x-modules/extra-params/components/renderless-extra-param.vue2.js +0 -1
  33. package/js/x-modules/extra-params/components/renderless-extra-param.vue2.js.map +1 -1
  34. package/js/x-modules/facets/components/clear-filters.vue2.js +0 -1
  35. package/js/x-modules/facets/components/clear-filters.vue2.js.map +1 -1
  36. package/js/x-modules/facets/components/facets/facets-provider.vue2.js +0 -1
  37. package/js/x-modules/facets/components/facets/facets-provider.vue2.js.map +1 -1
  38. package/js/x-modules/facets/components/filters/all-filter.vue2.js +0 -1
  39. package/js/x-modules/facets/components/filters/all-filter.vue2.js.map +1 -1
  40. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js +0 -1
  41. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js.map +1 -1
  42. package/js/x-modules/facets/components/filters/number-range-filter.vue2.js +0 -1
  43. package/js/x-modules/facets/components/filters/number-range-filter.vue2.js.map +1 -1
  44. package/js/x-modules/facets/components/filters/renderless-filter.vue2.js +0 -1
  45. package/js/x-modules/facets/components/filters/renderless-filter.vue2.js.map +1 -1
  46. package/js/x-modules/facets/components/filters/simple-filter.vue2.js +0 -1
  47. package/js/x-modules/facets/components/filters/simple-filter.vue2.js.map +1 -1
  48. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue2.js +0 -1
  49. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue2.js.map +1 -1
  50. package/js/x-modules/facets/components/lists/filters-list.vue2.js +0 -1
  51. package/js/x-modules/facets/components/lists/filters-list.vue2.js.map +1 -1
  52. package/js/x-modules/facets/components/lists/filters-search.vue2.js +0 -1
  53. package/js/x-modules/facets/components/lists/filters-search.vue2.js.map +1 -1
  54. package/js/x-modules/facets/components/lists/selected-filters.vue2.js +0 -1
  55. package/js/x-modules/facets/components/lists/selected-filters.vue2.js.map +1 -1
  56. package/js/x-modules/facets/components/lists/sliced-filters.vue2.js +0 -1
  57. package/js/x-modules/facets/components/lists/sliced-filters.vue2.js.map +1 -1
  58. package/js/x-modules/facets/components/lists/sorted-filters.vue2.js +0 -1
  59. package/js/x-modules/facets/components/lists/sorted-filters.vue2.js.map +1 -1
  60. package/js/x-modules/next-queries/components/next-queries-list.vue.js +35 -33
  61. package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
  62. package/js/x-modules/next-queries/components/next-queries-list.vue2.js +161 -106
  63. package/js/x-modules/next-queries/components/next-queries-list.vue2.js.map +1 -1
  64. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +0 -1
  65. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
  66. package/js/x-modules/scroll/components/scroll-to-top.vue2.js +0 -1
  67. package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
  68. package/js/x-modules/scroll/components/window-scroll.vue2.js +0 -1
  69. package/js/x-modules/scroll/components/window-scroll.vue2.js.map +1 -1
  70. package/js/x-modules/search/components/banners-list.vue.js +35 -33
  71. package/js/x-modules/search/components/banners-list.vue.js.map +1 -1
  72. package/js/x-modules/search/components/banners-list.vue2.js +109 -81
  73. package/js/x-modules/search/components/banners-list.vue2.js.map +1 -1
  74. package/js/x-modules/search/components/fallback-disclaimer.vue2.js +0 -1
  75. package/js/x-modules/search/components/fallback-disclaimer.vue2.js.map +1 -1
  76. package/js/x-modules/search/components/promoteds-list.vue.js +35 -33
  77. package/js/x-modules/search/components/promoteds-list.vue.js.map +1 -1
  78. package/js/x-modules/search/components/promoteds-list.vue2.js +79 -50
  79. package/js/x-modules/search/components/promoteds-list.vue2.js.map +1 -1
  80. package/js/x-modules/search/components/results-list.vue.js +35 -33
  81. package/js/x-modules/search/components/results-list.vue.js.map +1 -1
  82. package/js/x-modules/search/components/results-list.vue2.js +111 -75
  83. package/js/x-modules/search/components/results-list.vue2.js.map +1 -1
  84. package/js/x-modules/search/components/spellcheck.vue2.js +0 -1
  85. package/js/x-modules/search/components/spellcheck.vue2.js.map +1 -1
  86. package/js/x-modules/search-box/components/search-input-placeholder.vue2.js +0 -1
  87. package/js/x-modules/search-box/components/search-input-placeholder.vue2.js.map +1 -1
  88. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js +0 -1
  89. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js.map +1 -1
  90. package/js/x-modules/semantic-queries/components/semantic-query.vue2.js +0 -1
  91. package/js/x-modules/semantic-queries/components/semantic-query.vue2.js.map +1 -1
  92. package/js/x-modules/url/components/url-handler.vue2.js +0 -1
  93. package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
  94. package/package.json +2 -2
  95. package/report/x-components.api.json +5520 -3617
  96. package/report/x-components.api.md +153 -76
  97. package/types/components/base-grid.vue.d.ts +4 -1
  98. package/types/components/base-grid.vue.d.ts.map +1 -1
  99. package/types/components/index.d.ts +0 -1
  100. package/types/components/index.d.ts.map +1 -1
  101. package/types/components/items-list.vue.d.ts +51 -13
  102. package/types/components/items-list.vue.d.ts.map +1 -1
  103. package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts +72 -40
  104. package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
  105. package/types/x-modules/search/components/banners-list.vue.d.ts +25 -42
  106. package/types/x-modules/search/components/banners-list.vue.d.ts.map +1 -1
  107. package/types/x-modules/search/components/promoteds-list.vue.d.ts +21 -19
  108. package/types/x-modules/search/components/promoteds-list.vue.d.ts.map +1 -1
  109. package/types/x-modules/search/components/results-list.vue.d.ts +22 -49
  110. package/types/x-modules/search/components/results-list.vue.d.ts.map +1 -1
  111. package/docs/API-reference/api/x-components.bannerslist.animation.md +0 -13
  112. package/docs/API-reference/api/x-components.bannerslist.stateitems.md +0 -13
  113. package/docs/API-reference/api/x-components.itemslist.animation.md +0 -13
  114. package/docs/API-reference/api/x-components.itemslist.items.md +0 -13
  115. package/docs/API-reference/api/x-components.itemslistinjectionmixin.md +0 -15
  116. package/docs/API-reference/api/x-components.nextquerieslist.animation.md +0 -13
  117. package/docs/API-reference/api/x-components.nextquerieslist.frequency.md +0 -13
  118. package/docs/API-reference/api/x-components.nextquerieslist.hasmoreitems.md +0 -13
  119. package/docs/API-reference/api/x-components.nextquerieslist.injectedquery.md +0 -13
  120. package/docs/API-reference/api/x-components.nextquerieslist.maxgroups.md +0 -13
  121. package/docs/API-reference/api/x-components.nextquerieslist.maxnextqueriespergroup.md +0 -13
  122. package/docs/API-reference/api/x-components.nextquerieslist.offset.md +0 -13
  123. package/docs/API-reference/api/x-components.nextquerieslist.showonlyafteroffset.md +0 -13
  124. package/docs/API-reference/api/x-components.promotedslist.animation.md +0 -13
  125. package/docs/API-reference/api/x-components.promotedslist.stateitems.md +0 -13
  126. package/docs/API-reference/api/x-components.resultslist.animation.md +0 -13
  127. package/docs/API-reference/api/x-components.resultslist.hasmoreitems.md +0 -13
  128. package/docs/API-reference/api/x-components.resultslist.items.md +0 -18
  129. package/docs/API-reference/api/x-components.resultslist.providedquery.md +0 -13
  130. package/docs/API-reference/api/x-components.resultslist.searchquery.md +0 -13
  131. package/docs/API-reference/api/x-components.resultslist.searchstatus.md +0 -13
  132. package/docs/API-reference/api/x-components.resultslist.totalresults.md +0 -13
  133. package/docs/API-reference/api/x-components.resultslist.updatequery.md +0 -24
  134. package/js/components/items-list-injection.mixin.js +0 -37
  135. package/js/components/items-list-injection.mixin.js.map +0 -1
  136. package/types/components/items-list-injection.mixin.d.ts +0 -35
  137. package/types/components/items-list-injection.mixin.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.0-alpha.9](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.8...@empathyco/x-components@5.0.0-alpha.9) (2024-05-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * migrate `ItemsListInjection` mixin (#1460) ([a89fb51](https://github.com/empathyco/x/commit/a89fb5179de040695f13d56f43de50917e1c7f97))
12
+
13
+
14
+
6
15
  ## [5.0.0-alpha.8](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.7...@empathyco/x-components@5.0.0-alpha.8) (2024-05-08)
7
16
 
8
17
 
package/core/index.js CHANGED
@@ -144,7 +144,6 @@ export { Debounce } from '../js/components/decorators/debounce.decorators.js';
144
144
  export { DISABLE_ANIMATIONS_KEY, HAS_MORE_ITEMS_KEY, LIST_ITEMS_KEY, QUERY_KEY, RESULT_WITH_VARIANTS_KEY, SELECTED_VARIANTS_KEY, SELECT_RESULT_VARIANT_KEY } from '../js/components/decorators/injection.consts.js';
145
145
  export { XInject, XProvide } from '../js/components/decorators/injection.decorators.js';
146
146
  export { Getter, State } from '../js/components/decorators/store.decorators.js';
147
- export { ItemsListInjectionMixin } from '../js/components/items-list-injection.mixin.js';
148
147
  export { xComponentMixin } from '../js/components/x-component.mixin.js';
149
148
  export { getRootXComponent, getXComponentXModuleName, isXComponent } from '../js/components/x-component.utils.js';
150
149
  export { createUseDevice } from '../js/composables/create-use-device.composable.js';
package/core/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  .x-uppercase {
3
4
  text-transform: uppercase;
4
5
  }
@@ -14,25 +15,6 @@
14
15
  .x-normal-case {
15
16
  text-transform: none;
16
17
  }
17
- .x-underline {
18
- -webkit-text-decoration-line: underline;
19
- text-decoration-line: underline;
20
- }
21
-
22
- .x-overline {
23
- -webkit-text-decoration-line: overline;
24
- text-decoration-line: overline;
25
- }
26
-
27
- .x-line-through {
28
- -webkit-text-decoration-line: line-through;
29
- text-decoration-line: line-through;
30
- }
31
-
32
- .x-no-underline {
33
- -webkit-text-decoration-line: none;
34
- text-decoration-line: none;
35
- }
36
18
  .x-static {
37
19
  position: static !important;
38
20
  }
@@ -52,7 +34,6 @@
52
34
  .x-sticky {
53
35
  position: sticky !important;
54
36
  }
55
-
56
37
  .x-padding--00 {
57
38
  padding: 0 !important;
58
39
  }
@@ -979,6 +960,25 @@
979
960
  .x-line-height--loose {
980
961
  line-height: 2 !important;
981
962
  }
963
+ .x-underline {
964
+ -webkit-text-decoration-line: underline;
965
+ text-decoration-line: underline;
966
+ }
967
+
968
+ .x-overline {
969
+ -webkit-text-decoration-line: overline;
970
+ text-decoration-line: overline;
971
+ }
972
+
973
+ .x-line-through {
974
+ -webkit-text-decoration-line: line-through;
975
+ text-decoration-line: line-through;
976
+ }
977
+
978
+ .x-no-underline {
979
+ -webkit-text-decoration-line: none;
980
+ text-decoration-line: none;
981
+ }
982
982
  .x-line-clamp--2 {
983
983
  overflow: hidden !important;
984
984
  display: -webkit-box !important;
@@ -3286,49 +3286,6 @@
3286
3286
  [dir="rtl"] .x-border-radius--bottom-right-20 {
3287
3287
  border-bottom-left-radius: var(--x-size-base-20) !important;
3288
3288
  }
3289
- .x-border-color--lead {
3290
- border-color: var(--x-color-base-lead) !important;
3291
- }
3292
-
3293
- .x-border-color--auxiliary {
3294
- border-color: var(--x-color-base-auxiliary) !important;
3295
- }
3296
-
3297
- .x-border-color--neutral-10 {
3298
- border-color: var(--x-color-base-neutral-10) !important;
3299
- }
3300
-
3301
- .x-border-color--neutral-35 {
3302
- border-color: var(--x-color-base-neutral-35) !important;
3303
- }
3304
-
3305
- .x-border-color--neutral-70 {
3306
- border-color: var(--x-color-base-neutral-70) !important;
3307
- }
3308
-
3309
- .x-border-color--neutral-95 {
3310
- border-color: var(--x-color-base-neutral-95) !important;
3311
- }
3312
-
3313
- .x-border-color--neutral-100 {
3314
- border-color: var(--x-color-base-neutral-100) !important;
3315
- }
3316
-
3317
- .x-border-color--accent {
3318
- border-color: var(--x-color-base-accent) !important;
3319
- }
3320
-
3321
- .x-border-color--enable {
3322
- border-color: var(--x-color-base-enable) !important;
3323
- }
3324
-
3325
- .x-border-color--disable {
3326
- border-color: var(--x-color-base-disable) !important;
3327
- }
3328
-
3329
- .x-border-color--transparent {
3330
- border-color: var(--x-color-base-transparent) !important;
3331
- }
3332
3289
  .x-background--lead {
3333
3290
  background-color: var(--x-color-base-lead) !important;
3334
3291
  }
@@ -3372,6 +3329,49 @@
3372
3329
  .x-background--transparent {
3373
3330
  background-color: var(--x-color-base-transparent) !important;
3374
3331
  }
3332
+ .x-border-color--lead {
3333
+ border-color: var(--x-color-base-lead) !important;
3334
+ }
3335
+
3336
+ .x-border-color--auxiliary {
3337
+ border-color: var(--x-color-base-auxiliary) !important;
3338
+ }
3339
+
3340
+ .x-border-color--neutral-10 {
3341
+ border-color: var(--x-color-base-neutral-10) !important;
3342
+ }
3343
+
3344
+ .x-border-color--neutral-35 {
3345
+ border-color: var(--x-color-base-neutral-35) !important;
3346
+ }
3347
+
3348
+ .x-border-color--neutral-70 {
3349
+ border-color: var(--x-color-base-neutral-70) !important;
3350
+ }
3351
+
3352
+ .x-border-color--neutral-95 {
3353
+ border-color: var(--x-color-base-neutral-95) !important;
3354
+ }
3355
+
3356
+ .x-border-color--neutral-100 {
3357
+ border-color: var(--x-color-base-neutral-100) !important;
3358
+ }
3359
+
3360
+ .x-border-color--accent {
3361
+ border-color: var(--x-color-base-accent) !important;
3362
+ }
3363
+
3364
+ .x-border-color--enable {
3365
+ border-color: var(--x-color-base-enable) !important;
3366
+ }
3367
+
3368
+ .x-border-color--disable {
3369
+ border-color: var(--x-color-base-disable) !important;
3370
+ }
3371
+
3372
+ .x-border-color--transparent {
3373
+ border-color: var(--x-color-base-transparent) !important;
3374
+ }
3375
3375
  .x-text--stroke.x-text {
3376
3376
  --x-string-text-decoration: line-through;
3377
3377
  }
@@ -3565,6 +3565,9 @@
3565
3565
  .x-text--bold.x-small {
3566
3566
  --x-number-font-weight-small: var(--x-number-font-weight-base-bold);
3567
3567
  }
3568
+ :root {
3569
+ --x-color-text-accent: var(--x-color-base-accent);
3570
+ }
3568
3571
  .x-text--accent {
3569
3572
  --x-color-text-default: var(--x-color-text-accent);
3570
3573
  }
@@ -3681,52 +3684,6 @@
3681
3684
  --x-number-font-weight-tag-default-selected
3682
3685
  );
3683
3686
  }
3684
- :root {
3685
- --x-color-background-tag-default: var(--x-color-base-neutral-100);
3686
- --x-color-border-tag-default: var(--x-color-text-tag-default);
3687
- --x-color-text-tag-default: var(--x-color-text-default);
3688
- --x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
3689
- --x-color-border-tag-default-selected: var(--x-color-border-tag-default);
3690
- --x-color-text-tag-default-selected: var(--x-color-text-tag-default);
3691
- --x-color-background-tag-default-curated: var(--x-color-background-tag-default);
3692
- --x-color-border-tag-default-curated: var(--x-color-border-tag-default);
3693
- --x-color-text-tag-default-curated: var(--x-color-text-tag-default);
3694
- --x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
3695
- --x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
3696
- --x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
3697
- --x-size-border-width-tag-default: var(--x-size-border-width-base);
3698
- --x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
3699
- --x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
3700
- --x-size-border-width-bottom-tag-default: var(--x-size-border-width-tag-default);
3701
- --x-size-border-width-left-tag-default: var(--x-size-border-width-tag-default);
3702
- --x-size-border-radius-tag-default: var(--x-size-border-radius-base-none);
3703
- --x-size-border-radius-top-left-tag-default: var(--x-size-border-radius-tag-default);
3704
- --x-size-border-radius-top-right-tag-default: var(--x-size-border-radius-tag-default);
3705
- --x-size-border-radius-bottom-right-tag-default: var(--x-size-border-radius-tag-default);
3706
- --x-size-border-radius-bottom-left-tag-default: var(--x-size-border-radius-tag-default);
3707
- --x-size-height-tag-default: var(--x-size-base-07);
3708
- --x-size-padding-right-tag-default: var(--x-size-base-04);
3709
- --x-size-padding-left-tag-default: var(--x-size-base-04);
3710
- --x-size-gap-tag-default: var(--x-size-base-02);
3711
- --x-font-family-tag-default: var(--x-font-family-text);
3712
- --x-size-font-tag-default: var(--x-size-font-text);
3713
- --x-size-line-height-tag-default: var(--x-size-line-height-text);
3714
- --x-number-font-weight-tag-default: var(--x-number-font-weight-text);
3715
- --x-font-family-tag-default-selected: var(--x-font-family-tag-default);
3716
- --x-size-font-tag-default-selected: var(--x-size-font-tag-default);
3717
- --x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
3718
- --x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
3719
- --x-font-family-tag-default-curated: var(--x-font-family-tag-default);
3720
- --x-size-font-tag-default-curated: var(--x-size-font-tag-default);
3721
- --x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
3722
- --x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
3723
- --x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
3724
- --x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
3725
- --x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
3726
- --x-number-font-weight-tag-default-curated-selected: var(
3727
- --x-number-font-weight-tag-default-selected
3728
- );
3729
- }
3730
3687
 
3731
3688
  [dir="ltr"] .x-tag {
3732
3689
  border-left-width: var(--x-size-border-width-left-tag-default);
@@ -8840,5 +8797,48 @@
8840
8797
  --x-size-border-width-base: 1px;
8841
8798
  }
8842
8799
  :root {
8843
- --x-color-text-accent: var(--x-color-base-accent);
8800
+ --x-color-background-tag-default: var(--x-color-base-neutral-100);
8801
+ --x-color-border-tag-default: var(--x-color-text-tag-default);
8802
+ --x-color-text-tag-default: var(--x-color-text-default);
8803
+ --x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
8804
+ --x-color-border-tag-default-selected: var(--x-color-border-tag-default);
8805
+ --x-color-text-tag-default-selected: var(--x-color-text-tag-default);
8806
+ --x-color-background-tag-default-curated: var(--x-color-background-tag-default);
8807
+ --x-color-border-tag-default-curated: var(--x-color-border-tag-default);
8808
+ --x-color-text-tag-default-curated: var(--x-color-text-tag-default);
8809
+ --x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
8810
+ --x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
8811
+ --x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
8812
+ --x-size-border-width-tag-default: var(--x-size-border-width-base);
8813
+ --x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
8814
+ --x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
8815
+ --x-size-border-width-bottom-tag-default: var(--x-size-border-width-tag-default);
8816
+ --x-size-border-width-left-tag-default: var(--x-size-border-width-tag-default);
8817
+ --x-size-border-radius-tag-default: var(--x-size-border-radius-base-none);
8818
+ --x-size-border-radius-top-left-tag-default: var(--x-size-border-radius-tag-default);
8819
+ --x-size-border-radius-top-right-tag-default: var(--x-size-border-radius-tag-default);
8820
+ --x-size-border-radius-bottom-right-tag-default: var(--x-size-border-radius-tag-default);
8821
+ --x-size-border-radius-bottom-left-tag-default: var(--x-size-border-radius-tag-default);
8822
+ --x-size-height-tag-default: var(--x-size-base-07);
8823
+ --x-size-padding-right-tag-default: var(--x-size-base-04);
8824
+ --x-size-padding-left-tag-default: var(--x-size-base-04);
8825
+ --x-size-gap-tag-default: var(--x-size-base-02);
8826
+ --x-font-family-tag-default: var(--x-font-family-text);
8827
+ --x-size-font-tag-default: var(--x-size-font-text);
8828
+ --x-size-line-height-tag-default: var(--x-size-line-height-text);
8829
+ --x-number-font-weight-tag-default: var(--x-number-font-weight-text);
8830
+ --x-font-family-tag-default-selected: var(--x-font-family-tag-default);
8831
+ --x-size-font-tag-default-selected: var(--x-size-font-tag-default);
8832
+ --x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
8833
+ --x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
8834
+ --x-font-family-tag-default-curated: var(--x-font-family-tag-default);
8835
+ --x-size-font-tag-default-curated: var(--x-size-font-tag-default);
8836
+ --x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
8837
+ --x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
8838
+ --x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
8839
+ --x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
8840
+ --x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
8841
+ --x-number-font-weight-tag-default-curated-selected: var(
8842
+ --x-number-font-weight-tag-default-selected
8843
+ );
8844
8844
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BannersList](./x-components.bannerslist.md)
4
4
 
5
- ## BannersList class
5
+ ## BannersList variable
6
6
 
7
7
  It renders a [ItemsList](./x-components.itemslist.md) list of banners from [SearchState.banners](./x-components.searchstate.banners.md) by default using the `ItemsInjectionMixin`<!-- -->.
8
8
 
@@ -13,14 +13,26 @@ It also provides the parent slots to customize the items.
13
13
  **Signature:**
14
14
 
15
15
  ```typescript
16
- export default class BannersList extends ItemsListInjectionMixin
16
+ _default: import("vue").DefineComponent<{
17
+ animation: {
18
+ type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
19
+ default: string;
20
+ };
21
+ }, {
22
+ items: ComputedRef<ListItem[]>;
23
+ slots: import("vue/types/v3-setup-context").Slots;
24
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
25
+ animation: {
26
+ type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
27
+ default: string;
28
+ };
29
+ }>>, {
30
+ animation: string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
31
+ props: {}; /**
32
+ * Animation component that will be used to animate the banners.
33
+ *
34
+ * @public
35
+ */
36
+ });
37
+ }>
17
38
  ```
18
- **Extends:** [ItemsListInjectionMixin](./x-components.itemslistinjectionmixin.md)
19
-
20
- ## Properties
21
-
22
- | Property | Modifiers | Type | Description |
23
- | --- | --- | --- | --- |
24
- | [animation](./x-components.bannerslist.animation.md) | <code>protected</code> | Vue \| string | Animation component that will be used to animate the banners. |
25
- | [stateItems](./x-components.bannerslist.stateitems.md) | | Banner\[\] | The banners to render from the state. |
26
-
@@ -25,7 +25,10 @@ _default: import("vue").DefineComponent<{
25
25
  gridItems: import("vue").ComputedRef<GridItem[]>;
26
26
  cssClasses: import("vue").ComputedRef<VueCSSClasses>;
27
27
  style: import("vue").ComputedRef<Partial<CSSStyleDeclaration>>;
28
- gridEl: Ref<HTMLElement | null>;
28
+ gridEl: Ref<HTMLElement | {
29
+ $el: HTMLElement;
30
+ } | null>;
31
+ slots: import("vue/types/v3-setup-context").Slots;
29
32
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
30
33
  animation: {
31
34
  type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
@@ -2,21 +2,45 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ItemsList](./x-components.itemslist.md)
4
4
 
5
- ## ItemsList class
5
+ ## ItemsList variable
6
6
 
7
7
  It renders a list of [ListItem](./x-components.listitem.md) providing a slot for each `slotName` which depends on the `modelName`<!-- -->of the item.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class ItemsList extends ItemsList_base
12
+ _default: import("vue").DefineComponent<{
13
+ animation: {
14
+ type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
15
+ default: string;
16
+ };
17
+ items: {
18
+ type: PropType<ListItem[]>;
19
+ required: true;
20
+ };
21
+ itemClass: {
22
+ type: StringConstructor;
23
+ };
24
+ }, {
25
+ computedItems: import("vue").ComputedRef<{
26
+ dataTest: string;
27
+ class: Array<string | undefined>;
28
+ }[]>;
29
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
30
+ animation: {
31
+ type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
32
+ default: string;
33
+ };
34
+ items: {
35
+ type: PropType<ListItem[]>;
36
+ required: true;
37
+ };
38
+ itemClass: {
39
+ type: StringConstructor;
40
+ };
41
+ }>>, {
42
+ animation: string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
43
+ props: {};
44
+ });
45
+ }>
13
46
  ```
14
- **Extends:** ItemsList\_base
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [animation](./x-components.itemslist.animation.md) | <code>protected</code> | Vue \| string | Animation component that will be used to animate the list. |
21
- | [items](./x-components.itemslist.items.md) | <code>protected</code> | [ListItem](./x-components.listitem.md)<!-- -->\[\] | List of items. |
22
-
@@ -13,7 +13,6 @@ X-Components is a library usable everywhere not only for search experiences.
13
13
  | [AddQueryToHistoryAction](./x-components.addquerytohistoryaction.md) | Class implementation for the [HistoryQueriesActions.addQueryToHistory()](./x-components.historyqueriesactions.addquerytohistory.md) action. |
14
14
  | [AllFilter](./x-components.allfilter.md) | This component receives a required <code>facet</code> with [BooleanFilter](./x-types.booleanfilter.md) as prop and renders a button, which on clicked emits the [FacetsXEvents.UserClickedAllFilter](./x-components.facetsxevents.userclickedallfilter.md) event. By default the rendered button displays a message with the facet label but this content is customizable through the default slot. |
15
15
  | [Banner](./x-components.banner.md) | <p>. A banner result is just an item that has been inserted into the search results to advertise something. Usually it is the first item in the grid or it can be placed in the middle of them and fill the whole row where appears. The banner may be clickable or non-clickable depending on whether it has an associated URL or not. It contains an image and, optionally, a title. In case the image does not load due to an error the banner will not be rendered.</p><p>Additionally, this component exposes the following props to modify the classes of the elements: <code>titleClass</code>.</p> |
16
- | [BannersList](./x-components.bannerslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) list of banners from [SearchState.banners](./x-components.searchstate.banners.md) by default using the <code>ItemsInjectionMixin</code>.</p><p>The component provides a default slot which wraps the whole component with the <code>banners</code> plus the <code>searchInjectedItems</code> which also contains the injected list items from the ancestor.</p><p>It also provides the parent slots to customize the items.</p> |
17
16
  | [BaseEventsModal](./x-components.baseeventsmodal.md) | Component containing a modal that emits a [XEventsTypes.UserClickedCloseEventsModal](./x-components.xeventstypes.userclickedcloseeventsmodal.md) when clicking outside the content rendered in the default slot and can receive, through the eventsToCloseModal prop, a list of [XEvent](./x-components.xevent.md) to listen to in order to close also the modal, eventsToOpenModal prop, another list of [XEvent](./x-components.xevent.md) to customize the events to listen to open the modal and a prop, displayOverlay, to display an overlay over the rest of the html. The default slot offers the possibility to customize the modal content. |
18
17
  | [BaseHeaderTogglePanel](./x-components.baseheadertogglepanel.md) | Toggle panel which uses the base toggle panel, adds a header and manage the open / close state of the panel. |
19
18
  | [BaseIdModal](./x-components.baseidmodal.md) | Component containing a modal expecting a required prop, named <code>modalId</code>. It reacts to <code>UserClickedOpenModal</code>, <code>UserClickedCloseModal</code> and <code>UserClickedOutOfModal</code> events, when their payload matches the component's 'modalId' prop, to handle its open/close state. The default slot offers the possibility to customise the modal content. |
@@ -58,12 +57,9 @@ X-Components is a library usable everywhere not only for search experiences.
58
57
  | [HistoryQuery](./x-components.historyquery.md) | This component renders a history query suggestion combining two buttons: one for selecting this suggestion as the search query, and another one to remove this query suggestion from the history queries. |
59
58
  | [IdentifierResult](./x-components.identifierresult.md) | This component renders an identifier result value and highlights its matching part with the query from the state. Receives as prop the [Result](./x-types.result.md) data. |
60
59
  | [IdentifierResults](./x-components.identifierresults.md) | Paints the list of identifier results stored in the state. Each identifier result should be represented by a [IdentifierResult](./x-components.identifierresult.md) component besides any other component. |
61
- | [ItemsList](./x-components.itemslist.md) | It renders a list of [ListItem](./x-components.listitem.md) providing a slot for each <code>slotName</code> which depends on the <code>modelName</code>of the item. |
62
- | [ItemsListInjectionMixin](./x-components.itemslistinjectionmixin.md) | Mixin to facilitate providing and injecting a list of list items. Injected list is available at <code>injectedListItems</code>, and the provided list should be stored in <code>items</code>. |
63
60
  | [MultiColumnMaxWidthLayout](./x-components.multicolumnmaxwidthlayout.md) | Component for use as Layout to be filled with the rest of the Components. |
64
61
  | [MyHistory](./x-components.myhistory.md) | The component renders the full history of user searched queries grouped by the day they were performed. |
65
62
  | [NextQueries](./x-components.nextqueries.md) | Simple next-queries component that renders a list of \[<code>BaseSuggestions</code>\](./x-components.base-suggestions.md), allowing the user to select one of them, and emitting the needed events. A next query is a suggestion for a new search, related to your previous query. I.e. If people normally search for <code>shirts</code>, and then <code>trousers</code>, <code>trousers</code> would be a next query of <code>shirts</code>. |
66
- | [NextQueriesList](./x-components.nextquerieslist.md) | Component that inserts groups of next queries in different positions of the injected search items list, based on the provided configuration. |
67
63
  | [NextQuery](./x-components.nextquery.md) | Renders a next query item which receives the suggestion that will be rendered as a prop. It exposes a default slot to change the next query content. If the slot is not overridden, it will render the suggestion query by default. |
68
64
  | [NextQueryPreview](./x-components.nextquerypreview.md) | Retrieves a preview of the results of a next query and exposes them in the default slot, along with the next query and the totalResults of the search request. By default, it renders the names of the results. |
69
65
  | [NumberRangeFilter](./x-components.numberrangefilter.md) | Renders a number range filter, emitting the needed events when clicked. |
@@ -72,7 +68,6 @@ X-Components is a library usable everywhere not only for search experiences.
72
68
  | [PopularSearch](./x-components.popularsearch.md) | Renders a popular search item which receives the suggestion that will be rendered as a prop. It exposes a default slot to change the popular search content. If the slot is not overridden, it will render the suggestion query by default. |
73
69
  | [PopularSearches](./x-components.popularsearches.md) | Simple popular-searches component that renders a list of suggestions, allowing the user to select one of them, and emitting the needed events. A popular search is just a query that has been searched a lot in a certain period and may optionally have associated a set of filters. |
74
70
  | [Promoted](./x-components.promoted.md) | <p>A promoted result is just an item that has been inserted into the search results to advertise something. Usually it is one of the first items in the grid, and has the same shape as a result. It just contains a link to the promoted content, an image, and a title.</p><p>Additionally, this component exposes the following props to modify the classes of the elements: <code>titleClass</code>.</p> |
75
- | [PromotedsList](./x-components.promotedslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) of promoteds from [SearchState.promoteds](./x-components.searchstate.promoteds.md) by default using the <code>ItemsInjectionMixin</code>.</p><p>The component provides a default slot which wraps the whole component with the <code>promoteds</code> plus the <code>searchInjectedItems</code> which also contains the injected list items from the ancestor.</p><p>It also provides the parent slots to customize the items.</p> |
76
71
  | [QueryPreviewButton](./x-components.querypreviewbutton.md) | <p>Component containing an event button that emits [QueriesPreviewXEvents.UserAcceptedAQueryPreview](./x-components.queriespreviewxevents.useracceptedaquerypreview.md) when clicked with the full query preview info as payload.</p><p>It has a default slot to customize its contents.</p> |
77
72
  | [QuerySuggestion](./x-components.querysuggestion.md) | This component renders a suggestion for a query. A query suggestion is a recommended query based on previous search queries. It contains the query itself and a set of filters associated. For example, if you're searching for \_shirt\_, a query suggestion could be \_long sleeve shirt\_. |
78
73
  | [QuerySuggestions](./x-components.querysuggestions.md) | This component renders a list of possible search queries to select from as a query is entered in the input field. By default, this is a list of \[<code>QuerySuggestion</code>\](./x-components.query-suggestion.md) components. |
@@ -84,7 +79,6 @@ X-Components is a library usable everywhere not only for search experiences.
84
79
  | [RemoveHistoryQuery](./x-components.removehistoryquery.md) | Button that when it is pressed emits the [HistoryQueriesXEvents.UserPressedRemoveHistoryQuery](./x-components.historyqueriesxevents.userpressedremovehistoryquery.md) event, expressing the user intention to remove a query in the history. |
85
80
  | [RenderlessExtraParams](./x-components.renderlessextraparams.md) | It emits a [ExtraParamsXEvents.UserChangedExtraParams](./x-components.extraparamsxevents.userchangedextraparams.md) when the <code>updateValue</code> is called. |
86
81
  | [RenderlessFilter](./x-components.renderlessfilter.md) | Renders default slot content. It binds to the default slot a [BooleanFilter](./x-types.booleanfilter.md)<!-- -->, the [XEvent](./x-components.xevent.md) that will be emitted when clicking the content, the css classes and if the content should be deactivated. |
87
- | [ResultsList](./x-components.resultslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) list with the results from [SearchState.results](./x-components.searchstate.results.md) by default.</p><p>The component provides a default slot which wraps the whole component with the <code>results</code> bound.</p><p>It also provides the slot result to customize the item, which is within the default slot, with the result bound.</p> |
88
82
  | [Scroll](./x-components.scroll.md) | Scrollable container that emits scroll related X Events. It exposes all the listeners and props from the [BaseScroll](./x-components.basescroll.md) component. |
89
83
  | [ScrollMixin](./x-components.scrollmixin.md) | Mixin to share Scroll logic. |
90
84
  | [ScrollToTop](./x-components.scrolltotop.md) | The <code>ScrollToTop</code> component is a button that the user can click to make a container scroll up to its initial position. |
@@ -382,6 +376,7 @@ X-Components is a library usable everywhere not only for search experiences.
382
376
  | [ArrowUpIcon](./x-components.arrowupicon.md) | |
383
377
  | [AutoProgressBar](./x-components.autoprogressbar.md) | The auto progress bar component is useful for displaying a visual indicator of numerical data in a bar shape. |
384
378
  | [BagIcon](./x-components.bagicon.md) | |
379
+ | [BannersList](./x-components.bannerslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) list of banners from [SearchState.banners](./x-components.searchstate.banners.md) by default using the <code>ItemsInjectionMixin</code>.</p><p>The component provides a default slot which wraps the whole component with the <code>banners</code> plus the <code>searchInjectedItems</code> which also contains the injected list items from the ancestor.</p><p>It also provides the parent slots to customize the items.</p> |
385
380
  | [BarCodeIcon](./x-components.barcodeicon.md) | |
386
381
  | [BarcodeTinyIcon](./x-components.barcodetinyicon.md) | |
387
382
  | [BaseAddToCart](./x-components.baseaddtocart.md) | Renders a button with a default slot. It receives the result with the data and emits [XEventsTypes.UserClickedResultAddToCart](./x-components.xeventstypes.userclickedresultaddtocart.md) to the bus on click mouse event. |
@@ -523,6 +518,7 @@ X-Components is a library usable everywhere not only for search experiences.
523
518
  | [increasePageAppendingResults](./x-components.increasepageappendingresults.md) | Default implementation for the [SearchActions.increasePageAppendingResults()](./x-components.searchactions.increasepageappendingresults.md)<!-- -->. |
524
519
  | [increasePageAppendingResultsWire](./x-components.increasepageappendingresultswire.md) | Increases the current search state <code>page</code> by one. |
525
520
  | [infiniteScroll](./x-components.infinitescroll.md) | <p>Custom Vue directive for infinite scroll.</p><p>This directive uses the IntersectionObserver API to handle the intersection between the children and the scrollable container. The content of the children moves up on scroll and when it reaches the end, the IntersectionObserver triggers that both elements are intersecting.</p><p>How it works.</p><p>As a summary, if the scroll reaches the end, the <code>vNode.context.onInfiniteScrollEnd</code> function implemented by the component which imports the directive, is executed. If you provide a margin in the directive options, this function is triggered when the scroll reaches the end minus that amount of pixels. A default margin of 200px is set.</p><p>Usage.</p><p>The directive has to be set in the target element. It can receive an argument which will be used to determine the scrollable container. Possible values: <code>html</code>: will set the <html> as the scrollable container. <code>body</code>: will set the <body> as the scrollable container. ID: will set the DOM element with the provided id as the scrollable container.</p><p>If no argument is provided the scrollable container fallbacks to the viewport.</p> |
521
+ | [ItemsList](./x-components.itemslist.md) | It renders a list of [ListItem](./x-components.listitem.md) providing a slot for each <code>slotName</code> which depends on the <code>modelName</code>of the item. |
526
522
  | [LightBulbOff](./x-components.lightbulboff.md) | |
527
523
  | [LightBulbOn](./x-components.lightbulbon.md) | |
528
524
  | [loadHistoryQueriesFromBrowserStorage](./x-components.loadhistoryqueriesfrombrowserstorage.md) | Default implementation for the [HistoryQueriesActions.loadHistoryQueriesFromBrowserStorage()](./x-components.historyqueriesactions.loadhistoryqueriesfrombrowserstorage.md) action. |
@@ -535,6 +531,7 @@ X-Components is a library usable everywhere not only for search experiences.
535
531
  | [MinusIcon](./x-components.minusicon.md) | |
536
532
  | [MinusTinyIcon](./x-components.minustinyicon.md) | |
537
533
  | [nextQueries](./x-components.nextqueries.md) | Default implementation for the [NextQueriesGetters.nextQueries](./x-components.nextqueriesgetters.nextqueries.md) getter. |
534
+ | [NextQueriesList](./x-components.nextquerieslist.md) | Component that inserts groups of next queries in different positions of the injected search items list, based on the provided configuration. |
538
535
  | [nextQueriesRequest](./x-components.nextqueriesrequest.md) | Default implementation for the [NextQueriesGetters.request](./x-components.nextqueriesgetters.request.md) getter. |
539
536
  | [nextQueriesXModule](./x-components.nextqueriesxmodule.md) | Next queries [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the <code>next-queries</code> entry point. |
540
537
  | [normalizedQuery](./x-components.normalizedquery.md) | Default implementation for the [QuerySuggestionsGetters.normalizedQuery](./x-components.querysuggestionsgetters.normalizedquery.md) getter. |
@@ -546,6 +543,7 @@ X-Components is a library usable everywhere not only for search experiences.
546
543
  | [popularSearchesRequest](./x-components.popularsearchesrequest.md) | Default implementation for the [PopularSearchesGetters.request](./x-components.popularsearchesgetters.request.md) getter. |
547
544
  | [popularSearchesXModule](./x-components.popularsearchesxmodule.md) | Popular searches [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the <code>popular-searches</code> entry point. |
548
545
  | [PreselectedFilters](./x-components.preselectedfilters.md) | This component emits [FacetsXEvents.PreselectedFiltersProvided](./x-components.facetsxevents.preselectedfiltersprovided.md) when a preselected filter is set in the snippet config or by using the prop of the component. |
546
+ | [PromotedsList](./x-components.promotedslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) of promoteds from [SearchState.promoteds](./x-components.searchstate.promoteds.md) by default using the <code>ItemsInjectionMixin</code>.</p><p>The component provides a default slot which wraps the whole component with the <code>promoteds</code> plus the <code>searchInjectedItems</code> which also contains the injected list items from the ancestor.</p><p>It also provides the parent slots to customize the items.</p> |
549
547
  | [queriesPreviewXModule](./x-components.queriespreviewxmodule.md) | QueriesPreview [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the <code>queries-preview</code> entry point. |
550
548
  | [query](./x-components.query.md) | Default implementation for the next-queries query getter. |
551
549
  | [QueryPreview](./x-components.querypreview.md) | Retrieves a preview of the results of a query and exposes them in the default slot, along with the query preview and the totalResults of the search request. By default, it renders the names of the results. |
@@ -575,6 +573,7 @@ X-Components is a library usable everywhere not only for search experiences.
575
573
  | [resetResultsPreviewWire](./x-components.resetresultspreviewwire.md) | Resets the next query preview results. |
576
574
  | [resetSpellcheckQuery](./x-components.resetspellcheckquery.md) | Resets the search state <code>spellcheckedQuery</code> to its initial value, an empty string. |
577
575
  | [resetStateIfNoRequestWire](./x-components.resetstateifnorequestwire.md) | Resets the search state when the request is changed to null. See the for details. |
576
+ | [ResultsList](./x-components.resultslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) list with the results from [SearchState.results](./x-components.searchstate.results.md) by default.</p><p>The component provides a default slot which wraps the whole component with the <code>results</code> bound.</p><p>It also provides the slot result to customize the item, which is within the default slot, with the result bound.</p> |
578
577
  | [ResultVariantSelector](./x-components.resultvariantselector.md) | Component to show and select the available variants of a product for a given nest level. TODO: Add logger warning on mount when result is not injected. |
579
578
  | [ResultVariantsProvider](./x-components.resultvariantsprovider.md) | <p>Component that exposes the result merged with its selected variant in the default slot.</p><p>It receives the original result and keeps track of the selected variant.</p><p>It provides the original result, the array containing the selected variants and a callback to set the selected variant to be used from a child.</p> |
580
579
  | [sanitize](./x-components.sanitize.md) | Sanitize characters from a given string. |
@@ -2,27 +2,67 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [NextQueriesList](./x-components.nextquerieslist.md)
4
4
 
5
- ## NextQueriesList class
5
+ ## NextQueriesList variable
6
6
 
7
7
  Component that inserts groups of next queries in different positions of the injected search items list, based on the provided configuration.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class NextQueriesList extends NextQueriesList_base
12
+ _default: import("vue").DefineComponent<{
13
+ animation: {
14
+ type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
15
+ default: string;
16
+ };
17
+ offset: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ frequency: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ maxNextQueriesPerGroup: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ maxGroups: NumberConstructor;
30
+ showOnlyAfterOffset: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ }, {
35
+ items: ComputedRef<ListItem[]>;
36
+ slots: import("vue/types/v3-setup-context").Slots;
37
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
38
+ animation: {
39
+ type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
40
+ default: string;
41
+ };
42
+ offset: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ frequency: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ maxNextQueriesPerGroup: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ maxGroups: NumberConstructor;
55
+ showOnlyAfterOffset: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ }>>, {
60
+ animation: string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
61
+ props: {};
62
+ });
63
+ offset: number;
64
+ frequency: number;
65
+ maxNextQueriesPerGroup: number;
66
+ showOnlyAfterOffset: boolean;
67
+ }>
13
68
  ```
14
- **Extends:** NextQueriesList\_base
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [animation?](./x-components.nextquerieslist.animation.md) | <code>protected</code> | Vue \| string | _(Optional)_ Animation component that will be used to animate the next queries groups. |
21
- | [frequency](./x-components.nextquerieslist.frequency.md) | | number | The items cycle size to keep inserting next queries groups at. |
22
- | [hasMoreItems](./x-components.nextquerieslist.hasmoreitems.md) | | boolean | Indicates if there are more available results than the injected. |
23
- | [injectedQuery](./x-components.nextquerieslist.injectedquery.md) | | string \| undefined | Injected query, updated when the related request(s) have succeeded. |
24
- | [maxGroups](./x-components.nextquerieslist.maxgroups.md) | | number | The maximum number of groups to insert into the injected list items list. |
25
- | [maxNextQueriesPerGroup](./x-components.nextquerieslist.maxnextqueriespergroup.md) | | number | The maximum amount of next queries to add in a single group. |
26
- | [offset](./x-components.nextquerieslist.offset.md) | | number | The first index to insert a group of next queries at. |
27
- | [showOnlyAfterOffset](./x-components.nextquerieslist.showonlyafteroffset.md) | | boolean | Determines if a group is added to the injected items list in case the number of items is smaller than the offset. |
28
-