@empathyco/x-components 7.4.1 → 8.0.0

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 (175) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/browse/index.js +0 -1
  3. package/core/index.js +3 -0
  4. package/core/index.js.map +1 -1
  5. package/docs/API-reference/api/x-components.baseaddtocart.md +1 -1
  6. package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
  7. package/docs/API-reference/api/x-components.md +124 -11
  8. package/docs/API-reference/api/x-components.setresults.md +13 -0
  9. package/docs/API-reference/api/x-components.simplefilter.md +1 -0
  10. package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
  11. package/docs/API-reference/api/x-components.sortdropdown.md +30 -4
  12. package/docs/API-reference/api/x-components.sortlist.md +32 -7
  13. package/docs/API-reference/api/x-components.sortpickerlist.md +32 -7
  14. package/docs/API-reference/api/x-components.usealiasapi.browseselectedsort.md +13 -0
  15. package/docs/API-reference/api/x-components.usealiasapi.md +21 -0
  16. package/docs/API-reference/api/x-components.vendoractions.md +11 -0
  17. package/docs/API-reference/api/x-components.vendorgetters.md +11 -0
  18. package/docs/API-reference/api/x-components.vendormutations.md +54 -0
  19. package/docs/API-reference/api/x-components.vendormutations.setresults.md +11 -0
  20. package/docs/API-reference/api/x-components.vendorresult.md +57 -0
  21. package/docs/API-reference/api/x-components.vendorresult.position.md +11 -0
  22. package/docs/API-reference/api/x-components.vendorresultslist.md +31 -0
  23. package/docs/API-reference/api/x-components.vendorstate.md +54 -0
  24. package/docs/API-reference/api/x-components.vendorstate.results.md +11 -0
  25. package/docs/API-reference/api/x-components.vendorxevents.md +58 -0
  26. package/docs/API-reference/api/x-components.vendorxevents.vendorresultschanged.md +13 -0
  27. package/docs/API-reference/api/x-components.vendorxmodule.md +13 -0
  28. package/docs/API-reference/api/x-components.vendorxstoremodule.md +11 -0
  29. package/docs/API-reference/api/x-components.xeventstypes.md +2 -2
  30. package/docs/API-reference/api/x-components.xmodulestree.md +17 -0
  31. package/docs/API-reference/api/x-components.xmodulestree.vendor.md +11 -0
  32. package/docs/API-reference/api/x-types.result.md +2 -2
  33. package/docs/API-reference/components/{search → common/sort}/x-components.sort-dropdown.md +7 -4
  34. package/docs/API-reference/components/{search → common/sort}/x-components.sort-list.md +7 -4
  35. package/docs/API-reference/components/{search → common/sort}/x-components.sort-picker-list.md +8 -5
  36. package/docs/API-reference/components/vendor/x-components.vendor-results-list.md +21 -0
  37. package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
  38. package/js/components/result/base-result-add-to-cart.vue2.js +1 -1
  39. package/js/components/result/base-result-add-to-cart.vue2.js.map +1 -1
  40. package/js/components/result/base-result-link.vue.js +12 -8
  41. package/js/components/result/base-result-link.vue.js.map +1 -1
  42. package/js/components/result/base-result-link.vue2.js.map +1 -1
  43. package/js/{x-modules/search/components → components/sort}/sort-dropdown.vue.js +1 -1
  44. package/js/components/sort/sort-dropdown.vue.js.map +1 -0
  45. package/js/{x-modules/search/components → components/sort}/sort-dropdown.vue2.js +19 -12
  46. package/js/components/sort/sort-dropdown.vue2.js.map +1 -0
  47. package/js/{x-modules/search/components → components/sort}/sort-list.vue.js +2 -2
  48. package/js/components/sort/sort-list.vue.js.map +1 -0
  49. package/js/{x-modules/search/components → components/sort}/sort-list.vue2.js +22 -15
  50. package/js/components/sort/sort-list.vue2.js.map +1 -0
  51. package/js/components/sort/sort-list.vue3.js +7 -0
  52. package/js/{x-modules/search/components → components/sort}/sort-picker-list.vue.js +1 -1
  53. package/js/components/sort/sort-picker-list.vue.js.map +1 -0
  54. package/js/{x-modules/search/components → components/sort}/sort-picker-list.vue2.js +21 -14
  55. package/js/components/sort/sort-picker-list.vue2.js.map +1 -0
  56. package/js/composables/use-alias-api.js +3 -0
  57. package/js/composables/use-alias-api.js.map +1 -1
  58. package/js/index.js +8 -4
  59. package/js/index.js.map +1 -1
  60. package/js/x-modules/ai/components/ai-carousel.vue2.js +4 -0
  61. package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
  62. package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js +4 -0
  63. package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js.map +1 -1
  64. package/js/x-modules/browse/store/actions/set-url-params.action.js +1 -1
  65. package/js/x-modules/browse/store/actions/set-url-params.action.js.map +1 -1
  66. package/js/x-modules/browse/wiring.js +6 -1
  67. package/js/x-modules/browse/wiring.js.map +1 -1
  68. package/js/x-modules/empathize/components/empathize.vue2.js +4 -0
  69. package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
  70. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +4 -0
  71. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
  72. package/js/x-modules/queries-preview/components/query-preview.vue2.js +4 -0
  73. package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
  74. package/js/x-modules/scroll/components/scroll-to-top.vue2.js +4 -0
  75. package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
  76. package/js/x-modules/search/store/actions/set-url-params.action.js +1 -1
  77. package/js/x-modules/search/store/actions/set-url-params.action.js.map +1 -1
  78. package/js/x-modules/search/wiring.js +3 -0
  79. package/js/x-modules/search/wiring.js.map +1 -1
  80. package/js/x-modules/vendor/components/vendor-results-list.vue.js +81 -0
  81. package/js/x-modules/vendor/components/vendor-results-list.vue.js.map +1 -0
  82. package/js/x-modules/vendor/components/vendor-results-list.vue2.js +6 -0
  83. package/js/x-modules/vendor/components/vendor-results-list.vue2.js.map +1 -0
  84. package/js/x-modules/vendor/store/emitters.js +13 -0
  85. package/js/x-modules/vendor/store/emitters.js.map +1 -0
  86. package/js/x-modules/vendor/store/module.js +15 -0
  87. package/js/x-modules/vendor/store/module.js.map +1 -0
  88. package/js/x-modules/vendor/wiring.js +42 -0
  89. package/js/x-modules/vendor/wiring.js.map +1 -0
  90. package/js/x-modules/vendor/x-module.js +21 -0
  91. package/js/x-modules/vendor/x-module.js.map +1 -0
  92. package/package.json +4 -4
  93. package/report/x-components.api.json +1230 -270
  94. package/report/x-components.api.md +189 -58
  95. package/report/x-types.api.json +1 -1
  96. package/search/index.js +0 -3
  97. package/types/src/components/index.d.ts +1 -0
  98. package/types/src/components/index.d.ts.map +1 -1
  99. package/types/src/components/result/base-result-add-to-cart.vue.d.ts +1 -2
  100. package/types/src/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
  101. package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
  102. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  103. package/types/src/components/sort/index.d.ts +4 -0
  104. package/types/src/components/sort/index.d.ts.map +1 -0
  105. package/types/src/{x-modules/search/components → components/sort}/sort-dropdown.vue.d.ts +33 -6
  106. package/types/src/components/sort/sort-dropdown.vue.d.ts.map +1 -0
  107. package/types/src/{x-modules/search/components → components/sort}/sort-list.vue.d.ts +35 -10
  108. package/types/src/components/sort/sort-list.vue.d.ts.map +1 -0
  109. package/types/src/{x-modules/search/components → components/sort}/sort-picker-list.vue.d.ts +45 -10
  110. package/types/src/components/sort/sort-picker-list.vue.d.ts.map +1 -0
  111. package/types/src/composables/use-alias-api.d.ts +2 -0
  112. package/types/src/composables/use-alias-api.d.ts.map +1 -1
  113. package/types/src/index.d.ts +1 -0
  114. package/types/src/index.d.ts.map +1 -1
  115. package/types/src/wiring/events.types.d.ts +2 -1
  116. package/types/src/wiring/events.types.d.ts.map +1 -1
  117. package/types/src/x-modules/browse/components/index.d.ts +0 -1
  118. package/types/src/x-modules/browse/components/index.d.ts.map +1 -1
  119. package/types/src/x-modules/browse/wiring.d.ts +6 -1
  120. package/types/src/x-modules/browse/wiring.d.ts.map +1 -1
  121. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
  122. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  123. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
  124. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  125. package/types/src/x-modules/search/components/index.d.ts +0 -3
  126. package/types/src/x-modules/search/components/index.d.ts.map +1 -1
  127. package/types/src/x-modules/search/wiring.d.ts +3 -0
  128. package/types/src/x-modules/search/wiring.d.ts.map +1 -1
  129. package/types/src/x-modules/vendor/components/index.d.ts +2 -0
  130. package/types/src/x-modules/vendor/components/index.d.ts.map +1 -0
  131. package/types/src/x-modules/vendor/components/vendor-results-list.vue.d.ts +30 -0
  132. package/types/src/x-modules/vendor/components/vendor-results-list.vue.d.ts.map +1 -0
  133. package/types/src/x-modules/vendor/events.types.d.ts +15 -0
  134. package/types/src/x-modules/vendor/events.types.d.ts.map +1 -0
  135. package/types/src/x-modules/vendor/index.d.ts +7 -0
  136. package/types/src/x-modules/vendor/index.d.ts.map +1 -0
  137. package/types/src/x-modules/vendor/store/emitters.d.ts +7 -0
  138. package/types/src/x-modules/vendor/store/emitters.d.ts.map +1 -0
  139. package/types/src/x-modules/vendor/store/index.d.ts +4 -0
  140. package/types/src/x-modules/vendor/store/index.d.ts.map +1 -0
  141. package/types/src/x-modules/vendor/store/module.d.ts +3 -0
  142. package/types/src/x-modules/vendor/store/module.d.ts.map +1 -0
  143. package/types/src/x-modules/vendor/store/types.d.ts +14 -0
  144. package/types/src/x-modules/vendor/store/types.d.ts.map +1 -0
  145. package/types/src/x-modules/vendor/types.d.ts +8 -0
  146. package/types/src/x-modules/vendor/types.d.ts.map +1 -0
  147. package/types/src/x-modules/vendor/wiring.d.ts +20 -0
  148. package/types/src/x-modules/vendor/wiring.d.ts.map +1 -0
  149. package/types/src/x-modules/vendor/x-module.d.ts +16 -0
  150. package/types/src/x-modules/vendor/x-module.d.ts.map +1 -0
  151. package/types/src/x-modules/x-modules.types.d.ts +2 -0
  152. package/types/src/x-modules/x-modules.types.d.ts.map +1 -1
  153. package/vendor/index.d.ts +1 -0
  154. package/vendor/index.js +5 -0
  155. package/docs/API-reference/api/x-components.browsesortpickerlist.md +0 -45
  156. package/docs/API-reference/components/browse/x-components.browse-sort-picker-list.md +0 -24
  157. package/js/x-modules/browse/components/browse-sort-picker-list.vue.js +0 -73
  158. package/js/x-modules/browse/components/browse-sort-picker-list.vue.js.map +0 -1
  159. package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js +0 -6
  160. package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js.map +0 -1
  161. package/js/x-modules/search/components/sort-dropdown.vue.js.map +0 -1
  162. package/js/x-modules/search/components/sort-dropdown.vue2.js.map +0 -1
  163. package/js/x-modules/search/components/sort-list.vue.js.map +0 -1
  164. package/js/x-modules/search/components/sort-list.vue2.js.map +0 -1
  165. package/js/x-modules/search/components/sort-list.vue3.js +0 -7
  166. package/js/x-modules/search/components/sort-picker-list.vue.js.map +0 -1
  167. package/js/x-modules/search/components/sort-picker-list.vue2.js.map +0 -1
  168. package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts +0 -50
  169. package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts.map +0 -1
  170. package/types/src/x-modules/search/components/sort-dropdown.vue.d.ts.map +0 -1
  171. package/types/src/x-modules/search/components/sort-list.vue.d.ts.map +0 -1
  172. package/types/src/x-modules/search/components/sort-picker-list.types.d.ts +0 -12
  173. package/types/src/x-modules/search/components/sort-picker-list.types.d.ts.map +0 -1
  174. package/types/src/x-modules/search/components/sort-picker-list.vue.d.ts.map +0 -1
  175. /package/js/{x-modules/search/components → components/sort}/sort-list.vue3.js.map +0 -0
