瀏覽代碼

Merge declarations.

NaotoshiFujita 3 年之前
父節點
當前提交
9d3012a59d
共有 100 個文件被更改,包括 3017 次插入1692 次删除
  1. 1 1
      dist/js/splide-renderer.min.js
  2. 1 1
      dist/js/splide.js
  3. 1 1
      dist/js/splide.min.js
  4. 二進制
      dist/js/splide.min.js.gz
  5. 1507 0
      dist/my-library.d.ts
  6. 0 2
      dist/types/build/default.d.ts
  7. 0 1
      dist/types/build/default.d.ts.map
  8. 0 2
      dist/types/build/renderer.d.ts
  9. 0 1
      dist/types/build/renderer.d.ts.map
  10. 0 26
      dist/types/components/Arrows/Arrows.d.ts
  11. 0 1
      dist/types/components/Arrows/Arrows.d.ts.map
  12. 0 13
      dist/types/components/Arrows/path.d.ts
  13. 0 1
      dist/types/components/Arrows/path.d.ts.map
  14. 0 25
      dist/types/components/Autoplay/Autoplay.d.ts
  15. 0 1
      dist/types/components/Autoplay/Autoplay.d.ts.map
  16. 0 7
      dist/types/components/Autoplay/constants.d.ts
  17. 0 1
      dist/types/components/Autoplay/constants.d.ts.map
  18. 0 22
      dist/types/components/Clones/Clones.d.ts
  19. 0 1
      dist/types/components/Clones/Clones.d.ts.map
  20. 0 34
      dist/types/components/Controller/Controller.d.ts
  21. 0 1
      dist/types/components/Controller/Controller.d.ts.map
  22. 0 22
      dist/types/components/Cover/Cover.d.ts
  23. 0 1
      dist/types/components/Cover/Cover.d.ts.map
  24. 0 44
      dist/types/components/Direction/Direction.d.ts
  25. 0 1
      dist/types/components/Direction/Direction.d.ts.map
  26. 0 24
      dist/types/components/Drag/Drag.d.ts
  27. 0 1
      dist/types/components/Drag/Drag.d.ts.map
  28. 0 31
      dist/types/components/Drag/constants.d.ts
  29. 0 1
      dist/types/components/Drag/constants.d.ts.map
  30. 0 41
      dist/types/components/Elements/Elements.d.ts
  31. 0 1
      dist/types/components/Elements/Elements.d.ts.map
  32. 0 23
      dist/types/components/Keyboard/Keyboard.d.ts
  33. 0 1
      dist/types/components/Keyboard/Keyboard.d.ts.map
  34. 0 27
      dist/types/components/Layout/Layout.d.ts
  35. 0 1
      dist/types/components/Layout/Layout.d.ts.map
  36. 0 35
      dist/types/components/LazyLoad/LazyLoad.d.ts
  37. 0 1
      dist/types/components/LazyLoad/LazyLoad.d.ts.map
  38. 0 19
      dist/types/components/LazyLoad/constants.d.ts
  39. 0 1
      dist/types/components/LazyLoad/constants.d.ts.map
  40. 0 33
      dist/types/components/Move/Move.d.ts
  41. 0 1
      dist/types/components/Move/Move.d.ts.map
  42. 0 22
      dist/types/components/Options/Options.d.ts
  43. 0 1
      dist/types/components/Options/Options.d.ts.map
  44. 0 44
      dist/types/components/Pagination/Pagination.d.ts
  45. 0 1
      dist/types/components/Pagination/Pagination.d.ts.map
  46. 0 24
      dist/types/components/Scroll/Scroll.d.ts
  47. 0 1
      dist/types/components/Scroll/Scroll.d.ts.map
  48. 0 31
      dist/types/components/Scroll/constants.d.ts
  49. 0 1
      dist/types/components/Scroll/constants.d.ts.map
  50. 0 31
      dist/types/components/Slides/Slide.d.ts
  51. 0 1
      dist/types/components/Slides/Slide.d.ts.map
  52. 0 53
      dist/types/components/Slides/Slides.d.ts
  53. 0 1
      dist/types/components/Slides/Slides.d.ts.map
  54. 0 23
      dist/types/components/Sync/Sync.d.ts
  55. 0 1
      dist/types/components/Sync/Sync.d.ts.map
  56. 0 22
      dist/types/components/Wheel/Wheel.d.ts
  57. 0 1
      dist/types/components/Wheel/Wheel.d.ts.map
  58. 0 19
      dist/types/components/index.d.ts
  59. 0 1
      dist/types/components/index.d.ts.map
  60. 0 21
      dist/types/components/types.d.ts
  61. 0 1
      dist/types/components/types.d.ts.map
  62. 0 15
      dist/types/constants/attributes.d.ts
  63. 0 1
      dist/types/constants/attributes.d.ts.map
  64. 0 48
      dist/types/constants/classes.d.ts
  65. 0 1
      dist/types/constants/classes.d.ts.map
  66. 0 9
      dist/types/constants/defaults.d.ts
  67. 0 1
      dist/types/constants/defaults.d.ts.map
  68. 0 13
      dist/types/constants/directions.d.ts
  69. 0 1
      dist/types/constants/directions.d.ts.map
  70. 0 32
      dist/types/constants/events.d.ts
  71. 0 1
      dist/types/constants/events.d.ts.map
  72. 0 16
      dist/types/constants/i18n.d.ts
  73. 0 1
      dist/types/constants/i18n.d.ts.map
  74. 0 10
      dist/types/constants/listener-options.d.ts
  75. 0 1
      dist/types/constants/listener-options.d.ts.map
  76. 0 13
      dist/types/constants/priority.d.ts
  77. 0 1
      dist/types/constants/priority.d.ts.map
  78. 0 13
      dist/types/constants/project.d.ts
  79. 0 1
      dist/types/constants/project.d.ts.map
  80. 0 33
      dist/types/constants/states.d.ts
  81. 0 1
      dist/types/constants/states.d.ts.map
  82. 0 19
      dist/types/constants/types.d.ts
  83. 0 1
      dist/types/constants/types.d.ts.map
  84. 0 40
      dist/types/constructors/EventBus/EventBus.d.ts
  85. 0 1
      dist/types/constructors/EventBus/EventBus.d.ts.map
  86. 0 29
      dist/types/constructors/EventInterface/EventInterface.d.ts
  87. 0 1
      dist/types/constructors/EventInterface/EventInterface.d.ts.map
  88. 0 25
      dist/types/constructors/RequestInterval/RequestInterval.d.ts
  89. 0 1
      dist/types/constructors/RequestInterval/RequestInterval.d.ts.map
  90. 0 16
      dist/types/constructors/State/State.d.ts
  91. 0 1
      dist/types/constructors/State/State.d.ts.map
  92. 0 19
      dist/types/constructors/Throttle/Throttle.d.ts
  93. 0 1
      dist/types/constructors/Throttle/Throttle.d.ts.map
  94. 0 6
      dist/types/constructors/index.d.ts
  95. 0 1
      dist/types/constructors/index.d.ts.map
  96. 0 261
      dist/types/core/Splide/Splide.d.ts
  97. 0 0
      dist/types/core/Splide/Splide.d.ts.map
  98. 1507 9
      dist/types/index.d.ts
  99. 0 1
      dist/types/index.d.ts.map
  100. 0 297
      dist/types/renderer/SplideRenderer/SplideRenderer.d.ts

+ 1 - 1
dist/js/splide-renderer.min.js

@@ -1,6 +1,6 @@
 /*!
  * Splide.js
- * Version  : 3.6.6
+ * Version  : 3.6.7
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  */

+ 1 - 1
dist/js/splide.js

@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
 
 /*!
  * Splide.js
- * Version  : 3.6.5
+ * Version  : 3.6.7
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  */

+ 1 - 1
dist/js/splide.min.js

@@ -1,7 +1,7 @@
 function At(n,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}
 /*!
  * Splide.js
- * Version  : 3.6.6
+ * Version  : 3.6.7
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  */

二進制
dist/js/splide.min.js.gz


+ 1507 - 0
dist/my-library.d.ts

