vviinn-widgets 2.18.21 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
- package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
- package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
- package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
- package/dist/cjs/vviinn-widgets.cjs.js +10 -3
- package/dist/collection/Image/sizing.spec.js +66 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
- package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
- package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
- package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
- package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
- package/dist/collection/components/vviinn-icons/index.js +10 -27
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
- package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
- package/dist/collection/components/vviinn-slider/arrow.js +1 -2
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
- package/dist/collection/geometry/Clip.spec.js +16 -0
- package/dist/collection/geometry/Rectangle.spec.js +66 -0
- package/dist/collection/geometry/Sized.spec.js +16 -0
- package/dist/collection/interfaces/generated.js +0 -4
- package/dist/collection/network/ion/Form.spec.js +43 -0
- package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
- package/dist/esm/cropper-handler_29.entry.js +1386 -0
- package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
- package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
- package/dist/esm/vviinn-vpr-button.entry.js +11 -13
- package/dist/esm/vviinn-widgets.js +7 -3
- package/dist/loader/index.d.ts +9 -0
- package/dist/loader/package.json +1 -0
- package/dist/types/Image/sizing.d.ts +4 -4
- package/dist/types/campaign/Campaign.d.ts +5 -5
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
- package/dist/types/components.d.ts +154 -54
- package/dist/types/error.d.ts +1 -1
- package/dist/types/geometry/Point.d.ts +1 -1
- package/dist/types/geometry/Rectangle.d.ts +1 -1
- package/dist/types/geometry/Sized.d.ts +1 -1
- package/dist/types/interfaces/generated.d.ts +192 -371
- package/dist/types/network/ion/File.d.ts +2 -2
- package/dist/types/network/ion/Form.d.ts +5 -5
- package/dist/types/network/ion/Link.d.ts +1 -1
- package/dist/types/network/ion/ValueObject.d.ts +4 -4
- package/dist/types/network/utils.d.ts +3 -3
- package/dist/types/recommendation/events.d.ts +5 -5
- package/dist/types/recommendation/recommendation.d.ts +1 -1
- package/dist/types/searchSession/searchSession.d.ts +7 -7
- package/dist/types/slider/GridMode.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +98 -23
- package/dist/types/store/imageSearch.store.d.ts +1 -1
- package/dist/types/tracking/models.d.ts +2 -2
- package/dist/types/utils/event/Events.d.ts +1 -1
- package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
- package/dist/vviinn-widgets/p-414b2291.js +1 -0
- package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
- package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
- package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
- package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
- package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +12 -12
- package/www/build/p-312b0eb7.entry.js +1 -0
- package/www/build/p-414b2291.js +1 -0
- package/www/build/p-5b50c7e5.entry.js +1 -0
- package/www/build/p-8deaa5da.entry.js +1 -0
- package/www/build/p-c6209bc1.entry.js +1 -0
- package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
- package/www/build/p-d39b7d70.js +161 -0
- package/www/build/p-fa17e81f.js +2 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +2 -2
- package/dist/cjs/Campaign-13258569.js +0 -18
- package/dist/cjs/Handler-176539c8.js +0 -331
- package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
- package/dist/cjs/customized-slots-6e56c354.js +0 -54
- package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
- package/dist/cjs/index-a99edb90.js +0 -3235
- package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
- package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
- package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
- package/dist/esm/Campaign-90ba7e06.js +0 -14
- package/dist/esm/Handler-f9b8735c.js +0 -309
- package/dist/esm/cropper-handler.entry.js +0 -23
- package/dist/esm/customized-slots-00afe247.js +0 -51
- package/dist/esm/highlight-box_22.entry.js +0 -745
- package/dist/esm/index-4d5b52ba.js +0 -3224
- package/dist/esm/vviinn-button.entry.js +0 -17
- package/dist/esm/vviinn-error.entry.js +0 -15
- package/dist/esm/vviinn-preloader.entry.js +0 -22
- package/dist/esm/vviinn-vps-button.entry.js +0 -61
- package/dist/esm/vviinn-vps-widget.entry.js +0 -247
- package/dist/vviinn-widgets/p-11f61564.js +0 -1
- package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
- package/dist/vviinn-widgets/p-18fd769b.js +0 -1
- package/dist/vviinn-widgets/p-339c6838.js +0 -1
- package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
- package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
- package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
- package/dist/vviinn-widgets/p-69850e5b.js +0 -1
- package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
- package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
- package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
- package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
- package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
- package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
- package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
- package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
- package/www/build/p-11f61564.js +0 -1
- package/www/build/p-12851e97.entry.js +0 -1
- package/www/build/p-18fd769b.js +0 -1
- package/www/build/p-339c6838.js +0 -1
- package/www/build/p-3b2c91c0.entry.js +0 -1
- package/www/build/p-45df9f28.entry.js +0 -1
- package/www/build/p-57ed5303.entry.js +0 -1
- package/www/build/p-69850e5b.js +0 -1
- package/www/build/p-7c2f762a.entry.js +0 -1
- package/www/build/p-7c3b7388.entry.js +0 -1
- package/www/build/p-85006f41.entry.js +0 -1
- package/www/build/p-8a3dd76d.entry.js +0 -1
- package/www/build/p-99e58be7.entry.js +0 -1
- package/www/build/p-9e2c131a.js +0 -125
- package/www/build/p-a2b450b6.entry.js +0 -1
- package/www/build/p-bcc1ccf0.js +0 -1
- package/www/build/p-e6fee8d2.js +0 -1
|
@@ -2,26 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const Campaign = require('./Campaign-13258569.js');
|
|
5
|
+
const index = require('./index-a4becaff.js');
|
|
6
|
+
const Campaign = require('./Campaign-a94a827a.js');
|
|
8
7
|
|
|
9
|
-
const recommendationsSidebarCss = ":host{--vviinn-carousel-columns:4;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px;min-height:100px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column;max-height:100vh;overflow-y:auto}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{
|
|
8
|
+
const recommendationsSidebarCss = ":host{--vviinn-carousel-columns:4;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px;min-height:100px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column;max-height:100vh;overflow-y:auto}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{animation-name:slideOutFromBottom;animation-duration:0.5s;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{animation-name:slideInFromBottom;animation-duration:0.5s;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{animation-name:slideOutFromRight;animation-duration:0.5s;animation-fill-mode:forwards}:host(.right.open) .sidebar{animation-name:slideInFromRight;animation-duration:0.5s;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@media (max-width: 768px){:host{--vviinn-carousel-columns:2}}";
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const RecommendationsSidebar = class {
|
|
12
11
|
constructor(hostRef) {
|
|
13
12
|
index.registerInstance(this, hostRef);
|
|
14
13
|
this.vviinnWidgetClose = index.createEvent(this, "vviinnWidgetClose", 7);
|
|
14
|
+
this.sidebarTitle = undefined;
|
|
15
|
+
this.token = undefined;
|
|
16
|
+
this.productId = undefined;
|
|
15
17
|
this.position = "bottom";
|
|
16
18
|
this.sourceImage = null;
|
|
17
19
|
this.widgetScrollbar = false;
|
|
18
20
|
this.mode = "continuity";
|
|
19
|
-
/** comma-separated list of campaign-ids */
|
|
20
21
|
this.campaigns = "";
|
|
22
|
+
this.campaignType = undefined;
|
|
23
|
+
this.color = undefined;
|
|
21
24
|
this.imageWidth = 300;
|
|
22
25
|
this.currencySign = "€";
|
|
23
|
-
|
|
26
|
+
this.noResultText = undefined;
|
|
27
|
+
this.noResultShow = undefined;
|
|
28
|
+
this.gridArrowsDynamic = undefined;
|
|
24
29
|
this.apiPath = "https://api.vviinn.com";
|
|
30
|
+
this.buttonElementId = undefined;
|
|
25
31
|
this.state = "idle";
|
|
26
32
|
}
|
|
27
33
|
bodyClickListener(event) {
|
|
@@ -49,7 +55,7 @@ let RecommendationsSidebar = class {
|
|
|
49
55
|
return (_a = this.el.shadowRoot.querySelector("aside")) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
50
56
|
}
|
|
51
57
|
render() {
|
|
52
|
-
return (index.h(index.Host, { class: this.getClassMap() }, index.h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, index.h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, index.h("span", { class: "title", part: "title" }, this.sidebarTitle), index.h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, index.h(
|
|
58
|
+
return (index.h(index.Host, { class: this.getClassMap() }, index.h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, index.h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, index.h("span", { class: "title", part: "title" }, this.sidebarTitle), index.h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, index.h(Campaign.CrossIcon, null))), index.h("main", { part: "sidebar-content" }, index.h("vviinn-vpr-widget", { exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-prefix, price-outdated, price-regular, price-sale, title: product-title, carousel-button, product-card, items-group", token: this.token, productId: this.productId, imageWidth: this.imageWidth, blockTitle: "", mode: this.mode, useCarousel: this.position === "bottom", onVviinnRecommendationsLoaded: () => (this.state = "open"), showScroll: this.widgetScrollbar, campaigns: this.campaigns, color: this.color, currencySign: this.currencySign, apiPath: this.apiPath, buttonElementId: this.buttonElementId, noResultText: this.noResultText, noResultShow: this.noResultShow, gridArrowsDynamic: this.gridArrowsDynamic })))));
|
|
53
59
|
}
|
|
54
60
|
renderSourceImage() {
|
|
55
61
|
return (index.h("img", { class: "source-image", part: "source-image", src: this.sourceImage }));
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const Campaign = require('./Campaign-13258569.js');
|
|
5
|
+
const index = require('./index-a4becaff.js');
|
|
6
|
+
const Campaign = require('./Campaign-a94a827a.js');
|
|
8
7
|
|
|
9
8
|
const vviinnVprButtonCss = ":host{display:block}";
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const VviinnVprButton = class {
|
|
12
11
|
constructor(hostRef) {
|
|
13
12
|
index.registerInstance(this, hostRef);
|
|
14
13
|
this.vviinnWidgetOpen = index.createEvent(this, "vviinnWidgetOpen", 7);
|
|
@@ -18,28 +17,27 @@ let VviinnVprButton = class {
|
|
|
18
17
|
this.vviinnProductView = index.createEvent(this, "vviinnProductView", 7);
|
|
19
18
|
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
20
19
|
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
20
|
+
this.sidebar = null;
|
|
21
|
+
this.sidebarCloseListener = () => {
|
|
22
|
+
document.body.removeChild(this.sidebar);
|
|
23
|
+
};
|
|
24
|
+
this.token = undefined;
|
|
25
|
+
this.productId = undefined;
|
|
21
26
|
this.position = "bottom";
|
|
22
27
|
this.sourceImage = null;
|
|
23
28
|
this.sidebarTitle = "Visually similar products";
|
|
24
29
|
this.modalScrollbar = false;
|
|
25
|
-
/** comma-separated list of campaign-ids */
|
|
26
30
|
this.campaigns = "";
|
|
27
|
-
/** Campaign type */
|
|
28
31
|
this.campaignType = "VPR";
|
|
32
|
+
this.color = undefined;
|
|
29
33
|
this.addStyle = true;
|
|
30
34
|
this.mode = "continuity";
|
|
31
35
|
this.imageWidth = 300;
|
|
32
36
|
this.currencySign = "€";
|
|
33
|
-
|
|
37
|
+
this.noResultText = undefined;
|
|
34
38
|
this.noResultShow = true;
|
|
35
|
-
/** Hiding disabled arrows in the carousel if true */
|
|
36
39
|
this.gridArrowsDynamic = false;
|
|
37
|
-
/** @internal */
|
|
38
40
|
this.apiPath = "https://api.vviinn.com";
|
|
39
|
-
this.sidebar = null;
|
|
40
|
-
this.sidebarCloseListener = () => {
|
|
41
|
-
document.body.removeChild(this.sidebar);
|
|
42
|
-
};
|
|
43
41
|
}
|
|
44
42
|
render() {
|
|
45
43
|
return (index.h(index.Host, { onClick: () => {
|
|
@@ -50,7 +48,7 @@ let VviinnVprButton = class {
|
|
|
50
48
|
campaignTypeName: Campaign.campaignTypeNames[this.campaignType],
|
|
51
49
|
widgetId: this.el.id,
|
|
52
50
|
});
|
|
53
|
-
}, role: "button", tabindex: "0" }, index.h("vviinn-button", { addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, index.h(
|
|
51
|
+
}, role: "button", tabindex: "0" }, index.h("vviinn-button", { addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, index.h(Campaign.VisualSearchIcon, null)))));
|
|
54
52
|
}
|
|
55
53
|
handleClick() {
|
|
56
54
|
const sidebar = document.createElement("vviinn-recommendations-sidebar");
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a4becaff.js');
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
|
-
Stencil Client Patch Browser
|
|
8
|
+
Stencil Client Patch Browser v3.3.1 | MIT Licensed | https://stenciljs.com
|
|
7
9
|
*/
|
|
8
10
|
const patchBrowser = () => {
|
|
9
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('vviinn-widgets.cjs.js', document.baseURI).href));
|
|
10
12
|
const opts = {};
|
|
13
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
11
14
|
if (importMeta !== '') {
|
|
12
15
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
16
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
|
17
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
13
18
|
}
|
|
14
19
|
return index.promiseResolve(opts);
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["
|
|
23
|
+
return index.bootstrapLazy([["cropper-handler_29.cjs",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]],[1,"vviinn-vps-widget",{"token":[1],"apiPath":[1,"api-path"],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]],[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[1,"vviinn-server-error",{"handler":[16]}],[1,"vviinn-wrong-format",{"handler":[16]}],[1,"search-filters",{"filter":[16],"basicEventData":[16],"selectedCategoryId":[32],"hideFilters":[32]}],[1,"vviinn-button",{"addStyle":[4,"add-style"]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}],[1,"cropper-handler",{"handler":[16],"disabled":[4]}],[1,"vviinn-error"],[1,"vviinn-preloader"],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"campaignTypeId":[1,"campaign-type-id"],"dimmedBackground":[4,"dimmed-background"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"index":[2],"imageLoaded":[32]}]]],["vviinn-carousel_2.cjs",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[0,"vviinn-carousel",{"mode":[1],"imageWidth":[2,"image-width"],"showScroll":[4,"show-scroll"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"recommendations":[16],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}]]],["vviinn-recommendations-sidebar.cjs",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button.cjs",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"apiPath":[1,"api-path"]}]]]], options);
|
|
19
24
|
});
|
|
25
|
+
|
|
26
|
+
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { scaleByLargestSide } from "./sizing";
|
|
2
|
+
describe("Image sizing utils", () => {
|
|
3
|
+
it("should resize correctly if width > height", () => {
|
|
4
|
+
const w = {
|
|
5
|
+
kind: "width",
|
|
6
|
+
size: 600,
|
|
7
|
+
};
|
|
8
|
+
const h = {
|
|
9
|
+
kind: "height",
|
|
10
|
+
size: 300,
|
|
11
|
+
};
|
|
12
|
+
const expectedWidth = {
|
|
13
|
+
kind: "width",
|
|
14
|
+
size: 500,
|
|
15
|
+
};
|
|
16
|
+
const expectedHeight = {
|
|
17
|
+
kind: "height",
|
|
18
|
+
size: 250,
|
|
19
|
+
};
|
|
20
|
+
const scaleDimensions = scaleByLargestSide(500);
|
|
21
|
+
const result = scaleDimensions([w, h]);
|
|
22
|
+
expect(result).toStrictEqual([expectedWidth, expectedHeight]);
|
|
23
|
+
});
|
|
24
|
+
it("should resize correctly if width < height", () => {
|
|
25
|
+
const w = {
|
|
26
|
+
kind: "width",
|
|
27
|
+
size: 300,
|
|
28
|
+
};
|
|
29
|
+
const h = {
|
|
30
|
+
kind: "height",
|
|
31
|
+
size: 600,
|
|
32
|
+
};
|
|
33
|
+
const expectedWidth = {
|
|
34
|
+
kind: "width",
|
|
35
|
+
size: 250,
|
|
36
|
+
};
|
|
37
|
+
const expectedHeight = {
|
|
38
|
+
kind: "height",
|
|
39
|
+
size: 500,
|
|
40
|
+
};
|
|
41
|
+
const scaleDimensions = scaleByLargestSide(500);
|
|
42
|
+
const result = scaleDimensions([w, h]);
|
|
43
|
+
expect(result).toStrictEqual([expectedWidth, expectedHeight]);
|
|
44
|
+
});
|
|
45
|
+
it("should resize correctly if width == height", () => {
|
|
46
|
+
const w = {
|
|
47
|
+
kind: "width",
|
|
48
|
+
size: 600,
|
|
49
|
+
};
|
|
50
|
+
const h = {
|
|
51
|
+
kind: "height",
|
|
52
|
+
size: 600,
|
|
53
|
+
};
|
|
54
|
+
const expectedWidth = {
|
|
55
|
+
kind: "width",
|
|
56
|
+
size: 500,
|
|
57
|
+
};
|
|
58
|
+
const expectedHeight = {
|
|
59
|
+
kind: "height",
|
|
60
|
+
size: 500,
|
|
61
|
+
};
|
|
62
|
+
const scaleDimensions = scaleByLargestSide(500);
|
|
63
|
+
const result = scaleDimensions([w, h]);
|
|
64
|
+
expect(result).toStrictEqual([expectedWidth, expectedHeight]);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
height: 100%;
|
|
8
8
|
-webkit-user-select: none;
|
|
9
9
|
-moz-user-select: none;
|
|
10
|
-
-ms-user-select: none;
|
|
11
10
|
user-select: none;
|
|
12
11
|
|
|
13
12
|
--size: 10px;
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
img {
|
|
19
18
|
-webkit-user-select: none;
|
|
20
19
|
-moz-user-select: none;
|
|
21
|
-
-ms-user-select: none;
|
|
22
20
|
user-select: none;
|
|
23
21
|
}
|
|
24
22
|
|
|
@@ -31,10 +29,8 @@ img {
|
|
|
31
29
|
z-index: 2;
|
|
32
30
|
cursor: pointer;
|
|
33
31
|
transform: translate(var(--x-position), var(--y-position)) scale(0);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-webkit-animation-fill-mode: forwards;
|
|
37
|
-
animation-fill-mode: forwards;
|
|
32
|
+
animation: 0.25s linear fadein;
|
|
33
|
+
animation-fill-mode: forwards;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
.pointer::after {
|
|
@@ -50,16 +46,6 @@ img {
|
|
|
50
46
|
opacity: .75;
|
|
51
47
|
}
|
|
52
48
|
|
|
53
|
-
@-webkit-keyframes fadein {
|
|
54
|
-
from {
|
|
55
|
-
transform: translate(var(--x-position), var(--y-position)) scale(0);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
to {
|
|
59
|
-
transform: translate(var(--x-position), var(--y-position)) scale(1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
49
|
@keyframes fadein {
|
|
64
50
|
from {
|
|
65
51
|
transform: translate(var(--x-position), var(--y-position)) scale(0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { getClipValue } from "../../../../geometry/Clip";
|
|
3
3
|
import * as O from "fp-ts/lib/Option";
|
|
4
4
|
import { pipe } from "fp-ts/function";
|
|
@@ -16,10 +16,14 @@ export class HighlightBox {
|
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "highlight-box"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
19
|
-
static get originalStyleUrls() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["highlight-box.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["highlight-box.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
25
29
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { getCursorValue } from "../../../../../cropper/Handler";
|
|
3
3
|
import styles from "./cropper-handler.css";
|
|
4
4
|
export class CropperHandler {
|
|
5
5
|
constructor() {
|
|
6
|
+
this.handler = undefined;
|
|
6
7
|
this.disabled = false;
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
@@ -17,44 +18,46 @@ export class CropperHandler {
|
|
|
17
18
|
static get is() { return "cropper-handler"; }
|
|
18
19
|
static get encapsulation() { return "shadow"; }
|
|
19
20
|
static get styles() { return styles; }
|
|
20
|
-
static get properties() {
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"handler": {
|
|
24
|
+
"type": "unknown",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "Handler",
|
|
28
|
+
"resolved": "Handler",
|
|
29
|
+
"references": {
|
|
30
|
+
"Handler": {
|
|
31
|
+
"location": "import",
|
|
32
|
+
"path": "../../../../../cropper/Handler"
|
|
33
|
+
}
|
|
31
34
|
}
|
|
35
|
+
},
|
|
36
|
+
"required": false,
|
|
37
|
+
"optional": false,
|
|
38
|
+
"docs": {
|
|
39
|
+
"tags": [],
|
|
40
|
+
"text": ""
|
|
32
41
|
}
|
|
33
42
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
43
|
+
"disabled": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "boolean",
|
|
48
|
+
"resolved": "boolean",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": ""
|
|
56
|
+
},
|
|
57
|
+
"attribute": "disabled",
|
|
58
|
+
"reflect": false,
|
|
59
|
+
"defaultValue": "false"
|
|
39
60
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"mutable": false,
|
|
44
|
-
"complexType": {
|
|
45
|
-
"original": "boolean",
|
|
46
|
-
"resolved": "boolean",
|
|
47
|
-
"references": {}
|
|
48
|
-
},
|
|
49
|
-
"required": false,
|
|
50
|
-
"optional": false,
|
|
51
|
-
"docs": {
|
|
52
|
-
"tags": [],
|
|
53
|
-
"text": ""
|
|
54
|
-
},
|
|
55
|
-
"attribute": "disabled",
|
|
56
|
-
"reflect": false,
|
|
57
|
-
"defaultValue": "false"
|
|
58
|
-
}
|
|
59
|
-
}; }
|
|
61
|
+
};
|
|
62
|
+
}
|
|
60
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import { move, transform } from "../../../../geometry/Rectangle";
|
|
3
3
|
import { fromMouseEvent, pointDiffSemigroup, } from "../../../../geometry/Point";
|
|
4
4
|
import { imageSearchState, makeRectangularSearchRequest, } from "../../../../store/imageSearch.store";
|
|
@@ -9,13 +9,14 @@ import styles from "./image-cropper.css";
|
|
|
9
9
|
const MIN_SEARCHAREA_SIZE = 40;
|
|
10
10
|
export class ImageCropper {
|
|
11
11
|
constructor() {
|
|
12
|
-
this.disabled = false;
|
|
13
|
-
this.handleMove = false;
|
|
14
12
|
this.mouseStartPoint = undefined;
|
|
15
13
|
this.bounds = undefined;
|
|
16
14
|
this.resizeObserver = new ResizeObserver(() => {
|
|
17
15
|
this.bounds = this.el.getBoundingClientRect();
|
|
18
16
|
});
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
this.basicEventData = undefined;
|
|
19
|
+
this.handleMove = false;
|
|
19
20
|
}
|
|
20
21
|
componentDidLoad() {
|
|
21
22
|
this.resizeObserver.observe(this.el);
|
|
@@ -104,79 +105,84 @@ export class ImageCropper {
|
|
|
104
105
|
}));
|
|
105
106
|
}
|
|
106
107
|
render() {
|
|
107
|
-
return (h(Host, { exportparts: "handle, e-resize, n-resize, ne-resize, nw-resize, s-resize, se-resize, sw-resize, w-resize" },
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}, draggable: false, style: this.getStyleMap(), onContextMenu: () => false, onPointerDown: (ev) => this.handlePointerDown(ev) }, imageSearchState.cropperHandlers.map((handler) => (h("cropper-handler", { disabled: this.disabled, handler: handler, onPointerDown: (ev) => this.handlePointerDown(ev) }))))));
|
|
108
|
+
return (h(Host, { exportparts: "handle, e-resize, n-resize, ne-resize, nw-resize, s-resize, se-resize, sw-resize, w-resize" }, h("div", { class: {
|
|
109
|
+
"crop-area": true,
|
|
110
|
+
active: this.handleMove,
|
|
111
|
+
disabled: this.disabled,
|
|
112
|
+
}, draggable: false, style: this.getStyleMap(), onContextMenu: () => false, onPointerDown: (ev) => this.handlePointerDown(ev) }, imageSearchState.cropperHandlers.map((handler) => (h("cropper-handler", { disabled: this.disabled, handler: handler, onPointerDown: (ev) => this.handlePointerDown(ev) }))))));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "image-cropper"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
116
116
|
static get styles() { return styles; }
|
|
117
|
-
static get properties() {
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
static get properties() {
|
|
118
|
+
return {
|
|
119
|
+
"disabled": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "boolean",
|
|
124
|
+
"resolved": "boolean",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "disabled",
|
|
134
|
+
"reflect": false,
|
|
135
|
+
"defaultValue": "false"
|
|
125
136
|
},
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"type": "unknown",
|
|
138
|
-
"mutable": false,
|
|
139
|
-
"complexType": {
|
|
140
|
-
"original": "BasicEventData",
|
|
141
|
-
"resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
|
|
142
|
-
"references": {
|
|
143
|
-
"BasicEventData": {
|
|
144
|
-
"location": "import",
|
|
145
|
-
"path": "../../../../recommendation/events"
|
|
137
|
+
"basicEventData": {
|
|
138
|
+
"type": "unknown",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "BasicEventData",
|
|
142
|
+
"resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
|
|
143
|
+
"references": {
|
|
144
|
+
"BasicEventData": {
|
|
145
|
+
"location": "import",
|
|
146
|
+
"path": "../../../../recommendation/events"
|
|
147
|
+
}
|
|
146
148
|
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
147
155
|
}
|
|
148
|
-
},
|
|
149
|
-
"required": false,
|
|
150
|
-
"optional": false,
|
|
151
|
-
"docs": {
|
|
152
|
-
"tags": [],
|
|
153
|
-
"text": ""
|
|
154
156
|
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
static get states() {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
static get states() {
|
|
160
|
+
return {
|
|
161
|
+
"handleMove": {}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
static get events() {
|
|
165
|
+
return [{
|
|
166
|
+
"method": "vviinnImageCrop",
|
|
167
|
+
"name": "vviinnImageCrop",
|
|
168
|
+
"bubbles": true,
|
|
169
|
+
"cancelable": true,
|
|
170
|
+
"composed": true,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "BasicEventData",
|
|
177
|
+
"resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
|
|
178
|
+
"references": {
|
|
179
|
+
"BasicEventData": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../../../recommendation/events"
|
|
182
|
+
}
|
|
177
183
|
}
|
|
178
184
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
185
|
+
}];
|
|
186
|
+
}
|
|
181
187
|
static get elementRef() { return "el"; }
|
|
182
188
|
}
|