- * ```
- *
- * @default 3000
- */
- delay?: number;
-
- /**
- * Enable this parameter and autoplay will be stopped when it reaches last slide (has no effect in loop mode)
- *
- * @default false
- */
- stopOnLastSlide?: boolean;
-
- /**
- * Set to `false` and autoplay will not be disabled after user interactions (swipes),
- * it will be restarted every time after interaction
- *
- * @default true
- */
- disableOnInteraction?: boolean;
-
- /**
- * Enables autoplay in reverse direction
- *
- * @default false
- */
- reverseDirection?: boolean;
-
- /**
- * When enabled autoplay will wait for wrapper transition to continue.
- * Can be disabled in case of using Virtual Translate when your
- * slider may not have transition
- *
- * @default true
- */
- waitForTransition?: boolean;
-
- /**
- * When enabled autoplay will be paused on mouse enter over Swiper container. If `disableOnInteraction` is also enabled, it will stop autoplay instead of pause
- *
- * @default false
- */
- pauseOnMouseEnter?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/controller.d.ts b/resources/web/guide/swiper/types/modules/controller.d.ts
deleted file mode 100644
index 74b99c80b5..0000000000
--- a/resources/web/guide/swiper/types/modules/controller.d.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import Swiper from '../swiper-class';
-
-export interface ControllerMethods {
- /**
- * Pass here another Swiper instance or array with Swiper instances that should be controlled
- * by this Swiper
- */
- control?: Swiper | Swiper[];
-}
-
-export interface ControllerEvents {}
-
-export interface ControllerOptions {
- /**
- * Pass here another Swiper instance or array with Swiper instances that should be controlled
- * by this Swiper
- */
- control?: Swiper | Swiper[];
-
- /**
- * Set to `true` and controlling will be in inverse direction
- *
- * @default false
- */
- inverse?: boolean;
-
- /**
- * Defines a way how to control another slider: slide by slide
- * (with respect to other slider's grid) or depending on all slides/container
- * (depending on total slider percentage).
- *
- * @default 'slide'
- */
- by?: 'slide' | 'container';
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-cards.d.ts b/resources/web/guide/swiper/types/modules/effect-cards.d.ts
deleted file mode 100644
index 9630ae0169..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-cards.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { CSSSelector } from '../shared';
-
-export interface CardsEffectMethods {}
-
-export interface CardsEffectEvents {}
-
-export interface CardsEffectOptions {
- /**
- * Enables slides shadows
- *
- * @default true
- */
- slideShadows?: boolean;
- /**
- * CSS selector of the element inside of the slide to transform instead of the slide itself. Useful to use with cssMode
- *
- * @default null
- */
- transformEl?: CSSSelector;
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-coverflow.d.ts b/resources/web/guide/swiper/types/modules/effect-coverflow.d.ts
deleted file mode 100644
index e95dde7892..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-coverflow.d.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { CSSSelector } from '../shared';
-
-export interface CoverflowEffectMethods {}
-
-export interface CoverflowEffectEvents {}
-
-export interface CoverflowEffectOptions {
- /**
- * Enables slides shadows
- *
- * @default true
- */
- slideShadows?: boolean;
- /**
- * Slide rotate in degrees
- *
- * @default 50
- */
- rotate?: number;
- /**
- * Stretch space between slides (in px)
- *
- * @default 0
- */
- stretch?: number;
- /**
- * Depth offset in px (slides translate in Z axis)
- *
- * @default 100
- */
- depth?: number;
- /**
- * Slide scale effect
- *
- * @default 1
- */
- scale?: number;
- /**
- * Effect multiplier
- *
- * @default 1
- */
- modifier?: number;
- /**
- * CSS selector of the element inside of the slide to transform instead of the slide itself. Useful to use with cssMode
- *
- * @default null
- */
- transformEl?: CSSSelector;
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-creative.d.ts b/resources/web/guide/swiper/types/modules/effect-creative.d.ts
deleted file mode 100644
index ac34c9fed2..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-creative.d.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-import { CSSSelector } from '../shared';
-
-interface CreativeEffectTransform {
- translate?: (string | number)[];
- rotate?: number[];
- opacity?: number;
- scale?: number;
- shadow?: boolean;
- origin?: string;
-}
-
-export interface CreativeEffectMethods {}
-
-export interface CreativeEffectEvents {}
-
-export interface CreativeEffectOptions {
- /**
- * Previous slide transformations. Accepts object of the following type:
- *
- * @example
- * ```js
- * {
- * // Array with translate X, Y and Z values
- * translate: (string | number)[];
- * // Array with rotate X, Y and Z values (in deg)
- * rotate?: number[];
- * // Slide opacity
- * opacity?: number;
- * // Slide scale
- * scale?: number;
- * // Enables slide shadow
- * shadow?: boolean;
- * // Transform origin, e.g. `left bottom`
- * origin?: string;
- * }
- * ```
- *
- */
- prev?: CreativeEffectTransform;
- /**
- * Next slide transformations.
- *
- * @example
- * ```js
- * {
- * // Array with translate X, Y and Z values
- * translate: (string | number)[];
- * // Array with rotate X, Y and Z values (in deg)
- * rotate?: number[];
- * // Slide opacity
- * opacity?: number;
- * // Slide scale
- * scale?: number;
- * // Enables slide shadow
- * shadow?: boolean;
- * // Transform origin, e.g. `left bottom`
- * origin?: string;
- * }
- * ```
- *
- */
- next?: CreativeEffectTransform;
- /**
- * CSS selector of the element inside of the slide to transform instead of the slide itself. Useful to use with cssMode
- *
- * @default null
- */
- transformEl?: CSSSelector;
- /**
- * Limit progress/offset to amount of side slides. If `1`, then slides all slides after prev/next will have same state. If `2`, then all slides after 2nd before/after active will have same state, etc.
- *
- * @default 1
- */
- limitProgress?: number;
- /**
- * Splits shadow "opacity" per slide based on `limitProgress` (only if transformation shadows enabled). E.g. setting `limitProgress: 2` and enabling `shadowPerProgress`, will set shadow opacity to `0.5` and `1` on two slides next to active. With this parameter disabled, all slides beside active will have shadow with `1` opacity
- *
- * @default false
- */
- shadowPerProgress?: boolean;
- /**
- * Allows to multiply slides transformations and opacity.
- *
- * @default 1
- */
- progressMultipler?: number;
- /**
- * Enable this parameter if your custom transforms require 3D transformations (`translateZ`, `rotateX`, `rotateY` )
- *
- * @default true
- */
- perspective?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-cube.d.ts b/resources/web/guide/swiper/types/modules/effect-cube.d.ts
deleted file mode 100644
index c59535c5aa..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-cube.d.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-export interface CubeEffectMethods {}
-
-export interface CubeEffectEvents {}
-
-export interface CubeEffectOptions {
- /**
- * Enables slides shadows
- *
- * @default true
- */
- slideShadows?: boolean;
- /**
- * Enables main slider shadow
- *
- * @default true
- */
- shadow?: boolean;
- /**
- * Main shadow offset in px
- *
- * @default 20
- */
- shadowOffset?: number;
- /**
- * Main shadow scale ratio
- *
- * @default 0.94
- */
- shadowScale?: number;
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-fade.d.ts b/resources/web/guide/swiper/types/modules/effect-fade.d.ts
deleted file mode 100644
index 8478d4bea8..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-fade.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { CSSSelector } from '../shared';
-
-export interface FadeEffectMethods {}
-
-export interface FadeEffectEvents {}
-
-export interface FadeEffectOptions {
- /**
- * Enables slides cross fade
- *
- * @default false
- */
- crossFade?: boolean;
- /**
- * CSS selector of the element inside of the slide to transform instead of the slide itself. Useful to use with cssMode
- *
- * @default null
- */
- transformEl?: CSSSelector;
-}
diff --git a/resources/web/guide/swiper/types/modules/effect-flip.d.ts b/resources/web/guide/swiper/types/modules/effect-flip.d.ts
deleted file mode 100644
index f3de1e6b57..0000000000
--- a/resources/web/guide/swiper/types/modules/effect-flip.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { CSSSelector } from '../shared';
-
-export interface FlipEffectMethods {}
-
-export interface FlipEffectEvents {}
-
-export interface FlipEffectOptions {
- /**
- * Enables slides shadows
- *
- * @default true
- */
- slideShadows?: boolean;
- /**
- * Limit edge slides rotation
- *
- * @default true
- */
- limitRotation?: boolean;
- /**
- * CSS selector of the element inside of the slide to transform instead of the slide itself. Useful to use with cssMode
- *
- * @default null
- */
- transformEl?: CSSSelector;
-}
diff --git a/resources/web/guide/swiper/types/modules/free-mode.d.ts b/resources/web/guide/swiper/types/modules/free-mode.d.ts
deleted file mode 100644
index e82a57c700..0000000000
--- a/resources/web/guide/swiper/types/modules/free-mode.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-export interface FreeModeMethods {
- onTouchMove(): void;
- onTouchEnd(): void;
-}
-
-export interface FreeModeEvents {}
-
-export interface FreeModeOptions {
- enabled?: boolean;
-
- /**
- * If enabled, then slide will keep moving for a while after you release it
- *
- * @default true
- */
- momentum?: boolean;
-
- /**
- * Higher value produces larger momentum distance after you release slider
- *
- * @default 1
- */
- momentumRatio?: number;
-
- /**
- * Higher value produces larger momentum velocity after you release slider
- *
- * @default 1
- */
- momentumVelocityRatio?: number;
-
- /**
- * Set to `false` if you want to disable momentum bounce in free mode
- *
- * @default true
- */
- momentumBounce?: boolean;
-
- /**
- * Higher value produces larger momentum bounce effect
- *
- * @default 1
- */
- momentumBounceRatio?: number;
-
- /**
- * Minimum touchmove-velocity required to trigger free mode momentum
- *
- * @default 0.02
- */
- minimumVelocity?: number;
-
- /**
- * Set to enabled to enable snap to slides positions in free mode
- *
- * @default false
- */
- sticky?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/grid.d.ts b/resources/web/guide/swiper/types/modules/grid.d.ts
deleted file mode 100644
index a7626c8c68..0000000000
--- a/resources/web/guide/swiper/types/modules/grid.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export interface GridMethods {}
-
-export interface GridEvents {}
-
-export interface GridOptions {
- /**
- * Number of slides rows, for multirow layout
- *
- * @note `rows` > 1 is currently not compatible with loop mode (`loop: true`)
- *
- * @default 1
- */
- rows?: number;
-
- /**
- * Can be `'column'` or `'row'`. Defines how slides should fill rows, by column or by row
- *
- * @default 'column'
- */
- fill?: 'row' | 'column';
-}
diff --git a/resources/web/guide/swiper/types/modules/hash-navigation.d.ts b/resources/web/guide/swiper/types/modules/hash-navigation.d.ts
deleted file mode 100644
index ac490cfbae..0000000000
--- a/resources/web/guide/swiper/types/modules/hash-navigation.d.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import Swiper from '../swiper-class';
-
-export interface HashNavigationMethods {}
-
-export interface HashNavigationEvents {
- /**
- * Event will be fired on window hash change
- */
- hashChange: (swiper: Swiper) => void;
- /**
- * Event will be fired when swiper updates the hash
- */
- hashSet: (swiper: Swiper) => void;
-}
-
-export interface HashNavigationOptions {
- /**
- * Set to `true` to enable also navigation through slides (when hashnav
- * is enabled) by browser history or by setting directly hash on document location
- *
- * @default false
- */
- watchState?: boolean;
-
- /**
- * Works in addition to hashnav to replace current url state with the
- * new one instead of adding it to history
- *
- * @default false
- */
- replaceState?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/history.d.ts b/resources/web/guide/swiper/types/modules/history.d.ts
deleted file mode 100644
index 0003b08d72..0000000000
--- a/resources/web/guide/swiper/types/modules/history.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-export interface HistoryMethods {}
-
-export interface HistoryEvents {}
-
-export interface HistoryOptions {
- /**
- * Swiper page root, useful to specify when you use Swiper history mode not on root website page.
- * For example can be `https://my-website.com/` or `https://my-website.com/subpage/` or `/subpage/`
- *
- *
- * @default ''
- */
- root?: string;
-
- /**
- * Works in addition to hashnav or history to replace current url state with the
- * new one instead of adding it to history
- *
- * @default false
- */
- replaceState?: boolean;
-
- /**
- * Url key for slides
- *
- * @default 'slides'
- */
- key?: string;
-}
diff --git a/resources/web/guide/swiper/types/modules/keyboard.d.ts b/resources/web/guide/swiper/types/modules/keyboard.d.ts
deleted file mode 100644
index 1e9a3127c3..0000000000
--- a/resources/web/guide/swiper/types/modules/keyboard.d.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import Swiper from '../swiper-class';
-
-export interface KeyboardMethods {
- /**
- * Whether the keyboard control is enabled
- */
- enabled: boolean;
-
- /**
- * Enable keyboard control
- */
- enable(): void;
-
- /**
- * Disable keyboard control
- */
- disable(): void;
-}
-
-export interface KeyboardEvents {
- /**
- * Event will be fired on key press
- */
- keyPress: (swiper: Swiper, keyCode: string) => void;
-}
-
-export interface KeyboardOptions {
- /**
- * Set to `true` to enable keyboard control
- *
- * @default false
- */
- enabled?: boolean;
- /**
- * When enabled it will control sliders that are currently in viewport
- *
- * @default true
- */
- onlyInViewport?: boolean;
- /**
- * When enabled it will enable keyboard navigation by Page Up and Page Down keys
- *
- * @default true
- */
- pageUpDown?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/lazy.d.ts b/resources/web/guide/swiper/types/modules/lazy.d.ts
deleted file mode 100644
index 815c861494..0000000000
--- a/resources/web/guide/swiper/types/modules/lazy.d.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-import { Dom7Array } from 'dom7';
-import { CSSSelector } from '../shared';
-import Swiper from '../swiper-class';
-
-export interface LazyMethods {
- /**
- * Load/update lazy images based on current slider state (position)
- */
- load(): void;
-
- /**
- * Force to load lazy images in slide by specified index
- * @param number index number of slide to load lazy images in
- */
- loadInSlide(index: number): void;
-}
-
-export interface LazyEvents {
- /**
- * Event will be fired in the beginning of lazy loading of image
- */
- lazyImageLoad: (swiper: Swiper, slideEl: HTMLElement, imageEl: HTMLElement) => void;
- /**
- * Event will be fired when lazy loading image will be loaded
- */
- lazyImageReady: (swiper: Swiper, slideEl: HTMLElement, imageEl: HTMLElement) => void;
-}
-
-export interface LazyOptions {
- /**
- * Enables to check is the Swiper in view before lazy loading images on initial slides
- *
- * @default false
- */
- checkInView?: boolean;
- /**
- * Element to check scrolling on for `checkInView`. Defaults to `window`
- * */
- scrollingElement?: CSSSelector | null | Dom7Array | HTMLElement;
- /**
- * Set to `true` to enable lazy loading for the closest slides images (for previous and next slide images)
- *
- * @default false
- * */
- loadPrevNext?: boolean;
- /**
- * Amount of next/prev slides to preload lazy images in. Can't be less than `slidesPerView`
- *
- * @default 1
- * */
- loadPrevNextAmount?: number;
- /**
- * By default, Swiper will load lazy images after transition to this slide, so you may enable this parameter if you need it to start loading of new image in the beginning of transition
- *
- * @default false
- * */
- loadOnTransitionStart?: boolean;
- /**
- * CSS class name of lazy element
- *
- * @default 'swiper-lazy'
- * */
- elementClass?: string;
- /**
- * CSS class name of lazy loading element
- *
- * @default 'swiper-lazy-loading'
- * */
- loadingClass?: string;
- /**
- * CSS class name of lazy loaded element
- *
- * @default 'swiper-lazy-loaded'
- * */
- loadedClass?: string;
- /**
- * CSS class name of lazy preloader
- *
- * @default 'swiper-lazy-preloader'
- * */
- preloaderClass?: string;
-}
diff --git a/resources/web/guide/swiper/types/modules/manipulation.d.ts b/resources/web/guide/swiper/types/modules/manipulation.d.ts
deleted file mode 100644
index 3366eaf031..0000000000
--- a/resources/web/guide/swiper/types/modules/manipulation.d.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-export interface ManipulationMethods {
- /**
- * Add new slides to the end. slides could be
- * HTMLElement or HTML string with new slide or
- * array with such slides, for example:
- *
- * @example
- * ```js
- * appendSlide('
Slide 10"
')
- *
- * appendSlide([
- * '
Slide 10"
',
- * '
Slide 11"
'
- * ]);
- * ```
- */
- appendSlide(slides: HTMLElement | string | string[] | HTMLElement[]): void;
-
- /**
- * Add new slides to the beginning. slides could be
- * HTMLElement or HTML string with new slide or array with such slides, for example:
- *
- * @example
- * ```js
- * prependSlide('
Slide 0"
')
- *
- * prependSlide([
- * '
Slide 1"
',
- * '
Slide 2"
'
- * ]);
- * ```
- */
- prependSlide(slides: HTMLElement | string | string[] | HTMLElement[]): void;
-
- /**
- * Add new slides to the required index. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:
- *
- * @example
- * ```js
- * addSlide(1, '
Slide 10"
')
- *
- * addSlide(1, [
- * '
Slide 10"
',
- * '
Slide 11"
'
- * ]);
- * ```
- */
- addSlide(index: number, slides: HTMLElement | string | string[] | HTMLElement[]): void;
-
- /**
- * Remove selected slides. slideIndex could be a number with slide index to remove or array with indexes.
- *
- * @example
- * ```js
- * removeSlide(0); // remove first slide
- * removeSlide([0, 1]); // remove first and second slides
- * removeAllSlides(); // Remove all slides
- * ```
- */
- removeSlide(slideIndex: number | number[]): void;
-
- /**
- * Remove all slides
- */
- removeAllSlides(): void;
-}
-
-export interface ManipulationEvents {}
-
-export interface ManipulationOptions {}
diff --git a/resources/web/guide/swiper/types/modules/mousewheel.d.ts b/resources/web/guide/swiper/types/modules/mousewheel.d.ts
deleted file mode 100644
index 43c980998c..0000000000
--- a/resources/web/guide/swiper/types/modules/mousewheel.d.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import Swiper from '../swiper-class';
-import { CSSSelector } from '../shared';
-
-export interface MousewheelMethods {
- /**
- * Whether the mousewheel control is enabled
- */
- enabled: boolean;
-
- /**
- * Enable mousewheel control
- */
- enable(): void;
-
- /**
- * Disable mousewheel control
- */
- disable(): void;
-}
-
-export interface MousewheelEvents {
- /**
- * Event will be fired on mousewheel scroll
- */
- scroll: (swiper: Swiper, event: WheelEvent) => void;
-}
-
-export interface MousewheelOptions {
- /**
- * Set to `true` to force mousewheel swipes to axis. So in horizontal mode mousewheel will work only with horizontal mousewheel scrolling, and only with vertical scrolling in vertical mode.
-
- *
- * @default false
- */
- forceToAxis?: boolean;
- /**
- * Set to `true` and swiper will release mousewheel event and allow page scrolling when swiper is on edge positions (in the beginning or in the end)
-
- *
- * @default false
- */
- releaseOnEdges?: boolean;
- /**
- * Set to `true` to invert sliding direction
- *
- * @default false
- */
- invert?: boolean;
- /**
- * Multiplier of mousewheel data, allows to tweak mouse wheel sensitivity
- *
- * @default 1
- */
- sensitivity?: number;
- /**
- * String with CSS selector or HTML element of the container accepting mousewheel events. By default it is swiper
- *
- * @default 'container'
- */
- eventsTarget?: 'container' | 'wrapper' | CSSSelector | HTMLElement;
-
- /**
- * Minimum mousewheel scroll delta to trigger swiper slide change
- *
- * @default null
- */
- thresholdDelta?: number | null;
-
- /**
- * Minimum mousewheel scroll time delta (in ms) to trigger swiper slide change
- *
- * @default null
- */
- thresholdTime?: number | null;
-}
diff --git a/resources/web/guide/swiper/types/modules/navigation.d.ts b/resources/web/guide/swiper/types/modules/navigation.d.ts
deleted file mode 100644
index 89a5cfb14f..0000000000
--- a/resources/web/guide/swiper/types/modules/navigation.d.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-import { CSSSelector } from '../shared';
-import Swiper from '../swiper-class';
-
-export interface NavigationMethods {
- /**
- * HTMLElement of "next" navigation button
- */
- nextEl: HTMLElement;
-
- /**
- * HTMLElement of "previous" navigation button
- */
- prevEl: HTMLElement;
-
- /**
- * Update navigation buttons state (enabled/disabled)
- */
- update(): void;
-
- /**
- * Initialize navigation
- */
- init(): void;
-
- /**
- * Destroy navigation
- */
- destroy(): void;
-}
-
-export interface NavigationEvents {
- /**
- * Event will be fired on navigation hide
- */
- navigationHide: (swiper: Swiper) => void;
- /**
- * Event will be fired on navigation show
- */
- navigationShow: (swiper: Swiper) => void;
-}
-
-export interface NavigationOptions {
- /**
- * String with CSS selector or HTML element of the element that will work
- * like "next" button after click on it
- *
- * @default null
- */
- nextEl?: CSSSelector | HTMLElement | null;
-
- /**
- * String with CSS selector or HTML element of the element that will work
- * like "prev" button after click on it
- *
- * @default null
- */
- prevEl?: CSSSelector | HTMLElement | null;
-
- /**
- * Toggle navigation buttons visibility after click on Slider's container
- *
- * @default false
- */
- hideOnClick?: boolean;
-
- /**
- * CSS class name added to navigation button when it becomes disabled
- *
- * @default 'swiper-button-disabled'
- */
- disabledClass?: string;
-
- /**
- * CSS class name added to navigation button when it becomes hidden
- *
- * @default 'swiper-button-hidden'
- */
- hiddenClass?: string;
-
- /**
- * CSS class name added to navigation button when it is disabled
- *
- * @default 'swiper-button-lock'
- */
- lockClass?: string;
-}
diff --git a/resources/web/guide/swiper/types/modules/pagination.d.ts b/resources/web/guide/swiper/types/modules/pagination.d.ts
deleted file mode 100644
index 7e444a0ccf..0000000000
--- a/resources/web/guide/swiper/types/modules/pagination.d.ts
+++ /dev/null
@@ -1,285 +0,0 @@
-import { Dom7Array } from 'dom7';
-import { CSSSelector } from '../shared';
-import Swiper from '../swiper-class';
-
-export interface PaginationMethods {
- /**
- * HTMLElement of pagination container element
- */
- el: HTMLElement;
-
- /**
- * Dom7 array-like collection of pagination bullets
- * HTML elements. To get specific slide HTMLElement
- * use `swiper.pagination.bullets[1]`.
- */
- bullets: Dom7Array[];
-
- /**
- * Render pagination layout
- */
- render(): void;
-
- /**
- * Update pagination state (enabled/disabled/active)
- */
- update(): void;
-
- /**
- * Initialize pagination
- */
- init(): void;
-
- /**
- * Destroy pagination
- */
- destroy(): void;
-}
-
-export interface PaginationEvents {
- /**
- * Event will be fired after pagination rendered
- */
- paginationRender: (swiper: Swiper, paginationEl: HTMLElement) => void;
-
- /**
- * Event will be fired when pagination updated
- */
- paginationUpdate: (swiper: Swiper, paginationEl: HTMLElement) => void;
-
- /**
- * Event will be fired on pagination hide
- */
- paginationHide: (swiper: Swiper) => void;
-
- /**
- * Event will be fired on pagination show
- */
- paginationShow: (swiper: Swiper) => void;
-}
-
-export interface PaginationOptions {
- /**
- * String with CSS selector or HTML element of the container with pagination
- *
- * @default null
- */
- el?: CSSSelector | HTMLElement | null;
-
- /**
- * String with type of pagination. Can be `'bullets'`, `'fraction'`, `'progressbar'` or `'custom'`
- *
- * @default 'bullets'
- */
- type?: 'bullets' | 'fraction' | 'progressbar' | 'custom';
-
- /**
- * Defines which HTML tag will be used to represent single pagination bullet. Only for `'bullets'` pagination type.
- *
- * @default 'span'
- */
- bulletElement?: string;
-
- /**
- * Good to enable if you use bullets pagination with a lot of slides. So it will keep only few bullets visible at the same time.
- *
- * @default false
- */
- dynamicBullets?: boolean;
-
- /**
- * The number of main bullets visible when `dynamicBullets` enabled.
- *
- * @default 1
- */
- dynamicMainBullets?: number;
-
- /**
- * Toggle (hide/show) pagination container visibility after click on Slider's container
- *
- * @default true
- */
- hideOnClick?: boolean;
-
- /**
- * If `true` then clicking on pagination button will cause transition to appropriate slide. Only for bullets pagination type
- *
- * @default false
- */
- clickable?: boolean;
-
- /**
- * Makes pagination progressbar opposite to Swiper's `direction` parameter, means vertical progressbar for horizontal swiper
- * direction and horizontal progressbar for vertical swiper direction
- *
- * @default false
- */
- progressbarOpposite?: boolean;
-
- /**
- * format fraction pagination current number. Function receives current number,
- * and you need to return formatted value
- */
- formatFractionCurrent?: (number: number) => number;
-
- /**
- * format fraction pagination total number. Function receives total number, and you
- * need to return formatted value
- */
- formatFractionTotal?: (number: number) => number;
-
- /**
- * This parameter allows totally customize pagination bullets, you need to pass here a function that accepts `index` number of
- * pagination bullet and required element class name (`className`). Only for `'bullets'` pagination type
- *
- * @default null
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * //...
- * renderBullet: function (index, className) {
- * return '
' + (index + 1) + '';
- * }
- * });
- * ```
- */
- renderBullet?: (index: number, className: string) => void;
-
- /**
- * This parameter allows to customize "fraction" pagination html. Only for `'fraction'` pagination type
- *
- * @default null
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * //...
- * renderFraction: function (currentClass, totalClass) {
- * return '
' +
- * ' of ' +
- * '
';
- * }
- * });
- * ```
- */
- renderFraction?: (currentClass: string, totalClass: string) => void;
-
- /**
- * This parameter allows to customize "progress" pagination. Only for `'progress'` pagination type
- *
- * @default null
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * //...
- * renderProgressbar: function (progressbarFillClass) {
- * return '
';
- * }
- * });
- * ```
- */
- renderProgressbar?: (progressbarFillClass: string) => void;
-
- /**
- * This parameter is required for `'custom'` pagination type where you have to specify
- * how it should be rendered.
- *
- * @default null
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * //...
- * renderCustom: function (swiper, current, total) {
- * return current + ' of ' + total;
- * }
- * });
- * ```
- */
- renderCustom?: (swiper: Swiper, current: number, total: number) => void;
-
- /**
- * CSS class name of single pagination bullet
- *
- * @default 'swiper-pagination-bullet'
- */
- bulletClass?: string;
-
- /**
- * CSS class name of currently active pagination bullet
- *
- * @default 'swiper-pagination-bullet-active'
- */
- bulletActiveClass?: string;
-
- /**
- * The beginning of the modifier CSS class name that will be added to pagination depending on parameters
- *
- * @default 'swiper-pagination-'
- */
- modifierClass?: string;
-
- /**
- * CSS class name of the element with currently active index in "fraction" pagination
- *
- * @default 'swiper-pagination-current'
- */
- currentClass?: string;
-
- /**
- * CSS class name of the element with total number of "snaps" in "fraction" pagination
- *
- * @default 'swiper-pagination-total'
- */
- totalClass?: string;
-
- /**
- * CSS class name of pagination when it becomes inactive
- *
- * @default 'swiper-pagination-hidden'
- */
- hiddenClass?: string;
-
- /**
- * CSS class name of pagination progressbar fill element
- *
- * @default 'swiper-pagination-progressbar-fill'
- */
- progressbarFillClass?: string;
-
- /**
- * CSS class name of pagination progressbar opposite
- *
- * @default 'swiper-pagination-progressbar-opposite'
- */
- progressbarOppositeClass?: string;
- /**
- * CSS class name set to pagination when it is clickable
- *
- * @default 'swiper-pagination-clickable'
- */
- clickableClass?: string;
-
- /**
- * CSS class name set to pagination when it is disabled
- *
- * @default 'swiper-pagination-lock'
- */
- lockClass?: string;
-
- /**
- * CSS class name set to pagination in horizontal Swiper
- *
- * @default 'swiper-pagination-horizontal'
- */
- horizontalClass?: string;
-
- /**
- * CSS class name set to pagination in vertical Swiper
- *
- * @default 'swiper-pagination-vertical'
- */
- verticalClass?: string;
-}
diff --git a/resources/web/guide/swiper/types/modules/parallax.d.ts b/resources/web/guide/swiper/types/modules/parallax.d.ts
deleted file mode 100644
index 27e8e6fc6b..0000000000
--- a/resources/web/guide/swiper/types/modules/parallax.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export interface ParallaxMethods {}
-
-export interface ParallaxEvents {}
-
-export interface ParallaxOptions {
- /**
- * Enable, if you want to use "parallaxed" elements inside of slider
- *
- * @default false
- */
- enabled?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/public-api.d.ts b/resources/web/guide/swiper/types/modules/public-api.d.ts
deleted file mode 100644
index 316772c0c8..0000000000
--- a/resources/web/guide/swiper/types/modules/public-api.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-export * from './a11y';
-export * from './autoplay';
-export * from './controller';
-export * from './effect-coverflow';
-export * from './effect-cube';
-export * from './effect-fade';
-export * from './effect-flip';
-export * from './effect-creative';
-export * from './effect-cards';
-export * from './hash-navigation';
-export * from './history';
-export * from './keyboard';
-export * from './lazy';
-export * from './mousewheel';
-export * from './navigation';
-export * from './pagination';
-export * from './parallax';
-export * from './scrollbar';
-export * from './thumbs';
-export * from './virtual';
-export * from './zoom';
-export * from './free-mode';
-export * from './grid';
-export * from './manipulation';
diff --git a/resources/web/guide/swiper/types/modules/scrollbar.d.ts b/resources/web/guide/swiper/types/modules/scrollbar.d.ts
deleted file mode 100644
index 9577568cf6..0000000000
--- a/resources/web/guide/swiper/types/modules/scrollbar.d.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-import { CSSSelector } from '../shared';
-import Swiper from '../swiper-class';
-
-export interface ScrollbarMethods {
- /**
- * HTMLElement of Scrollbar container element
- */
- el: HTMLElement;
-
- /**
- * HTMLElement of Scrollbar draggable handler element
- */
- dragEl: HTMLElement;
-
- /**
- * Updates scrollbar track and handler sizes
- */
- updateSize(): void;
-
- /**
- * Updates scrollbar translate
- */
- setTranslate(): void;
-
- /**
- * Initialize scrollbar
- */
- init(): void;
-
- /**
- * Destroy scrollbar
- */
- destroy(): void;
-}
-
-export interface ScrollbarEvents {
- /**
- * Event will be fired on draggable scrollbar drag start
- */
- scrollbarDragStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired on draggable scrollbar drag move
- */
- scrollbarDragMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired on draggable scrollbar drag end
- */
- scrollbarDragEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-}
-
-/**
- * Object with scrollbar parameters.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * scrollbar: {
- * el: '.swiper-scrollbar',
- * draggable: true,
- * },
- * });
- * ```
- */
-export interface ScrollbarOptions {
- /**
- * String with CSS selector or HTML element of the container with scrollbar.
- *
- * @default null
- */
- el?: CSSSelector | HTMLElement | null;
-
- /**
- * Hide scrollbar automatically after user interaction
- *
- * @default true
- */
- hide?: boolean;
-
- /**
- * Set to `true` to enable make scrollbar draggable that allows you to control slider position
- *
- * @default false
- */
- draggable?: boolean;
-
- /**
- * Set to `true` to snap slider position to slides when you release scrollbar
- *
- * @default false
- */
- snapOnRelease?: boolean;
-
- /**
- * Size of scrollbar draggable element in px
- *
- * @default 'auto'
- */
- dragSize?: 'auto' | number;
-
- /**
- * Scrollbar element additional CSS class when it is disabled
- *
- * @default 'swiper-scrollbar-lock'
- */
- lockClass?: string;
-
- /**
- * Scrollbar draggable element CSS class
- *
- * @default 'swiper-scrollbar-drag'
- */
- dragClass?: string;
-}
diff --git a/resources/web/guide/swiper/types/modules/thumbs.d.ts b/resources/web/guide/swiper/types/modules/thumbs.d.ts
deleted file mode 100644
index 98fa98b324..0000000000
--- a/resources/web/guide/swiper/types/modules/thumbs.d.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import Swiper from '../swiper-class';
-
-export interface ThumbsMethods {
- /**
- * Swiper instance of thumbs swiper
- */
- swiper: Swiper;
-
- /**
- * Update thumbs
- */
- update(initial: boolean): void;
-
- /**
- * Initialize thumbs
- */
- init(): boolean;
-}
-
-export interface ThumbsEvents {}
-
-export interface ThumbsOptions {
- /**
- * Swiper instance of swiper used as thumbs or object with Swiper parameters to initialize thumbs swiper
- *
- * @default null
- */
- swiper?: Swiper | null;
- /**
- * Additional class that will be added to activated thumbs swiper slide
- *
- * @default 'swiper-slide-thumb-active'
- */
- slideThumbActiveClass?: string;
- /**
- * Additional class that will be added to thumbs swiper
- *
- * @default 'swiper-thumbs'
- */
- thumbsContainerClass?: string;
- /**
- * When enabled multiple thumbnail slides may get activated
- *
- * @default true
- */
- multipleActiveThumbs?: boolean;
- /**
- * Allows to set on which thumbs active slide from edge it should automatically move scroll thumbs. For example, if set to 1 and last visible thumb will be activated (1 from edge) it will auto scroll thumbs
-
- *
- * @default 0
- */
- autoScrollOffset?: number;
-}
diff --git a/resources/web/guide/swiper/types/modules/virtual.d.ts b/resources/web/guide/swiper/types/modules/virtual.d.ts
deleted file mode 100644
index 48b270868c..0000000000
--- a/resources/web/guide/swiper/types/modules/virtual.d.ts
+++ /dev/null
@@ -1,122 +0,0 @@
-export interface VirtualMethods {
- /**
- * Object with cached slides HTML elements
- */
- cache: object;
-
- /**
- * Index of first rendered slide
- */
- from: number;
-
- /**
- * Index of last rendered slide
- */
- to: number;
-
- /**
- * Array with slide items passed by `virtual.slides` parameter
- */
- slides: any[];
-
- /*
- * Methods
- */
-
- /**
- * Append slide. `slides` can be a single slide item or array with such slides.
- */
- appendSlide(slide: HTMLElement | string | HTMLElement[] | string[]): void;
-
- /**
- * Prepend slide. `slides` can be a single slide item or array with such slides.
- */
- prependSlide(slide: HTMLElement | string | HTMLElement[] | string[]): void;
-
- /**
- * Remove specific slide or slides. `slideIndexes` can be a number with slide index to remove or array with indexes.
- */
- removeSlide(slideIndexes: number[]): void;
-
- /**
- * Remove all slides
- */
- removeAllSlides(): void;
-
- /**
- * Update virtual slides state
- */
- update(force: boolean): void;
-}
-
-export interface VirtualEvents {}
-
-export interface VirtualData {
- /**
- * slides left/top offset in px
- */
- offset: number;
- /**
- * index of first slide required to be rendered
- */
- from: number;
- /**
- * index of last slide required to be rendered
- */
- to: number;
- /**
- * array with slide items to be rendered
- */
- slides: any[];
-}
-
-export interface VirtualOptions {
- enabled?: boolean;
- /**
- * Array with slides
- *
- * @default []
- */
- slides?: any[];
- /**
- * Enables DOM cache of rendering slides html elements. Once they are rendered they will be saved to cache and reused from it.
- *
- * @default true
- */
- cache?: boolean;
- /**
- * Increases amount of pre-rendered slides before active slide
- *
- * @default 0
- */
- addSlidesBefore?: number;
- /**
- * Increases amount of pre-rendered slides after active slide
- *
- * @default 0
- */
- addSlidesAfter?: number;
- /**
- * Function to render slide. As an argument it accepts current slide item for `slides` array and index number of the current slide. Function must return an outter HTML of the swiper slide.
- *
- * @default null
- */
- renderSlide?: (slide: any, index: any) => any | null;
- /**
- * Function for external rendering (e.g. using some other library to handle DOM manipulations and state like React.js or Vue.js). As an argument it accepts `data` object with the following properties:
- *
- * - `offset` - slides left/top offset in px
- * - `from` - index of first slide required to be rendered
- * - `to` - index of last slide required to be rendered
- * - `slides` - array with slide items to be rendered
- *
- * @default null
- */
- renderExternal?: (data: VirtualData) => any | null;
- /**
- * When enabled (by default) it will update Swiper layout right after renderExternal called. Useful to disable and update swiper manually when used with render libraries that renders asynchronously
- *
- * @default true
- */
- renderExternalUpdate?: boolean;
-}
diff --git a/resources/web/guide/swiper/types/modules/zoom.d.ts b/resources/web/guide/swiper/types/modules/zoom.d.ts
deleted file mode 100644
index 40ebfaaf11..0000000000
--- a/resources/web/guide/swiper/types/modules/zoom.d.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import Swiper from '../swiper-class';
-
-export interface ZoomMethods {
- /**
- * Whether the zoom module is enabled
- */
- enabled: boolean;
-
- /**
- * Current image scale ratio
- */
- scale: number;
-
- /**
- * Enable zoom module
- */
- enable(): void;
-
- /**
- * Disable zoom module
- */
- disable(): void;
-
- /**
- * Zoom in image of the currently active slide
- */
- in(): void;
-
- /**
- * Zoom out image of the currently active slide
- */
- out(): void;
-
- /**
- * Toggle image zoom of the currently active slide
- */
- toggle(): void;
-}
-
-export interface ZoomEvents {
- /**
- * Event will be fired on zoom change
- */
- zoomChange: (swiper: Swiper, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
-}
-
-export interface ZoomOptions {
- /**
- * Maximum image zoom multiplier
- *
- * @default 3
- */
- maxRatio?: number;
- /**
- * Minimal image zoom multiplier
- *
- * @default 1
- */
- minRatio?: number;
- /**
- * Enable/disable zoom-in by slide's double tap
- *
- * @default true
- */
- toggle?: boolean;
- /**
- * CSS class name of zoom container
- *
- * @default 'swiper-zoom-container'
- */
- containerClass?: string;
- /**
- * CSS class name of zoomed in container
- *
- * @default 'swiper-slide-zoomed'
-
- */
- zoomedSlideClass?: string;
-}
diff --git a/resources/web/guide/swiper/types/shared.d.ts b/resources/web/guide/swiper/types/shared.d.ts
deleted file mode 100644
index 1e174ff75c..0000000000
--- a/resources/web/guide/swiper/types/shared.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface CSSSelector extends String {}
-
-export interface SwiperModule {}
diff --git a/resources/web/guide/swiper/types/swiper-class.d.ts b/resources/web/guide/swiper/types/swiper-class.d.ts
deleted file mode 100644
index 387990a76c..0000000000
--- a/resources/web/guide/swiper/types/swiper-class.d.ts
+++ /dev/null
@@ -1,472 +0,0 @@
-import { Dom7Array } from 'dom7';
-import { SwiperOptions } from './swiper-options';
-import { CSSSelector, SwiperModule } from './shared';
-import { SwiperEvents } from './swiper-events';
-
-import { A11yMethods } from './modules/a11y';
-import { AutoplayMethods } from './modules/autoplay';
-import { ControllerMethods } from './modules/controller';
-import { CoverflowEffectMethods } from './modules/effect-coverflow';
-import { CubeEffectMethods } from './modules/effect-cube';
-import { FadeEffectMethods } from './modules/effect-fade';
-import { FlipEffectMethods } from './modules/effect-flip';
-import { CreativeEffectMethods } from './modules/effect-creative';
-import { CardsEffectMethods } from './modules/effect-cards';
-import { HashNavigationMethods } from './modules/hash-navigation';
-import { HistoryMethods } from './modules/history';
-import { KeyboardMethods } from './modules/keyboard';
-import { LazyMethods } from './modules/lazy';
-import { MousewheelMethods } from './modules/mousewheel';
-import { NavigationMethods } from './modules/navigation';
-import { PaginationMethods } from './modules/pagination';
-import { ParallaxMethods } from './modules/parallax';
-import { ScrollbarMethods } from './modules/scrollbar';
-import { ThumbsMethods } from './modules/thumbs';
-import { VirtualMethods } from './modules/virtual';
-import { ZoomMethods } from './modules/zoom';
-import { FreeModeMethods } from './modules/free-mode';
-import { ManipulationMethods } from './modules/manipulation';
-
-interface SwiperClass
{
- /** Add event handler */
- on(event: E, handler: Events[E]): void;
- /** Add event handler that will be removed after it was fired */
- once(event: E, handler: Events[E]): void;
- /** Remove event handler */
- off(event: E, handler: Events[E]): void;
- /** Remove all handlers for specified event */
- off(event: E): void;
- /** Fire event on instance */
- emit(event: E, ...args: any[]): void;
-}
-
-interface Swiper extends SwiperClass {
- /**
- * Object with passed initialization parameters
- */
- params: SwiperOptions;
-
- /**
- * Object with original initialization parameters
- */
- originalParams: SwiperOptions;
-
- /**
- * Dom7 element with slider container HTML element. To get vanilla HTMLElement use `swiper.el`
- */
- $el: Dom7Array;
-
- /**
- * Slider container HTML element
- */
- el: HTMLElement;
-
- /**
- * Dom7 element with slider wrapper HTML element. To get vanilla HTMLElement use `swiper.wrapperEl`
- */
- $wrapperEl: Dom7Array;
-
- /**
- * Wrapper HTML element
- */
- wrapperEl: HTMLElement;
-
- /**
- * Dom7 array-like collection of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]`
- */
- slides: Dom7Array;
-
- /**
- * !INTERNAL
- */
- loopedSlides: number | null;
-
- /**
- * Width of container
- */
- width: number;
-
- /**
- * Height of container
- */
- height: number;
-
- /**
- * Current value of wrapper translate
- */
- translate: number;
-
- /**
- * Current progress of wrapper translate (from 0 to 1)
- */
- progress: number;
-
- /**
- * Index number of currently active slide
- *
- * @note Note, that in loop mode active index value will be always shifted on a number of looped/duplicated slides
- */
- activeIndex: number;
-
- /**
- * Index number of currently active slide considering duplicated slides in loop mode
- */
- realIndex: number;
-
- /**
- * Index number of previously active slide
- */
- previousIndex: number;
-
- /**
- * `true` if slider on most "left"/"top" position
- */
- isBeginning: boolean;
-
- /**
- * `true` if slider on most "right"/"bottom" position
- */
- isEnd: boolean;
-
- /**
- * `true` if swiper is in transition
- */
- animating: boolean;
-
- /**
- * Object with the following touch event properties:
- *
- * - `swiper.touches.startX`
- * - `swiper.touches.startY`
- * - `swiper.touches.currentX`
- * - `swiper.touches.currentY`
- * - `swiper.touches.diff`
- */
- touches: {
- startX: number;
- startY: number;
- currentX: number;
- currentY: number;
- diff: number;
- };
-
- /**
- * Index number of last clicked slide
- */
- clickedIndex: number;
-
- /**
- * Link to last clicked slide (HTMLElement)
- */
- clickedSlide: HTMLElement;
-
- /**
- * Disable / enable ability to slide to the next slides by assigning `false` / `true` to this property
- */
- allowSlideNext: boolean;
-
- /**
- * Disable / enable ability to slide to the previous slides by assigning `false` / `true` to this property
- */
- allowSlidePrev: boolean;
-
- /**
- * Disable / enable ability move slider by grabbing it with mouse or by touching it with finger (on touch screens) by assigning `false` / `true` to this property
- */
- allowTouchMove: boolean;
-
- /**
- * !INTERNAL
- */
- rtlTranslate: boolean;
-
- /**
- * Disable Swiper (if it was enabled). When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
- *
- */
- disable(): void;
-
- /**
- * Enable Swiper (if it was disabled)
- *
- */
- enable(): void;
-
- /**
- * Set Swiper translate progress (from 0 to 1). Where 0 - its initial position (offset) on first slide, and 1 - its maximum position (offset) on last slide
- *
- * @param progress Swiper translate progress (from 0 to 1).
- * @param speed Transition duration (in ms).
- */
- setProgress(progress: number, speed?: number): void;
-
- /**
- * Run transition to next slide.
- *
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slideNext(speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Run transition to previous slide.
- *
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slidePrev(speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Run transition to the slide with index number equal to 'index' parameter for the
- * duration equal to 'speed' parameter.
- *
- * @param index Index number of slide.
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slideTo(index: number, speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Does the same as .slideTo but for the case when used with enabled loop. So this
- * method will slide to slides with realIndex matching to passed index
- *
- * @param index Index number of slide.
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slideToLoop(index: number, speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Reset swiper position to currently active slide for the duration equal to 'speed'
- * parameter.
- *
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slideReset(speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Reset swiper position to closest slide/snap point for the duration equal to 'speed' parameter.
- *
- * @param speed Transition duration (in ms).
- * @param runCallbacks Set it to false (by default it is true) and transition will
- * not produce transition events.
- */
- slideToClosest(speed?: number, runCallbacks?: boolean): void;
-
- /**
- * Force swiper to update its height (when autoHeight enabled) for the duration equal to
- * 'speed' parameter
- *
- * @param speed Transition duration (in ms).
- */
- updateAutoHeight(speed?: number): void;
-
- /**
- * You should call it after you add/remove slides
- * manually, or after you hide/show it, or do any
- * custom DOM modifications with Swiper
- * This method also includes subcall of the following
- * methods which you can use separately:
- */
- update(): void;
-
- /**
- * recalculate size of swiper container
- */
- updateSize(): void;
-
- /**
- * recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
- */
- updateSlides(): void;
-
- /**
- * recalculate swiper progress
- */
- updateProgress(): void;
-
- /**
- * update active/prev/next classes on slides and bullets
- */
- updateSlidesClasses(): void;
-
- /**
- * Changes slider direction from horizontal to vertical and back.
- *
- * @param direction New direction. If not specified, then will automatically changed to opposite direction
- * @param needUpdate Will call swiper.update(). Default true
- */
- changeDirection(direction?: 'horizontal' | 'vertical', needUpdate?: boolean): void;
-
- /**
- * Detach all events listeners
- */
- detachEvents(): void;
-
- /**
- * Attach all events listeners again
- */
- attachEvents(): void;
-
- /**
- * !INTERNAL
- */
- loopCreate(): void;
-
- /**
- * !INTERNAL
- */
- loopDestroy(): void;
-
- /**
- * Initialize slider
- */
- init(el?: HTMLElement): Swiper;
-
- /**
- * Destroy slider instance and detach all events listeners
- *
- * @param deleteInstance Set it to false (by default it is true) to not to delete Swiper instance
- * @param cleanStyles Set it to true (by default it is true) and all custom styles will be removed from slides, wrapper and container.
- * Useful if you need to destroy Swiper and to init again with new options or in different direction
- */
- destroy(deleteInstance?: boolean, cleanStyles?: boolean): void;
-
- /**
- * Set custom css3 transform's translate value for swiper wrapper
- */
- setTranslate(translate: any): void;
-
- /**
- * Get current value of swiper wrapper css3 transform translate
- */
- getTranslate(): any;
-
- /**
- * Animate custom css3 transform's translate value for swiper wrapper
- *
- * @param translate Translate value (in px)
- * @param speed Transition duration (in ms)
- * @param runCallbacks Set it to false (by default it is true) and transition will not produce transition events
- * @param translateBounds Set it to false (by default it is true) and transition value can extend beyond min and max translate
- *
- */
- translateTo(
- translate: number,
- speed: number,
- runCallbacks?: boolean,
- translateBounds?: boolean,
- ): any;
-
- /**
- * Unset grab cursor
- */
- unsetGrabCursor(): void;
-
- /**
- * Set grab cursor
- */
- setGrabCursor(): void;
-
- /**
- * Add event listener that will be fired on all events
- */
- onAny(handler: (eventName: string, ...args: any[]) => void): void;
-
- /**
- * Remove event listener that will be fired on all events
- */
- offAny(handler: (eventName: string, ...args: any[]) => void): void;
-
- /**
- * !INTERNAL
- */
- isHorizontal(): boolean;
-
- /**
- * !INTERNAL
- */
- getBreakpoint(breakpoints: SwiperOptions['breakpoints']): string;
-
- /**
- * !INTERNAL
- */
- setBreakpoint(): void;
-
- /**
- * !INTERNAL
- */
- currentBreakpoint: any;
-
- /**
- * !INTERNAL
- */
- destroyed: boolean;
-
- /**
- * !INTERNAL
- */
- modules: Array;
-
- a11y: A11yMethods;
- autoplay: AutoplayMethods;
- controller: ControllerMethods;
- coverflowEffect: CoverflowEffectMethods;
- cubeEffect: CubeEffectMethods;
- fadeEffect: FadeEffectMethods;
- flipEffect: FlipEffectMethods;
- creativeEffect: CreativeEffectMethods;
- cardsEffect: CardsEffectMethods;
- hashNavigation: HashNavigationMethods;
- history: HistoryMethods;
- keyboard: KeyboardMethods;
- lazy: LazyMethods;
- mousewheel: MousewheelMethods;
- navigation: NavigationMethods;
- pagination: PaginationMethods;
- parallax: ParallaxMethods;
- scrollbar: ScrollbarMethods;
- thumbs: ThumbsMethods;
- virtual: VirtualMethods;
- zoom: ZoomMethods;
- freeMode: FreeModeMethods;
-}
-
-interface Swiper extends ManipulationMethods {}
-
-declare class Swiper implements Swiper {
- /**
- * Constructs a new Swiper instance.
- *
- * @param container Where Swiper applies to.
- * @param options Instance options.
- */
- constructor(container: CSSSelector | HTMLElement, options?: SwiperOptions);
- /**
- * Installs modules on Swiper in runtime.
- */
- static use(modules: SwiperModule[]): void;
-
- /**
- * Swiper default options
- */
- static defaults: SwiperOptions;
-
- /**
- * Extend global Swiper defaults
- */
- static extendDefaults(options: SwiperOptions): void;
-
- /**
- * Object with global Swiper extended options
- */
- static extendedDefaults: SwiperOptions;
-}
-
-export default Swiper;
diff --git a/resources/web/guide/swiper/types/swiper-events.d.ts b/resources/web/guide/swiper/types/swiper-events.d.ts
deleted file mode 100644
index 54bba290d3..0000000000
--- a/resources/web/guide/swiper/types/swiper-events.d.ts
+++ /dev/null
@@ -1,362 +0,0 @@
-import { SwiperOptions } from './swiper-options';
-import Swiper from './swiper-class';
-
-import { A11yEvents } from './modules/a11y';
-import { AutoplayEvents } from './modules/autoplay';
-import { ControllerEvents } from './modules/controller';
-import { CoverflowEffectEvents } from './modules/effect-coverflow';
-import { CubeEffectEvents } from './modules/effect-cube';
-import { FadeEffectEvents } from './modules/effect-fade';
-import { FlipEffectEvents } from './modules/effect-flip';
-import { CreativeEffectEvents } from './modules/effect-creative';
-import { CardsEffectEvents } from './modules/effect-cards';
-import { HashNavigationEvents } from './modules/hash-navigation';
-import { HistoryEvents } from './modules/history';
-import { KeyboardEvents } from './modules/keyboard';
-import { LazyEvents } from './modules/lazy';
-import { MousewheelEvents } from './modules/mousewheel';
-import { NavigationEvents } from './modules/navigation';
-import { PaginationEvents } from './modules/pagination';
-import { ParallaxEvents } from './modules/parallax';
-import { ScrollbarEvents } from './modules/scrollbar';
-import { ThumbsEvents } from './modules/thumbs';
-import { VirtualEvents } from './modules/virtual';
-import { ZoomEvents } from './modules/zoom';
-import { FreeModeEvents } from './modules/free-mode';
-
-export interface SwiperEvents {
- // CORE_EVENTS_START
- /**
- * Fired right after Swiper initialization.
- * @note Note that with `swiper.on('init')` syntax it will
- * work only in case you set `init: false` parameter.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * init: false,
- * // other parameters
- * });
- * swiper.on('init', function() {
- * // do something
- * });
- * // init Swiper
- * swiper.init();
- * ```
- *
- * @example
- * ```js
- * // Otherwise use it as the parameter:
- * const swiper = new Swiper('.swiper', {
- * // other parameters
- * on: {
- * init: function () {
- * // do something
- * },
- * }
- * });
- * ```
- */
- init: (swiper: Swiper) => any;
-
- /**
- * Event will be fired right before Swiper destroyed
- */
- beforeDestroy: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when currently active slide is changed
- */
- slideChange: (swiper: Swiper) => void;
-
- /**
- * Event will be fired in the beginning of animation to other slide (next or previous).
- */
- slideChangeTransitionStart: (swiper: Swiper) => void;
-
- /**
- * Event will be fired after animation to other slide (next or previous).
- */
- slideChangeTransitionEnd: (swiper: Swiper) => void;
-
- /**
- * Same as "slideChangeTransitionStart" but for "forward" direction only
- */
- slideNextTransitionStart: (swiper: Swiper) => void;
-
- /**
- * Same as "slideChangeTransitionEnd" but for "forward" direction only
- */
- slideNextTransitionEnd: (swiper: Swiper) => void;
-
- /**
- * Same as "slideChangeTransitionStart" but for "backward" direction only
- */
- slidePrevTransitionStart: (swiper: Swiper) => void;
-
- /**
- * Same as "slideChangeTransitionEnd" but for "backward" direction only
- */
- slidePrevTransitionEnd: (swiper: Swiper) => void;
-
- /**
- * Event will be fired in the beginning of transition.
- */
- transitionStart: (swiper: Swiper) => void;
-
- /**
- * Event will be fired after transition.
- */
- transitionEnd: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when user touch Swiper. Receives `touchstart` event as an arguments.
- */
- touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper. Receives `touchmove` event as an arguments.
- */
- touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `touchmove` event as an arguments.
- */
- touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper and move it. Receives `touchmove` event as an arguments.
- */
- sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user release Swiper. Receives `touchend` event as an arguments.
- */
- touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
- */
- click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
- */
- tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user double tap on Swiper's container. Receives `touchend` event as an arguments
- */
- doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired right after all inner images are loaded. updateOnImagesReady should be also enabled
- */
- imagesReady: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
- */
- progress: (swiper: Swiper, progress: number) => void;
-
- /**
- * Event will be fired when Swiper reach its beginning (initial position)
- */
- reachBeginning: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when Swiper reach last slide
- */
- reachEnd: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when Swiper goes to beginning or end position
- */
- toEdge: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when Swiper goes from beginning or end position
- */
- fromEdge: (swiper: Swiper) => void;
-
- /**
- * Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
- */
- setTranslate: (swiper: Swiper, translate: number) => void;
-
- /**
- * Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
- */
- setTransition: (swiper: Swiper, transition: number) => void;
-
- /**
- * Event will be fired on window resize right before swiper's onresize manipulation
- */
- resize: (swiper: Swiper) => void;
-
- /**
- * Event will be fired if observer is enabled and it detects DOM mutations
- */
- observerUpdate: (swiper: Swiper) => void;
-
- /**
- * Event will be fired right before "loop fix"
- */
- beforeLoopFix: (swiper: Swiper) => void;
-
- /**
- * Event will be fired after "loop fix"
- */
- loopFix: (swiper: Swiper) => void;
-
- /**
- * Event will be fired on breakpoint change
- */
- breakpoint: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
-
- /**
- * !INTERNAL: Event will fired right before breakpoint change
- */
- _beforeBreakpoint?: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper container element
- */
- _containerClasses?: (swiper: Swiper, classNames: string) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper slide element
- */
- _slideClass?: (swiper: Swiper, slideEl: HTMLElement, classNames: string) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on all swiper slides
- */
- _slideClasses?: (
- swiper: Swiper,
- slides: { slideEl: HTMLElement; classNames: string; index: number }[],
- ) => void;
-
- /**
- * !INTERNAL: Event will fired as soon as swiper instance available (before init)
- */
- _swiper?: (swiper: Swiper) => void;
-
- /**
- * !INTERNAL: Event will be fired on free mode touch end (release) and there will no be momentum
- */
- _freeModeNoMomentumRelease?: (swiper: Swiper) => void;
-
- /**
- * Event will fired on active index change
- */
- activeIndexChange: (swiper: Swiper) => void;
- /**
- * Event will fired on snap index change
- */
- snapIndexChange: (swiper: Swiper) => void;
- /**
- * Event will fired on real index change
- */
- realIndexChange: (swiper: Swiper) => void;
- /**
- * Event will fired right after initialization
- */
- afterInit: (swiper: Swiper) => void;
- /**
- * Event will fired right before initialization
- */
- beforeInit: (swiper: Swiper) => void;
- /**
- * Event will fired before resize handler
- */
- beforeResize: (swiper: Swiper) => void;
- /**
- * Event will fired before slide change transition start
- */
- beforeSlideChangeStart: (swiper: Swiper) => void;
- /**
- * Event will fired before transition start
- */
- beforeTransitionStart: (swiper: Swiper, speed: number, internal: any) => void; // what is internal?
- /**
- * Event will fired on direction change
- */
- changeDirection: (swiper: Swiper) => void;
- /**
- * Event will be fired when user double click/tap on Swiper
- */
- doubleClick: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired on swiper destroy
- */
- destroy: (swiper: Swiper) => void;
- /**
- * Event will be fired on momentum bounce
- */
- momentumBounce: (swiper: Swiper) => void;
- /**
- * Event will be fired on orientation change (e.g. landscape -> portrait)
- */
- orientationchange: (swiper: Swiper) => void;
- /**
- * Event will be fired in the beginning of animation of resetting slide to current one
- */
- slideResetTransitionStart: (swiper: Swiper) => void;
- /**
- * Event will be fired in the end of animation of resetting slide to current one
- */
- slideResetTransitionEnd: (swiper: Swiper) => void;
- /**
- * Event will be fired with first touch/drag move
- */
- sliderFirstMove: (swiper: Swiper, event: TouchEvent) => void;
- /**
- * Event will be fired when number of slides has changed
- */
- slidesLengthChange: (swiper: Swiper) => void;
- /**
- * Event will be fired when slides grid has changed
- */
- slidesGridLengthChange: (swiper: Swiper) => void;
- /**
- * Event will be fired when snap grid has changed
- */
- snapGridLengthChange: (swiper: Swiper) => void;
- /**
- * Event will be fired after swiper.update() call
- */
- update: (swiper: Swiper) => void;
- /**
- * Event will be fired when swiper is locked (when `watchOverflow` enabled)
- */
- lock: (swiper: Swiper) => void;
- /**
- * Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
- */
- unlock: (swiper: Swiper) => void;
- // CORE_EVENTS_END
-}
-
-interface SwiperEvents extends A11yEvents {}
-interface SwiperEvents extends AutoplayEvents {}
-interface SwiperEvents extends ControllerEvents {}
-interface SwiperEvents extends CoverflowEffectEvents {}
-interface SwiperEvents extends CubeEffectEvents {}
-interface SwiperEvents extends FadeEffectEvents {}
-interface SwiperEvents extends FlipEffectEvents {}
-interface SwiperEvents extends CreativeEffectEvents {}
-interface SwiperEvents extends CardsEffectEvents {}
-interface SwiperEvents extends HashNavigationEvents {}
-interface SwiperEvents extends HistoryEvents {}
-interface SwiperEvents extends KeyboardEvents {}
-interface SwiperEvents extends LazyEvents {}
-interface SwiperEvents extends MousewheelEvents {}
-interface SwiperEvents extends NavigationEvents {}
-interface SwiperEvents extends PaginationEvents {}
-interface SwiperEvents extends ParallaxEvents {}
-interface SwiperEvents extends ScrollbarEvents {}
-interface SwiperEvents extends ThumbsEvents {}
-interface SwiperEvents extends VirtualEvents {}
-interface SwiperEvents extends ZoomEvents {}
-interface SwiperEvents extends FreeModeEvents {}
diff --git a/resources/web/guide/swiper/types/swiper-options.d.ts b/resources/web/guide/swiper/types/swiper-options.d.ts
deleted file mode 100644
index b8b49027d5..0000000000
--- a/resources/web/guide/swiper/types/swiper-options.d.ts
+++ /dev/null
@@ -1,1205 +0,0 @@
-import { A11yOptions } from './modules/a11y';
-import { AutoplayOptions } from './modules/autoplay';
-import { ControllerOptions } from './modules/controller';
-import { CoverflowEffectOptions } from './modules/effect-coverflow';
-import { CubeEffectOptions } from './modules/effect-cube';
-import { FadeEffectOptions } from './modules/effect-fade';
-import { FlipEffectOptions } from './modules/effect-flip';
-import { CreativeEffectOptions } from './modules/effect-creative';
-import { CardsEffectOptions } from './modules/effect-cards';
-import { HashNavigationOptions } from './modules/hash-navigation';
-import { HistoryOptions } from './modules/history';
-import { KeyboardOptions } from './modules/keyboard';
-import { LazyOptions } from './modules/lazy';
-import { MousewheelOptions } from './modules/mousewheel';
-import { NavigationOptions } from './modules/navigation';
-import { PaginationOptions } from './modules/pagination';
-import { ParallaxOptions } from './modules/parallax';
-import { ScrollbarOptions } from './modules/scrollbar';
-import { ThumbsOptions } from './modules/thumbs';
-import { VirtualOptions } from './modules/virtual';
-import { ZoomOptions } from './modules/zoom';
-import { FreeModeOptions } from './modules/free-mode';
-import { GridOptions } from './modules/grid';
-
-import { CSSSelector, SwiperModule } from './shared';
-import { SwiperEvents } from './swiper-events';
-
-export interface SwiperOptions {
- /**
- * Array with Swiper modules
- *
- * @example
- * ```js
- * import Swiper, { Navigation, Pagination } from 'swiper';
- *
- * const swiper = new Swiper('.swiper', {
- * modules: [ Navigation, Pagination ],
- * });
- * ```
- */
- modules?: SwiperModule[];
- /**
- * Whether Swiper should be initialised automatically when you create an instance.
- * If disabled, then you need to init it manually by calling `swiper.init()`
- *
- * @default true
- */
- init?: boolean;
-
- /**
- * Whether Swiper initially enabled. When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
- *
- * @default true
- */
- enabled?: boolean;
-
- /**
- * Swiper will recalculate slides position on window resize (orientationchange)
- *
- * @default true
- */
- updateOnWindowResize?: boolean;
-
- /**
- * When enabled it will use ResizeObserver (if supported by browser) on swiper container to detect container resize (instead of watching for window resize)
- *
- * @default true
- */
- resizeObserver?: boolean;
-
- /**
- * Index number of initial slide.
- *
- * @default 0
- */
- initialSlide?: number;
-
- /**
- * Can be `'horizontal'` or `'vertical'` (for vertical slider).
- *
- * @default 'horizontal'
- */
- direction?: 'horizontal' | 'vertical';
-
- /**
- * Duration of transition between slides (in ms)
- *
- * @default 300
- */
- speed?: number;
-
- /**
- * Enabled this option and plugin will set width/height on swiper wrapper equal to total size of all slides.
- * Mostly should be used as compatibility fallback option for browser that don't support flexbox layout well
- *
- * @default false
- */
- setWrapperSize?: boolean;
-
- /**
- * Enabled this option and swiper will be operated as usual except it will not move, real translate values on wrapper will not be set.
- * Useful when you may need to create custom slide transition
- *
- * @default false
- */
- virtualTranslate?: boolean;
-
- /**
- * Swiper width (in px). Parameter allows to force Swiper width.
- * Useful only if you initialize Swiper when it is hidden and in SSR and Test environments for correct Swiper initialization
- *
- * @default null
- *
- * @note Setting this parameter will make Swiper not responsive
- */
- width?: number | null;
-
- /**
- * Swiper height (in px). Parameter allows to force Swiper height.
- * Useful only if you initialize Swiper when it is hidden and in SSR and Test environments for correct Swiper initialization
- *
- * @default null
- *
- * @note Setting this parameter will make Swiper not responsive
- */
- height?: number | null;
-
- /**
- * Set to `true` and slider wrapper will adapt its height to the height of the currently active slide
- *
- * @default false
- */
- autoHeight?: boolean;
-
- /**
- * Set to `true` to round values of slides width and height to prevent blurry texts on usual
- * resolution screens (if you have such)
- *
- * @default false
- */
- roundLengths?: boolean;
-
- /**
- * Set to `true` on Swiper for correct touch events interception. Use only on
- * swipers that use same direction as the parent one
- *
- * @default false
- */
- nested?: boolean;
-
- /**
- * When enabled Swiper will automatically wrap slides with swiper-wrapper element,
- * and will create required elements for navigation, pagination and scrollbar
- * they are enabled (with their respective params object or with boolean `true`))
- *
- * @default false
- */
- createElements?: boolean;
-
- /**
- * CSS selector for focusable elements. Swiping will be disabled on such elements if they are "focused"
- *
- * @default 'input, select, option, textarea, button, video, label'
- */
- focusableElements?: string;
-
- /**
- * If enabled (by default) and navigation elements' parameters passed as a string (like `".pagination"`)
- * then Swiper will look for such elements through child elements first.
- * Applies for pagination, prev/next buttons and scrollbar elements
- *
- * @default true
- */
- uniqueNavElements?: boolean;
-
- /**
- * Transition effect. Can be `'slide'`, `'fade'`, `'cube'`, `'coverflow'`, `'flip'` or `'creative'`
- *
- * @default 'slide'
- */
- effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | 'creative' | 'cards';
-
- /**
- * Fire Transition/SlideChange/Start/End events on swiper initialization.
- * Such events will be fired on initialization in case of your initialSlide is not 0, or you use loop mode
- *
- * @default true
- */
- runCallbacksOnInit?: boolean;
-
- /**
- * When enabled Swiper will be disabled and hide navigation buttons on
- * case there are not enough slides for sliding.
- *
- * @default true
- */
- watchOverflow?: boolean;
-
- /**
- * userAgent string. Required for browser/device detection when rendered on server-side
- *
- * @default null
- */
- userAgent?: string | null;
-
- /**
- * Required for active slide detection when rendered on server-side and enabled history
- *
- * @default null
- */
- url?: string | null;
-
- /**
- * Register event handlers
- */
- on?: {
- [event in keyof SwiperEvents]?: SwiperEvents[event];
- };
-
- /**
- * Add event listener that will be fired on all events
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * onAny(eventName, ...args) {
- * console.log('Event: ', eventName);
- * console.log('Event data: ', args);
- * }
- * });
- * ```
- */
- onAny?(handler: (eventName: string, ...args: any[]) => void): void;
-
- /**
- * When enabled it will use modern CSS Scroll Snap API.
- * It doesn't support all of Swiper's features, but potentially should bring a much better performance in simple configurations.
- *
- * This is what is not supported when it is enabled:
- *
- * - Cube and Cards effects
- * - `speed` parameter may not have no effect
- * - All transition start/end related events (use `slideChange` instead)
- * - `slidesPerGroup` has limited support
- * - `simulateTouch` doesn't have effect and "dragging" with mouse doesn't work
- * - `resistance` doesn't have any effect
- * - `allowSlidePrev/Next`
- * - `swipeHandler`
- * - `freeMode` and all relevant features
- *
- * @default false
- */
- cssMode?: boolean;
-
- // Slides grid
-
- /**
- * Distance between slides in px.
- *
- * @default 0
- *
- * @note If you use "margin" css property to the elements which go into Swiper in which you pass "spaceBetween" into, navigation might not work property.
- */
- spaceBetween?: number;
-
- /**
- * Number of slides per view (slides visible at the same time on slider's container).
- * @note If you use it with "auto" value and along with `loop: true` then you need to specify `loopedSlides` parameter with amount of slides to loop (duplicate)
- * @note `slidesPerView: 'auto'` is currently not compatible with multirow mode, when `grid.rows` > 1
- *
- * @default 1
- */
- slidesPerView?: number | 'auto';
-
- /**
- * Set numbers of slides to define and enable group sliding. Useful to use with slidesPerView > 1
- *
- * @default 1
- */
- slidesPerGroup?: number;
-
- /**
- * The parameter works in the following way: If `slidesPerGroupSkip` equals `0` (default), no slides are excluded from grouping, and the resulting behaviour is the same as without this change.
- *
- * If `slidesPerGroupSkip` is equal or greater than `1` the first X slides are treated as single groups, whereas all following slides are grouped by the `slidesPerGroup` value.
- *
- * @default 0
- */
- slidesPerGroupSkip?: number;
-
- /**
- * This param intended to be used only with `slidesPerView: 'auto'` and `slidesPerGroup: 1`. When enabled, it will skip all slides in view on `.slideNext()` & `.slidePrev()` methods calls, on Navigation "buttons" clicks and in autoplay.
- *
- * @default false
- */
- slidesPerGroupAuto?: boolean;
-
- /**
- * If `true`, then active slide will be centered, not always on the left side.
- *
- * @default false
- */
- centeredSlides?: boolean;
-
- /**
- * If `true`, then active slide will be centered without adding gaps at the beginning and end of slider.
- * Required `centeredSlides: true`. Not intended to be used with `loop` or `pagination`
- *
- * @default false
- */
- centeredSlidesBounds?: boolean;
-
- /**
- * Add (in px) additional slide offset in the beginning of the container (before all slides)
- *
- * @default 0
- */
- slidesOffsetBefore?: number;
-
- /**
- * Add (in px) additional slide offset in the end of the container (after all slides)
- *
- * @default 0
- */
- slidesOffsetAfter?: number;
-
- /**
- * Normalize slide index.
- *
- * @default true
- */
- normalizeSlideIndex?: boolean;
-
- /**
- * When enabled it center slides if the amount of slides less than `slidesPerView`. Not intended to be used `loop` mode and `grid.rows`
- *
- * @default false
- */
- centerInsufficientSlides?: boolean;
-
- /**
- * This option may a little improve desktop usability. If `true`, user will see the "grab" cursor when hover on Swiper
- *
- * @default false
- */
- grabCursor?: boolean;
-
- /**
- * Target element to listen touch events on. Can be `'container'` (to listen for touch events on swiper) or `'wrapper'`
- * (to listen for touch events on swiper-wrapper)
- *
- * @default 'wrapper'
- */
- touchEventsTarget?: 'container' | 'wrapper';
-
- /**
- * Touch ratio
- *
- * @default 1
- */
- touchRatio?: number;
-
- /**
- * Allowable angle (in degrees) to trigger touch move
- *
- * @default 45
- */
- touchAngle?: number;
-
- /**
- * If `true`, Swiper will accept mouse events like touch events (click and drag to change slides)
- *
- * @default true
- */
- simulateTouch?: boolean;
-
- /**
- * Set to `false` if you want to disable short swipes
- *
- * @default true
- */
- shortSwipes?: boolean;
-
- /**
- * Set to `false` if you want to disable long swipes
- *
- * @default true
- */
- longSwipes?: boolean;
-
- /**
- * Ratio to trigger swipe to next/previous slide during long swipes
- *
- * @default 0.5
- */
- longSwipesRatio?: number;
-
- /**
- * Minimal duration (in ms) to trigger swipe to next/previous slide during long swipes
- *
- * @default 300
- */
- longSwipesMs?: number;
-
- /**
- * If disabled, then slider will be animated only when you release it, it will not move while you hold your finger on it
- *
- * @default true
- */
- followFinger?: boolean;
-
- /**
- * If `false`, then the only way to switch the slide is use of external API functions like slidePrev or slideNext
- *
- * @default true
- */
- allowTouchMove?: boolean;
-
- /**
- * Threshold value in px. If "touch distance" will be lower than this value then swiper will not move
- *
- * @default 0
- */
- threshold?: number;
-
- /**
- * If disabled, `touchstart` (`pointerdown`) event won't be prevented
- *
- * @default true
- */
- touchStartPreventDefault?: boolean;
-
- /**
- * Force to always prevent default for `touchstart` (`pointerdown`) event
- *
- * @default false
- */
- touchStartForcePreventDefault?: boolean;
-
- /**
- * If enabled, then propagation of "touchmove" will be stopped
- *
- * @default false
- */
- touchMoveStopPropagation?: boolean;
-
- /**
- * Enable to release Swiper events for swipe-back work in app. If set to `'prevent'` then it will prevent system swipe-back navigation instead
- *
- * @default false
- */
- edgeSwipeDetection?: boolean | string;
-
- /**
- * Area (in px) from left edge of the screen to release touch events for swipe-back in app
- *
- * @default 20
- */
- edgeSwipeThreshold?: number;
-
- /**
- * Enable to release touch events on slider edge position (beginning, end) to allow for further page scrolling
- *
- * @default false
- */
- touchReleaseOnEdges?: boolean;
-
- /**
- * Passive event listeners will be used by default where possible to improve scrolling performance on mobile devices.
- * But if you need to use `e.preventDefault` and you have conflict with it, then you should disable this parameter
- *
- * @default true
- */
- passiveListeners?: boolean;
-
- // Touch Resistance
-
- /**
- * Set to `false` if you want to disable resistant bounds
- *
- * @default true
- */
- resistance?: boolean;
-
- /**
- * This option allows you to control resistance ratio
- *
- * @default 0.85
- */
- resistanceRatio?: number;
-
- // Swiping / No swiping
- /**
- * When enabled it won't allow to change slides by swiping or navigation/pagination buttons during transition
- *
- * @default false
- */
- preventInteractionOnTransition?: boolean;
-
- /**
- * Set to `false` to disable swiping to previous slide direction (to left or top)
- *
- * @default true
- */
- allowSlidePrev?: boolean;
-
- /**
- * Set to `false` to disable swiping to next slide direction (to right or bottom)
- *
- * @default true
- */
- allowSlideNext?: boolean;
-
- /**
- * Enable/disable swiping on elements matched to class specified in `noSwipingClass`
- *
- * @default true
- */
- noSwiping?: boolean;
-
- /**
- * Specify `noSwiping`'s element css class
- *
- * @default 'swiper-no-swiping'
- */
- noSwipingClass?: string;
-
- /**
- * Can be used instead of `noSwipingClass` to specify elements to disable swiping on.
- * For example `'input'` will disable swiping on all inputs
- *
- * @default
- */
- noSwipingSelector?: string;
-
- /**
- * String with CSS selector or HTML element of the container with pagination that will work as only available handler for swiping
- *
- * @default null
- */
- swipeHandler?: CSSSelector | HTMLElement | null;
-
- // Clicks
- /**
- * Set to `true` to prevent accidental unwanted clicks on links during swiping
- *
- * @default true
- */
- preventClicks?: boolean;
-
- /**
- * Set to `true` to stop clicks event propagation on links during swiping
- *
- * @default true
- */
- preventClicksPropagation?: boolean;
-
- /**
- * Set to `true` and click on any slide will produce transition to this slide
- *
- * @default false
- */
- slideToClickedSlide?: boolean;
-
- // Progress
- /**
- * Enable this feature to calculate each slides progress and visibility (slides in viewport will have additional visible class)
- *
- * @default false
- */
- watchSlidesProgress?: boolean;
-
- // Images
- /**
- * When enabled Swiper will force to load all images
- *
- * @default true
- */
- preloadImages?: boolean;
-
- /**
- * When enabled Swiper will be reinitialized after all inner images (
tags) are loaded. Required `preloadImages: true`
- *
- * @default true
- */
- updateOnImagesReady?: boolean;
-
- /**
- * Set to `true` to enable continuous loop mode
- *
- * Because of nature of how the loop mode works, it will add duplicated slides. Such duplicated slides will have additional classes:
- * - `swiper-slide-duplicate` - represents duplicated slide
- * - `swiper-slide-duplicate-active` - represents slide duplicated to the currently active slide
- * - `swiper-slide-duplicate-next` - represents slide duplicated to the slide next to active
- * - `swiper-slide-duplicate-prev` - represents slide duplicated to the slide previous to active
- *
- * @default false
- *
- * @note If you use it along with `slidesPerView: 'auto'` then you need to specify `loopedSlides` parameter with amount of slides to loop (duplicate)
- */
- loop?: boolean;
-
- /**
- * Addition number of slides that will be cloned after creating of loop
- *
- * @default 0
- */
- loopAdditionalSlides?: number;
-
- /**
- * If you use `slidesPerView:'auto'` with loop mode you should tell to Swiper how many slides it should loop (duplicate) using this parameter
- *
- * @default null
- */
- loopedSlides?: number | null;
-
- /**
- * Enable and loop mode will fill groups with insufficient number of slides with blank slides. Good to be used with `slidesPerGroup` parameter
- *
- * @default false
- */
- loopFillGroupWithBlank?: boolean;
- /**
- * When enabled it prevents Swiper slide prev/next transitions when transitions is already in progress (has effect when `loop` enabled)
- *
- * @default true
- */
- loopPreventsSlide?: boolean;
-
- /**
- * Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which are not required different layout and logic, like `slidesPerView`, `slidesPerGroup`, `spaceBetween`, `grid.rows`. Such parameters like `loop` and `effect` won't work
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * // Default parameters
- * slidesPerView: 1,
- * spaceBetween: 10,
- * // Responsive breakpoints
- * breakpoints: {
- * // when window width is >= 320px
- * 320: {
- * slidesPerView: 2,
- * spaceBetween: 20
- * },
- * // when window width is >= 480px
- * 480: {
- * slidesPerView: 3,
- * spaceBetween: 30
- * },
- * // when window width is >= 640px
- * 640: {
- * slidesPerView: 4,
- * spaceBetween: 40
- * }
- * }
- * })
- * ```
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * slidesPerView: 1,
- * spaceBetween: 10,
- * // using "ratio" endpoints
- * breakpoints: {
- * '@0.75': {
- * slidesPerView: 2,
- * spaceBetween: 20,
- * },
- * '@1.00': {
- * slidesPerView: 3,
- * spaceBetween: 40,
- * },
- * '@1.50': {
- * slidesPerView: 4,
- * spaceBetween: 50,
- * },
- * }
- * });
- * ```
- */
- breakpoints?: {
- [width: number]: SwiperOptions;
- [ratio: string]: SwiperOptions;
- };
-
- /**
- * Base for breakpoints (beta). Can be `window` or `container`. If set to `window` (by default) then breakpoint keys mean window width. If set to `container` then breakpoint keys treated as swiper container width
- *
- * @default 'window'
- *
- * @note Currently in beta and not supported by Swiper Angular, React, Svelte and Vue components
- */
- breakpointsBase?: string;
-
- // Observer
- /**
- * Set to `true` to enable Mutation Observer on Swiper and its elements. In this case Swiper will be updated (reinitialized) each time if you change its style (like hide/show) or modify its child elements (like adding/removing slides)
- *
- * @default false
- */
- observer?: boolean;
- /**
- * Set to `true` if you also need to watch Mutations for Swiper slide children elements
- *
- * @default false
- */
- observeSlideChildren?: boolean;
- /**
- * Set to `true` if you also need to watch Mutations for Swiper parent elements
- *
- * @default false
- */
- observeParents?: boolean;
-
- // Namespace
- /**
- * The beginning of the modifier CSS class that can be added to swiper container depending on different parameters
- *
- * @default 'swiper-'
- */
- containerModifierClass?: string;
-
- /**
- * CSS class name of slide
- *
- * @default 'swiper-slide'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue components
- */
- slideClass?: string;
-
- /**
- * CSS class name of currently active slide
- *
- * @default 'swiper-slide-active'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue components
- */
- slideActiveClass?: string;
-
- /**
- * CSS class name of duplicated slide which represents the currently active slide
- *
- * @default 'swiper-slide-duplicate-active'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue components
- */
- slideDuplicateActiveClass?: string;
-
- /**
- * CSS class name of currently visible slide
- *
- * @default 'swiper-slide-visible'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideVisibleClass?: string;
-
- /**
- * CSS class name of slide duplicated by loop mode
- *
- * @default 'swiper-slide-duplicate'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideDuplicateClass?: string;
-
- /**
- * CSS class name of slide which is right after currently active slide
- *
- * @default 'swiper-slide-next'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideNextClass?: string;
-
- /**
- * CSS class name of duplicated slide which represents the slide next to active slide
- *
- * @default 'swiper-slide-duplicate-next'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideDuplicateNextClass?: string;
-
- /**
- * CSS class name of slide which is right before currently active slide
- *
- * @default 'swiper-slide-prev'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slidePrevClass?: string;
-
- /**
- * CSS class name of duplicated slide which represents the slide previous to active slide
- *
- * @default 'swiper-slide-duplicate-prev'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideDuplicatePrevClass?: string;
-
- /**
- * CSS class name of blank slide append to fill groups in loop mode when `loopFillGroupWithBlank` is also enabled
- *
- * @default 'swiper-slide-invisible-blank'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- */
- slideBlankClass?: string;
-
- /**
- * CSS class name of slides' wrapper
- *
- * @default 'swiper-wrapper'
- *
- * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
- *
- * @note Not supported in Swiper Angular/React/Svelte/Vue
- *
- */
- wrapperClass?: string;
-
- /**
- * Object with a11y parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * a11y: {
- * prevSlideMessage: 'Previous slide',
- * nextSlideMessage: 'Next slide',
- * },
- * });
- * ```
- */
- a11y?: A11yOptions;
-
- /**
- * Object with autoplay parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * autoplay: {
- * delay: 5000,
- * },
- *});
- * ```
- */
- autoplay?: AutoplayOptions | boolean;
-
- /**
- * Object with controller parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * controller: {
- * inverse: true,
- * },
- * });
- * ```
- */
- controller?: ControllerOptions;
-
- /**
- * Object with Coverflow-effect parameters.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'coverflow',
- * coverflowEffect: {
- * rotate: 30,
- * slideShadows: false,
- * },
- * });
- * ```
- */
- coverflowEffect?: CoverflowEffectOptions;
-
- /**
- * Object with Cube-effect parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'cube',
- * cubeEffect: {
- * slideShadows: false,
- * },
- * });
- * ```
- */
- cubeEffect?: CubeEffectOptions;
-
- /**
- * Object with Fade-effect parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'fade',
- * fadeEffect: {
- * crossFade: true
- * },
- * });
- * ```
- */
- fadeEffect?: FadeEffectOptions;
-
- /**
- * Object with Flip-effect parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'flip',
- * flipEffect: {
- * slideShadows: false,
- * },
- * });
- * ```
- */
- flipEffect?: FlipEffectOptions;
-
- /**
- * Object with Creative-effect parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'creative',
- * creativeEffect: {
- * prev: {
- * // will set `translateZ(-400px)` on previous slides
- * translate: [0, 0, -400],
- * },
- * next: {
- * // will set `translateX(100%)` on next slides
- * translate: ['100%', 0, 0],
- * },
- * },
- * });
- * ```
- */
- creativeEffect?: CreativeEffectOptions;
-
- /**
- * Object with Cards-effect parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * effect: 'cards',
- * cardsEffect: {
- * // ...
- * },
- * });
- * ```
- */
- cardsEffect?: CardsEffectOptions;
-
- /**
- * Enables hash url navigation to for slides.
- * Object with hash navigation parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * hashNavigation: {
- * replaceState: true,
- * },
- * });
- * ```
- */
- hashNavigation?: HashNavigationOptions | boolean;
-
- /**
- * Enables history push state where every slide will have its own url. In this parameter you have to specify main slides url like `"slides"` and specify every slide url using `data-history` attribute.
- *
- * Object with history navigation parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * history: {
- * replaceState: true,
- * },
- * });
- * ```
- *
- * @example
- * ```html
- *
- *
- * ```
- */
- history?: HistoryOptions | boolean;
-
- /**
- * Enables navigation through slides using keyboard. Object with keyboard parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * keyboard: {
- * enabled: true,
- * onlyInViewport: false,
- * },
- * });
- * ```
- */
- keyboard?: KeyboardOptions | boolean;
-
- /**
- * Enables images lazy loading. Object with lazy loading parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * lazy: {
- * loadPrevNext: true,
- * },
- * });
- * ```
- */
- lazy?: LazyOptions | boolean;
-
- /**
- * Enables navigation through slides using mouse wheel. Object with mousewheel parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * mousewheel: {
- * invert: true,
- * },
- * });
- * ```
- */
- mousewheel?: MousewheelOptions | boolean;
-
- /**
- * Object with navigation parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * navigation: {
- * nextEl: '.swiper-button-next',
- * prevEl: '.swiper-button-prev',
- * },
- * });
- * ```
- */
- navigation?: NavigationOptions | boolean;
-
- /**
- * Object with pagination parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * pagination: {
- * el: '.swiper-pagination',
- * type: 'bullets',
- * },
- * });
- * ```
- */
- pagination?: PaginationOptions | boolean;
-
- /**
- * Object with parallax parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * parallax: true,
- * });
- * ```
- */
- parallax?: ParallaxOptions | boolean;
-
- /**
- * Object with scrollbar parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * scrollbar: {
- * el: '.swiper-scrollbar',
- * draggable: true,
- * },
- * });
- * ```
- */
- scrollbar?: ScrollbarOptions | boolean;
-
- /**
- * Object with thumbs component parameters
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * ...
- * thumbs: {
- * swiper: thumbsSwiper
- * }
- * });
- * ```
- */
- thumbs?: ThumbsOptions;
-
- /**
- * Enables virtual slides functionality. Object with virtual slides parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * virtual: {
- * slides: ['Slide 1', 'Slide 2', 'Slide 3', 'Slide 4', 'Slide 5'],
- * },
- * });
- * ```
- */
- virtual?: VirtualOptions | boolean;
-
- /**
- * Enables zooming functionality. Object with zoom parameters or boolean `true` to enable with default settings
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * zoom: {
- * maxRatio: 5,
- * },
- * });
- * ```
- */
- zoom?: ZoomOptions | boolean;
-
- /**
- * Enables free mode functionality. Object with free mode parameters or boolean `true` to enable with default settings.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * freeMode: true,
- * });
- *
- * const swiper = new Swiper('.swiper', {
- * freeMode: {
- * enabled: true,
- * sticky: true,
- * },
- * });
- * ```
- */
- freeMode?: FreeModeOptions | boolean;
-
- /**
- * Object with grid parameters to enable "multirow" slider.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * grid: {
- * rows: 2,
- * },
- * });
- * ```
- */
- grid?: GridOptions;
-
- /**
- * !INTERNAL When enabled will emit "_containerClasses" and "_slideClass" events
- */
- _emitClasses?: boolean;
-}
diff --git a/resources/web/guide/swiper/vue/get-changed-params.js b/resources/web/guide/swiper/vue/get-changed-params.js
deleted file mode 100644
index 22dacd31ef..0000000000
--- a/resources/web/guide/swiper/vue/get-changed-params.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import { paramsList } from './params-list.js';
-import { isObject } from './utils.js';
-
-function getChangedParams(swiperParams, oldParams, children, oldChildren) {
- const keys = [];
- if (!oldParams) return keys;
-
- const addKey = key => {
- if (keys.indexOf(key) < 0) keys.push(key);
- };
-
- const oldChildrenKeys = oldChildren.map(child => child.props && child.props.key);
- const childrenKeys = children.map(child => child.props && child.props.key);
- if (oldChildrenKeys.join('') !== childrenKeys.join('')) keys.push('children');
- if (oldChildren.length !== children.length) keys.push('children');
- const watchParams = paramsList.filter(key => key[0] === '_').map(key => key.replace(/_/, ''));
- watchParams.forEach(key => {
- if (key in swiperParams && key in oldParams) {
- if (isObject(swiperParams[key]) && isObject(oldParams[key])) {
- const newKeys = Object.keys(swiperParams[key]);
- const oldKeys = Object.keys(oldParams[key]);
-
- if (newKeys.length !== oldKeys.length) {
- addKey(key);
- } else {
- newKeys.forEach(newKey => {
- if (swiperParams[key][newKey] !== oldParams[key][newKey]) {
- addKey(key);
- }
- });
- oldKeys.forEach(oldKey => {
- if (swiperParams[key][oldKey] !== oldParams[key][oldKey]) addKey(key);
- });
- }
- } else if (swiperParams[key] !== oldParams[key]) {
- addKey(key);
- }
- }
- });
- return keys;
-}
-
-export { getChangedParams };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/get-children.js b/resources/web/guide/swiper/vue/get-children.js
deleted file mode 100644
index f09d3874ef..0000000000
--- a/resources/web/guide/swiper/vue/get-children.js
+++ /dev/null
@@ -1,41 +0,0 @@
-function getChildren(originalSlots = {}, slidesRef, oldSlidesRef) {
- const slides = [];
- const slots = {
- 'container-start': [],
- 'container-end': [],
- 'wrapper-start': [],
- 'wrapper-end': []
- };
-
- const getSlidesFromElements = (els, slotName) => {
- if (!Array.isArray(els)) {
- return;
- }
-
- els.forEach(vnode => {
- const isFragment = typeof vnode.type === 'symbol';
- if (slotName === 'default') slotName = 'container-end';
-
- if (isFragment && vnode.children) {
- getSlidesFromElements(vnode.children, 'default');
- } else if (vnode.type && (vnode.type.name === 'SwiperSlide' || vnode.type.name === 'AsyncComponentWrapper')) {
- slides.push(vnode);
- } else if (slots[slotName]) {
- slots[slotName].push(vnode);
- }
- });
- };
-
- Object.keys(originalSlots).forEach(slotName => {
- const els = originalSlots[slotName]();
- getSlidesFromElements(els, slotName);
- });
- oldSlidesRef.value = slidesRef.value;
- slidesRef.value = slides;
- return {
- slides,
- slots
- };
-}
-
-export { getChildren };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/get-params.js b/resources/web/guide/swiper/vue/get-params.js
deleted file mode 100644
index 118f72fda9..0000000000
--- a/resources/web/guide/swiper/vue/get-params.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import Swiper from 'swiper';
-import { isObject, extend } from './utils.js';
-import { paramsList } from './params-list.js';
-
-function getParams(obj = {}) {
- const params = {
- on: {}
- };
- const passedParams = {};
- extend(params, Swiper.defaults);
- extend(params, Swiper.extendedDefaults);
- params._emitClasses = true;
- params.init = false;
- const rest = {};
- const allowedParams = paramsList.map(key => key.replace(/_/, '')); // Prevent empty Object.keys(obj) array on ios.
-
- const plainObj = Object.assign({}, obj);
- Object.keys(plainObj).forEach(key => {
- if (typeof obj[key] === 'undefined') return;
-
- if (allowedParams.indexOf(key) >= 0) {
- if (isObject(obj[key])) {
- params[key] = {};
- passedParams[key] = {};
- extend(params[key], obj[key]);
- extend(passedParams[key], obj[key]);
- } else {
- params[key] = obj[key];
- passedParams[key] = obj[key];
- }
- } else if (key.search(/on[A-Z]/) === 0 && typeof obj[key] === 'function') {
- params.on[`${key[2].toLowerCase()}${key.substr(3)}`] = obj[key];
- } else {
- rest[key] = obj[key];
- }
- });
- ['navigation', 'pagination', 'scrollbar'].forEach(key => {
- if (params[key] === true) params[key] = {};
- if (params[key] === false) delete params[key];
- });
- return {
- params,
- passedParams,
- rest
- };
-}
-
-export { getParams };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/init-swiper.js b/resources/web/guide/swiper/vue/init-swiper.js
deleted file mode 100644
index aaf5568971..0000000000
--- a/resources/web/guide/swiper/vue/init-swiper.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import Swiper from 'swiper';
-import { needsNavigation, needsPagination, needsScrollbar } from './utils.js';
-
-function initSwiper(swiperParams) {
- return new Swiper(swiperParams);
-}
-
-function mountSwiper({
- el,
- nextEl,
- prevEl,
- paginationEl,
- scrollbarEl,
- swiper
-}, swiperParams) {
- if (needsNavigation(swiperParams) && nextEl && prevEl) {
- swiper.params.navigation.nextEl = nextEl;
- swiper.originalParams.navigation.nextEl = nextEl;
- swiper.params.navigation.prevEl = prevEl;
- swiper.originalParams.navigation.prevEl = prevEl;
- }
-
- if (needsPagination(swiperParams) && paginationEl) {
- swiper.params.pagination.el = paginationEl;
- swiper.originalParams.pagination.el = paginationEl;
- }
-
- if (needsScrollbar(swiperParams) && scrollbarEl) {
- swiper.params.scrollbar.el = scrollbarEl;
- swiper.originalParams.scrollbar.el = scrollbarEl;
- }
-
- swiper.init(el);
-}
-
-export { initSwiper, mountSwiper };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/loop.js b/resources/web/guide/swiper/vue/loop.js
deleted file mode 100644
index 591a07a199..0000000000
--- a/resources/web/guide/swiper/vue/loop.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import { h } from 'vue';
-import Swiper from 'swiper';
-
-function calcLoopedSlides(slides, swiperParams) {
- let slidesPerViewParams = swiperParams.slidesPerView;
-
- if (swiperParams.breakpoints) {
- const breakpoint = Swiper.prototype.getBreakpoint(swiperParams.breakpoints);
- const breakpointOnlyParams = breakpoint in swiperParams.breakpoints ? swiperParams.breakpoints[breakpoint] : undefined;
-
- if (breakpointOnlyParams && breakpointOnlyParams.slidesPerView) {
- slidesPerViewParams = breakpointOnlyParams.slidesPerView;
- }
- }
-
- let loopedSlides = Math.ceil(parseFloat(swiperParams.loopedSlides || slidesPerViewParams, 10));
- loopedSlides += swiperParams.loopAdditionalSlides;
-
- if (loopedSlides > slides.length) {
- loopedSlides = slides.length;
- }
-
- return loopedSlides;
-}
-
-function renderLoop(swiperRef, slides, swiperParams) {
- const modifiedSlides = slides.map((child, index) => {
- if (!child.props) child.props = {};
- child.props.swiperRef = swiperRef;
- child.props['data-swiper-slide-index'] = index;
- return child;
- });
-
- function duplicateSlide(child, index, position) {
- if (!child.props) child.props = {};
- return h(child.type, { ...child.props,
- key: `${child.key}-duplicate-${index}-${position}`,
- class: `${child.props.className || ''} ${swiperParams.slideDuplicateClass} ${child.props.class || ''}`
- }, child.children);
- }
-
- if (swiperParams.loopFillGroupWithBlank) {
- const blankSlidesNum = swiperParams.slidesPerGroup - modifiedSlides.length % swiperParams.slidesPerGroup;
-
- if (blankSlidesNum !== swiperParams.slidesPerGroup) {
- for (let i = 0; i < blankSlidesNum; i += 1) {
- const blankSlide = h('div', {
- class: `${swiperParams.slideClass} ${swiperParams.slideBlankClass}`
- });
- modifiedSlides.push(blankSlide);
- }
- }
- }
-
- if (swiperParams.slidesPerView === 'auto' && !swiperParams.loopedSlides) {
- swiperParams.loopedSlides = modifiedSlides.length;
- }
-
- const loopedSlides = calcLoopedSlides(modifiedSlides, swiperParams);
- const prependSlides = [];
- const appendSlides = [];
- modifiedSlides.forEach((child, index) => {
- if (index < loopedSlides) {
- appendSlides.push(duplicateSlide(child, index, 'prepend'));
- }
-
- if (index < modifiedSlides.length && index >= modifiedSlides.length - loopedSlides) {
- prependSlides.push(duplicateSlide(child, index, 'append'));
- }
- });
-
- if (swiperRef.value) {
- swiperRef.value.loopedSlides = loopedSlides;
- }
-
- return [...prependSlides, ...modifiedSlides, ...appendSlides];
-}
-
-export { calcLoopedSlides, renderLoop };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/params-list.js b/resources/web/guide/swiper/vue/params-list.js
deleted file mode 100644
index 2d25f8f2d2..0000000000
--- a/resources/web/guide/swiper/vue/params-list.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/* underscore in name -> watch for changes */
-const paramsList = ['modules', 'init', '_direction', 'touchEventsTarget', 'initialSlide', '_speed', 'cssMode', 'updateOnWindowResize', 'resizeObserver', 'nested', 'focusableElements', '_enabled', '_width', '_height', 'preventInteractionOnTransition', 'userAgent', 'url', '_edgeSwipeDetection', '_edgeSwipeThreshold', '_freeMode', '_autoHeight', 'setWrapperSize', 'virtualTranslate', '_effect', 'breakpoints', '_spaceBetween', '_slidesPerView', '_grid', '_slidesPerGroup', '_slidesPerGroupSkip', '_slidesPerGroupAuto', '_centeredSlides', '_centeredSlidesBounds', '_slidesOffsetBefore', '_slidesOffsetAfter', 'normalizeSlideIndex', '_centerInsufficientSlides', '_watchOverflow', 'roundLengths', 'touchRatio', 'touchAngle', 'simulateTouch', '_shortSwipes', '_longSwipes', 'longSwipesRatio', 'longSwipesMs', '_followFinger', 'allowTouchMove', '_threshold', 'touchMoveStopPropagation', 'touchStartPreventDefault', 'touchStartForcePreventDefault', 'touchReleaseOnEdges', 'uniqueNavElements', '_resistance', '_resistanceRatio', '_watchSlidesProgress', '_grabCursor', 'preventClicks', 'preventClicksPropagation', '_slideToClickedSlide', '_preloadImages', 'updateOnImagesReady', '_loop', '_loopAdditionalSlides', '_loopedSlides', '_loopFillGroupWithBlank', 'loopPreventsSlide', '_allowSlidePrev', '_allowSlideNext', '_swipeHandler', '_noSwiping', 'noSwipingClass', 'noSwipingSelector', 'passiveListeners', 'containerModifierClass', 'slideClass', 'slideBlankClass', 'slideActiveClass', 'slideDuplicateActiveClass', 'slideVisibleClass', 'slideDuplicateClass', 'slideNextClass', 'slideDuplicateNextClass', 'slidePrevClass', 'slideDuplicatePrevClass', 'wrapperClass', 'runCallbacksOnInit', 'observer', 'observeParents', 'observeSlideChildren', // modules
-'a11y', 'autoplay', '_controller', 'coverflowEffect', 'cubeEffect', 'fadeEffect', 'flipEffect', 'creativeEffect', 'cardsEffect', 'hashNavigation', 'history', 'keyboard', 'lazy', 'mousewheel', '_navigation', '_pagination', 'parallax', '_scrollbar', '_thumbs', 'virtual', 'zoom'];
-export { paramsList };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/swiper-slide.js b/resources/web/guide/swiper/vue/swiper-slide.js
deleted file mode 100644
index a9e9e95f3d..0000000000
--- a/resources/web/guide/swiper/vue/swiper-slide.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import { h, ref, onMounted, onUpdated, onBeforeUpdate, computed, onBeforeUnmount } from 'vue';
-import { uniqueClasses } from './utils.js';
-const SwiperSlide = {
- name: 'SwiperSlide',
- props: {
- tag: {
- type: String,
- default: 'div'
- },
- swiperRef: {
- type: Object,
- required: false
- },
- zoom: {
- type: Boolean,
- default: undefined
- },
- virtualIndex: {
- type: [String, Number],
- default: undefined
- }
- },
-
- setup(props, {
- slots
- }) {
- let eventAttached = false;
- const {
- swiperRef
- } = props;
- const slideElRef = ref(null);
- const slideClasses = ref('swiper-slide');
-
- function updateClasses(swiper, el, classNames) {
- if (el === slideElRef.value) {
- slideClasses.value = classNames;
- }
- }
-
- onMounted(() => {
- if (!swiperRef.value) return;
- swiperRef.value.on('_slideClass', updateClasses);
- eventAttached = true;
- });
- onBeforeUpdate(() => {
- if (eventAttached || !swiperRef || !swiperRef.value) return;
- swiperRef.value.on('_slideClass', updateClasses);
- eventAttached = true;
- });
- onUpdated(() => {
- if (!slideElRef.value || !swiperRef || !swiperRef.value) return;
-
- if (swiperRef.value.destroyed) {
- if (slideClasses.value !== 'swiper-slide') {
- slideClasses.value = 'swiper-slide';
- }
- }
- });
- onBeforeUnmount(() => {
- if (!swiperRef || !swiperRef.value) return;
- swiperRef.value.off('_slideClass', updateClasses);
- });
- const slideData = computed(() => ({
- isActive: slideClasses.value.indexOf('swiper-slide-active') >= 0 || slideClasses.value.indexOf('swiper-slide-duplicate-active') >= 0,
- isVisible: slideClasses.value.indexOf('swiper-slide-visible') >= 0,
- isDuplicate: slideClasses.value.indexOf('swiper-slide-duplicate') >= 0,
- isPrev: slideClasses.value.indexOf('swiper-slide-prev') >= 0 || slideClasses.value.indexOf('swiper-slide-duplicate-prev') >= 0,
- isNext: slideClasses.value.indexOf('swiper-slide-next') >= 0 || slideClasses.value.indexOf('swiper-slide-duplicate-next') >= 0
- }));
- return () => {
- return h(props.tag, {
- class: uniqueClasses(`${slideClasses.value}`),
- ref: slideElRef,
- 'data-swiper-slide-index': props.virtualIndex
- }, props.zoom ? h('div', {
- class: 'swiper-zoom-container',
- 'data-swiper-zoom': typeof props.zoom === 'number' ? props.zoom : undefined
- }, slots.default && slots.default(slideData.value)) : slots.default && slots.default(slideData.value));
- };
- }
-
-};
-export { SwiperSlide };
\ No newline at end of file
diff --git a/resources/web/guide/swiper/vue/swiper-vue.d.ts b/resources/web/guide/swiper/vue/swiper-vue.d.ts
deleted file mode 100644
index 9cb48917af..0000000000
--- a/resources/web/guide/swiper/vue/swiper-vue.d.ts
+++ /dev/null
@@ -1,859 +0,0 @@
-import {
- A11yOptions,
- AutoplayOptions,
- ControllerOptions,
- CoverflowEffectOptions,
- CubeEffectOptions,
- FadeEffectOptions,
- FlipEffectOptions,
- CreativeEffectOptions,
- CardsEffectOptions,
- HashNavigationOptions,
- HistoryOptions,
- KeyboardOptions,
- LazyOptions,
- MousewheelOptions,
- NavigationOptions,
- PaginationOptions,
- ParallaxOptions,
- ScrollbarOptions,
- ThumbsOptions,
- VirtualOptions,
- ZoomOptions,
- FreeModeOptions,
- GridOptions,
-} from '../types';
-import { ComponentOptionsMixin, DefineComponent, PropType } from 'vue';
-import { SwiperOptions, Swiper as SwiperClass } from '../types';
-
-declare const Swiper: DefineComponent<
- {
- tag: {
- type: StringConstructor;
- default: string;
- };
- wrapperTag: {
- type: StringConstructor;
- default: string;
- };
- modules: {
- type: ArrayConstructor;
- default: undefined;
- };
- init: {
- type: BooleanConstructor;
- default: undefined;
- };
- direction: {
- type: PropType;
- default: SwiperOptions['direction'];
- };
- touchEventsTarget: {
- type: PropType;
- default: undefined;
- };
- initialSlide: {
- type: NumberConstructor;
- default: undefined;
- };
- speed: { type: NumberConstructor; default: undefined };
- cssMode: { type: BooleanConstructor; default: undefined };
- updateOnWindowResize: {
- type: BooleanConstructor;
- default: undefined;
- };
- resizeObserver: {
- type: BooleanConstructor;
- default: undefined;
- };
- nested: { type: BooleanConstructor; default: undefined };
- focusableElements: {
- type: StringConstructor;
- default: undefined;
- };
- width: { type: NumberConstructor; default: undefined };
- height: { type: NumberConstructor; default: undefined };
- preventInteractionOnTransition: {
- type: BooleanConstructor;
- default: undefined;
- };
- userAgent: { type: StringConstructor; default: undefined };
- url: { type: StringConstructor; default: undefined };
- edgeSwipeDetection: {
- type: BooleanConstructor | StringConstructor;
- default: undefined;
- };
- edgeSwipeThreshold: {
- type: NumberConstructor;
- default: undefined;
- };
- autoHeight: {
- type: BooleanConstructor;
- default: undefined;
- };
- setWrapperSize: {
- type: BooleanConstructor;
- default: undefined;
- };
- virtualTranslate: {
- type: BooleanConstructor;
- default: undefined;
- };
- effect: {
- type: PropType;
- default: undefined;
- };
- breakpoints: {
- type: PropType;
- default: undefined;
- };
- spaceBetween: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerView: {
- type: PropType;
- default: undefined;
- };
- slidesPerGroup: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerGroupSkip: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesPerGroupAuto: {
- type: BooleanConstructor;
- default: undefined;
- };
- centeredSlides: {
- type: BooleanConstructor;
- default: undefined;
- };
- centeredSlidesBounds: {
- type: BooleanConstructor;
- default: undefined;
- };
- slidesOffsetBefore: {
- type: NumberConstructor;
- default: undefined;
- };
- slidesOffsetAfter: {
- type: NumberConstructor;
- default: undefined;
- };
- normalizeSlideIndex: {
- type: BooleanConstructor;
- default: undefined;
- };
- centerInsufficientSlides: {
- type: BooleanConstructor;
- default: undefined;
- };
- watchOverflow: {
- type: BooleanConstructor;
- default: undefined;
- };
- roundLengths: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- touchAngle: {
- type: NumberConstructor;
- default: undefined;
- };
- simulateTouch: {
- type: BooleanConstructor;
- default: undefined;
- };
- shortSwipes: {
- type: BooleanConstructor;
- default: undefined;
- };
- longSwipes: {
- type: BooleanConstructor;
- default: undefined;
- };
- longSwipesRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- longSwipesMs: {
- type: NumberConstructor;
- default: undefined;
- };
- followFinger: {
- type: BooleanConstructor;
- default: undefined;
- };
- allowTouchMove: {
- type: BooleanConstructor;
- default: undefined;
- };
- threshold: { type: NumberConstructor; default: undefined };
- touchMoveStopPropagation: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchStartPreventDefault: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchStartForcePreventDefault: {
- type: BooleanConstructor;
- default: undefined;
- };
- touchReleaseOnEdges: {
- type: BooleanConstructor;
- default: undefined;
- };
- uniqueNavElements: {
- type: BooleanConstructor;
- default: undefined;
- };
- resistance: {
- type: BooleanConstructor;
- default: undefined;
- };
- resistanceRatio: {
- type: NumberConstructor;
- default: undefined;
- };
- watchSlidesProgress: {
- type: BooleanConstructor;
- default: undefined;
- };
- grabCursor: {
- type: BooleanConstructor;
- default: undefined;
- };
- preventClicks: {
- type: BooleanConstructor;
- default: undefined;
- };
- preventClicksPropagation: {
- type: BooleanConstructor;
- default: undefined;
- };
- slideToClickedSlide: {
- type: BooleanConstructor;
- default: undefined;
- };
- preloadImages: {
- type: BooleanConstructor;
- default: undefined;
- };
- updateOnImagesReady: {
- type: BooleanConstructor;
- default: undefined;
- };
- loop: { type: BooleanConstructor; default: undefined };
- loopAdditionalSlides: {
- type: NumberConstructor;
- default: undefined;
- };
- loopedSlides: {
- type: NumberConstructor;
- default: undefined;
- };
- loopFillGroupWithBlank: {
- type: BooleanConstructor;
- default: undefined;
- };
- loopPreventsSlide: {
- type: BooleanConstructor;
- default: undefined;
- };
- allowSlidePrev: {
- type: BooleanConstructor;
- default: undefined;
- };
- allowSlideNext: {
- type: BooleanConstructor;
- default: undefined;
- };
- swipeHandler: {
- type: BooleanConstructor;
- default: undefined;
- };
- noSwiping: {
- type: BooleanConstructor;
- default: undefined;
- };
- noSwipingClass: {
- type: StringConstructor;
- default: undefined;
- };
- noSwipingSelector: {
- type: StringConstructor;
- default: undefined;
- };
- passiveListeners: {
- type: BooleanConstructor;
- default: undefined;
- };
- containerModifierClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideBlankClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideActiveClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideDuplicateActiveClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideVisibleClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideDuplicateClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideNextClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideDuplicateNextClass: {
- type: StringConstructor;
- default: undefined;
- };
- slidePrevClass: {
- type: StringConstructor;
- default: undefined;
- };
- slideDuplicatePrevClass: {
- type: StringConstructor;
- default: undefined;
- };
- wrapperClass: {
- type: StringConstructor;
- default: undefined;
- };
- runCallbacksOnInit: {
- type: BooleanConstructor;
- default: undefined;
- };
- observer: { type: BooleanConstructor; default: undefined };
- observeParents: {
- type: BooleanConstructor;
- default: undefined;
- };
- observeSlideChildren: {
- type: BooleanConstructor;
- default: undefined;
- };
- a11y: {
- type: PropType;
- default: undefined;
- };
- autoplay: {
- type: PropType;
- default: undefined;
- };
- controller: {
- type: PropType;
- default: undefined;
- };
- coverflowEffect: {
- type: PropType;
- default: undefined;
- };
- cubeEffect: {
- type: PropType;
- default: undefined;
- };
- fadeEffect: {
- type: PropType;
- default: undefined;
- };
- flipEffect: {
- type: PropType;
- default: undefined;
- };
- creativeEffect: {
- type: PropType;
- default: undefined;
- };
- cardsEffect: {
- type: PropType;
- default: undefined;
- };
- hashNavigation: {
- type: PropType;
- default: undefined;
- };
- history: {
- type: PropType;
- default: undefined;
- };
- keyboard: {
- type: PropType;
- default: undefined;
- };
- lazy: {
- type: PropType;
- default: undefined;
- };
- mousewheel: {
- type: PropType;
- default: undefined;
- };
- navigation: {
- type: PropType;
- default: undefined;
- };
- pagination: {
- type: PropType;
- default: undefined;
- };
- parallax: {
- type: PropType;
- default: undefined;
- };
- scrollbar: {
- type: PropType;
- default: undefined;
- };
- thumbs: { type: PropType; default: undefined };
- virtual: {
- type: PropType;
- default: undefined;
- };
- zoom: {
- type: PropType;
- default: undefined;
- };
- freeMode: {
- type: PropType;
- default: undefined;
- };
- grid: {
- type: PropType;
- default: undefined;
- };
- },
- () => JSX.Element,
- unknown,
- {},
- {},
- ComponentOptionsMixin,
- ComponentOptionsMixin,
- {
- swiper: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in when autoplay started
- */
- autoplayStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when autoplay stopped
- */
- autoplayStop: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when slide changed with autoplay
- */
- autoplay: (swiper: SwiperClass) => void;/**
- * Event will be fired on window hash change
- */
- hashChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper updates the hash
- */
- hashSet: (swiper: SwiperClass) => void;/**
- * Event will be fired on mousewheel scroll
- */
- scroll: (swiper: SwiperClass, event: WheelEvent) => void;/**
- * Event will be fired in the beginning of lazy loading of image
- */
- lazyImageLoad: (swiper: SwiperClass, slideEl: HTMLElement, imageEl: HTMLElement) => void;
- /**
- * Event will be fired when lazy loading image will be loaded
- */
- lazyImageReady: (swiper: SwiperClass, slideEl: HTMLElement, imageEl: HTMLElement) => void;/**
- * Event will be fired on key press
- */
- keyPress: (swiper: SwiperClass, keyCode: string) => void;/**
- * Event will be fired on navigation hide
- */
- navigationHide: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on navigation show
- */
- navigationShow: (swiper: SwiperClass) => void;/**
- * Event will be fired on draggable scrollbar drag start
- */
- scrollbarDragStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired on draggable scrollbar drag move
- */
- scrollbarDragMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired on draggable scrollbar drag end
- */
- scrollbarDragEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;/**
- * Event will be fired after pagination rendered
- */
- paginationRender: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
-
- /**
- * Event will be fired when pagination updated
- */
- paginationUpdate: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
-
- /**
- * Event will be fired on pagination hide
- */
- paginationHide: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired on pagination show
- */
- paginationShow: (swiper: SwiperClass) => void;/**
- * Event will be fired on zoom change
- */
- zoomChange: (swiper: SwiperClass, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
-
- /**
- * Fired right after Swiper initialization.
- * @note Note that with `swiper.on('init')` syntax it will
- * work only in case you set `init: false` parameter.
- *
- * @example
- * ```js
- * const swiper = new Swiper('.swiper', {
- * init: false,
- * // other parameters
- * });
- * swiper.on('init', function() {
- * // do something
- * });
- * // init Swiper
- * swiper.init();
- * ```
- *
- * @example
- * ```js
- * // Otherwise use it as the parameter:
- * const swiper = new Swiper('.swiper', {
- * // other parameters
- * on: {
- * init: function () {
- * // do something
- * },
- * }
- * });
- * ```
- */
- init: (swiper: SwiperClass) => any;
-
- /**
- * Event will be fired right before Swiper destroyed
- */
- beforeDestroy: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when currently active slide is changed
- */
- slideChange: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired in the beginning of animation to other slide (next or previous).
- */
- slideChangeTransitionStart: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired after animation to other slide (next or previous).
- */
- slideChangeTransitionEnd: (swiper: SwiperClass) => void;
-
- /**
- * Same as "slideChangeTransitionStart" but for "forward" direction only
- */
- slideNextTransitionStart: (swiper: SwiperClass) => void;
-
- /**
- * Same as "slideChangeTransitionEnd" but for "forward" direction only
- */
- slideNextTransitionEnd: (swiper: SwiperClass) => void;
-
- /**
- * Same as "slideChangeTransitionStart" but for "backward" direction only
- */
- slidePrevTransitionStart: (swiper: SwiperClass) => void;
-
- /**
- * Same as "slideChangeTransitionEnd" but for "backward" direction only
- */
- slidePrevTransitionEnd: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired in the beginning of transition.
- */
- transitionStart: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired after transition.
- */
- transitionEnd: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when user touch Swiper. Receives `touchstart` event as an arguments.
- */
- touchStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper. Receives `touchmove` event as an arguments.
- */
- touchMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `touchmove` event as an arguments.
- */
- touchMoveOpposite: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user touch and move finger over Swiper and move it. Receives `touchmove` event as an arguments.
- */
- sliderMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user release Swiper. Receives `touchend` event as an arguments.
- */
- touchEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
- */
- click: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
- */
- tap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired when user double tap on Swiper's container. Receives `touchend` event as an arguments
- */
- doubleTap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
-
- /**
- * Event will be fired right after all inner images are loaded. updateOnImagesReady should be also enabled
- */
- imagesReady: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
- */
- progress: (swiper: SwiperClass, progress: number) => void;
-
- /**
- * Event will be fired when Swiper reach its beginning (initial position)
- */
- reachBeginning: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when Swiper reach last slide
- */
- reachEnd: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when Swiper goes to beginning or end position
- */
- toEdge: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when Swiper goes from beginning or end position
- */
- fromEdge: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
- */
- setTranslate: (swiper: SwiperClass, translate: number) => void;
-
- /**
- * Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
- */
- setTransition: (swiper: SwiperClass, transition: number) => void;
-
- /**
- * Event will be fired on window resize right before swiper's onresize manipulation
- */
- resize: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired if observer is enabled and it detects DOM mutations
- */
- observerUpdate: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired right before "loop fix"
- */
- beforeLoopFix: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired after "loop fix"
- */
- loopFix: (swiper: SwiperClass) => void;
-
- /**
- * Event will be fired on breakpoint change
- */
- breakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
-
- /**
- * !INTERNAL: Event will fired right before breakpoint change
- */
- _beforeBreakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper container element
- */
- _containerClasses: (swiper: SwiperClass, classNames: string) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on swiper slide element
- */
- _slideClass: (swiper: SwiperClass, slideEl: HTMLElement, classNames: string) => void;
-
- /**
- * !INTERNAL: Event will fired after setting CSS classes on all swiper slides
- */
- _slideClasses: (
- swiper: SwiperClass,
- slides: { slideEl: HTMLElement; classNames: string; index: number }[],
- ) => void;
-
- /**
- * !INTERNAL: Event will fired as soon as swiper instance available (before init)
- */
- _swiper: (swiper: SwiperClass) => void;
-
- /**
- * !INTERNAL: Event will be fired on free mode touch end (release) and there will no be momentum
- */
- _freeModeNoMomentumRelease: (swiper: SwiperClass) => void;
-
- /**
- * Event will fired on active index change
- */
- activeIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired on snap index change
- */
- snapIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired on real index change
- */
- realIndexChange: (swiper: SwiperClass) => void;
- /**
- * Event will fired right after initialization
- */
- afterInit: (swiper: SwiperClass) => void;
- /**
- * Event will fired right before initialization
- */
- beforeInit: (swiper: SwiperClass) => void;
- /**
- * Event will fired before resize handler
- */
- beforeResize: (swiper: SwiperClass) => void;
- /**
- * Event will fired before slide change transition start
- */
- beforeSlideChangeStart: (swiper: SwiperClass) => void;
- /**
- * Event will fired before transition start
- */
- beforeTransitionStart: (swiper: SwiperClass, speed: number, internal: any) => void; // what is internal?
- /**
- * Event will fired on direction change
- */
- changeDirection: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when user double click/tap on Swiper
- */
- doubleClick: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
- /**
- * Event will be fired on swiper destroy
- */
- destroy: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on momentum bounce
- */
- momentumBounce: (swiper: SwiperClass) => void;
- /**
- * Event will be fired on orientation change (e.g. landscape -> portrait)
- */
- orientationchange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the beginning of animation of resetting slide to current one
- */
- slideResetTransitionStart: (swiper: SwiperClass) => void;
- /**
- * Event will be fired in the end of animation of resetting slide to current one
- */
- slideResetTransitionEnd: (swiper: SwiperClass) => void;
- /**
- * Event will be fired with first touch/drag move
- */
- sliderFirstMove: (swiper: SwiperClass, event: TouchEvent) => void;
- /**
- * Event will be fired when number of slides has changed
- */
- slidesLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when slides grid has changed
- */
- slidesGridLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when snap grid has changed
- */
- snapGridLengthChange: (swiper: SwiperClass) => void;
- /**
- * Event will be fired after swiper.update() call
- */
- update: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper is locked (when `watchOverflow` enabled)
- */
- lock: (swiper: SwiperClass) => void;
- /**
- * Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
- */
- unlock: (swiper: SwiperClass) => void;
-
- }
->;
-
-declare const SwiperSlide: DefineComponent<{
- tag: {
- type: StringConstructor;
- default: string;
- };
- swiperRef: { type: PropType