@@ -0,0 +1,1507 @@
+/**
+ * The interface for the Arrows component.
+ *
+ * @since 3.0.0
+ */
+interface ArrowsComponent extends BaseComponent {
+    arrows: {
+        prev?: HTMLButtonElement;
+        next?: HTMLButtonElement;
+    };
+}
+
+/**
+ * The interface for the Autoplay component.
+ *
+ * @since 3.0.0
+ */
+interface AutoplayComponent extends BaseComponent {
+    play(): void;
+    pause(): void;
+    isPaused(): boolean;
+}
+
+/**
+ * The interface for the Clone component.
+ *
+ * @since 3.0.0
+ */
+interface ClonesComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Controller component.
+ *
+ * @since 3.0.0
+ */
+interface ControllerComponent extends BaseComponent {
+    go(control: number | string, allowSameIndex?: boolean, callback?: AnyFunction): void;
+    scroll(destination: number, useIndex?: boolean, snap?: boolean, duration?: number, callback?: AnyFunction): void;
+    getNext(destination?: boolean): number;
+    getPrev(destination?: boolean): number;
+    getAdjacent(prev: boolean, destination?: boolean): number;
+    getEnd(): number;
+    setIndex(index: number): void;
+    getIndex(prev?: boolean): number;
+    toIndex(page: number): number;
+    toPage(index: number): number;
+    toDest(position: number): number;
+    hasFocus(): boolean;
+}
+
+/**
+ * The interface for the Cover component.
+ *
+ * @since 3.0.0
+ */
+interface CoverComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Direction component.
+ *
+ * @since 3.0.0
+ */
+interface DirectionComponent extends BaseComponent {
+    resolve(prop: string, axisOnly?: boolean): string;
+    orient(value: number): number;
+}
+
+/**
+ * The interface for the Drag component.
+ *
+ * @since 3.0.0
+ */
+interface DragComponent extends BaseComponent {
+    disable(disabled: boolean): void;
+    isDragging(): boolean;
+}
+
+/**
+ * The interface for elements which the slider consists of.
+ *
+ * @since 3.0.0
+ */
+interface ElementCollection {
+    root: HTMLElement;
+    slider: HTMLElement;
+    track: HTMLElement;
+    list: HTMLElement;
+    slides: HTMLElement[];
+    arrows: HTMLElement;
+    prev: HTMLButtonElement;
+    next: HTMLButtonElement;
+    bar: HTMLElement;
+    autoplay: HTMLElement;
+    play: HTMLButtonElement;
+    pause: HTMLButtonElement;
+}
+/**
+ * The interface for the Elements component.
+ *
+ * @since 3.0.0
+ */
+interface ElementsComponent extends BaseComponent, ElementCollection {
+}
+
+/**
+ * The interface for the Keyboard component.
+ *
+ * @since 3.0.0
+ */
+interface KeyboardComponent extends BaseComponent {
+    disable(disabled: boolean): void;
+}
+
+/**
+ * The interface for the Layout component.
+ *
+ * @since 3.0.0
+ */
+interface LayoutComponent extends BaseComponent {
+    listSize(): number;
+    slideSize(index: number, withoutGap?: boolean): number;
+    sliderSize(): number;
+    totalSize(index?: number, withoutGap?: boolean): number;
+    getPadding(right: boolean): number;
+}
+
+/**
+ * The interface for the Slide sub component.
+ *
+ * @since 3.0.0
+ */
+interface SlideComponent extends BaseComponent {
+    index: number;
+    slideIndex: number;
+    slide: HTMLElement;
+    container: HTMLElement;
+    isClone: boolean;
+    update(): void;
+    style(prop: string, value: string | number, useContainer?: boolean): void;
+    isWithin(from: number, distance: number): boolean;
+}
+
+/**
+ * The interface for the LazyLoad component.
+ *
+ * @since 3.0.0
+ */
+interface LazyLoadComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Move component.
+ *
+ * @since 3.0.0
+ */
+interface MoveComponent extends BaseComponent {
+    move(dest: number, index: number, prev: number, callback?: AnyFunction): void;
+    jump(index: number): void;
+    translate(position: number, preventLoop?: boolean): void;
+    shift(position: number, backwards: boolean): number;
+    cancel(): void;
+    toIndex(position: number): number;
+    toPosition(index: number, trimming?: boolean): number;
+    getPosition(): number;
+    getLimit(max: boolean): number;
+    isBusy(): boolean;
+    exceededLimit(max?: boolean | undefined, position?: number): boolean;
+}
+
+/**
+ * The interface for the Options component.
+ *
+ * @since 3.0.0
+ */
+interface OptionsComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Pagination component.
+ *
+ * @since 3.0.0
+ */
+interface PaginationComponent extends BaseComponent {
+    items: PaginationItem[];
+    getAt(index: number): PaginationItem;
+    update(): void;
+}
+/**
+ * The interface for data of the pagination.
+ *
+ * @since 3.0.0
+ */
+interface PaginationData {
+    list: HTMLUListElement;
+    items: PaginationItem[];
+}
+/**
+ * The interface for each pagination item.
+ *
+ * @since 3.0.0
+ */
+interface PaginationItem {
+    li: HTMLLIElement;
+    button: HTMLButtonElement;
+    page: number;
+}
+
+/**
+ * The interface for the Scroll component.
+ *
+ * @since 3.0.0
+ */
+interface ScrollComponent extends BaseComponent {
+    scroll(position: number, duration?: number, callback?: AnyFunction): void;
+    cancel(): void;
+}
+
+/**
+ * The interface for the Sync component.
+ *
+ * @since 3.0.0
+ */
+interface SyncComponent extends BaseComponent {
+    remount(): void;
+}
+
+/**
+ * The interface for the Wheel component.
+ *
+ * @since 3.0.0
+ */
+interface WheelComponent extends BaseComponent {
+}
+
+/**
+ * The interface for options.
+ *
+ * @since 3.0.0
+ */
+interface Options extends ResponsiveOptions {
+    /**
+     * The type of the slider.
+     * - 'slide': A slider with the slide transition
+     * - 'loop' : A carousel slider
+     * - 'fade' : A slider with the fade transition. This does not support the perPage option.
+     */
+    type?: string;
+    /**
+     * Determines whether to disable any actions while the slider is transitioning.
+     * Even if `false`, the slider forcibly waits for transition on the loop points.
+     */
+    waitForTransition?: boolean;
+    /**
+     * If `true`, the width of slides are determined by their width.
+     * The `perPage` and `perMove` options should be `1`.
+     */
+    autoWidth?: boolean;
+    /**
+     * If `true`, the height of slides are determined by their height.
+     * The `perPage` and `perMove` options should be `1`.
+     */
+    autoHeight?: boolean;
+    /**
+     * The start index.
+     */
+    start?: number;
+    /**
+     * Changes the arrow SVG path, like 'm7.61 0.807-2.12...'.
+     */
+    arrowPath?: string;
+    /**
+     * Determines whether to activate autoplay or not.
+     * If `paused`, it will not begin when the slider becomes active.
+     * You need to provided play/pause buttons or manually start it by `Autoplay#play()`.
+     */
+    autoplay?: boolean | 'pause';
+    /**
+     * The autoplay interval in milliseconds.
+     */
+    interval?: number;
+    /**
+     * Determines whether to pause autoplay on mouseover.
+     */
+    pauseOnHover?: boolean;
+    /**
+     * Determines whether to pause autoplay when the slider contains the active element (focused element).
+     * This should be `true` for accessibility.
+     */
+    pauseOnFocus?: boolean;
+    /**
+     * Determines whether to reset the autoplay progress when it is requested to start again.
+     */
+    resetProgress?: boolean;
+    /**
+     * Enables lazy loading.
+     * Provide the `src` by the `data-splide-lazy` or the `srcset` by the `data-splide-lazy-srcset`.
+     * You may also provide `src` for the placeholder, but the value must be different with the data.
+     *
+     * - `false`: Disables lazy loading
+     * - `'nearby'`: Starts loading only images around the active slide (page)
+     * - `'sequential'`: Loads images sequentially
+     */
+    lazyLoad?: boolean | 'nearby' | 'sequential';
+    /**
+     * Determine how many pages (not slides) around the active slide should be loaded beforehand.
+     * This only works when the `lazyLoad` option is `'nearby'`.
+     */
+    preloadPages?: number;
+    /**
+     * Determines whether to enable keyboard shortcuts or not.
+     * - `true` or `'global'`: Listens to the `keydown` event of the document.
+     * - 'focused': Listens to the `keydown` event of the slider root element with adding `tabindex="0"` to it.
+     * - `false`: Disables keyboard shortcuts.
+     */
+    keyboard?: boolean | string;
+    /**
+     * Enables navigation by the mouse wheel.
+     * The `waitForTransition` option should be `true`.
+     */
+    wheel?: boolean;
+    /**
+     * Determines whether to release the wheel event when the slider reaches the first or last slide.
+     */
+    releaseWheel?: boolean;
+    /**
+     * The direction of the slider.
+     * - 'ltr': Left to right
+     * - 'rtl': Right to left
+     * - 'ttb': Top to bottom
+     */
+    direction?: 'ltr' | 'rtl' | 'ttb';
+    /**
+     * Converts the image `src` to the css `background-image` URL of the parent element.
+     * This requires `fixedHeight` or `heightRatio` option.
+     */
+    cover?: boolean;
+    /**
+     * Determines whether to add `tabindex="0"` to visible slides or not.
+     */
+    slideFocus?: boolean;
+    /**
+     * If `true`, the slider makes slides clickable to navigate another slider.
+     * Use `Splide#sync()` to sync multiple sliders.
+     */
+    isNavigation?: boolean;
+    /**
+     * Determines whether to trim spaces before/after the slider if the `focus` option is available.
+     * - `true`: Trims spaces. The slider may stay on the same location even when requested to move.
+     * - `'move'`: Trims spaces and focuses to move the slider when requested.
+     */
+    trimSpace?: boolean | 'move';
+    /**
+     * Updates the `is-active` status of slides just before moving the slider.
+     */
+    updateOnMove?: boolean;
+    /**
+     * If `min`, the media query for breakpoints will be `min-width`, or otherwise, `max-width`.
+     */
+    mediaQuery?: 'min' | 'max';
+    /**
+     * The selector to get focusable elements
+     * where `tabindex="-1"` will be assigned when their ascendant slide is hidden.
+     */
+    focusableNodes?: string;
+    /**
+     * The selector for nodes that cannot be dragged.
+     */
+    noDrag?: string;
+    /**
+     * Determines whether to use the Transition component or not.
+     */
+    useScroll?: boolean;
+    /**
+     * Options for specific breakpoints.
+     *
+     * @example
+     * ```ts
+     * {
+     *   1000: {
+     *     perPage: 3,
+     *     gap    : 20
+     *   },
+     *   600: {
+     *     perPage: 1,
+     *     gap    : 5,
+     *   },
+     * }
+     * ```
+     */
+    breakpoints?: Record<string | number, ResponsiveOptions>;
+    /**
+     * The collection of class names.
+     */
+    classes?: Record<string, string>;
+    /**
+     * The collection of i18n strings.
+     */
+    i18n?: Record<string, string>;
+}
+/**
+ * The interface for options that can correspond with breakpoints.
+ *
+ * @since 3.0.0
+ */
+interface ResponsiveOptions {
+    /**
+     * Accepts arbitrary properties for extensions, although it's not ideal typing.
+     */
+    [key: string]: any;
+    /**
+     * Determines whether to rewind the slider or not.
+     */
+    rewind?: boolean;
+    /**
+     * The transition speed in milliseconds.
+     */
+    speed?: number;
+    /**
+     * The transition speed on rewind in milliseconds.
+     */
+    rewindSpeed?: number;
+    /**
+     * Defines the slider max width, accepting the CSS format such as 10em, 80vw.
+     */
+    width?: number | string;
+    /**
+     * Defines the slider height, accepting the CSS format.
+     */
+    height?: number | string;
+    /**
+     * Fixes width of slides, accepting the CSS format.
+     * The slider will ignore the `perPage` option if you provide this value.
+     */
+    fixedWidth?: number | string;
+    /**
+     * Fixes height of slides, accepting the CSS format.
+     * The slider will ignore the `heightRatio` option if you provide this value.
+     */
+    fixedHeight?: number | string;
+    /**
+     * Determines height of slides by the ratio to the slider width.
+     * For example, when the slider width is `1000` and the ratio is `0.5`, the height will be `500`.
+     */
+    heightRatio?: number;
+    /**
+     * Determines the number of slides to display in a page.
+     */
+    perPage?: number;
+    /**
+     * Determines the number of slides to move at once.
+     */
+    perMove?: number;
+    /**
+     * Determine the number of clones on each side of the slider.
+     * In most cases, you don't need to provide this value.
+     */
+    clones?: number;
+    /**
+     * Determines whether to clone status classes for clones or not.
+     */
+    cloneStatus?: boolean;
+    /**
+     * Determines which slide should be active if there are multiple slides in a page.
+     * Numbers and `'center'` are acceptable.
+     */
+    focus?: number | 'center';
+    /**
+     * The gap between slides. The CSS format is acceptable, such as `1em`.
+     */
+    gap?: number | string;
+    /**
+     * Sets padding left/right or top/bottom of the slider.
+     * The CSS format is acceptable, such as `1em`.
+     *
+     * @example
+     * ```ts
+     * // By number
+     * padding: 10,
+     *
+     * // By the CSS format
+     * padding: '1rem',
+     *
+     * // Specifies each value for a horizontal slider
+     * padding: { left: 10, right: 20 },
+     * padding: { left: '1rem', right: '2rem' },
+     *
+     * // Specified each value for a vertical slider
+     * padding: { top: 10, bottom: 20 },
+     * ```
+     */
+    padding?: number | string | {
+        left?: number | string;
+        right?: number | string;
+    } | {
+        top?: number | string;
+        bottom?: number | string;
+    };
+    /**
+     * Determines whether to create/find arrows or not.
+     */
+    arrows?: boolean | 'slider';
+    /**
+     * Determines whether to create pagination (indicator dots) or not.
+     */
+    pagination?: boolean | 'slider';
+    /**
+     * The timing function for the CSS transition. For example, `linear`, ease or `cubic-bezier()`.
+     */
+    easing?: string;
+    /**
+     * The easing function for the drag free mode.
+     * The default function is the `easeOutQuart` interpolation.
+     */
+    easingFunc?: (t: number) => number;
+    /**
+     * Determines whether to allow to drag the slider or not.
+     * If `free`, the slider does not snap to a slide after drag.
+     */
+    drag?: boolean | 'free';
+    /**
+     * The required distance to start moving the slider by the touch action.
+     * If you want to define the threshold for the mouse, provide an object.
+     */
+    dragMinThreshold?: number | {
+        mouse: number;
+        touch: number;
+    };
+    /**
+     * Determine the power of "flick". The larger number this is, the farther the slider runs.
+     * Around 500 is recommended.
+     */
+    flickPower?: number;
+    /**
+     * Limits the number of pages to move by "flick".
+     */
+    flickMaxPages?: number;
+    /**
+     * Destroys the slider.
+     */
+    destroy?: boolean | 'completely';
+}
+
+/**
+ * The type for any function.
+ *
+ * @since 3.0.0
+ */
+declare type AnyFunction = (...args: any[]) => any;
+/**
+ * The type for a component.
+ *
+ * @since 3.0.0
+ */
+declare type ComponentConstructor = (Splide: Splide, Components: Components, options: Options) => BaseComponent;
+/**
+ * The interface for any component.
+ *
+ * @since 3.0.0
+ */
+interface BaseComponent {
+    setup?(): void;
+    mount?(): void;
+    destroy?(completely?: boolean): void;
+}
+/**
+ * The interface for the Transition component.
+ *
+ * @since 3.0.0
+ */
+interface TransitionComponent extends BaseComponent {
+    start(index: number, done: () => void): void;
+    cancel(): void;
+}
+/**
+ * The interface for info of a splide instance to sync with.
+ *
+ * @since 3.2.8
+ */
+interface SyncTarget {
+    splide: Splide;
+    isParent?: boolean;
+}
+
+interface Components {
+    [key: string]: BaseComponent;
+    Options: OptionsComponent;
+    Direction: DirectionComponent;
+    Elements: ElementsComponent;
+    Slides: SlidesComponent;
+    Layout: LayoutComponent;
+    Clones: ClonesComponent;
+    Move: MoveComponent;
+    Controller: ControllerComponent;
+    Arrows: ArrowsComponent;
+    Autoplay: AutoplayComponent;
+    Cover: CoverComponent;
+    Scroll: ScrollComponent;
+    Drag: DragComponent;
+    Keyboard: KeyboardComponent;
+    LazyLoad: LazyLoadComponent;
+    Pagination: PaginationComponent;
+    Sync: SyncComponent;
+    Wheel: WheelComponent;
+    Transition: TransitionComponent;
+}
+
+interface EventMap {
+    'mounted': () => void;
+    'ready': () => void;
+    'click': (Slide: SlideComponent, e: MouseEvent) => void;
+    'move': (index: number, prev: number, dest: number) => void;
+    'moved': (index: number, prev: number, dest: number) => void;
+    'shifted': () => void;
+    'active': (Slide: SlideComponent) => void;
+    'inactive': (Slide: SlideComponent) => void;
+    'visible': (Slide: SlideComponent) => void;
+    'hidden': (Slide: SlideComponent) => void;
+    'slide:keydown': (Slide: SlideComponent, e: KeyboardEvent) => void;
+    'refresh': () => void;
+    'updated': (options: Options) => void;
+    'resize': () => void;
+    'resized': () => void;
+    'drag': () => void;
+    'dragging': () => void;
+    'dragged': () => void;
+    'scroll': () => void;
+    'scrolled': () => void;
+    'destroy': () => void;
+    'arrows:mounted': (prev: HTMLButtonElement, next: HTMLButtonElement) => void;
+    'arrows:updated': (prev: HTMLButtonElement, next: HTMLButtonElement, prevIndex: number, nextIndex: number) => void;
+    'pagination:mounted': (data: PaginationData, item: PaginationItem) => void;
+    'pagination:updated': (data: PaginationData, prev: PaginationItem, curr: PaginationItem) => void;
+    'navigation:mounted': (splides: Splide[]) => void;
+    'autoplay:play': () => void;
+    'autoplay:playing': (rate: number) => void;
+    'autoplay:pause': () => void;
+    'lazyload:loaded': (img: HTMLImageElement, Slide: SlideComponent) => void;
+}
+
+/**
+ * The interface for the Slides component.
+ *
+ * @since 3.0.0
+ */
+interface SlidesComponent extends BaseComponent {
+    update(): void;
+    register(slide: HTMLElement, index: number, slideIndex: number): void;
+    get(excludeClones?: boolean): SlideComponent[];
+    getIn(page: number): SlideComponent[];
+    getAt(index: number): SlideComponent | undefined;
+    add(slide: string | Element | Array<string | Element>, index?: number): void;
+    remove(selector: SlideMatcher): void;
+    forEach(iteratee: SlidesIteratee, excludeClones?: boolean): void;
+    filter(matcher: SlideMatcher): SlideComponent[];
+    style(prop: string, value: string | number, useContainer?: boolean): void;
+    getLength(excludeClones?: boolean): number;
+    isEnough(): boolean;
+}
+/**
+ * The iteratee function for Slides.
+ *
+ * @since 3.0.0
+ */
+declare type SlidesIteratee = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => void;
+/**
+ * The predicate function for Slides.
+ *
+ * @since 3.0.0
+ */
+declare type SlidesPredicate = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => any;
+/**
+ * The type for filtering SlideComponent objects.
+ *
+ * @since 3.0.0
+ */
+declare type SlideMatcher = number | number[] | string | SlidesPredicate;
+
+/**
+ * The interface for the EventBus instance.
+ *
+ * @since 3.0.0
+ */
+interface EventBusObject {
+    on(events: string | string[], callback: EventBusCallback, key?: object, priority?: number): void;
+    off(events: string | string[], key?: object): void;
+    offBy(key: object): void;
+    emit(event: string, ...args: any[]): void;
+    destroy(): void;
+}
+/**
+ * The interface for each event handler object.
+ *
+ * @since 3.0.0
+ */
+interface EventHandler {
+    _event: string;
+    _callback: AnyFunction;
+    _namespace: string;
+    _priority: number;
+    _key?: object;
+}
+/**
+ * The type for a callback function of the EventBus.
+ *
+ * @since 3.0.0
+ */
+declare type EventBusCallback = AnyFunction;
+/**
+ * The constructor to provided a simple event system.
+ *
+ * @since 3.0.0
+ *
+ * @return An EventBus object.
+ */
+declare function EventBus(): EventBusObject;
+
+/**
+ * The interface for the EventInterface object.
+ *
+ * @since 3.0.0
+ */
+interface EventInterfaceObject {
+    on<K extends keyof EventMap>(event: K, callback: EventMap[K], priority?: number): void;
+    on(events: string | string[], callback: EventBusCallback, priority?: number): void;
+    off<K extends keyof EventMap>(events: K | K[] | string | string[]): void;
+    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): void;
+    emit(event: string, ...args: any[]): void;
+    bind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback: AnyFunction, options?: AddEventListenerOptions): void;
+    unbind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback?: AnyFunction): void;
+    destroy(): void;
+}
+/**
+ * The function that provides interface for internal and native events.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide - A Splide instance.
+ *
+ * @return A collection of interface functions.
+ */
+declare function EventInterface(Splide: Splide): EventInterfaceObject;
+
+/**
+ * The interface for the returning value of the RequestInterval.
+ *
+ * @since 3.0.0
+ */
+interface RequestIntervalInterface {
+    start(resume?: boolean): void;
+    pause(): void;
+    rewind(): void;
+    cancel(): void;
+    set(interval: number): void;
+    isPaused(): boolean;
+}
+/**
+ * Requests interval like the native `setInterval()` with using `requestAnimationFrame`.
+ *
+ * @since 3.0.0
+ *
+ * @param interval   - The interval duration in milliseconds.
+ * @param onInterval - The callback fired on every interval.
+ * @param onUpdate   - Optional. Called on every animation frame, taking the progress rate.
+ * @param limit      - Optional. Limits the number of interval.
+ */
+declare function RequestInterval(interval: number, onInterval: () => void, onUpdate?: (rate: number) => void, limit?: number): RequestIntervalInterface;
+
+/**
+ * The interface for the State object.
+ *
+ * @since 3.0.0
+ */
+interface StateObject {
+    set(state: number): void;
+    is(states: number | number[]): boolean;
+}
+/**
+ * The function providing a super simple state system.
+ *
+ * @param initialState - Specifies the initial state.
+ */
+declare function State(initialState: number): StateObject;
+
+/**
+ * The interface for the returning value of the RequestInterval.
+ *
+ * @since 3.0.0
+ */
+interface ThrottleInstance<F extends AnyFunction> extends Function {
+    (...args: Parameters<F>): void;
+}
+/**
+ * Returns the throttled function.
+ *
+ * @param func     - A function to throttle.
+ * @param duration - Optional. Throttle duration in milliseconds.
+ *
+ * @return A throttled function.
+ */
+declare function Throttle<F extends AnyFunction>(func: F, duration?: number): ThrottleInstance<F>;
+
+/**
+ * The frontend class for the Splide slider.
+ *
+ * @since 3.0.0
+ */
+declare class Splide {
+    /**
+     * Changes the default options for all Splide instances.
+     */
+    static defaults: Options;
+    /**
+     * The collection of state numbers.
+     */
+    static readonly STATES: {
+        CREATED: number;
+        MOUNTED: number;
+        IDLE: number;
+        MOVING: number;
+        DESTROYED: number;
+    };
+    /**
+     * The root element where the Splide is applied.
+     */
+    readonly root: HTMLElement;
+    /**
+     * The EventBusObject object.
+     */
+    readonly event: EventBusObject;
+    /**
+     * The collection of all component objects.
+     */
+    readonly Components: Components;
+    /**
+     * The StateObject object.
+     */
+    readonly state: StateObject;
+    /**
+     * An array with SyncTarget objects for splide instances to sync with.
+     */
+    readonly splides: SyncTarget[];
+    /**
+     * The collection of options.
+     */
+    private readonly _options;
+    /**
+     * The collection of all components.
+     */
+    private _Components;
+    /**
+     * The collection of extensions.
+     */
+    private _Extensions;
+    /**
+     * The Transition component.
+     */
+    private _Transition;
+    /**
+     * The Splide constructor.
+     *
+     * @param target  - The selector for the target element, or the element itself.
+     * @param options - Optional. An object with options.
+     */
+    constructor(target: string | HTMLElement, options?: Options);
+    /**
+     * Initializes the instance.
+     *
+     * @param Extensions - Optional. An object with extensions.
+     * @param Transition - Optional. A Transition component.
+     *
+     * @return `this`
+     */
+    mount(Extensions?: Record<string, ComponentConstructor>, Transition?: ComponentConstructor): this;
+    /**
+     * Syncs the slider with the provided one.
+     * This method must be called before the `mount()`.
+     *
+     * @example
+     * ```ts
+     * var primary   = new Splide();
+     * var secondary = new Splide();
+     *
+     * primary.sync( secondary );
+     * primary.mount();
+     * secondary.mount();
+     * ```
+     *
+     * @param splide - A Splide instance to sync with.
+     *
+     * @return `this`
+     */
+    sync(splide: Splide): this;
+    /**
+     * Moves the slider with the following control pattern.
+     *
+     * | Pattern | Description |
+     * |---|---|
+     * | `i` | Goes to the slide `i` |
+     * | `'+${i}'` | Increments the slide index by `i` |
+     * | `'-${i}'` | Decrements the slide index by `i` |
+     * | `'>'` | Goes to the next page |
+     * | `'<'` | Goes to the previous page |
+     * | `>${i}` | Goes to the page `i` |
+     *
+     * In most cases, `'>'` and `'<'` notations are enough to control the slider
+     * because they respect `perPage` and `perMove` options.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Goes to the slide 1:
+     * splide.go( 1 );
+     *
+     * // Increments the index:
+     * splide.go( '+2' );
+     *
+     * // Goes to the next page:
+     * splide.go( '>' );
+     *
+     * // Goes to the page 2:
+     * splide.go( '>2' );
+     * ```
+     *
+     * @param control - A control pattern.
+     *
+     * @return `this`
+     */
+    go(control: number | string): this;
+    /**
+     * Registers an event handler.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Listens to a single event:
+     * splide.on( 'move', function() {} );
+     *
+     * // Listens to multiple events:
+     * splide.on( 'move resize', function() {} );
+     *
+     * // Appends a namespace:
+     * splide.on( 'move.myNamespace resize.myNamespace', function() {} );
+     * ```
+     *
+     * @param events   - An event name or names separated by spaces. Use a dot(.) to append a namespace.
+     * @param callback - A callback function.
+     *
+     * @return `this`
+     */
+    on<K extends keyof EventMap>(events: K, callback: EventMap[K]): this;
+    on(events: string | string[], callback: EventBusCallback): this;
+    /**
+     * Removes the registered all handlers for the specified event or events.
+     * If you want to only remove a particular handler, use namespace to identify it.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Removes all handlers assigned to "move":
+     * splide.off( 'move' );
+     *
+     * // Only removes handlers that belong to the specified namespace:
+     * splide.off( 'move.myNamespace' );
+     * ```
+     *
+     * @param events - An event name or names separated by spaces. Use a dot(.) to append a namespace.
+     *
+     * @return `this`
+     */
+    off<K extends keyof EventMap>(events: K | K[] | string | string[]): this;
+    /**
+     * Emits an event and triggers registered handlers.
+     *
+     * @param event - An event name to emit.
+     * @param args  - Optional. Any number of arguments to pass to handlers.
+     *
+     * @return `this`
+     */
+    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): this;
+    emit(event: string, ...args: any[]): this;
+    /**
+     * Inserts a slide at the specified position.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     * splide.mount();
+     *
+     * // Adds the slide by the HTML:
+     * splide.add( '<li></li> );
+     *
+     * // or adds the element:
+     * splide.add( document.createElement( 'li' ) );
+     * ```
+     *
+     * @param slides - A slide element, an HTML string that represents a slide, or an array with them.
+     * @param index  - Optional. An index to insert a slide at.
+     *
+     * @return `this`
+     */
+    add(slides: string | HTMLElement | Array<string | HTMLElement>, index?: number): this;
+    /**
+     * Removes slides that match the matcher
+     * that can be an index, an array with indices, a selector, or an iteratee function.
+     *
+     * @param matcher - An index, an array with indices, a selector string, or an iteratee function.
+     */
+    remove(matcher: SlideMatcher): this;
+    /**
+     * Checks the slider type.
+     *
+     * @param type - A type to test.
+     *
+     * @return `true` if the type matches the current one, or otherwise `false`.
+     */
+    is(type: string): boolean;
+    /**
+     * Refreshes the slider.
+     *
+     * @return `this`
+     */
+    refresh(): this;
+    /**
+     * Destroys the slider.
+     *
+     * @param completely - Optional. If `true`, Splide will not remount the slider by breakpoints.
+     *
+     * @return `this`
+     */
+    destroy(completely?: boolean): this;
+    /**
+     * Returns options.
+     *
+     * @return An object with the latest options.
+     */
+    get options(): Options;
+    /**
+     * Merges options to the current options and emits `updated` event.
+     *
+     * @param options - An object with new options.
+     */
+    set options(options: Options);
+    /**
+     * Returns the number of slides without clones.
+     *
+     * @return The number of slides.
+     */
+    get length(): number;
+    /**
+     * Returns the active slide index.
+     *
+     * @return The active slide index.
+     */
+    get index(): number;
+}
+
+/**
+ * The interface for the content of each slide.
+ *
+ * @since 3.0.0
+ */
+interface SlideContent {
+    /**
+     * The HTML or text for each slide.
+     */
+    html?: string;
+    /**
+     * The collection of styles. They will remain after Splide is applied.
+     */
+    styles?: Record<string, string | number>;
+    /**
+     * The collection of attributes. They will remain after Splide is applied.
+     */
+    attrs?: Record<string, string | number | boolean>;
+}
+/**
+ * The interface for the config of the renderer.
+ *
+ * @since 3.0.0
+ */
+interface RendererConfig {
+    /**
+     * The slider ID.
+     */
+    id?: string;
+    /**
+     * The additional class for the root element.
+     */
+    rootClass?: string;
+    /**
+     * The tag used for the list element.
+     */
+    listTag?: string;
+    /**
+     * The tag used for each slide.
+     */
+    slideTag?: string;
+    /**
+     * Determines whether to render arrows or not.
+     */
+    arrows?: boolean;
+    /**
+     * Keeps the slider hidden.
+     */
+    hidden?: boolean;
+    /**
+     * Determines whether to wrap the track by the slider element or not.
+     */
+    slider?: boolean;
+    /**
+     * The additional HTML rendered before the slider element.
+     */
+    beforeSlider?: string;
+    /**
+     * The additional HTML rendered after the slider element.
+     */
+    afterSlider?: string;
+    /**
+     * The additional HTML rendered before the track element.
+     */
+    beforeTrack?: string;
+    /**
+     * The additional HTML rendered after the track element.
+     */
+    afterTrack?: string;
+}
+
+/**
+ * The class to generate static HTML of the slider for the first view.
+ *
+ * @since 3.0.0
+ */
+declare class SplideRenderer {
+    /**
+     * Removes a style element and clones.
+     *
+     * @param splide - A Splide instance.
+     */
+    static clean(splide: Splide): void;
+    /**
+     * Holds slide contents.
+     */
+    private readonly contents;
+    /**
+     * Stores data of slides.
+     */
+    private readonly slides;
+    /**
+     * The Direction component.
+     */
+    private readonly Direction;
+    /**
+     * Holds the Style instance.
+     */
+    private readonly Style;
+    /**
+     * Holds options.
+     */
+    private readonly options;
+    /**
+     * Holds options for this instance.
+     */
+    private readonly config;
+    /**
+     * The slider ID.
+     */
+    private readonly id;
+    /**
+     * An array with options for each breakpoint.
+     */
+    private readonly breakpoints;
+    /**
+     * The SplideRenderer constructor.
+     *
+     * @param contents - An array with slide contents. Each item must be an HTML or a plain text.
+     * @param options  - Optional. Slider options.
+     * @param config   - Static default options.
+     * @param defaults - Default options for the slider. Pass `Splide.defaults` if you are using it.
+     */
+    constructor(contents: string[] | SlideContent[], options?: Options, config?: RendererConfig, defaults?: Options);
+    /**
+     * Initializes the instance.
+     */
+    private init;
+    /**
+     * Initializes slides.
+     */
+    private initSlides;
+    /**
+     * Registers styles for the root element.
+     */
+    private registerRootStyles;
+    /**
+     * Registers styles for the track element.
+     */
+    private registerTrackStyles;
+    /**
+     * Registers styles for the list element.
+     */
+    private registerListStyles;
+    /**
+     * Registers styles for slides and clones.
+     */
+    private registerSlideStyles;
+    /**
+     * Builds multiple `translateX` for the list element.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return A string with multiple translate functions.
+     */
+    private buildTranslate;
+    /**
+     * Returns offset for the list element.
+     * This does not include gaps because it can not be converted into percent.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset.
+     */
+    private cssOffsetClones;
+    /**
+     * Returns offset for centering the active slide.
+     *
+     * Note:
+     * ( 100% + gap ) / perPage - gap
+     * 100% / perPage + gap / perPage - gap;
+     * 50% / perPage + ( gap / perPage - gap ) / 2;
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset.
+     */
+    private cssOffsetCenter;
+    /**
+     * Returns offset for gaps.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset as `calc()`.
+     */
+    private cssOffsetGaps;
+    /**
+     * Resolves the prop for the current direction and converts it into the Kebab case.
+     *
+     * @param prop - A property name to resolve.
+     *
+     * @return A resolved property name in the Kebab case.
+     */
+    private resolve;
+    /**
+     * Returns padding in the CSS format.
+     *
+     * @param options - Options.
+     * @param right   - Determines whether to get padding right or left.
+     *
+     * @return Padding in the CSS format.
+     */
+    private cssPadding;
+    /**
+     * Returns height of the track element in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssTrackHeight;
+    /**
+     * Returns height provided though options in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssHeight;
+    /**
+     * Returns width of each slide in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Width in the CSS format.
+     */
+    private cssSlideWidth;
+    /**
+     * Returns height of each slide in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssSlideHeight;
+    /**
+     * Returns width or height of each slide in the CSS format, considering the current direction.
+     *
+     * @param options - Options.
+     *
+     * @return Width or height in the CSS format.
+     */
+    private cssSlideSize;
+    /**
+     * Returns the aspectRatio value to simulate the `heightRatio` option.
+     *
+     * @param options - Options.
+     *
+     * @return aspectRatio in the CSS format.
+     */
+    private cssAspectRatio;
+    /**
+     * Builds the css value by the provided value and unit.
+     *
+     * @param value - A value.
+     * @param unit  - A CSS unit.
+     *
+     * @return A built value for a CSS value.
+     */
+    private buildCssValue;
+    /**
+     * Parses the CSS value into number and unit.
+     *
+     * @param value - A value to parse.
+     *
+     * @return An object with value and unit.
+     */
+    private parseCssValue;
+    /**
+     * Parses breakpoints and generate options for each breakpoint.
+     */
+    private parseBreakpoints;
+    /**
+     * Checks if the slide width is fixed or not.
+     *
+     * @return `true` if the slide width is fixed, or otherwise `false`.
+     */
+    private isFixedWidth;
+    /**
+     * Checks if the slider type is loop or not.
+     *
+     * @return `true` if the slider type is loop, or otherwise `false`.
+     */
+    private isLoop;
+    /**
+     * Checks if the active slide should be centered or not.
+     *
+     * @return `true` if the slide should be centered, or otherwise `false`.
+     */
+    private isCenter;
+    /**
+     * Checks if the direction is TTB or not.
+     *
+     * @return `true` if the direction is TTB, or otherwise `false`.
+     */
+    private isVertical;
+    /**
+     * Builds classes of the root element.
+     *
+     * @return Classes for the root element as a single string.
+     */
+    private buildClasses;
+    /**
+     * Converts provided attributes into a single string.
+     *
+     * @param attrs - An object with attributes.
+     *
+     * @return A built string.
+     */
+    private buildAttrs;
+    /**
+     * Converts provided styles into a single string.
+     *
+     * @param styles - An object with styles.
+     *
+     * @return A built string.
+     */
+    private buildStyles;
+    /**
+     * Generates HTML of slides with inserting provided contents.
+     *
+     * @return The HTML for all slides and clones.
+     */
+    private renderSlides;
+    /**
+     * Add the `background` style for the cover mode.
+     *
+     * @param content - A slide content.
+     */
+    private cover;
+    /**
+     * Generates clones.
+     *
+     * @param contents - An array with SlideContent objects.
+     */
+    private generateClones;
+    /**
+     * Returns the number of clones to generate.
+     *
+     * @return A number of clones.
+     */
+    private getCloneCount;
+    /**
+     * Generates arrows and the wrapper element.
+     *
+     * @return The HTML for arrows.
+     */
+    private renderArrows;
+    /**
+     * Generates an arrow HTML.
+     * Some attributes are temporary, and Splide changes them after mount.
+     *
+     * @param prev - Options for each breakpoint.
+     *
+     * @return The HTML for the prev or next arrow.
+     */
+    private renderArrow;
+    /**
+     * Returns the HTML of the slider.
+     *
+     * @return The generated HTML.
+     */
+    html(): string;
+}
+
+declare const EVENT_MOUNTED = "mounted";
+declare const EVENT_READY = "ready";
+declare const EVENT_MOVE = "move";
+declare const EVENT_MOVED = "moved";
+declare const EVENT_SHIFTED = "shifted";
+declare const EVENT_CLICK = "click";
+declare const EVENT_ACTIVE = "active";
+declare const EVENT_INACTIVE = "inactive";
+declare const EVENT_VISIBLE = "visible";
+declare const EVENT_HIDDEN = "hidden";
+declare const EVENT_SLIDE_KEYDOWN = "slide:keydown";
+declare const EVENT_REFRESH = "refresh";
+declare const EVENT_UPDATED = "updated";
+declare const EVENT_RESIZE = "resize";
+declare const EVENT_RESIZED = "resized";
+declare const EVENT_REPOSITIONED = "repositioned";
+declare const EVENT_DRAG = "drag";
+declare const EVENT_DRAGGING = "dragging";
+declare const EVENT_DRAGGED = "dragged";
+declare const EVENT_SCROLL = "scroll";
+declare const EVENT_SCROLLED = "scrolled";
+declare const EVENT_DESTROY = "destroy";
+declare const EVENT_ARROWS_MOUNTED = "arrows:mounted";
+declare const EVENT_ARROWS_UPDATED = "arrows:updated";
+declare const EVENT_PAGINATION_MOUNTED = "pagination:mounted";
+declare const EVENT_PAGINATION_UPDATED = "pagination:updated";
+declare const EVENT_NAVIGATION_MOUNTED = "navigation:mounted";
+declare const EVENT_AUTOPLAY_PLAY = "autoplay:play";
+declare const EVENT_AUTOPLAY_PLAYING = "autoplay:playing";
+declare const EVENT_AUTOPLAY_PAUSE = "autoplay:pause";
+declare const EVENT_LAZYLOAD_LOADED = "lazyload:loaded";
+
+declare const CLASS_ROOT = "splide";
+declare const CLASS_SLIDER: string;
+declare const CLASS_TRACK: string;
+declare const CLASS_LIST: string;
+declare const CLASS_SLIDE: string;
+declare const CLASS_CLONE: string;
+declare const CLASS_CONTAINER: string;
+declare const CLASS_ARROWS: string;
+declare const CLASS_ARROW: string;
+declare const CLASS_ARROW_PREV: string;
+declare const CLASS_ARROW_NEXT: string;
+declare const CLASS_PAGINATION: string;
+declare const CLASS_PAGINATION_PAGE: string;
+declare const CLASS_PROGRESS: string;
+declare const CLASS_PROGRESS_BAR: string;
+declare const CLASS_AUTOPLAY: string;
+declare const CLASS_PLAY: string;
+declare const CLASS_PAUSE: string;
+declare const CLASS_SPINNER: string;
+declare const CLASS_INITIALIZED = "is-initialized";
+declare const CLASS_ACTIVE = "is-active";
+declare const CLASS_PREV = "is-prev";
+declare const CLASS_NEXT = "is-next";
+declare const CLASS_VISIBLE = "is-visible";
+declare const CLASS_LOADING = "is-loading";
+/**
+ * The array with all status classes.
+ *
+ * @since 3.0.0
+ */
+declare const STATUS_CLASSES: string[];
+/**
+ * The collection of classes for elements that Splide dynamically creates.
+ *
+ * @since 3.0.0
+ */
+declare const CLASSES: {
+    slide: string;
+    clone: string;
+    arrows: string;
+    arrow: string;
+    prev: string;
+    next: string;
+    pagination: string;
+    page: string;
+    spinner: string;
+};
+
+export { AnyFunction, ArrowsComponent, AutoplayComponent, BaseComponent, CLASSES, CLASS_ACTIVE, CLASS_ARROW, CLASS_ARROWS, CLASS_ARROW_NEXT, CLASS_ARROW_PREV, CLASS_AUTOPLAY, CLASS_CLONE, CLASS_CONTAINER, CLASS_INITIALIZED, CLASS_LIST, CLASS_LOADING, CLASS_NEXT, CLASS_PAGINATION, CLASS_PAGINATION_PAGE, CLASS_PAUSE, CLASS_PLAY, CLASS_PREV, CLASS_PROGRESS, CLASS_PROGRESS_BAR, CLASS_ROOT, CLASS_SLIDE, CLASS_SLIDER, CLASS_SPINNER, CLASS_TRACK, CLASS_VISIBLE, ClonesComponent, ComponentConstructor, Components, ControllerComponent, CoverComponent, DirectionComponent, DragComponent, EVENT_ACTIVE, EVENT_ARROWS_MOUNTED, EVENT_ARROWS_UPDATED, EVENT_AUTOPLAY_PAUSE, EVENT_AUTOPLAY_PLAY, EVENT_AUTOPLAY_PLAYING, EVENT_CLICK, EVENT_DESTROY, EVENT_DRAG, EVENT_DRAGGED, EVENT_DRAGGING, EVENT_HIDDEN, EVENT_INACTIVE, EVENT_LAZYLOAD_LOADED, EVENT_MOUNTED, EVENT_MOVE, EVENT_MOVED, EVENT_NAVIGATION_MOUNTED, EVENT_PAGINATION_MOUNTED, EVENT_PAGINATION_UPDATED, EVENT_READY, EVENT_REFRESH, EVENT_REPOSITIONED, EVENT_RESIZE, EVENT_RESIZED, EVENT_SCROLL, EVENT_SCROLLED, EVENT_SHIFTED, EVENT_SLIDE_KEYDOWN, EVENT_UPDATED, EVENT_VISIBLE, ElementsComponent, EventBus, EventBusCallback, EventBusObject, EventHandler, EventInterface, EventInterfaceObject, EventMap, KeyboardComponent, LayoutComponent, LazyLoadComponent, MoveComponent, Options, OptionsComponent, PaginationComponent, PaginationData, PaginationItem, RequestInterval, RequestIntervalInterface, ResponsiveOptions, STATUS_CLASSES, ScrollComponent, SlideComponent, SlidesComponent, Splide, SplideRenderer, State, StateObject, SyncComponent, SyncTarget, Throttle, ThrottleInstance, TransitionComponent, WheelComponent, Splide as default };

