@empathyco/x-components 9.3.2 → 10.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 +20 -0
- package/docs/API-reference/api/x-adapter-platform.md +9 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.md +0 -19
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.add2cart.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.checkout.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.click.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.display.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.displayclick.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.md +139 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.query.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.md +17 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.tagging.md +11 -0
- package/docs/API-reference/api/x-components.aimutations.md +19 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestionssearchtagging.md +13 -0
- package/docs/API-reference/api/x-components.aistate.config.md +2 -0
- package/docs/API-reference/api/x-components.aistate.md +21 -0
- package/docs/API-reference/api/x-components.aistate.suggestionstagging.md +13 -0
- package/docs/API-reference/api/x-components.aixevents.aicomponentunmounted.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.aisuggestionssearchtaggingchanged.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.md +34 -0
- package/docs/API-reference/api/x-components.basecurrency.md +2 -0
- package/docs/API-reference/api/x-components.baseeventsmodalclose.md +1 -1
- package/docs/API-reference/api/x-components.baseeventsmodalopen.md +1 -1
- package/docs/API-reference/api/x-components.basepricefilterlabel.md +2 -0
- package/docs/API-reference/api/x-components.baseresultcurrentprice.md +2 -0
- package/docs/API-reference/api/x-components.baseresultpreviousprice.md +2 -0
- package/docs/API-reference/api/x-components.createtrackaicarouseltaggingwire.md +56 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -0
- package/docs/API-reference/api/x-components.md +46 -2
- package/docs/API-reference/api/x-components.simplefilter.md +2 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -0
- package/docs/API-reference/api/x-components.trackaicarouseladdtocartwire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfodebouncedwire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfowire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselresultclickedwire.md +13 -0
- package/docs/API-reference/api/x-types.aisuggestionsearch.md +0 -17
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.add2cart.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.checkout.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.click.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.display.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.displayclick.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.md +139 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.query.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionssearchresponse.md +17 -0
- package/docs/API-reference/api/x-types.aisuggestionssearchresponse.suggestionstagging.md +11 -0
- package/docs/API-reference/api/x-types.md +9 -0
- package/docs/API-reference/components/common/currency/x-components.base-currency.md +19 -0
- package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +37 -0
- package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +21 -0
- package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +22 -0
- package/js/components/currency/base-currency.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue2.js +8 -1
- package/js/components/currency/base-currency.vue2.js.map +1 -1
- package/js/components/filters/labels/base-price-filter-label.vue.js +8 -0
- package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js +3 -2
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue2.js +6 -0
- package/js/components/result/base-result-current-price.vue2.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js +3 -2
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue2.js +6 -0
- package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
- package/js/index.js +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue.js.map +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js +4 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js +1 -0
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js.map +1 -1
- package/js/x-modules/ai/store/emitters.js +4 -0
- package/js/x-modules/ai/store/emitters.js.map +1 -1
- package/js/x-modules/ai/store/module.js +4 -0
- package/js/x-modules/ai/store/module.js.map +1 -1
- package/js/x-modules/tagging/store/module.js +1 -1
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +52 -7
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter-platform.api.json +186 -5
- package/report/x-components.api.json +435 -29
- package/report/x-components.api.md +47 -6
- package/report/x-types.api.json +184 -6
- package/tagging/index.js +1 -1
- package/types/src/components/currency/base-currency.vue.d.ts +12 -0
- package/types/src/components/currency/base-currency.vue.d.ts.map +1 -1
- package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts +12 -0
- package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -1
- package/types/src/components/modals/base-events-modal-close.vue.d.ts +1 -1
- package/types/src/components/modals/base-events-modal-open.vue.d.ts +1 -1
- package/types/src/components/result/base-result-current-price.vue.d.ts +12 -0
- package/types/src/components/result/base-result-current-price.vue.d.ts.map +1 -1
- package/types/src/components/result/base-result-previous-price.vue.d.ts +12 -0
- package/types/src/components/result/base-result-previous-price.vue.d.ts.map +1 -1
- package/types/src/components/snippet-callbacks.vue.d.ts +2 -0
- package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/src/x-modules/ai/components/ai-carousel.vue.d.ts.map +1 -1
- package/types/src/x-modules/ai/events.types.d.ts +3 -1
- package/types/src/x-modules/ai/events.types.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/emitters.d.ts +4 -0
- package/types/src/x-modules/ai/store/emitters.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/module.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/types.d.ts +10 -1
- package/types/src/x-modules/ai/store/types.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -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 +2 -0
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/types/src/x-modules/tagging/wiring.d.ts +39 -4
- package/types/src/x-modules/tagging/wiring.d.ts.map +1 -1
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.tagging.md +0 -13
- package/docs/API-reference/api/x-components.trackaisuggestionssearchwire.md +0 -13
- package/docs/API-reference/api/x-types.aisuggestionsearch.tagging.md +0 -13
|
@@ -424,6 +424,17 @@ Factory helper to create a wire to set the queryTagging.
|
|
|
424
424
|
Helper function for creating type-safe [StoreEmitters](./x-components.storeemitters.md)<!-- -->.
|
|
425
425
|
|
|
426
426
|
|
|
427
|
+
</td></tr>
|
|
428
|
+
<tr><td>
|
|
429
|
+
|
|
430
|
+
[createTrackAiCarouselTaggingWire(property)](./x-components.createtrackaicarouseltaggingwire.md)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
</td><td>
|
|
434
|
+
|
|
435
|
+
Factory helper to create a wire for the track of an ai carousel taggable element.
|
|
436
|
+
|
|
437
|
+
|
|
427
438
|
</td></tr>
|
|
428
439
|
<tr><td>
|
|
429
440
|
|
|
@@ -7974,12 +7985,45 @@ Performs a track of a result added to the cart.
|
|
|
7974
7985
|
</td></tr>
|
|
7975
7986
|
<tr><td>
|
|
7976
7987
|
|
|
7977
|
-
[
|
|
7988
|
+
[trackAiCarouselAddToCartWire](./x-components.trackaicarouseladdtocartwire.md)
|
|
7989
|
+
|
|
7990
|
+
|
|
7991
|
+
</td><td>
|
|
7992
|
+
|
|
7993
|
+
Performs a track of an ai carousel result added to the cart.
|
|
7994
|
+
|
|
7995
|
+
|
|
7996
|
+
</td></tr>
|
|
7997
|
+
<tr><td>
|
|
7998
|
+
|
|
7999
|
+
[trackAiCarouselQueryTaggingInfoDebouncedWire](./x-components.trackaicarouselquerytagginginfodebouncedwire.md)
|
|
8000
|
+
|
|
8001
|
+
|
|
8002
|
+
</td><td>
|
|
8003
|
+
|
|
8004
|
+
Debounced version of [trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
|
|
8005
|
+
|
|
8006
|
+
|
|
8007
|
+
</td></tr>
|
|
8008
|
+
<tr><td>
|
|
8009
|
+
|
|
8010
|
+
[trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
</td><td>
|
|
8014
|
+
|
|
8015
|
+
Performs a track of a query with no results that used ai carousel as fallback. The query will be changed to the original query of the search in order to associate the return of related results to that query, instead of track a no results query.
|
|
8016
|
+
|
|
8017
|
+
|
|
8018
|
+
</td></tr>
|
|
8019
|
+
<tr><td>
|
|
8020
|
+
|
|
8021
|
+
[trackAiCarouselResultClickedWire](./x-components.trackaicarouselresultclickedwire.md)
|
|
7978
8022
|
|
|
7979
8023
|
|
|
7980
8024
|
</td><td>
|
|
7981
8025
|
|
|
7982
|
-
Tracks
|
|
8026
|
+
Tracks the tagging of an ai carousel result clicked.
|
|
7983
8027
|
|
|
7984
8028
|
|
|
7985
8029
|
</td></tr>
|
|
@@ -205,9 +205,11 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
205
205
|
AiSuggestionsRequestUpdated?: import("@empathyco/x-types").AiSuggestionsRequest | null | undefined;
|
|
206
206
|
AiSuggestionsSearchRequestUpdated?: import("@empathyco/x-types").AiSuggestionsSearchRequest | null | undefined;
|
|
207
207
|
AiSuggestionsSearchChanged?: import("@empathyco/x-types").AiSuggestionSearch[] | undefined;
|
|
208
|
+
AiSuggestionsSearchTaggingChanged?: import("@empathyco/x-types").AiSuggestionSearchTagging | undefined;
|
|
208
209
|
UserClickedAnAiCarouselResult?: import("@empathyco/x-types").Result | undefined;
|
|
209
210
|
UserClickedAnAiCarouselAdd2Cart?: import("@empathyco/x-types").Result | undefined;
|
|
210
211
|
AiComponentMounted?: void | undefined;
|
|
212
|
+
AiComponentUnmounted?: void | undefined;
|
|
211
213
|
VendorResultsChanged?: Omit<import("../../../vendor").VendorResult, "modelName">[] | undefined;
|
|
212
214
|
VendorResultMounted?: import("../../../vendor").VendorResult | undefined;
|
|
213
215
|
UserViewedAVendorResult?: import("../../../vendor").VendorResult | undefined;
|
|
@@ -195,9 +195,11 @@ _default: import("vue").DefineComponent<{}, {
|
|
|
195
195
|
AiSuggestionsRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsRequest | null, metadata: WireMetadata) => unknown;
|
|
196
196
|
AiSuggestionsSearchRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsSearchRequest | null, metadata: WireMetadata) => unknown;
|
|
197
197
|
AiSuggestionsSearchChanged: (payload: import("@empathyco/x-types").AiSuggestionSearch[], metadata: WireMetadata) => unknown;
|
|
198
|
+
AiSuggestionsSearchTaggingChanged: (payload: import("@empathyco/x-types").AiSuggestionSearchTagging, metadata: WireMetadata) => unknown;
|
|
198
199
|
UserClickedAnAiCarouselResult: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
199
200
|
UserClickedAnAiCarouselAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
200
201
|
AiComponentMounted: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
202
|
+
AiComponentUnmounted: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
201
203
|
VendorResultsChanged: (payload: Omit<import("..").VendorResult, "modelName">[], metadata: WireMetadata) => unknown;
|
|
202
204
|
VendorResultMounted: (payload: import("..").VendorResult, metadata: WireMetadata) => unknown;
|
|
203
205
|
UserViewedAVendorResult: (payload: import("..").VendorResult, metadata: WireMetadata) => unknown;
|
|
@@ -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) > [trackAiCarouselAddToCartWire](./x-components.trackaicarouseladdtocartwire.md)
|
|
4
|
+
|
|
5
|
+
## trackAiCarouselAddToCartWire variable
|
|
6
|
+
|
|
7
|
+
Performs a track of an ai carousel result added to the cart.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackAiCarouselAddToCartWire: Wire<Taggable>
|
|
13
|
+
```
|
|
@@ -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) > [trackAiCarouselQueryTaggingInfoDebouncedWire](./x-components.trackaicarouselquerytagginginfodebouncedwire.md)
|
|
4
|
+
|
|
5
|
+
## trackAiCarouselQueryTaggingInfoDebouncedWire variable
|
|
6
|
+
|
|
7
|
+
Debounced version of [trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackAiCarouselQueryTaggingInfoDebouncedWire: Wire<any>
|
|
13
|
+
```
|
|
@@ -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) > [trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
|
|
4
|
+
|
|
5
|
+
## trackAiCarouselQueryTaggingInfoWire variable
|
|
6
|
+
|
|
7
|
+
Performs a track of a query with no results that used ai carousel as fallback. The query will be changed to the original query of the search in order to associate the return of related results to that query, instead of track a no results query.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackAiCarouselQueryTaggingInfoWire: Wire<any>
|
|
13
|
+
```
|
|
@@ -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) > [trackAiCarouselResultClickedWire](./x-components.trackaicarouselresultclickedwire.md)
|
|
4
|
+
|
|
5
|
+
## trackAiCarouselResultClickedWire variable
|
|
6
|
+
|
|
7
|
+
Tracks the tagging of an ai carousel result clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackAiCarouselResultClickedWire: Wire<Taggable>
|
|
13
|
+
```
|
|
@@ -85,23 +85,6 @@ string
|
|
|
85
85
|
</td><td>
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
</td></tr>
|
|
89
|
-
<tr><td>
|
|
90
|
-
|
|
91
|
-
[tagging](./x-types.aisuggestionsearch.tagging.md)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</td><td>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</td><td>
|
|
98
|
-
|
|
99
|
-
{ query: [TaggingRequest](./x-types.taggingrequest.md)<!-- -->; }
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</td><td>
|
|
103
|
-
|
|
104
|
-
|
|
105
88
|
</td></tr>
|
|
106
89
|
</tbody></table>
|
|
107
90
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [add2cart](./x-types.aisuggestionsearchtagging.add2cart.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.add2cart property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
add2cart: TaggingRequest;
|
|
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-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [checkout](./x-types.aisuggestionsearchtagging.checkout.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.checkout property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
checkout: TaggingRequest;
|
|
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-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [click](./x-types.aisuggestionsearchtagging.click.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.click property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
click: TaggingRequest;
|
|
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-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [display](./x-types.aisuggestionsearchtagging.display.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.display property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
display: TaggingRequest;
|
|
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-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [displayClick](./x-types.aisuggestionsearchtagging.displayclick.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.displayClick property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
displayClick: TaggingRequest;
|
|
11
|
+
```
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging interface
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export interface AiSuggestionSearchTagging
|
|
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
|
+
[add2cart](./x-types.aisuggestionsearchtagging.add2cart.md)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td></tr>
|
|
53
|
+
<tr><td>
|
|
54
|
+
|
|
55
|
+
[checkout](./x-types.aisuggestionsearchtagging.checkout.md)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
</td><td>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
</td><td>
|
|
62
|
+
|
|
63
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</td></tr>
|
|
70
|
+
<tr><td>
|
|
71
|
+
|
|
72
|
+
[click](./x-types.aisuggestionsearchtagging.click.md)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td><td>
|
|
79
|
+
|
|
80
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</td><td>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</td></tr>
|
|
87
|
+
<tr><td>
|
|
88
|
+
|
|
89
|
+
[display](./x-types.aisuggestionsearchtagging.display.md)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
</td><td>
|
|
96
|
+
|
|
97
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td></tr>
|
|
104
|
+
<tr><td>
|
|
105
|
+
|
|
106
|
+
[displayClick](./x-types.aisuggestionsearchtagging.displayclick.md)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
</td><td>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
</td><td>
|
|
113
|
+
|
|
114
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</td><td>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
</td></tr>
|
|
121
|
+
<tr><td>
|
|
122
|
+
|
|
123
|
+
[query](./x-types.aisuggestionsearchtagging.query.md)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</td><td>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</td><td>
|
|
130
|
+
|
|
131
|
+
[TaggingRequest](./x-types.taggingrequest.md)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</td><td>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</td></tr>
|
|
138
|
+
</tbody></table>
|
|
139
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-types](./x-types.md) > [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) > [query](./x-types.aisuggestionsearchtagging.query.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionSearchTagging.query property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
query: TaggingRequest;
|
|
11
|
+
```
|
|
@@ -51,6 +51,23 @@ Description
|
|
|
51
51
|
</td><td>
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
</td></tr>
|
|
55
|
+
<tr><td>
|
|
56
|
+
|
|
57
|
+
[suggestionsTagging](./x-types.aisuggestionssearchresponse.suggestionstagging.md)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td><td>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</td><td>
|
|
64
|
+
|
|
65
|
+
[AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
|
|
54
71
|
</td></tr>
|
|
55
72
|
</tbody></table>
|
|
56
73
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-types](./x-types.md) > [AiSuggestionsSearchResponse](./x-types.aisuggestionssearchresponse.md) > [suggestionsTagging](./x-types.aisuggestionssearchresponse.suggestionstagging.md)
|
|
4
|
+
|
|
5
|
+
## AiSuggestionsSearchResponse.suggestionsTagging property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
suggestionsTagging: AiSuggestionSearchTagging;
|
|
11
|
+
```
|
|
@@ -246,6 +246,15 @@ Data for each query suggested.
|
|
|
246
246
|
Each suggestion search is a query and the results of that query.
|
|
247
247
|
|
|
248
248
|
|
|
249
|
+
</td></tr>
|
|
250
|
+
<tr><td>
|
|
251
|
+
|
|
252
|
+
[AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
</td><td>
|
|
256
|
+
|
|
257
|
+
|
|
249
258
|
</td></tr>
|
|
250
259
|
<tr><td>
|
|
251
260
|
|
|
@@ -13,6 +13,7 @@ title: BaseCurrency
|
|
|
13
13
|
| <code>value</code> | Numeric value to be formatted. | <code>number</code> | <code></code> |
|
|
14
14
|
| <code>currency</code> | The ISO 4217 currency value. If not specified we use snippetConfig.currency | <code>string</code> | <code></code> |
|
|
15
15
|
| <code>format</code> | The currency format possibilities from Intl.NumberFormatOptions.<br />Allows customization of decimal places, grouping, etc.<br />Note: 'currency' and 'style' options are managed internally. | <code>Omit<Intl.NumberFormatOptions, 'currency' \| 'style'></code> | <code>() => ({})</code> |
|
|
16
|
+
| <code>locale</code> | Locale used to format the value. If not specified we use snippetConfig.uiLang | <code>string</code> | <code></code> |
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -110,3 +111,21 @@ internally):
|
|
|
110
111
|
import BaseCurrency from "@empathyco/x-components/js/components/currency/base-currency.vue";
|
|
111
112
|
</script>
|
|
112
113
|
```
|
|
114
|
+
|
|
115
|
+
### Using a different locale
|
|
116
|
+
|
|
117
|
+
By default the currency is formatted using the `uiLang` of the `snippetConfig`. You can format
|
|
118
|
+
the value in a different locale using the `locale` prop:
|
|
119
|
+
|
|
120
|
+
```vue
|
|
121
|
+
<template>
|
|
122
|
+
<!-- output: '€1,234.56' even if snippetConfig.uiLang is 'es-ES' -->
|
|
123
|
+
<BaseCurrency :value="1234.56" currency="EUR" locale="en-US" />
|
|
124
|
+
<!-- output: '1234,56 €' for snippetConfig.uiLang 'es-ES' -->
|
|
125
|
+
<BaseCurrency :value="1234.56" currency="EUR" />
|
|
126
|
+
</template>
|
|
127
|
+
|
|
128
|
+
<script setup>
|
|
129
|
+
import BaseCurrency from "@empathyco/x-components/js/components/currency/base-currency.vue";
|
|
130
|
+
</script>
|
|
131
|
+
```
|
package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md
CHANGED
|
@@ -16,6 +16,7 @@ value of the filter.
|
|
|
16
16
|
| <code>filter</code> | The filter data for get min and max value. | <code>{ range: RangeValue }</code> | <code></code> |
|
|
17
17
|
| <code>currency</code> | An ISO 4217 currency value. | <code>string</code> | <code></code> |
|
|
18
18
|
| <code>format</code> | The currency format possibilities from Intl.NumberFormatOptions.<br />Allows customization of decimal places, grouping, etc. | <code>Omit<Intl.NumberFormatOptions, 'currency' \| 'style'></code> | <code></code> |
|
|
19
|
+
| <code>locale</code> | Locale used to format the currency. If not specified we use snippetConfig.uiLang | <code>string</code> | <code></code> |
|
|
19
20
|
| <code>lessThan</code> | Message shown when the filter hasn't got the min value defined. | <code>string</code> | <code></code> |
|
|
20
21
|
| <code>fromTo</code> | Message shown when the filter has both the min and max values defined. | <code>string</code> | <code></code> |
|
|
21
22
|
| <code>from</code> | Message shown when the filter hasn't got max value defined. | <code>string</code> | <code></code> |
|
|
@@ -99,3 +100,39 @@ import {
|
|
|
99
100
|
} from "@empathyco/x-components/facets";
|
|
100
101
|
</script>
|
|
101
102
|
```
|
|
103
|
+
|
|
104
|
+
### Using a different locale
|
|
105
|
+
|
|
106
|
+
By default the prices are formatted using the `uiLang` of the `snippetConfig`. If you want to
|
|
107
|
+
format them in a different locale, you can pass the `locale` prop:
|
|
108
|
+
|
|
109
|
+
```vue
|
|
110
|
+
<template>
|
|
111
|
+
<Facets>
|
|
112
|
+
<template #price="{ facet }">
|
|
113
|
+
<Filters v-slot="{ filter }" :filters="facet.filters">
|
|
114
|
+
<NumberRangeFilter :filter="filter" v-slot="{ filter }">
|
|
115
|
+
<!-- output: 'From $10.00 to $300.00' even if snippetConfig.uiLang is 'es-ES' -->
|
|
116
|
+
<BasePriceFilterLabel
|
|
117
|
+
:filter="filter"
|
|
118
|
+
currency="USD"
|
|
119
|
+
locale="en-US"
|
|
120
|
+
lessThan="Less than {max}"
|
|
121
|
+
fromTo="From {min} to {max}"
|
|
122
|
+
from="More than {min}"
|
|
123
|
+
/>
|
|
124
|
+
</NumberRangeFilter>
|
|
125
|
+
</Filters>
|
|
126
|
+
</template>
|
|
127
|
+
</Facets>
|
|
128
|
+
</template>
|
|
129
|
+
|
|
130
|
+
<script setup>
|
|
131
|
+
import BasePriceFilterLabel from "@empathyco/x-components/js/components/filters/labels/base-price-filter-label.vue";
|
|
132
|
+
import {
|
|
133
|
+
Filters,
|
|
134
|
+
Facets,
|
|
135
|
+
NumberRangeFilter,
|
|
136
|
+
} from "@empathyco/x-components/facets";
|
|
137
|
+
</script>
|
|
138
|
+
```
|
package/docs/API-reference/components/common/result/x-components.base-result-current-price.md
CHANGED
|
@@ -16,6 +16,7 @@ that may or may not be on sale.
|
|
|
16
16
|
| <code>result</code> | (Required) The @empathyco/x-types#Result information. | <code>Result</code> | <code></code> |
|
|
17
17
|
| <code>currency</code> | Optional value coming from https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes. | <code>string</code> | <code></code> |
|
|
18
18
|
| <code>format</code> | The currency format possibilities from Intl.NumberFormatOptions.<br />Allows customization of decimal places, grouping, etc. | <code>Omit<Intl.NumberFormatOptions, 'currency' \| 'style'></code> | <code>() => ({})</code> |
|
|
19
|
+
| <code>locale</code> | Locale used to format the currency. If not specified we use snippetConfig.uiLang | <code>string</code> | <code></code> |
|
|
19
20
|
|
|
20
21
|
## Slots
|
|
21
22
|
|
|
@@ -66,6 +67,26 @@ const result = {
|
|
|
66
67
|
</script>
|
|
67
68
|
```
|
|
68
69
|
|
|
70
|
+
### Using a different locale
|
|
71
|
+
|
|
72
|
+
By default the price is formatted using the `uiLang` of the `snippetConfig`. If you want to
|
|
73
|
+
format the price in a different locale, you can pass the `locale` prop:
|
|
74
|
+
|
|
75
|
+
```vue
|
|
76
|
+
<template>
|
|
77
|
+
<!-- output: '$123.45' even if snippetConfig.uiLang is 'es-ES' -->
|
|
78
|
+
<BaseResultCurrentPrice :result="result" currency="USD" locale="en-US" />
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<script setup>
|
|
82
|
+
import { BaseResultCurrentPrice } from "@empathyco/x-components";
|
|
83
|
+
const result = {
|
|
84
|
+
price: { value: 123.45, hasDiscount: false },
|
|
85
|
+
// ...other result properties
|
|
86
|
+
};
|
|
87
|
+
</script>
|
|
88
|
+
```
|
|
89
|
+
|
|
69
90
|
### Overriding default slot
|
|
70
91
|
|
|
71
92
|
```vue
|
package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md
CHANGED
|
@@ -15,6 +15,7 @@ Component that renders the @empathyco/x-types#Result previous price.
|
|
|
15
15
|
| <code>result</code> | (Required) The @empathyco/x-types#Result information. | <code>Result</code> | <code></code> |
|
|
16
16
|
| <code>currency</code> | Optional value coming from https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes. | <code>string</code> | <code></code> |
|
|
17
17
|
| <code>format</code> | The currency format possibilities from Intl.NumberFormatOptions.<br />Allows customization of decimal places, grouping, etc. | <code>Omit<Intl.NumberFormatOptions, 'currency' \| 'style'></code> | <code>() => ({})</code> |
|
|
18
|
+
| <code>locale</code> | Locale used to format the currency. If not specified we use snippetConfig.uiLang | <code>string</code> | <code></code> |
|
|
18
19
|
|
|
19
20
|
## Slots
|
|
20
21
|
|
|
@@ -67,6 +68,27 @@ const result = {
|
|
|
67
68
|
</script>
|
|
68
69
|
```
|
|
69
70
|
|
|
71
|
+
### Using a different locale
|
|
72
|
+
|
|
73
|
+
By default the price is formatted using the `uiLang` of the `snippetConfig`. If you want to
|
|
74
|
+
format the price in a different locale, you can pass the `locale` prop:
|
|
75
|
+
|
|
76
|
+
```vue
|
|
77
|
+
<template>
|
|
78
|
+
<!-- output: '$199.99' even if snippetConfig.uiLang is 'es-ES' -->
|
|
79
|
+
<BaseResultPreviousPrice :result="result" currency="USD" locale="en-US" />
|
|
80
|
+
</template>
|
|
81
|
+
|
|
82
|
+
<script setup>
|
|
83
|
+
import { BaseResultPreviousPrice } from "@empathyco/x-components";
|
|
84
|
+
|
|
85
|
+
const result = {
|
|
86
|
+
price: { originalValue: 199.99, hasDiscount: true },
|
|
87
|
+
// ...other result properties
|
|
88
|
+
};
|
|
89
|
+
</script>
|
|
90
|
+
```
|
|
91
|
+
|
|
70
92
|
### Overriding default slot
|
|
71
93
|
|
|
72
94
|
```vue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-currency.vue.js","sources":["../../../../src/components/currency/base-currency.vue"],"sourcesContent":["<template>\n <span class=\"x-currency\">{{ currencyText }}</span>\n</template>\n\n<script lang=\"ts\">\nimport type { SnippetConfig } from '@x/x-installer'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent, inject } from 'vue'\n\nexport default defineComponent({\n props: {\n /**\n * Numeric value to be formatted.\n *\n * @remarks Pass the value with 'v-bind:value' (or ':value' shortcut) instead of plain string.\n * @remarks Be careful using numbers under Number.MAX_SAFE_INTEGER to avoid unexpected errors.\n *\n * @public\n */\n value: {\n type: Number,\n required: true,\n },\n\n /**\n * The ISO 4217 currency value. If not specified we use snippetConfig.currency\n *\n * @public\n */\n currency: String,\n /**\n * The currency format possibilities from Intl.NumberFormatOptions.\n * Allows customization of decimal places, grouping, etc.\n * Note: 'currency' and 'style' options are managed internally.\n *\n * @public\n */\n format: {\n type: Object as PropType<Omit<Intl.NumberFormatOptions, 'currency' | 'style'>>,\n default: () => ({}),\n },\n },\n\n setup(props) {\n const snippetConfig = inject<SnippetConfig>('snippetConfig')\n\n const currencyText = computed<string>(() => {\n const currency = props.currency ?? snippetConfig?.currency ?? 'EUR'\n return Intl.NumberFormat(
|
|
1
|
+
{"version":3,"file":"base-currency.vue.js","sources":["../../../../src/components/currency/base-currency.vue"],"sourcesContent":["<template>\n <span class=\"x-currency\">{{ currencyText }}</span>\n</template>\n\n<script lang=\"ts\">\nimport type { SnippetConfig } from '@x/x-installer'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent, inject } from 'vue'\n\nexport default defineComponent({\n props: {\n /**\n * Numeric value to be formatted.\n *\n * @remarks Pass the value with 'v-bind:value' (or ':value' shortcut) instead of plain string.\n * @remarks Be careful using numbers under Number.MAX_SAFE_INTEGER to avoid unexpected errors.\n *\n * @public\n */\n value: {\n type: Number,\n required: true,\n },\n\n /**\n * The ISO 4217 currency value. If not specified we use snippetConfig.currency\n *\n * @public\n */\n currency: String,\n /**\n * The currency format possibilities from Intl.NumberFormatOptions.\n * Allows customization of decimal places, grouping, etc.\n * Note: 'currency' and 'style' options are managed internally.\n *\n * @public\n */\n format: {\n type: Object as PropType<Omit<Intl.NumberFormatOptions, 'currency' | 'style'>>,\n default: () => ({}),\n },\n /**\n * Locale used to format the value. If not specified we use snippetConfig.uiLang\n *\n * @public\n */\n locale: String,\n },\n\n setup(props) {\n const snippetConfig = inject<SnippetConfig>('snippetConfig')\n\n const currencyText = computed<string>(() => {\n const currency = props.currency ?? snippetConfig?.currency ?? 'EUR'\n const locale = props.locale ?? snippetConfig?.uiLang\n return Intl.NumberFormat(locale, {\n style: 'currency',\n ...props.format,\n currency,\n }).format(props.value)\n })\n\n return {\n currencyText,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Example\n\nRenders the value received as a property, which always must be a JavaScript number, formatted\nusing the Intl.NumberFormat API with ISO 4217 currency codes. The rendered tag is a span in order\nto render a default inline HTML element.\n\n### Basic usage\n\n```vue\n<template>\n <BaseCurrency :value=\"12345678.87654321\" currency=\"EUR\" />\n <!-- output depends on locale, e.g., '12.345.678,88 €' for es-ES -->\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n\n### Customizing decimal places\n\n```vue\n<template>\n <BaseCurrency\n :value=\"12345678.87654321\"\n currency=\"USD\"\n :format=\"{ minimumFractionDigits: 3, maximumFractionDigits: 3 }\"\n />\n <!-- output: '$12,345,678.877' for en-US locale -->\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n\n### No decimal places\n\n```vue\n<template>\n <BaseCurrency\n :value=\"12345678.87\"\n currency=\"EUR\"\n :format=\"{ minimumFractionDigits: 0, maximumFractionDigits: 0 }\"\n />\n <!-- output: '12.345.679 €' for es-ES locale (rounds up) -->\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n\n### Using different currencies\n\n```vue\n<template>\n <div>\n <BaseCurrency :value=\"1234.56\" currency=\"USD\" />\n <!-- output: '$1,234.56' for en-US -->\n <BaseCurrency :value=\"1234.56\" currency=\"EUR\" />\n <!-- output: '1.234,56 €' for es-ES -->\n <BaseCurrency :value=\"1234.56\" currency=\"GBP\" />\n <!-- output: '£1,234.56' for en-GB -->\n <BaseCurrency :value=\"1234.56\" currency=\"JPY\" />\n <!-- output: '¥1,235' for ja-JP -->\n </div>\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n\n### Advanced formatting options\n\nYou can pass any valid Intl.NumberFormatOptions (except 'currency' and 'style' which are managed\ninternally):\n\n```vue\n<template>\n <BaseCurrency\n :value=\"1234567.89\"\n currency=\"EUR\"\n :format=\"{\n minimumFractionDigits: 2,\n maximumFractionDigits: 4,\n useGrouping: true,\n }\"\n />\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n\n### Using a different locale\n\nBy default the currency is formatted using the `uiLang` of the `snippetConfig`. You can format\nthe value in a different locale using the `locale` prop:\n\n```vue\n<template>\n <!-- output: '€1,234.56' even if snippetConfig.uiLang is 'es-ES' -->\n <BaseCurrency :value=\"1234.56\" currency=\"EUR\" locale=\"en-US\" />\n <!-- output: '1234,56 €' for snippetConfig.uiLang 'es-ES' -->\n <BaseCurrency :value=\"1234.56\" currency=\"EUR\" />\n</template>\n\n<script setup>\nimport BaseCurrency from '@empathyco/x-components/js/components/currency/base-currency.vue'\n</script>\n```\n</docs>\n"],"names":["_openBlock","_createElementBlock","_toDisplayString"],"mappings":";;;;AACQ,MAAA,UAAA,GAAA,EAAA,KAAA,EAAM,YAAA,EAAY;;AAAxB,EAAA,OAAAA,SAAA,EAAA,EAAAC,kBAAA;AAAA,IAAkD,MAAA;AAAA,IAAlD,UAAA;AAAA,IAAkDC,gBAAtB,IAAA,CAAA,YAAY,CAAA;AAAA,IAAA;AAAA;AAAA,GAAA;;;;;;"}
|
|
@@ -31,12 +31,19 @@ var _sfc_main = defineComponent({
|
|
|
31
31
|
type: Object,
|
|
32
32
|
default: () => ({}),
|
|
33
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
* Locale used to format the value. If not specified we use snippetConfig.uiLang
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
locale: String,
|
|
34
40
|
},
|
|
35
41
|
setup(props) {
|
|
36
42
|
const snippetConfig = inject('snippetConfig');
|
|
37
43
|
const currencyText = computed(() => {
|
|
38
44
|
const currency = props.currency ?? snippetConfig?.currency ?? 'EUR';
|
|
39
|
-
|
|
45
|
+
const locale = props.locale ?? snippetConfig?.uiLang;
|
|
46
|
+
return Intl.NumberFormat(locale, {
|
|
40
47
|
style: 'currency',
|
|
41
48
|
...props.format,
|
|
42
49
|
currency,
|