@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.
- package/CHANGELOG.md +18 -0
- package/browse/index.js +0 -1
- package/core/index.js +3 -0
- package/core/index.js.map +1 -1
- package/docs/API-reference/api/x-components.baseaddtocart.md +1 -1
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
- package/docs/API-reference/api/x-components.md +124 -11
- package/docs/API-reference/api/x-components.setresults.md +13 -0
- package/docs/API-reference/api/x-components.simplefilter.md +1 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
- package/docs/API-reference/api/x-components.sortdropdown.md +30 -4
- package/docs/API-reference/api/x-components.sortlist.md +32 -7
- package/docs/API-reference/api/x-components.sortpickerlist.md +32 -7
- package/docs/API-reference/api/x-components.usealiasapi.browseselectedsort.md +13 -0
- package/docs/API-reference/api/x-components.usealiasapi.md +21 -0
- package/docs/API-reference/api/x-components.vendoractions.md +11 -0
- package/docs/API-reference/api/x-components.vendorgetters.md +11 -0
- package/docs/API-reference/api/x-components.vendormutations.md +54 -0
- package/docs/API-reference/api/x-components.vendormutations.setresults.md +11 -0
- package/docs/API-reference/api/x-components.vendorresult.md +57 -0
- package/docs/API-reference/api/x-components.vendorresult.position.md +11 -0
- package/docs/API-reference/api/x-components.vendorresultslist.md +31 -0
- package/docs/API-reference/api/x-components.vendorstate.md +54 -0
- package/docs/API-reference/api/x-components.vendorstate.results.md +11 -0
- package/docs/API-reference/api/x-components.vendorxevents.md +58 -0
- package/docs/API-reference/api/x-components.vendorxevents.vendorresultschanged.md +13 -0
- package/docs/API-reference/api/x-components.vendorxmodule.md +13 -0
- package/docs/API-reference/api/x-components.vendorxstoremodule.md +11 -0
- package/docs/API-reference/api/x-components.xeventstypes.md +2 -2
- package/docs/API-reference/api/x-components.xmodulestree.md +17 -0
- package/docs/API-reference/api/x-components.xmodulestree.vendor.md +11 -0
- package/docs/API-reference/api/x-types.result.md +2 -2
- package/docs/API-reference/components/{search → common/sort}/x-components.sort-dropdown.md +7 -4
- package/docs/API-reference/components/{search → common/sort}/x-components.sort-list.md +7 -4
- package/docs/API-reference/components/{search → common/sort}/x-components.sort-picker-list.md +8 -5
- package/docs/API-reference/components/vendor/x-components.vendor-results-list.md +21 -0
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue2.js +1 -1
- package/js/components/result/base-result-add-to-cart.vue2.js.map +1 -1
- package/js/components/result/base-result-link.vue.js +12 -8
- package/js/components/result/base-result-link.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue2.js.map +1 -1
- package/js/{x-modules/search/components → components/sort}/sort-dropdown.vue.js +1 -1
- package/js/components/sort/sort-dropdown.vue.js.map +1 -0
- package/js/{x-modules/search/components → components/sort}/sort-dropdown.vue2.js +19 -12
- package/js/components/sort/sort-dropdown.vue2.js.map +1 -0
- package/js/{x-modules/search/components → components/sort}/sort-list.vue.js +2 -2
- package/js/components/sort/sort-list.vue.js.map +1 -0
- package/js/{x-modules/search/components → components/sort}/sort-list.vue2.js +22 -15
- package/js/components/sort/sort-list.vue2.js.map +1 -0
- package/js/components/sort/sort-list.vue3.js +7 -0
- package/js/{x-modules/search/components → components/sort}/sort-picker-list.vue.js +1 -1
- package/js/components/sort/sort-picker-list.vue.js.map +1 -0
- package/js/{x-modules/search/components → components/sort}/sort-picker-list.vue2.js +21 -14
- package/js/components/sort/sort-picker-list.vue2.js.map +1 -0
- package/js/composables/use-alias-api.js +3 -0
- package/js/composables/use-alias-api.js.map +1 -1
- package/js/index.js +8 -4
- package/js/index.js.map +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js +4 -0
- package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
- package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js +4 -0
- package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js.map +1 -1
- package/js/x-modules/browse/store/actions/set-url-params.action.js +1 -1
- package/js/x-modules/browse/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/browse/wiring.js +6 -1
- package/js/x-modules/browse/wiring.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue2.js +4 -0
- package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +4 -0
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview.vue2.js +4 -0
- package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js +4 -0
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
- package/js/x-modules/search/store/actions/set-url-params.action.js +1 -1
- package/js/x-modules/search/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/search/wiring.js +3 -0
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/vendor/components/vendor-results-list.vue.js +81 -0
- package/js/x-modules/vendor/components/vendor-results-list.vue.js.map +1 -0
- package/js/x-modules/vendor/components/vendor-results-list.vue2.js +6 -0
- package/js/x-modules/vendor/components/vendor-results-list.vue2.js.map +1 -0
- package/js/x-modules/vendor/store/emitters.js +13 -0
- package/js/x-modules/vendor/store/emitters.js.map +1 -0
- package/js/x-modules/vendor/store/module.js +15 -0
- package/js/x-modules/vendor/store/module.js.map +1 -0
- package/js/x-modules/vendor/wiring.js +42 -0
- package/js/x-modules/vendor/wiring.js.map +1 -0
- package/js/x-modules/vendor/x-module.js +21 -0
- package/js/x-modules/vendor/x-module.js.map +1 -0
- package/package.json +4 -4
- package/report/x-components.api.json +1230 -270
- package/report/x-components.api.md +189 -58
- package/report/x-types.api.json +1 -1
- package/search/index.js +0 -3
- package/types/src/components/index.d.ts +1 -0
- package/types/src/components/index.d.ts.map +1 -1
- package/types/src/components/result/base-result-add-to-cart.vue.d.ts +1 -2
- package/types/src/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
- package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
- package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/src/components/sort/index.d.ts +4 -0
- package/types/src/components/sort/index.d.ts.map +1 -0
- package/types/src/{x-modules/search/components → components/sort}/sort-dropdown.vue.d.ts +33 -6
- package/types/src/components/sort/sort-dropdown.vue.d.ts.map +1 -0
- package/types/src/{x-modules/search/components → components/sort}/sort-list.vue.d.ts +35 -10
- package/types/src/components/sort/sort-list.vue.d.ts.map +1 -0
- package/types/src/{x-modules/search/components → components/sort}/sort-picker-list.vue.d.ts +45 -10
- package/types/src/components/sort/sort-picker-list.vue.d.ts.map +1 -0
- package/types/src/composables/use-alias-api.d.ts +2 -0
- package/types/src/composables/use-alias-api.d.ts.map +1 -1
- package/types/src/index.d.ts +1 -0
- package/types/src/index.d.ts.map +1 -1
- package/types/src/wiring/events.types.d.ts +2 -1
- package/types/src/wiring/events.types.d.ts.map +1 -1
- package/types/src/x-modules/browse/components/index.d.ts +0 -1
- package/types/src/x-modules/browse/components/index.d.ts.map +1 -1
- package/types/src/x-modules/browse/wiring.d.ts +6 -1
- package/types/src/x-modules/browse/wiring.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/search/components/index.d.ts +0 -3
- package/types/src/x-modules/search/components/index.d.ts.map +1 -1
- package/types/src/x-modules/search/wiring.d.ts +3 -0
- package/types/src/x-modules/search/wiring.d.ts.map +1 -1
- package/types/src/x-modules/vendor/components/index.d.ts +2 -0
- package/types/src/x-modules/vendor/components/index.d.ts.map +1 -0
- package/types/src/x-modules/vendor/components/vendor-results-list.vue.d.ts +30 -0
- package/types/src/x-modules/vendor/components/vendor-results-list.vue.d.ts.map +1 -0
- package/types/src/x-modules/vendor/events.types.d.ts +15 -0
- package/types/src/x-modules/vendor/events.types.d.ts.map +1 -0
- package/types/src/x-modules/vendor/index.d.ts +7 -0
- package/types/src/x-modules/vendor/index.d.ts.map +1 -0
- package/types/src/x-modules/vendor/store/emitters.d.ts +7 -0
- package/types/src/x-modules/vendor/store/emitters.d.ts.map +1 -0
- package/types/src/x-modules/vendor/store/index.d.ts +4 -0
- package/types/src/x-modules/vendor/store/index.d.ts.map +1 -0
- package/types/src/x-modules/vendor/store/module.d.ts +3 -0
- package/types/src/x-modules/vendor/store/module.d.ts.map +1 -0
- package/types/src/x-modules/vendor/store/types.d.ts +14 -0
- package/types/src/x-modules/vendor/store/types.d.ts.map +1 -0
- package/types/src/x-modules/vendor/types.d.ts +8 -0
- package/types/src/x-modules/vendor/types.d.ts.map +1 -0
- package/types/src/x-modules/vendor/wiring.d.ts +20 -0
- package/types/src/x-modules/vendor/wiring.d.ts.map +1 -0
- package/types/src/x-modules/vendor/x-module.d.ts +16 -0
- package/types/src/x-modules/vendor/x-module.d.ts.map +1 -0
- package/types/src/x-modules/x-modules.types.d.ts +2 -0
- package/types/src/x-modules/x-modules.types.d.ts.map +1 -1
- package/vendor/index.d.ts +1 -0
- package/vendor/index.js +5 -0
- package/docs/API-reference/api/x-components.browsesortpickerlist.md +0 -45
- package/docs/API-reference/components/browse/x-components.browse-sort-picker-list.md +0 -24
- package/js/x-modules/browse/components/browse-sort-picker-list.vue.js +0 -73
- package/js/x-modules/browse/components/browse-sort-picker-list.vue.js.map +0 -1
- package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js +0 -6
- package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js.map +0 -1
- package/js/x-modules/search/components/sort-dropdown.vue.js.map +0 -1
- package/js/x-modules/search/components/sort-dropdown.vue2.js.map +0 -1
- package/js/x-modules/search/components/sort-list.vue.js.map +0 -1
- package/js/x-modules/search/components/sort-list.vue2.js.map +0 -1
- package/js/x-modules/search/components/sort-list.vue3.js +0 -7
- package/js/x-modules/search/components/sort-picker-list.vue.js.map +0 -1
- package/js/x-modules/search/components/sort-picker-list.vue2.js.map +0 -1
- package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts +0 -50
- package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts.map +0 -1
- package/types/src/x-modules/search/components/sort-dropdown.vue.d.ts.map +0 -1
- package/types/src/x-modules/search/components/sort-list.vue.d.ts.map +0 -1
- package/types/src/x-modules/search/components/sort-picker-list.types.d.ts +0 -12
- package/types/src/x-modules/search/components/sort-picker-list.types.d.ts.map +0 -1
- package/types/src/x-modules/search/components/sort-picker-list.vue.d.ts.map +0 -1
- /package/js/{x-modules/search/components → components/sort}/sort-list.vue3.js.map +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [8.0.0](https://github.com/empathyco/x/compare/@empathyco/x-components@7.5.0...@empathyco/x-components@8.0.0) (2026-07-13)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* Sorting components moved to x-components/src/components/sort. Now, sorting components can be used by the search and browse module by managing them through props.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* create sort components that could be shared between search and … (#2134)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.5.0](https://github.com/empathyco/x/compare/@empathyco/x-components@7.4.1...@empathyco/x-components@7.5.0) (2026-07-13)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **vendor:** add support for vendor results (#2126)
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [7.4.1](https://github.com/empathyco/x/compare/@empathyco/x-components@7.4.0...@empathyco/x-components@7.4.1) (2026-07-08)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @empathyco/x-components
|
package/browse/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as BrowseResultsList } from '../js/x-modules/browse/components/browse-results-list.vue.js';
|
|
2
|
-
export { default as BrowseSortPickerList } from '../js/x-modules/browse/components/browse-sort-picker-list.vue.js';
|
|
3
2
|
export { cancelFetchAndSaveBrowseResponse, fetchAndSaveBrowseResponse } from '../js/x-modules/browse/store/actions/fetch-and-save-browse-response.action.js';
|
|
4
3
|
export { fetchAndSaveResultsEnrichment as fetchAndSaveBrowseResultsEnrichment } from '../js/x-modules/browse/store/actions/fetch-and-save-results-enrichment.action.js';
|
|
5
4
|
export { fetchBrowseResponse } from '../js/x-modules/browse/store/actions/fetch-browse-response.action.js';
|
package/core/index.js
CHANGED
|
@@ -145,6 +145,9 @@ export { default as BaseScroll } from '../js/components/scroll/base-scroll.vue.j
|
|
|
145
145
|
export { useScroll } from '../js/components/scroll/use-scroll.js';
|
|
146
146
|
export { default as SlidingPanel } from '../js/components/sliding-panel.vue.js';
|
|
147
147
|
export { default as SnippetCallbacks } from '../js/components/snippet-callbacks.vue.js';
|
|
148
|
+
export { default as SortDropdown } from '../js/components/sort/sort-dropdown.vue.js';
|
|
149
|
+
export { default as SortList } from '../js/components/sort/sort-list.vue.js';
|
|
150
|
+
export { default as SortPickerList } from '../js/components/sort/sort-picker-list.vue.js';
|
|
148
151
|
export { default as BaseSuggestion } from '../js/components/suggestions/base-suggestion.vue.js';
|
|
149
152
|
export { default as BaseSuggestions } from '../js/components/suggestions/base-suggestions.vue.js';
|
|
150
153
|
export { getRootXComponent, getXComponentXModuleName, isXComponent } from '../js/components/x-component.utils.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -15,7 +15,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
17
|
}>, {
|
|
18
|
-
events:
|
|
18
|
+
events: {};
|
|
19
19
|
metadata: Omit<WireMetadata, "moduleName" | "origin" | "location">;
|
|
20
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
result: {
|
|
@@ -209,6 +209,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
209
209
|
UserClickedAnAiCarouselResult?: import("@empathyco/x-types").Result | undefined;
|
|
210
210
|
UserClickedAnAiCarouselAdd2Cart?: import("@empathyco/x-types").Result | undefined;
|
|
211
211
|
AiComponentMounted?: void | undefined;
|
|
212
|
+
VendorResultsChanged?: Omit<import("../../../vendor").VendorResult, "modelName">[] | undefined;
|
|
212
213
|
}>;
|
|
213
214
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
214
215
|
renderedChildrenFilters: import("vue").ComputedRef<HierarchicalFilterModel[]>;
|
|
@@ -3375,6 +3375,64 @@ Alias to facilitate retrieving the modules with query.
|
|
|
3375
3375
|
Alias to facilitate retrieving the modules with status.
|
|
3376
3376
|
|
|
3377
3377
|
|
|
3378
|
+
</td></tr>
|
|
3379
|
+
<tr><td>
|
|
3380
|
+
|
|
3381
|
+
[VendorActions](./x-components.vendoractions.md)
|
|
3382
|
+
|
|
3383
|
+
|
|
3384
|
+
</td><td>
|
|
3385
|
+
|
|
3386
|
+
|
|
3387
|
+
</td></tr>
|
|
3388
|
+
<tr><td>
|
|
3389
|
+
|
|
3390
|
+
[VendorGetters](./x-components.vendorgetters.md)
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
</td><td>
|
|
3394
|
+
|
|
3395
|
+
|
|
3396
|
+
</td></tr>
|
|
3397
|
+
<tr><td>
|
|
3398
|
+
|
|
3399
|
+
[VendorMutations](./x-components.vendormutations.md)
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
</td><td>
|
|
3403
|
+
|
|
3404
|
+
|
|
3405
|
+
</td></tr>
|
|
3406
|
+
<tr><td>
|
|
3407
|
+
|
|
3408
|
+
[VendorResult](./x-components.vendorresult.md)
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
</td><td>
|
|
3412
|
+
|
|
3413
|
+
The interface for a vendor result, extending the base Result interface.
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
</td></tr>
|
|
3417
|
+
<tr><td>
|
|
3418
|
+
|
|
3419
|
+
[VendorState](./x-components.vendorstate.md)
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
</td><td>
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
</td></tr>
|
|
3426
|
+
<tr><td>
|
|
3427
|
+
|
|
3428
|
+
[VendorXEvents](./x-components.vendorxevents.md)
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
</td><td>
|
|
3432
|
+
|
|
3433
|
+
Directory of events for the vendor module.
|
|
3434
|
+
|
|
3435
|
+
|
|
3378
3436
|
</td></tr>
|
|
3379
3437
|
<tr><td>
|
|
3380
3438
|
|
|
@@ -4271,17 +4329,6 @@ The component provides a default slot which wraps the whole component with the `
|
|
|
4271
4329
|
It also provides the slot result to customize the item, which is within the default slot, with the result bound.
|
|
4272
4330
|
|
|
4273
4331
|
|
|
4274
|
-
</td></tr>
|
|
4275
|
-
<tr><td>
|
|
4276
|
-
|
|
4277
|
-
[BrowseSortPickerList](./x-components.browsesortpickerlist.md)
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
</td><td>
|
|
4281
|
-
|
|
4282
|
-
The `SortPickerList` component allows user to select the browse results order. This component also allows to change the selected sort programmatically.
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
4332
|
</td></tr>
|
|
4286
4333
|
<tr><td>
|
|
4287
4334
|
|
|
@@ -7184,6 +7231,17 @@ Sets the related tags state `query`<!-- -->.
|
|
|
7184
7231
|
Sets the related tags state `query` from a selectedQueryPreview's query.
|
|
7185
7232
|
|
|
7186
7233
|
|
|
7234
|
+
</td></tr>
|
|
7235
|
+
<tr><td>
|
|
7236
|
+
|
|
7237
|
+
[setResults](./x-components.setresults.md)
|
|
7238
|
+
|
|
7239
|
+
|
|
7240
|
+
</td><td>
|
|
7241
|
+
|
|
7242
|
+
Sets the vendor results of the [VendorXModule](./x-components.vendorxmodule.md)<!-- -->.
|
|
7243
|
+
|
|
7244
|
+
|
|
7187
7245
|
</td></tr>
|
|
7188
7246
|
<tr><td>
|
|
7189
7247
|
|
|
@@ -8033,6 +8091,41 @@ URL [XModule](./x-components.xmodule.md) implementation. This module is auto-reg
|
|
|
8033
8091
|
Function which returns the requested getter's properties as a dictionary.
|
|
8034
8092
|
|
|
8035
8093
|
|
|
8094
|
+
</td></tr>
|
|
8095
|
+
<tr><td>
|
|
8096
|
+
|
|
8097
|
+
[VendorResultsList](./x-components.vendorresultslist.md)
|
|
8098
|
+
|
|
8099
|
+
|
|
8100
|
+
</td><td>
|
|
8101
|
+
|
|
8102
|
+
It renders a [ItemsList](./x-components.itemslist.md) of vendor results from [VendorState.results](./x-components.vendorstate.results.md)<!-- -->.
|
|
8103
|
+
|
|
8104
|
+
The component provides a default slot which wraps the whole component with the `vendorResults` plus the `injectedListItems` which also contains the injected list items from the ancestor.
|
|
8105
|
+
|
|
8106
|
+
It also provides the parent slots to customize the items.
|
|
8107
|
+
|
|
8108
|
+
|
|
8109
|
+
</td></tr>
|
|
8110
|
+
<tr><td>
|
|
8111
|
+
|
|
8112
|
+
[vendorXModule](./x-components.vendorxmodule.md)
|
|
8113
|
+
|
|
8114
|
+
|
|
8115
|
+
</td><td>
|
|
8116
|
+
|
|
8117
|
+
Vendor [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the `vendor` entry point.
|
|
8118
|
+
|
|
8119
|
+
|
|
8120
|
+
</td></tr>
|
|
8121
|
+
<tr><td>
|
|
8122
|
+
|
|
8123
|
+
[vendorXStoreModule](./x-components.vendorxstoremodule.md)
|
|
8124
|
+
|
|
8125
|
+
|
|
8126
|
+
</td><td>
|
|
8127
|
+
|
|
8128
|
+
|
|
8036
8129
|
</td></tr>
|
|
8037
8130
|
<tr><td>
|
|
8038
8131
|
|
|
@@ -9533,6 +9626,26 @@ The device flags type of the Return type of the composable returned by `createUs
|
|
|
9533
9626
|
The Return type of the composable returned by `createUseDevice`<!-- -->.
|
|
9534
9627
|
|
|
9535
9628
|
|
|
9629
|
+
</td></tr>
|
|
9630
|
+
<tr><td>
|
|
9631
|
+
|
|
9632
|
+
[VendorXModule](./x-components.vendorxmodule.md)
|
|
9633
|
+
|
|
9634
|
+
|
|
9635
|
+
</td><td>
|
|
9636
|
+
|
|
9637
|
+
Vendor [XModule](./x-components.xmodule.md) alias.
|
|
9638
|
+
|
|
9639
|
+
|
|
9640
|
+
</td></tr>
|
|
9641
|
+
<tr><td>
|
|
9642
|
+
|
|
9643
|
+
[VendorXStoreModule](./x-components.vendorxstoremodule.md)
|
|
9644
|
+
|
|
9645
|
+
|
|
9646
|
+
</td><td>
|
|
9647
|
+
|
|
9648
|
+
|
|
9536
9649
|
</td></tr>
|
|
9537
9650
|
<tr><td>
|
|
9538
9651
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setResults](./x-components.setresults.md)
|
|
4
|
+
|
|
5
|
+
## setResults variable
|
|
6
|
+
|
|
7
|
+
Sets the vendor results of the [VendorXModule](./x-components.vendorxmodule.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setResults: import("../../wiring").AnyWire
|
|
13
|
+
```
|
|
@@ -206,6 +206,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
206
206
|
UserClickedAnAiCarouselResult?: import("@empathyco/x-types").Result | undefined;
|
|
207
207
|
UserClickedAnAiCarouselAdd2Cart?: import("@empathyco/x-types").Result | undefined;
|
|
208
208
|
AiComponentMounted?: void | undefined;
|
|
209
|
+
VendorResultsChanged?: Omit<import("../../../vendor").VendorResult, "modelName">[] | undefined;
|
|
209
210
|
}>;
|
|
210
211
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
211
212
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -196,6 +196,7 @@ _default: import("vue").DefineComponent<{}, {
|
|
|
196
196
|
UserClickedAnAiCarouselResult: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
197
197
|
UserClickedAnAiCarouselAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
198
198
|
AiComponentMounted: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
199
|
+
VendorResultsChanged: (payload: Omit<import("..").VendorResult, "modelName">[], metadata: WireMetadata) => unknown;
|
|
199
200
|
}>>;
|
|
200
201
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
201
202
|
GlobalXBus: import("vue").DefineComponent<{}, {}, any>;
|
|
@@ -10,24 +10,50 @@ The `SortDropdown` component allows user to select the search results order. Thi
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
animation: PropType<string | Component>;
|
|
13
14
|
items: {
|
|
14
15
|
type: PropType<Sort[]>;
|
|
15
16
|
required: true;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
selectedSort: {
|
|
19
|
+
type: PropType<Sort>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
selectedSortProvidedEvent: {
|
|
23
|
+
type: PropType<XEvent>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
clickedSortEvent: {
|
|
27
|
+
type: PropType<XEvent>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
18
30
|
}>, {
|
|
19
31
|
emitUserClickedASort: (sort: Sort) => void;
|
|
20
32
|
rootRef: import("vue").Ref<import("vue").DefineComponent<{}, {}, any> | undefined, import("vue").DefineComponent<{}, {}, any> | undefined>;
|
|
21
|
-
selectedSort: import("vue").ComputedRef<string>;
|
|
22
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
animation: PropType<string | Component>;
|
|
23
35
|
items: {
|
|
24
36
|
type: PropType<Sort[]>;
|
|
25
37
|
required: true;
|
|
26
38
|
};
|
|
27
|
-
|
|
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
|
+
};
|
|
28
51
|
}>> & Readonly<{
|
|
29
52
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}>, {
|
|
53
|
+
}>, {
|
|
54
|
+
selectedSortProvidedEvent: keyof import("../../wiring/events.types").XEventsTypes;
|
|
55
|
+
clickedSortEvent: keyof import("../../wiring/events.types").XEventsTypes;
|
|
56
|
+
}, {}, {
|
|
31
57
|
BaseDropdown: import("vue").DefineComponent<{}, {}, any>;
|
|
32
58
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
|
|
33
59
|
```
|
|
@@ -10,28 +10,53 @@ The `SortList` component allows user to select the search results order. This co
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
animation: {
|
|
14
|
+
type: PropType<string | Component>;
|
|
15
|
+
default: () => string;
|
|
16
|
+
};
|
|
13
17
|
items: {
|
|
14
18
|
type: PropType<Sort[]>;
|
|
15
19
|
required: true;
|
|
16
20
|
};
|
|
17
|
-
|
|
18
|
-
type: PropType<
|
|
19
|
-
|
|
21
|
+
selectedSort: {
|
|
22
|
+
type: PropType<Sort>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
selectedSortProvidedEvent: {
|
|
26
|
+
type: PropType<XEvent>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
clickedSortEvent: {
|
|
30
|
+
type: PropType<XEvent>;
|
|
31
|
+
default: string;
|
|
20
32
|
};
|
|
21
33
|
}>, {
|
|
22
34
|
listItems: import("vue").ComputedRef<SortListItem[]>;
|
|
23
|
-
selectedSort: import("vue").ComputedRef<string>;
|
|
24
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
animation: {
|
|
37
|
+
type: PropType<string | Component>;
|
|
38
|
+
default: () => string;
|
|
39
|
+
};
|
|
25
40
|
items: {
|
|
26
41
|
type: PropType<Sort[]>;
|
|
27
42
|
required: true;
|
|
28
43
|
};
|
|
29
|
-
|
|
30
|
-
type: PropType<
|
|
31
|
-
|
|
44
|
+
selectedSort: {
|
|
45
|
+
type: PropType<Sort>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
selectedSortProvidedEvent: {
|
|
49
|
+
type: PropType<XEvent>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
clickedSortEvent: {
|
|
53
|
+
type: PropType<XEvent>;
|
|
54
|
+
default: string;
|
|
32
55
|
};
|
|
33
56
|
}>> & Readonly<{}>, {
|
|
34
57
|
animation: string | Component;
|
|
58
|
+
selectedSortProvidedEvent: keyof XEventsTypes;
|
|
59
|
+
clickedSortEvent: keyof XEventsTypes;
|
|
35
60
|
}, {}, {
|
|
36
61
|
BaseEventButton: import("vue").DefineComponent<{}, {}, any>;
|
|
37
62
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
|
|
@@ -10,30 +10,55 @@ The `SortPickerList` component allows user to select the search results order. T
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
animation: {
|
|
14
|
+
type: PropType<string | Component>;
|
|
15
|
+
default: () => string;
|
|
16
|
+
};
|
|
13
17
|
items: {
|
|
14
18
|
type: PropType<Sort[]>;
|
|
15
19
|
required: true;
|
|
16
20
|
};
|
|
17
|
-
|
|
18
|
-
type: PropType<
|
|
19
|
-
|
|
21
|
+
selectedSort: {
|
|
22
|
+
type: PropType<Sort>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
selectedSortProvidedEvent: {
|
|
26
|
+
type: PropType<XEvent>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
clickedSortEvent: {
|
|
30
|
+
type: PropType<XEvent>;
|
|
31
|
+
default: string;
|
|
20
32
|
};
|
|
21
33
|
buttonClass: StringConstructor;
|
|
22
34
|
}>, {
|
|
23
35
|
listItems: import("vue").ComputedRef<SortPickerItem[]>;
|
|
24
|
-
selectedSort: import("vue").ComputedRef<string>;
|
|
25
36
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
animation: {
|
|
38
|
+
type: PropType<string | Component>;
|
|
39
|
+
default: () => string;
|
|
40
|
+
};
|
|
26
41
|
items: {
|
|
27
42
|
type: PropType<Sort[]>;
|
|
28
43
|
required: true;
|
|
29
44
|
};
|
|
30
|
-
|
|
31
|
-
type: PropType<
|
|
32
|
-
|
|
45
|
+
selectedSort: {
|
|
46
|
+
type: PropType<Sort>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
selectedSortProvidedEvent: {
|
|
50
|
+
type: PropType<XEvent>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
clickedSortEvent: {
|
|
54
|
+
type: PropType<XEvent>;
|
|
55
|
+
default: string;
|
|
33
56
|
};
|
|
34
57
|
buttonClass: StringConstructor;
|
|
35
58
|
}>> & Readonly<{}>, {
|
|
36
59
|
animation: string | Component;
|
|
60
|
+
selectedSortProvidedEvent: keyof XEventsTypes;
|
|
61
|
+
clickedSortEvent: keyof XEventsTypes;
|
|
37
62
|
}, {}, {
|
|
38
63
|
BaseEventButton: import("vue").DefineComponent<{}, {}, any>;
|
|
39
64
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [UseAliasAPI](./x-components.usealiasapi.md) > [browseSelectedSort](./x-components.usealiasapi.browseselectedsort.md)
|
|
4
|
+
|
|
5
|
+
## UseAliasAPI.browseSelectedSort property
|
|
6
|
+
|
|
7
|
+
The [BrowseXModule](./x-components.browsexmodule.md) selected sort.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
readonly browseSelectedSort: string;
|
|
13
|
+
```
|
|
@@ -37,6 +37,27 @@ Description
|
|
|
37
37
|
</th></tr></thead>
|
|
38
38
|
<tbody><tr><td>
|
|
39
39
|
|
|
40
|
+
[browseSelectedSort](./x-components.usealiasapi.browseselectedsort.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
`readonly`
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
string
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</td><td>
|
|
54
|
+
|
|
55
|
+
The [BrowseXModule](./x-components.browsexmodule.md) selected sort.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
</td></tr>
|
|
59
|
+
<tr><td>
|
|
60
|
+
|
|
40
61
|
[browseTotalResults](./x-components.usealiasapi.browsetotalresults.md)
|
|
41
62
|
|
|
42
63
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorActions](./x-components.vendoractions.md)
|
|
4
|
+
|
|
5
|
+
## VendorActions interface
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export interface VendorActions
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorGetters](./x-components.vendorgetters.md)
|
|
4
|
+
|
|
5
|
+
## VendorGetters interface
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export interface VendorGetters
|
|
11
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorMutations](./x-components.vendormutations.md)
|
|
4
|
+
|
|
5
|
+
## VendorMutations interface
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export interface VendorMutations
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
<table><thead><tr><th>
|
|
16
|
+
|
|
17
|
+
Property
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</th><th>
|
|
21
|
+
|
|
22
|
+
Modifiers
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Type
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Description
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th></tr></thead>
|
|
36
|
+
<tbody><tr><td>
|
|
37
|
+
|
|
38
|
+
[setResults](./x-components.vendormutations.setresults.md)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
(results: [VendorResult](./x-components.vendorresult.md)<!-- -->\[\]) => void
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td></tr>
|
|
53
|
+
</tbody></table>
|
|
54
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorMutations](./x-components.vendormutations.md) > [setResults](./x-components.vendormutations.setresults.md)
|
|
4
|
+
|
|
5
|
+
## VendorMutations.setResults property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
setResults: (results: VendorResult[]) => void;
|
|
11
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorResult](./x-components.vendorresult.md)
|
|
4
|
+
|
|
5
|
+
## VendorResult interface
|
|
6
|
+
|
|
7
|
+
The interface for a vendor result, extending the base Result interface.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface VendorResult extends Omit<Result, 'modelName'>, NamedModel<'VendorResult'>
|
|
13
|
+
```
|
|
14
|
+
**Extends:** Omit<Result, 'modelName'>, NamedModel<'VendorResult'>
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
<table><thead><tr><th>
|
|
19
|
+
|
|
20
|
+
Property
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</th><th>
|
|
24
|
+
|
|
25
|
+
Modifiers
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</th><th>
|
|
29
|
+
|
|
30
|
+
Type
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
</th><th>
|
|
34
|
+
|
|
35
|
+
Description
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</th></tr></thead>
|
|
39
|
+
<tbody><tr><td>
|
|
40
|
+
|
|
41
|
+
[position](./x-components.vendorresult.position.md)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
</td><td>
|
|
48
|
+
|
|
49
|
+
number
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</td></tr>
|
|
56
|
+
</tbody></table>
|
|
57
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [VendorResult](./x-components.vendorresult.md) > [position](./x-components.vendorresult.position.md)
|
|
4
|
+
|
|
5
|
+
## VendorResult.position property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
position: number;
|
|
11
|
+
```
|