UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

22 lines (21 loc) 883 B
import { ESLCarouselAutoplayStateMixin } from './esl-carousel.autoplay.state.mixin'; import type { ESLCarouselAutoplayBehaviour } from './esl-carousel.autoplay.types'; /** * External autoplay control mixin. * Hosts on a control element and toggles autoplay state for the target carousel. */ export declare class ESLCarouselAutoplayControlMixin extends ESLCarouselAutoplayStateMixin { static is: string; /** Control behaviour to apply on click */ behaviour: ESLCarouselAutoplayBehaviour; disconnectedCallback(): void; /** Synchronize control state markers and a11y state */ protected syncState(): void; /** Handles host click and toggles autoplay using configured behaviour */ protected _onClick(e: PointerEvent): void; } declare global { export interface ESLCarouselNS { AutoplayControl: typeof ESLCarouselAutoplayControlMixin; } }