+ 0 - 2
dist/types/build/default.d.ts

@@ -1,2 +0,0 @@
-export { Splide as default } from '../core/Splide/Splide';
-//# sourceMappingURL=../../../src/js/build/default.d.ts.map

+ 0 - 1
dist/types/build/default.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC"}

+ 0 - 2
dist/types/build/renderer.d.ts

@@ -1,2 +0,0 @@
-export { SplideRenderer as default } from '../renderer/SplideRenderer/SplideRenderer';
-//# sourceMappingURL=../../../src/js/build/renderer.d.ts.map

+ 0 - 1
dist/types/build/renderer.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,2CAA2C,CAAC"}

+ 0 - 26
dist/types/components/Arrows/Arrows.d.ts

@@ -1,26 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Arrows component.
- *
- * @since 3.0.0
- */
-export interface ArrowsComponent extends BaseComponent {
-    arrows: {
-        prev?: HTMLButtonElement;
-        next?: HTMLButtonElement;
-    };
-}
-/**
- * The component for handling previous and next arrows.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Arrows component object.
- */
-export declare function Arrows(Splide: Splide, Components: Components, options: Options): ArrowsComponent;
-//# sourceMappingURL=../../../../src/js/components/Arrows/Arrows.d.ts.map

+ 0 - 1
dist/types/components/Arrows/Arrows.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Arrows.d.ts","sourceRoot":"","sources":["Arrows.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,iBAAiB,CAAC;QAAC,IAAI,CAAC,EAAE,iBAAiB,CAAA;KAAE,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA6IlG"}

+ 0 - 13
dist/types/components/Arrows/path.d.ts

@@ -1,13 +0,0 @@
-/**
- * The namespace for SVG elements.
- */
-export declare const XML_NAME_SPACE = "http://www.w3.org/2000/svg";
-/**
- * The arrow path.
- */
-export declare const PATH = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";
-/**
- * SVG width and height.
- */
-export declare const SIZE = 40;
-//# sourceMappingURL=../../../../src/js/components/Arrows/path.d.ts.map

+ 0 - 1
dist/types/components/Arrows/path.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["path.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,+BAA+B,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,IAAI,0FAA0F,CAAC;AAE5G;;GAEG;AACH,eAAO,MAAM,IAAI,KAAK,CAAC"}

+ 0 - 25
dist/types/components/Autoplay/Autoplay.d.ts

@@ -1,25 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Autoplay component.
- *
- * @since 3.0.0
- */
-export interface AutoplayComponent extends BaseComponent {
-    play(): void;
-    pause(): void;
-    isPaused(): boolean;
-}
-/**
- * The component for auto playing sliders.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Autoplay component object.
- */
-export declare function Autoplay(Splide: Splide, Components: Components, options: Options): AutoplayComponent;
-//# sourceMappingURL=../../../../src/js/components/Autoplay/Autoplay.d.ts.map

+ 0 - 1
dist/types/components/Autoplay/Autoplay.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Autoplay.d.ts","sourceRoot":"","sources":["Autoplay.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;IACd,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAgJtG"}

+ 0 - 7
dist/types/components/Autoplay/constants.d.ts

@@ -1,7 +0,0 @@
-/**
- * The data attribute for the autoplay interval duration.
- *
- * @since 3.5.0
- */
-export declare const INTERVAL_DATA_ATTRIBUTE: string;
-//# sourceMappingURL=../../../../src/js/components/Autoplay/constants.d.ts.map

+ 0 - 1
dist/types/components/Autoplay/constants.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAiC,CAAC"}

+ 0 - 22
dist/types/components/Clones/Clones.d.ts

@@ -1,22 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Clone component.
- *
- * @since 3.0.0
- */
-export interface ClonesComponent extends BaseComponent {
-}
-/**
- * The component that generates clones for the loop slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Clones component object.
- */
-export declare function Clones(Splide: Splide, Components: Components, options: Options): ClonesComponent;
-//# sourceMappingURL=../../../../src/js/components/Clones/Clones.d.ts.map

+ 0 - 1
dist/types/components/Clones/Clones.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Clones.d.ts","sourceRoot":"","sources":["Clones.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;CACrD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA6HlG"}

+ 0 - 34
dist/types/components/Controller/Controller.d.ts

