@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.
Files changed (90) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/design-system/deprecated-full-theme.css +78 -78
  3. package/docs/API-reference/api/x-components.baseaddtocart.md +14 -11
  4. package/docs/API-reference/api/x-components.basecurrency.md +20 -11
  5. package/docs/API-reference/api/x-components.baseresultcurrentprice.md +20 -11
  6. package/docs/API-reference/api/x-components.baseresultimage.md +50 -13
  7. package/docs/API-reference/api/x-components.baseresultlink.md +15 -10
  8. package/docs/API-reference/api/x-components.baseresultpreviousprice.md +18 -11
  9. package/docs/API-reference/api/x-components.baseresultrating.md +20 -11
  10. package/docs/API-reference/api/x-components.basesuggestion.md +48 -23
  11. package/docs/API-reference/api/x-components.md +8 -8
  12. package/js/components/currency/base-currency.vue.js.map +1 -1
  13. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js +51 -38
  14. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  15. package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
  16. package/js/components/result/base-result-add-to-cart.vue_rollup-plugin-vue_script.vue.js +29 -23
  17. package/js/components/result/base-result-add-to-cart.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  18. package/js/components/result/base-result-current-price.vue.js.map +1 -1
  19. package/js/components/result/base-result-current-price.vue_rollup-plugin-vue_script.vue.js +47 -26
  20. package/js/components/result/base-result-current-price.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  21. package/js/components/result/base-result-image.vue.js +1 -1
  22. package/js/components/result/base-result-image.vue.js.map +1 -1
  23. package/js/components/result/base-result-image.vue_rollup-plugin-vue_script.vue.js +130 -96
  24. package/js/components/result/base-result-image.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  25. package/js/components/result/base-result-image.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
  26. package/js/components/result/base-result-link.vue.js +2 -1
  27. package/js/components/result/base-result-link.vue.js.map +1 -1
  28. package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js +46 -27
  29. package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  30. package/js/components/result/base-result-link.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
  31. package/js/components/result/base-result-previous-price.vue.js.map +1 -1
  32. package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js +34 -17
  33. package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  34. package/js/components/result/base-result-rating.vue.js +2 -1
  35. package/js/components/result/base-result-rating.vue.js.map +1 -1
  36. package/js/components/result/base-result-rating.vue_rollup-plugin-vue_script.vue.js +44 -27
  37. package/js/components/result/base-result-rating.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  38. package/js/components/result/base-result-rating.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
  39. package/js/components/suggestions/base-suggestion.vue.js +6 -2
  40. package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
  41. package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js +124 -94
  42. package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  43. package/js/utils/options-api.js +4 -0
  44. package/js/utils/options-api.js.map +1 -0
  45. package/package.json +2 -2
  46. package/report/x-components.api.json +1935 -969
  47. package/report/x-components.api.md +197 -80
  48. package/types/components/currency/base-currency.vue.d.ts +26 -20
  49. package/types/components/currency/base-currency.vue.d.ts.map +1 -1
  50. package/types/components/result/base-result-add-to-cart.vue.d.ts +16 -8
  51. package/types/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
  52. package/types/components/result/base-result-current-price.vue.d.ts +40 -10
  53. package/types/components/result/base-result-current-price.vue.d.ts.map +1 -1
  54. package/types/components/result/base-result-image.vue.d.ts +60 -70
  55. package/types/components/result/base-result-image.vue.d.ts.map +1 -1
  56. package/types/components/result/base-result-link.vue.d.ts +18 -23
  57. package/types/components/result/base-result-link.vue.d.ts.map +1 -1
  58. package/types/components/result/base-result-previous-price.vue.d.ts +40 -5
  59. package/types/components/result/base-result-previous-price.vue.d.ts.map +1 -1
  60. package/types/components/result/base-result-rating.vue.d.ts +28 -9
  61. package/types/components/result/base-result-rating.vue.d.ts.map +1 -1
  62. package/types/components/suggestions/base-suggestion.vue.d.ts +55 -36
  63. package/types/components/suggestions/base-suggestion.vue.d.ts.map +1 -1
  64. package/types/utils/options-api.d.ts +3 -0
  65. package/types/utils/options-api.d.ts.map +1 -0
  66. package/docs/API-reference/api/x-components.baseaddtocart.events.md +0 -13
  67. package/docs/API-reference/api/x-components.baseaddtocart.result.md +0 -13
  68. package/docs/API-reference/api/x-components.basecurrency.format.md +0 -13
  69. package/docs/API-reference/api/x-components.basecurrency.injectedformat.md +0 -13
  70. package/docs/API-reference/api/x-components.basecurrency.value.md +0 -18
  71. package/docs/API-reference/api/x-components.baseresultcurrentprice.format.md +0 -18
  72. package/docs/API-reference/api/x-components.baseresultcurrentprice.result.md +0 -13
  73. package/docs/API-reference/api/x-components.baseresultimage.hoveranimation.md +0 -13
  74. package/docs/API-reference/api/x-components.baseresultimage.loadanimation.md +0 -13
  75. package/docs/API-reference/api/x-components.baseresultimage.result.md +0 -13
  76. package/docs/API-reference/api/x-components.baseresultimage.shownextimageonhover.md +0 -13
  77. package/docs/API-reference/api/x-components.baseresultlink.result.md +0 -13
  78. package/docs/API-reference/api/x-components.baseresultpreviousprice.format.md +0 -18
  79. package/docs/API-reference/api/x-components.baseresultpreviousprice.result.md +0 -13
  80. package/docs/API-reference/api/x-components.baseresultrating.link.md +0 -13
  81. package/docs/API-reference/api/x-components.baseresultrating.result.md +0 -13
  82. package/docs/API-reference/api/x-components.basesuggestion.dynamiccssclasses.md +0 -18
  83. package/docs/API-reference/api/x-components.basesuggestion.emitevents.md +0 -17
  84. package/docs/API-reference/api/x-components.basesuggestion.events.md +0 -18
  85. package/docs/API-reference/api/x-components.basesuggestion.feature.md +0 -13
  86. package/docs/API-reference/api/x-components.basesuggestion.filter.md +0 -13
  87. package/docs/API-reference/api/x-components.basesuggestion.highlightcurated.md +0 -13
  88. package/docs/API-reference/api/x-components.basesuggestion.query.md +0 -13
  89. package/docs/API-reference/api/x-components.basesuggestion.suggestion.md +0 -13
  90. 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 Vue from 'vue';
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
- export default class BaseResultImage extends Vue {
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
- protected result: Result;
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: string | typeof Vue;
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: string | typeof Vue | undefined;
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: boolean;
34
- /**
35
- * Copy of the images of the result.
36
- *
37
- * It is used as a queue of images to load, once an image loads/fails to load, it is removed
38
- * from this array.
39
- *
40
- * @internal
41
- */
42
- protected pendingImages: string[];
43
- /**
44
- * Contains the images that have been loaded successfully.
45
- *
46
- * @internal
47
- */
48
- protected loadedImages: string[];
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
- * Indicates if the user has hovered the image.
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
- * @internal
60
+ * @public
87
61
  */
88
- protected get imageSrc(): string;
62
+ result: {
63
+ type: PropType<Result>;
64
+ required: true;
65
+ };
89
66
  /**
90
- * Indicates if the loader should try to load the next image.
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
- * @internal
70
+ * @public
95
71
  */
96
- protected get shouldLoadNextImage(): boolean;
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
- * Sets an image as failed.
77
+ * Animation to use when switching between the loaded image and the hover image.
99
78
  *
100
- * @internal
79
+ * @public
101
80
  */
102
- protected flagImageAsFailed(): void;
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
- * Sets an image as loaded.
85
+ * Indicates if the next valid image should be displayed on hover.
105
86
  *
106
- * @internal
87
+ * @public
107
88
  */
108
- protected flagImageLoaded(): void;
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,GAAG,MAAM,KAAK,CAAC;AAItB;;;;GAIG;AAMH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,GAAG;IAC9C;;;;OAIG;IAEH,SAAS,CAAC,MAAM,EAAG,MAAM,CAAC;IAE1B;;;;;OAKG;IAEI,aAAa,EAAG,MAAM,GAAG,OAAO,GAAG,CAAC;IAE3C;;;;OAIG;IAEI,cAAc,EAAG,MAAM,GAAG,OAAO,GAAG,GAAG,SAAS,CAAC;IAExD;;;;OAIG;IAEI,oBAAoB,EAAG,OAAO,CAAC;IAEtC;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,CAAM;IAEvC;;;;OAIG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,CAAM;IAEtC;;;;OAIG;IACH,SAAS,CAAC,UAAU,UAAS;IAE7B;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,UAAS;IAEtC;;;;OAIG;IACH,SAAS,CAAC,YAAY,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAQlD;IAEF;;;;OAIG;IAEH,gBAAgB,IAAI,IAAI;IAKxB;;;;;;OAMG;IACH,SAAS,KAAK,SAAS,IAAI,MAAM,GAAG,OAAO,GAAG,CAI7C;IAED;;;;;;OAMG;IACH,SAAS,KAAK,QAAQ,IAAI,MAAM,CAI/B;IAED;;;;;;OAMG;IACH,SAAS,KAAK,mBAAmB,IAAI,OAAO,CAG3C;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAInC;;;;OAIG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;CAMlC"}
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 Vue from 'vue';
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
- export default class BaseResultLink extends Vue {
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
- protected result: Result;
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
- * Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also
36
- * additional events if have been injected in the component.
27
+ * (Required) The {@link @empathyco/x-types#Result | result} information.
37
28
  *
38
- * @internal
29
+ * @public
39
30
  */
40
- protected emitUserClickedAResult(): void;
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":"AAkBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;;;;;;;;;GASG;AAEH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,GAAG;IAC7C;;;;OAIG;IACI,GAAG,EAAG,WAAW,CAAC;IACzB;;;;OAIG;IAEH,SAAS,CAAC,sBAAsB,EAAG,aAAa,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC;IAEzE;;;;OAIG;IAEH,SAAS,CAAC,MAAM,EAAG,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,SAAS,CAAC,sBAAsB,IAAI,IAAI;CAMzC"}
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 Vue from 'vue';
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
- export default class BaseResultPreviousPrice extends Vue {
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
- protected result: Result;
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
- protected format?: string;
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;AAE5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB;;;;GAIG;AAIH,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,GAAG;IACtD;;;;OAIG;IAEH,SAAS,CAAC,MAAM,EAAG,MAAM,CAAC;IAE1B;;;;;;;;;;;;;;;OAeG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC3B"}
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 Vue from 'vue';
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
- export default class BaseResultRating extends Vue {
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
- protected result: Result;
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
- protected link: string;
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
- * Emits the `UserClickedAResultRating` event when user clicks this component, with the
23
- * {@link @empathyco/x-types#Result | Result} as payload.
30
+ * The {@link @empathyco/x-types#Result | Result} to render its rating.
24
31
  *
25
- * @internal
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
- protected emitClickedEvent(): void;
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":"AAiCE,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C;;;;GAIG;AAMH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,GAAG;IAC/C;;;;OAIG;IAEH,SAAS,CAAC,MAAM,EAAG,MAAM,CAAC;IAE1B;;;;OAIG;IAEH,SAAS,CAAC,IAAI,EAAG,MAAM,CAAC;IAExB;;;;;OAKG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC"}
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 Vue from 'vue';
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
- export default class BaseSuggestion extends Vue {
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
- protected query: string;
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
- protected suggestion: Suggestion;
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
- protected feature?: QueryFeature;
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
- protected suggestionSelectedEvents: Partial<XEventsTypes>;
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
- protected highlightCurated: boolean;
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 event handler that will be triggered when clicking on a suggestion.
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
- protected get events(): Partial<XEventsTypes>;
70
+ query: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
59
74
  /**
60
- * Emits the events when the button is clicked.
75
+ * The suggestion to render and use in the default slot.
61
76
  *
62
77
  * @public
63
78
  */
64
- protected emitEvents(): void;
79
+ suggestion: {
80
+ type: PropType<Suggestion>;
81
+ required: true;
82
+ };
65
83
  /**
66
- * Returns the suggestion filter object.
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
- protected get filter(): BooleanFilter | undefined;
88
+ feature: {
89
+ type: PropType<QueryFeature>;
90
+ };
75
91
  /**
76
- * Checks if the suggestion is curated and if it should be highlighted.
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
- * @internal
94
+ * @public
81
95
  */
82
- protected get shouldHighlightCurated(): boolean;
96
+ suggestionSelectedEvents: {
97
+ type: PropType<Partial<XEventsTypes>>;
98
+ required: true;
99
+ };
83
100
  /**
84
- * Generates css classes dynamically.
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
- protected get dynamicCSSClasses(): VueCSSClasses;
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,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD;;;;;;;;GAQG;AAIH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,GAAG;IAC7C;;;;OAIG;IAEH,SAAS,CAAC,KAAK,EAAG,MAAM,CAAC;IAEzB;;;;OAIG;IAEH,SAAS,CAAC,UAAU,EAAG,UAAU,CAAC;IAElC;;;;OAIG;IAEH,SAAS,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAEjC;;;;OAIG;IAEH,SAAS,CAAC,wBAAwB,EAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE3D;;;;OAIG;IAEH,SAAS,CAAC,gBAAgB,EAAG,OAAO,CAAC;IAErC;;;;;;;;;;;OAWG;IACH,SAAS,KAAK,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,CAU5C;IAED;;;;OAIG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI;IAS5B;;;;;;;;OAQG;IACH,SAAS,KAAK,MAAM,IAAI,aAAa,GAAG,SAAS,CAEhD;IAED;;;;;;OAMG;IACH,SAAS,KAAK,sBAAsB,IAAI,OAAO,CAE9C;IAED;;;;;;;;OAQG;IACH,SAAS,KAAK,iBAAiB,IAAI,aAAa,CAI/C;CACF"}
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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseAddToCart](./x-components.baseaddtocart.md) &gt; [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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseAddToCart](./x-components.baseaddtocart.md) &gt; [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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseCurrency](./x-components.basecurrency.md) &gt; [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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseCurrency](./x-components.basecurrency.md) &gt; [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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseCurrency](./x-components.basecurrency.md) &gt; [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) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseResultCurrentPrice](./x-components.baseresultcurrentprice.md) &gt; [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
-