vviinn-widgets 2.18.21 → 2.19.1

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 (183) hide show
  1. package/dist/cjs/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
  2. package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
  3. package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
  4. package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
  7. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
  8. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
  9. package/dist/cjs/vviinn-widgets.cjs.js +10 -3
  10. package/dist/collection/Image/sizing.spec.js +66 -0
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
  13. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
  14. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
  15. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
  16. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
  17. package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
  18. package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
  19. package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
  20. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
  21. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
  22. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
  23. package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
  24. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
  25. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
  26. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
  27. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
  28. package/dist/collection/components/vviinn-icons/index.js +10 -27
  29. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
  30. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
  31. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
  32. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
  33. package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
  34. package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
  35. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
  36. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
  37. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
  38. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
  39. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
  40. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
  41. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
  42. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
  43. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
  44. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
  45. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
  46. package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
  47. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
  48. package/dist/collection/components/vviinn-slider/arrow.js +1 -2
  49. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
  50. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
  51. package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
  52. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
  53. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
  54. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
  55. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
  56. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
  57. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
  58. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
  59. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
  60. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
  61. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
  62. package/dist/collection/geometry/Clip.spec.js +16 -0
  63. package/dist/collection/geometry/Rectangle.spec.js +66 -0
  64. package/dist/collection/geometry/Sized.spec.js +16 -0
  65. package/dist/collection/interfaces/generated.js +0 -4
  66. package/dist/collection/network/ion/Form.spec.js +43 -0
  67. package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
  68. package/dist/esm/cropper-handler_29.entry.js +1386 -0
  69. package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
  70. package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
  71. package/dist/esm/loader.js +4 -3
  72. package/dist/esm/polyfills/css-shim.js +1 -1
  73. package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
  74. package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
  75. package/dist/esm/vviinn-vpr-button.entry.js +11 -13
  76. package/dist/esm/vviinn-widgets.js +7 -3
  77. package/dist/loader/index.d.ts +9 -0
  78. package/dist/loader/package.json +1 -0
  79. package/dist/types/Image/sizing.d.ts +4 -4
  80. package/dist/types/campaign/Campaign.d.ts +5 -5
  81. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
  82. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
  83. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
  84. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
  85. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
  86. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
  87. package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
  88. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
  89. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
  90. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
  91. package/dist/types/components.d.ts +154 -54
  92. package/dist/types/error.d.ts +1 -1
  93. package/dist/types/geometry/Point.d.ts +1 -1
  94. package/dist/types/geometry/Rectangle.d.ts +1 -1
  95. package/dist/types/geometry/Sized.d.ts +1 -1
  96. package/dist/types/interfaces/generated.d.ts +192 -371
  97. package/dist/types/network/ion/File.d.ts +2 -2
  98. package/dist/types/network/ion/Form.d.ts +5 -5
  99. package/dist/types/network/ion/Link.d.ts +1 -1
  100. package/dist/types/network/ion/ValueObject.d.ts +4 -4
  101. package/dist/types/network/utils.d.ts +3 -3
  102. package/dist/types/recommendation/events.d.ts +5 -5
  103. package/dist/types/recommendation/recommendation.d.ts +1 -1
  104. package/dist/types/searchSession/searchSession.d.ts +7 -7
  105. package/dist/types/slider/GridMode.d.ts +1 -1
  106. package/dist/types/stencil-public-runtime.d.ts +98 -23
  107. package/dist/types/store/imageSearch.store.d.ts +1 -1
  108. package/dist/types/tracking/models.d.ts +2 -2
  109. package/dist/types/utils/event/Events.d.ts +1 -1
  110. package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
  111. package/dist/vviinn-widgets/p-414b2291.js +1 -0
  112. package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
  113. package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
  114. package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
  115. package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
  116. package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
  117. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  118. package/package.json +12 -12
  119. package/www/build/p-312b0eb7.entry.js +1 -0
  120. package/www/build/p-414b2291.js +1 -0
  121. package/www/build/p-5b50c7e5.entry.js +1 -0
  122. package/www/build/p-8deaa5da.entry.js +1 -0
  123. package/www/build/p-c6209bc1.entry.js +1 -0
  124. package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
  125. package/www/build/p-d39b7d70.js +161 -0
  126. package/www/build/p-fa17e81f.js +2 -0
  127. package/www/build/vviinn-widgets.esm.js +1 -1
  128. package/www/index.html +2 -2
  129. package/dist/cjs/Campaign-13258569.js +0 -18
  130. package/dist/cjs/Handler-176539c8.js +0 -331
  131. package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
  132. package/dist/cjs/customized-slots-6e56c354.js +0 -54
  133. package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
  134. package/dist/cjs/index-a99edb90.js +0 -3235
  135. package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
  136. package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
  137. package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
  138. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
  139. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
  140. package/dist/esm/Campaign-90ba7e06.js +0 -14
  141. package/dist/esm/Handler-f9b8735c.js +0 -309
  142. package/dist/esm/cropper-handler.entry.js +0 -23
  143. package/dist/esm/customized-slots-00afe247.js +0 -51
  144. package/dist/esm/highlight-box_22.entry.js +0 -745
  145. package/dist/esm/index-4d5b52ba.js +0 -3224
  146. package/dist/esm/vviinn-button.entry.js +0 -17
  147. package/dist/esm/vviinn-error.entry.js +0 -15
  148. package/dist/esm/vviinn-preloader.entry.js +0 -22
  149. package/dist/esm/vviinn-vps-button.entry.js +0 -61
  150. package/dist/esm/vviinn-vps-widget.entry.js +0 -247
  151. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  152. package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
  153. package/dist/vviinn-widgets/p-18fd769b.js +0 -1
  154. package/dist/vviinn-widgets/p-339c6838.js +0 -1
  155. package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
  156. package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
  157. package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
  158. package/dist/vviinn-widgets/p-69850e5b.js +0 -1
  159. package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
  160. package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
  161. package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
  162. package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
  163. package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
  164. package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
  165. package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
  166. package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
  167. package/www/build/p-11f61564.js +0 -1
  168. package/www/build/p-12851e97.entry.js +0 -1
  169. package/www/build/p-18fd769b.js +0 -1
  170. package/www/build/p-339c6838.js +0 -1
  171. package/www/build/p-3b2c91c0.entry.js +0 -1
  172. package/www/build/p-45df9f28.entry.js +0 -1
  173. package/www/build/p-57ed5303.entry.js +0 -1
  174. package/www/build/p-69850e5b.js +0 -1
  175. package/www/build/p-7c2f762a.entry.js +0 -1
  176. package/www/build/p-7c3b7388.entry.js +0 -1
  177. package/www/build/p-85006f41.entry.js +0 -1
  178. package/www/build/p-8a3dd76d.entry.js +0 -1
  179. package/www/build/p-99e58be7.entry.js +0 -1
  180. package/www/build/p-9e2c131a.js +0 -125
  181. package/www/build/p-a2b450b6.entry.js +0 -1
  182. package/www/build/p-bcc1ccf0.js +0 -1
  183. package/www/build/p-e6fee8d2.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, Event, Element, State, } from "@stencil/core";
