import { EventEmitter } from "../../stencil-public-runtime"; import { CarouselMode } from "../vviinn-carousel/vviinn-carousel"; import { CampaignName } from "../../campaign/Campaign"; import { BasicEventData, ProductCardEventData } from "../../recommendation/events"; import { Locale } from "../../locale"; import { UpdateButtonLocation } from "../vviinn-vpr-widget/vviinn-vpr-widget"; import { OneClickDiscoveryMode } from "../../widget/types"; /** * @part button - Clickable button element. * @part vviinn-button - Button element container. * @part product-card - Product Card itself. * @part title - Title inside Product Card. * @part brand - Brand inside Product Card. * @part product-type - Product Type inside Product Card. * @part currency - Currency related to price. * @part image - Product Card image. * @part image-link - Anchor element around product image. Rendered only if "deeplink" property is filled. * @part image-picture - Picture element for image. * @part image-placeholder - Placeholder shown when no image is available. * @part image-container - Product Card's image container. * @part content-container - Product Card's content container. * @part basket-button-container - Product Card's basket button container. * @part deeplink - Anchor element around product title. Rendered only if "deeplink" property is filled. * @part price-amount-regular - Numeric part of the price. * @part price-amount-sale - Numeric part of the price. * @part price-amount-outdated - Numeric part of the price. * @part price-amount-base-sale - Numeric part of the base price. * @part price-amount-base-outdated - Numeric part of the base price. * @part price-amount-base-regular - Numeric part of the base price. * @part price-outdated - Block for outdated price. Rendered when the product contains the sale price. * @part price-regular - Block for a price if no sale price is presented. * @part price-sale - Block for sale price. Rendered only if the sale price is presented. * @part price-prefix - Block rendered before each price element (for ex. "from"). * @part product-card-actions - Product Card actions wrapper. * @part product-card-actions-top - Product Card top actions wrapper. * @part carousel-button - Both carousel navigation buttons (generic part). * @part carousel-button-prev - The previous/back carousel navigation button. * @part carousel-button-next - The next/forward carousel navigation button. * @part recommendations-results - For internal usage only! * @part recommendations-title - Title of the recommendations grid. * @part recommendations-subtitle - Subtitle of the recommendations grid. * @part basket-button - Add to Basket button. * @part favorite-button - Favorite button. * @part energy-label-container - Energy label container. * @part energy-label-icon - Icon with an energy class. * @part energy-label-product-type - Product type. * @part energy-label-data-sheet-link - Data sheet link. * @part product-images-pagination - Container for product images pagination dots (mobile only). * @part product-images-pagination-bullet - Individual pagination dot. * @part product-images-pagination-bullet-active - Active pagination dot. * @part update-button-top - Update Button on the top (Set mode). * @part update-button-item - Update Button inside the Product Card (Set mode). * @part discount-label - Discount label in Product Card (Set mode). * @part discount-percentage - Discount percentage inside the Add to Basket button (Set mode). * @part list-card - List card container. * @part list-card-content-container - List card's content container. * @part list-card-image-container - List card's image container. * @part list-label - List card's label (e.g., "Category"). * @part list-title - List card's title. * * @part custom-label-0 - Custom label with index 0. * @part custom-label-1 - Custom label with index 1. * @part custom-label-2 - Custom label with index 2. * @part custom-label-3 - Custom label with index 3. * @part custom-label-4 - Custom label with index 4. * * @slot vviinn-recommendations-title - Recommendations title text. * @slot vviinn-favorite-icon - Icon of Favorite button. * @slot vviinn-favorite-icon-pressed - Icon of pressed Favorite button. * @slot vviinn-basket-button-text - Text of Add to Basket button. * @slot vviinn-basket-button-icon - Text of Add to Basket icon. * @slot vviinn-basket-button-text-pressed - Text of pressed Add to Basket button. * @slot vviinn-basket-button-icon-pressed - Icon of pressed Add to Basket button. * @slot vviinn-energy-label-data-sheet-text - Text of the data sheet link for the energy label. * * @slot vviinn-recommendations-subtitle - Recommendations subtitle text. * @slot vviinn-update-button-text - Text of Update Button on the top (Set mode). * @slot vviinn-update-button-icon - Icon of Update Button (Set mode). * @slot vviinn-custom-label-0 - Custom label with index 0. * @slot vviinn-custom-label-1 - Custom label with index 1. * @slot vviinn-custom-label-2 - Custom label with index 2. * @slot vviinn-custom-label-3 - Custom label with index 3. * @slot vviinn-custom-label-4 - Custom label with index 4. * @slot vviinn-image-placeholder-icon - Icon or content for the image placeholder. */ export declare class VviinnVprButton { el: HTMLElement; /** Vviinn customer's token (required) */ token: string; /** API endpoint URL (optional, defaults to production) */ apiPath?: string; /** Locale for text localization */ locale?: Locale; /** Locale for number formatting. Falls back to locale */ numberLocale?: string; /** The currency sign is displayed after the price */ currencySign?: string; /** Prefix is displayed before the price */ pricePrefix?: string; /** ID of product you need recommendations for (required) */ productId: string; /** Switch between carousel modes */ mode: CarouselMode; /** Comma-separated list of campaign IDs */ campaigns: string; /** Excluded filter. Example: "brand:Nike,Vans;custom_label_0:summer" */ excluded: string; /** Campaign type */ campaignType: CampaignName; /** Accepts any hex color code */ color: string; /** Width of each recommended product image in Continuity mode */ imageWidth: number; /** Resolution width of an image in the product card */ imageResolutionWidth: number; /** Show multiple images on hover (desktop only) */ showMultipleImages: boolean; /** Items amount in set mode grid */ setItemsAmount?: number; /** URL to external CSS file for custom styling */ cssUrl: string | null; /** A custom message is displayed when no results */ noResultText: string; /** Showing a message (when true) or hiding the whole widget, when no results */ noResultShow: boolean; /** Hiding disabled arrows in the carousel if true */ gridArrowsDynamic: boolean; /** Toggle for opening product link in new tab or not */ productDetailsNewTab: boolean; /** Toggle for redirection to PDP on product's click */ productDetailsRedirect: boolean; /** Show or hide Add to Basket buttons */ addToBasketShow: boolean; /** Show filters on top */ showFilters: boolean; /** Wrap the Product Card's price values in the container. */ addPriceContainer?: boolean; /** One-Click Discovery mode*/ oneClickDiscoveryMode?: OneClickDiscoveryMode; /** List of discounts for Set mode. Example: "5, 10, 15, 20" (could be less than 4 numbers) */ setModeDiscounts: string; /** Location of Update button for Set mode */ updateButtonLocation: UpdateButtonLocation; /** Sidebar title */ sidebarTitle: string; /** Widget's subtitle */ sidebarSubtitle: string; /** Show or hide the scrollbar */ modalScrollbar: boolean; /** Position of the modal */ position: "bottom" | "right"; /** Add default styles to the button */ addStyle: boolean; /** Show or hide Favorite button */ favoriteShow: boolean; /** @internal */ appendSidebarToElement: HTMLElement; /** ID of an HTML element that you want to attach the sidebar */ /** @internal */ appendSidebarToId: string; /** @internal */ isStandalone: boolean; /** @internal */ showInWidget: boolean; /** @internal */ uiSessionId?: string; /** Event emitted on widget load */ vviinnWidgetLoad: EventEmitter; /** Event emitted on modal open */ vviinnWidgetOpen: EventEmitter; /** Event emitted on modal close */ vviinnWidgetClose: EventEmitter; /** The recommendation renders on the page */ vviinnProductLoad: EventEmitter; /** Click on the product's link */ vviinnProductClick: EventEmitter; /** The recommendation appears in the viewport */ vviinnProductView: EventEmitter; /** The recommendation result renders on the page */ vviinnResultLoad: EventEmitter; /** The recommendation result appears in the viewport */ vviinnResultView: EventEmitter; /** Recommendation request failed */ vviinnNoResult: EventEmitter; /** Add to Basket button clicked */ vviinnAddToBasket: EventEmitter; /** The VPR button is activated */ vviinnVprButtonActivated: EventEmitter; targetAppendSidebarTo: HTMLElement; private iconSideSize?; private disposeStoreListener?; private eventAbortController?; connectedCallback(): void; componentWillLoad(): Promise; appendSidebarToElementWatcher(): void; private sidebar; private removeSidebarFromDOM; private sidebarCloseListener; private handleButtonClick; private getAriaLabel; render(): any; private handleKeyDown; private handleClick; disconnectedCallback(): void; }