vviinn-widgets 2.18.21 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/dist/cjs/Campaign-13258569.js +2 -0
  2. package/dist/cjs/Campaign-13258569.js.map +1 -0
  3. package/dist/cjs/{Handler-176539c8.js → Handler-de64afa5.js} +31 -43
  4. package/dist/cjs/Handler-de64afa5.js.map +1 -0
  5. package/dist/cjs/cropper-handler.cjs.entry.js +7 -4
  6. package/dist/cjs/cropper-handler.cjs.entry.js.map +1 -0
  7. package/dist/cjs/{customized-slots-6e56c354.js → customized-slots-aee3f39d.js} +3 -1
  8. package/dist/cjs/customized-slots-aee3f39d.js.map +1 -0
  9. package/dist/cjs/highlight-box_22.cjs.entry.js +68 -39
  10. package/dist/cjs/highlight-box_22.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{imageSearch.store-98824653.js → imageSearch.store-fbe0600a.js} +3570 -2250
  12. package/dist/cjs/imageSearch.store-fbe0600a.js.map +1 -0
  13. package/dist/cjs/{index-cb410762.js → index-610c6c1f.js} +3 -1
  14. package/dist/cjs/index-610c6c1f.js.map +1 -0
  15. package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +685 -303
  16. package/dist/cjs/index-a4becaff.js.map +1 -0
  17. package/dist/cjs/{index-a99edb90.js → index-c4851793.js} +3 -1
  18. package/dist/cjs/index-c4851793.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +2 -0
  20. package/dist/cjs/index.cjs.js.map +1 -0
  21. package/dist/cjs/loader.cjs.js +6 -3
  22. package/dist/cjs/loader.cjs.js.map +1 -0
  23. package/dist/cjs/vviinn-button.cjs.entry.js +5 -3
  24. package/dist/cjs/vviinn-button.cjs.entry.js.map +1 -0
  25. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +124 -39
  26. package/dist/cjs/vviinn-carousel_3.cjs.entry.js.map +1 -0
  27. package/dist/cjs/vviinn-error.cjs.entry.js +4 -2
  28. package/dist/cjs/vviinn-error.cjs.entry.js.map +1 -0
  29. package/dist/cjs/vviinn-preloader.cjs.entry.js +7 -5
  30. package/dist/cjs/vviinn-preloader.cjs.entry.js.map +1 -0
  31. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +15 -6
  32. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js.map +1 -0
  33. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +13 -12
  34. package/dist/cjs/vviinn-vpr-button.cjs.entry.js.map +1 -0
  35. package/dist/cjs/vviinn-vps-button.cjs.entry.js +28 -25
  36. package/dist/cjs/vviinn-vps-button.cjs.entry.js.map +1 -0
  37. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +46 -31
  38. package/dist/cjs/vviinn-vps-widget.cjs.entry.js.map +1 -0
  39. package/dist/cjs/vviinn-widgets.cjs.js +12 -3
  40. package/dist/cjs/vviinn-widgets.cjs.js.map +1 -0
  41. package/dist/collection/Image/error.js +1 -0
  42. package/dist/collection/Image/error.js.map +1 -0
  43. package/dist/collection/Image/form.js +1 -0
  44. package/dist/collection/Image/form.js.map +1 -0
  45. package/dist/collection/Image/fromFile.js +1 -0
  46. package/dist/collection/Image/fromFile.js.map +1 -0
  47. package/dist/collection/Image/imageToB64.js +1 -0
  48. package/dist/collection/Image/imageToB64.js.map +1 -0
  49. package/dist/collection/Image/index.js +1 -0
  50. package/dist/collection/Image/index.js.map +1 -0
  51. package/dist/collection/Image/renderPromise.js +1 -0
  52. package/dist/collection/Image/renderPromise.js.map +1 -0
  53. package/dist/collection/Image/resizeImage.js +1 -0
  54. package/dist/collection/Image/resizeImage.js.map +1 -0
  55. package/dist/collection/Image/sizing.js +1 -0
  56. package/dist/collection/Image/sizing.js.map +1 -0
  57. package/dist/collection/Image/sizing.spec.js +67 -0
  58. package/dist/collection/Image/sizing.spec.js.map +1 -0
  59. package/dist/collection/Image/toFile.js +1 -0
  60. package/dist/collection/Image/toFile.js.map +1 -0
  61. package/dist/collection/analytics/GAnalytics.js +1 -0
  62. package/dist/collection/analytics/GAnalytics.js.map +1 -0
  63. package/dist/collection/analytics/GeneralAnalytics.js +1 -0
  64. package/dist/collection/analytics/GeneralAnalytics.js.map +1 -0
  65. package/dist/collection/analytics/GtagAnalytics.js +1 -0
  66. package/dist/collection/analytics/GtagAnalytics.js.map +1 -0
  67. package/dist/collection/analytics/ProductAnalytics.js +1 -0
  68. package/dist/collection/analytics/ProductAnalytics.js.map +1 -0
  69. package/dist/collection/campaign/Campaign.js +1 -0
  70. package/dist/collection/campaign/Campaign.js.map +1 -0
  71. package/dist/collection/campaign/CampaignService.js +1 -0
  72. package/dist/collection/campaign/CampaignService.js.map +1 -0
  73. package/dist/collection/campaign/VCSCampaign.js +1 -0
  74. package/dist/collection/campaign/VCSCampaign.js.map +1 -0
  75. package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
  76. package/dist/collection/campaign/VCSCampaignResponse.js.map +1 -0
  77. package/dist/collection/campaign/VCSCampaignService.js +1 -0
  78. package/dist/collection/campaign/VCSCampaignService.js.map +1 -0
  79. package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
  80. package/dist/collection/campaign/VPRCampaignResponse.js.map +1 -0
  81. package/dist/collection/campaign/VPRCampaignService.js +1 -0
  82. package/dist/collection/campaign/VPRCampaignService.js.map +1 -0
  83. package/dist/collection/collection-manifest.json +2 -2
  84. package/dist/collection/components/customized-slots.js +1 -0
  85. package/dist/collection/components/customized-slots.js.map +1 -0
  86. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
  87. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +12 -7
  88. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js.map +1 -0
  89. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
  90. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +41 -37
  91. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js.map +1 -0
  92. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +74 -67
  93. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js.map +1 -0
  94. package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
  95. package/dist/collection/components/image-search/search-filters/search-filters.js +98 -91
  96. package/dist/collection/components/image-search/search-filters/search-filters.js.map +1 -0
  97. package/dist/collection/components/vviinn-button/vviinn-button.js +35 -31
  98. package/dist/collection/components/vviinn-button/vviinn-button.js.map +1 -0
  99. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
  100. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +162 -156
  101. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js.map +1 -0
  102. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +13 -14
  103. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js.map +1 -0
  104. package/dist/collection/components/vviinn-error/vviinn-error.js +13 -12
  105. package/dist/collection/components/vviinn-error/vviinn-error.js.map +1 -0
  106. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +36 -30
  107. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js.map +1 -0
  108. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +36 -30
  109. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js.map +1 -0
  110. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +130 -121
  111. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js.map +1 -0
  112. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +76 -75
  113. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js.map +1 -0
  114. package/dist/collection/components/vviinn-icons/index.js +11 -27
  115. package/dist/collection/components/vviinn-icons/index.js.map +1 -0
  116. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +121 -67
  117. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js.map +1 -0
  118. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +82 -69
  119. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js.map +1 -0
  120. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
  121. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +28 -28
  122. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js.map +1 -0
  123. package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
  124. package/dist/collection/components/vviinn-modal/vviinn-modal.js +116 -93
  125. package/dist/collection/components/vviinn-modal/vviinn-modal.js.map +1 -0
  126. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +13 -14
  127. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js.map +1 -0
  128. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +13 -14
  129. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js.map +1 -0
  130. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +13 -14
  131. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js.map +1 -0
  132. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +13 -17
  133. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js.map +1 -0
  134. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
  135. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +13 -9
  136. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js.map +1 -0
  137. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +108 -78
  138. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js.map +1 -0
  139. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
  140. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +12 -7
  141. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js.map +1 -0
  142. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
  143. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +13 -16
  144. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js.map +1 -0
  145. package/dist/collection/components/vviinn-product-card/render-helpers.js +7 -14
  146. package/dist/collection/components/vviinn-product-card/render-helpers.js.map +1 -0
  147. package/dist/collection/components/vviinn-product-card/stories/args.js +1 -0
  148. package/dist/collection/components/vviinn-product-card/stories/args.js.map +1 -0
  149. package/dist/collection/components/vviinn-product-card/stories/decorators.js +1 -0
  150. package/dist/collection/components/vviinn-product-card/stories/decorators.js.map +1 -0
  151. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +1 -0
  152. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js.map +1 -0
  153. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +426 -415
  154. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js.map +1 -0
  155. package/dist/collection/components/vviinn-slider/arrow.js +2 -2
  156. package/dist/collection/components/vviinn-slider/arrow.js.map +1 -0
  157. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +13 -9
  158. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js.map +1 -0
  159. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
  160. package/dist/collection/components/vviinn-slider/vviinn-slider.js +88 -82
  161. package/dist/collection/components/vviinn-slider/vviinn-slider.js.map +1 -0
  162. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +13 -18
  163. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js.map +1 -0
  164. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
  165. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +372 -360
  166. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js.map +1 -0
  167. package/dist/collection/components/vviinn-vpr-button/stories/args.js +1 -0
  168. package/dist/collection/components/vviinn-vpr-button/stories/args.js.map +1 -0
  169. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +1 -0
  170. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js.map +1 -0
  171. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +449 -444
  172. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js.map +1 -0
  173. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +1 -0
  174. package/dist/collection/components/vviinn-vpr-widget/stories/args.js.map +1 -0
  175. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +1 -0
  176. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js.map +1 -0
  177. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +1 -0
  178. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js.map +1 -0
  179. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +1 -0
  180. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js.map +1 -0
  181. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +546 -542
  182. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js.map +1 -0
  183. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +3 -0
  184. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js.map +1 -0
  185. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +369 -332
  186. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js.map +1 -0
  187. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +1 -0
  188. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js.map +1 -0
  189. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
  190. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +27 -0
  191. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js.map +1 -0
  192. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +503 -425
  193. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js.map +1 -0
  194. package/dist/collection/cropper/Cropper.js +1 -0
  195. package/dist/collection/cropper/Cropper.js.map +1 -0
  196. package/dist/collection/cropper/Handler.js +1 -0
  197. package/dist/collection/cropper/Handler.js.map +1 -0
  198. package/dist/collection/dom/index.js +1 -0
  199. package/dist/collection/dom/index.js.map +1 -0
  200. package/dist/collection/error.js +1 -0
  201. package/dist/collection/error.js.map +1 -0
  202. package/dist/collection/file/index.js +1 -0
  203. package/dist/collection/file/index.js.map +1 -0
  204. package/dist/collection/geometry/Clip.js +1 -0
  205. package/dist/collection/geometry/Clip.js.map +1 -0
  206. package/dist/collection/geometry/Clip.spec.js +17 -0
  207. package/dist/collection/geometry/Clip.spec.js.map +1 -0
  208. package/dist/collection/geometry/Point.js +1 -0
  209. package/dist/collection/geometry/Point.js.map +1 -0
  210. package/dist/collection/geometry/Rectangle.js +1 -0
  211. package/dist/collection/geometry/Rectangle.js.map +1 -0
  212. package/dist/collection/geometry/Rectangle.spec.js +67 -0
  213. package/dist/collection/geometry/Rectangle.spec.js.map +1 -0
  214. package/dist/collection/geometry/RectangleAlt.js +1 -0
  215. package/dist/collection/geometry/RectangleAlt.js.map +1 -0
  216. package/dist/collection/geometry/Sized.js +1 -0
  217. package/dist/collection/geometry/Sized.js.map +1 -0
  218. package/dist/collection/geometry/Sized.spec.js +17 -0
  219. package/dist/collection/geometry/Sized.spec.js.map +1 -0
  220. package/dist/collection/global.js +1 -0
  221. package/dist/collection/global.js.map +1 -0
  222. package/dist/collection/index.js +1 -0
  223. package/dist/collection/index.js.map +1 -0
  224. package/dist/collection/interfaces/generated.js +1 -4
  225. package/dist/collection/interfaces/generated.js.map +1 -0
  226. package/dist/collection/interfaces/recommendation.js +1 -0
  227. package/dist/collection/interfaces/recommendation.js.map +1 -0
  228. package/dist/collection/network/apiClient.js +1 -0
  229. package/dist/collection/network/apiClient.js.map +1 -0
  230. package/dist/collection/network/ion/File.js +1 -0
  231. package/dist/collection/network/ion/File.js.map +1 -0
  232. package/dist/collection/network/ion/Form.js +1 -0
  233. package/dist/collection/network/ion/Form.js.map +1 -0
  234. package/dist/collection/network/ion/Form.spec.js +44 -0
  235. package/dist/collection/network/ion/Form.spec.js.map +1 -0
  236. package/dist/collection/network/ion/Link.js +1 -0
  237. package/dist/collection/network/ion/Link.js.map +1 -0
  238. package/dist/collection/network/ion/ValueObject.js +1 -0
  239. package/dist/collection/network/ion/ValueObject.js.map +1 -0
  240. package/dist/collection/network/request.js +1 -0
  241. package/dist/collection/network/request.js.map +1 -0
  242. package/dist/collection/network/utils.js +1 -0
  243. package/dist/collection/network/utils.js.map +1 -0
  244. package/dist/collection/openApi/index.js +1 -0
  245. package/dist/collection/openApi/index.js.map +1 -0
  246. package/dist/collection/recommendation/events.js +1 -0
  247. package/dist/collection/recommendation/events.js.map +1 -0
  248. package/dist/collection/recommendation/recommendation.js +1 -0
  249. package/dist/collection/recommendation/recommendation.js.map +1 -0
  250. package/dist/collection/searchSession/searchSession.js +1 -0
  251. package/dist/collection/searchSession/searchSession.js.map +1 -0
  252. package/dist/collection/sentry.js +1 -0
  253. package/dist/collection/sentry.js.map +1 -0
  254. package/dist/collection/slider/GridMode.js +1 -0
  255. package/dist/collection/slider/GridMode.js.map +1 -0
  256. package/dist/collection/store/file-processing.js +1 -0
  257. package/dist/collection/store/file-processing.js.map +1 -0
  258. package/dist/collection/store/imageSearch.store.js +1 -0
  259. package/dist/collection/store/imageSearch.store.js.map +1 -0
  260. package/dist/collection/store/store.js +1 -0
  261. package/dist/collection/store/store.js.map +1 -0
  262. package/dist/collection/store/tracking.store.js +1 -0
  263. package/dist/collection/store/tracking.store.js.map +1 -0
  264. package/dist/collection/stories/image-selector.stories.js +1 -0
  265. package/dist/collection/stories/image-selector.stories.js.map +1 -0
  266. package/dist/collection/stories/image-view.stories.js +1 -0
  267. package/dist/collection/stories/image-view.stories.js.map +1 -0
  268. package/dist/collection/stories/modal.stories.js +1 -0
  269. package/dist/collection/stories/modal.stories.js.map +1 -0
  270. package/dist/collection/stories/onboarding.stories.js +1 -0
  271. package/dist/collection/stories/onboarding.stories.js.map +1 -0
  272. package/dist/collection/stories/overlay.stories.js +1 -0
  273. package/dist/collection/stories/overlay.stories.js.map +1 -0
  274. package/dist/collection/stories/overlayedModal.stories.js +1 -0
  275. package/dist/collection/stories/overlayedModal.stories.js.map +1 -0
  276. package/dist/collection/stories/privacy-badge.stories.js +1 -0
  277. package/dist/collection/stories/privacy-badge.stories.js.map +1 -0
  278. package/dist/collection/stories/slider.stories.js +1 -0
  279. package/dist/collection/stories/slider.stories.js.map +1 -0
  280. package/dist/collection/stories/teaser.stories.js +1 -0
  281. package/dist/collection/stories/teaser.stories.js.map +1 -0
  282. package/dist/collection/stories/vps-widget.stories.js +1 -0
  283. package/dist/collection/stories/vps-widget.stories.js.map +1 -0
  284. package/dist/collection/stories/vviinn-product.stories.js +1 -0
  285. package/dist/collection/stories/vviinn-product.stories.js.map +1 -0
  286. package/dist/collection/tracking/event.js +1 -0
  287. package/dist/collection/tracking/event.js.map +1 -0
  288. package/dist/collection/tracking/filter.js +1 -0
  289. package/dist/collection/tracking/filter.js.map +1 -0
  290. package/dist/collection/tracking/index.js +1 -0
  291. package/dist/collection/tracking/index.js.map +1 -0
  292. package/dist/collection/tracking/models.js +1 -0
  293. package/dist/collection/tracking/models.js.map +1 -0
  294. package/dist/collection/tracking/product.js +1 -0
  295. package/dist/collection/tracking/product.js.map +1 -0
  296. package/dist/collection/tracking/search.js +1 -0
  297. package/dist/collection/tracking/search.js.map +1 -0
  298. package/dist/collection/tracking/widget.js +1 -0
  299. package/dist/collection/tracking/widget.js.map +1 -0
  300. package/dist/collection/utils/collections/collectionsUtils.js +1 -0
  301. package/dist/collection/utils/collections/collectionsUtils.js.map +1 -0
  302. package/dist/collection/utils/either.js +1 -0
  303. package/dist/collection/utils/either.js.map +1 -0
  304. package/dist/collection/utils/enum/enumUtils.js +1 -0
  305. package/dist/collection/utils/enum/enumUtils.js.map +1 -0
  306. package/dist/collection/utils/event/Events.js +1 -0
  307. package/dist/collection/utils/event/Events.js.map +1 -0
  308. package/dist/collection/utils/number/index.js +1 -0
  309. package/dist/collection/utils/number/index.js.map +1 -0
  310. package/dist/collection/utils/option/option.js +1 -0
  311. package/dist/collection/utils/option/option.js.map +1 -0
  312. package/dist/collection/utils/semigroup/semigroupDiff.js +1 -0
  313. package/dist/collection/utils/semigroup/semigroupDiff.js.map +1 -0
  314. package/dist/collection/utils/token/tokenUtils.js +1 -0
  315. package/dist/collection/utils/token/tokenUtils.js.map +1 -0
  316. package/dist/esm/Campaign-90ba7e06.js +2 -0
  317. package/dist/esm/Campaign-90ba7e06.js.map +1 -0
  318. package/dist/esm/{Handler-f9b8735c.js → Handler-7bfee84f.js} +30 -43
  319. package/dist/esm/Handler-7bfee84f.js.map +1 -0
  320. package/dist/esm/cropper-handler.entry.js +7 -4
  321. package/dist/esm/cropper-handler.entry.js.map +1 -0
  322. package/dist/esm/{customized-slots-00afe247.js → customized-slots-b372eaed.js} +3 -1
  323. package/dist/esm/customized-slots-b372eaed.js.map +1 -0
  324. package/dist/esm/highlight-box_22.entry.js +68 -39
  325. package/dist/esm/highlight-box_22.entry.js.map +1 -0
  326. package/dist/esm/{imageSearch.store-9dde5360.js → imageSearch.store-cccd9b24.js} +3572 -2251
  327. package/dist/esm/imageSearch.store-cccd9b24.js.map +1 -0
  328. package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +685 -304
  329. package/dist/esm/index-48ef9564.js.map +1 -0
  330. package/dist/esm/{index-b31d86ce.js → index-714e572a.js} +3 -1
  331. package/dist/esm/index-714e572a.js.map +1 -0
  332. package/dist/esm/{index-4d5b52ba.js → index-fdc32fbc.js} +3 -1
  333. package/dist/esm/index-fdc32fbc.js.map +1 -0
  334. package/dist/esm/index.js +2 -0
  335. package/dist/esm/index.js.map +1 -0
  336. package/dist/esm/loader.js +6 -3
  337. package/dist/esm/loader.js.map +1 -0
  338. package/dist/esm/polyfills/css-shim.js +1 -1
  339. package/dist/esm/vviinn-button.entry.js +5 -3
  340. package/dist/esm/vviinn-button.entry.js.map +1 -0
  341. package/dist/esm/vviinn-carousel_3.entry.js +123 -38
  342. package/dist/esm/vviinn-carousel_3.entry.js.map +1 -0
  343. package/dist/esm/vviinn-error.entry.js +4 -2
  344. package/dist/esm/vviinn-error.entry.js.map +1 -0
  345. package/dist/esm/vviinn-preloader.entry.js +7 -5
  346. package/dist/esm/vviinn-preloader.entry.js.map +1 -0
  347. package/dist/esm/vviinn-recommendations-sidebar.entry.js +15 -6
  348. package/dist/esm/vviinn-recommendations-sidebar.entry.js.map +1 -0
  349. package/dist/esm/vviinn-vpr-button.entry.js +13 -12
  350. package/dist/esm/vviinn-vpr-button.entry.js.map +1 -0
  351. package/dist/esm/vviinn-vps-button.entry.js +28 -25
  352. package/dist/esm/vviinn-vps-button.entry.js.map +1 -0
  353. package/dist/esm/vviinn-vps-widget.entry.js +46 -31
  354. package/dist/esm/vviinn-vps-widget.entry.js.map +1 -0
  355. package/dist/esm/vviinn-widgets.js +9 -3
  356. package/dist/esm/vviinn-widgets.js.map +1 -0
  357. package/dist/loader/index.d.ts +9 -0
  358. package/dist/loader/package.json +1 -0
  359. package/dist/types/Image/sizing.d.ts +4 -4
  360. package/dist/types/campaign/Campaign.d.ts +5 -5
  361. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
  362. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
  363. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
  364. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
  365. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
  366. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
  367. package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
  368. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
  369. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
  370. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
  371. package/dist/types/components.d.ts +154 -54
  372. package/dist/types/error.d.ts +1 -1
  373. package/dist/types/geometry/Point.d.ts +1 -1
  374. package/dist/types/geometry/Rectangle.d.ts +1 -1
  375. package/dist/types/geometry/Sized.d.ts +1 -1
  376. package/dist/types/interfaces/generated.d.ts +192 -371
  377. package/dist/types/network/ion/File.d.ts +2 -2
  378. package/dist/types/network/ion/Form.d.ts +5 -5
  379. package/dist/types/network/ion/Link.d.ts +1 -1
  380. package/dist/types/network/ion/ValueObject.d.ts +4 -4
  381. package/dist/types/network/utils.d.ts +3 -3
  382. package/dist/types/recommendation/events.d.ts +5 -5
  383. package/dist/types/recommendation/recommendation.d.ts +1 -1
  384. package/dist/types/searchSession/searchSession.d.ts +7 -7
  385. package/dist/types/slider/GridMode.d.ts +1 -1
  386. package/dist/types/stencil-public-runtime.d.ts +98 -23
  387. package/dist/types/store/imageSearch.store.d.ts +1 -1
  388. package/dist/types/tracking/models.d.ts +2 -2
  389. package/dist/types/utils/event/Events.d.ts +1 -1
  390. package/dist/vviinn-widgets/index.esm.js +2 -0
  391. package/dist/vviinn-widgets/index.esm.js.map +1 -0
  392. package/dist/vviinn-widgets/p-0b0d59d7.entry.js +2 -0
  393. package/dist/vviinn-widgets/p-0b0d59d7.entry.js.map +1 -0
  394. package/dist/vviinn-widgets/p-14373da7.entry.js +2 -0
  395. package/dist/vviinn-widgets/p-14373da7.entry.js.map +1 -0
  396. package/dist/vviinn-widgets/p-18fd769b.js +2 -1
  397. package/dist/vviinn-widgets/p-18fd769b.js.map +1 -0
  398. package/dist/vviinn-widgets/p-2f7bf983.js +2 -0
  399. package/dist/vviinn-widgets/p-2f7bf983.js.map +1 -0
  400. package/dist/vviinn-widgets/p-3abc679c.js +2 -0
  401. package/dist/vviinn-widgets/p-3abc679c.js.map +1 -0
  402. package/dist/vviinn-widgets/p-3b99c62d.js +2 -0
  403. package/dist/vviinn-widgets/p-3b99c62d.js.map +1 -0
  404. package/dist/vviinn-widgets/p-4325566b.entry.js +2 -0
  405. package/dist/vviinn-widgets/p-4325566b.entry.js.map +1 -0
  406. package/dist/vviinn-widgets/p-53eacbe3.js +2 -0
  407. package/dist/vviinn-widgets/p-53eacbe3.js.map +1 -0
  408. package/dist/vviinn-widgets/p-645baf22.entry.js +2 -0
  409. package/dist/vviinn-widgets/p-645baf22.entry.js.map +1 -0
  410. package/dist/vviinn-widgets/p-a10b9151.entry.js +2 -0
  411. package/dist/vviinn-widgets/p-a10b9151.entry.js.map +1 -0
  412. package/dist/vviinn-widgets/p-c012ef97.entry.js +2 -0
  413. package/dist/vviinn-widgets/p-c012ef97.entry.js.map +1 -0
  414. package/dist/vviinn-widgets/p-c24caccd.js +2 -0
  415. package/dist/vviinn-widgets/p-c24caccd.js.map +1 -0
  416. package/dist/vviinn-widgets/p-d20a9a96.entry.js +2 -0
  417. package/dist/vviinn-widgets/p-d20a9a96.entry.js.map +1 -0
  418. package/dist/vviinn-widgets/p-d95d7c38.entry.js +2 -0
  419. package/dist/vviinn-widgets/p-d95d7c38.entry.js.map +1 -0
  420. package/dist/vviinn-widgets/p-e5e67a5f.entry.js +2 -0
  421. package/dist/vviinn-widgets/p-e5e67a5f.entry.js.map +1 -0
  422. package/dist/vviinn-widgets/p-e6d67de3.entry.js +2 -0
  423. package/dist/vviinn-widgets/p-e6d67de3.entry.js.map +1 -0
  424. package/dist/vviinn-widgets/p-fa17e81f.js +3 -0
  425. package/dist/vviinn-widgets/p-fa17e81f.js.map +1 -0
  426. package/dist/vviinn-widgets/vviinn-widgets.esm.js +2 -1
  427. package/dist/vviinn-widgets/vviinn-widgets.esm.js.map +1 -0
  428. package/package.json +12 -12
  429. package/www/build/index.esm.js +2 -0
  430. package/www/build/index.esm.js.map +1 -0
  431. package/www/build/p-0b0d59d7.entry.js +2 -0
  432. package/www/build/p-0b0d59d7.entry.js.map +1 -0
  433. package/www/build/p-14373da7.entry.js +2 -0
  434. package/www/build/p-14373da7.entry.js.map +1 -0
  435. package/www/build/p-18fd769b.js +2 -1
  436. package/www/build/p-18fd769b.js.map +1 -0
  437. package/www/build/p-2f7bf983.js +2 -0
  438. package/www/build/p-2f7bf983.js.map +1 -0
  439. package/www/build/p-3abc679c.js +2 -0
  440. package/www/build/p-3abc679c.js.map +1 -0
  441. package/www/build/p-3b99c62d.js +2 -0
  442. package/www/build/p-3b99c62d.js.map +1 -0
  443. package/www/build/p-4325566b.entry.js +2 -0
  444. package/www/build/p-4325566b.entry.js.map +1 -0
  445. package/www/build/p-53eacbe3.js +2 -0
  446. package/www/build/p-53eacbe3.js.map +1 -0
  447. package/www/build/p-645baf22.entry.js +2 -0
  448. package/www/build/p-645baf22.entry.js.map +1 -0
  449. package/www/build/p-a10b9151.entry.js +2 -0
  450. package/www/build/p-a10b9151.entry.js.map +1 -0
  451. package/www/build/p-a67898be.css +1 -0
  452. package/www/build/p-ae6e6410.js +2 -0
  453. package/www/build/p-c012ef97.entry.js +2 -0
  454. package/www/build/p-c012ef97.entry.js.map +1 -0
  455. package/www/build/p-c24caccd.js +2 -0
  456. package/www/build/p-c24caccd.js.map +1 -0
  457. package/www/build/p-d20a9a96.entry.js +2 -0
  458. package/www/build/p-d20a9a96.entry.js.map +1 -0
  459. package/www/build/p-d95d7c38.entry.js +2 -0
  460. package/www/build/p-d95d7c38.entry.js.map +1 -0
  461. package/www/build/p-e5e67a5f.entry.js +2 -0
  462. package/www/build/p-e5e67a5f.entry.js.map +1 -0
  463. package/www/build/p-e6d67de3.entry.js +2 -0
  464. package/www/build/p-e6d67de3.entry.js.map +1 -0
  465. package/www/build/p-fa17e81f.js +3 -0
  466. package/www/build/p-fa17e81f.js.map +1 -0
  467. package/www/build/vviinn-widgets.esm.js +2 -1
  468. package/www/build/vviinn-widgets.esm.js.map +1 -0
  469. package/www/index.html +1 -1
  470. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  471. package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
  472. package/dist/vviinn-widgets/p-2f9ee951.js +0 -1
  473. package/dist/vviinn-widgets/p-339c6838.js +0 -1
  474. package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
  475. package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
  476. package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
  477. package/dist/vviinn-widgets/p-69850e5b.js +0 -1
  478. package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
  479. package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
  480. package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
  481. package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
  482. package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
  483. package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
  484. package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
  485. package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
  486. package/www/build/p-11f61564.js +0 -1
  487. package/www/build/p-12851e97.entry.js +0 -1
  488. package/www/build/p-2f9ee951.js +0 -1
  489. package/www/build/p-339c6838.js +0 -1
  490. package/www/build/p-3b2c91c0.entry.js +0 -1
  491. package/www/build/p-45df9f28.entry.js +0 -1
  492. package/www/build/p-57ed5303.entry.js +0 -1
  493. package/www/build/p-69850e5b.js +0 -1
  494. package/www/build/p-7c2f762a.entry.js +0 -1
  495. package/www/build/p-7c3b7388.entry.js +0 -1
  496. package/www/build/p-85006f41.entry.js +0 -1
  497. package/www/build/p-8a3dd76d.entry.js +0 -1
  498. package/www/build/p-99e58be7.entry.js +0 -1
  499. package/www/build/p-9e2c131a.js +0 -125
  500. package/www/build/p-a2b450b6.entry.js +0 -1
  501. package/www/build/p-bcc1ccf0.js +0 -1
  502. package/www/build/p-e0153ae2.css +0 -6
  503. package/www/build/p-e6fee8d2.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-cropper.js","sourceRoot":"","sources":["../../../../../src/components/image-search/image-view/image-cropper/image-cropper.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,GAEN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAa,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAEL,cAAc,EACd,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAO/B,MAAM,OAAO,YAAY;;IAWf,oBAAe,GAAsB,SAAS,CAAC;IAG/C,WAAM,GAAwB,SAAS,CAAC;IACxC,mBAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE;MAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;oBAdyB,KAAK;;sBAGF,KAAK;;EAapC,gBAAgB;IACd,IAAI,CAAC,cAAc,C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;QAC/D,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;OAC7C,CAAC;IACJ,CAAC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;MACf,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CACH,CAAC;EACJ,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,WAAW,EAAC,4FAA4F;MAC5G,WACE,KAAK,EAAE;UACL,WAAW,EAAE,IAAI;UACjB,MAAM,EAAE,IAAI,CAAC,UAAU;UACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,EACD,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,EACzB,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,EAC1B,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,IAEhD,gBAAgB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACjD,uBACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAChC,CACpB,CAAC,CACE,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n State,\n Element,\n Prop,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\nimport { HandlerDirection } from \"../../../../cropper/Handler\";\nimport { move, Rectangle, transform } from \"../../../../geometry/Rectangle\";\nimport {\n Point,\n fromMouseEvent,\n pointDiffSemigroup,\n} from \"../../../../geometry/Point\";\nimport {\n imageSearchState,\n makeRectangularSearchRequest,\n} from \"../../../../store/imageSearch.store\";\nimport { pipe } from \"fp-ts/lib/function\";\nimport * as O from \"fp-ts/lib/Option\";\nimport { findTarget } from \"../../../../dom\";\nimport styles from \"./image-cropper.css\";\nimport { BasicEventData } from \"../../../../recommendation/events\";\n\nconst MIN_SEARCHAREA_SIZE = 40;\n\n@Component({\n tag: \"image-cropper\",\n shadow: true,\n styles,\n})\nexport class ImageCropper {\n @Element() el: HTMLElement;\n\n @Prop() disabled: boolean = false;\n @Prop() basicEventData: BasicEventData;\n\n @State() handleMove: boolean = false;\n\n @Event() vviinnImageCrop: EventEmitter<BasicEventData>;\n\n private handlerMoveDirection: HandlerDirection | null;\n private mouseStartPoint: Point | undefined = undefined;\n private pointerMoveListener: EventListener;\n private pointerReleaseListener: EventListener;\n private bounds: DOMRect | undefined = undefined;\n private resizeObserver = new ResizeObserver(() => {\n this.bounds = this.el.getBoundingClientRect();\n });\n\n componentDidLoad() {\n this.resizeObserver.observe(this.el);\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n private handleHandlerMove(event: PointerEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n const destination = fromMouseEvent(event);\n const distance = pointDiffSemigroup.concat(\n destination,\n this.mouseStartPoint\n );\n\n const transformedHandler = {\n position: distance,\n direction: this.handlerMoveDirection,\n };\n\n pipe(\n imageSearchState.searchArea,\n O.map((area) => {\n const newSearchArea = transform(area, transformedHandler);\n\n if (this.outOfBounds(newSearchArea)) return;\n\n imageSearchState.searchArea = O.some(newSearchArea);\n this.mouseStartPoint = destination;\n imageSearchState.detectedObject = undefined;\n })\n );\n }\n\n private outOfBounds(area: Rectangle): boolean {\n return (\n area.width < MIN_SEARCHAREA_SIZE ||\n area.height < MIN_SEARCHAREA_SIZE ||\n area.x < 0 ||\n area.y < 0 ||\n this.bounds.height - (area.y + area.height) < 0 ||\n this.bounds.width - (area.x + area.width) < 0\n );\n }\n\n private handleCropperMove(ev: MouseEvent) {\n ev.preventDefault();\n ev.stopPropagation();\n const destination = fromMouseEvent(ev);\n\n const distance = pointDiffSemigroup.concat(\n destination,\n this.mouseStartPoint\n );\n\n pipe(\n imageSearchState.searchArea,\n O.map((searchArea) => {\n const newSearchArea = move(searchArea, distance);\n\n if (\n newSearchArea.x < 0 ||\n newSearchArea.y < 0 ||\n this.bounds.height - (newSearchArea.y + newSearchArea.height) < 0 ||\n this.bounds.width - (newSearchArea.x + newSearchArea.width) < 0\n )\n return;\n\n imageSearchState.detectedObject = undefined;\n imageSearchState.searchArea = O.some(newSearchArea);\n this.mouseStartPoint = destination;\n })\n );\n }\n\n private handlePointerDown(event: PointerEvent) {\n event.stopPropagation();\n this.mouseStartPoint = fromMouseEvent(event);\n\n // should be htmlelement or handler\n const target = findTarget(event) as any;\n\n if (target.localName === \"cropper-handler\") {\n this.handlerMoveDirection = target.handler.direction;\n this.pointerMoveListener = this.handleHandlerMove.bind(this);\n } else {\n this.pointerMoveListener = this.handleCropperMove.bind(this);\n }\n\n this.pointerReleaseListener = this.handleSearchAreaRelease.bind(this);\n\n this.el.addEventListener(\"pointermove\", this.pointerMoveListener);\n window.addEventListener(\"pointerup\", this.pointerReleaseListener, {\n once: true,\n });\n }\n\n private handleSearchAreaRelease() {\n this.el.removeEventListener(\"pointermove\", this.pointerMoveListener);\n document.removeEventListener(\"pointerup\", this.pointerReleaseListener);\n this.mouseStartPoint = undefined;\n makeRectangularSearchRequest();\n this.vviinnImageCrop.emit(this.basicEventData);\n }\n\n private getStyleMap() {\n return pipe(\n imageSearchState.searchArea,\n O.map((rectangle) => {\n return {\n width: `${rectangle.width}px`,\n height: `${rectangle.height}px`,\n transform: `translate3d(${rectangle.x}px, ${rectangle.y}px, 0)`,\n cursor: this.handleMove ? \"move\" : \"default\",\n };\n }),\n O.getOrElse(() => {\n return {};\n })\n );\n }\n\n render() {\n return (\n <Host exportparts=\"handle, e-resize, n-resize, ne-resize, nw-resize, s-resize, se-resize, sw-resize, w-resize\">\n <div\n class={{\n \"crop-area\": true,\n active: this.handleMove,\n disabled: this.disabled,\n }}\n draggable={false}\n style={this.getStyleMap()}\n onContextMenu={() => false}\n onPointerDown={(ev) => this.handlePointerDown(ev)}\n >\n {imageSearchState.cropperHandlers.map((handler) => (\n <cropper-handler\n disabled={this.disabled}\n handler={handler}\n onPointerDown={(ev) => this.handlePointerDown(ev)}\n ></cropper-handler>\n ))}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -12,21 +12,16 @@
