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, } from "@stencil/core";
1
+ import { Host, h, } from "@stencil/core";
2
2
  import { VisualSearchIcon } from "../vviinn-icons";
3
3
  import { campaignTypeNames } from "../../campaign/Campaign";
4
4
  /**
@@ -7,28 +7,27 @@ import { campaignTypeNames } from "../../campaign/Campaign";
7
7
  */
8
8
  export class VviinnVprButton {
9
9
  constructor() {
10
+ this.sidebar = null;
11
+ this.sidebarCloseListener = () => {
12
+ document.body.removeChild(this.sidebar);
13
+ };
14
+ this.token = undefined;
15
+ this.productId = undefined;
10
16
  this.position = "bottom";
11
17
  this.sourceImage = null;
12
18
  this.sidebarTitle = "Visually similar products";
13
19
  this.modalScrollbar = false;
14
- /** comma-separated list of campaign-ids */
15
20
  this.campaigns = "";
16
- /** Campaign type */
17
21
  this.campaignType = "VPR";
22
+ this.color = undefined;
18
23
  this.addStyle = true;
19
24
  this.mode = "continuity";
20
25
  this.imageWidth = 300;
21
26
  this.currencySign = "€";
22
- /** Showing message (when true) or hiding the whole widget, when no results */
27
+ this.noResultText = undefined;
23
28
  this.noResultShow = true;
24
- /** Hiding disabled arrows in the carousel if true */
25
29
  this.gridArrowsDynamic = false;
26
- /** @internal */
27
30
  this.apiPath = "https://api.vviinn.com";
28
- this.sidebar = null;
29
- this.sidebarCloseListener = () => {
30
- document.body.removeChild(this.sidebar);
31
- };
32
31
  }
33
32
  render() {
34
33
  return (h(Host, { onClick: () => {
@@ -39,10 +38,7 @@ export class VviinnVprButton {
39
38
  campaignTypeName: campaignTypeNames[this.campaignType],
40
39
  widgetId: this.el.id,
41
40
  });
42
- }, role: "button", tabindex: "0" },
43
- h("vviinn-button", { addStyle: this.addStyle, part: "vviinn-button" },
44
- h("slot", null,
45
- h(VisualSearchIcon, null)))));
41
+ }, role: "button", tabindex: "0" }, h("vviinn-button", { addStyle: this.addStyle, part: "vviinn-button" }, h("slot", null, h(VisualSearchIcon, null)))));
46
42
  }
