vviinn-widgets 2.0.0 → 2.1.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.
- package/dist/types/campaign/Campaign.d.ts +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +12 -7
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +23 -5
- package/dist/types/components.d.ts +8 -10
- package/dist/vviinn-widgets/Array-4b9f84cf.js +4295 -0
- package/dist/vviinn-widgets/Handler-47db9890.js +1428 -0
- package/dist/{esm/Array-e81cf4a3.js → vviinn-widgets/NonEmptyArray-6ef0d207.js} +72 -4283
- package/dist/{esm/app-globals-0a626970.js → vviinn-widgets/app-globals-e0943e34.js} +922 -10
- package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
- package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
- package/dist/{collection/components/customized-slots.js → vviinn-widgets/customized-slots-f3449695.js} +6 -3
- package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
- package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
- package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +32 -54
- package/dist/vviinn-widgets/imageSearch.store-407f49f0.js +15528 -0
- package/dist/vviinn-widgets/index-b6d739a9.js +3010 -0
- package/dist/{esm/index-e77e65ae.js → vviinn-widgets/index-c9483145.js} +4 -2
- package/dist/vviinn-widgets/index.esm.js +1 -0
- package/dist/vviinn-widgets/number-98d54dd6.js +1533 -0
- package/dist/vviinn-widgets/search-filters.entry.js +73 -0
- package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
- package/dist/{esm → vviinn-widgets}/vviinn-carousel.entry.js +53 -66
- package/dist/vviinn-widgets/vviinn-detected-object.entry.js +52 -0
- package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
- package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
- package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
- package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
- package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
- package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
- package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-product-card.entry.js +176 -0
- package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
- package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
- package/dist/{esm → vviinn-widgets}/vviinn-vpr-widget.entry.js +34 -8
- package/dist/vviinn-widgets/vviinn-vps-button.entry.js +39 -0
- package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +96 -0
- package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
- package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
- package/package.json +1 -1
- package/www/build/Array-4b9f84cf.js +4295 -0
- package/www/build/Handler-47db9890.js +1428 -0
- package/{dist/cjs/Array-cce2fde8.js → www/build/NonEmptyArray-6ef0d207.js} +72 -4300
- package/{dist/cjs/app-globals-de6924b5.js → www/build/app-globals-e0943e34.js} +925 -15
- package/www/build/cropper-handler.entry.js +23 -0
- package/www/build/css-shim-f0027935.js +4 -0
- package/www/build/customized-slots-f3449695.js +50 -0
- package/www/build/dom-db0073f0.js +73 -0
- package/www/build/highlight-box.entry.js +41 -0
- package/www/build/image-cropper.entry.js +113 -0
- package/www/build/imageSearch.store-407f49f0.js +15528 -0
- package/www/build/index-b6d739a9.js +3010 -0
- package/{dist/collection/components/vviinn-icons/index.js → www/build/index-c9483145.js} +12 -9
- package/www/build/index.esm.js +1 -0
- package/www/build/number-98d54dd6.js +1533 -0
- package/www/build/search-filters.entry.js +73 -0
- package/www/build/shadow-css-c1fdfa9f.js +389 -0
- package/{dist/cjs/vviinn-carousel.cjs.entry.js → www/build/vviinn-carousel.entry.js} +56 -73
- package/www/build/vviinn-detected-object.entry.js +52 -0
- package/www/build/vviinn-empty-results.entry.js +16 -0
- package/www/build/vviinn-error.entry.js +15 -0
- package/www/build/vviinn-example-image.entry.js +38 -0
- package/www/build/vviinn-example-images.entry.js +28 -0
- package/www/build/vviinn-image-selector.entry.js +31 -0
- package/www/build/vviinn-image-view.entry.js +55 -0
- package/www/build/vviinn-modal.entry.js +30 -0
- package/www/build/vviinn-onboarding-card-1.entry.js +21 -0
- package/www/build/vviinn-onboarding-card-2.entry.js +21 -0
- package/www/build/vviinn-onboarding-card-3.entry.js +21 -0
- package/www/build/vviinn-onboarding.entry.js +20 -0
- package/www/build/vviinn-overlay.entry.js +15 -0
- package/www/build/vviinn-overlayed-modal.entry.js +18 -0
- package/www/build/vviinn-preloader.entry.js +25 -0
- package/www/build/vviinn-privacy-badge.entry.js +20 -0
- package/www/build/vviinn-product-card.entry.js +176 -0
- package/www/build/vviinn-server-error.entry.js +16 -0
- package/www/build/vviinn-slide.entry.js +15 -0
- package/www/build/vviinn-slider.entry.js +120 -0
- package/www/build/vviinn-teaser.entry.js +20 -0
- package/www/build/vviinn-vpr-widget.entry.js +128 -0
- package/www/build/vviinn-vps-button.entry.js +39 -0
- package/www/build/vviinn-vps-widget.entry.js +96 -0
- package/www/build/vviinn-widgets.css +6 -1
- package/www/build/vviinn-widgets.esm.js +125 -1
- package/www/build/vviinn-wrong-format.entry.js +16 -0
- package/www/index.html +184 -8
- package/dist/cjs/cropper-handler_28.cjs.entry.js +0 -1126
- package/dist/cjs/imageSearch.store-39fce56c.js +0 -6926
- package/dist/cjs/index-7adce49f.js +0 -1702
- package/dist/cjs/index-8a276115.js +0 -35
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -23
- package/dist/cjs/vviinn-vpr-widget.cjs.entry.js +0 -106
- package/dist/cjs/vviinn-widgets.cjs.js +0 -21
- package/dist/collection/Image/error.js +0 -14
- package/dist/collection/Image/form.js +0 -5
- package/dist/collection/Image/fromFile.js +0 -18
- package/dist/collection/Image/imageToB64.js +0 -9
- package/dist/collection/Image/index.js +0 -0
- package/dist/collection/Image/renderPromise.js +0 -6
- package/dist/collection/Image/resizeImage.js +0 -28
- package/dist/collection/Image/sizing.js +0 -39
- package/dist/collection/Image/toFile.js +0 -17
- package/dist/collection/analytics/GAnalytics.js +0 -32
- package/dist/collection/analytics/GeneralAnalytics.js +0 -9
- package/dist/collection/analytics/GtagAnalytics.js +0 -35
- package/dist/collection/analytics/ProductAnalytics.js +0 -1
- package/dist/collection/campaign/Campaign.js +0 -8
- package/dist/collection/campaign/CampaignService.js +0 -5
- package/dist/collection/campaign/VCSCampaign.js +0 -1
- package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
- package/dist/collection/campaign/VCSCampaignService.js +0 -5
- package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
- package/dist/collection/campaign/VPRCampaignService.js +0 -5
- package/dist/collection/collection-manifest.json +0 -41
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
- package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
- package/dist/collection/components/image-search/search-filters/search-filters.js +0 -102
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -134
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +0 -292
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
- package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
- package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -83
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
- package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -96
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -404
- package/dist/collection/components/vviinn-slider/arrow.js +0 -11
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
- package/dist/collection/components/vviinn-vpr-widget/GridMode.js +0 -1
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -321
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -51
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -177
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -247
- package/dist/collection/cropper/Cropper.js +0 -1
- package/dist/collection/cropper/Handler.js +0 -61
- package/dist/collection/dom/index.js +0 -3
- package/dist/collection/error.js +0 -14
- package/dist/collection/file/index.js +0 -4
- package/dist/collection/geometry/Clip.js +0 -14
- package/dist/collection/geometry/Point.js +0 -32
- package/dist/collection/geometry/Rectangle.js +0 -95
- package/dist/collection/geometry/RectangleAlt.js +0 -1
- package/dist/collection/geometry/Sized.js +0 -8
- package/dist/collection/global.js +0 -19
- package/dist/collection/index.js +0 -1
- package/dist/collection/interfaces/generated.js +0 -5
- package/dist/collection/interfaces/recommendation.js +0 -1
- package/dist/collection/network/apiClient.js +0 -9
- package/dist/collection/network/ion/File.js +0 -14
- package/dist/collection/network/ion/Form.js +0 -64
- package/dist/collection/network/ion/Link.js +0 -8
- package/dist/collection/network/ion/ValueObject.js +0 -23
- package/dist/collection/network/request.js +0 -19
- package/dist/collection/network/utils.js +0 -37
- package/dist/collection/recommendation/recommendation.js +0 -1
- package/dist/collection/searchSession/searchSession.js +0 -26
- package/dist/collection/sentry.js +0 -14
- package/dist/collection/slider/GridMode.js +0 -1
- package/dist/collection/store/file-processing.js +0 -13
- package/dist/collection/store/imageSearch.store.js +0 -138
- package/dist/collection/store/store.js +0 -11
- package/dist/collection/stories/Button.js +0 -21
- package/dist/collection/stories/Button.stories.js +0 -42
- package/dist/collection/stories/Header.js +0 -45
- package/dist/collection/stories/Header.stories.js +0 -15
- package/dist/collection/stories/Page.js +0 -61
- package/dist/collection/stories/Page.stories.js +0 -19
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/collection/stories/image-selector.stories.js +0 -6
- package/dist/collection/stories/image-view.stories.js +0 -6
- package/dist/collection/stories/modal.stories.js +0 -12
- package/dist/collection/stories/onboarding.stories.js +0 -11
- package/dist/collection/stories/overlay.stories.js +0 -5
- package/dist/collection/stories/overlayedModal.stories.js +0 -8
- package/dist/collection/stories/privacy-badge.stories.js +0 -11
- package/dist/collection/stories/slider.stories.js +0 -17
- package/dist/collection/stories/teaser.stories.js +0 -5
- package/dist/collection/stories/vps-widget.stories.js +0 -47
- package/dist/collection/stories/vviinn-product.stories.js +0 -19
- package/dist/collection/utils/collections/collectionsUtils.js +0 -5
- package/dist/collection/utils/either.js +0 -3
- package/dist/collection/utils/enum/enumUtils.js +0 -3
- package/dist/collection/utils/event/Events.js +0 -1
- package/dist/collection/utils/number/index.js +0 -4
- package/dist/collection/utils/option/option.js +0 -4
- package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
- package/dist/collection/utils/token/tokenUtils.js +0 -9
- package/dist/esm/cropper-handler_28.entry.js +0 -1095
- package/dist/esm/imageSearch.store-b887ff78.js +0 -6893
- package/dist/esm/index-0ccfcee5.js +0 -1671
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -19
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/vviinn-widgets.js +0 -19
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -12
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/vviinn-widgets/p-2bf74c28.js +0 -1
- package/dist/vviinn-widgets/p-3063e23a.js +0 -1
- package/dist/vviinn-widgets/p-489aee23.js +0 -1
- package/dist/vviinn-widgets/p-6c4fd1db.js +0 -15
- package/dist/vviinn-widgets/p-9145c82e.entry.js +0 -1
- package/dist/vviinn-widgets/p-ddcac3f8.js +0 -1
- package/dist/vviinn-widgets/p-f05da9f1.entry.js +0 -1
- package/dist/vviinn-widgets/p-f12f823d.entry.js +0 -1
- package/www/build/p-2bf74c28.js +0 -1
- package/www/build/p-3063e23a.js +0 -1
- package/www/build/p-489aee23.js +0 -1
- package/www/build/p-6c4fd1db.js +0 -15
- package/www/build/p-9145c82e.entry.js +0 -1
- package/www/build/p-cbae3071.js +0 -125
- package/www/build/p-ddcac3f8.js +0 -1
- package/www/build/p-e0153ae2.css +0 -6
- package/www/build/p-f05da9f1.entry.js +0 -1
- package/www/build/p-f12f823d.entry.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Recommendation } from "../../recommendation/recommendation";
|
|
1
2
|
declare type MoveDirection = "left" | "right";
|
|
2
|
-
export declare type CarouselMode = "
|
|
3
|
+
export declare type CarouselMode = "grid" | "continuity";
|
|
3
4
|
export declare class VviinnCarousel {
|
|
4
5
|
el: HTMLElement;
|
|
5
6
|
moveDirection: MoveDirection;
|
|
@@ -8,29 +9,26 @@ export declare class VviinnCarousel {
|
|
|
8
9
|
mode: CarouselMode;
|
|
9
10
|
imageWidth: number;
|
|
10
11
|
showScroll: boolean;
|
|
11
|
-
|
|
12
|
+
recommendations: Recommendation[];
|
|
12
13
|
private columns;
|
|
13
14
|
private resizeObserver;
|
|
14
15
|
private mutationObserver;
|
|
15
16
|
connectedCallback(): void;
|
|
16
17
|
disconnectedCallback(): void;
|
|
17
|
-
|
|
18
|
+
componentDidLoad(): void;
|
|
18
19
|
private getItemWidthFromDocument;
|
|
19
20
|
private setItemWidth;
|
|
20
21
|
private getContentClassMap;
|
|
21
22
|
private handleResize;
|
|
22
23
|
private calculateMoveStep;
|
|
24
|
+
private getHostParent;
|
|
23
25
|
private setWidth;
|
|
24
26
|
private cloneSlottedContent;
|
|
25
|
-
private renderContent;
|
|
26
|
-
private renderGroup;
|
|
27
|
-
private renderLine;
|
|
28
27
|
private getActiveGroupIndex;
|
|
29
28
|
private getContentNode;
|
|
30
29
|
private getContent;
|
|
31
30
|
private getColumnsNumber;
|
|
32
31
|
private getContentGroups;
|
|
33
|
-
private appendToContent;
|
|
34
32
|
private showNext;
|
|
35
33
|
private showPrev;
|
|
36
34
|
private scroll;
|
|
@@ -38,6 +36,13 @@ export declare class VviinnCarousel {
|
|
|
38
36
|
private showBullets;
|
|
39
37
|
private showScrollbar;
|
|
40
38
|
private getClassMap;
|
|
39
|
+
private renderRecommendation;
|
|
40
|
+
private renderRecommendationGroup;
|
|
41
|
+
private renderRecommendationGroups;
|
|
42
|
+
private renderRecommendations;
|
|
43
|
+
private renderRecommendationsElements;
|
|
44
|
+
private renderGrid;
|
|
45
|
+
private renderBullets;
|
|
41
46
|
render(): any;
|
|
42
47
|
}
|
|
43
48
|
export {};
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { ComponentInterface } from "../../stencil-public-runtime";
|
|
2
2
|
import { Interfaces } from "../../interfaces/recommendation";
|
|
3
3
|
import { CampaignName } from "../../campaign/Campaign";
|
|
4
|
+
import { CarouselMode } from "../vviinn-carousel/vviinn-carousel";
|
|
5
|
+
/**
|
|
6
|
+
* @part product-card - product card itself
|
|
7
|
+
* @part title - title inside product card
|
|
8
|
+
* @part brand - brand inside product card
|
|
9
|
+
* @part currency - brand inside product card
|
|
10
|
+
* @part image - product card image
|
|
11
|
+
* @part image-link - anchor element around product image
|
|
12
|
+
* @part price-amount - span element around every prices
|
|
13
|
+
* @part price-container - block of prices
|
|
14
|
+
* @part price-outdated - block for outdated price. rendered when product contains sale price
|
|
15
|
+
* @part price-prefix - block rendered before each price element (for ex. "from")
|
|
16
|
+
* @part price-regular - block for price if no sale price presented
|
|
17
|
+
* @part price-sale - block for sale price. rendered only if sale price presented
|
|
18
|
+
*/
|
|
4
19
|
export declare class VviinnVprWidget implements ComponentInterface {
|
|
5
20
|
el: HTMLElement;
|
|
6
21
|
/** Title for recommendations widget */
|
|
7
22
|
blockTitle: string;
|
|
8
|
-
/** Number of columns for recommendations */
|
|
9
|
-
columns: number;
|
|
10
23
|
/** Ratio of each recommended product image */
|
|
11
24
|
imageRatio: number;
|
|
12
25
|
/** Width of each recommended product image */
|
|
@@ -20,7 +33,7 @@ export declare class VviinnVprWidget implements ComponentInterface {
|
|
|
20
33
|
/** prefix will shown before price */
|
|
21
34
|
pricePrefix: string;
|
|
22
35
|
/** Use slider or grid view */
|
|
23
|
-
mode:
|
|
36
|
+
mode: CarouselMode;
|
|
24
37
|
/** Campaign type */
|
|
25
38
|
campaignType: CampaignName;
|
|
26
39
|
/** Locale for currency formatting */
|
|
@@ -28,13 +41,18 @@ export declare class VviinnVprWidget implements ComponentInterface {
|
|
|
28
41
|
/** @internal */
|
|
29
42
|
apiPath: string | undefined;
|
|
30
43
|
showScroll: boolean;
|
|
44
|
+
cssUrl: string | null;
|
|
31
45
|
recommendations: Interfaces["VisualProductSearch"][];
|
|
32
46
|
loaded: boolean;
|
|
33
47
|
handleProductIdChange(): void;
|
|
48
|
+
handleCampaignTypeChange(): void;
|
|
49
|
+
handleApiPathChange(newPath: string): void;
|
|
34
50
|
connectedCallback(): void;
|
|
35
51
|
componentWillLoad(): Promise<void>;
|
|
36
52
|
private getRecommendations;
|
|
37
|
-
handleError
|
|
38
|
-
handleRecommendationsSucces
|
|
53
|
+
private handleError;
|
|
54
|
+
private handleRecommendationsSucces;
|
|
55
|
+
private isExternalCSS;
|
|
56
|
+
private renderExternalCSS;
|
|
39
57
|
render(): any;
|
|
40
58
|
}
|
|
@@ -8,7 +8,9 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { Handler } from "./cropper/Handler";
|
|
9
9
|
import { DetectedObject, SearchSessionFilter } from "./searchSession/searchSession";
|
|
10
10
|
import { CarouselMode } from "./components/vviinn-carousel/vviinn-carousel";
|
|
11
|
+
import { Recommendation } from "./recommendation/recommendation";
|
|
11
12
|
import { ValueObject } from "./network/ion/ValueObject";
|
|
13
|
+
import { CarouselMode as CarouselMode1 } from "./components/vviinn-carousel/vviinn-carousel";
|
|
12
14
|
import { CampaignName } from "./campaign/Campaign";
|
|
13
15
|
export namespace Components {
|
|
14
16
|
interface CropperHandler {
|
|
@@ -26,6 +28,7 @@ export namespace Components {
|
|
|
26
28
|
interface VviinnCarousel {
|
|
27
29
|
"imageWidth": number;
|
|
28
30
|
"mode": CarouselMode;
|
|
31
|
+
"recommendations": Recommendation[];
|
|
29
32
|
"showScroll": boolean;
|
|
30
33
|
}
|
|
31
34
|
interface VviinnDetectedObject {
|
|
@@ -104,10 +107,7 @@ export namespace Components {
|
|
|
104
107
|
* Campaign type
|
|
105
108
|
*/
|
|
106
109
|
"campaignType": CampaignName;
|
|
107
|
-
|
|
108
|
-
* Number of columns for recommendations
|
|
109
|
-
*/
|
|
110
|
-
"columns": number;
|
|
110
|
+
"cssUrl": string | null;
|
|
111
111
|
/**
|
|
112
112
|
* Currency sign will shown after price
|
|
113
113
|
*/
|
|
@@ -127,7 +127,7 @@ export namespace Components {
|
|
|
127
127
|
/**
|
|
128
128
|
* Use slider or grid view
|
|
129
129
|
*/
|
|
130
|
-
"mode":
|
|
130
|
+
"mode": CarouselMode;
|
|
131
131
|
/**
|
|
132
132
|
* prefix will shown before price
|
|
133
133
|
*/
|
|
@@ -409,6 +409,7 @@ declare namespace LocalJSX {
|
|
|
409
409
|
interface VviinnCarousel {
|
|
410
410
|
"imageWidth"?: number;
|
|
411
411
|
"mode"?: CarouselMode;
|
|
412
|
+
"recommendations"?: Recommendation[];
|
|
412
413
|
"showScroll"?: boolean;
|
|
413
414
|
}
|
|
414
415
|
interface VviinnDetectedObject {
|
|
@@ -522,10 +523,7 @@ declare namespace LocalJSX {
|
|
|
522
523
|
* Campaign type
|
|
523
524
|
*/
|
|
524
525
|
"campaignType"?: CampaignName;
|
|
525
|
-
|
|
526
|
-
* Number of columns for recommendations
|
|
527
|
-
*/
|
|
528
|
-
"columns"?: number;
|
|
526
|
+
"cssUrl"?: string | null;
|
|
529
527
|
/**
|
|
530
528
|
* Currency sign will shown after price
|
|
531
529
|
*/
|
|
@@ -545,7 +543,7 @@ declare namespace LocalJSX {
|
|
|
545
543
|
/**
|
|
546
544
|
* Use slider or grid view
|
|
547
545
|
*/
|
|
548
|
-
"mode"?:
|
|
546
|
+
"mode"?: CarouselMode;
|
|
549
547
|
/**
|
|
550
548
|
* prefix will shown before price
|
|
551
549
|
*/
|