@@ -1,34 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { AnyFunction, BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Controller component.
- *
- * @since 3.0.0
- */
-export interface ControllerComponent extends BaseComponent {
-    go(control: number | string, allowSameIndex?: boolean, callback?: AnyFunction): void;
-    scroll(destination: number, useIndex?: boolean, snap?: boolean, duration?: number, callback?: AnyFunction): void;
-    getNext(destination?: boolean): number;
-    getPrev(destination?: boolean): number;
-    getAdjacent(prev: boolean, destination?: boolean): number;
-    getEnd(): number;
-    setIndex(index: number): void;
-    getIndex(prev?: boolean): number;
-    toIndex(page: number): number;
-    toPage(index: number): number;
-    toDest(position: number): number;
-    hasFocus(): boolean;
-}
-/**
- * The component for controlling the slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Controller component object.
- */
-export declare function Controller(Splide: Splide, Components: Components, options: Options): ControllerComponent;
-//# sourceMappingURL=../../../../src/js/components/Controller/Controller.d.ts.map

+ 0 - 1
dist/types/components/Controller/Controller.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["Controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI9E;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,EAAE,CAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAI,IAAI,CAAC;IACvF,MAAM,CAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAI,IAAI,CAAC;IACnH,OAAO,CAAE,WAAW,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACzC,OAAO,CAAE,WAAW,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACzC,WAAW,CAAE,IAAI,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IAC5D,MAAM,IAAI,MAAM,CAAC;IACjB,QAAQ,CAAE,KAAK,EAAE,MAAM,GAAI,IAAI,CAAC;IAChC,QAAQ,CAAE,IAAI,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACnC,OAAO,CAAE,IAAI,EAAE,MAAM,GAAI,MAAM,CAAC;IAChC,MAAM,CAAE,KAAK,EAAE,MAAM,GAAI,MAAM,CAAC;IAChC,MAAM,CAAE,QAAQ,EAAE,MAAM,GAAI,MAAM,CAAC;IACnC,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAyU1G"}

+ 0 - 22
dist/types/components/Cover/Cover.d.ts

@@ -1,22 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Cover component.
- *
- * @since 3.0.0
- */
-export interface CoverComponent extends BaseComponent {
-}
-/**
- * The component for setting the image as the slide background.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Cover component object.
- */
-export declare function Cover(Splide: Splide, Components: Components, options: Options): CoverComponent;
-//# sourceMappingURL=../../../../src/js/components/Cover/Cover.d.ts.map

+ 0 - 1
dist/types/components/Cover/Cover.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["Cover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;CACpD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,cAAc,CAmDhG"}

+ 0 - 44
dist/types/components/Direction/Direction.d.ts

@@ -1,44 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Direction component.
- *
- * @since 3.0.0
- */
-export interface DirectionComponent extends BaseComponent {
-    resolve(prop: string, axisOnly?: boolean): string;
-    orient(value: number): number;
-}
-/**
- * The translation map for directions.
- *
- * @since 3.0.0
- */
-export declare const ORIENTATION_MAP: {
-    marginRight: string[];
-    autoWidth: string[];
-    fixedWidth: string[];
-    paddingLeft: string[];
-    paddingRight: string[];
-    width: string[];
-    left: string[];
-    right: string[];
-    x: string[];
-    X: string[];
-    Y: string[];
-    ArrowLeft: string[];
-    ArrowRight: string[];
-};
-/**
- * The component that absorbs the difference among directions.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Direction component object.
- */
-export declare function Direction(Splide: Splide, Components: Components, options: Options): DirectionComponent;
-//# sourceMappingURL=../../../../src/js/components/Direction/Direction.d.ts.map

+ 0 - 1
dist/types/components/Direction/Direction.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Direction.d.ts","sourceRoot":"","sources":["Direction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGjE;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,OAAO,CAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACpD,MAAM,CAAE,KAAK,EAAE,MAAM,GAAI,MAAM,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAc3B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,kBAAkB,CA4BxG"}

+ 0 - 24
dist/types/components/Drag/Drag.d.ts

@@ -1,24 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Drag component.
- *
- * @since 3.0.0
- */
-export interface DragComponent extends BaseComponent {
-    disable(disabled: boolean): void;
-    isDragging(): boolean;
-}
-/**
- * The component for dragging the slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Drag component object.
- */
-export declare function Drag(Splide: Splide, Components: Components, options: Options): DragComponent;
-//# sourceMappingURL=../../../../src/js/components/Drag/Drag.d.ts.map

+ 0 - 1
dist/types/components/Drag/Drag.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Drag.d.ts","sourceRoot":"","sources":["Drag.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,OAAO,CAAE,QAAQ,EAAE,OAAO,GAAI,IAAI,CAAC;IACnC,UAAU,IAAI,OAAO,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CA2U9F"}

+ 0 - 31
dist/types/components/Drag/constants.d.ts

@@ -1,31 +0,0 @@
-/**
- * The power of the friction.
- *
- * @since 3.0.0
- */
-export declare const FRICTION = 5;
-/**
- * If the user stops dragging for this duration with keeping the pointer down, updates the base coord and time.
- *
- * @since 3.0.0
- */
-export declare const LOG_INTERVAL = 200;
-/**
- * Start events for dragging.
- *
- * @since 3.0.0
- */
-export declare const POINTER_DOWN_EVENTS = "touchstart mousedown";
-/**
- * Update events for dragging.
- *
- * @since 3.0.0
- */
-export declare const POINTER_MOVE_EVENTS = "touchmove mousemove";
-/**
- * End events for dragging.
- *
- * @since 3.0.0
- */
-export declare const POINTER_UP_EVENTS = "touchend touchcancel mouseup";
-//# sourceMappingURL=../../../../src/js/components/Drag/constants.d.ts.map

+ 0 - 1
dist/types/components/Drag/constants.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B;;;;GAIG;AACH,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iCAAiC,CAAC"}

+ 0 - 41
dist/types/components/Elements/Elements.d.ts

@@ -1,41 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for elements which the slider consists of.
- *
- * @since 3.0.0
- */
-export interface ElementCollection {
-    root: HTMLElement;
-    slider: HTMLElement;
-    track: HTMLElement;
-    list: HTMLElement;
-    slides: HTMLElement[];
-    arrows: HTMLElement;
-    prev: HTMLButtonElement;
-    next: HTMLButtonElement;
-    bar: HTMLElement;
-    autoplay: HTMLElement;
-    play: HTMLButtonElement;
-    pause: HTMLButtonElement;
-}
-/**
- * The interface for the Elements component.
- *
- * @since 3.0.0
- */
-export interface ElementsComponent extends BaseComponent, ElementCollection {
-}
-/**
- * The component that collects and handles elements which the slider consists of.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Elements component object.
- */
-export declare function Elements(Splide: Splide, Components: Components, options: Options): ElementsComponent;
-//# sourceMappingURL=../../../../src/js/components/Elements/Elements.d.ts.map

+ 0 - 1
dist/types/components/Elements/Elements.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Elements.d.ts","sourceRoot":"","sources":["Elements.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAgBjE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,WAAW,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa,EAAE,iBAAiB;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAiJtG"}

+ 0 - 23
dist/types/components/Keyboard/Keyboard.d.ts

@@ -1,23 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Keyboard component.
- *
- * @since 3.0.0
- */
-export interface KeyboardComponent extends BaseComponent {
-    disable(disabled: boolean): void;
-}
-/**
- * The component for controlling the slider by keyboards.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Keyboard component object.
- */
-export declare function Keyboard(Splide: Splide, Components: Components, options: Options): KeyboardComponent;
-//# sourceMappingURL=../../../../src/js/components/Keyboard/Keyboard.d.ts.map

+ 0 - 1
dist/types/components/Keyboard/Keyboard.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Keyboard.d.ts","sourceRoot":"","sources":["Keyboard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,OAAO,CAAE,QAAQ,EAAE,OAAO,GAAI,IAAI,CAAC;CACpC;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAuGtG"}

+ 0 - 27
dist/types/components/Layout/Layout.d.ts

@@ -1,27 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Layout component.
- *
- * @since 3.0.0
- */
-export interface LayoutComponent extends BaseComponent {
-    listSize(): number;
-    slideSize(index: number, withoutGap?: boolean): number;
-    sliderSize(): number;
-    totalSize(index?: number, withoutGap?: boolean): number;
-    getPadding(right: boolean): number;
-}
-/**
- * The component that layouts slider components and provides methods for dimensions.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Layout component object.
- */
-export declare function Layout(Splide: Splide, Components: Components, options: Options): LayoutComponent;
-//# sourceMappingURL=../../../../src/js/components/Layout/Layout.d.ts.map

+ 0 - 1
dist/types/components/Layout/Layout.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["Layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,QAAQ,IAAI,MAAM,CAAC;IACnB,SAAS,CAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACzD,UAAU,IAAI,MAAM,CAAC;IACrB,SAAS,CAAE,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IAC1D,UAAU,CAAE,KAAK,EAAE,OAAO,GAAI,MAAM,CAAC;CACtC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA4NlG"}

+ 0 - 35
dist/types/components/LazyLoad/LazyLoad.d.ts

@@ -1,35 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-import { SlideComponent } from '../Slides/Slide';
-/**
- * The interface for the LazyLoad component.
- *
- * @since 3.0.0
- */
-export interface LazyLoadComponent extends BaseComponent {
-}
-/**
- * The interface for all components.
- *
- * @since 3.0.0
- */
-export interface LazyLoadImagesData {
-    _img: HTMLImageElement;
-    _spinner: HTMLSpanElement;
-    _Slide: SlideComponent;
-    src: string | null;
-    srcset: string | null;
-}
-/**
- * The component for lazily loading images.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An LazyLoad component object.
- */
-export declare function LazyLoad(Splide: Splide, Components: Components, options: Options): LazyLoadComponent;
-//# sourceMappingURL=../../../../src/js/components/LazyLoad/LazyLoad.d.ts.map

+ 0 - 1
dist/types/components/LazyLoad/LazyLoad.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"LazyLoad.d.ts","sourceRoot":"","sources":["LazyLoad.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAYjE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAiJtG"}

+ 0 - 19
dist/types/components/LazyLoad/constants.d.ts

@@ -1,19 +0,0 @@
-/**
- * The data attribute for the src value.
- *
- * @since 3.0.0
- */
-export declare const SRC_DATA_ATTRIBUTE: string;
-/**
- * The data attribute for the srcset value.
- *
- * @since 3.0.0
- */
-export declare const SRCSET_DATA_ATTRIBUTE: string;
-/**
- * The selector string for images to load.
- *
- * @since 3.0.0
- */
-export declare const IMAGE_SELECTOR: string;
-//# sourceMappingURL=../../../../src/js/components/LazyLoad/constants.d.ts.map

+ 0 - 1
dist/types/components/LazyLoad/constants.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAA6B,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAmC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAA4D,CAAC"}

+ 0 - 33
dist/types/components/Move/Move.d.ts

@@ -1,33 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { AnyFunction, BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Move component.
- *
- * @since 3.0.0
- */
-export interface MoveComponent extends BaseComponent {
-    move(dest: number, index: number, prev: number, callback?: AnyFunction): void;
-    jump(index: number): void;
-    translate(position: number, preventLoop?: boolean): void;
-    shift(position: number, backwards: boolean): number;
-    cancel(): void;
-    toIndex(position: number): number;
-    toPosition(index: number, trimming?: boolean): number;
-    getPosition(): number;
-    getLimit(max: boolean): number;
-    isBusy(): boolean;
-    exceededLimit(max?: boolean | undefined, position?: number): boolean;
-}
-/**
- * The component for moving the slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Move component object.
- */
-export declare function Move(Splide: Splide, Components: Components, options: Options): MoveComponent;
-//# sourceMappingURL=../../../../src/js/components/Move/Move.d.ts.map

+ 0 - 1
dist/types/components/Move/Move.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Move.d.ts","sourceRoot":"","sources":["Move.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAuB,MAAM,aAAa,CAAC;AAInG;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,IAAI,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAI,IAAI,CAAC;IAChF,IAAI,CAAE,KAAK,EAAE,MAAM,GAAI,IAAI,CAAC;IAC5B,SAAS,CAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,GAAI,IAAI,CAAC;IAC3D,KAAK,CAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAI,MAAM,CAAC;IACtD,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,CAAE,QAAQ,EAAE,MAAM,GAAI,MAAM,CAAC;IACpC,UAAU,CAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACxD,WAAW,IAAI,MAAM,CAAC;IACtB,QAAQ,CAAE,GAAG,EAAE,OAAO,GAAI,MAAM,CAAC;IACjC,MAAM,IAAI,OAAO,CAAC;IAClB,aAAa,CAAE,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,OAAO,CAAC;CACxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CAyQ9F"}

+ 0 - 22
dist/types/components/Options/Options.d.ts

@@ -1,22 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Options component.
- *
- * @since 3.0.0
- */
-export interface OptionsComponent extends BaseComponent {
-}
-/**
- * The component for managing options.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Options component object.
- */
-export declare function Options(Splide: Splide, Components: Components, options: Options): OptionsComponent;
-//# sourceMappingURL=../../../../src/js/components/Options/Options.d.ts.map

+ 0 - 1
dist/types/components/Options/Options.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["Options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;CACtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,gBAAgB,CA2GpG"}

+ 0 - 44
dist/types/components/Pagination/Pagination.d.ts

@@ -1,44 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Pagination component.
- *
- * @since 3.0.0
- */
-export interface PaginationComponent extends BaseComponent {
-    items: PaginationItem[];
-    getAt(index: number): PaginationItem;
-    update(): void;
-}
-/**
- * The interface for data of the pagination.
- *
- * @since 3.0.0
- */
-export interface PaginationData {
-    list: HTMLUListElement;
-    items: PaginationItem[];
-}
-/**
- * The interface for each pagination item.
- *
- * @since 3.0.0
- */
-export interface PaginationItem {
-    li: HTMLLIElement;
-    button: HTMLButtonElement;
-    page: number;
-}
-/**
- * The component for handling previous and next arrows.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Arrows component object.
- */
-export declare function Pagination(Splide: Splide, Components: Components, options: Options): PaginationComponent;
-//# sourceMappingURL=../../../../src/js/components/Pagination/Pagination.d.ts.map

+ 0 - 1
dist/types/components/Pagination/Pagination.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAejE;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAE,KAAK,EAAE,MAAM,GAAI,cAAc,CAAC;IACvC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,aAAa,CAAC;IAClB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAgI1G"}

+ 0 - 24
dist/types/components/Scroll/Scroll.d.ts

@@ -1,24 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { AnyFunction, BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Scroll component.
- *
- * @since 3.0.0
- */
-export interface ScrollComponent extends BaseComponent {
-    scroll(position: number, duration?: number, callback?: AnyFunction): void;
-    cancel(): void;
-}
-/**
- * The component for scrolling the slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Scroll component object.
- */
-export declare function Scroll(Splide: Splide, Components: Components, options: Options): ScrollComponent;
-//# sourceMappingURL=../../../../src/js/components/Scroll/Scroll.d.ts.map

+ 0 - 1
dist/types/components/Scroll/Scroll.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Scroll.d.ts","sourceRoot":"","sources":["Scroll.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK9E;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,MAAM,CAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAI,IAAI,CAAC;IAC5E,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CAwIlG"}

+ 0 - 31
dist/types/components/Scroll/constants.d.ts

@@ -1,31 +0,0 @@
-/**
- * Triggers the bounce effect when the diff becomes less than this value.
- *
- * @since 3.0.0
- */
-export declare const BOUNCE_DIFF_THRESHOLD = 10;
-/**
- * The duration of the bounce effect.
- *
- * @since 3.0.0
- */
-export declare const BOUNCE_DURATION = 600;
-/**
- * The friction factor.
- *
- * @since 3.0.0
- */
-export declare const FRICTION_FACTOR = 0.6;
-/**
- * The velocity to calculate the scroll duration.
- *
- * @since 3.0.0
- */
-export declare const BASE_VELOCITY = 1.5;
-/**
- * The minimum duration of scroll.
- *
- * @since 3.0.0
- */
-export declare const MIN_DURATION = 800;
-//# sourceMappingURL=../../../../src/js/components/Scroll/constants.d.ts.map

+ 0 - 1
dist/types/components/Scroll/constants.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,YAAY,MAAM,CAAC"}

+ 0 - 31
dist/types/components/Slides/Slide.d.ts

@@ -1,31 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent } from '../../types';
-/**
- * The interface for the Slide sub component.
- *
- * @since 3.0.0
- */
-export interface SlideComponent extends BaseComponent {
-    index: number;
-    slideIndex: number;
-    slide: HTMLElement;
-    container: HTMLElement;
-    isClone: boolean;
-    update(): void;
-    style(prop: string, value: string | number, useContainer?: boolean): void;
-    isWithin(from: number, distance: number): boolean;
-}
-/**
- * The sub component for managing each slide.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param index      - A slide index.
- * @param slideIndex - A slide index for clones. This must be `-1` if the slide is not a clone.
- * @param slide      - A slide element.
- *
- * @return A Slide sub component.
- */
-export declare function Slide(Splide: Splide, index: number, slideIndex: number, slide: HTMLElement): SlideComponent;
-//# sourceMappingURL=../../../../src/js/components/Slides/Slide.d.ts.map

+ 0 - 1
dist/types/components/Slides/Slide.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAqB5C;;;;GAIG;AACH,MAAM,WAAY,cAAe,SAAQ,aAAa;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,IAAI,IAAI,CAAC;IACf,KAAK,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAI,IAAI,CAAA;IAC3E,QAAQ,CAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAI,OAAO,CAAC;CACrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAI,cAAc,CAoM7G"}

+ 0 - 53
dist/types/components/Slides/Slides.d.ts

@@ -1,53 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-import { SlideComponent } from './Slide';
-/**
- * The interface for the Slides component.
- *
- * @since 3.0.0
- */
-export interface SlidesComponent extends BaseComponent {
-    update(): void;
-    register(slide: HTMLElement, index: number, slideIndex: number): void;
-    get(excludeClones?: boolean): SlideComponent[];
-    getIn(page: number): SlideComponent[];
-    getAt(index: number): SlideComponent | undefined;
-    add(slide: string | Element | Array<string | Element>, index?: number): void;
-    remove(selector: SlideMatcher): void;
-    forEach(iteratee: SlidesIteratee, excludeClones?: boolean): void;
-    filter(matcher: SlideMatcher): SlideComponent[];
-    style(prop: string, value: string | number, useContainer?: boolean): void;
-    getLength(excludeClones?: boolean): number;
-    isEnough(): boolean;
-}
-/**
- * The iteratee function for Slides.
- *
- * @since 3.0.0
- */
-export declare type SlidesIteratee = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => void;
-/**
- * The predicate function for Slides.
- *
- * @since 3.0.0
- */
-export declare type SlidesPredicate = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => any;
-/**
- * The type for filtering SlideComponent objects.
- *
- * @since 3.0.0
- */
-export declare type SlideMatcher = number | number[] | string | SlidesPredicate;
-/**
- * The component for managing all slides include clones.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return An Slides component object.
- */
-export declare function Slides(Splide: Splide, Components: Components, options: Options): SlidesComponent;
-//# sourceMappingURL=../../../../src/js/components/Slides/Slides.d.ts.map

+ 0 - 1
dist/types/components/Slides/Slides.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Slides.d.ts","sourceRoot":"","sources":["Slides.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAe,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAkB9E,OAAO,EAAS,cAAc,EAAE,MAAM,SAAS,CAAC;AAGhD;;;;GAIG;AACH,MAAM,WAAY,eAAgB,SAAQ,aAAa;IACrD,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,CAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAI,IAAI,CAAC;IACxE,GAAG,CAAE,aAAa,CAAC,EAAE,OAAO,GAAI,cAAc,EAAE,CAAC;IACjD,KAAK,CAAE,IAAI,EAAE,MAAM,GAAI,cAAc,EAAE,CAAC;IACxC,KAAK,CAAE,KAAK,EAAE,MAAM,GAAI,cAAc,GAAG,SAAS,CAAC;IACnD,GAAG,CAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IAC/E,MAAM,CAAE,QAAQ,EAAE,YAAY,GAAI,IAAI,CAAC;IACvC,OAAO,CAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,CAAC,EAAE,OAAO,GAAI,IAAI,CAAC;IACnE,MAAM,CAAE,OAAO,EAAE,YAAY,GAAI,cAAc,EAAE,CAAC;IAClD,KAAK,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAI,IAAI,CAAA;IAC3E,SAAS,CAAE,aAAa,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IAC7C,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,oBAAY,cAAc,GAAG,CAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,KAAM,IAAI,CAAA;AAEvG;;;;GAIG;AACH,oBAAY,eAAe,GAAG,CAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,KAAM,GAAG,CAAA;AAEvG;;;;GAIG;AACH,oBAAY,YAAY,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,eAAe,CAAC;AAExE;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CAsOlG"}

+ 0 - 23
dist/types/components/Sync/Sync.d.ts

@@ -1,23 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Sync component.
- *
- * @since 3.0.0
- */
-export interface SyncComponent extends BaseComponent {
-    remount(): void;
-}
-/**
- * The component for syncing multiple sliders.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Sync component object.
- */
-export declare function Sync(Splide: Splide, Components: Components, options: Options): SyncComponent;
-//# sourceMappingURL=../../../../src/js/components/Sync/Sync.d.ts.map

+ 0 - 1
dist/types/components/Sync/Sync.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Sync.d.ts","sourceRoot":"","sources":["Sync.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,OAAO,IAAI,IAAI,CAAC;CACjB;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CAyG9F"}

+ 0 - 22
dist/types/components/Wheel/Wheel.d.ts

@@ -1,22 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { BaseComponent, Components, Options } from '../../types';
-/**
- * The interface for the Wheel component.
- *
- * @since 3.0.0
- */
-export interface WheelComponent extends BaseComponent {
-}
-/**
- * The component for observing the mouse wheel and moving the slider.
- *
- * @since 3.0.0
- *
- * @param Splide     - A Splide instance.
- * @param Components - A collection of components.
- * @param options    - Options.
- *
- * @return A Wheel component object.
- */
-export declare function Wheel(Splide: Splide, Components: Components, options: Options): WheelComponent;
-//# sourceMappingURL=../../../../src/js/components/Wheel/Wheel.d.ts.map

+ 0 - 1
dist/types/components/Wheel/Wheel.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Wheel.d.ts","sourceRoot":"","sources":["Wheel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;CACpD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,cAAc,CA6ChG"}

+ 0 - 19
dist/types/components/index.d.ts

@@ -1,19 +0,0 @@
-export { Options } from './Options/Options';
-export { Direction } from './Direction/Direction';
-export { Elements } from './Elements/Elements';
-export { Slides } from './Slides/Slides';
-export { Layout } from './Layout/Layout';
-export { Clones } from './Clones/Clones';
-export { Move } from './Move/Move';
-export { Controller } from './Controller/Controller';
-export { Arrows } from './Arrows/Arrows';
-export { Autoplay } from './Autoplay/Autoplay';
-export { Cover } from './Cover/Cover';
-export { Scroll } from './Scroll/Scroll';
-export { Drag } from './Drag/Drag';
-export { Keyboard } from './Keyboard/Keyboard';
-export { LazyLoad } from './LazyLoad/LazyLoad';
-export { Pagination } from './Pagination/Pagination';
-export { Sync } from './Sync/Sync';
-export { Wheel } from './Wheel/Wheel';
-//# sourceMappingURL=../../../src/js/components/index.d.ts.map

+ 0 - 1
dist/types/components/index.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAS,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAO,uBAAuB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAQ,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAU,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAU,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAU,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAY,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAU,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAQ,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAW,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAU,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAY,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAQ,qBAAqB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAQ,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAY,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAW,eAAe,CAAC"}

+ 0 - 21
dist/types/components/types.d.ts

@@ -1,21 +0,0 @@
-export type { OptionsComponent } from './Options/Options';
-export type { DirectionComponent } from './Direction/Direction';
-export type { ElementsComponent } from './Elements/Elements';
-export type { SlidesComponent } from './Slides/Slides';
-export type { SlideComponent } from './Slides/Slide';
-export type { LayoutComponent } from './Layout/Layout';
-export type { ClonesComponent } from './Clones/Clones';
-export type { MoveComponent } from './Move/Move';
-export type { ControllerComponent } from './Controller/Controller';
-export type { ArrowsComponent } from './Arrows/Arrows';
-export type { AutoplayComponent } from './Autoplay/Autoplay';
-export type { CoverComponent } from './Cover/Cover';
-export type { ScrollComponent } from './Scroll/Scroll';
-export type { DragComponent } from './Drag/Drag';
-export type { KeyboardComponent } from './Keyboard/Keyboard';
-export type { LazyLoadComponent } from './LazyLoad/LazyLoad';
-export type { PaginationComponent } from './Pagination/Pagination';
-export type { SyncComponent } from './Sync/Sync';
-export type { WheelComponent } from './Wheel/Wheel';
-export type { PaginationData, PaginationItem } from './Pagination/Pagination';
-//# sourceMappingURL=../../../src/js/components/types.d.ts.map

+ 0 - 1
dist/types/components/types.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAS,mBAAmB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAO,uBAAuB,CAAC;AACjE,YAAY,EAAE,iBAAiB,EAAE,MAAQ,qBAAqB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAU,iBAAiB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAW,gBAAgB,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAU,iBAAiB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAU,iBAAiB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAY,aAAa,CAAC;AACvD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,MAAU,iBAAiB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAQ,qBAAqB,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAW,eAAe,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,MAAU,iBAAiB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAY,aAAa,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAQ,qBAAqB,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,MAAQ,qBAAqB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,MAAY,aAAa,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAW,eAAe,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC"}

+ 0 - 15
dist/types/constants/attributes.d.ts

@@ -1,15 +0,0 @@
-export declare const ROLE = "role";
-export declare const ARIA_CONTROLS = "aria-controls";
-export declare const ARIA_CURRENT = "aria-current";
-export declare const ARIA_LABEL = "aria-label";
-export declare const ARIA_HIDDEN = "aria-hidden";
-export declare const TAB_INDEX = "tabindex";
-export declare const DISABLED = "disabled";
-export declare const ARIA_ORIENTATION = "aria-orientation";
-/**
- * The array with all attributes.
- *
- * @since 3.0.0
- */
-export declare const ALL_ATTRIBUTES: string[];
-//# sourceMappingURL=../../../src/js/constants/attributes.d.ts.map

+ 0 - 1
dist/types/constants/attributes.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["attributes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,SAAqB,CAAC;AACvC,eAAO,MAAM,aAAa,kBAAqB,CAAC;AAChD,eAAO,MAAM,YAAY,iBAAqB,CAAC;AAC/C,eAAO,MAAM,UAAU,eAAqB,CAAC;AAC7C,eAAO,MAAM,WAAW,gBAAqB,CAAC;AAC9C,eAAO,MAAM,SAAS,aAAoB,CAAC;AAC3C,eAAO,MAAM,QAAQ,aAAqB,CAAC;AAC3C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAS1B,CAAC"}

+ 0 - 48
dist/types/constants/classes.d.ts

@@ -1,48 +0,0 @@
-export declare const CLASS_ROOT = "splide";
-export declare const CLASS_SLIDER: string;
-export declare const CLASS_TRACK: string;
-export declare const CLASS_LIST: string;
-export declare const CLASS_SLIDE: string;
-export declare const CLASS_CLONE: string;
-export declare const CLASS_CONTAINER: string;
-export declare const CLASS_ARROWS: string;
-export declare const CLASS_ARROW: string;
-export declare const CLASS_ARROW_PREV: string;
-export declare const CLASS_ARROW_NEXT: string;
-export declare const CLASS_PAGINATION: string;
-export declare const CLASS_PAGINATION_PAGE: string;
-export declare const CLASS_PROGRESS: string;
-export declare const CLASS_PROGRESS_BAR: string;
-export declare const CLASS_AUTOPLAY: string;
-export declare const CLASS_PLAY: string;
-export declare const CLASS_PAUSE: string;
-export declare const CLASS_SPINNER: string;
-export declare const CLASS_INITIALIZED = "is-initialized";
-export declare const CLASS_ACTIVE = "is-active";
-export declare const CLASS_PREV = "is-prev";
-export declare const CLASS_NEXT = "is-next";
-export declare const CLASS_VISIBLE = "is-visible";
-export declare const CLASS_LOADING = "is-loading";
-/**
- * The array with all status classes.
- *
- * @since 3.0.0
- */
-export declare const STATUS_CLASSES: string[];
-/**
- * The collection of classes for elements that Splide dynamically creates.
- *
- * @since 3.0.0
- */
-export declare const CLASSES: {
-    slide: string;
-    clone: string;
-    arrows: string;
-    arrow: string;
-    prev: string;
-    next: string;
-    pagination: string;
-    page: string;
-    spinner: string;
-};
-//# sourceMappingURL=../../../src/js/constants/classes.d.ts.map

+ 0 - 1
dist/types/constants/classes.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["classes.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,WAA0B,CAAC;AAClD,eAAO,MAAM,YAAY,QAAuC,CAAC;AACjE,eAAO,MAAM,WAAW,QAAuC,CAAC;AAChE,eAAO,MAAM,UAAU,QAAuC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAAuC,CAAC;AAChE,eAAO,MAAM,WAAW,QAAsC,CAAC;AAC/D,eAAO,MAAM,eAAe,QAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,QAAuC,CAAC;AACjE,eAAO,MAAM,WAAW,QAAuC,CAAC;AAChE,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAC9D,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAC9D,eAAO,MAAM,gBAAgB,QAAuC,CAAC;AACrE,eAAO,MAAM,qBAAqB,QAAgC,CAAC;AACnE,eAAO,MAAM,cAAc,QAAuC,CAAC;AACnE,eAAO,MAAM,kBAAkB,QAAgC,CAAC;AAChE,eAAO,MAAM,cAAc,QAAuC,CAAC;AACnE,eAAO,MAAM,UAAU,QAAuC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAAuC,CAAC;AAChE,eAAO,MAAM,aAAa,QAAuC,CAAC;AAClE,eAAO,MAAM,iBAAiB,mBAAuB,CAAC;AACtD,eAAO,MAAM,YAAY,cAAuB,CAAC;AACjD,eAAO,MAAM,UAAU,YAAuB,CAAC;AAC/C,eAAO,MAAM,UAAU,YAAuB,CAAC;AAC/C,eAAO,MAAM,aAAa,eAAuB,CAAC;AAClD,eAAO,MAAM,aAAa,eAAuB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAyE,CAAC;AAErG;;;;GAIG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC"}

+ 0 - 9
dist/types/constants/defaults.d.ts

@@ -1,9 +0,0 @@
-import { Options } from '../types';
-/**
- * The collection of default options.
- * Note that this collection does not contain all options.
- *
- * @since 3.0.0
- */
-export declare const DEFAULTS: Options;
-//# sourceMappingURL=../../../src/js/constants/defaults.d.ts.map

+ 0 - 1
dist/types/constants/defaults.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,OAqBtB,CAAC"}

+ 0 - 13
dist/types/constants/directions.d.ts

@@ -1,13 +0,0 @@
-/**
- * Enumerates slides from left to right.
- */
-export declare const LTR = "ltr";
-/**
- * Enumerates slides from right to left.
- */
-export declare const RTL = "rtl";
-/**
- * Enumerates slides in a col.
- */
-export declare const TTB = "ttb";
-//# sourceMappingURL=../../../src/js/constants/directions.d.ts.map

+ 0 - 1
dist/types/constants/directions.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"directions.d.ts","sourceRoot":"","sources":["directions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,GAAG,QAAQ,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,GAAG,QAAQ,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,GAAG,QAAQ,CAAC"}

+ 0 - 32
dist/types/constants/events.d.ts

@@ -1,32 +0,0 @@
-export declare const EVENT_MOUNTED = "mounted";
-export declare const EVENT_READY = "ready";
-export declare const EVENT_MOVE = "move";
-export declare const EVENT_MOVED = "moved";
-export declare const EVENT_SHIFTED = "shifted";
-export declare const EVENT_CLICK = "click";
-export declare const EVENT_ACTIVE = "active";
-export declare const EVENT_INACTIVE = "inactive";
-export declare const EVENT_VISIBLE = "visible";
-export declare const EVENT_HIDDEN = "hidden";
-export declare const EVENT_SLIDE_KEYDOWN = "slide:keydown";
-export declare const EVENT_REFRESH = "refresh";
-export declare const EVENT_UPDATED = "updated";
-export declare const EVENT_RESIZE = "resize";
-export declare const EVENT_RESIZED = "resized";
-export declare const EVENT_REPOSITIONED = "repositioned";
-export declare const EVENT_DRAG = "drag";
-export declare const EVENT_DRAGGING = "dragging";
-export declare const EVENT_DRAGGED = "dragged";
-export declare const EVENT_SCROLL = "scroll";
-export declare const EVENT_SCROLLED = "scrolled";
-export declare const EVENT_DESTROY = "destroy";
-export declare const EVENT_ARROWS_MOUNTED = "arrows:mounted";
-export declare const EVENT_ARROWS_UPDATED = "arrows:updated";
-export declare const EVENT_PAGINATION_MOUNTED = "pagination:mounted";
-export declare const EVENT_PAGINATION_UPDATED = "pagination:updated";
-export declare const EVENT_NAVIGATION_MOUNTED = "navigation:mounted";
-export declare const EVENT_AUTOPLAY_PLAY = "autoplay:play";
-export declare const EVENT_AUTOPLAY_PLAYING = "autoplay:playing";
-export declare const EVENT_AUTOPLAY_PAUSE = "autoplay:pause";
-export declare const EVENT_LAZYLOAD_LOADED = "lazyload:loaded";
-//# sourceMappingURL=../../../src/js/constants/events.d.ts.map

+ 0 - 1
dist/types/constants/events.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,WAAW,UAAuB,CAAC;AAChD,eAAO,MAAM,UAAU,SAAuB,CAAC;AAC/C,eAAO,MAAM,WAAW,UAAuB,CAAC;AAChD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,WAAW,UAAuB,CAAC;AAChD,eAAO,MAAM,YAAY,WAAuB,CAAC;AACjD,eAAO,MAAM,cAAc,aAAuB,CAAC;AACnD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,YAAY,WAAuB,CAAC;AACjD,eAAO,MAAM,mBAAmB,kBAAuB,CAAC;AACxD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,YAAY,WAAuB,CAAC;AACjD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,kBAAkB,iBAAuB,CAAC;AACvD,eAAO,MAAM,UAAU,SAAuB,CAAC;AAC/C,eAAO,MAAM,cAAc,aAAuB,CAAC;AACnD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,YAAY,WAAuB,CAAC;AACjD,eAAO,MAAM,cAAc,aAAuB,CAAC;AACnD,eAAO,MAAM,aAAa,YAAuB,CAAC;AAClD,eAAO,MAAM,oBAAoB,mBAAuB,CAAC;AACzD,eAAO,MAAM,oBAAoB,mBAAuB,CAAC;AACzD,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,mBAAmB,kBAAuB,CAAC;AACxD,eAAO,MAAM,sBAAsB,qBAAuB,CAAC;AAC3D,eAAO,MAAM,oBAAoB,mBAAuB,CAAC;AACzD,eAAO,MAAM,qBAAqB,oBAAuB,CAAC"}

+ 0 - 16
dist/types/constants/i18n.d.ts

@@ -1,16 +0,0 @@
-/**
- * The collection of i18n strings.
- *
- * @since 3.0.0
- */
-export declare const I18N: {
-    prev: string;
-    next: string;
-    first: string;
-    last: string;
-    slideX: string;
-    pageX: string;
-    play: string;
-    pause: string;
-};
-//# sourceMappingURL=../../../src/js/constants/i18n.d.ts.map

+ 0 - 1
dist/types/constants/i18n.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["i18n.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;;;;;CAShB,CAAC"}

+ 0 - 10
dist/types/constants/listener-options.d.ts

@@ -1,10 +0,0 @@
-/**
- * AddEventListenerOptions for listeners that may prevent the browser scroll.
- *
- * @since 3.4.1
- */
-export declare const SCROLL_LISTENER_OPTIONS: {
-    passive: boolean;
-    capture: boolean;
-};
-//# sourceMappingURL=../../../src/js/constants/listener-options.d.ts.map

+ 0 - 1
dist/types/constants/listener-options.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"listener-options.d.ts","sourceRoot":"","sources":["listener-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;CAAoC,CAAC"}

+ 0 - 13
dist/types/constants/priority.d.ts

@@ -1,13 +0,0 @@
-/**
- * The default priority for internal handlers.
- *
- * @since 3.0.0
- */
-export declare const DEFAULT_EVENT_PRIORITY = 10;
-/**
- * The default priority for users' handlers.
- *
- * @since 3.0.0
- */
-export declare const DEFAULT_USER_EVENT_PRIORITY = 20;
-//# sourceMappingURL=../../../src/js/constants/priority.d.ts.map

+ 0 - 1
dist/types/constants/priority.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["priority.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC"}

+ 0 - 13
dist/types/constants/project.d.ts

@@ -1,13 +0,0 @@
-/**
- * The project code.
- *
- * @since 3.0.0
- */
-export declare const PROJECT_CODE = "splide";
-/**
- * The data attribute prefix.
- *
- * @since 3.0.0
- */
-export declare const DATA_ATTRIBUTE: string;
-//# sourceMappingURL=../../../src/js/constants/project.d.ts.map

+ 0 - 1
dist/types/constants/project.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["project.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAA2B,CAAC"}

+ 0 - 33
dist/types/constants/states.d.ts

@@ -1,33 +0,0 @@
-/**
- * Splide has been just created.
- */
-export declare const CREATED = 1;
-/**
- * Splide has mounted components.
- */
-export declare const MOUNTED = 2;
-/**
- * Splide is ready.
- */
-export declare const IDLE = 3;
-/**
- * Splide is moving.
- */
-export declare const MOVING = 4;
-/**
- * Splide has been destroyed.
- */
-export declare const DESTROYED = 5;
-/**
- * The collection of all states.
- *
- * @since 3.0.0
- */
-export declare const STATES: {
-    CREATED: number;
-    MOUNTED: number;
-    IDLE: number;
-    MOVING: number;
-    DESTROYED: number;
-};
-//# sourceMappingURL=../../../src/js/constants/states.d.ts.map

+ 0 - 1
dist/types/constants/states.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["states.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,IAAI,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,OAAO,IAAI,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,IAAI,IAAI,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,MAAM,IAAI,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,SAAS,IAAI,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}

+ 0 - 19
dist/types/constants/types.d.ts

@@ -1,19 +0,0 @@
-/**
- * The type for the regular slider.
- *
- * @since 3.0.0
- */
-export declare const SLIDE = "slide";
-/**
- * The type for the carousel slider.
- *
- * @since 3.0.0
- */
-export declare const LOOP = "loop";
-/**
- * The type for the fade slider that can not have multiple slides in a page.
- *
- * @since 3.0.0
- */
-export declare const FADE = "fade";
-//# sourceMappingURL=../../../src/js/constants/types.d.ts.map

+ 0 - 1
dist/types/constants/types.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,KAAK,UAAU,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,IAAI,SAAS,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,IAAI,SAAS,CAAC"}

+ 0 - 40
dist/types/constructors/EventBus/EventBus.d.ts

@@ -1,40 +0,0 @@
-import { AnyFunction } from '../../types';
-/**
- * The interface for the EventBus instance.
- *
- * @since 3.0.0
- */
-export interface EventBusObject {
-    on(events: string | string[], callback: EventBusCallback, key?: object, priority?: number): void;
-    off(events: string | string[], key?: object): void;
-    offBy(key: object): void;
-    emit(event: string, ...args: any[]): void;
-    destroy(): void;
-}
-/**
- * The interface for each event handler object.
- *
- * @since 3.0.0
- */
-export interface EventHandler {
-    _event: string;
-    _callback: AnyFunction;
-    _namespace: string;
-    _priority: number;
-    _key?: object;
-}
-/**
- * The type for a callback function of the EventBus.
- *
- * @since 3.0.0
- */
-export declare type EventBusCallback = AnyFunction;
-/**
- * The constructor to provided a simple event system.
- *
- * @since 3.0.0
- *
- * @return An EventBus object.
- */
-export declare function EventBus(): EventBusObject;
-//# sourceMappingURL=../../../../src/js/constructors/EventBus/EventBus.d.ts.map

+ 0 - 1
dist/types/constructors/EventBus/EventBus.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"EventBus.d.ts","sourceRoot":"","sources":["EventBus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IACnG,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IACrD,KAAK,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI,CAAC;IAC3B,IAAI,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAI,IAAI,CAAC;IAC5C,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,oBAAY,gBAAgB,GAAG,WAAW,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAuGzC"}

+ 0 - 29
dist/types/constructors/EventInterface/EventInterface.d.ts

@@ -1,29 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { AnyFunction, EventMap } from '../../types';
-import { EventBusCallback } from '../EventBus/EventBus';
-/**
- * The interface for the EventInterface object.
- *
- * @since 3.0.0
- */
-export interface EventInterfaceObject {
-    on<K extends keyof EventMap>(event: K, callback: EventMap[K], priority?: number): void;
-    on(events: string | string[], callback: EventBusCallback, priority?: number): void;
-    off<K extends keyof EventMap>(events: K | K[] | string | string[]): void;
-    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): void;
-    emit(event: string, ...args: any[]): void;
-    bind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback: AnyFunction, options?: AddEventListenerOptions): void;
-    unbind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback?: AnyFunction): void;
-    destroy(): void;
-}
-/**
- * The function that provides interface for internal and native events.
- *
- * @since 3.0.0
- *
- * @param Splide - A Splide instance.
- *
- * @return A collection of interface functions.
- */
-export declare function EventInterface(Splide: Splide): EventInterfaceObject;
-//# sourceMappingURL=../../../../src/js/constructors/EventInterface/EventInterface.d.ts.map

