vviinn-widgets 2.1.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Handler-d1a8a86a.js +329 -0
- package/dist/{vviinn-widgets/app-globals-e0943e34.js → cjs/app-globals-30781f30.js} +15 -925
- package/{www/build/cropper-handler.entry.js → dist/cjs/cropper-handler.cjs.entry.js} +11 -7
- package/dist/{vviinn-widgets/customized-slots-f3449695.js → cjs/customized-slots-5d904d8e.js} +6 -3
- package/dist/cjs/highlight-box_22.cjs.entry.js +737 -0
- package/{www/build/imageSearch.store-407f49f0.js → dist/cjs/imageSearch.store-128957a4.js} +11573 -11902
- package/dist/cjs/index-741a970d.js +1354 -0
- package/dist/cjs/index-c493804d.js +41 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/vviinn-carousel_5.cjs.entry.js +1232 -0
- package/dist/{vviinn-widgets/vviinn-error.entry.js → cjs/vviinn-error.cjs.entry.js} +8 -4
- package/{www/build/vviinn-preloader.entry.js → dist/cjs/vviinn-preloader.cjs.entry.js} +11 -10
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +43 -0
- package/{www/build/vviinn-vps-widget.entry.js → dist/cjs/vviinn-vps-widget.cjs.entry.js} +31 -30
- package/dist/cjs/vviinn-widgets.cjs.js +21 -0
- package/dist/collection/Image/error.js +14 -0
- package/dist/collection/Image/form.js +5 -0
- package/dist/collection/Image/fromFile.js +18 -0
- package/dist/collection/Image/imageToB64.js +9 -0
- package/dist/collection/Image/index.js +0 -0
- package/dist/collection/Image/renderPromise.js +6 -0
- package/dist/collection/Image/resizeImage.js +28 -0
- package/dist/collection/Image/sizing.js +39 -0
- package/dist/collection/Image/toFile.js +17 -0
- package/dist/collection/analytics/GAnalytics.js +32 -0
- package/dist/collection/analytics/GeneralAnalytics.js +9 -0
- package/dist/collection/analytics/GtagAnalytics.js +35 -0
- package/dist/collection/analytics/ProductAnalytics.js +1 -0
- package/dist/collection/campaign/Campaign.js +8 -0
- package/dist/collection/campaign/CampaignService.js +5 -0
- package/dist/collection/campaign/VCSCampaign.js +1 -0
- package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
- package/dist/collection/campaign/VCSCampaignService.js +5 -0
- package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
- package/dist/collection/campaign/VPRCampaignService.js +5 -0
- package/dist/collection/collection-manifest.json +43 -0
- package/dist/collection/components/customized-slots.js +47 -0
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +71 -0
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +25 -0
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +49 -0
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +64 -0
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +33 -0
- package/dist/{vviinn-widgets/image-cropper.entry.js → collection/components/image-search/image-view/image-cropper/image-cropper.js} +54 -32
- package/dist/collection/components/image-search/search-filters/search-filters.css +120 -0
- package/dist/collection/components/image-search/search-filters/search-filters.js +102 -0
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +138 -0
- package/{www/build/vviinn-carousel.entry.js → dist/collection/components/vviinn-carousel/vviinn-carousel.js} +115 -18
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +7 -0
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +36 -0
- package/dist/collection/components/vviinn-error/vviinn-error.css +38 -0
- package/dist/collection/components/vviinn-error/vviinn-error.js +18 -0
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +3 -0
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +34 -0
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +3 -0
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +34 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +34 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +19 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +80 -0
- package/dist/{vviinn-widgets/index-c9483145.js → collection/components/vviinn-icons/index.js} +13 -12
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +25 -0
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +64 -0
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +47 -0
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +83 -0
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +31 -0
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +61 -0
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +105 -0
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +98 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +41 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +26 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +26 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +26 -0
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +58 -0
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +28 -0
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +33 -0
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +15 -0
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +29 -0
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +71 -0
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +37 -0
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +20 -0
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +19 -0
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +27 -0
- package/dist/collection/components/vviinn-product-card/render-helpers.js +32 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +95 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -0
- package/dist/collection/components/vviinn-slider/arrow.js +11 -0
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +4 -0
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +15 -0
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +109 -0
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +181 -0
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +14 -0
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +29 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +238 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +200 -0
- package/dist/collection/components/vviinn-vpr-button/stories/kek.stories.js +18 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +35 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +149 -0
- package/dist/collection/components/vviinn-vpr-widget/GridMode.js +1 -0
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +11 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +441 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +74 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +177 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +350 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +247 -0
- package/dist/collection/cropper/Cropper.js +1 -0
- package/dist/collection/cropper/Handler.js +61 -0
- package/dist/collection/dom/index.js +3 -0
- package/dist/collection/error.js +14 -0
- package/dist/collection/file/index.js +4 -0
- package/dist/collection/geometry/Clip.js +14 -0
- package/dist/collection/geometry/Point.js +32 -0
- package/dist/collection/geometry/Rectangle.js +95 -0
- package/dist/collection/geometry/RectangleAlt.js +1 -0
- package/dist/collection/geometry/Sized.js +8 -0
- package/dist/collection/global.js +19 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/interfaces/generated.js +5 -0
- package/dist/collection/interfaces/recommendation.js +1 -0
- package/dist/collection/network/apiClient.js +9 -0
- package/dist/collection/network/ion/File.js +14 -0
- package/dist/collection/network/ion/Form.js +64 -0
- package/dist/collection/network/ion/Link.js +8 -0
- package/dist/collection/network/ion/ValueObject.js +23 -0
- package/dist/collection/network/request.js +19 -0
- package/dist/collection/network/utils.js +37 -0
- package/dist/collection/recommendation/recommendation.js +1 -0
- package/dist/collection/searchSession/searchSession.js +26 -0
- package/dist/collection/sentry.js +14 -0
- package/dist/collection/slider/GridMode.js +1 -0
- package/dist/collection/store/file-processing.js +13 -0
- package/dist/collection/store/imageSearch.store.js +138 -0
- package/dist/collection/store/store.js +11 -0
- package/dist/collection/stories/Button.js +21 -0
- package/dist/collection/stories/Button.stories.js +42 -0
- package/dist/collection/stories/Header.js +45 -0
- package/dist/collection/stories/Header.stories.js +15 -0
- package/dist/collection/stories/Page.js +61 -0
- package/dist/collection/stories/Page.stories.js +19 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/collection/stories/image-selector.stories.js +6 -0
- package/dist/collection/stories/image-view.stories.js +6 -0
- package/dist/collection/stories/modal.stories.js +12 -0
- package/dist/collection/stories/onboarding.stories.js +11 -0
- package/dist/collection/stories/overlay.stories.js +5 -0
- package/dist/collection/stories/overlayedModal.stories.js +8 -0
- package/dist/collection/stories/privacy-badge.stories.js +11 -0
- package/dist/collection/stories/slider.stories.js +17 -0
- package/dist/collection/stories/teaser.stories.js +5 -0
- package/dist/collection/stories/vps-widget.stories.js +47 -0
- package/dist/collection/stories/vviinn-product.stories.js +19 -0
- package/dist/collection/utils/collections/collectionsUtils.js +5 -0
- package/dist/collection/utils/either.js +3 -0
- package/dist/collection/utils/enum/enumUtils.js +3 -0
- package/dist/collection/utils/event/Events.js +1 -0
- package/dist/collection/utils/number/index.js +4 -0
- package/dist/collection/utils/option/option.js +4 -0
- package/dist/collection/utils/semigroup/semigroupDiff.js +6 -0
- package/dist/collection/utils/token/tokenUtils.js +9 -0
- package/dist/esm/Handler-639a4cb3.js +308 -0
- package/{www/build/app-globals-e0943e34.js → dist/esm/app-globals-345e497d.js} +10 -922
- package/dist/{vviinn-widgets → esm}/cropper-handler.entry.js +2 -2
- package/{www/build/customized-slots-f3449695.js → dist/esm/customized-slots-a76a8d41.js} +1 -1
- package/dist/esm/highlight-box_22.entry.js +712 -0
- package/dist/{vviinn-widgets/imageSearch.store-407f49f0.js → esm/imageSearch.store-8eab0da1.js} +11510 -11872
- package/dist/esm/index-6fa21e24.js +1323 -0
- package/{www/build/index-c9483145.js → dist/esm/index-8cb063df.js} +6 -4
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/vviinn-carousel_5.entry.js +1224 -0
- package/{www/build → dist/esm}/vviinn-error.entry.js +1 -1
- package/dist/{vviinn-widgets → esm}/vviinn-preloader.entry.js +3 -6
- package/dist/{vviinn-widgets → esm}/vviinn-vps-button.entry.js +3 -3
- package/dist/{vviinn-widgets → esm}/vviinn-vps-widget.entry.js +4 -7
- package/dist/esm/vviinn-widgets.js +19 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +12 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +10 -0
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +1 -0
- package/dist/types/components/vviinn-icons/index.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -2
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +25 -0
- package/dist/types/components/vviinn-vpr-button/stories/kek.stories.d.ts +7 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +14 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +13 -3
- package/dist/types/components.d.ts +54 -0
- package/dist/vviinn-widgets/index.esm.js +0 -1
- package/dist/vviinn-widgets/p-04b06ea9.entry.js +1 -0
- package/dist/vviinn-widgets/p-400eb62f.entry.js +1 -0
- package/dist/vviinn-widgets/p-56fc949a.js +1 -0
- package/dist/vviinn-widgets/p-59edfbe2.js +1 -0
- package/dist/vviinn-widgets/p-78ccc9eb.js +15 -0
- package/dist/vviinn-widgets/p-9d24f51e.entry.js +1 -0
- package/dist/vviinn-widgets/p-d085199d.entry.js +1 -0
- package/dist/vviinn-widgets/p-e1ba8626.js +1 -0
- package/dist/vviinn-widgets/p-e38f4aa2.entry.js +1 -0
- package/dist/vviinn-widgets/p-e67cae57.js +1 -0
- package/dist/vviinn-widgets/p-f47e82b2.entry.js +1 -0
- package/dist/vviinn-widgets/p-f582db5c.js +1 -0
- package/dist/vviinn-widgets/p-fb14e3cc.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.css +1 -6
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -125
- package/package.json +3 -1
- package/www/build/index.esm.js +0 -1
- package/www/build/p-04b06ea9.entry.js +1 -0
- package/www/build/p-400eb62f.entry.js +1 -0
- package/www/build/p-56fc949a.js +1 -0
- package/www/build/p-59edfbe2.js +1 -0
- package/www/build/p-78ccc9eb.js +15 -0
- package/www/build/p-7e4978d5.js +1 -0
- package/www/build/p-9d24f51e.entry.js +1 -0
- package/www/build/p-a67898be.css +1 -0
- package/www/build/p-d085199d.entry.js +1 -0
- package/www/build/p-e1ba8626.js +1 -0
- package/www/build/p-e38f4aa2.entry.js +1 -0
- package/www/build/p-e67cae57.js +1 -0
- package/www/build/p-f47e82b2.entry.js +1 -0
- package/www/build/p-f582db5c.js +1 -0
- package/www/build/p-fb14e3cc.entry.js +1 -0
- package/www/build/vviinn-widgets.css +1 -6
- package/www/build/vviinn-widgets.esm.js +1 -125
- package/www/index.html +6 -13
- package/dist/vviinn-widgets/Array-4b9f84cf.js +0 -4295
- package/dist/vviinn-widgets/Handler-47db9890.js +0 -1428
- package/dist/vviinn-widgets/NonEmptyArray-6ef0d207.js +0 -4370
- package/dist/vviinn-widgets/css-shim-f0027935.js +0 -4
- package/dist/vviinn-widgets/dom-db0073f0.js +0 -73
- package/dist/vviinn-widgets/highlight-box.entry.js +0 -41
- package/dist/vviinn-widgets/index-b6d739a9.js +0 -3010
- package/dist/vviinn-widgets/number-98d54dd6.js +0 -1533
- package/dist/vviinn-widgets/search-filters.entry.js +0 -73
- package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +0 -389
- package/dist/vviinn-widgets/vviinn-carousel.entry.js +0 -205
- package/dist/vviinn-widgets/vviinn-detected-object.entry.js +0 -52
- package/dist/vviinn-widgets/vviinn-empty-results.entry.js +0 -16
- package/dist/vviinn-widgets/vviinn-example-image.entry.js +0 -38
- package/dist/vviinn-widgets/vviinn-example-images.entry.js +0 -28
- package/dist/vviinn-widgets/vviinn-image-selector.entry.js +0 -31
- package/dist/vviinn-widgets/vviinn-image-view.entry.js +0 -55
- package/dist/vviinn-widgets/vviinn-modal.entry.js +0 -30
- package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-overlay.entry.js +0 -15
- package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +0 -18
- package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-product-card.entry.js +0 -176
- package/dist/vviinn-widgets/vviinn-server-error.entry.js +0 -16
- package/dist/vviinn-widgets/vviinn-slide.entry.js +0 -15
- package/dist/vviinn-widgets/vviinn-slider.entry.js +0 -120
- package/dist/vviinn-widgets/vviinn-teaser.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +0 -128
- package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +0 -16
- package/www/build/Array-4b9f84cf.js +0 -4295
- package/www/build/Handler-47db9890.js +0 -1428
- package/www/build/NonEmptyArray-6ef0d207.js +0 -4370
- package/www/build/css-shim-f0027935.js +0 -4
- package/www/build/dom-db0073f0.js +0 -73
- package/www/build/highlight-box.entry.js +0 -41
- package/www/build/image-cropper.entry.js +0 -113
- package/www/build/index-b6d739a9.js +0 -3010
- package/www/build/number-98d54dd6.js +0 -1533
- package/www/build/search-filters.entry.js +0 -73
- package/www/build/shadow-css-c1fdfa9f.js +0 -389
- package/www/build/vviinn-detected-object.entry.js +0 -52
- package/www/build/vviinn-empty-results.entry.js +0 -16
- package/www/build/vviinn-example-image.entry.js +0 -38
- package/www/build/vviinn-example-images.entry.js +0 -28
- package/www/build/vviinn-image-selector.entry.js +0 -31
- package/www/build/vviinn-image-view.entry.js +0 -55
- package/www/build/vviinn-modal.entry.js +0 -30
- package/www/build/vviinn-onboarding-card-1.entry.js +0 -21
- package/www/build/vviinn-onboarding-card-2.entry.js +0 -21
- package/www/build/vviinn-onboarding-card-3.entry.js +0 -21
- package/www/build/vviinn-onboarding.entry.js +0 -20
- package/www/build/vviinn-overlay.entry.js +0 -15
- package/www/build/vviinn-overlayed-modal.entry.js +0 -18
- package/www/build/vviinn-privacy-badge.entry.js +0 -20
- package/www/build/vviinn-product-card.entry.js +0 -176
- package/www/build/vviinn-server-error.entry.js +0 -16
- package/www/build/vviinn-slide.entry.js +0 -15
- package/www/build/vviinn-slider.entry.js +0 -120
- package/www/build/vviinn-teaser.entry.js +0 -20
- package/www/build/vviinn-vpr-widget.entry.js +0 -128
- package/www/build/vviinn-vps-button.entry.js +0 -39
- package/www/build/vviinn-wrong-format.entry.js +0 -16
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.open-button {
|
|
6
|
+
align-items: center;
|
|
7
|
+
background: rgba(255, 255, 255, 0.8);
|
|
8
|
+
border-radius: 50%;
|
|
9
|
+
border: none;
|
|
10
|
+
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: grid;
|
|
14
|
+
height: 40px;
|
|
15
|
+
justify-items: center;
|
|
16
|
+
padding: 0;
|
|
17
|
+
width: 40px;
|
|
18
|
+
transition: all 0.25s ease-in-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.open-button:hover {
|
|
22
|
+
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.open-button:focus {
|
|
26
|
+
border: 2px solid rgba(15, 98, 254, 0.5);
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.open-button:active {
|
|
31
|
+
background: #F4F4F4;
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Component, Host, h, Prop } from "@stencil/core";
|
|
2
|
+
import { VisualSearchIcon } from "../vviinn-icons";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @part button - clickable button element
|
|
6
|
+
*/
|
|
7
|
+
export class VviinnVprButton {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.position = "bottom";
|
|
10
|
+
this.sourceImage = null;
|
|
11
|
+
this.sidebarTitle = "Visually similar products";
|
|
12
|
+
this.modalScrollbar = false;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, null,
|
|
16
|
+
h("button", { class: "open-button", part: "button", onClick: () => this.handleClick() },
|
|
17
|
+
h("slot", null,
|
|
18
|
+
h(VisualSearchIcon, null)))));
|
|
19
|
+
}
|
|
20
|
+
handleClick() {
|
|
21
|
+
const sidebar = document.createElement("vviinn-recommendations-sidebar");
|
|
22
|
+
sidebar.sidebarTitle = this.sidebarTitle;
|
|
23
|
+
sidebar.productId = this.productId;
|
|
24
|
+
sidebar.token = this.token;
|
|
25
|
+
sidebar.position = this.position;
|
|
26
|
+
sidebar.sourceImage = this.sourceImage;
|
|
27
|
+
sidebar.widgetScrollbar = this.modalScrollbar;
|
|
28
|
+
sidebar.addEventListener("modalClosed", () => {
|
|
29
|
+
document.body.removeChild(sidebar);
|
|
30
|
+
});
|
|
31
|
+
document.body.append(sidebar);
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "vviinn-vpr-button"; }
|
|
34
|
+
static get encapsulation() { return "shadow"; }
|
|
35
|
+
static get originalStyleUrls() { return {
|
|
36
|
+
"$": ["vviinn-vpr-button.css"]
|
|
37
|
+
}; }
|
|
38
|
+
static get styleUrls() { return {
|
|
39
|
+
"$": ["vviinn-vpr-button.css"]
|
|
40
|
+
}; }
|
|
41
|
+
static get properties() { return {
|
|
42
|
+
"token": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "string",
|
|
47
|
+
"resolved": "string",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "token",
|
|
57
|
+
"reflect": false
|
|
58
|
+
},
|
|
59
|
+
"productId": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": ""
|
|
72
|
+
},
|
|
73
|
+
"attribute": "product-id",
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
76
|
+
"position": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "\"bottom\" | \"right\"",
|
|
81
|
+
"resolved": "\"bottom\" | \"right\"",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"attribute": "position",
|
|
91
|
+
"reflect": false,
|
|
92
|
+
"defaultValue": "\"bottom\""
|
|
93
|
+
},
|
|
94
|
+
"sourceImage": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "string | null",
|
|
99
|
+
"resolved": "string",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"attribute": "source-image",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "null"
|
|
111
|
+
},
|
|
112
|
+
"sidebarTitle": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "string",
|
|
117
|
+
"resolved": "string",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"attribute": "sidebar-title",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "\"Visually similar products\""
|
|
129
|
+
},
|
|
130
|
+
"modalScrollbar": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "boolean",
|
|
135
|
+
"resolved": "boolean",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": ""
|
|
143
|
+
},
|
|
144
|
+
"attribute": "modal-scrollbar",
|
|
145
|
+
"reflect": false,
|
|
146
|
+
"defaultValue": "false"
|
|
147
|
+
}
|
|
148
|
+
}; }
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { flow } from "fp-ts/lib/function";
|
|
2
|
+
const createBearerString = (x) => `Bearer ${x}`;
|
|
3
|
+
const createAuthedHeader = (x) => new Headers({
|
|
4
|
+
Authorization: x,
|
|
5
|
+
});
|
|
6
|
+
const createFetchAuthOptions = (x) => {
|
|
7
|
+
return {
|
|
8
|
+
headers: x,
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export const createBearAuthedHeader = flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, State, Element, Watch, Event, Listen } from "@stencil/core";
|
|
2
|
+
import { pipe } from "fp-ts/lib/function";
|
|
3
|
+
import * as TE from "fp-ts/lib/TaskEither";
|
|
4
|
+
import * as E from "fp-ts/lib/Either";
|
|
5
|
+
import { createBearAuthedHeader } from "./token-helpers";
|
|
6
|
+
import state from "../../store/store";
|
|
7
|
+
import { getRecommendationsService } from "../../campaign/CampaignService";
|
|
8
|
+
import { imageSearchState } from "../../store/imageSearch.store";
|
|
9
|
+
import { Subject } from "rxjs";
|
|
10
|
+
/**
|
|
11
|
+
* @part product-card - product card itself
|
|
12
|
+
* @part title - title inside product card
|
|
13
|
+
* @part brand - brand inside product card
|
|
14
|
+
* @part currency - brand inside product card
|
|
15
|
+
* @part image - product card image
|
|
16
|
+
* @part image-link - anchor element around product image
|
|
17
|
+
* @part price-amount - span element around every prices
|
|
18
|
+
* @part price-container - block of prices
|
|
19
|
+
* @part price-outdated - block for outdated price. rendered when product contains sale price
|
|
20
|
+
* @part price-prefix - block rendered before each price element (for ex. "from")
|
|
21
|
+
* @part price-regular - block for price if no sale price presented
|
|
22
|
+
* @part price-sale - block for sale price. rendered only if sale price presented
|
|
23
|
+
*/
|
|
24
|
+
export class VviinnVprWidget {
|
|
25
|
+
constructor() {
|
|
26
|
+
/** Title for recommendations widget */
|
|
27
|
+
this.blockTitle = "Recommended products";
|
|
28
|
+
/** Ratio of each recommended product image */
|
|
29
|
+
this.imageRatio = 1;
|
|
30
|
+
/** Width of each recommended product image */
|
|
31
|
+
this.imageWidth = 300;
|
|
32
|
+
/** Currency sign will shown after price */
|
|
33
|
+
this.currencySign = "€";
|
|
34
|
+
/** Use slider or grid view */
|
|
35
|
+
this.mode = "continuity";
|
|
36
|
+
/** Campaign type */
|
|
37
|
+
this.campaignType = "VPR";
|
|
38
|
+
/** Locale for currency formatting */
|
|
39
|
+
this.locale = "de-DE";
|
|
40
|
+
/** @internal */
|
|
41
|
+
this.apiPath = "https://api.vviinn.com";
|
|
42
|
+
/** @internal */
|
|
43
|
+
this.useCarousel = true;
|
|
44
|
+
this.showScroll = true;
|
|
45
|
+
this.cssUrl = null;
|
|
46
|
+
this.recommendations = [];
|
|
47
|
+
this.loaded = false;
|
|
48
|
+
this.productImageLoadedSubject = new Subject();
|
|
49
|
+
}
|
|
50
|
+
handleProductIdChange() {
|
|
51
|
+
this.getRecommendations();
|
|
52
|
+
}
|
|
53
|
+
handleCampaignTypeChange() {
|
|
54
|
+
this.getRecommendations();
|
|
55
|
+
}
|
|
56
|
+
handleApiPathChange(newPath) {
|
|
57
|
+
state.apiPath = newPath;
|
|
58
|
+
this.getRecommendations();
|
|
59
|
+
}
|
|
60
|
+
lol({ detail }) {
|
|
61
|
+
this.productImageLoadedSubject.next(detail);
|
|
62
|
+
}
|
|
63
|
+
connectedCallback() {
|
|
64
|
+
state.apiPath = this.apiPath;
|
|
65
|
+
state.currencySign = this.currencySign;
|
|
66
|
+
state.locale = this.locale;
|
|
67
|
+
}
|
|
68
|
+
async componentWillLoad() {
|
|
69
|
+
state.pricePrefix = this.pricePrefix;
|
|
70
|
+
state.currencySign = this.currencySign;
|
|
71
|
+
this.getRecommendations();
|
|
72
|
+
}
|
|
73
|
+
async getRecommendations() {
|
|
74
|
+
if (this.productId === undefined || this.token === undefined)
|
|
75
|
+
return;
|
|
76
|
+
const campaignType = this.campaignType.length > 0 ? this.campaignType : "VPR";
|
|
77
|
+
const headers = createBearAuthedHeader(this.token);
|
|
78
|
+
const request = pipe(TE.of(getRecommendationsService(campaignType)), TE.ap(TE.of(this.productId)), TE.ap(TE.of(headers)), TE.flatten);
|
|
79
|
+
const runRequest = await request();
|
|
80
|
+
pipe(runRequest, E.fold((error) => this.handleError(error), (data) => this.handleRecommendationsSucces(data)));
|
|
81
|
+
}
|
|
82
|
+
handleError(error) {
|
|
83
|
+
console.log("ERROR:", error);
|
|
84
|
+
}
|
|
85
|
+
handleRecommendationsSucces(data) {
|
|
86
|
+
var _a;
|
|
87
|
+
this.recommendations = (_a = data === null || data === void 0 ? void 0 : data.extended) !== null && _a !== void 0 ? _a : data;
|
|
88
|
+
imageSearchState.results = this.recommendations;
|
|
89
|
+
this.loaded = true;
|
|
90
|
+
//this.recommendationsLoaded.emit();
|
|
91
|
+
this.productIds = this.recommendations.map(r => r.productId);
|
|
92
|
+
this.productImageLoadedSubject.subscribe((id) => {
|
|
93
|
+
this.productIds = this.productIds.filter(x => x !== id);
|
|
94
|
+
if (this.productIds.length === 0) {
|
|
95
|
+
this.recommendationsLoaded.emit();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
isExternalCSS() {
|
|
100
|
+
return this.cssUrl && this.cssUrl.length > 0;
|
|
101
|
+
}
|
|
102
|
+
renderExternalCSS() {
|
|
103
|
+
return this.isExternalCSS() ? (h("link", { href: this.cssUrl, rel: "stylesheet" })) : ("");
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
return (h(Host, { class: {
|
|
107
|
+
loaded: this.loaded,
|
|
108
|
+
empty: this.recommendations.length == 0,
|
|
109
|
+
[this.mode]: true,
|
|
110
|
+
}, "aria-hidden": this.loaded ? "false" : "true" },
|
|
111
|
+
this.renderExternalCSS(),
|
|
112
|
+
h("style", null, state.fallbackStyles),
|
|
113
|
+
h("h2", { part: "recommendations-title" }, this.blockTitle),
|
|
114
|
+
this.useCarousel ? this.renderCarousel() : this.renderResults()));
|
|
115
|
+
}
|
|
116
|
+
renderRecommendation(recommendation) {
|
|
117
|
+
return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, deeplink: recommendation.deeplink, image: recommendation.image.thumbnail, brand: recommendation.brand, imageWidth: this.imageWidth, imageRatio: 1, price: recommendation.price.actual, salePrice: recommendation.price.sale, responsive: this.mode === "grid", dimmedBackground: this.useDimmedBackgroundInCard() }));
|
|
118
|
+
}
|
|
119
|
+
useDimmedBackgroundInCard() {
|
|
120
|
+
return this.mode === "continuity" || !this.useCarousel;
|
|
121
|
+
}
|
|
122
|
+
renderResults() {
|
|
123
|
+
return (h("div", { class: "recommendations-grid", part: "recommendations-grid" }, this.recommendations.map((r) => this.renderRecommendation(r))));
|
|
124
|
+
}
|
|
125
|
+
renderCarousel() {
|
|
126
|
+
return (h("vviinn-carousel", { mode: this.mode, imageWidth: this.imageWidth, showScroll: this.showScroll, recommendations: this.recommendations }));
|
|
127
|
+
}
|
|
128
|
+
static get is() { return "vviinn-vpr-widget"; }
|
|
129
|
+
static get encapsulation() { return "shadow"; }
|
|
130
|
+
static get originalStyleUrls() { return {
|
|
131
|
+
"$": ["vviinn-vpr-widget.css"]
|
|
132
|
+
}; }
|
|
133
|
+
static get styleUrls() { return {
|
|
134
|
+
"$": ["vviinn-vpr-widget.css"]
|
|
135
|
+
}; }
|
|
136
|
+
static get properties() { return {
|
|
137
|
+
"blockTitle": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "string",
|
|
142
|
+
"resolved": "string",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Title for recommendations widget"
|
|
150
|
+
},
|
|
151
|
+
"attribute": "block-title",
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"defaultValue": "\"Recommended products\""
|
|
154
|
+
},
|
|
155
|
+
"imageRatio": {
|
|
156
|
+
"type": "number",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "number",
|
|
160
|
+
"resolved": "number",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Ratio of each recommended product image"
|
|
168
|
+
},
|
|
169
|
+
"attribute": "image-ratio",
|
|
170
|
+
"reflect": false,
|
|
171
|
+
"defaultValue": "1"
|
|
172
|
+
},
|
|
173
|
+
"imageWidth": {
|
|
174
|
+
"type": "number",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "number",
|
|
178
|
+
"resolved": "number",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "Width of each recommended product image"
|
|
186
|
+
},
|
|
187
|
+
"attribute": "image-width",
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"defaultValue": "300"
|
|
190
|
+
},
|
|
191
|
+
"productId": {
|
|
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": "Id of product you need recommendations for"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "product-id",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"token": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "string",
|
|
213
|
+
"resolved": "string",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "vviinn customer token"
|
|
221
|
+
},
|
|
222
|
+
"attribute": "token",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
225
|
+
"currencySign": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "string",
|
|
230
|
+
"resolved": "string",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": false,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "Currency sign will shown after price"
|
|
238
|
+
},
|
|
239
|
+
"attribute": "currency-sign",
|
|
240
|
+
"reflect": false,
|
|
241
|
+
"defaultValue": "\"\u20AC\""
|
|
242
|
+
},
|
|
243
|
+
"pricePrefix": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "string",
|
|
248
|
+
"resolved": "string",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "prefix will shown before price"
|
|
256
|
+
},
|
|
257
|
+
"attribute": "price-prefix",
|
|
258
|
+
"reflect": false
|
|
259
|
+
},
|
|
260
|
+
"mode": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "CarouselMode",
|
|
265
|
+
"resolved": "\"continuity\" | \"grid\"",
|
|
266
|
+
"references": {
|
|
267
|
+
"CarouselMode": {
|
|
268
|
+
"location": "import",
|
|
269
|
+
"path": "../vviinn-carousel/vviinn-carousel"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "Use slider or grid view"
|
|
278
|
+
},
|
|
279
|
+
"attribute": "mode",
|
|
280
|
+
"reflect": false,
|
|
281
|
+
"defaultValue": "\"continuity\""
|
|
282
|
+
},
|
|
283
|
+
"campaignType": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"mutable": false,
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "CampaignName",
|
|
288
|
+
"resolved": "\"VCS\" | \"VPR\"",
|
|
289
|
+
"references": {
|
|
290
|
+
"CampaignName": {
|
|
291
|
+
"location": "import",
|
|
292
|
+
"path": "../../campaign/Campaign"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"optional": false,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Campaign type"
|
|
301
|
+
},
|
|
302
|
+
"attribute": "campaign-type",
|
|
303
|
+
"reflect": false,
|
|
304
|
+
"defaultValue": "\"VPR\""
|
|
305
|
+
},
|
|
306
|
+
"locale": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Locale for currency formatting"
|
|
319
|
+
},
|
|
320
|
+
"attribute": "locale",
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "\"de-DE\""
|
|
323
|
+
},
|
|
324
|
+
"apiPath": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "string | undefined",
|
|
329
|
+
"resolved": "string",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": false,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [{
|
|
336
|
+
"text": undefined,
|
|
337
|
+
"name": "internal"
|
|
338
|
+
}],
|
|
339
|
+
"text": ""
|
|
340
|
+
},
|
|
341
|
+
"attribute": "api-path",
|
|
342
|
+
"reflect": false,
|
|
343
|
+
"defaultValue": "\"https://api.vviinn.com\""
|
|
344
|
+
},
|
|
345
|
+
"useCarousel": {
|
|
346
|
+
"type": "boolean",
|
|
347
|
+
"mutable": false,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "boolean",
|
|
350
|
+
"resolved": "boolean",
|
|
351
|
+
"references": {}
|
|
352
|
+
},
|
|
353
|
+
"required": false,
|
|
354
|
+
"optional": false,
|
|
355
|
+
"docs": {
|
|
356
|
+
"tags": [{
|
|
357
|
+
"text": undefined,
|
|
358
|
+
"name": "internal"
|
|
359
|
+
}],
|
|
360
|
+
"text": ""
|
|
361
|
+
},
|
|
362
|
+
"attribute": "use-carousel",
|
|
363
|
+
"reflect": false,
|
|
364
|
+
"defaultValue": "true"
|
|
365
|
+
},
|
|
366
|
+
"showScroll": {
|
|
367
|
+
"type": "boolean",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "boolean",
|
|
371
|
+
"resolved": "boolean",
|
|
372
|
+
"references": {}
|
|
373
|
+
},
|
|
374
|
+
"required": false,
|
|
375
|
+
"optional": false,
|
|
376
|
+
"docs": {
|
|
377
|
+
"tags": [],
|
|
378
|
+
"text": ""
|
|
379
|
+
},
|
|
380
|
+
"attribute": "show-scroll",
|
|
381
|
+
"reflect": false,
|
|
382
|
+
"defaultValue": "true"
|
|
383
|
+
},
|
|
384
|
+
"cssUrl": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"mutable": false,
|
|
387
|
+
"complexType": {
|
|
388
|
+
"original": "string | null",
|
|
389
|
+
"resolved": "string",
|
|
390
|
+
"references": {}
|
|
391
|
+
},
|
|
392
|
+
"required": false,
|
|
393
|
+
"optional": false,
|
|
394
|
+
"docs": {
|
|
395
|
+
"tags": [],
|
|
396
|
+
"text": ""
|
|
397
|
+
},
|
|
398
|
+
"attribute": "css-url",
|
|
399
|
+
"reflect": false,
|
|
400
|
+
"defaultValue": "null"
|
|
401
|
+
}
|
|
402
|
+
}; }
|
|
403
|
+
static get states() { return {
|
|
404
|
+
"recommendations": {},
|
|
405
|
+
"loaded": {}
|
|
406
|
+
}; }
|
|
407
|
+
static get events() { return [{
|
|
408
|
+
"method": "recommendationsLoaded",
|
|
409
|
+
"name": "recommendationsLoaded",
|
|
410
|
+
"bubbles": true,
|
|
411
|
+
"cancelable": true,
|
|
412
|
+
"composed": true,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": ""
|
|
416
|
+
},
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "any",
|
|
419
|
+
"resolved": "any",
|
|
420
|
+
"references": {}
|
|
421
|
+
}
|
|
422
|
+
}]; }
|
|
423
|
+
static get elementRef() { return "el"; }
|
|
424
|
+
static get watchers() { return [{
|
|
425
|
+
"propName": "productId",
|
|
426
|
+
"methodName": "handleProductIdChange"
|
|
427
|
+
}, {
|
|
428
|
+
"propName": "campaignType",
|
|
429
|
+
"methodName": "handleCampaignTypeChange"
|
|
430
|
+
}, {
|
|
431
|
+
"propName": "apiPath",
|
|
432
|
+
"methodName": "handleApiPathChange"
|
|
433
|
+
}]; }
|
|
434
|
+
static get listeners() { return [{
|
|
435
|
+
"name": "productImageLoaded",
|
|
436
|
+
"method": "lol",
|
|
437
|
+
"target": undefined,
|
|
438
|
+
"capture": false,
|
|
439
|
+
"passive": false
|
|
440
|
+
}]; }
|
|
441
|
+
}
|