1
+ import { Host, h, } from "@stencil/core";
2
2
  import { pipe } from "fp-ts/lib/function";
3
3
  import { getAnalyticsModule } from "../../analytics/GeneralAnalytics";
4
4
  import { state } from "../../store/store";
@@ -25,18 +25,28 @@ import { campaignTypeNames, } from "../../campaign/Campaign";
25
25
  */
26
26
  export class VviinnProductCard {
27
27
  constructor() {
28
+ this.productData = null;
29
+ this.intersectionObserver = new IntersectionObserver(this.intersectionCallback.bind(this), { threshold: 1.0 });
30
+ this.brand = undefined;
28
31
  this.currency = undefined;
32
+ this.deeplink = undefined;
33
+ this.image = undefined;
29
34
  this.imageRatio = 1;
30
35
  this.imageWidth = 200;
31
36
  this.locale = undefined;
37
+ this.price = undefined;
32
38
  this.pricePrefix = undefined;
39
+ this.productId = undefined;
40
+ this.productTitle = undefined;
41
+ this.productType = undefined;
42
+ this.salePrice = undefined;
33
43
  this.responsive = false;
44
+ this.campaignTypeId = undefined;
34
45
  this.dimmedBackground = false;
35
- /** @internal */
46
+ this.widgetElementId = undefined;
47
+ this.buttonElementId = undefined;
36
48
  this.index = 0;
37
49
  this.imageLoaded = false;
38
- this.productData = null;
39
- this.intersectionObserver = new IntersectionObserver(this.intersectionCallback.bind(this), { threshold: 1.0 });
40
50
  }
41
51
  connectedCallback() {
42
52
  this.productData = this.getProductData();
@@ -91,427 +101,427 @@ export class VviinnProductCard {
91
101
  }
92
102
  render() {
93
103
  var _a, _b, _c;
94
- return (h(Host, { part: "product-card", class: { dimmed: this.dimmedBackground }, exportparts: "brand, currency, deeplink, image, image-link, price-amount-sale, price-amount-outdated, price-amount-regular, price-container, price-outdated, price-regular, price-sale, price-prefix, title" },
95
- h(Linked, { deeplink: this.deeplink, part: "image-link" }, this.renderImage()),
96
- h(Linked, { deeplink: this.deeplink, part: "deeplink" },
97
- h("span", { class: "title", part: "title" }, this.productTitle)),
98
- h("span", { class: "brand", part: "brand" }, this.brand),
99
- h("span", { class: "type", part: "type" }, this.productType),
100
- h(Price, { prefix: (_a = this.pricePrefix) !== null && _a !== void 0 ? _a : state.pricePrefix, currency: (_b = this.currency) !== null && _b !== void 0 ? _b : state.currencySign, price: this.price, salePrice: this.salePrice, locale: (_c = this.locale) !== null && _c !== void 0 ? _c : state.locale })));
104
+ return (h(Host, { part: "product-card", class: { dimmed: this.dimmedBackground }, exportparts: "brand, currency, deeplink, image, image-link, price-amount-sale, price-amount-outdated, price-amount-regular, price-container, price-outdated, price-regular, price-sale, price-prefix, title" }, h(Linked, { deeplink: this.deeplink, part: "image-link" }, this.renderImage()), h(Linked, { deeplink: this.deeplink, part: "deeplink" }, h("span", { class: "title", part: "title" }, this.productTitle)), h("span", { class: "brand", part: "brand" }, this.brand), h("span", { class: "type", part: "type" }, this.productType), h(Price, { prefix: (_a = this.pricePrefix) !== null && _a !== void 0 ? _a : state.pricePrefix, currency: (_b = this.currency) !== null && _b !== void 0 ? _b : state.currencySign, price: this.price, salePrice: this.salePrice, locale: (_c = this.locale) !== null && _c !== void 0 ? _c : state.locale })));
101
105
  }
102
106
  static get is() { return "vviinn-product-card"; }
103
107
  static get encapsulation() { return "shadow"; }
104
108
  static get styles() { return styles; }
105
- static get properties() { return {
106
- "brand": {
107
- "type": "string",
108
- "mutable": false,
109
- "complexType": {
110
- "original": "string | undefined",
111
- "resolved": "string",
112
- "references": {}
113
- },
114
- "required": false,
115
- "optional": false,
116
- "docs": {
117
- "tags": [],
118
- "text": ""
119
- },
120
- "attribute": "brand",
121
- "reflect": false
122
- },
123
- "currency": {
124
- "type": "string",
125
- "mutable": false,
126
- "complexType": {
127
- "original": "string | undefined",
128
- "resolved": "string",
129
- "references": {}
130
- },
131
- "required": false,
132
- "optional": false,
133
- "docs": {
134
- "tags": [],
135
- "text": ""
136
- },
137
- "attribute": "currency",
138
- "reflect": false,
139
- "defaultValue": "undefined"
140
- },
141
- "deeplink": {
142
- "type": "string",
143
- "mutable": false,
144
- "complexType": {
145
- "original": "string | undefined",
146
- "resolved": "string",
147
- "references": {}
148
- },
149
- "required": false,
150
- "optional": false,
151
- "docs": {
152
- "tags": [],
153
- "text": ""
154
- },
155
- "attribute": "deeplink",
156
- "reflect": false
157
- },
158
- "image": {
159
- "type": "string",
160
- "mutable": false,
161
- "complexType": {
162
- "original": "string | undefined",
163
- "resolved": "string",
164
- "references": {}
165
- },
166
- "required": false,
167
- "optional": false,
168
- "docs": {
169
- "tags": [],
170
- "text": ""
171
- },
172
- "attribute": "image",
173
- "reflect": false
174
- },
175
- "imageRatio": {
176
- "type": "number",
177
- "mutable": false,
178
- "complexType": {
179
- "original": "number",
180
- "resolved": "number",
181
- "references": {}
182
- },
183
- "required": false,
184
- "optional": false,
185
- "docs": {
186
- "tags": [],
187
- "text": ""
188
- },
189
- "attribute": "image-ratio",
190
- "reflect": false,
191
- "defaultValue": "1"
192
- },
193
- "imageWidth": {
194
- "type": "number",
195
- "mutable": false,
196
- "complexType": {
197
- "original": "number",
198
- "resolved": "number",
199
- "references": {}
200
- },
201
- "required": false,
202
- "optional": false,
203
- "docs": {
204
- "tags": [],
205
- "text": ""
206
- },
207
- "attribute": "image-width",
208
- "reflect": false,
209
- "defaultValue": "200"
210
- },
211
- "locale": {
212
- "type": "string",
213
- "mutable": false,
214
- "complexType": {
215
- "original": "string | undefined",
216
- "resolved": "string",
217
- "references": {}
218
- },
219
- "required": false,
220
- "optional": false,
221
- "docs": {
222
- "tags": [],
223
- "text": ""
224
- },
225
- "attribute": "locale",
226
- "reflect": false,
227
- "defaultValue": "undefined"
228
- },
229
- "price": {
230
- "type": "number",
231
- "mutable": false,
232
- "complexType": {
233
- "original": "number | undefined",
234
- "resolved": "number",
235
- "references": {}
236
- },
237
- "required": false,
238
- "optional": false,
239
- "docs": {
240
- "tags": [],
241
- "text": ""
242
- },
243
- "attribute": "price",
244
- "reflect": false
245
- },
246
- "pricePrefix": {
247
- "type": "string",
248
- "mutable": false,
249
- "complexType": {
250
- "original": "string | undefined",
251
- "resolved": "string",
252
- "references": {}
253
- },
254
- "required": false,
255
- "optional": false,
256
- "docs": {
257
- "tags": [],
258
- "text": ""
259
- },
260
- "attribute": "price-prefix",
261
- "reflect": false,
262
- "defaultValue": "undefined"
263
- },
264
- "productId": {
265
- "type": "string",
266
- "mutable": false,
267
- "complexType": {
268
- "original": "string",
269
- "resolved": "string",
270
- "references": {}
271
- },
272
- "required": false,
273
- "optional": false,
274
- "docs": {
275
- "tags": [],
276
- "text": ""
277
- },
278
- "attribute": "product-id",
279
- "reflect": false
280
- },
281
- "productTitle": {
282
- "type": "string",
283
- "mutable": false,
284
- "complexType": {
285
- "original": "string",
286
- "resolved": "string",
287
- "references": {}
288
- },
289
- "required": false,
290
- "optional": false,
291
- "docs": {
292
- "tags": [],
293
- "text": ""
294
- },
295
- "attribute": "product-title",
296
- "reflect": false
297
- },
298
- "productType": {
299
- "type": "string",
300
- "mutable": false,
301
- "complexType": {
302
- "original": "string | undefined",
303
- "resolved": "string",
304
- "references": {}
305
- },
306
- "required": false,
307
- "optional": false,
308
- "docs": {
309
- "tags": [],
310
- "text": ""
311
- },
312
- "attribute": "product-type",
313
- "reflect": false
314
- },
315
- "salePrice": {
316
- "type": "number",
317
- "mutable": false,
318
- "complexType": {
319
- "original": "number | undefined",
320
- "resolved": "number",
321
- "references": {}
322
- },
323
- "required": false,
324
- "optional": false,
325
- "docs": {
326
- "tags": [],
327
- "text": ""
328
- },
329
- "attribute": "sale-price",
330
- "reflect": false
331
- },
332
- "responsive": {
333
- "type": "boolean",
334
- "mutable": false,
335
- "complexType": {
336
- "original": "boolean",
337
- "resolved": "boolean",
338
- "references": {}
339
- },
340
- "required": false,
341
- "optional": false,
342
- "docs": {
343
- "tags": [],
344
- "text": ""
345
- },
346
- "attribute": "responsive",
347
- "reflect": false,
348
- "defaultValue": "false"
349
- },
350
- "campaignTypeId": {
351
- "type": "string",
352
- "mutable": false,
353
- "complexType": {
354
- "original": "CampaignTypeId",
355
- "resolved": "\"VCS\" | \"VPR\" | \"VPS\"",
356
- "references": {
357
- "CampaignTypeId": {
358
- "location": "import",
359
- "path": "../../campaign/Campaign"
109
+ static get properties() {
110
+ return {
111
+ "brand": {
112
+ "type": "string",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "string | undefined",
116
+ "resolved": "string",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": false,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": ""
124
+ },
125
+ "attribute": "brand",
126
+ "reflect": false
127
+ },
128
+ "currency": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string | undefined",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": ""
141
+ },
142
+ "attribute": "currency",
143
+ "reflect": false,
144
+ "defaultValue": "undefined"
145
+ },
146
+ "deeplink": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "string | undefined",
151
+ "resolved": "string",
152
+ "references": {}
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": ""
159
+ },
160
+ "attribute": "deeplink",
161
+ "reflect": false
162
+ },
163
+ "image": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "string | undefined",
168
+ "resolved": "string",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": ""
176
+ },
177
+ "attribute": "image",
178
+ "reflect": false
179
+ },
180
+ "imageRatio": {
181
+ "type": "number",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "number",
185
+ "resolved": "number",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": ""
193
+ },
194
+ "attribute": "image-ratio",
195
+ "reflect": false,
196
+ "defaultValue": "1"
197
+ },
198
+ "imageWidth": {
199
+ "type": "number",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "number",
203
+ "resolved": "number",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "image-width",
213
+ "reflect": false,
214
+ "defaultValue": "200"
215
+ },
216
+ "locale": {
217
+ "type": "string",
218
+ "mutable": false,
219
+ "complexType": {
220
+ "original": "string | undefined",
221
+ "resolved": "string",
222
+ "references": {}
223
+ },
224
+ "required": false,
225
+ "optional": false,
226
+ "docs": {
227
+ "tags": [],
228
+ "text": ""
229
+ },
230
+ "attribute": "locale",
231
+ "reflect": false,
232
+ "defaultValue": "undefined"
233
+ },
234
+ "price": {
235
+ "type": "number",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "number | undefined",
239
+ "resolved": "number",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [],
246
+ "text": ""
247
+ },
248
+ "attribute": "price",
249
+ "reflect": false
250
+ },
251
+ "pricePrefix": {
252
+ "type": "string",
253
+ "mutable": false,
254
+ "complexType": {
255
+ "original": "string | undefined",
256
+ "resolved": "string",
257
+ "references": {}
258
+ },
259
+ "required": false,
260
+ "optional": false,
261
+ "docs": {
262
+ "tags": [],
263
+ "text": ""
264
+ },
265
+ "attribute": "price-prefix",
266
+ "reflect": false,
267
+ "defaultValue": "undefined"
268
+ },
269
+ "productId": {
270
+ "type": "string",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "string",
274
+ "resolved": "string",
275
+ "references": {}
276
+ },
277
+ "required": false,
278
+ "optional": false,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": ""
282
+ },
283
+ "attribute": "product-id",
284
+ "reflect": false
285
+ },
286
+ "productTitle": {
287
+ "type": "string",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "string",
291
+ "resolved": "string",
292
+ "references": {}
293
+ },
294
+ "required": false,
295
+ "optional": false,
296
+ "docs": {
297
+ "tags": [],
298
+ "text": ""
299
+ },
300
+ "attribute": "product-title",
301
+ "reflect": false
302
+ },
303
+ "productType": {
304
+ "type": "string",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "string | undefined",
308
+ "resolved": "string",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": false,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": ""
316
+ },
317
+ "attribute": "product-type",
318
+ "reflect": false
319
+ },
320
+ "salePrice": {
321
+ "type": "number",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "number | undefined",
325
+ "resolved": "number",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": ""
333
+ },
334
+ "attribute": "sale-price",
335
+ "reflect": false
336
+ },
337
+ "responsive": {
338
+ "type": "boolean",
339
+ "mutable": false,
340
+ "complexType": {
341
+ "original": "boolean",
342
+ "resolved": "boolean",
343
+ "references": {}
344
+ },
345
+ "required": false,
346
+ "optional": false,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": ""
350
+ },
351
+ "attribute": "responsive",
352
+ "reflect": false,
353
+ "defaultValue": "false"
354
+ },
355
+ "campaignTypeId": {
356
+ "type": "string",
357
+ "mutable": false,
358
+ "complexType": {
359
+ "original": "CampaignTypeId",
360
+ "resolved": "\"VCS\" | \"VPR\" | \"VPS\"",
361
+ "references": {
362
+ "CampaignTypeId": {
363
+ "location": "import",
364
+ "path": "../../campaign/Campaign"
365
+ }
360
366
  }
361
- }
362
- },
363
- "required": false,
364
- "optional": false,
365
- "docs": {
366
- "tags": [],
367
- "text": ""
368
- },
369
- "attribute": "campaign-type-id",
370
- "reflect": false
371
- },
372
- "dimmedBackground": {
373
- "type": "boolean",
374
- "mutable": false,
375
- "complexType": {
376
- "original": "boolean",
377
- "resolved": "boolean",
378
- "references": {}
379
- },
380
- "required": false,
381
- "optional": false,
382
- "docs": {
383
- "tags": [],
384
- "text": ""
385
- },
386
- "attribute": "dimmed-background",
387
- "reflect": false,
388
- "defaultValue": "false"
389
- },
390
- "widgetElementId": {
391
- "type": "string",
392
- "mutable": false,
393
- "complexType": {
394
- "original": "string",
395
- "resolved": "string",
396
- "references": {}
397
- },
398
- "required": false,
399
- "optional": true,
400
- "docs": {
401
- "tags": [{
402
- "text": undefined,
403
- "name": "internal"
404
- }],
405
- "text": ""
406
- },
407
- "attribute": "widget-element-id",
408
- "reflect": false
409
- },
410
- "buttonElementId": {
411
- "type": "string",
412
- "mutable": false,
413
- "complexType": {
414
- "original": "string",
415
- "resolved": "string",
416
- "references": {}
417
- },
418
- "required": false,
419
- "optional": true,
420
- "docs": {
421
- "tags": [{
422
- "text": undefined,
423
- "name": "internal"
424
- }],
425
- "text": ""
426
- },
427
- "attribute": "button-element-id",
428
- "reflect": false
429
- },
430
- "index": {
431
- "type": "number",
432
- "mutable": false,
433
- "complexType": {
434
- "original": "number",
435
- "resolved": "number",
436
- "references": {}
437
- },
438
- "required": false,
439
- "optional": false,
440
- "docs": {
441
- "tags": [{
442
- "text": undefined,
443
- "name": "internal"
444
- }],
445
- "text": ""
446
- },
447
- "attribute": "index",
448
- "reflect": false,
449
- "defaultValue": "0"
450
- }
451
- }; }
452
- static get states() { return {
453
- "imageLoaded": {}
454
- }; }
455
- static get events() { return [{
456
- "method": "vviinnProductLoad",
457
- "name": "vviinnProductLoad",
458
- "bubbles": true,
459
- "cancelable": true,
460
- "composed": true,
461
- "docs": {
462
- "tags": [],
463
- "text": "Event fires ones when recommendation rendered on page"
464
- },
465
- "complexType": {
466
- "original": "ProductCardEventData",
467
- "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
468
- "references": {
469
- "ProductCardEventData": {
470
- "location": "import",
471
- "path": "../../recommendation/events"
367
+ },
368
+ "required": false,
369
+ "optional": false,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": ""
373
+ },
374
+ "attribute": "campaign-type-id",
375
+ "reflect": false
376
+ },
377
+ "dimmedBackground": {
378
+ "type": "boolean",
379
+ "mutable": false,
380
+ "complexType": {
381
+ "original": "boolean",
382
+ "resolved": "boolean",
383
+ "references": {}
384
+ },
385
+ "required": false,
386
+ "optional": false,
387
+ "docs": {
388
+ "tags": [],
389
+ "text": ""
390
+ },
391
+ "attribute": "dimmed-background",
392
+ "reflect": false,
393
+ "defaultValue": "false"
394
+ },
395
+ "widgetElementId": {
396
+ "type": "string",
397
+ "mutable": false,
398
+ "complexType": {
399
+ "original": "string",
400
+ "resolved": "string",
401
+ "references": {}
402
+ },
403
+ "required": false,
404
+ "optional": true,
405
+ "docs": {
406
+ "tags": [{
407
+ "name": "internal",
408
+ "text": undefined
409
+ }],
410
+ "text": ""
411
+ },
412
+ "attribute": "widget-element-id",
413
+ "reflect": false
414
+ },
415
+ "buttonElementId": {
416
+ "type": "string",
417
+ "mutable": false,
418
+ "complexType": {
419
+ "original": "string",
420
+ "resolved": "string",
421
+ "references": {}
422
+ },
423
+ "required": false,
424
+ "optional": true,
425
+ "docs": {
426
+ "tags": [{
427
+ "name": "internal",
428
+ "text": undefined
429
+ }],
430
+ "text": ""
431
+ },
432
+ "attribute": "button-element-id",
433
+ "reflect": false
434
+ },
435
+ "index": {
436
+ "type": "number",
437
+ "mutable": false,
438
+ "complexType": {
439
+ "original": "number",
440
+ "resolved": "number",
441
+ "references": {}
442
+ },
443
+ "required": false,
444
+ "optional": false,
445
+ "docs": {
446
+ "tags": [{
447
+ "name": "internal",
448
+ "text": undefined
449
+ }],
450
+ "text": ""
451
+ },
452
+ "attribute": "index",
453
+ "reflect": false,
454
+ "defaultValue": "0"
455
+ }
456
+ };
457
+ }
458
+ static get states() {
459
+ return {
460
+ "imageLoaded": {}
461
+ };
462
+ }
463
+ static get events() {
464
+ return [{
465
+ "method": "vviinnProductLoad",
466
+ "name": "vviinnProductLoad",
467
+ "bubbles": true,
468
+ "cancelable": true,
469
+ "composed": true,
470
+ "docs": {
471
+ "tags": [],
472
+ "text": "Event fires ones when recommendation rendered on page"
473
+ },
474
+ "complexType": {
475
+ "original": "ProductCardEventData",
476
+ "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
477
+ "references": {
478
+ "ProductCardEventData": {
479
+ "location": "import",
480
+ "path": "../../recommendation/events"
481
+ }
472
482
  }
473
483
  }
474
- }
475
- }, {
476
- "method": "vviinnProductView",
477
- "name": "vviinnProductView",
478
- "bubbles": true,
479
- "cancelable": true,
480
- "composed": true,
481
- "docs": {
482
- "tags": [],
483
- "text": "Event fires ones when recommendation appears on the viewport"
484
- },
485
- "complexType": {
486
- "original": "ProductCardEventData",
487
- "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
488
- "references": {
489
- "ProductCardEventData": {
490
- "location": "import",
491
- "path": "../../recommendation/events"
484
+ }, {
485
+ "method": "vviinnProductView",
486
+ "name": "vviinnProductView",
487
+ "bubbles": true,
488
+ "cancelable": true,
489
+ "composed": true,
490
+ "docs": {
491
+ "tags": [],
492
+ "text": "Event fires ones when recommendation appears on the viewport"
493
+ },
494
+ "complexType": {
495
+ "original": "ProductCardEventData",
496
+ "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
497
+ "references": {
498
+ "ProductCardEventData": {
499
+ "location": "import",
500
+ "path": "../../recommendation/events"
501
+ }
492
502
  }
493
503
  }
494
- }
495
- }, {
496
- "method": "vviinnProductClick",
497
- "name": "vviinnProductClick",
498
- "bubbles": true,
499
- "cancelable": true,
500
- "composed": true,
501
- "docs": {
502
- "tags": [],
503
- "text": "Event fires ones when user click on deeplink"
504
- },
505
- "complexType": {
506
- "original": "ProductCardEventData",
507
- "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
508
- "references": {
509
- "ProductCardEventData": {
510
- "location": "import",
511
- "path": "../../recommendation/events"
504
+ }, {
505
+ "method": "vviinnProductClick",
506
+ "name": "vviinnProductClick",
507
+ "bubbles": true,
508
+ "cancelable": true,
509
+ "composed": true,
510
+ "docs": {
511
+ "tags": [],
512
+ "text": "Event fires ones when user click on deeplink"
513
+ },
514
+ "complexType": {
515
+ "original": "ProductCardEventData",
516
+ "resolved": "BasicEventData & { productId: string; productRank: number; productName: string; }",
517
+ "references": {
518
+ "ProductCardEventData": {
519
+ "location": "import",
520
+ "path": "../../recommendation/events"
521
+ }
512
522
  }
513
523
  }
514
- }
515
- }]; }
524
+ }];
525
+ }
516
526
  static get elementRef() { return "el"; }
517
527
  }