+ 0 - 1
dist/types/constructors/EventInterface/EventInterface.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"EventInterface.d.ts","sourceRoot":"","sources":["EventInterface.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAG,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAE,CAAC,CAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IAC3F,EAAE,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IACrF,GAAG,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAG,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,GAAI,IAAI,CAAC;IAC3E,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAG,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAE,CAAC,CAAE,CAAC,GAAI,IAAI,CAAA;IACpF,IAAI,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAI,IAAI,CAAC;IAC5C,IAAI,CACF,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC,EACxE,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,uBAAuB,GAChC,IAAI,CAAA;IACP,MAAM,CACJ,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC,EACxE,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,WAAW,GACrB,IAAI,CAAC;IACR,OAAO,IAAI,IAAI,CAAC;CACjB;AASD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,MAAM,EAAE,MAAM,GAAI,oBAAoB,CAuHrE"}

+ 0 - 25
dist/types/constructors/RequestInterval/RequestInterval.d.ts

@@ -1,25 +0,0 @@
-/**
- * The interface for the returning value of the RequestInterval.
- *
- * @since 3.0.0
- */
-export interface RequestIntervalInterface {
-    start(resume?: boolean): void;
-    pause(): void;
-    rewind(): void;
-    cancel(): void;
-    set(interval: number): void;
-    isPaused(): boolean;
-}
-/**
- * Requests interval like the native `setInterval()` with using `requestAnimationFrame`.
- *
- * @since 3.0.0
- *
- * @param interval   - The interval duration in milliseconds.
- * @param onInterval - The callback fired on every interval.
- * @param onUpdate   - Optional. Called on every animation frame, taking the progress rate.
- * @param limit      - Optional. Limits the number of interval.
- */
-export declare function RequestInterval(interval: number, onInterval: () => void, onUpdate?: (rate: number) => void, limit?: number): RequestIntervalInterface;
-//# sourceMappingURL=../../../../src/js/constructors/RequestInterval/RequestInterval.d.ts.map

+ 0 - 1
dist/types/constructors/RequestInterval/RequestInterval.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"RequestInterval.d.ts","sourceRoot":"","sources":["RequestInterval.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAE,MAAM,CAAC,EAAE,OAAO,GAAI,IAAI,CAAC;IAChC,KAAK,IAAI,IAAI,CAAC;IACd,MAAM,IAAI,IAAI,CAAC;IACf,MAAM,IAAI,IAAI,CAAC;IACf,GAAG,CAAE,QAAQ,EAAE,MAAM,GAAI,IAAI,CAAC;IAC9B,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,IAAI,EACtB,QAAQ,CAAC,EAAE,CAAE,IAAI,EAAE,MAAM,KAAM,IAAI,EACnC,KAAK,CAAC,EAAE,MAAM,GACb,wBAAwB,CA6H1B"}

+ 0 - 16
dist/types/constructors/State/State.d.ts

@@ -1,16 +0,0 @@
-/**
- * The interface for the State object.
- *
- * @since 3.0.0
- */
-export interface StateObject {
-    set(state: number): void;
-    is(states: number | number[]): boolean;
-}
-/**
- * The function providing a super simple state system.
- *
- * @param initialState - Specifies the initial state.
- */
-export declare function State(initialState: number): StateObject;
-//# sourceMappingURL=../../../../src/js/constructors/State/State.d.ts.map

+ 0 - 1
dist/types/constructors/State/State.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["State.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAE,KAAK,EAAE,MAAM,GAAI,IAAI,CAAC;IAC3B,EAAE,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAI,OAAO,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAE,YAAY,EAAE,MAAM,GAAI,WAAW,CA2BzD"}

+ 0 - 19
dist/types/constructors/Throttle/Throttle.d.ts

