@empathyco/x-components 3.0.0-alpha.365 → 3.0.0-alpha.367
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 +47 -0
- package/design-system/deprecated-full-theme.css +78 -78
- package/docs/API-reference/api/x-components.baseaddtocart.md +14 -11
- package/docs/API-reference/api/x-components.basecurrency.md +20 -11
- package/docs/API-reference/api/x-components.baseresultcurrentprice.md +20 -11
- package/docs/API-reference/api/x-components.baseresultimage.md +50 -13
- package/docs/API-reference/api/x-components.baseresultlink.md +15 -10
- package/docs/API-reference/api/x-components.baseresultpreviousprice.md +18 -11
- package/docs/API-reference/api/x-components.baseresultrating.md +20 -11
- package/docs/API-reference/api/x-components.basesuggestion.md +48 -23
- package/docs/API-reference/api/x-components.md +8 -8
- package/js/components/currency/base-currency.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js +51 -38
- package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue_rollup-plugin-vue_script.vue.js +29 -23
- package/js/components/result/base-result-add-to-cart.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue_rollup-plugin-vue_script.vue.js +47 -26
- package/js/components/result/base-result-current-price.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue.js +1 -1
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue_rollup-plugin-vue_script.vue.js +130 -96
- package/js/components/result/base-result-image.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
- package/js/components/result/base-result-link.vue.js +2 -1
- package/js/components/result/base-result-link.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js +46 -27
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js +34 -17
- package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-rating.vue.js +2 -1
- package/js/components/result/base-result-rating.vue.js.map +1 -1
- package/js/components/result/base-result-rating.vue_rollup-plugin-vue_script.vue.js +44 -27
- package/js/components/result/base-result-rating.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-rating.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
- package/js/components/suggestions/base-suggestion.vue.js +6 -2
- package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js +124 -94
- package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/utils/options-api.js +4 -0
- package/js/utils/options-api.js.map +1 -0
- package/package.json +2 -2
- package/report/x-components.api.json +1935 -969
- package/report/x-components.api.md +197 -80
- package/types/components/currency/base-currency.vue.d.ts +26 -20
- package/types/components/currency/base-currency.vue.d.ts.map +1 -1
- package/types/components/result/base-result-add-to-cart.vue.d.ts +16 -8
- package/types/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
- package/types/components/result/base-result-current-price.vue.d.ts +40 -10
- package/types/components/result/base-result-current-price.vue.d.ts.map +1 -1
- package/types/components/result/base-result-image.vue.d.ts +60 -70
- package/types/components/result/base-result-image.vue.d.ts.map +1 -1
- package/types/components/result/base-result-link.vue.d.ts +18 -23
- package/types/components/result/base-result-link.vue.d.ts.map +1 -1
- package/types/components/result/base-result-previous-price.vue.d.ts +40 -5
- package/types/components/result/base-result-previous-price.vue.d.ts.map +1 -1
- package/types/components/result/base-result-rating.vue.d.ts +28 -9
- package/types/components/result/base-result-rating.vue.d.ts.map +1 -1
- package/types/components/suggestions/base-suggestion.vue.d.ts +55 -36
- package/types/components/suggestions/base-suggestion.vue.d.ts.map +1 -1
- package/types/utils/options-api.d.ts +3 -0
- package/types/utils/options-api.d.ts.map +1 -0
- package/docs/API-reference/api/x-components.baseaddtocart.events.md +0 -13
- package/docs/API-reference/api/x-components.baseaddtocart.result.md +0 -13
- package/docs/API-reference/api/x-components.basecurrency.format.md +0 -13
- package/docs/API-reference/api/x-components.basecurrency.injectedformat.md +0 -13
- package/docs/API-reference/api/x-components.basecurrency.value.md +0 -18
- package/docs/API-reference/api/x-components.baseresultcurrentprice.format.md +0 -18
- package/docs/API-reference/api/x-components.baseresultcurrentprice.result.md +0 -13
- package/docs/API-reference/api/x-components.baseresultimage.hoveranimation.md +0 -13
- package/docs/API-reference/api/x-components.baseresultimage.loadanimation.md +0 -13
- package/docs/API-reference/api/x-components.baseresultimage.result.md +0 -13
- package/docs/API-reference/api/x-components.baseresultimage.shownextimageonhover.md +0 -13
- package/docs/API-reference/api/x-components.baseresultlink.result.md +0 -13
- package/docs/API-reference/api/x-components.baseresultpreviousprice.format.md +0 -18
- package/docs/API-reference/api/x-components.baseresultpreviousprice.result.md +0 -13
- package/docs/API-reference/api/x-components.baseresultrating.link.md +0 -13
- package/docs/API-reference/api/x-components.baseresultrating.result.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.dynamiccssclasses.md +0 -18
- package/docs/API-reference/api/x-components.basesuggestion.emitevents.md +0 -17
- package/docs/API-reference/api/x-components.basesuggestion.events.md +0 -18
- package/docs/API-reference/api/x-components.basesuggestion.feature.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.filter.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.highlightcurated.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.query.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.suggestion.md +0 -13
- package/docs/API-reference/api/x-components.basesuggestion.suggestionselectedevents.md +0 -13
|
@@ -1,110 +1,100 @@
|
|
|
1
1
|
import { Result } from '@empathyco/x-types';
|
|
2
|
-
import
|
|
2
|
+
import { DefineComponent, PropType, Ref } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Component to be reused that renders an `<img>`.
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
declare const _default: DefineComponent<{
|
|
9
9
|
/**
|
|
10
10
|
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
result: {
|
|
15
|
+
type: PropType<Result>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
15
18
|
/**
|
|
16
19
|
* Animation to use when switching between the placeholder, the loaded image, or the failed
|
|
17
20
|
* image fallback.
|
|
18
21
|
*
|
|
19
22
|
* @public
|
|
20
23
|
*/
|
|
21
|
-
loadAnimation:
|
|
24
|
+
loadAnimation: {
|
|
25
|
+
type: PropType<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
26
|
+
default: () => import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, Record<never, any>, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin>;
|
|
27
|
+
};
|
|
22
28
|
/**
|
|
23
29
|
* Animation to use when switching between the loaded image and the hover image.
|
|
24
30
|
*
|
|
25
31
|
* @public
|
|
26
32
|
*/
|
|
27
|
-
hoverAnimation:
|
|
33
|
+
hoverAnimation: {
|
|
34
|
+
type: PropType<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
35
|
+
};
|
|
28
36
|
/**
|
|
29
37
|
* Indicates if the next valid image should be displayed on hover.
|
|
30
38
|
*
|
|
31
39
|
* @public
|
|
32
40
|
*/
|
|
33
|
-
showNextImageOnHover:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Indicates if the user is hovering the image.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
protected isHovering: boolean;
|
|
41
|
+
showNextImageOnHover: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
pendingImages: Ref<string[]>;
|
|
47
|
+
loadedImages: Ref<string[]>;
|
|
48
|
+
isHovering: Ref<boolean>;
|
|
49
|
+
userHasHoveredImage: Ref<boolean>;
|
|
50
|
+
loaderStyles: Partial<CSSStyleDeclaration>;
|
|
51
|
+
animation: import("vue").ComputedRef<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
52
|
+
imageSrc: import("vue").ComputedRef<string>;
|
|
53
|
+
shouldLoadNextImage: import("vue").ComputedRef<boolean>;
|
|
54
|
+
flagImageAsFailed: () => void;
|
|
55
|
+
flagImageLoaded: () => void;
|
|
56
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
protected userHasHoveredImage: boolean;
|
|
61
|
-
/**.
|
|
62
|
-
* Styles to use inline in the image loader, to prevent override from CSS
|
|
63
|
-
*
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
protected loaderStyles: Partial<CSSStyleDeclaration>;
|
|
67
|
-
/**
|
|
68
|
-
* Initializes images state and resets when the result's images change.
|
|
69
|
-
*
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resetImagesState(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Animation to be used.
|
|
75
|
-
*
|
|
76
|
-
* @returns The animation to be used, taking into account if the user has hovered the image.
|
|
77
|
-
*
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
protected get animation(): string | typeof Vue;
|
|
81
|
-
/**
|
|
82
|
-
* Gets the src from the result image.
|
|
83
|
-
*
|
|
84
|
-
* @returns The result image src.
|
|
58
|
+
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
85
59
|
*
|
|
86
|
-
* @
|
|
60
|
+
* @public
|
|
87
61
|
*/
|
|
88
|
-
|
|
62
|
+
result: {
|
|
63
|
+
type: PropType<Result>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
89
66
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* @returns True if it should try to load the next image.
|
|
67
|
+
* Animation to use when switching between the placeholder, the loaded image, or the failed
|
|
68
|
+
* image fallback.
|
|
93
69
|
*
|
|
94
|
-
* @
|
|
70
|
+
* @public
|
|
95
71
|
*/
|
|
96
|
-
|
|
72
|
+
loadAnimation: {
|
|
73
|
+
type: PropType<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
74
|
+
default: () => import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, Record<never, any>, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin>;
|
|
75
|
+
};
|
|
97
76
|
/**
|
|
98
|
-
*
|
|
77
|
+
* Animation to use when switching between the loaded image and the hover image.
|
|
99
78
|
*
|
|
100
|
-
* @
|
|
79
|
+
* @public
|
|
101
80
|
*/
|
|
102
|
-
|
|
81
|
+
hoverAnimation: {
|
|
82
|
+
type: PropType<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
83
|
+
};
|
|
103
84
|
/**
|
|
104
|
-
*
|
|
85
|
+
* Indicates if the next valid image should be displayed on hover.
|
|
105
86
|
*
|
|
106
|
-
* @
|
|
87
|
+
* @public
|
|
107
88
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
89
|
+
showNextImageOnHover: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>>, {
|
|
94
|
+
loadAnimation: string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
|
95
|
+
props: {};
|
|
96
|
+
});
|
|
97
|
+
showNextImageOnHover: boolean;
|
|
98
|
+
}>;
|
|
99
|
+
export default _default;
|
|
110
100
|
//# sourceMappingURL=base-result-image.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-image.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-image.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AA0CE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"base-result-image.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-image.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AA0CE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAEL,eAAe,EAEf,QAAQ,EACR,GAAG,EAIJ,MAAM,KAAK,CAAC;AAIb;;;;GAIG;;IAMC;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;OAIG;;;;IAKH;;;;OAIG;;;;;;;;;;;;;;6BAwH2B,IAAI;2BASN,IAAI;;IAnKhC;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;OAIG;;;;IAKH;;;;OAIG;;;;;;;;;;;AAvCP,wBA4LG"}
|
|
@@ -1,42 +1,37 @@
|
|
|
1
1
|
import { Result } from '@empathyco/x-types';
|
|
2
|
-
import
|
|
3
|
-
import { PropsWithType } from '../../utils/types';
|
|
4
|
-
import { XEventsTypes } from '../../wiring/events.types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
5
3
|
/**
|
|
6
4
|
* Component to be reused that renders an `<a>` wrapping the result contents.
|
|
7
5
|
*
|
|
8
6
|
* @remarks
|
|
9
7
|
* It has the logic to emit {@link XEventsTypes.UserClickedAResult} to the bus on click mouse
|
|
10
8
|
* events. Additionally, this component may be injected other events to be emitted on click
|
|
11
|
-
* event, so, depending where it's used its father component may provide this events.
|
|
9
|
+
* event, so, depending on where it's used its father component may provide this events.
|
|
12
10
|
*
|
|
13
11
|
* @public
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The rendered DOM element.
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
$el: HTMLElement;
|
|
22
|
-
/**
|
|
23
|
-
* The list of additional events to be emitted by the component when user clicks the link.
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
protected resultClickExtraEvents: PropsWithType<XEventsTypes, Result>[];
|
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
|
28
14
|
/**
|
|
29
15
|
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
30
16
|
*
|
|
31
17
|
* @public
|
|
32
18
|
*/
|
|
33
|
-
|
|
19
|
+
result: {
|
|
20
|
+
type: PropType<Result>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
emitUserClickedAResult: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
36
|
-
* additional events if have been injected in the component.
|
|
27
|
+
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
37
28
|
*
|
|
38
|
-
* @
|
|
29
|
+
* @public
|
|
39
30
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
result: {
|
|
32
|
+
type: PropType<Result>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
}>>, {}>;
|
|
36
|
+
export default _default;
|
|
42
37
|
//# sourceMappingURL=base-result-link.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-link.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-result-link.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAA2B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAK7D;;;;;;;;;GASG;;IAGC;;;;OAIG;;;;;;kCAgCgC,IAAI;;IApCvC;;;;OAIG;;;;;;AANP,wBAiDG"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { Result } from '@empathyco/x-types';
|
|
2
|
-
import
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Component that renders the {@link @empathyco/x-types#Result | result} previous price.
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
/**
|
|
10
10
|
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
result: {
|
|
15
|
+
type: PropType<Result>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
15
18
|
/**
|
|
16
19
|
* Format or mask to be defined as string.
|
|
17
20
|
* - Use 'i' to define integer numbers.
|
|
@@ -28,6 +31,38 @@ export default class BaseResultPreviousPrice extends Vue {
|
|
|
28
31
|
*
|
|
29
32
|
* @public
|
|
30
33
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
format: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
/**
|
|
39
|
+
* (Required) The {@link @empathyco/x-types#Result | result} information.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
result: {
|
|
44
|
+
type: PropType<Result>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Format or mask to be defined as string.
|
|
49
|
+
* - Use 'i' to define integer numbers.
|
|
50
|
+
* - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the
|
|
51
|
+
* doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.
|
|
52
|
+
* - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.
|
|
53
|
+
* - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more
|
|
54
|
+
* than one character.
|
|
55
|
+
* - Set whatever you need around the integers and decimals marks.
|
|
56
|
+
*
|
|
57
|
+
* @remarks The number of 'd', which is the maximum decimal length, MUST match with the length
|
|
58
|
+
* of decimals provided from the adapter. Otherwise, when the component truncate the decimal
|
|
59
|
+
* part, delete significant digits.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
format: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
}>>, {}>;
|
|
67
|
+
export default _default;
|
|
33
68
|
//# sourceMappingURL=base-result-previous-price.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-previous-price.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-previous-price.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAiBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"base-result-previous-price.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-previous-price.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAiBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAmB,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGhD;;;;GAIG;;IAIC;;;;OAIG;;;;;IAKH;;;;;;;;;;;;;;;OAeG;;;;;IAxBH;;;;OAIG;;;;;IAKH;;;;;;;;;;;;;;;OAeG;;;;;AA3BP,wBAgCG"}
|
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { Result } from '@empathyco/x-types';
|
|
3
3
|
/**
|
|
4
4
|
* This component renders a {@link BaseRating} for a result passed as prop.
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
/**
|
|
10
10
|
* The {@link @empathyco/x-types#Result | Result} to render its rating.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
result: {
|
|
15
|
+
type: PropType<Result>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
15
18
|
/**
|
|
16
19
|
* A link to redirect when rating is clicked.
|
|
17
20
|
*
|
|
18
21
|
* @public
|
|
19
22
|
*/
|
|
20
|
-
|
|
23
|
+
link: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
emitClickedEvent: () => void;
|
|
28
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
29
|
/**
|
|
22
|
-
*
|
|
23
|
-
* {@link @empathyco/x-types#Result | Result} as payload.
|
|
30
|
+
* The {@link @empathyco/x-types#Result | Result} to render its rating.
|
|
24
31
|
*
|
|
25
|
-
* @
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
result: {
|
|
35
|
+
type: PropType<Result>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A link to redirect when rating is clicked.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
26
42
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
43
|
+
link: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
}>>, {}>;
|
|
47
|
+
export default _default;
|
|
29
48
|
//# sourceMappingURL=base-result-rating.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-rating.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-rating.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-result-rating.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-rating.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAkCE,OAAO,EAAmB,QAAQ,EAAO,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI5C;;;;GAIG;;IAMC;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;4BAc0B,IAAI;;IA5BjC;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;AAnBP,wBA4CG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanFilter, Suggestion } from '@empathyco/x-types';
|
|
2
|
-
import
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
3
|
import { QueryFeature } from '../../types';
|
|
4
4
|
import { VueCSSClasses } from '../../utils/types';
|
|
5
5
|
import { XEventsTypes } from '../../wiring/events.types';
|
|
@@ -12,83 +12,102 @@ import { XEventsTypes } from '../../wiring/events.types';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
/**
|
|
17
17
|
* The normalized query of the module using this component.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
query: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
22
25
|
/**
|
|
23
26
|
* The suggestion to render and use in the default slot.
|
|
24
27
|
*
|
|
25
28
|
* @public
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
suggestion: {
|
|
31
|
+
type: PropType<Suggestion>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
28
34
|
/**
|
|
29
35
|
* The feature from which the events will be emitted.
|
|
30
36
|
*
|
|
31
37
|
* @public
|
|
32
38
|
*/
|
|
33
|
-
|
|
39
|
+
feature: {
|
|
40
|
+
type: PropType<QueryFeature>;
|
|
41
|
+
};
|
|
34
42
|
/**
|
|
35
43
|
* The {@link XEvent | XEvents} that will be emitted when selecting a suggestion.
|
|
36
44
|
*
|
|
37
45
|
* @public
|
|
38
46
|
*/
|
|
39
|
-
|
|
47
|
+
suggestionSelectedEvents: {
|
|
48
|
+
type: PropType<Partial<XEventsTypes>>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
40
51
|
/**
|
|
41
52
|
* Indicates if the curated suggestion should be highlighted.
|
|
42
53
|
*
|
|
43
54
|
* @public
|
|
44
55
|
*/
|
|
45
|
-
|
|
56
|
+
highlightCurated: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
el: import("vue").Ref<HTMLElement | null>;
|
|
61
|
+
filter: import("vue").ComputedRef<BooleanFilter | undefined>;
|
|
62
|
+
emitEvents: () => void;
|
|
63
|
+
dynamicCSSClasses: import("vue").ComputedRef<VueCSSClasses>;
|
|
64
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
46
65
|
/**
|
|
47
|
-
* The
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* UserAcceptedAQuery: suggestion.query
|
|
51
|
-
* UserSelectedASuggestion: suggestion
|
|
52
|
-
* UserClickedAFilter: suggestion.facets[0].filters[0]
|
|
53
|
-
* Merges the events defined in the suggestionSelectedEvents prop and also emits them
|
|
66
|
+
* The normalized query of the module using this component.
|
|
54
67
|
*
|
|
55
|
-
* @returns The {@link XEvent | XEvents} to emit.
|
|
56
68
|
* @public
|
|
57
69
|
*/
|
|
58
|
-
|
|
70
|
+
query: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
59
74
|
/**
|
|
60
|
-
*
|
|
75
|
+
* The suggestion to render and use in the default slot.
|
|
61
76
|
*
|
|
62
77
|
* @public
|
|
63
78
|
*/
|
|
64
|
-
|
|
79
|
+
suggestion: {
|
|
80
|
+
type: PropType<Suggestion>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
65
83
|
/**
|
|
66
|
-
*
|
|
67
|
-
* It is a BooleanFilter because the label is needed.
|
|
68
|
-
* It returns only the first element because the facets and filters are being planned
|
|
69
|
-
* in the BaseSuggestions component.
|
|
84
|
+
* The feature from which the events will be emitted.
|
|
70
85
|
*
|
|
71
|
-
* @returns The filter.
|
|
72
86
|
* @public
|
|
73
87
|
*/
|
|
74
|
-
|
|
88
|
+
feature: {
|
|
89
|
+
type: PropType<QueryFeature>;
|
|
90
|
+
};
|
|
75
91
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @returns True if the suggestion is curated and should be highlighted.
|
|
92
|
+
* The {@link XEvent | XEvents} that will be emitted when selecting a suggestion.
|
|
79
93
|
*
|
|
80
|
-
* @
|
|
94
|
+
* @public
|
|
81
95
|
*/
|
|
82
|
-
|
|
96
|
+
suggestionSelectedEvents: {
|
|
97
|
+
type: PropType<Partial<XEventsTypes>>;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
83
100
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* 'x-suggestion--matching added when the query should be matched.
|
|
101
|
+
* Indicates if the curated suggestion should be highlighted.
|
|
88
102
|
*
|
|
89
|
-
* @returns The {@link VueCSSClasses} classes.
|
|
90
103
|
* @public
|
|
91
104
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
105
|
+
highlightCurated: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
};
|
|
108
|
+
}>>, {
|
|
109
|
+
query: string;
|
|
110
|
+
highlightCurated: boolean;
|
|
111
|
+
}>;
|
|
112
|
+
export default _default;
|
|
94
113
|
//# sourceMappingURL=base-suggestion.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-suggestion.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/suggestions/base-suggestion.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgBE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,
|
|
1
|
+
{"version":3,"file":"base-suggestion.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/suggestions/base-suggestion.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgBE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAA6B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD;;;;;;;;GAQG;;IAIC;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;OAIG;;;;IAMH;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;;;sBAqDoB,IAAI;;;IAjG3B;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;OAIG;;;;IAMH;;;;OAIG;;;;;IAMH;;;;OAIG;;;;;;;;AA/CP,wBA4IG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, PropType } from 'vue';
|
|
2
|
+
export declare const animationProp: PropType<string | DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3
|
+
//# sourceMappingURL=options-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options-api.d.ts","sourceRoot":"","sources":["../../../src/utils/options-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEhD,eAAO,MAAM,aAAa,4TAAmE,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseAddToCart](./x-components.baseaddtocart.md) > [events](./x-components.baseaddtocart.events.md)
|
|
4
|
-
|
|
5
|
-
## BaseAddToCart.events property
|
|
6
|
-
|
|
7
|
-
The events to be emitted by the button.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected get events(): Partial<XEventsTypes>;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseAddToCart](./x-components.baseaddtocart.md) > [result](./x-components.baseaddtocart.result.md)
|
|
4
|
-
|
|
5
|
-
## BaseAddToCart.result property
|
|
6
|
-
|
|
7
|
-
(Required) The [result](./x-types.result.md) information.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected result: Result;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseCurrency](./x-components.basecurrency.md) > [format](./x-components.basecurrency.format.md)
|
|
4
|
-
|
|
5
|
-
## BaseCurrency.format property
|
|
6
|
-
|
|
7
|
-
The format as string.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected format?: string;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseCurrency](./x-components.basecurrency.md) > [injectedFormat](./x-components.basecurrency.injectedformat.md)
|
|
4
|
-
|
|
5
|
-
## BaseCurrency.injectedFormat property
|
|
6
|
-
|
|
7
|
-
The injected format as string.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
injectedFormat: string;
|
|
13
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseCurrency](./x-components.basecurrency.md) > [value](./x-components.basecurrency.value.md)
|
|
4
|
-
|
|
5
|
-
## BaseCurrency.value property
|
|
6
|
-
|
|
7
|
-
Numeric value to be formatted.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected value: number;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
Be careful using numbers under Number.MAX\_SAFE\_INTEGER to avoid unexpected errors.
|
|
18
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseResultCurrentPrice](./x-components.baseresultcurrentprice.md) > [format](./x-components.baseresultcurrentprice.format.md)
|
|
4
|
-
|
|
5
|
-
## BaseResultCurrentPrice.format property
|
|
6
|
-
|
|
7
|
-
Format or mask to be defined as string. - Use 'i' to define integer numbers. - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more than one character. - Set whatever you need around the integers and decimals marks. - Default mask: 'i.iii,dd' which returns '1.345,67'.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected format?: string;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
The number of 'd', which is the maximum decimal length, MUST match with the length of decimals provided from the adapter. Otherwise, when the component truncate the decimal part, delete significant digits.
|
|
18
|
-
|