@@ -575,7 +575,7 @@ type: PropType<Result>;
575
575
  required: true;
576
576
  };
577
577
  }>, {
578
- events: ComputedRef<Partial<XEventsTypes>>;
578
+ events: {};
579
579
  metadata: Omit<WireMetadata, "moduleName" | "origin" | "location">;
580
580
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
581
581
  result: {
@@ -1921,41 +1921,6 @@ default: string;
1921
1921
  animation: string | Function | Record<string, any>;
1922
1922
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1923
1923
 
1924
- // @public
1925
- export const BrowseSortPickerList: DefineComponent<ExtractPropTypes< {
1926
- animation: {
1927
- type: null;
1928
- required: false;
1929
- default: string;
1930
- };
1931
- items: {
1932
- type: ArrayConstructor;
1933
- required: true;
1934
- };
1935
- buttonClass: {
1936
- type: StringConstructor;
1937
- required: true;
1938
- };
1939
- }>, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1940
- [key: string]: any;
1941
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1942
- animation: {
1943
- type: null;
1944
- required: false;
1945
- default: string;
1946
- };
1947
- items: {
1948
- type: ArrayConstructor;
1949
- required: true;
1950
- };
1951
- buttonClass: {
1952
- type: StringConstructor;
1953
- required: true;
1954
- };
1955
- }>> & Readonly<{}>, {
1956
- animation: any;
1957
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1958
-
1959
1924
  // @public
1960
1925
  export interface BrowseState extends StatusState {
1961
1926
  banners: Banner_2[];
@@ -2007,7 +1972,7 @@ export const browseWiring: {
2007
1972
  ReloadBrowseRequested: {
2008
1973
  resetBrowseStateForReloadWire: AnyWire;
2009
1974
  };
2010
- SelectedSortProvided: {
1975
+ SelectedBrowseSortProvided: {
2011
1976
  setBrowseSort: Wire<string>;
2012
1977
  };
2013
1978
  ExtraParamsChanged: {
@@ -2023,6 +1988,11 @@ export const browseWiring: {
2023
1988
  resetBrowseStateForReloadWire: AnyWire;
2024
1989
  cancelFetchAndSaveBrowseResponseWire: AnyWire;
2025
1990
  };
1991
+ UserAcceptedAQuery: {
1992
+ clearBrowseQuery: AnyWire;
1993
+ resetBrowseStateForReloadWire: AnyWire;
1994
+ cancelFetchAndSaveBrowseResponseWire: AnyWire;
1995
+ };
2026
1996
  UserClickedOutOfMainModal: {
2027
1997
  clearBrowseQuery: AnyWire;
2028
1998
  };
@@ -3981,6 +3951,7 @@ AiSuggestionsSearchChanged?: AiSuggestionSearch[] | undefined;
3981
3951
  UserClickedAnAiCarouselResult?: Result | undefined;
3982
3952
  UserClickedAnAiCarouselAdd2Cart?: Result | undefined;
3983
3953
  AiComponentMounted?: void | undefined;
3954
+ VendorResultsChanged?: Omit<VendorResult, "modelName">[] | undefined;
3984
3955
  }>;
3985
3956
  innerCssClasses: ComputedRef<(string | Dictionary<boolean>)[]>;
3986
3957
  renderedChildrenFilters: ComputedRef<HierarchicalFilter_2[]>;
@@ -7507,6 +7478,9 @@ export const searchWiring: {
7507
7478
  UserClickedOutOfMainModal: {
7508
7479
  clearSearchQuery: AnyWire;
7509
7480
  };
7481
+ UserBrowsedToCategory: {
7482
+ clearSearchQuery: AnyWire;
7483
+ };
7510
7484
  UserAcceptedAQueryPreview: {
7511
7485
  setSearchQueryFromPreview: AnyWire;
7512
7486
  setSearchExtraParamsFromPreview: AnyWire;
@@ -7883,6 +7857,9 @@ export const setRelatedTagsQuery: Wire<string>;
7883
7857
  // @public
7884
7858
  export const setRelatedTagsQueryFromPreview: AnyWire;
7885
7859
 
7860
+ // @public
7861
+ export const setResults: AnyWire;
7862
+
7886
7863
  // @public
7887
7864
  export const setScrollDirectionWire: AnyWire;
7888
7865
 
@@ -8202,6 +8179,7 @@ AiSuggestionsSearchChanged?: AiSuggestionSearch[] | undefined;
8202
8179
  UserClickedAnAiCarouselResult?: Result | undefined;
8203
8180
  UserClickedAnAiCarouselAdd2Cart?: Result | undefined;
8204
8181
  AiComponentMounted?: void | undefined;
8182
+ VendorResultsChanged?: Omit<VendorResult, "modelName">[] | undefined;
8205
8183
  }>;
8206
8184
  innerCssClasses: ComputedRef<(string | Dictionary<boolean>)[]>;
8207
8185
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -8540,6 +8518,7 @@ AiSuggestionsSearchChanged: (payload: AiSuggestionSearch[], metadata: WireMetada
8540
8518
  UserClickedAnAiCarouselResult: (payload: Result, metadata: WireMetadata) => unknown;
8541
8519
  UserClickedAnAiCarouselAdd2Cart: (payload: Result, metadata: WireMetadata) => unknown;
8542
8520
  AiComponentMounted: (payload: undefined, metadata: WireMetadata) => unknown;
8521
+ VendorResultsChanged: (payload: Omit<VendorResult, "modelName">[], metadata: WireMetadata) => unknown;
8543
8522
  }>>;
8544
8523
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
8545
8524
  GlobalXBus: DefineComponent< {}, {}, any>;
@@ -8592,24 +8571,50 @@ export { SortAZIcon }
8592
8571
 
8593
8572
  // @public
8594
8573
  export const SortDropdown: DefineComponent<ExtractPropTypes< {
8574
+ animation: PropType<string | Component>;
8595
8575
  items: {
8596
8576
  type: PropType<Sort[]>;
8597
8577
  required: true;
8598
8578
  };
8599
- animation: PropType<string | Component>;
8579
+ selectedSort: {
8580
+ type: PropType<Sort>;
8581
+ required: true;
8582
+ };
8583
+ selectedSortProvidedEvent: {
8584
+ type: PropType<XEvent>;
8585
+ default: string;
8586
+ };
8587
+ clickedSortEvent: {
8588
+ type: PropType<XEvent>;
8589
+ default: string;
8590
+ };
8600
8591
  }>, {
8601
8592
  emitUserClickedASort: (sort: Sort) => void;
8602
8593
  rootRef: Ref<DefineComponent< {}, {}, any> | undefined, DefineComponent< {}, {}, any> | undefined>;
8603
- selectedSort: ComputedRef<string>;
8604
8594
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", PublicProps, Readonly<ExtractPropTypes< {
8595
+ animation: PropType<string | Component>;
8605
8596
  items: {
8606
8597
  type: PropType<Sort[]>;
8607
8598
  required: true;
8608
8599
  };
8609
- animation: PropType<string | Component>;
8600
+ selectedSort: {
8601
+ type: PropType<Sort>;
8602
+ required: true;
8603
+ };
8604
+ selectedSortProvidedEvent: {
8605
+ type: PropType<XEvent>;
8606
+ default: string;
8607
+ };
8608
+ clickedSortEvent: {
8609
+ type: PropType<XEvent>;
8610
+ default: string;
8611
+ };
8610
8612
  }>> & Readonly<{
8611
8613
  onChange?: ((...args: any[]) => any) | undefined;
8612
- }>, {}, {}, {
8614
+ }>, {
8615
+ selectedSortProvidedEvent: keyof XEventsTypes;
8616
+ clickedSortEvent: keyof XEventsTypes;
8617
+ }, {}, {
8613
8618
  BaseDropdown: DefineComponent< {}, {}, any>;
8614
8619
  }, {}, string, ComponentProvideOptions, true, {}, any>;
8615
8620
 
@@ -8632,58 +8637,108 @@ required: false;
8632
8637
 
8633
8638
  // @public
8634
8639
  export const SortList: DefineComponent<ExtractPropTypes< {
8640
+ animation: {
8641
+ type: PropType<string | Component>;
8642
+ default: () => string;
8643
+ };
8635
8644
  items: {
8636
8645
  type: PropType<Sort[]>;
8637
8646
  required: true;
8638
8647
  };
8639
- animation: {
8640
- type: PropType<string | Component>;
8641
- default: () => string;
8648
+ selectedSort: {
8649
+ type: PropType<Sort>;
8650
+ required: true;
8651
+ };
8652
+ selectedSortProvidedEvent: {
8653
+ type: PropType<XEvent>;
8654
+ default: string;
8655
+ };
8656
+ clickedSortEvent: {
8657
+ type: PropType<XEvent>;
8658
+ default: string;
8642
8659
  };
8643
8660
  }>, {
8644
8661
  listItems: ComputedRef<SortListItem[]>;
8645
- selectedSort: ComputedRef<string>;
8646
8662
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
8663
+ animation: {
8664
+ type: PropType<string | Component>;
8665
+ default: () => string;
8666
+ };
8647
8667
  items: {
8648
8668
  type: PropType<Sort[]>;
8649
8669
  required: true;
8650
8670
  };
8651
- animation: {
8652
- type: PropType<string | Component>;
8653
- default: () => string;
8671
+ selectedSort: {
8672
+ type: PropType<Sort>;
8673
+ required: true;
8674
+ };
8675
+ selectedSortProvidedEvent: {
8676
+ type: PropType<XEvent>;
8677
+ default: string;
8678
+ };
8679
+ clickedSortEvent: {
8680
+ type: PropType<XEvent>;
8681
+ default: string;
8654
8682
  };
8655
8683
  }>> & Readonly<{}>, {
8656
8684
  animation: string | Component;
8685
+ selectedSortProvidedEvent: keyof XEventsTypes;
8686
+ clickedSortEvent: keyof XEventsTypes;
8657
8687
  }, {}, {
8658
8688
  BaseEventButton: DefineComponent< {}, {}, any>;
8659
8689
  }, {}, string, ComponentProvideOptions, true, {}, any>;
8660
8690
 
8661
8691
  // @public
8662
8692
  export const SortPickerList: DefineComponent<ExtractPropTypes< {
8693
+ animation: {
8694
+ type: PropType<string | Component>;
8695
+ default: () => string;
8696
+ };
8663
8697
  items: {
8664
8698
  type: PropType<Sort[]>;
8665
8699
  required: true;
8666
8700
  };
8667
- animation: {
8668
- type: PropType<string | Component>;
8669
- default: () => string;
8701
+ selectedSort: {
8702
+ type: PropType<Sort>;
8703
+ required: true;
8704
+ };
8705
+ selectedSortProvidedEvent: {
8706
+ type: PropType<XEvent>;
8707
+ default: string;
8708
+ };
8709
+ clickedSortEvent: {
8710
+ type: PropType<XEvent>;
8711
+ default: string;
8670
8712
  };
8671
8713
  buttonClass: StringConstructor;
8672
8714
  }>, {
8673
8715
  listItems: ComputedRef<SortPickerItem[]>;
8674
- selectedSort: ComputedRef<string>;
8675
8716
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
8717
+ animation: {
8718
+ type: PropType<string | Component>;
8719
+ default: () => string;
8720
+ };
8676
8721
  items: {
8677
8722
  type: PropType<Sort[]>;
8678
8723
  required: true;
8679
8724
  };
8680
- animation: {
8681
- type: PropType<string | Component>;
8682
- default: () => string;
8725
+ selectedSort: {
8726
+ type: PropType<Sort>;
8727
+ required: true;
8728
+ };
8729
+ selectedSortProvidedEvent: {
8730
+ type: PropType<XEvent>;
8731
+ default: string;
8732
+ };
8733
+ clickedSortEvent: {
8734
+ type: PropType<XEvent>;
8735
+ default: string;
8683
8736
  };
8684
8737
  buttonClass: StringConstructor;
8685
8738
  }>> & Readonly<{}>, {
8686
8739
  animation: string | Component;
8740
+ selectedSortProvidedEvent: keyof XEventsTypes;
8741
+ clickedSortEvent: keyof XEventsTypes;
8687
8742
  }, {}, {
8688
8743
  BaseEventButton: DefineComponent< {}, {}, any>;
8689
8744
  }, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -9305,6 +9360,7 @@ export function use$x(): UseAliasAPI & {
9305
9360
 
9306
9361
  // @public
9307
9362
  export interface UseAliasAPI {
9363
+ readonly browseSelectedSort: string;
9308
9364
  readonly browseTotalResults: number;
9309
9365
  readonly device: string | null;
9310
9366
  readonly facets: Record<Facet['id'], Facet>;
@@ -9462,6 +9518,79 @@ export function useXBus(): {
9462
9518
  emit: <Event extends XEvent>(event: Event, payload?: XEventPayload<Event>, metadata?: Omit<WireMetadata, "moduleName">) => Promise<EmittedData<XEventsTypes, Event, WireMetadata>>;
9463
9519
  };
9464
9520
 
9521
+ // @public (undocumented)
9522
+ export interface VendorActions {
9523
+ }
9524
+
9525
+ // @internal
9526
+ export const vendorEmitters: {};
9527
+
9528
+ // @public (undocumented)
9529
+ export interface VendorGetters {
9530
+ }
9531
+
9532
+ // @public (undocumented)
9533
+ export interface VendorMutations {
9534
+ // (undocumented)
9535
+ setResults: (results: VendorResult[]) => void;
9536
+ }
9537
+
9538
+ // @public
9539
+ export interface VendorResult extends Omit<Result, 'modelName'>, NamedModel<'VendorResult'> {
9540
+ // (undocumented)
9541
+ position: number;
9542
+ }
9543
+
9544
+ // @public
9545
+ export const VendorResultsList: DefineComponent<ExtractPropTypes< {
9546
+ animation: {
9547
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
9548
+ default: string;
9549
+ };
9550
+ }>, () => VNode<RendererNode, RendererElement, {
9551
+ [key: string]: any;
9552
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
9553
+ animation: {
9554
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
9555
+ default: string;
9556
+ };
9557
+ }>> & Readonly<{}>, {
9558
+ animation: string | Function | Record<string, any>;
9559
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9560
+
9561
+ // @public (undocumented)
9562
+ export interface VendorState {
9563
+ // (undocumented)
9564
+ results: VendorResult[];
9565
+ }
9566
+
9567
+ // @internal
9568
+ export const vendorWiring: {
9569
+ VendorResultsChanged: {
9570
+ setResults: AnyWire;
9571
+ };
9572
+ SearchRequestChanged: {
9573
+ resetResults: AnyWire;
9574
+ };
9575
+ };
9576
+
9577
+ // @public
9578
+ export interface VendorXEvents {
9579
+ VendorResultsChanged: Omit<VendorResult, 'modelName'>[];
9580
+ }
9581
+
9582
+ // @public
9583
+ export type VendorXModule = XModule<VendorXStoreModule>;
9584
+
9585
+ // @public
9586
+ export const vendorXModule: VendorXModule;
9587
+
9588
+ // @public (undocumented)
9589
+ export type VendorXStoreModule = XStoreModule<VendorState, VendorGetters, VendorMutations, VendorActions>;
9590
+
9591
+ // @public (undocumented)
9592
+ export const vendorXStoreModule: VendorXStoreModule;
9593
+
9465
9594
  // @public
9466
9595
  export type VueCSSClasses = string | Dictionary<boolean> | (string | Dictionary<boolean>)[];
9467
9596
 
@@ -9674,7 +9803,7 @@ export type XEventPayload<Event extends XEvent> = XEventsTypes[Event] extends vo
9674
9803
  export type XEventsOf<Type> = PropsWithType<XEventsTypes, Type>;
9675
9804
 
9676
9805
  // @public
9677
- export interface XEventsTypes extends DeviceXEvents, EmpathizeXEvents, ExtraParamsXEvents, FacetsXEvents, HistoryQueriesXEvents, IdentifierResultsXEvents, NextQueriesXEvents, PopularSearchesXEvents, QueriesPreviewXEvents, QuerySuggestionsXEvents, RecommendationsXEvents, RelatedTagsXEvents, ScrollXEvents, SearchBoxXEvents, SearchXEvents, BrowseXEvents, SemanticQueriesXEvents, TaggingXEvents, ExperienceControlsXEvents, UrlXEvents, RelatedPromptsXEvents, AiXEvents {
9806
+ export interface XEventsTypes extends DeviceXEvents, EmpathizeXEvents, ExtraParamsXEvents, FacetsXEvents, HistoryQueriesXEvents, IdentifierResultsXEvents, NextQueriesXEvents, PopularSearchesXEvents, QueriesPreviewXEvents, QuerySuggestionsXEvents, RecommendationsXEvents, RelatedTagsXEvents, ScrollXEvents, SearchBoxXEvents, SearchXEvents, BrowseXEvents, SemanticQueriesXEvents, TaggingXEvents, ExperienceControlsXEvents, UrlXEvents, RelatedPromptsXEvents, AiXEvents, VendorXEvents {
9678
9807
  ColumnsNumberProvided: number;
9679
9808
  ModuleRegistered: XModuleName;
9680
9809
  RenderedColumnsNumberChanged: number;
@@ -9828,6 +9957,8 @@ export interface XModulesTree {
9828
9957
  tagging: TaggingXModule;
9829
9958
  // (undocumented)
9830
9959
  url: UrlXModule;
9960
+ // (undocumented)
9961
+ vendor: VendorXModule;
9831
9962
  }
9832
9963
 
9833
9964
  // @public
@@ -9991,6 +10122,8 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
9991
10122
  // dist/types/src/components/filters/labels/base-price-filter-label.vue.d.ts:13:13 - (ae-forgotten-export) The symbol "RangeValue" needs to be exported by the entry point index.d.ts
9992
10123
  // dist/types/src/components/filters/labels/base-rating-filter-label.vue.d.ts:16:9 - (ae-forgotten-export) The symbol "BooleanFilter" needs to be exported by the entry point index.d.ts
9993
10124
  // dist/types/src/components/page-selector.vue.d.ts:65:5 - (ae-forgotten-export) The symbol "PageItem" needs to be exported by the entry point index.d.ts
10125
+ // dist/types/src/components/sort/sort-list.vue.d.ts:41:5 - (ae-forgotten-export) The symbol "SortListItem" needs to be exported by the entry point index.d.ts
10126
+ // dist/types/src/components/sort/sort-picker-list.vue.d.ts:44:5 - (ae-forgotten-export) The symbol "SortPickerItem" needs to be exported by the entry point index.d.ts
9994
10127
  // dist/types/src/components/suggestions/base-suggestion.vue.d.ts:31:9 - (ae-forgotten-export) The symbol "Suggestion" needs to be exported by the entry point index.d.ts
9995
10128
  // dist/types/src/x-modules/ai/components/ai-carousel.vue.d.ts:12:5 - (ae-forgotten-export) The symbol "TaggingRequest" needs to be exported by the entry point index.d.ts
9996
10129
  // dist/types/src/x-modules/ai/components/ai-carousel.vue.d.ts:14:5 - (ae-forgotten-export) The symbol "AiSuggestionQuery" needs to be exported by the entry point index.d.ts
@@ -10009,8 +10142,6 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
10009
10142
  // dist/types/src/x-modules/facets/components/lists/selected-filters-list.vue.d.ts:27:5 - (ae-forgotten-export) The symbol "RenderFilter" needs to be exported by the entry point index.d.ts
10010
10143
  // dist/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts:62:9 - (ae-forgotten-export) The symbol "RelatedPromptNextQuery" needs to be exported by the entry point index.d.ts
10011
10144
  // dist/types/src/x-modules/search/components/banner.vue.d.ts:23:9 - (ae-forgotten-export) The symbol "Banner_2" needs to be exported by the entry point index.d.ts
10012
- // dist/types/src/x-modules/search/components/sort-list.vue.d.ts:29:5 - (ae-forgotten-export) The symbol "SortListItem" needs to be exported by the entry point index.d.ts
10013
- // dist/types/src/x-modules/search/components/sort-picker-list.vue.d.ts:22:5 - (ae-forgotten-export) The symbol "SortPickerItem" needs to be exported by the entry point index.d.ts
10014
10145
  // src/x-modules/ai/store/emitters.ts:9:24 - (ae-forgotten-export) The symbol "AiSuggestionsSearchRequest" needs to be exported by the entry point index.d.ts
10015
10146
  // src/x-modules/browse/store/emitters.ts:13:40 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
10016
10147
  // src/x-modules/url/store/emitters.ts:57:1 - (ae-forgotten-export) The symbol "shouldPushUrl" needs to be exported by the entry point index.d.ts
@@ -7145,7 +7145,7 @@
7145
7145
  },
7146
7146
  {
7147
7147
  "kind": "Content",
7148
- "text": "<'Result'>"
7148
+ "text": "<'Result' | 'VendorResult'>"
7149
7149
  },
7150
7150
  {
7151
7151
  "kind": "Content",
package/search/index.js CHANGED
@@ -7,9 +7,6 @@ export { default as Promoted } from '../js/x-modules/search/components/promoted.
7
7
  export { default as PromotedsList } from '../js/x-modules/search/components/promoteds-list.vue.js';
8
8
  export { default as Redirection } from '../js/x-modules/search/components/redirection.vue.js';
9
9
  export { default as ResultsList } from '../js/x-modules/search/components/results-list.vue.js';
10
- export { default as SortDropdown } from '../js/x-modules/search/components/sort-dropdown.vue.js';
11
- export { default as SortList } from '../js/x-modules/search/components/sort-list.vue.js';
12
- export { default as SortPickerList } from '../js/x-modules/search/components/sort-picker-list.vue.js';
13
10
  export { default as SpellcheckButton } from '../js/x-modules/search/components/spellcheck-button.vue.js';
14
11
  export { default as Spellcheck } from '../js/x-modules/search/components/spellcheck.vue.js';
15
12
  export { cancelFetchAndSavePartialResultsEnrichment, fetchAndSavePartialResultsEnrichment } from '../js/x-modules/search/store/actions/fetch-and-save-partial-results-enrichment.action.js';
@@ -29,6 +29,7 @@ export * from './result';
29
29
  export * from './scroll';
30
30
  export { default as SlidingPanel } from './sliding-panel.vue';
31
31
  export { default as SnippetCallbacks } from './snippet-callbacks.vue';
32
+ export * from './sort';
32
33
  export * from './suggestions';
33
34
  export * from './x-component.utils';
34
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEnF,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAE1B,cAAc,+BAA+B,CAAA;AAC7C,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACjE,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEnF,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAE1B,cAAc,+BAA+B,CAAA;AAC7C,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACjE,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,cAAc,QAAQ,CAAA;AAEtB,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import type { Result } from '@empathyco/x-types';
2
2
  import type { PropType } from 'vue';
3
- import type { XEventsTypes } from '../../wiring/events.types';
4
3
  import type { WireMetadata } from '../../wiring/index';
5
4
  /**
6
5
  * Renders a button with a default slot. It receives the result with the data and emits
@@ -19,7 +18,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
18
  required: true;
20
19
  };
21
20
  }>, {
22
- events: import("vue").ComputedRef<Partial<XEventsTypes>>;
21
+ events: {};
23
22
  metadata: Omit<WireMetadata, "moduleName" | "origin" | "location">;
24
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"base-result-add-to-cart.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/components/result/base-result-add-to-cart.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD;;;;;GAKG;;IAIC;;;;OAIG;;cAEe,QAAQ,CAAC,MAAM,CAAC;;;;;;;IANlC;;;;OAIG;;cAEe,QAAQ,CAAC,MAAM,CAAC;;;;;;AATtC,wBAsDE"}
1
+ {"version":3,"file":"base-result-add-to-cart.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/components/result/base-result-add-to-cart.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD;;;;;GAKG;;IAIC;;;;OAIG;;cAEe,QAAQ,CAAC,MAAM,CAAC;;;;;;;IANlC;;;;OAIG;;cAEe,QAAQ,CAAC,MAAM,CAAC;;;;;;AATtC,wBAsDE"}
@@ -192,6 +192,7 @@ declare const _default: import("vue").DefineComponent<{}, {
192
192
  UserClickedAnAiCarouselResult: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
193
193
  UserClickedAnAiCarouselAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
194
194
  AiComponentMounted: (payload: undefined, metadata: WireMetadata) => unknown;
195
+ VendorResultsChanged: (payload: Omit<import("..").VendorResult, "modelName">[], metadata: WireMetadata) => unknown;
195
196
  }>>;
196
197
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
197
198
  GlobalXBus: import("vue").DefineComponent<{}, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
1
+ {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
@@ -0,0 +1,4 @@
1
+ export { default as SortDropdown } from './sort-dropdown.vue';
2
+ export { default as SortList } from './sort-list.vue';
3
+ export { default as SortPickerList } from './sort-picker-list.vue';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/sort/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,32 +1,59 @@
1
1
  import type { Sort } from '@empathyco/x-types';
2
2
  import type { Component, PropType } from 'vue';
3
+ import type { XEvent } from '../../wiring/index';
3
4
  /**
4
5
  * The `SortDropdown` component allows user to select the search results order. This component
5
6
  * also allows to change the selected sort programmatically.
6
7
  */
7
8
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ /** The transition to use for opening and closing the dropdown. */
10
+ animation: PropType<string | Component>;
8
11
  /** The list of possible sort values. */
9
12
  items: {
10
13
  type: PropType<Sort[]>;
11
14
  required: true;
12
15
  };
13
- /** The transition to use for opening and closing the dropdown. */
14
- animation: PropType<string | Component>;
16
+ selectedSort: {
17
+ type: PropType<Sort>;
18
+ required: true;
19
+ };
20
+ selectedSortProvidedEvent: {
21
+ type: PropType<XEvent>;
22
+ default: string;
23
+ };
24
+ clickedSortEvent: {
25
+ type: PropType<XEvent>;
26
+ default: string;
27
+ };
15
28
  }>, {
16
29
  emitUserClickedASort: (sort: Sort) => void;
17
30
  rootRef: import("vue").Ref<import("vue").DefineComponent<{}, {}, any> | undefined, import("vue").DefineComponent<{}, {}, any> | undefined>;
18
- selectedSort: import("vue").ComputedRef<string>;
19
31
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
+ /** The transition to use for opening and closing the dropdown. */
33
+ animation: PropType<string | Component>;
20
34
  /** The list of possible sort values. */
21
35
  items: {
22
36
  type: PropType<Sort[]>;
23
37
  required: true;
24
38
  };
25
- /** The transition to use for opening and closing the dropdown. */
26
- animation: PropType<string | Component>;
39
+ selectedSort: {
40
+ type: PropType<Sort>;
41
+ required: true;
42
+ };
43
+ selectedSortProvidedEvent: {
44
+ type: PropType<XEvent>;
45
+ default: string;
46
+ };
47
+ clickedSortEvent: {
48
+ type: PropType<XEvent>;
49
+ default: string;
50
+ };
27
51
  }>> & Readonly<{
28
52
  onChange?: ((...args: any[]) => any) | undefined;
29
- }>, {}, {}, {
53
+ }>, {
54
+ selectedSortProvidedEvent: keyof import("../../wiring/events.types").XEventsTypes;
55
+ clickedSortEvent: keyof import("../../wiring/events.types").XEventsTypes;
56
+ }, {}, {
30
57
  BaseDropdown: import("vue").DefineComponent<{}, {}, any>;
31
58
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
59
  export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-dropdown.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/components/sort/sort-dropdown.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAKhD;;;GAGG;;IAKC,kEAAkE;eACnC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAC3D,wCAAwC;;cAEvB,QAAQ,CAAC,IAAI,EAAE,CAAC;;;;cAIf,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,MAAM,CAAC;;;;cAIhB,QAAQ,CAAC,MAAM,CAAC;;;;iCAyBE,IAAI;;;IAzCxC,kEAAkE;eACnC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAC3D,wCAAwC;;cAEvB,QAAQ,CAAC,IAAI,EAAE,CAAC;;;;cAIf,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,MAAM,CAAC;;;;cAIhB,QAAQ,CAAC,MAAM,CAAC;;;;;;;;;;;AApBtC,wBAuDE"}
@@ -1,7 +1,7 @@
1
1
  import type { Sort } from '@empathyco/x-types';
2
2
  import type { Component, PropType } from 'vue';
3
- import type { VueCSSClasses } from '../../../utils/types';
4
- import type { XEventsTypes } from '../../../wiring/events.types';
3
+ import type { VueCSSClasses } from '../../utils/index';
4
+ import type { XEvent, XEventsTypes } from '../../wiring/index';
5
5
  /**
6
6
  * Sort list item options.
7
7
  */
@@ -15,32 +15,57 @@ interface SortListItem {
15
15
  * also allows to change the selected sort programmatically.
16
16
  */
17
17
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
+ /** The transition to use for rendering the list. */
19
+ animation: {
20
+ type: PropType<string | Component>;
21
+ default: () => string;
22
+ };
18
23
  /** The list of possible sort values. */
19
24
  items: {
20
25
  type: PropType<Sort[]>;
21
26
  required: true;
22
27
  };
28
+ selectedSort: {
29
+ type: PropType<Sort>;
30
+ required: true;
31
+ };
32
+ selectedSortProvidedEvent: {
33
+ type: PropType<XEvent>;
34
+ default: string;
35
+ };
36
+ clickedSortEvent: {
37
+ type: PropType<XEvent>;
38
+ default: string;
39
+ };
40
+ }>, {
41
+ listItems: import("vue").ComputedRef<SortListItem[]>;
42
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
43
  /** The transition to use for rendering the list. */
24
44
  animation: {
25
45
  type: PropType<string | Component>;
26
46
  default: () => string;
27
47
  };
28
- }>, {
29
- listItems: import("vue").ComputedRef<SortListItem[]>;
30
- selectedSort: import("vue").ComputedRef<string>;
31
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
48
  /** The list of possible sort values. */
33
49
  items: {
34
50
  type: PropType<Sort[]>;
35
51
  required: true;
36
52
  };
37
- /** The transition to use for rendering the list. */
38
- animation: {
39
- type: PropType<string | Component>;
40
- default: () => string;
53
+ selectedSort: {
54
+ type: PropType<Sort>;
55
+ required: true;
56
+ };
57
+ selectedSortProvidedEvent: {
58
+ type: PropType<XEvent>;
59
+ default: string;
60
+ };
61
+ clickedSortEvent: {
62
+ type: PropType<XEvent>;
63
+ default: string;
41
64
  };
42
65
  }>> & Readonly<{}>, {
43
66
  animation: string | Component;
67
+ selectedSortProvidedEvent: keyof XEventsTypes;
68
+ clickedSortEvent: keyof XEventsTypes;
44
69
  }, {}, {
45
70
  BaseEventButton: import("vue").DefineComponent<{}, {}, any>;
46
71
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-list.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/components/sort/sort-list.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAK9D;;GAEG;AACH,UAAU,YAAY;IACpB,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,aAAa,CAAA;IACzB,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;CAC7B;AAED;;;GAGG;;IAKC,oDAAoD;;cAExB,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAGxD,wCAAwC;;cAEvB,QAAQ,CAAC,IAAI,EAAE,CAAC;;;;cAIf,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,MAAM,CAAC;;;;cAIhB,QAAQ,CAAC,MAAM,CAAC;;;;;;IAnBlC,oDAAoD;;cAExB,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAGxD,wCAAwC;;cAEvB,QAAQ,CAAC,IAAI,EAAE,CAAC;;;;cAIf,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,MAAM,CAAC;;;;cAIhB,QAAQ,CAAC,MAAM,CAAC;;;;;;;;;;AAvBtC,wBA0DE"}