@@ -1,19 +0,0 @@
-import { AnyFunction } from '../../types';
-/**
- * The interface for the returning value of the RequestInterval.
- *
- * @since 3.0.0
- */
-export interface ThrottleInstance<F extends AnyFunction> extends Function {
-    (...args: Parameters<F>): void;
-}
-/**
- * Returns the throttled function.
- *
- * @param func     - A function to throttle.
- * @param duration - Optional. Throttle duration in milliseconds.
- *
- * @return A throttled function.
- */
-export declare function Throttle<F extends AnyFunction>(func: F, duration?: number): ThrottleInstance<F>;
-//# sourceMappingURL=../../../../src/js/constructors/Throttle/Throttle.d.ts.map

+ 0 - 1
dist/types/constructors/Throttle/Throttle.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"Throttle.d.ts","sourceRoot":"","sources":["Throttle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,QAAQ;IACvE,CAAE,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAI,IAAI,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,GAChB,gBAAgB,CAAC,CAAC,CAAC,CAgBrB"}

+ 0 - 6
dist/types/constructors/index.d.ts

@@ -1,6 +0,0 @@
-export * from './EventBus/EventBus';
-export * from './EventInterface/EventInterface';
-export * from './RequestInterval/RequestInterval';
-export * from './State/State';
-export * from './Throttle/Throttle';
-//# sourceMappingURL=../../../src/js/constructors/index.d.ts.map

+ 0 - 1
dist/types/constructors/index.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}

+ 0 - 261
dist/types/core/Splide/Splide.d.ts

@@ -1,261 +0,0 @@
-import { SlideMatcher } from '../../components/Slides/Slides';
-import { EventBusCallback, EventBusObject, StateObject } from '../../constructors';
-import { ComponentConstructor, Components, EventMap, Options, SyncTarget } from '../../types';
-/**
- * The frontend class for the Splide slider.
- *
- * @since 3.0.0
- */
-export declare class Splide {
-    /**
-     * Changes the default options for all Splide instances.
-     */
-    static defaults: Options;
-    /**
-     * The collection of state numbers.
-     */
-    static readonly STATES: {
-        CREATED: number;
-        MOUNTED: number;
-        IDLE: number;
-        MOVING: number;
-        DESTROYED: number;
-    };
-    /**
-     * The root element where the Splide is applied.
-     */
-    readonly root: HTMLElement;
-    /**
-     * The EventBusObject object.
-     */
-    readonly event: EventBusObject;
-    /**
-     * The collection of all component objects.
-     */
-    readonly Components: Components;
-    /**
-     * The StateObject object.
-     */
-    readonly state: StateObject;
-    /**
-     * An array with SyncTarget objects for splide instances to sync with.
-     */
-    readonly splides: SyncTarget[];
-    /**
-     * The collection of options.
-     */
-    private readonly _options;
-    /**
-     * The collection of all components.
-     */
-    private _Components;
-    /**
-     * The collection of extensions.
-     */
-    private _Extensions;
-    /**
-     * The Transition component.
-     */
-    private _Transition;
-    /**
-     * The Splide constructor.
-     *
-     * @param target  - The selector for the target element, or the element itself.
-     * @param options - Optional. An object with options.
-     */
-    constructor(target: string | HTMLElement, options?: Options);
-    /**
-     * Initializes the instance.
-     *
-     * @param Extensions - Optional. An object with extensions.
-     * @param Transition - Optional. A Transition component.
-     *
-     * @return `this`
-     */
-    mount(Extensions?: Record<string, ComponentConstructor>, Transition?: ComponentConstructor): this;
-    /**
-     * Syncs the slider with the provided one.
-     * This method must be called before the `mount()`.
-     *
-     * @example
-     * ```ts
-     * var primary   = new Splide();
-     * var secondary = new Splide();
-     *
-     * primary.sync( secondary );
-     * primary.mount();
-     * secondary.mount();
-     * ```
-     *
-     * @param splide - A Splide instance to sync with.
-     *
-     * @return `this`
-     */
-    sync(splide: Splide): this;
-    /**
-     * Moves the slider with the following control pattern.
-     *
-     * | Pattern | Description |
-     * |---|---|
-     * | `i` | Goes to the slide `i` |
-     * | `'+${i}'` | Increments the slide index by `i` |
-     * | `'-${i}'` | Decrements the slide index by `i` |
-     * | `'>'` | Goes to the next page |
-     * | `'<'` | Goes to the previous page |
-     * | `>${i}` | Goes to the page `i` |
-     *
-     * In most cases, `'>'` and `'<'` notations are enough to control the slider
-     * because they respect `perPage` and `perMove` options.
-     *
-     * @example
-     * ```ts
-     * var splide = new Splide();
-     *
-     * // Goes to the slide 1:
-     * splide.go( 1 );
-     *
-     * // Increments the index:
-     * splide.go( '+2' );
-     *
-     * // Goes to the next page:
-     * splide.go( '>' );
-     *
-     * // Goes to the page 2:
-     * splide.go( '>2' );
-     * ```
-     *
-     * @param control - A control pattern.
-     *
-     * @return `this`
-     */
-    go(control: number | string): this;
-    /**
-     * Registers an event handler.
-     *
-     * @example
-     * ```ts
-     * var splide = new Splide();
-     *
-     * // Listens to a single event:
-     * splide.on( 'move', function() {} );
-     *
-     * // Listens to multiple events:
-     * splide.on( 'move resize', function() {} );
-     *
-     * // Appends a namespace:
-     * splide.on( 'move.myNamespace resize.myNamespace', function() {} );
-     * ```
-     *
-     * @param events   - An event name or names separated by spaces. Use a dot(.) to append a namespace.
-     * @param callback - A callback function.
-     *
-     * @return `this`
-     */
-    on<K extends keyof EventMap>(events: K, callback: EventMap[K]): this;
-    on(events: string | string[], callback: EventBusCallback): this;
-    /**
-     * Removes the registered all handlers for the specified event or events.
-     * If you want to only remove a particular handler, use namespace to identify it.
-     *
-     * @example
-     * ```ts
-     * var splide = new Splide();
-     *
-     * // Removes all handlers assigned to "move":
-     * splide.off( 'move' );
-     *
-     * // Only removes handlers that belong to the specified namespace:
-     * splide.off( 'move.myNamespace' );
-     * ```
-     *
-     * @param events - An event name or names separated by spaces. Use a dot(.) to append a namespace.
-     *
-     * @return `this`
-     */
-    off<K extends keyof EventMap>(events: K | K[] | string | string[]): this;
-    /**
-     * Emits an event and triggers registered handlers.
-     *
-     * @param event - An event name to emit.
-     * @param args  - Optional. Any number of arguments to pass to handlers.
-     *
-     * @return `this`
-     */
-    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): this;
-    emit(event: string, ...args: any[]): this;
-    /**
-     * Inserts a slide at the specified position.
-     *
-     * @example
-     * ```ts
-     * var splide = new Splide();
-     * splide.mount();
-     *
-     * // Adds the slide by the HTML:
-     * splide.add( '<li></li> );
-     *
-     * // or adds the element:
-     * splide.add( document.createElement( 'li' ) );
-     * ```
-     *
-     * @param slides - A slide element, an HTML string that represents a slide, or an array with them.
-     * @param index  - Optional. An index to insert a slide at.
-     *
-     * @return `this`
-     */
-    add(slides: string | HTMLElement | Array<string | HTMLElement>, index?: number): this;
-    /**
-     * Removes slides that match the matcher
-     * that can be an index, an array with indices, a selector, or an iteratee function.
-     *
-     * @param matcher - An index, an array with indices, a selector string, or an iteratee function.
-     */
-    remove(matcher: SlideMatcher): this;
-    /**
-     * Checks the slider type.
-     *
-     * @param type - A type to test.
-     *
-     * @return `true` if the type matches the current one, or otherwise `false`.
-     */
-    is(type: string): boolean;
-    /**
-     * Refreshes the slider.
-     *
-     * @return `this`
-     */
-    refresh(): this;
-    /**
-     * Destroys the slider.
-     *
-     * @param completely - Optional. If `true`, Splide will not remount the slider by breakpoints.
-     *
-     * @return `this`
-     */
-    destroy(completely?: boolean): this;
-    /**
-     * Returns options.
-     *
-     * @return An object with the latest options.
-     */
-    get options(): Options;
-    /**
-     * Merges options to the current options and emits `updated` event.
-     *
-     * @param options - An object with new options.
-     */
-    set options(options: Options);
-    /**
-     * Returns the number of slides without clones.
-     *
-     * @return The number of slides.
-     */
-    get length(): number;
-    /**
-     * Returns the active slide index.
-     *
-     * @return The active slide index.
-     */
-    get index(): number;
-}
-//# sourceMappingURL=../../../../src/js/core/Splide/Splide.d.ts.map

文件差異過大導致無法顯示
+ 0 - 0
dist/types/core/Splide/Splide.d.ts.map


+ 1507 - 9
dist/types/index.d.ts