12
12
 
13
13
  .filter {
14
14
  align-items: center;
15
- -webkit-animation-duration: 0.25s;
16
- animation-duration: 0.25s;
17
- -webkit-animation-fill-mode: forwards;
18
- animation-fill-mode: forwards;
19
- -webkit-animation-name: scalein;
20
- animation-name: scalein;
15
+ animation-duration: 0.25s;
16
+ animation-fill-mode: forwards;
17
+ animation-name: scalein;
21
18
  border: 1px solid lightgray;
22
19
  cursor: pointer;
23
20
  display: flex;
24
21
  flex-direction: row;
25
22
  grid-gap: 8px;
26
- height: -webkit-max-content;
27
23
  height: -moz-max-content;
28
24
  height: max-content;
29
- min-width: -webkit-max-content;
30
25
  min-width: -moz-max-content;
31
26
  min-width: max-content;
32
27
  padding: 0.1rem;
@@ -36,7 +31,6 @@
36
31
  transition-timing-function: ease-in-out;
37
32
  -webkit-user-select: none;
38
33
  -moz-user-select: none;
39
- -ms-user-select: none;
40
34
  user-select: none;
41
35
  padding: 6px 16px;
42
36
  }
@@ -70,18 +64,6 @@
70
64
  transform: rotateX(180deg);