47
43
  handleClick() {
48
44
  const sidebar = document.createElement("vviinn-recommendations-sidebar");
@@ -75,439 +71,447 @@ export class VviinnVprButton {
75
71
  }
76
72
  static get is() { return "vviinn-vpr-button"; }
77
73
  static get encapsulation() { return "shadow"; }
78
- static get originalStyleUrls() { return {
79
- "$": ["vviinn-vpr-button.css"]
80
- }; }
81
- static get styleUrls() { return {
82
- "$": ["vviinn-vpr-button.css"]
83
- }; }
84
- static get properties() { return {
85
- "token": {
86
- "type": "string",
87
- "mutable": false,
88
- "complexType": {
89
- "original": "string",
90
- "resolved": "string",
91
- "references": {}
92
- },
93
- "required": false,
94
- "optional": false,
95
- "docs": {
96
- "tags": [],
97
- "text": ""
98
- },
99
- "attribute": "token",
100
- "reflect": false
101
- },
102
- "productId": {
103
- "type": "string",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "string",
107
- "resolved": "string",
108
- "references": {}
109
- },
110
- "required": false,
111
- "optional": false,
112
- "docs": {
113
- "tags": [],
114
- "text": ""
115
- },
116
- "attribute": "product-id",
117
- "reflect": false
118
- },
119
- "position": {
120
- "type": "string",
121
- "mutable": false,
122
- "complexType": {
123
- "original": "\"bottom\" | \"right\"",
124
- "resolved": "\"bottom\" | \"right\"",
125
- "references": {}
126
- },
127
- "required": false,
128
- "optional": false,
129
- "docs": {
130
- "tags": [],
131
- "text": ""
132
- },
133
- "attribute": "position",
134
- "reflect": false,
135
- "defaultValue": "\"bottom\""
136
- },
137
- "sourceImage": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string | null",
142
- "resolved": "string",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": false,
147
- "docs": {
148
- "tags": [],
149
- "text": ""
150
- },
151
- "attribute": "source-image",
152
- "reflect": false,
153
- "defaultValue": "null"
154
- },
155
- "sidebarTitle": {
156
- "type": "string",
157
- "mutable": false,
158
- "complexType": {
159
- "original": "string",
160
- "resolved": "string",
161
- "references": {}
162
- },
163
- "required": false,
164
- "optional": false,
165
- "docs": {
166
- "tags": [],
167
- "text": ""
168
- },
169
- "attribute": "sidebar-title",
170
- "reflect": false,
171
- "defaultValue": "\"Visually similar products\""
172
- },
173
- "modalScrollbar": {
174
- "type": "boolean",
175
- "mutable": false,
176
- "complexType": {
177
- "original": "boolean",
178
- "resolved": "boolean",
179
- "references": {}
180
- },
181
- "required": false,
182
- "optional": false,
183
- "docs": {
184
- "tags": [],
185
- "text": ""
186
- },
187
- "attribute": "modal-scrollbar",
188
- "reflect": false,
189
- "defaultValue": "false"
190
- },
191
- "campaigns": {
192
- "type": "string",
193
- "mutable": false,
194
- "complexType": {
195
- "original": "string",
196
- "resolved": "string",
197
- "references": {}
198
- },
199
- "required": false,
200
- "optional": false,
201
- "docs": {
202
- "tags": [],
203
- "text": "comma-separated list of campaign-ids"
204
- },
205
- "attribute": "campaigns",
206
- "reflect": false,
207
- "defaultValue": "\"\""
208
- },
209
- "campaignType": {
210
- "type": "string",
211
- "mutable": false,
212
- "complexType": {
213
- "original": "CampaignName",
214
- "resolved": "\"VCS\" | \"VPR\"",
215
- "references": {
216
- "CampaignName": {
217
- "location": "import",
218
- "path": "../../campaign/Campaign"
74
+ static get originalStyleUrls() {
75
+ return {
76
+ "$": ["vviinn-vpr-button.css"]
77
+ };
78
+ }
79
+ static get styleUrls() {
80
+ return {
81
+ "$": ["vviinn-vpr-button.css"]
82
+ };
83
+ }
84
+ static get properties() {
85
+ return {
86
+ "token": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": ""
99
+ },
100
+ "attribute": "token",
101
+ "reflect": false
102
+ },
103
+ "productId": {
104
+ "type": "string",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "string",
108
+ "resolved": "string",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": false,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": ""
116
+ },
117
+ "attribute": "product-id",
118
+ "reflect": false
119
+ },
120
+ "position": {
121
+ "type": "string",
122
+ "mutable": false,
123
+ "complexType": {
124
+ "original": "\"bottom\" | \"right\"",
125
+ "resolved": "\"bottom\" | \"right\"",
126
+ "references": {}
127
+ },
128
+ "required": false,
129
+ "optional": false,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": ""
133
+ },
134
+ "attribute": "position",
135
+ "reflect": false,
136
+ "defaultValue": "\"bottom\""
137
+ },
138
+ "sourceImage": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "string | null",
143
+ "resolved": "string",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": ""
151
+ },
152
+ "attribute": "source-image",
153
+ "reflect": false,
154
+ "defaultValue": "null"
155
+ },
156
+ "sidebarTitle": {
157
+ "type": "string",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "string",
161
+ "resolved": "string",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": ""
169
+ },
170
+ "attribute": "sidebar-title",
171
+ "reflect": false,
172
+ "defaultValue": "\"Visually similar products\""
173
+ },
174
+ "modalScrollbar": {
175
+ "type": "boolean",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "boolean",
179
+ "resolved": "boolean",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": ""
187
+ },
188
+ "attribute": "modal-scrollbar",
189
+ "reflect": false,
190
+ "defaultValue": "false"
191
+ },
192
+ "campaigns": {
193
+ "type": "string",
194
+ "mutable": false,
195
+ "complexType": {
196
+ "original": "string",
197
+ "resolved": "string",
198
+ "references": {}
199
+ },
200
+ "required": false,
201
+ "optional": false,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": "comma-separated list of campaign-ids"
205
+ },
206
+ "attribute": "campaigns",
207
+ "reflect": false,
208
+ "defaultValue": "\"\""
209
+ },
210
+ "campaignType": {
211
+ "type": "string",
212
+ "mutable": false,
213
+ "complexType": {
214
+ "original": "CampaignName",
215
+ "resolved": "\"VCS\" | \"VPR\"",
216
+ "references": {
217
+ "CampaignName": {
218
+ "location": "import",
219
+ "path": "../../campaign/Campaign"
220
+ }
219
221
  }
220
- }
221
- },
222
- "required": false,
223
- "optional": false,
224
- "docs": {
225
- "tags": [],
226
- "text": "Campaign type"
227
- },
228
- "attribute": "campaign-type",
229
- "reflect": false,
230
- "defaultValue": "\"VPR\""
231
- },
232
- "color": {
233
- "type": "string",
234
- "mutable": false,
235
- "complexType": {
236
- "original": "string",
237
- "resolved": "string",
238
- "references": {}
239
- },
240
- "required": false,
241
- "optional": false,
242
- "docs": {
243
- "tags": [],
244
- "text": ""
245
- },
246
- "attribute": "color",
247
- "reflect": false
248
- },
249
- "addStyle": {
250
- "type": "boolean",
251
- "mutable": false,
252
- "complexType": {
253
- "original": "boolean",
254
- "resolved": "boolean",
255
- "references": {}
256
- },
257
- "required": false,
258
- "optional": false,
259
- "docs": {
260
- "tags": [],
261
- "text": ""
262
- },
263
- "attribute": "add-style",
264
- "reflect": false,
265
- "defaultValue": "true"
266
- },
267
- "mode": {
268
- "type": "string",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "CarouselMode",
272
- "resolved": "\"continuity\" | \"grid\"",
273
- "references": {
274
- "CarouselMode": {
275
- "location": "import",
276
- "path": "../vviinn-carousel/vviinn-carousel"
222
+ },
223
+ "required": false,
224
+ "optional": false,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": "Campaign type"
228
+ },
229
+ "attribute": "campaign-type",
230
+ "reflect": false,
231
+ "defaultValue": "\"VPR\""
232
+ },
233
+ "color": {
234
+ "type": "string",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "string",
238
+ "resolved": "string",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": false,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": ""
246
+ },
247
+ "attribute": "color",
248
+ "reflect": false
249
+ },
250
+ "addStyle": {
251
+ "type": "boolean",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "boolean",
255
+ "resolved": "boolean",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "attribute": "add-style",
265
+ "reflect": false,
266
+ "defaultValue": "true"
267
+ },
268
+ "mode": {
269
+ "type": "string",
270
+ "mutable": false,
271
+ "complexType": {
272
+ "original": "CarouselMode",
273
+ "resolved": "\"continuity\" | \"grid\"",
274
+ "references": {
275
+ "CarouselMode": {
276
+ "location": "import",
277
+ "path": "../vviinn-carousel/vviinn-carousel"
278
+ }
277
279
  }
278
- }
279
- },
280
- "required": false,
281
- "optional": false,
282
- "docs": {
283
- "tags": [],
284
- "text": ""
285
- },
286
- "attribute": "mode",
287
- "reflect": false,
288
- "defaultValue": "\"continuity\""
289
- },
290
- "imageWidth": {
291
- "type": "number",
292
- "mutable": false,
293
- "complexType": {
294
- "original": "number",
295
- "resolved": "number",
296
- "references": {}
297
- },
298
- "required": false,
299
- "optional": false,
300
- "docs": {
301
- "tags": [],
302
- "text": ""
303
- },
304
- "attribute": "image-width",
305
- "reflect": false,
306
- "defaultValue": "300"
307
- },
308
- "currencySign": {
309
- "type": "string",
310
- "mutable": false,
311
- "complexType": {
312
- "original": "string",
313
- "resolved": "string",
314
- "references": {}
315
- },
316
- "required": false,
317
- "optional": false,
318
- "docs": {
319
- "tags": [],
320
- "text": ""
321
- },
322
- "attribute": "currency-sign",
323
- "reflect": false,
324
- "defaultValue": "\"\u20AC\""
325
- },
326
- "noResultText": {
327
- "type": "string",
328
- "mutable": false,
329
- "complexType": {
330
- "original": "string",
331
- "resolved": "string",
332
- "references": {}
333
- },
334
- "required": false,
335
- "optional": true,
336
- "docs": {
337
- "tags": [],
338
- "text": "This message is displayed when no results"
339
- },
340
- "attribute": "no-result-text",
341
- "reflect": false
342
- },
343
- "noResultShow": {
344
- "type": "boolean",
345
- "mutable": false,
346
- "complexType": {
347
- "original": "boolean",
348
- "resolved": "boolean",
349
- "references": {}
350
- },
351
- "required": false,
352
- "optional": true,
353
- "docs": {
354
- "tags": [],
355
- "text": "Showing message (when true) or hiding the whole widget, when no results"
356
- },
357
- "attribute": "no-result-show",
358
- "reflect": false,
359
- "defaultValue": "true"
360
- },
361
- "gridArrowsDynamic": {
362
- "type": "boolean",
363
- "mutable": false,
364
- "complexType": {
365
- "original": "boolean",
366
- "resolved": "boolean",
367
- "references": {}
368
- },
369
- "required": false,
370
- "optional": false,
371
- "docs": {
372
- "tags": [],
373
- "text": "Hiding disabled arrows in the carousel if true"
374
- },
375
- "attribute": "grid-arrows-dynamic",
376
- "reflect": false,
377
- "defaultValue": "false"
378
- },
379
- "apiPath": {
380
- "type": "string",
381
- "mutable": false,
382
- "complexType": {
383
- "original": "string | undefined",
384
- "resolved": "string",
385
- "references": {}
386
- },
387
- "required": false,
388
- "optional": false,
389
- "docs": {
390
- "tags": [{
391
- "text": undefined,
392
- "name": "internal"
393
- }],
394
- "text": ""
395
- },
396
- "attribute": "api-path",
397
- "reflect": false,
398
- "defaultValue": "\"https://api.vviinn.com\""
399
- }
400
- }; }
401
- static get events() { return [{
402
- "method": "vviinnWidgetOpen",
403
- "name": "vviinnWidgetOpen",
404
- "bubbles": true,
405
- "cancelable": true,
406
- "composed": true,
407
- "docs": {
408
- "tags": [],
409
- "text": "Event emitted when vpr-button clicked"
410
- },
411
- "complexType": {
412
- "original": "BasicEventData",
413
- "resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
414
- "references": {
415
- "BasicEventData": {
416
- "location": "import",
417
- "path": "../../recommendation/events"
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": ""
286
+ },
287
+ "attribute": "mode",
288
+ "reflect": false,
289
+ "defaultValue": "\"continuity\""
290
+ },
291
+ "imageWidth": {
292
+ "type": "number",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "number",
296
+ "resolved": "number",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": ""
304
+ },
305
+ "attribute": "image-width",
306
+ "reflect": false,
307
+ "defaultValue": "300"
308
+ },
309
+ "currencySign": {
310
+ "type": "string",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "string",
314
+ "resolved": "string",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": ""
322
+ },
323
+ "attribute": "currency-sign",
324
+ "reflect": false,
325
+ "defaultValue": "\"\u20AC\""
326
+ },
327
+ "noResultText": {
328
+ "type": "string",
329
+ "mutable": false,
330
+ "complexType": {
331
+ "original": "string",
332
+ "resolved": "string",
333
+ "references": {}
334
+ },
335
+ "required": false,
336
+ "optional": true,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": "This message is displayed when no results"
340
+ },
341
+ "attribute": "no-result-text",
342
+ "reflect": false
343
+ },
344
+ "noResultShow": {
345
+ "type": "boolean",
346
+ "mutable": false,
347
+ "complexType": {
348
+ "original": "boolean",
349
+ "resolved": "boolean",
350
+ "references": {}
351
+ },
352
+ "required": false,
353
+ "optional": true,
354
+ "docs": {
355
+ "tags": [],
356
+ "text": "Showing message (when true) or hiding the whole widget, when no results"
357
+ },
358
+ "attribute": "no-result-show",
359
+ "reflect": false,
360
+ "defaultValue": "true"
361
+ },
362
+ "gridArrowsDynamic": {
363
+ "type": "boolean",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "boolean",
367
+ "resolved": "boolean",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": false,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": "Hiding disabled arrows in the carousel if true"
375
+ },
376
+ "attribute": "grid-arrows-dynamic",
377
+ "reflect": false,
378
+ "defaultValue": "false"
379
+ },
380
+ "apiPath": {
381
+ "type": "string",
382
+ "mutable": false,
383
+ "complexType": {
384
+ "original": "string | undefined",
385
+ "resolved": "string",
386
+ "references": {}
387
+ },
388
+ "required": false,
389
+ "optional": false,
390
+ "docs": {
391
+ "tags": [{
392
+ "name": "internal",
393
+ "text": undefined
394
+ }],
395
+ "text": ""
396
+ },
397
+ "attribute": "api-path",
398
+ "reflect": false,
399
+ "defaultValue": "\"https://api.vviinn.com\""
400
+ }
401
+ };
402
+ }
403
+ static get events() {
404
+ return [{
405
+ "method": "vviinnWidgetOpen",
406
+ "name": "vviinnWidgetOpen",
407
+ "bubbles": true,
408
+ "cancelable": true,
409
+ "composed": true,
410
+ "docs": {
411
+ "tags": [],
412
+ "text": "Event emitted when vpr-button clicked"
413
+ },
414
+ "complexType": {
415
+ "original": "BasicEventData",
416
+ "resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
417
+ "references": {
418
+ "BasicEventData": {
419
+ "location": "import",
420
+ "path": "../../recommendation/events"
421
+ }
418
422
  }
419
423
  }
420
- }
421
- }, {
422
- "method": "vviinnWidgetLoad",
423
- "name": "vviinnWidgetLoad",
424
- "bubbles": true,
425
- "cancelable": true,
426
- "composed": true,
427
- "docs": {
428
- "tags": [],
429
- "text": ""
430
- },
431
- "complexType": {
432
- "original": "any",
433
- "resolved": "any",
434
- "references": {}
435
- }
436
- }, {
437
- "method": "vviinnWidgetClose",
438
- "name": "vviinnWidgetClose",
439
- "bubbles": true,
440
- "cancelable": true,
441
- "composed": true,
442
- "docs": {
443
- "tags": [],
444
- "text": ""
445
- },
446
- "complexType": {
447
- "original": "any",
448
- "resolved": "any",
449
- "references": {}
450
- }
451
- }, {
452
- "method": "vviinnProductClick",
453
- "name": "vviinnProductClick",
454
- "bubbles": true,
455
- "cancelable": true,
456
- "composed": true,
457
- "docs": {
458
- "tags": [],
459
- "text": ""
460
- },
461
- "complexType": {
462
- "original": "any",
463
- "resolved": "any",
464
- "references": {}
465
- }
466
- }, {
467
- "method": "vviinnProductView",
468
- "name": "vviinnProductView",
469
- "bubbles": true,
470
- "cancelable": true,
471
- "composed": true,
472
- "docs": {
473
- "tags": [],
474
- "text": ""
475
- },
476
- "complexType": {
477
- "original": "any",
478
- "resolved": "any",
479
- "references": {}
480
- }
481
- }, {
482
- "method": "vviinnProductLoad",
483
- "name": "vviinnProductLoad",
484
- "bubbles": true,
485
- "cancelable": true,
486
- "composed": true,
487
- "docs": {
488
- "tags": [],
489
- "text": ""
490
- },
491
- "complexType": {
492
- "original": "any",
493
- "resolved": "any",
494
- "references": {}
495
- }
496
- }, {
497
- "method": "vviinnNoResult",
498
- "name": "vviinnNoResult",
499
- "bubbles": true,
500
- "cancelable": true,
501
- "composed": true,
502
- "docs": {
503
- "tags": [],
504
- "text": ""
505
- },
506
- "complexType": {
507
- "original": "any",
508
- "resolved": "any",
509
- "references": {}
510
- }
511
- }]; }
424
+ }, {
425
+ "method": "vviinnWidgetLoad",
426
+ "name": "vviinnWidgetLoad",
427
+ "bubbles": true,
428
+ "cancelable": true,
429
+ "composed": true,
430
+ "docs": {
431
+ "tags": [],
432
+ "text": ""
433
+ },
434
+ "complexType": {
435
+ "original": "any",
436
+ "resolved": "any",
437
+ "references": {}
438
+ }
439
+ }, {
440
+ "method": "vviinnWidgetClose",
441
+ "name": "vviinnWidgetClose",
442
+ "bubbles": true,
443
+ "cancelable": true,
444
+ "composed": true,
445
+ "docs": {
446
+ "tags": [],
447
+ "text": ""
448
+ },
449
+ "complexType": {
450
+ "original": "any",
451
+ "resolved": "any",
452
+ "references": {}
453
+ }
454
+ }, {
455
+ "method": "vviinnProductClick",
456
+ "name": "vviinnProductClick",
457
+ "bubbles": true,
458
+ "cancelable": true,
459
+ "composed": true,
460
+ "docs": {
461
+ "tags": [],
462
+ "text": ""
463
+ },
464
+ "complexType": {
465
+ "original": "any",
466
+ "resolved": "any",
467
+ "references": {}
468
+ }
469
+ }, {
470
+ "method": "vviinnProductView",
471
+ "name": "vviinnProductView",
472
+ "bubbles": true,
473
+ "cancelable": true,
474
+ "composed": true,
475
+ "docs": {
476
+ "tags": [],
477
+ "text": ""
478
+ },
479
+ "complexType": {
480
+ "original": "any",
481
+ "resolved": "any",
482
+ "references": {}
483
+ }
484
+ }, {
485
+ "method": "vviinnProductLoad",
486
+ "name": "vviinnProductLoad",
487
+ "bubbles": true,
488
+ "cancelable": true,
489
+ "composed": true,
490
+ "docs": {
491
+ "tags": [],
492
+ "text": ""
493
+ },
494
+ "complexType": {
495
+ "original": "any",
496
+ "resolved": "any",
497
+ "references": {}
498
+ }
499
+ }, {
500
+ "method": "vviinnNoResult",
501
+ "name": "vviinnNoResult",
502
+ "bubbles": true,
503
+ "cancelable": true,
504
+ "composed": true,
505
+ "docs": {
506
+ "tags": [],
507
+ "text": ""
508
+ },
509
+ "complexType": {
510
+ "original": "any",
511
+ "resolved": "any",
512
+ "references": {}
513
+ }
514
+ }];
515
+ }
512
516
  static get elementRef() { return "el"; }
513
517
  }