@@ -1,9 +1,1507 @@
-export { Splide } from './core/Splide/Splide';
-export { Splide as default } from './core/Splide/Splide';
-export { SplideRenderer } from './renderer/SplideRenderer/SplideRenderer';
-export * from './components/types';
-export * from './constructors';
-export * from './types';
-export * from './constants/events';
-export * from './constants/classes';
-//# sourceMappingURL=../../src/js/index.d.ts.map
+/**
+ * The interface for the Arrows component.
+ *
+ * @since 3.0.0
+ */
+interface ArrowsComponent extends BaseComponent {
+    arrows: {
+        prev?: HTMLButtonElement;
+        next?: HTMLButtonElement;
+    };
+}
+
+/**
+ * The interface for the Autoplay component.
+ *
+ * @since 3.0.0
+ */
+interface AutoplayComponent extends BaseComponent {
+    play(): void;
+    pause(): void;
+    isPaused(): boolean;
+}
+
+/**
+ * The interface for the Clone component.
+ *
+ * @since 3.0.0
+ */
+interface ClonesComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Controller component.
+ *
+ * @since 3.0.0
+ */
+interface ControllerComponent extends BaseComponent {
+    go(control: number | string, allowSameIndex?: boolean, callback?: AnyFunction): void;
+    scroll(destination: number, useIndex?: boolean, snap?: boolean, duration?: number, callback?: AnyFunction): void;
+    getNext(destination?: boolean): number;
+    getPrev(destination?: boolean): number;
+    getAdjacent(prev: boolean, destination?: boolean): number;
+    getEnd(): number;
+    setIndex(index: number): void;
+    getIndex(prev?: boolean): number;
+    toIndex(page: number): number;
+    toPage(index: number): number;
+    toDest(position: number): number;
+    hasFocus(): boolean;
+}
+
+/**
+ * The interface for the Cover component.
+ *
+ * @since 3.0.0
+ */
+interface CoverComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Direction component.
+ *
+ * @since 3.0.0
+ */
+interface DirectionComponent extends BaseComponent {
+    resolve(prop: string, axisOnly?: boolean): string;
+    orient(value: number): number;
+}
+
+/**
+ * The interface for the Drag component.
+ *
+ * @since 3.0.0
+ */
+interface DragComponent extends BaseComponent {
+    disable(disabled: boolean): void;
+    isDragging(): boolean;
+}
+
+/**
+ * The interface for elements which the slider consists of.
+ *
+ * @since 3.0.0
+ */
+interface ElementCollection {
+    root: HTMLElement;
+    slider: HTMLElement;
+    track: HTMLElement;
+    list: HTMLElement;
+    slides: HTMLElement[];
+    arrows: HTMLElement;
+    prev: HTMLButtonElement;
+    next: HTMLButtonElement;
+    bar: HTMLElement;
+    autoplay: HTMLElement;
+    play: HTMLButtonElement;
+    pause: HTMLButtonElement;
+}
+/**
+ * The interface for the Elements component.
+ *
+ * @since 3.0.0
+ */
+interface ElementsComponent extends BaseComponent, ElementCollection {
+}
+
+/**
+ * The interface for the Keyboard component.
+ *
+ * @since 3.0.0
+ */
+interface KeyboardComponent extends BaseComponent {
+    disable(disabled: boolean): void;
+}
+
+/**
+ * The interface for the Layout component.
+ *
+ * @since 3.0.0
+ */
+interface LayoutComponent extends BaseComponent {
+    listSize(): number;
+    slideSize(index: number, withoutGap?: boolean): number;
+    sliderSize(): number;
+    totalSize(index?: number, withoutGap?: boolean): number;
+    getPadding(right: boolean): number;
+}
+
+/**
+ * The interface for the Slide sub component.
+ *
+ * @since 3.0.0
+ */
+interface SlideComponent extends BaseComponent {
+    index: number;
+    slideIndex: number;
+    slide: HTMLElement;
+    container: HTMLElement;
+    isClone: boolean;
+    update(): void;
+    style(prop: string, value: string | number, useContainer?: boolean): void;
+    isWithin(from: number, distance: number): boolean;
+}
+
+/**
+ * The interface for the LazyLoad component.
+ *
+ * @since 3.0.0
+ */
+interface LazyLoadComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Move component.
+ *
+ * @since 3.0.0
+ */
+interface MoveComponent extends BaseComponent {
+    move(dest: number, index: number, prev: number, callback?: AnyFunction): void;
+    jump(index: number): void;
+    translate(position: number, preventLoop?: boolean): void;
+    shift(position: number, backwards: boolean): number;
+    cancel(): void;
+    toIndex(position: number): number;
+    toPosition(index: number, trimming?: boolean): number;
+    getPosition(): number;
+    getLimit(max: boolean): number;
+    isBusy(): boolean;
+    exceededLimit(max?: boolean | undefined, position?: number): boolean;
+}
+
+/**
+ * The interface for the Options component.
+ *
+ * @since 3.0.0
+ */
+interface OptionsComponent extends BaseComponent {
+}
+
+/**
+ * The interface for the Pagination component.
+ *
+ * @since 3.0.0
+ */
+interface PaginationComponent extends BaseComponent {
+    items: PaginationItem[];
+    getAt(index: number): PaginationItem;
+    update(): void;
+}
+/**
+ * The interface for data of the pagination.
+ *
+ * @since 3.0.0
+ */
+interface PaginationData {
+    list: HTMLUListElement;
+    items: PaginationItem[];
+}
+/**
+ * The interface for each pagination item.
+ *
+ * @since 3.0.0
+ */
+interface PaginationItem {
+    li: HTMLLIElement;
+    button: HTMLButtonElement;
+    page: number;
+}
+
+/**
+ * The interface for the Scroll component.
+ *
+ * @since 3.0.0
+ */
+interface ScrollComponent extends BaseComponent {
+    scroll(position: number, duration?: number, callback?: AnyFunction): void;
+    cancel(): void;
+}
+
+/**
+ * The interface for the Sync component.
+ *
+ * @since 3.0.0
+ */
+interface SyncComponent extends BaseComponent {
+    remount(): void;
+}
+
+/**
+ * The interface for the Wheel component.
+ *
+ * @since 3.0.0
+ */
+interface WheelComponent extends BaseComponent {
+}
+
+/**
+ * The interface for options.
+ *
+ * @since 3.0.0
+ */
+interface Options extends ResponsiveOptions {
+    /**
+     * The type of the slider.
+     * - 'slide': A slider with the slide transition
+     * - 'loop' : A carousel slider
+     * - 'fade' : A slider with the fade transition. This does not support the perPage option.
+     */
+    type?: string;
+    /**
+     * Determines whether to disable any actions while the slider is transitioning.
+     * Even if `false`, the slider forcibly waits for transition on the loop points.
+     */
+    waitForTransition?: boolean;
+    /**
+     * If `true`, the width of slides are determined by their width.
+     * The `perPage` and `perMove` options should be `1`.
+     */
+    autoWidth?: boolean;
+    /**
+     * If `true`, the height of slides are determined by their height.
+     * The `perPage` and `perMove` options should be `1`.
+     */
+    autoHeight?: boolean;
+    /**
+     * The start index.
+     */
+    start?: number;
+    /**
+     * Changes the arrow SVG path, like 'm7.61 0.807-2.12...'.
+     */
+    arrowPath?: string;
+    /**
+     * Determines whether to activate autoplay or not.
+     * If `paused`, it will not begin when the slider becomes active.
+     * You need to provided play/pause buttons or manually start it by `Autoplay#play()`.
+     */
+    autoplay?: boolean | 'pause';
+    /**
+     * The autoplay interval in milliseconds.
+     */
+    interval?: number;
+    /**
+     * Determines whether to pause autoplay on mouseover.
+     */
+    pauseOnHover?: boolean;
+    /**
+     * Determines whether to pause autoplay when the slider contains the active element (focused element).
+     * This should be `true` for accessibility.
+     */
+    pauseOnFocus?: boolean;
+    /**
+     * Determines whether to reset the autoplay progress when it is requested to start again.
+     */
+    resetProgress?: boolean;
+    /**
+     * Enables lazy loading.
+     * Provide the `src` by the `data-splide-lazy` or the `srcset` by the `data-splide-lazy-srcset`.
+     * You may also provide `src` for the placeholder, but the value must be different with the data.
+     *
+     * - `false`: Disables lazy loading
+     * - `'nearby'`: Starts loading only images around the active slide (page)
+     * - `'sequential'`: Loads images sequentially
+     */
+    lazyLoad?: boolean | 'nearby' | 'sequential';
+    /**
+     * Determine how many pages (not slides) around the active slide should be loaded beforehand.
+     * This only works when the `lazyLoad` option is `'nearby'`.
+     */
+    preloadPages?: number;
+    /**
+     * Determines whether to enable keyboard shortcuts or not.
+     * - `true` or `'global'`: Listens to the `keydown` event of the document.
+     * - 'focused': Listens to the `keydown` event of the slider root element with adding `tabindex="0"` to it.
+     * - `false`: Disables keyboard shortcuts.
+     */
+    keyboard?: boolean | string;
+    /**
+     * Enables navigation by the mouse wheel.
+     * The `waitForTransition` option should be `true`.
+     */
+    wheel?: boolean;
+    /**
+     * Determines whether to release the wheel event when the slider reaches the first or last slide.
+     */
+    releaseWheel?: boolean;
+    /**
+     * The direction of the slider.
+     * - 'ltr': Left to right
+     * - 'rtl': Right to left
+     * - 'ttb': Top to bottom
+     */
+    direction?: 'ltr' | 'rtl' | 'ttb';
+    /**
+     * Converts the image `src` to the css `background-image` URL of the parent element.
+     * This requires `fixedHeight` or `heightRatio` option.
+     */
+    cover?: boolean;
+    /**
+     * Determines whether to add `tabindex="0"` to visible slides or not.
+     */
+    slideFocus?: boolean;
+    /**
+     * If `true`, the slider makes slides clickable to navigate another slider.
+     * Use `Splide#sync()` to sync multiple sliders.
+     */
+    isNavigation?: boolean;
+    /**
+     * Determines whether to trim spaces before/after the slider if the `focus` option is available.
+     * - `true`: Trims spaces. The slider may stay on the same location even when requested to move.
+     * - `'move'`: Trims spaces and focuses to move the slider when requested.
+     */
+    trimSpace?: boolean | 'move';
+    /**
+     * Updates the `is-active` status of slides just before moving the slider.
+     */
+    updateOnMove?: boolean;
+    /**
+     * If `min`, the media query for breakpoints will be `min-width`, or otherwise, `max-width`.
+     */
+    mediaQuery?: 'min' | 'max';
+    /**
+     * The selector to get focusable elements
+     * where `tabindex="-1"` will be assigned when their ascendant slide is hidden.
+     */
+    focusableNodes?: string;
+    /**
+     * The selector for nodes that cannot be dragged.
+     */
+    noDrag?: string;
+    /**
+     * Determines whether to use the Transition component or not.
+     */
+    useScroll?: boolean;
+    /**
+     * Options for specific breakpoints.
+     *
+     * @example
+     * ```ts
+     * {
+     *   1000: {
+     *     perPage: 3,
+     *     gap    : 20
+     *   },
+     *   600: {
+     *     perPage: 1,
+     *     gap    : 5,
+     *   },
+     * }
+     * ```
+     */
+    breakpoints?: Record<string | number, ResponsiveOptions>;
+    /**
+     * The collection of class names.
+     */
+    classes?: Record<string, string>;
+    /**
+     * The collection of i18n strings.
+     */
+    i18n?: Record<string, string>;
+}
+/**
+ * The interface for options that can correspond with breakpoints.
+ *
+ * @since 3.0.0
+ */
+interface ResponsiveOptions {
+    /**
+     * Accepts arbitrary properties for extensions, although it's not ideal typing.
+     */
+    [key: string]: any;
+    /**
+     * Determines whether to rewind the slider or not.
+     */
+    rewind?: boolean;
+    /**
+     * The transition speed in milliseconds.
+     */
+    speed?: number;
+    /**
+     * The transition speed on rewind in milliseconds.
+     */
+    rewindSpeed?: number;
+    /**
+     * Defines the slider max width, accepting the CSS format such as 10em, 80vw.
+     */
+    width?: number | string;
+    /**
+     * Defines the slider height, accepting the CSS format.
+     */
+    height?: number | string;
+    /**
+     * Fixes width of slides, accepting the CSS format.
+     * The slider will ignore the `perPage` option if you provide this value.
+     */
+    fixedWidth?: number | string;
+    /**
+     * Fixes height of slides, accepting the CSS format.
+     * The slider will ignore the `heightRatio` option if you provide this value.
+     */
+    fixedHeight?: number | string;
+    /**
+     * Determines height of slides by the ratio to the slider width.
+     * For example, when the slider width is `1000` and the ratio is `0.5`, the height will be `500`.
+     */
+    heightRatio?: number;
+    /**
+     * Determines the number of slides to display in a page.
+     */
+    perPage?: number;
+    /**
+     * Determines the number of slides to move at once.
+     */
+    perMove?: number;
+    /**
+     * Determine the number of clones on each side of the slider.
+     * In most cases, you don't need to provide this value.
+     */
+    clones?: number;
+    /**
+     * Determines whether to clone status classes for clones or not.
+     */
+    cloneStatus?: boolean;
+    /**
+     * Determines which slide should be active if there are multiple slides in a page.
+     * Numbers and `'center'` are acceptable.
+     */
+    focus?: number | 'center';
+    /**
+     * The gap between slides. The CSS format is acceptable, such as `1em`.
+     */
+    gap?: number | string;
+    /**
+     * Sets padding left/right or top/bottom of the slider.
+     * The CSS format is acceptable, such as `1em`.
+     *
+     * @example
+     * ```ts
+     * // By number
+     * padding: 10,
+     *
+     * // By the CSS format
+     * padding: '1rem',
+     *
+     * // Specifies each value for a horizontal slider
+     * padding: { left: 10, right: 20 },
+     * padding: { left: '1rem', right: '2rem' },
+     *
+     * // Specified each value for a vertical slider
+     * padding: { top: 10, bottom: 20 },
+     * ```
+     */
+    padding?: number | string | {
+        left?: number | string;
+        right?: number | string;
+    } | {
+        top?: number | string;
+        bottom?: number | string;
+    };
+    /**
+     * Determines whether to create/find arrows or not.
+     */
+    arrows?: boolean | 'slider';
+    /**
+     * Determines whether to create pagination (indicator dots) or not.
+     */
+    pagination?: boolean | 'slider';
+    /**
+     * The timing function for the CSS transition. For example, `linear`, ease or `cubic-bezier()`.
+     */
+    easing?: string;
+    /**
+     * The easing function for the drag free mode.
+     * The default function is the `easeOutQuart` interpolation.
+     */
+    easingFunc?: (t: number) => number;
+    /**
+     * Determines whether to allow to drag the slider or not.
+     * If `free`, the slider does not snap to a slide after drag.
+     */
+    drag?: boolean | 'free';
+    /**
+     * The required distance to start moving the slider by the touch action.
+     * If you want to define the threshold for the mouse, provide an object.
+     */
+    dragMinThreshold?: number | {
+        mouse: number;
+        touch: number;
+    };
+    /**
+     * Determine the power of "flick". The larger number this is, the farther the slider runs.
+     * Around 500 is recommended.
+     */
+    flickPower?: number;
+    /**
+     * Limits the number of pages to move by "flick".
+     */
+    flickMaxPages?: number;
+    /**
+     * Destroys the slider.
+     */
+    destroy?: boolean | 'completely';
+}
+
+/**
+ * The type for any function.
+ *
+ * @since 3.0.0
+ */
+declare type AnyFunction = (...args: any[]) => any;
+/**
+ * The type for a component.
+ *
+ * @since 3.0.0
+ */
+declare type ComponentConstructor = (Splide: Splide, Components: Components, options: Options) => BaseComponent;
+/**
+ * The interface for any component.
+ *
+ * @since 3.0.0
+ */
+interface BaseComponent {
+    setup?(): void;
+    mount?(): void;
+    destroy?(completely?: boolean): void;
+}
+/**
+ * The interface for the Transition component.
+ *
+ * @since 3.0.0
+ */
+interface TransitionComponent extends BaseComponent {
+    start(index: number, done: () => void): void;
+    cancel(): void;
+}
+/**
+ * The interface for info of a splide instance to sync with.
+ *
+ * @since 3.2.8
+ */
+interface SyncTarget {
+    splide: Splide;
+    isParent?: boolean;
+}
+
+interface Components {
+    [key: string]: BaseComponent;
+    Options: OptionsComponent;
+    Direction: DirectionComponent;
+    Elements: ElementsComponent;
+    Slides: SlidesComponent;
+    Layout: LayoutComponent;
+    Clones: ClonesComponent;
+    Move: MoveComponent;
+    Controller: ControllerComponent;
+    Arrows: ArrowsComponent;
+    Autoplay: AutoplayComponent;
+    Cover: CoverComponent;
+    Scroll: ScrollComponent;
+    Drag: DragComponent;
+    Keyboard: KeyboardComponent;
+    LazyLoad: LazyLoadComponent;
+    Pagination: PaginationComponent;
+    Sync: SyncComponent;
+    Wheel: WheelComponent;
+    Transition: TransitionComponent;
+}
+
+interface EventMap {
+    'mounted': () => void;
+    'ready': () => void;
+    'click': (Slide: SlideComponent, e: MouseEvent) => void;
+    'move': (index: number, prev: number, dest: number) => void;
+    'moved': (index: number, prev: number, dest: number) => void;
+    'shifted': () => void;
+    'active': (Slide: SlideComponent) => void;
+    'inactive': (Slide: SlideComponent) => void;
+    'visible': (Slide: SlideComponent) => void;
+    'hidden': (Slide: SlideComponent) => void;
+    'slide:keydown': (Slide: SlideComponent, e: KeyboardEvent) => void;
+    'refresh': () => void;
+    'updated': (options: Options) => void;
+    'resize': () => void;
+    'resized': () => void;
+    'drag': () => void;
+    'dragging': () => void;
+    'dragged': () => void;
+    'scroll': () => void;
+    'scrolled': () => void;
+    'destroy': () => void;
+    'arrows:mounted': (prev: HTMLButtonElement, next: HTMLButtonElement) => void;
+    'arrows:updated': (prev: HTMLButtonElement, next: HTMLButtonElement, prevIndex: number, nextIndex: number) => void;
+    'pagination:mounted': (data: PaginationData, item: PaginationItem) => void;
+    'pagination:updated': (data: PaginationData, prev: PaginationItem, curr: PaginationItem) => void;
+    'navigation:mounted': (splides: Splide[]) => void;
+    'autoplay:play': () => void;
+    'autoplay:playing': (rate: number) => void;
+    'autoplay:pause': () => void;
+    'lazyload:loaded': (img: HTMLImageElement, Slide: SlideComponent) => void;
+}
+
+/**
+ * The interface for the Slides component.
+ *
+ * @since 3.0.0
+ */
+interface SlidesComponent extends BaseComponent {
+    update(): void;
+    register(slide: HTMLElement, index: number, slideIndex: number): void;
+    get(excludeClones?: boolean): SlideComponent[];
+    getIn(page: number): SlideComponent[];
+    getAt(index: number): SlideComponent | undefined;
+    add(slide: string | Element | Array<string | Element>, index?: number): void;
+    remove(selector: SlideMatcher): void;
+    forEach(iteratee: SlidesIteratee, excludeClones?: boolean): void;
+    filter(matcher: SlideMatcher): SlideComponent[];
+    style(prop: string, value: string | number, useContainer?: boolean): void;
+    getLength(excludeClones?: boolean): number;
+    isEnough(): boolean;
+}
+/**
+ * The iteratee function for Slides.
+ *
+ * @since 3.0.0
+ */
+declare type SlidesIteratee = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => void;
+/**
+ * The predicate function for Slides.
+ *
+ * @since 3.0.0
+ */
+declare type SlidesPredicate = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => any;
+/**
+ * The type for filtering SlideComponent objects.
+ *
+ * @since 3.0.0
+ */
+declare type SlideMatcher = number | number[] | string | SlidesPredicate;
+
+/**
+ * The interface for the EventBus instance.
+ *
+ * @since 3.0.0
+ */
+interface EventBusObject {
+    on(events: string | string[], callback: EventBusCallback, key?: object, priority?: number): void;
+    off(events: string | string[], key?: object): void;
+    offBy(key: object): void;
+    emit(event: string, ...args: any[]): void;
+    destroy(): void;
+}
+/**
+ * The interface for each event handler object.
+ *
+ * @since 3.0.0
+ */
+interface EventHandler {
+    _event: string;
+    _callback: AnyFunction;
+    _namespace: string;
+    _priority: number;
+    _key?: object;
+}
+/**
+ * The type for a callback function of the EventBus.
+ *
+ * @since 3.0.0
+ */
+declare type EventBusCallback = AnyFunction;
+/**
+ * The constructor to provided a simple event system.
+ *
+ * @since 3.0.0
+ *
+ * @return An EventBus object.
+ */
+declare function EventBus(): EventBusObject;
+
+/**
+ * The interface for the EventInterface object.
+ *
+ * @since 3.0.0
+ */
+interface EventInterfaceObject {
+    on<K extends keyof EventMap>(event: K, callback: EventMap[K], priority?: number): void;
+    on(events: string | string[], callback: EventBusCallback, priority?: number): void;
+    off<K extends keyof EventMap>(events: K | K[] | string | string[]): void;
+    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): void;
+    emit(event: string, ...args: any[]): void;
+    bind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback: AnyFunction, options?: AddEventListenerOptions): void;
+    unbind(target: Element | Window | Document | Array<Element | Window | Document>, events: string, callback?: AnyFunction): void;
+    destroy(): void;
+}
+/**
+ * The function that provides interface for internal and native events.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide - A Splide instance.
+ *
+ * @return A collection of interface functions.
+ */
+declare function EventInterface(Splide: Splide): EventInterfaceObject;
+
+/**
+ * The interface for the returning value of the RequestInterval.
+ *
+ * @since 3.0.0
+ */
+interface RequestIntervalInterface {
+    start(resume?: boolean): void;
+    pause(): void;
+    rewind(): void;
+    cancel(): void;
+    set(interval: number): void;
+    isPaused(): boolean;
+}
+/**
+ * Requests interval like the native `setInterval()` with using `requestAnimationFrame`.
+ *
+ * @since 3.0.0
+ *
+ * @param interval   - The interval duration in milliseconds.
+ * @param onInterval - The callback fired on every interval.
+ * @param onUpdate   - Optional. Called on every animation frame, taking the progress rate.
+ * @param limit      - Optional. Limits the number of interval.
+ */
+declare function RequestInterval(interval: number, onInterval: () => void, onUpdate?: (rate: number) => void, limit?: number): RequestIntervalInterface;
+
+/**
+ * The interface for the State object.
+ *
+ * @since 3.0.0
+ */
+interface StateObject {
+    set(state: number): void;
+    is(states: number | number[]): boolean;
+}
+/**
+ * The function providing a super simple state system.
+ *
+ * @param initialState - Specifies the initial state.
+ */
+declare function State(initialState: number): StateObject;
+
+/**
+ * The interface for the returning value of the RequestInterval.
+ *
+ * @since 3.0.0
+ */
+interface ThrottleInstance<F extends AnyFunction> extends Function {
+    (...args: Parameters<F>): void;
+}
+/**
+ * Returns the throttled function.
+ *
+ * @param func     - A function to throttle.
+ * @param duration - Optional. Throttle duration in milliseconds.
+ *
+ * @return A throttled function.
+ */
+declare function Throttle<F extends AnyFunction>(func: F, duration?: number): ThrottleInstance<F>;
+
+/**
+ * The frontend class for the Splide slider.
+ *
+ * @since 3.0.0
+ */
+declare class Splide {
+    /**
+     * Changes the default options for all Splide instances.
+     */
+    static defaults: Options;
+    /**
+     * The collection of state numbers.
+     */
+    static readonly STATES: {
+        CREATED: number;
+        MOUNTED: number;
+        IDLE: number;
+        MOVING: number;
+        DESTROYED: number;
+    };
+    /**
+     * The root element where the Splide is applied.
+     */
+    readonly root: HTMLElement;
+    /**
+     * The EventBusObject object.
+     */
+    readonly event: EventBusObject;
+    /**
+     * The collection of all component objects.
+     */
+    readonly Components: Components;
+    /**
+     * The StateObject object.
+     */
+    readonly state: StateObject;
+    /**
+     * An array with SyncTarget objects for splide instances to sync with.
+     */
+    readonly splides: SyncTarget[];
+    /**
+     * The collection of options.
+     */
+    private readonly _options;
+    /**
+     * The collection of all components.
+     */
+    private _Components;
+    /**
+     * The collection of extensions.
+     */
+    private _Extensions;
+    /**
+     * The Transition component.
+     */
+    private _Transition;
+    /**
+     * The Splide constructor.
+     *
+     * @param target  - The selector for the target element, or the element itself.
+     * @param options - Optional. An object with options.
+     */
+    constructor(target: string | HTMLElement, options?: Options);
+    /**
+     * Initializes the instance.
+     *
+     * @param Extensions - Optional. An object with extensions.
+     * @param Transition - Optional. A Transition component.
+     *
+     * @return `this`
+     */
+    mount(Extensions?: Record<string, ComponentConstructor>, Transition?: ComponentConstructor): this;
+    /**
+     * Syncs the slider with the provided one.
+     * This method must be called before the `mount()`.
+     *
+     * @example
+     * ```ts
+     * var primary   = new Splide();
+     * var secondary = new Splide();
+     *
+     * primary.sync( secondary );
+     * primary.mount();
+     * secondary.mount();
+     * ```
+     *
+     * @param splide - A Splide instance to sync with.
+     *
+     * @return `this`
+     */
+    sync(splide: Splide): this;
+    /**
+     * Moves the slider with the following control pattern.
+     *
+     * | Pattern | Description |
+     * |---|---|
+     * | `i` | Goes to the slide `i` |
+     * | `'+${i}'` | Increments the slide index by `i` |
+     * | `'-${i}'` | Decrements the slide index by `i` |
+     * | `'>'` | Goes to the next page |
+     * | `'<'` | Goes to the previous page |
+     * | `>${i}` | Goes to the page `i` |
+     *
+     * In most cases, `'>'` and `'<'` notations are enough to control the slider
+     * because they respect `perPage` and `perMove` options.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Goes to the slide 1:
+     * splide.go( 1 );
+     *
+     * // Increments the index:
+     * splide.go( '+2' );
+     *
+     * // Goes to the next page:
+     * splide.go( '>' );
+     *
+     * // Goes to the page 2:
+     * splide.go( '>2' );
+     * ```
+     *
+     * @param control - A control pattern.
+     *
+     * @return `this`
+     */
+    go(control: number | string): this;
+    /**
+     * Registers an event handler.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Listens to a single event:
+     * splide.on( 'move', function() {} );
+     *
+     * // Listens to multiple events:
+     * splide.on( 'move resize', function() {} );
+     *
+     * // Appends a namespace:
+     * splide.on( 'move.myNamespace resize.myNamespace', function() {} );
+     * ```
+     *
+     * @param events   - An event name or names separated by spaces. Use a dot(.) to append a namespace.
+     * @param callback - A callback function.
+     *
+     * @return `this`
+     */
+    on<K extends keyof EventMap>(events: K, callback: EventMap[K]): this;
+    on(events: string | string[], callback: EventBusCallback): this;
+    /**
+     * Removes the registered all handlers for the specified event or events.
+     * If you want to only remove a particular handler, use namespace to identify it.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     *
+     * // Removes all handlers assigned to "move":
+     * splide.off( 'move' );
+     *
+     * // Only removes handlers that belong to the specified namespace:
+     * splide.off( 'move.myNamespace' );
+     * ```
+     *
+     * @param events - An event name or names separated by spaces. Use a dot(.) to append a namespace.
+     *
+     * @return `this`
+     */
+    off<K extends keyof EventMap>(events: K | K[] | string | string[]): this;
+    /**
+     * Emits an event and triggers registered handlers.
+     *
+     * @param event - An event name to emit.
+     * @param args  - Optional. Any number of arguments to pass to handlers.
+     *
+     * @return `this`
+     */
+    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): this;
+    emit(event: string, ...args: any[]): this;
+    /**
+     * Inserts a slide at the specified position.
+     *
+     * @example
+     * ```ts
+     * var splide = new Splide();
+     * splide.mount();
+     *
+     * // Adds the slide by the HTML:
+     * splide.add( '<li></li> );
+     *
+     * // or adds the element:
+     * splide.add( document.createElement( 'li' ) );
+     * ```
+     *
+     * @param slides - A slide element, an HTML string that represents a slide, or an array with them.
+     * @param index  - Optional. An index to insert a slide at.
+     *
+     * @return `this`
+     */
+    add(slides: string | HTMLElement | Array<string | HTMLElement>, index?: number): this;
+    /**
+     * Removes slides that match the matcher
+     * that can be an index, an array with indices, a selector, or an iteratee function.
+     *
+     * @param matcher - An index, an array with indices, a selector string, or an iteratee function.
+     */
+    remove(matcher: SlideMatcher): this;
+    /**
+     * Checks the slider type.
+     *
+     * @param type - A type to test.
+     *
+     * @return `true` if the type matches the current one, or otherwise `false`.
+     */
+    is(type: string): boolean;
+    /**
+     * Refreshes the slider.
+     *
+     * @return `this`
+     */
+    refresh(): this;
+    /**
+     * Destroys the slider.
+     *
+     * @param completely - Optional. If `true`, Splide will not remount the slider by breakpoints.
+     *
+     * @return `this`
+     */
+    destroy(completely?: boolean): this;
+    /**
+     * Returns options.
+     *
+     * @return An object with the latest options.
+     */
+    get options(): Options;
+    /**
+     * Merges options to the current options and emits `updated` event.
+     *
+     * @param options - An object with new options.
+     */
+    set options(options: Options);
+    /**
+     * Returns the number of slides without clones.
+     *
+     * @return The number of slides.
+     */
+    get length(): number;
+    /**
+     * Returns the active slide index.
+     *
+     * @return The active slide index.
+     */
+    get index(): number;
+}
+
+/**
+ * The interface for the content of each slide.
+ *
+ * @since 3.0.0
+ */
+interface SlideContent {
+    /**
+     * The HTML or text for each slide.
+     */
+    html?: string;
+    /**
+     * The collection of styles. They will remain after Splide is applied.
+     */
+    styles?: Record<string, string | number>;
+    /**
+     * The collection of attributes. They will remain after Splide is applied.
+     */
+    attrs?: Record<string, string | number | boolean>;
+}
+/**
+ * The interface for the config of the renderer.
+ *
+ * @since 3.0.0
+ */
+interface RendererConfig {
+    /**
+     * The slider ID.
+     */
+    id?: string;
+    /**
+     * The additional class for the root element.
+     */
+    rootClass?: string;
+    /**
+     * The tag used for the list element.
+     */
+    listTag?: string;
+    /**
+     * The tag used for each slide.
+     */
+    slideTag?: string;
+    /**
+     * Determines whether to render arrows or not.
+     */
+    arrows?: boolean;
+    /**
+     * Keeps the slider hidden.
+     */
+    hidden?: boolean;
+    /**
+     * Determines whether to wrap the track by the slider element or not.
+     */
+    slider?: boolean;
+    /**
+     * The additional HTML rendered before the slider element.
+     */
+    beforeSlider?: string;
+    /**
+     * The additional HTML rendered after the slider element.
+     */
+    afterSlider?: string;
+    /**
+     * The additional HTML rendered before the track element.
+     */
+    beforeTrack?: string;
+    /**
+     * The additional HTML rendered after the track element.
+     */
+    afterTrack?: string;
+}
+
+/**
+ * The class to generate static HTML of the slider for the first view.
+ *
+ * @since 3.0.0
+ */
+declare class SplideRenderer {
+    /**
+     * Removes a style element and clones.
+     *
+     * @param splide - A Splide instance.
+     */
+    static clean(splide: Splide): void;
+    /**
+     * Holds slide contents.
+     */
+    private readonly contents;
+    /**
+     * Stores data of slides.
+     */
+    private readonly slides;
+    /**
+     * The Direction component.
+     */
+    private readonly Direction;
+    /**
+     * Holds the Style instance.
+     */
+    private readonly Style;
+    /**
+     * Holds options.
+     */
+    private readonly options;
+    /**
+     * Holds options for this instance.
+     */
+    private readonly config;
+    /**
+     * The slider ID.
+     */
+    private readonly id;
+    /**
+     * An array with options for each breakpoint.
+     */
+    private readonly breakpoints;
+    /**
+     * The SplideRenderer constructor.
+     *
+     * @param contents - An array with slide contents. Each item must be an HTML or a plain text.
+     * @param options  - Optional. Slider options.
+     * @param config   - Static default options.
+     * @param defaults - Default options for the slider. Pass `Splide.defaults` if you are using it.
+     */
+    constructor(contents: string[] | SlideContent[], options?: Options, config?: RendererConfig, defaults?: Options);
+    /**
+     * Initializes the instance.
+     */
+    private init;
+    /**
+     * Initializes slides.
+     */
+    private initSlides;
+    /**
+     * Registers styles for the root element.
+     */
+    private registerRootStyles;
+    /**
+     * Registers styles for the track element.
+     */
+    private registerTrackStyles;
+    /**
+     * Registers styles for the list element.
+     */
+    private registerListStyles;
+    /**
+     * Registers styles for slides and clones.
+     */
+    private registerSlideStyles;
+    /**
+     * Builds multiple `translateX` for the list element.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return A string with multiple translate functions.
+     */
+    private buildTranslate;
+    /**
+     * Returns offset for the list element.
+     * This does not include gaps because it can not be converted into percent.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset.
+     */
+    private cssOffsetClones;
+    /**
+     * Returns offset for centering the active slide.
+     *
+     * Note:
+     * ( 100% + gap ) / perPage - gap
+     * 100% / perPage + gap / perPage - gap;
+     * 50% / perPage + ( gap / perPage - gap ) / 2;
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset.
+     */
+    private cssOffsetCenter;
+    /**
+     * Returns offset for gaps.
+     *
+     * @param options - Options for each breakpoint.
+     *
+     * @return The offset as `calc()`.
+     */
+    private cssOffsetGaps;
+    /**
+     * Resolves the prop for the current direction and converts it into the Kebab case.
+     *
+     * @param prop - A property name to resolve.
+     *
+     * @return A resolved property name in the Kebab case.
+     */
+    private resolve;
+    /**
+     * Returns padding in the CSS format.
+     *
+     * @param options - Options.
+     * @param right   - Determines whether to get padding right or left.
+     *
+     * @return Padding in the CSS format.
+     */
+    private cssPadding;
+    /**
+     * Returns height of the track element in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssTrackHeight;
+    /**
+     * Returns height provided though options in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssHeight;
+    /**
+     * Returns width of each slide in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Width in the CSS format.
+     */
+    private cssSlideWidth;
+    /**
+     * Returns height of each slide in the CSS format.
+     *
+     * @param options - Options.
+     *
+     * @return Height in the CSS format.
+     */
+    private cssSlideHeight;
+    /**
+     * Returns width or height of each slide in the CSS format, considering the current direction.
+     *
+     * @param options - Options.
+     *
+     * @return Width or height in the CSS format.
+     */
+    private cssSlideSize;
+    /**
+     * Returns the aspectRatio value to simulate the `heightRatio` option.
+     *
+     * @param options - Options.
+     *
+     * @return aspectRatio in the CSS format.
+     */
+    private cssAspectRatio;
+    /**
+     * Builds the css value by the provided value and unit.
+     *
+     * @param value - A value.
+     * @param unit  - A CSS unit.
+     *
+     * @return A built value for a CSS value.
+     */
+    private buildCssValue;
+    /**
+     * Parses the CSS value into number and unit.
+     *
+     * @param value - A value to parse.
+     *
+     * @return An object with value and unit.
+     */
+    private parseCssValue;
+    /**
+     * Parses breakpoints and generate options for each breakpoint.
+     */
+    private parseBreakpoints;
+    /**
+     * Checks if the slide width is fixed or not.
+     *
+     * @return `true` if the slide width is fixed, or otherwise `false`.
+     */
+    private isFixedWidth;
+    /**
+     * Checks if the slider type is loop or not.
+     *
+     * @return `true` if the slider type is loop, or otherwise `false`.
+     */
+    private isLoop;
+    /**
+     * Checks if the active slide should be centered or not.
+     *
+     * @return `true` if the slide should be centered, or otherwise `false`.
+     */
+    private isCenter;
+    /**
+     * Checks if the direction is TTB or not.
+     *
+     * @return `true` if the direction is TTB, or otherwise `false`.
+     */
+    private isVertical;
+    /**
+     * Builds classes of the root element.
+     *
+     * @return Classes for the root element as a single string.
+     */
+    private buildClasses;
+    /**
+     * Converts provided attributes into a single string.
+     *
+     * @param attrs - An object with attributes.
+     *
+     * @return A built string.
+     */
+    private buildAttrs;
+    /**
+     * Converts provided styles into a single string.
+     *
+     * @param styles - An object with styles.
+     *
+     * @return A built string.
+     */
+    private buildStyles;
+    /**
+     * Generates HTML of slides with inserting provided contents.
+     *
+     * @return The HTML for all slides and clones.
+     */
+    private renderSlides;
+    /**
+     * Add the `background` style for the cover mode.
+     *
+     * @param content - A slide content.
+     */
+    private cover;
+    /**
+     * Generates clones.
+     *
+     * @param contents - An array with SlideContent objects.
+     */
+    private generateClones;
+    /**
+     * Returns the number of clones to generate.
+     *
+     * @return A number of clones.
+     */
+    private getCloneCount;
+    /**
+     * Generates arrows and the wrapper element.
+     *
+     * @return The HTML for arrows.
+     */
+    private renderArrows;
+    /**
+     * Generates an arrow HTML.
+     * Some attributes are temporary, and Splide changes them after mount.
+     *
+     * @param prev - Options for each breakpoint.
+     *
+     * @return The HTML for the prev or next arrow.
+     */
+    private renderArrow;
+    /**
+     * Returns the HTML of the slider.
+     *
+     * @return The generated HTML.
+     */
+    html(): string;
+}
+
+declare const EVENT_MOUNTED = "mounted";
+declare const EVENT_READY = "ready";
+declare const EVENT_MOVE = "move";
+declare const EVENT_MOVED = "moved";
+declare const EVENT_SHIFTED = "shifted";
+declare const EVENT_CLICK = "click";
+declare const EVENT_ACTIVE = "active";
+declare const EVENT_INACTIVE = "inactive";
+declare const EVENT_VISIBLE = "visible";
+declare const EVENT_HIDDEN = "hidden";
+declare const EVENT_SLIDE_KEYDOWN = "slide:keydown";
+declare const EVENT_REFRESH = "refresh";
+declare const EVENT_UPDATED = "updated";
+declare const EVENT_RESIZE = "resize";
+declare const EVENT_RESIZED = "resized";
+declare const EVENT_REPOSITIONED = "repositioned";
+declare const EVENT_DRAG = "drag";
+declare const EVENT_DRAGGING = "dragging";
+declare const EVENT_DRAGGED = "dragged";
+declare const EVENT_SCROLL = "scroll";
+declare const EVENT_SCROLLED = "scrolled";
+declare const EVENT_DESTROY = "destroy";
+declare const EVENT_ARROWS_MOUNTED = "arrows:mounted";
+declare const EVENT_ARROWS_UPDATED = "arrows:updated";
+declare const EVENT_PAGINATION_MOUNTED = "pagination:mounted";
+declare const EVENT_PAGINATION_UPDATED = "pagination:updated";
+declare const EVENT_NAVIGATION_MOUNTED = "navigation:mounted";
+declare const EVENT_AUTOPLAY_PLAY = "autoplay:play";
+declare const EVENT_AUTOPLAY_PLAYING = "autoplay:playing";
+declare const EVENT_AUTOPLAY_PAUSE = "autoplay:pause";
+declare const EVENT_LAZYLOAD_LOADED = "lazyload:loaded";
+
+declare const CLASS_ROOT = "splide";
+declare const CLASS_SLIDER: string;
+declare const CLASS_TRACK: string;
+declare const CLASS_LIST: string;
+declare const CLASS_SLIDE: string;
+declare const CLASS_CLONE: string;
+declare const CLASS_CONTAINER: string;
+declare const CLASS_ARROWS: string;
+declare const CLASS_ARROW: string;
+declare const CLASS_ARROW_PREV: string;
+declare const CLASS_ARROW_NEXT: string;
+declare const CLASS_PAGINATION: string;
+declare const CLASS_PAGINATION_PAGE: string;
+declare const CLASS_PROGRESS: string;
+declare const CLASS_PROGRESS_BAR: string;
+declare const CLASS_AUTOPLAY: string;
+declare const CLASS_PLAY: string;
+declare const CLASS_PAUSE: string;
+declare const CLASS_SPINNER: string;
+declare const CLASS_INITIALIZED = "is-initialized";
+declare const CLASS_ACTIVE = "is-active";
+declare const CLASS_PREV = "is-prev";
+declare const CLASS_NEXT = "is-next";
+declare const CLASS_VISIBLE = "is-visible";
+declare const CLASS_LOADING = "is-loading";
+/**
+ * The array with all status classes.
+ *
+ * @since 3.0.0
+ */
+declare const STATUS_CLASSES: string[];
+/**
+ * The collection of classes for elements that Splide dynamically creates.
+ *
+ * @since 3.0.0
+ */
+declare const CLASSES: {
+    slide: string;
+    clone: string;
+    arrows: string;
+    arrow: string;
+    prev: string;
+    next: string;
+    pagination: string;
+    page: string;
+    spinner: string;
+};
+
+export { AnyFunction, ArrowsComponent, AutoplayComponent, BaseComponent, CLASSES, CLASS_ACTIVE, CLASS_ARROW, CLASS_ARROWS, CLASS_ARROW_NEXT, CLASS_ARROW_PREV, CLASS_AUTOPLAY, CLASS_CLONE, CLASS_CONTAINER, CLASS_INITIALIZED, CLASS_LIST, CLASS_LOADING, CLASS_NEXT, CLASS_PAGINATION, CLASS_PAGINATION_PAGE, CLASS_PAUSE, CLASS_PLAY, CLASS_PREV, CLASS_PROGRESS, CLASS_PROGRESS_BAR, CLASS_ROOT, CLASS_SLIDE, CLASS_SLIDER, CLASS_SPINNER, CLASS_TRACK, CLASS_VISIBLE, ClonesComponent, ComponentConstructor, Components, ControllerComponent, CoverComponent, DirectionComponent, DragComponent, EVENT_ACTIVE, EVENT_ARROWS_MOUNTED, EVENT_ARROWS_UPDATED, EVENT_AUTOPLAY_PAUSE, EVENT_AUTOPLAY_PLAY, EVENT_AUTOPLAY_PLAYING, EVENT_CLICK, EVENT_DESTROY, EVENT_DRAG, EVENT_DRAGGED, EVENT_DRAGGING, EVENT_HIDDEN, EVENT_INACTIVE, EVENT_LAZYLOAD_LOADED, EVENT_MOUNTED, EVENT_MOVE, EVENT_MOVED, EVENT_NAVIGATION_MOUNTED, EVENT_PAGINATION_MOUNTED, EVENT_PAGINATION_UPDATED, EVENT_READY, EVENT_REFRESH, EVENT_REPOSITIONED, EVENT_RESIZE, EVENT_RESIZED, EVENT_SCROLL, EVENT_SCROLLED, EVENT_SHIFTED, EVENT_SLIDE_KEYDOWN, EVENT_UPDATED, EVENT_VISIBLE, ElementsComponent, EventBus, EventBusCallback, EventBusObject, EventHandler, EventInterface, EventInterfaceObject, EventMap, KeyboardComponent, LayoutComponent, LazyLoadComponent, MoveComponent, Options, OptionsComponent, PaginationComponent, PaginationData, PaginationItem, RequestInterval, RequestIntervalInterface, ResponsiveOptions, STATUS_CLASSES, ScrollComponent, SlideComponent, SlidesComponent, Splide, SplideRenderer, State, StateObject, SyncComponent, SyncTarget, Throttle, ThrottleInstance, TransitionComponent, WheelComponent, Splide as default };