71
65
  }
72
66
 
73
- @-webkit-keyframes scalein {
74
- from {
75
- opacity: 0;
76
- transform: scale(0.5);
77
- }
78
-
79
- to {
80
- opacity: 1;
81
- transform: scale(1);
82
- }
83
- }
84
-
85
67
  @keyframes scalein {
86
68
  from {
87
69
  opacity: 0;
@@ -108,8 +90,7 @@
108
90
  .filters {
109
91
  flex-wrap: nowrap;
110
92
  overflow-x: scroll;
111
- -ms-scroll-snap-type: x mandatory;
112
- scroll-snap-type: x mandatory;
93
+ scroll-snap-type: x mandatory;
113
94
  grid-gap: unset;
114
95
  }
115
96
 
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, State, Element, Event, } from "@stencil/core";
1
+ import { Host, h, } from "@stencil/core";
2
2
  import { imageSearchState } from "../../../store/imageSearch.store";
3
3
  import { CheckIcon } from "../../vviinn-icons";
4
4
  const FILTERS_COUNT = 5;
@@ -7,6 +7,7 @@ const getFilterId = (filter) => filter.href.split("/").reverse()[0];
7
7
  export class SearchFilters {
8
8
  constructor() {
9
9
  this.filter = null;
10
+ this.basicEventData = undefined;
10
11
  this.selectedCategoryId = null;
11
12
  this.hideFilters = true;
12
13
  }
@@ -41,105 +42,111 @@ export class SearchFilters {
41
42
  return this.selectedCategoryId === getFilterId(filterLink);
42
43
  }
43
44
  render() {
44
- return (h(Host, { exportparts: "filter, show-more-filters" },
45
- h("div", { class: "filters" },
46
- this.filter.filters
47
- .filter((_, i) => (this.hideFilters ? i < FILTERS_COUNT : true))
48
- .map((f, n) => (h("div", { role: "button", tabindex: "0", part: this.isFilterSelected(f) ? "filter active" : "filter", class: {
49
- filter: true,
50
- active: this.selectedCategoryId === getFilterId(f),
51
- }, style: { "animation-delay": `${n * 10}ms` }, onPointerUp: (ev) => {
52
- ev.stopPropagation();
53
- this.handleFilterSelection(f);
54
- }, onKeyPress: (ev) => this.handleEnter(ev, f) },
55
- this.isFilterSelected(f) ? h(CheckIcon, null) : null,
56
- f.name))),
57
- h("div", { class: {
58
- filter: true,
59
- "show-more": true,
60
- hidden: this.filter.filters.length <= FILTERS_COUNT,
61
- active: !this.hideFilters,
62
- }, role: "button", tabindex: "0", "aria-role": "button", onClick: () => this.toggleFilters(), onKeyPress: (ev) => {
63
- if (ev.key === "Enter") {
64
- this.toggleFilters();
65
- }
66
- }, part: "show-more-filters" }, this.hideFilters ? "Zeige mehr" : "Zeige weniger"))));
45
+ return (h(Host, { exportparts: "filter, show-more-filters" }, h("div", { class: "filters" }, this.filter.filters
46
+ .filter((_, i) => (this.hideFilters ? i < FILTERS_COUNT : true))
47
+ .map((f, n) => (h("div", { role: "button", tabindex: "0", part: this.isFilterSelected(f) ? "filter active" : "filter", class: {
48
+ filter: true,
49
+ active: this.selectedCategoryId === getFilterId(f),
50
+ }, style: { "animation-delay": `${n * 10}ms` }, onPointerUp: (ev) => {
51
+ ev.stopPropagation();
52
+ this.handleFilterSelection(f);
53
+ }, onKeyPress: (ev) => this.handleEnter(ev, f) }, this.isFilterSelected(f) ? h(CheckIcon, null) : null, f.name))), h("div", { class: {
54
+ filter: true,
55
+ "show-more": true,
56
+ hidden: this.filter.filters.length <= FILTERS_COUNT,
57
+ active: !this.hideFilters,
58
+ }, role: "button", tabindex: "0", "aria-role": "button", onClick: () => this.toggleFilters(), onKeyPress: (ev) => {
59
+ if (ev.key === "Enter") {
60
+ this.toggleFilters();
61
+ }
62
+ }, part: "show-more-filters" }, this.hideFilters ? "Zeige mehr" : "Zeige weniger"))));
67
63
  }
68
64
  static get is() { return "search-filters"; }
69
65
  static get encapsulation() { return "shadow"; }
70
- static get originalStyleUrls() { return {
71
- "$": ["search-filters.css"]
72
- }; }
73
- static get styleUrls() { return {
74
- "$": ["search-filters.css"]
75
- }; }
76
- static get properties() { return {
77
- "filter": {
78
- "type": "unknown",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "SearchSessionFilter | null",
82
- "resolved": "SearchSessionFilter",
83
- "references": {
84
- "SearchSessionFilter": {
85
- "location": "import",
86
- "path": "../../../searchSession/searchSession"
66
+ static get originalStyleUrls() {
67
+ return {
68
+ "$": ["search-filters.css"]
69
+ };
70
+ }
71
+ static get styleUrls() {
72
+ return {
73
+ "$": ["search-filters.css"]
74
+ };
75
+ }
76
+ static get properties() {
77
+ return {
78
+ "filter": {
79
+ "type": "unknown",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "SearchSessionFilter | null",
83
+ "resolved": "SearchSessionFilter",
84
+ "references": {
85
+ "SearchSessionFilter": {
86
+ "location": "import",
87
+ "path": "../../../searchSession/searchSession"
88
+ }
87
89
  }
88
- }
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": ""
96
+ },
97
+ "defaultValue": "null"
89
98
  },
90
- "required": false,
91
- "optional": false,
92
- "docs": {
93
- "tags": [],
94
- "text": ""
95
- },
96
- "defaultValue": "null"
97
- },
98
- "basicEventData": {
99
- "type": "unknown",
100
- "mutable": false,
101
- "complexType": {
102
- "original": "BasicEventData",
103
- "resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
104
- "references": {
105
- "BasicEventData": {
106
- "location": "import",
107
- "path": "../../../recommendation/events"
99
+ "basicEventData": {
100
+ "type": "unknown",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "BasicEventData",
104
+ "resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
105
+ "references": {
106
+ "BasicEventData": {
107
+ "location": "import",
108
+ "path": "../../../recommendation/events"
109
+ }
108
110
  }
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
109
117
  }
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": ""
116
118
  }
117
- }
118
- }; }
119
- static get states() { return {
120
- "selectedCategoryId": {},
121
- "hideFilters": {}
122
- }; }
123
- static get events() { return [{
124
- "method": "vviinnSelectFilter",
125
- "name": "vviinnSelectFilter",
126
- "bubbles": true,
127
- "cancelable": true,
128
- "composed": true,
129
- "docs": {
130
- "tags": [],
131
- "text": ""
132
- },
133
- "complexType": {
134
- "original": "SelectFilterEventData",
135
- "resolved": "BasicEventData & { action: FilterAction; filterName?: string; }",
136
- "references": {
137
- "SelectFilterEventData": {
138
- "location": "import",
139
- "path": "../../../recommendation/events"
119
+ };
120
+ }
121
+ static get states() {
122
+ return {
123
+ "selectedCategoryId": {},
124
+ "hideFilters": {}
125
+ };
126
+ }
127
+ static get events() {
128
+ return [{
129
+ "method": "vviinnSelectFilter",
130
+ "name": "vviinnSelectFilter",
131
+ "bubbles": true,
132
+ "cancelable": true,
133
+ "composed": true,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "complexType": {
139
+ "original": "SelectFilterEventData",
140
+ "resolved": "BasicEventData & { action: FilterAction; filterName?: string; }",
141
+ "references": {
142
+ "SelectFilterEventData": {
143
+ "location": "import",
144
+ "path": "../../../recommendation/events"
145
+ }
140
146
  }
141
147
  }
142
- }
143
- }]; }
148
+ }];
149
+ }
144
150
  static get elementRef() { return "el"; }
145
151
  }
152
+ //# sourceMappingURL=search-filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-filters.js","sourceRoot":"","sources":["../../../../src/components/image-search/search-filters/search-filters.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,GAEN,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM/C,MAAM,aAAa,GAAW,CAAC,CAAC;AAChC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEjD,MAAM,WAAW,GAAG,CAAC,MAAY,EAAU,EAAE,CAC3C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAOtC,MAAM,OAAO,aAAa;;kBAGqB,IAAI;;8BAGJ,IAAI;uBACjB,IAAI;;EAI5B,qBAAqB,CAAC,MAAY;IACxC,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;MAClC,CAAC,CAAC,IAAI,CAAC,mBAAmB,EAAE;MAC5B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC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,EAAE;YACjB,IAAI,EAAE,CAAC,GAAG,KAAK,OAAO,EAAE;cACtB,IAAI,CAAC,aAAa,EAAE,CAAC;aACtB;UACH,CAAC,EACD,IAAI,EAAC,mBAAmB,IAEvB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAC9C,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\nimport { Link } from \"../../../network/ion/Link\";\nimport { SearchSessionFilter } from \"../../../searchSession/searchSession\";\nimport { imageSearchState } from \"../../../store/imageSearch.store\";\nimport { CheckIcon } from \"../../vviinn-icons\";\nimport {\n BasicEventData,\n SelectFilterEventData,\n} from \"../../../recommendation/events\";\n\nconst FILTERS_COUNT: number = 5;\nconst ACTIVE_FILTER_CLASSNAME = \".filter.active\";\n\nconst getFilterId = (filter: Link): string =>\n filter.href.split(\"/\").reverse()[0];\n\n@Component({\n tag: \"search-filters\",\n styleUrl: \"search-filters.css\",\n shadow: true,\n})\nexport class SearchFilters {\n @Element() el: HTMLElement;\n\n @Prop() filter: SearchSessionFilter | null = null;\n @Prop() basicEventData: BasicEventData;\n\n @State() selectedCategoryId: string | null = null;\n @State() hideFilters: boolean = true;\n\n @Event() vviinnSelectFilter: EventEmitter<SelectFilterEventData>;\n\n private handleFilterSelection(filter: Link): void {\n return this.isFilterSelected(filter)\n ? this.clearSelectedFilter()\n : this.selectFilter(filter);\n }\n\n private selectFilter(filter: Link) {\n this.selectedCategoryId = getFilterId(filter);\n imageSearchState.activeIonLink = filter;\n\n this.vviinnSelectFilter.emit({\n ...this.basicEventData,\n action: \"select\",\n filterName: filter.name,\n });\n }\n\n private clearSelectedFilter() {\n this.selectedCategoryId = null;\n imageSearchState.activeIonLink = undefined;\n this.findSelectedFilter().blur();\n\n this.vviinnSelectFilter.emit({\n ...this.basicEventData,\n action: \"deselect\",\n });\n }\n\n private findSelectedFilter(): HTMLElement {\n return this.el.shadowRoot.querySelector(ACTIVE_FILTER_CLASSNAME);\n }\n\n private toggleFilters() {\n this.hideFilters = !this.hideFilters;\n }\n\n private handleEnter(ev: KeyboardEvent, f: Link) {\n if (ev.key !== \"Enter\") return;\n this.handleFilterSelection(f);\n }\n\n private isFilterSelected(filterLink: Link): boolean {\n return this.selectedCategoryId === getFilterId(filterLink);\n }\n\n render() {\n return (\n <Host exportparts=\"filter, show-more-filters\">\n <div class=\"filters\">\n {this.filter.filters\n .filter((_, i) => (this.hideFilters ? i < FILTERS_COUNT : true))\n .map((f, n) => (\n <div\n role=\"button\"\n tabindex=\"0\"\n part={this.isFilterSelected(f) ? \"filter active\" : \"filter\"}\n class={{\n filter: true,\n active: this.selectedCategoryId === getFilterId(f),\n }}\n style={{ \"animation-delay\": `${n * 10}ms` }}\n onPointerUp={(ev) => {\n ev.stopPropagation();\n this.handleFilterSelection(f);\n }}\n onKeyPress={(ev) => this.handleEnter(ev, f)}\n >\n {this.isFilterSelected(f) ? <CheckIcon /> : null}\n {f.name}\n </div>\n ))}\n\n <div\n class={{\n filter: true,\n \"show-more\": true,\n hidden: this.filter.filters.length <= FILTERS_COUNT,\n active: !this.hideFilters,\n }}\n role=\"button\"\n tabindex=\"0\"\n aria-role=\"button\"\n onClick={() => this.toggleFilters()}\n onKeyPress={(ev) => {\n if (ev.key === \"Enter\") {\n this.toggleFilters();\n }\n }}\n part=\"show-more-filters\"\n >\n {this.hideFilters ? \"Zeige mehr\" : \"Zeige weniger\"}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  import { VisualSearchIcon } from "../vviinn-icons";
3
3
  /**
4
4
  *
@@ -9,37 +9,41 @@ export class VviinnButton {
9
9
  this.addStyle = true;
10
10
  }
11
11
  render() {
12
- return (h(Host, { exportparts: "button" },
13
- h("button", { class: this.addStyle ? "open-button" : "raw-open-button", part: "button" },
14
- h("slot", null,
15
- h(VisualSearchIcon, null)))));
12
+ return (h(Host, { exportparts: "button" }, h("button", { class: this.addStyle ? "open-button" : "raw-open-button", part: "button" }, h("slot", null, h(VisualSearchIcon, null)))));
16
13
  }
17
14
  static get is() { return "vviinn-button"; }
18
15
  static get encapsulation() { return "shadow"; }
19
- static get originalStyleUrls() { return {
20
- "$": ["vviinn-button.css"]
21
- }; }
22
- static get styleUrls() { return {
23
- "$": ["vviinn-button.css"]
24
- }; }
25
- static get properties() { return {
26
- "addStyle": {
27
- "type": "boolean",
28
- "mutable": false,
29
- "complexType": {
30
- "original": "boolean",
31
- "resolved": "boolean",
32
- "references": {}
33
- },
34
- "required": false,
35
- "optional": false,
36
- "docs": {
37
- "tags": [],
38
- "text": ""
39
- },
40
- "attribute": "add-style",
41
- "reflect": false,
42
- "defaultValue": "true"
43
- }
44
- }; }
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["vviinn-button.css"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["vviinn-button.css"]
24
+ };
25
+ }
26
+ static get properties() {
27
+ return {
28
+ "addStyle": {
29
+ "type": "boolean",
30
+ "mutable": false,
31
+ "complexType": {
32
+ "original": "boolean",
33
+ "resolved": "boolean",
34
+ "references": {}
35
+ },
36
+ "required": false,
37
+ "optional": false,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": ""
41
+ },
42
+ "attribute": "add-style",
43
+ "reflect": false,
44
+ "defaultValue": "true"
45
+ }
46
+ };
47
+ }
45
48
  }
49
+ //# sourceMappingURL=vviinn-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-button.js","sourceRoot":"","sources":["../../../src/components/vviinn-button/vviinn-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,YAAY;;oBACK,IAAI;;EAEhC,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,WAAW,EAAC,QAAQ;MACxB,cACE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EACxD,IAAI,EAAC,QAAQ;QAEb;UACE,EAAC,gBAAgB,OAAG,CACf,CACA,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from \"@stencil/core\";\nimport { VisualSearchIcon } from \"../vviinn-icons\";\n\n/**\n *\n * @part button - clickable button element\n */\n@Component({\n tag: \"vviinn-button\",\n styleUrl: \"vviinn-button.css\",\n shadow: true,\n})\nexport class VviinnButton {\n @Prop() addStyle: boolean = true;\n\n render() {\n return (\n <Host exportparts=\"button\">\n <button\n class={this.addStyle ? \"open-button\" : \"raw-open-button\"}\n part=\"button\"\n >\n <slot>\n <VisualSearchIcon />\n </slot>\n </button>\n </Host>\n );\n }\n}\n"]}
@@ -56,8 +56,7 @@
56
56
  display: flex;
57
57
  flex-direction: row;
58
58
  grid-gap: 8px;
59
- -ms-scroll-snap-type: x mandatory;
60
- scroll-snap-type: x mandatory;
59
+ scroll-snap-type: x mandatory;
61
60
  overflow-y: hidden;
62
61
  overflow-x: auto;
63
62
  flex-grow: 1;