+ 0 - 1
dist/types/index.d.ts.map

@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}

+ 0 - 297
dist/types/renderer/SplideRenderer/SplideRenderer.d.ts

@@ -1,297 +0,0 @@
-import { Splide } from '../../core/Splide/Splide';
-import { Options } from '../../types';
-import { RendererConfig, SlideContent } from '../types/types';
-/**
- * The class to generate static HTML of the slider for the first view.
- *
- * @since 3.0.0
- */
-export declare class SplideRenderer {
-    /**
-     * Removes a style element and clones.
-     *
-     * @param splide - A Splide instance.
-     */
-    static clean(splide: Splide): void;
-    /**
-     * Holds slide contents.
-     */
-    private readonly contents;
-    /**
-     * Stores data of slides.
-     */
-    private readonly slides;
-    /**
-     * The Direction component.
-     */
-    private readonly Direction;
-    /**
-     * Holds the Style instance.
-     */
-    private readonly Style;
-    /**
-     * Holds options.
-     */
-    private readonly options;
-    /**
-     * Holds options for this instance.
-     */
-    private readonly config;
-    /**
-     * The slider ID.
-     */
-    private readonly id;
-    /**
-     * An array with options for each breakpoint.
-     */
-    private readonly breakpoints;
-    /**
-     * The SplideRenderer constructor.
-     *
-     * @param contents - An array with slide contents. Each item must be an HTML or a plain text.
-     * @param options  - Optional. Slider options.
-     * @param config   - Static default options.
-     * @param defaults - Default options for the slider. Pass `Splide.defaults` if you are using it.
-     */
-    constructor(contents: string[] | SlideContent[], options?: Options, config?: RendererConfig, defaults?: Options);
-    /**
-     * Initializes the instance.
-     */
-    private init;
-    /**
-     * Initializes slides.
-     */
-    private initSlides;
-    /**
-     * Registers styles for the root element.
-     */
-    private registerRootStyles;
-    /**
-     * Registers styles for the track element.
-     */
-    private registerTrackStyles;
-    /**
-     * Registers styles for the list element.
-     */
-    private registerListStyles;
-    /**
-     * Registers styles for slides and clones.
-     */
-    private registerSlideStyles;
-    /**
-     * Builds multiple `translateX` for the list element.
-     *
-     * @param options - Options for each breakpoint.
-     *
-     * @return A string with multiple translate functions.
-     */
-    private buildTranslate;
-    /**
-     * Returns offset for the list element.
-     * This does not include gaps because it can not be converted into percent.
-     *
-     * @param options - Options for each breakpoint.
-     *
-     * @return The offset.
-     */
-    private cssOffsetClones;
-    /**
-     * Returns offset for centering the active slide.
-     *
-     * Note:
-     * ( 100% + gap ) / perPage - gap
-     * 100% / perPage + gap / perPage - gap;
-     * 50% / perPage + ( gap / perPage - gap ) / 2;
-     *
-     * @param options - Options for each breakpoint.
-     *
-     * @return The offset.
-     */
-    private cssOffsetCenter;
-    /**
-     * Returns offset for gaps.
-     *
-     * @param options - Options for each breakpoint.
-     *
-     * @return The offset as `calc()`.
-     */
-    private cssOffsetGaps;
-    /**
-     * Resolves the prop for the current direction and converts it into the Kebab case.
-     *
-     * @param prop - A property name to resolve.
-     *
-     * @return A resolved property name in the Kebab case.
-     */
-    private resolve;
-    /**
-     * Returns padding in the CSS format.
-     *
-     * @param options - Options.
-     * @param right   - Determines whether to get padding right or left.
-     *
-     * @return Padding in the CSS format.
-     */
-    private cssPadding;
-    /**
-     * Returns height of the track element in the CSS format.
-     *
-     * @param options - Options.
-     *
-     * @return Height in the CSS format.
-     */
-    private cssTrackHeight;
-    /**
-     * Returns height provided though options in the CSS format.
-     *
-     * @param options - Options.
-     *
-     * @return Height in the CSS format.
-     */
-    private cssHeight;
-    /**
-     * Returns width of each slide in the CSS format.
-     *
-     * @param options - Options.
-     *
-     * @return Width in the CSS format.
-     */
-    private cssSlideWidth;
-    /**
-     * Returns height of each slide in the CSS format.
-     *
-     * @param options - Options.
-     *
-     * @return Height in the CSS format.
-     */
-    private cssSlideHeight;
-    /**
-     * Returns width or height of each slide in the CSS format, considering the current direction.
-     *
-     * @param options - Options.
-     *
-     * @return Width or height in the CSS format.
-     */
-    private cssSlideSize;
-    /**
-     * Returns the aspectRatio value to simulate the `heightRatio` option.
-     *
-     * @param options - Options.
-     *
-     * @return aspectRatio in the CSS format.
-     */
-    private cssAspectRatio;
-    /**
-     * Builds the css value by the provided value and unit.
-     *
-     * @param value - A value.
-     * @param unit  - A CSS unit.
-     *
-     * @return A built value for a CSS value.
-     */
-    private buildCssValue;
-    /**
-     * Parses the CSS value into number and unit.
-     *
-     * @param value - A value to parse.
-     *
-     * @return An object with value and unit.
-     */
-    private parseCssValue;
-    /**
-     * Parses breakpoints and generate options for each breakpoint.
-     */
-    private parseBreakpoints;
-    /**
-     * Checks if the slide width is fixed or not.
-     *
-     * @return `true` if the slide width is fixed, or otherwise `false`.
-     */
-    private isFixedWidth;
-    /**
-     * Checks if the slider type is loop or not.
-     *
-     * @return `true` if the slider type is loop, or otherwise `false`.
-     */
-    private isLoop;
-    /**
-     * Checks if the active slide should be centered or not.
-     *
-     * @return `true` if the slide should be centered, or otherwise `false`.
-     */
-    private isCenter;
-    /**
-     * Checks if the direction is TTB or not.
-     *
-     * @return `true` if the direction is TTB, or otherwise `false`.
-     */
-    private isVertical;
-    /**
-     * Builds classes of the root element.
-     *
-     * @return Classes for the root element as a single string.
-     */
-    private buildClasses;
-    /**
-     * Converts provided attributes into a single string.
-     *
-     * @param attrs - An object with attributes.
-     *
-     * @return A built string.
-     */
-    private buildAttrs;
-    /**
-     * Converts provided styles into a single string.
-     *
-     * @param styles - An object with styles.
-     *
-     * @return A built string.
-     */
-    private buildStyles;
-    /**
-     * Generates HTML of slides with inserting provided contents.
-     *
-     * @return The HTML for all slides and clones.
-     */
-    private renderSlides;
-    /**
-     * Add the `background` style for the cover mode.
-     *
-     * @param content - A slide content.
-     */
-    private cover;
-    /**
-     * Generates clones.
-     *
-     * @param contents - An array with SlideContent objects.
-     */
-    private generateClones;
-    /**
-     * Returns the number of clones to generate.
-     *
-     * @return A number of clones.
-     */
-    private getCloneCount;
-    /**
-     * Generates arrows and the wrapper element.
-     *
-     * @return The HTML for arrows.
-     */
-    private renderArrows;
-    /**
-     * Generates an arrow HTML.
-     * Some attributes are temporary, and Splide changes them after mount.
-     *
-     * @param prev - Options for each breakpoint.
-     *
-     * @return The HTML for the prev or next arrow.
-     */
-    private renderArrow;
-    /**
-     * Returns the HTML of the slider.
-     *
-     * @return The generated HTML.
-     */
-    html(): string;
-}
-//# sourceMappingURL=../../../../src/js/renderer/SplideRenderer/SplideRenderer.d.ts.map

部分文件因文件數量過多而無法顯示