Przeglądaj źródła

Refactoring exports.

NaotoshiFujita 3 lat temu
rodzic
commit
57f483a0ae
100 zmienionych plików z 693 dodań i 575 usunięć
  1. 63 88
      dist/js/splide.cjs.js
  2. 7 88
      dist/js/splide.esm.js
  3. 0 0
      dist/js/splide.js.map
  4. 0 0
      dist/js/splide.min.js
  5. BIN
      dist/js/splide.min.js.gz
  6. 12 1
      dist/types/components/Arrows/Arrows.d.ts
  7. 1 1
      dist/types/components/Arrows/Arrows.d.ts.map
  8. 11 1
      dist/types/components/Autoplay/Autoplay.d.ts
  9. 1 1
      dist/types/components/Autoplay/Autoplay.d.ts.map
  10. 9 2
      dist/types/components/Clones/Clones.d.ts
  11. 1 1
      dist/types/components/Clones/Clones.d.ts.map
  12. 16 1
      dist/types/components/Controller/Controller.d.ts
  13. 1 1
      dist/types/components/Controller/Controller.d.ts.map
  14. 8 1
      dist/types/components/Cover/Cover.d.ts
  15. 1 1
      dist/types/components/Cover/Cover.d.ts.map
  16. 10 1
      dist/types/components/Direction/Direction.d.ts
  17. 1 1
      dist/types/components/Direction/Direction.d.ts.map
  18. 8 1
      dist/types/components/Drag/Drag.d.ts
  19. 1 1
      dist/types/components/Drag/Drag.d.ts.map
  20. 26 1
      dist/types/components/Elements/Elements.d.ts
  21. 1 1
      dist/types/components/Elements/Elements.d.ts.map
  22. 8 1
      dist/types/components/Keyboard/Keyboard.d.ts
  23. 1 1
      dist/types/components/Keyboard/Keyboard.d.ts.map
  24. 13 1
      dist/types/components/Layout/Layout.d.ts
  25. 1 1
      dist/types/components/Layout/Layout.d.ts.map
  26. 21 1
      dist/types/components/LazyLoad/LazyLoad.d.ts
  27. 1 1
      dist/types/components/LazyLoad/LazyLoad.d.ts.map
  28. 20 1
      dist/types/components/Move/Move.d.ts
  29. 1 1
      dist/types/components/Move/Move.d.ts.map
  30. 8 1
      dist/types/components/Options/Options.d.ts
  31. 1 1
      dist/types/components/Options/Options.d.ts.map
  32. 20 1
      dist/types/components/Pagination/Pagination.d.ts
  33. 1 1
      dist/types/components/Pagination/Pagination.d.ts.map
  34. 10 1
      dist/types/components/Scroll/Scroll.d.ts
  35. 1 1
      dist/types/components/Scroll/Scroll.d.ts.map
  36. 15 1
      dist/types/components/Slides/Slide.d.ts
  37. 1 1
      dist/types/components/Slides/Slide.d.ts.map
  38. 38 1
      dist/types/components/Slides/Slides.d.ts
  39. 1 1
      dist/types/components/Slides/Slides.d.ts.map
  40. 10 1
      dist/types/components/Style/Style.d.ts
  41. 1 1
      dist/types/components/Style/Style.d.ts.map
  42. 8 1
      dist/types/components/Sync/Sync.d.ts
  43. 1 1
      dist/types/components/Sync/Sync.d.ts.map
  44. 8 1
      dist/types/components/Wheel/Wheel.d.ts
  45. 1 1
      dist/types/components/Wheel/Wheel.d.ts.map
  46. 1 1
      dist/types/constants/defaults.d.ts
  47. 1 1
      dist/types/constants/defaults.d.ts.map
  48. 31 1
      dist/types/constructors/EventBus/EventBus.d.ts
  49. 1 1
      dist/types/constructors/EventBus/EventBus.d.ts.map
  50. 15 1
      dist/types/constructors/EventInterface/EventInterface.d.ts
  51. 1 1
      dist/types/constructors/EventInterface/EventInterface.d.ts.map
  52. 12 1
      dist/types/constructors/RequestInterval/RequestInterval.d.ts
  53. 1 1
      dist/types/constructors/RequestInterval/RequestInterval.d.ts.map
  54. 9 1
      dist/types/constructors/State/State.d.ts
  55. 1 1
      dist/types/constructors/State/State.d.ts.map
  56. 9 1
      dist/types/constructors/Throttle/Throttle.d.ts
  57. 1 1
      dist/types/constructors/Throttle/Throttle.d.ts.map
  58. 5 5
      dist/types/constructors/index.d.ts
  59. 1 1
      dist/types/constructors/index.d.ts.map
  60. 4 2
      dist/types/core/Splide/Splide.d.ts
  61. 1 1
      dist/types/core/Splide/Splide.d.ts.map
  62. 3 1
      dist/types/index.d.ts
  63. 1 1
      dist/types/index.d.ts.map
  64. 1 1
      dist/types/test/utils/utils.d.ts
  65. 1 1
      dist/types/test/utils/utils.d.ts.map
  66. 1 1
      dist/types/transitions/Fade/Fade.d.ts
  67. 1 1
      dist/types/transitions/Fade/Fade.d.ts.map
  68. 1 1
      dist/types/transitions/Slide/Slide.d.ts
  69. 1 1
      dist/types/transitions/Slide/Slide.d.ts.map
  70. 45 0
      dist/types/types/general.d.ts
  71. 1 0
      dist/types/types/general.d.ts.map
  72. 3 0
      dist/types/types/index.d.ts
  73. 1 0
      dist/types/types/index.d.ts.map
  74. 23 69
      dist/types/types/options.d.ts
  75. 0 0
      dist/types/types/options.d.ts.map
  76. 1 1
      dist/types/utils/function/nextTick/nextTick.d.ts
  77. 1 1
      dist/types/utils/function/nextTick/nextTick.d.ts.map
  78. 8 8
      dist/types/utils/type/type.d.ts
  79. 1 1
      dist/types/utils/type/type.d.ts.map
  80. 0 37
      src/js/@types/splide.d.ts
  81. 10 1
      src/js/components/Arrows/Arrows.ts
  82. 0 19
      src/js/components/Arrows/splide.d.ts
  83. 12 1
      src/js/components/Autoplay/Autoplay.ts
  84. 0 21
      src/js/components/Autoplay/splide.d.ts
  85. 1 1
      src/js/components/Autoplay/test/autoToggle.test.ts
  86. 11 3
      src/js/components/Clones/Clones.ts
  87. 0 18
      src/js/components/Clones/splide.d.ts
  88. 18 2
      src/js/components/Controller/Controller.ts
  89. 0 26
      src/js/components/Controller/splide.d.ts
  90. 10 1
      src/js/components/Cover/Cover.ts
  91. 0 18
      src/js/components/Cover/splide.d.ts
  92. 11 1
      src/js/components/Direction/Direction.ts
  93. 0 20
      src/js/components/Direction/splide.d.ts
  94. 10 2
      src/js/components/Drag/Drag.ts
  95. 0 18
      src/js/components/Drag/splide.d.ts
  96. 29 2
      src/js/components/Elements/Elements.ts
  97. 0 37
      src/js/components/Elements/splide.d.ts
  98. 10 2
      src/js/components/Keyboard/Keyboard.ts
  99. 0 18
      src/js/components/Keyboard/splide.d.ts
  100. 14 1
      src/js/components/Layout/Layout.ts

+ 63 - 88
dist/js/splide.cjs.js

@@ -236,29 +236,6 @@ var arrayProto = Array.prototype;
 function slice(arrayLike, start, end) {
   return arrayProto.slice.call(arrayLike, start, end);
 }
-/**
- * The splice method for an array-like object.
- *
- * @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
- *
- * @param arrayLike   - An array-like object.
- * @param start       - A start index.
- * @param deleteCount - Optional. A number of elements to remove from the `start` index.
- * @param args        - Optional. Any number of items to add.
- *
- * @return An array with deleted items.
- */
-
-
-function splice(arrayLike, start, deleteCount) {
-  var _arrayProto$splice;
-
-  for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
-    args[_key - 3] = arguments[_key];
-  }
-
-  return (_arrayProto$splice = arrayProto.splice).call.apply(_arrayProto$splice, [arrayLike, start, deleteCount].concat(args));
-}
 /**
  * The find method for an array or array-like object, works in IE.
  * This method is not performant for a huge array.
@@ -410,8 +387,8 @@ function forOwn(object, iteratee) {
 
 
 function assign(object) {
-  for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
-    sources[_key2 - 1] = arguments[_key2];
+  for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+    sources[_key - 1] = arguments[_key];
   }
 
   sources.forEach(function (source) {
@@ -742,64 +719,6 @@ var min = Math.min,
     ceil = Math.ceil,
     abs = Math.abs,
     round = Math.round;
-var index = /*#__PURE__*/Object.freeze({
-  __proto__: null,
-  empty: empty,
-  forEach: forEach,
-  includes: includes,
-  push: push,
-  toArray: toArray,
-  arrayProto: arrayProto,
-  slice: slice,
-  splice: splice,
-  find: find,
-  addClass: addClass,
-  append: append,
-  before: before,
-  child: child,
-  children: children,
-  create: create,
-  display: display,
-  getAttribute: getAttribute,
-  hasClass: hasClass,
-  matches: matches,
-  parseHtml: parseHtml,
-  prevent: prevent,
-  query: query,
-  queryAll: queryAll,
-  rect: rect,
-  remove: remove,
-  removeAttribute: removeAttribute,
-  removeClass: removeClass,
-  setAttribute: setAttribute,
-  style: style,
-  toggleClass: toggleClass,
-  unit: unit,
-  assert: assert,
-  nextTick: nextTick,
-  noop: noop,
-  raf: raf,
-  between: between,
-  clamp: clamp,
-  sign: sign,
-  min: min,
-  max: max,
-  floor: floor,
-  ceil: ceil,
-  abs: abs,
-  round: round,
-  assign: assign,
-  forOwn: forOwn,
-  merge: merge,
-  isObject: isObject,
-  isArray: isArray,
-  isFunction: isFunction,
-  isString: isString,
-  isUndefined: isUndefined,
-  isNull: isNull,
-  isHTMLElement: isHTMLElement,
-  isHTMLButtonElement: isHTMLButtonElement
-});
 /**
  * The component for managing options.
  *
@@ -4850,7 +4769,7 @@ function Wheel(Splide, Components, options) {
   };
 }
 
-var CoreComponents = /*#__PURE__*/Object.freeze({
+var ComponentConstructors = /*#__PURE__*/Object.freeze({
   __proto__: null,
   Options: Options,
   Direction: Direction,
@@ -5143,7 +5062,7 @@ var Splide = /*#__PURE__*/function () {
     this.state.set(CREATED);
     this.Transition = Transition || this.Transition || (this.is(FADE) ? Fade : Slide);
     this.Extensions = Extensions || this.Extensions;
-    var Components = assign({}, CoreComponents, this.Extensions, {
+    var Components = assign({}, ComponentConstructors, this.Extensions, {
       Transition: this.Transition
     });
     forOwn(Components, function (Component, key) {
@@ -5290,8 +5209,8 @@ var Splide = /*#__PURE__*/function () {
   _proto.emit = function emit(event) {
     var _this$event;
 
-    for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
-      args[_key3 - 1] = arguments[_key3];
+    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+      args[_key2 - 1] = arguments[_key2];
     }
 
     (_this$event = this.event).emit.apply(_this$event, [event].concat(args));
@@ -5450,11 +5369,67 @@ Splide.defaults = {};
  */
 
 Splide.STATES = STATES;
+exports.CLASSES = CLASSES;
+exports.CLASS_ACTIVE = CLASS_ACTIVE;
+exports.CLASS_ARROW = CLASS_ARROW;
+exports.CLASS_ARROWS = CLASS_ARROWS;
+exports.CLASS_ARROW_NEXT = CLASS_ARROW_NEXT;
+exports.CLASS_ARROW_PREV = CLASS_ARROW_PREV;
+exports.CLASS_AUTOPLAY = CLASS_AUTOPLAY;
+exports.CLASS_CLONE = CLASS_CLONE;
+exports.CLASS_CONTAINER = CLASS_CONTAINER;
+exports.CLASS_INITIALIZED = CLASS_INITIALIZED;
+exports.CLASS_LIST = CLASS_LIST;
+exports.CLASS_LOADING = CLASS_LOADING;
+exports.CLASS_NEXT = CLASS_NEXT;
+exports.CLASS_PAGINATION = CLASS_PAGINATION;
+exports.CLASS_PAGINATION_PAGE = CLASS_PAGINATION_PAGE;
+exports.CLASS_PAUSE = CLASS_PAUSE;
+exports.CLASS_PLAY = CLASS_PLAY;
+exports.CLASS_PREV = CLASS_PREV;
+exports.CLASS_PROGRESS = CLASS_PROGRESS;
+exports.CLASS_PROGRESS_BAR = CLASS_PROGRESS_BAR;
+exports.CLASS_ROOT = CLASS_ROOT;
+exports.CLASS_SLIDE = CLASS_SLIDE;
+exports.CLASS_SLIDER = CLASS_SLIDER;
+exports.CLASS_SPINNER = CLASS_SPINNER;
+exports.CLASS_TRACK = CLASS_TRACK;
+exports.CLASS_VISIBLE = CLASS_VISIBLE;
+exports.EVENT_ACTIVE = EVENT_ACTIVE;
+exports.EVENT_ARROWS_MOUNTED = EVENT_ARROWS_MOUNTED;
+exports.EVENT_ARROWS_UPDATED = EVENT_ARROWS_UPDATED;
+exports.EVENT_AUTOPLAY_PAUSE = EVENT_AUTOPLAY_PAUSE;
+exports.EVENT_AUTOPLAY_PLAY = EVENT_AUTOPLAY_PLAY;
+exports.EVENT_AUTOPLAY_PLAYING = EVENT_AUTOPLAY_PLAYING;
+exports.EVENT_CLICK = EVENT_CLICK;
+exports.EVENT_DESTROY = EVENT_DESTROY;
+exports.EVENT_DRAG = EVENT_DRAG;
+exports.EVENT_DRAGGED = EVENT_DRAGGED;
+exports.EVENT_DRAGGING = EVENT_DRAGGING;
+exports.EVENT_HIDDEN = EVENT_HIDDEN;
+exports.EVENT_INACTIVE = EVENT_INACTIVE;
+exports.EVENT_LAZYLOAD_LOADED = EVENT_LAZYLOAD_LOADED;
+exports.EVENT_MOUNTED = EVENT_MOUNTED;
+exports.EVENT_MOVE = EVENT_MOVE;
+exports.EVENT_MOVED = EVENT_MOVED;
+exports.EVENT_NAVIGATION_MOUNTED = EVENT_NAVIGATION_MOUNTED;
+exports.EVENT_PAGINATION_MOUNTED = EVENT_PAGINATION_MOUNTED;
+exports.EVENT_PAGINATION_PAGE = EVENT_PAGINATION_PAGE;
+exports.EVENT_PAGINATION_UPDATED = EVENT_PAGINATION_UPDATED;
+exports.EVENT_READY = EVENT_READY;
+exports.EVENT_REFRESH = EVENT_REFRESH;
+exports.EVENT_RESIZE = EVENT_RESIZE;
+exports.EVENT_RESIZED = EVENT_RESIZED;
+exports.EVENT_SCROLL = EVENT_SCROLL;
+exports.EVENT_SCROLLED = EVENT_SCROLLED;
+exports.EVENT_SLIDE_KEYDOWN = EVENT_SLIDE_KEYDOWN;
+exports.EVENT_UPDATED = EVENT_UPDATED;
+exports.EVENT_VISIBLE = EVENT_VISIBLE;
 exports.EventBus = EventBus;
 exports.EventInterface = EventInterface;
 exports.RequestInterval = RequestInterval;
+exports.STATUS_CLASSES = STATUS_CLASSES;
 exports.Splide = Splide;
 exports.State = State;
 exports.Throttle = Throttle;
 exports['default'] = Splide;
-exports.utils = index;

+ 7 - 88
dist/js/splide.esm.js

@@ -231,29 +231,6 @@ var arrayProto = Array.prototype;
 function slice(arrayLike, start, end) {
   return arrayProto.slice.call(arrayLike, start, end);
 }
-/**
- * The splice method for an array-like object.
- *
- * @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
- *
- * @param arrayLike   - An array-like object.
- * @param start       - A start index.
- * @param deleteCount - Optional. A number of elements to remove from the `start` index.
- * @param args        - Optional. Any number of items to add.
- *
- * @return An array with deleted items.
- */
-
-
-function splice(arrayLike, start, deleteCount) {
-  var _arrayProto$splice;
-
-  for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
-    args[_key - 3] = arguments[_key];
-  }
-
-  return (_arrayProto$splice = arrayProto.splice).call.apply(_arrayProto$splice, [arrayLike, start, deleteCount].concat(args));
-}
 /**
  * The find method for an array or array-like object, works in IE.
  * This method is not performant for a huge array.
@@ -405,8 +382,8 @@ function forOwn(object, iteratee) {
 
 
 function assign(object) {
-  for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
-    sources[_key2 - 1] = arguments[_key2];
+  for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+    sources[_key - 1] = arguments[_key];
   }
 
   sources.forEach(function (source) {
@@ -737,64 +714,6 @@ var min = Math.min,
     ceil = Math.ceil,
     abs = Math.abs,
     round = Math.round;
-var index = /*#__PURE__*/Object.freeze({
-  __proto__: null,
-  empty: empty,
-  forEach: forEach,
-  includes: includes,
-  push: push,
-  toArray: toArray,
-  arrayProto: arrayProto,
-  slice: slice,
-  splice: splice,
-  find: find,
-  addClass: addClass,
-  append: append,
-  before: before,
-  child: child,
-  children: children,
-  create: create,
-  display: display,
-  getAttribute: getAttribute,
-  hasClass: hasClass,
-  matches: matches,
-  parseHtml: parseHtml,
-  prevent: prevent,
-  query: query,
-  queryAll: queryAll,
-  rect: rect,
-  remove: remove,
-  removeAttribute: removeAttribute,
-  removeClass: removeClass,
-  setAttribute: setAttribute,
-  style: style,
-  toggleClass: toggleClass,
-  unit: unit,
-  assert: assert,
-  nextTick: nextTick,
-  noop: noop,
-  raf: raf,
-  between: between,
-  clamp: clamp,
-  sign: sign,
-  min: min,
-  max: max,
-  floor: floor,
-  ceil: ceil,
-  abs: abs,
-  round: round,
-  assign: assign,
-  forOwn: forOwn,
-  merge: merge,
-  isObject: isObject,
-  isArray: isArray,
-  isFunction: isFunction,
-  isString: isString,
-  isUndefined: isUndefined,
-  isNull: isNull,
-  isHTMLElement: isHTMLElement,
-  isHTMLButtonElement: isHTMLButtonElement
-});
 /**
  * The component for managing options.
  *
@@ -4845,7 +4764,7 @@ function Wheel(Splide, Components, options) {
   };
 }
 
-var CoreComponents = /*#__PURE__*/Object.freeze({
+var ComponentConstructors = /*#__PURE__*/Object.freeze({
   __proto__: null,
   Options: Options,
   Direction: Direction,
@@ -5138,7 +5057,7 @@ var Splide = /*#__PURE__*/function () {
     this.state.set(CREATED);
     this.Transition = Transition || this.Transition || (this.is(FADE) ? Fade : Slide);
     this.Extensions = Extensions || this.Extensions;
-    var Components = assign({}, CoreComponents, this.Extensions, {
+    var Components = assign({}, ComponentConstructors, this.Extensions, {
       Transition: this.Transition
     });
     forOwn(Components, function (Component, key) {
@@ -5285,8 +5204,8 @@ var Splide = /*#__PURE__*/function () {
   _proto.emit = function emit(event) {
     var _this$event;
 
-    for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
-      args[_key3 - 1] = arguments[_key3];
+    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+      args[_key2 - 1] = arguments[_key2];
     }
 
     (_this$event = this.event).emit.apply(_this$event, [event].concat(args));
@@ -5445,4 +5364,4 @@ Splide.defaults = {};
  */
 
 Splide.STATES = STATES;
-export { EventBus, EventInterface, RequestInterval, Splide, State, Throttle, Splide as default, index as utils };
+export { 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, 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_PAGE, EVENT_PAGINATION_UPDATED, EVENT_READY, EVENT_REFRESH, EVENT_RESIZE, EVENT_RESIZED, EVENT_SCROLL, EVENT_SCROLLED, EVENT_SLIDE_KEYDOWN, EVENT_UPDATED, EVENT_VISIBLE, EventBus, EventInterface, RequestInterval, STATUS_CLASSES, Splide, State, Throttle, Splide as default };

Plik diff jest za duży
+ 0 - 0
dist/js/splide.js.map


Plik diff jest za duży
+ 0 - 0
dist/js/splide.min.js


BIN
dist/js/splide.min.js.gz


+ 12 - 1
dist/types/components/Arrows/Arrows.d.ts

@@ -1,5 +1,16 @@
-import { ArrowsComponent, Components, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Arrows.d.ts","sourceRoot":"","sources":["Arrows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAYxE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA8IlG"}
+{"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,CA8IlG"}

+ 11 - 1
dist/types/components/Autoplay/Autoplay.d.ts

@@ -1,5 +1,15 @@
-import { AutoplayComponent, Components, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Autoplay.d.ts","sourceRoot":"","sources":["Autoplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAW1E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CA2ItG"}
+{"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;AAIjE;;;;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,CA2ItG"}

+ 9 - 2
dist/types/components/Clones/Clones.d.ts

@@ -1,5 +1,12 @@
-import { Components, Options } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
+/**
+ * The interface for the Clone component.
+ *
+ * @since 3.0.0
+ */
+export interface CloneComponent extends BaseComponent {
+}
 /**
  * The component that generates clones for the loop slider.
  *
@@ -11,5 +18,5 @@ import { Splide } from '../../core/Splide/Splide';
  *
  * @return A Clones component object.
  */
-export declare function Clones(Splide: Splide, Components: Components, options: Options): any;
+export declare function Clones(Splide: Splide, Components: Components, options: Options): CloneComponent;
 //# sourceMappingURL=../../../../src/js/components/Clones/Clones.d.ts.map

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

@@ -1 +1 @@
-{"version":3,"file":"Clones.d.ts","sourceRoot":"","sources":["Clones.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,GAAG,CA8HtF"}
+{"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;AAKjE;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;CACpD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,cAAc,CA8HjG"}

+ 16 - 1
dist/types/components/Controller/Controller.d.ts

@@ -1,5 +1,20 @@
-import { Components, ControllerComponent, Options } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { 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): void;
+    getNext(destination?: boolean): number;
+    getPrev(destination?: boolean): number;
+    getEnd(): number;
+    getIndex(prev?: boolean): number;
+    toIndex(page: number): number;
+    toPage(index: number): number;
+    hasFocus(): boolean;
+}
 /**
  * The component for controlling the slider.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["Controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG5E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAwR1G"}
+{"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["Controller.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,mBAAoB,SAAQ,aAAa;IACxD,EAAE,CAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,cAAc,CAAC,EAAE,OAAO,GAAI,IAAI,CAAC;IAC/D,OAAO,CAAE,WAAW,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACzC,OAAO,CAAE,WAAW,CAAC,EAAE,OAAO,GAAI,MAAM,CAAC;IACzC,MAAM,IAAI,MAAM,CAAC;IACjB,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,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAwR1G"}

+ 8 - 1
dist/types/components/Cover/Cover.d.ts

@@ -1,5 +1,12 @@
-import { Components, CoverComponent, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["Cover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAkB,MAAM,kBAAkB,CAAC;AAGvF,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,cAAc,CAmDhG"}
+{"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"}

+ 10 - 1
dist/types/components/Direction/Direction.d.ts

@@ -1,5 +1,14 @@
-import { Components, DirectionComponent, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Direction.d.ts","sourceRoot":"","sources":["Direction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD;;;;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"}
+{"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"}

+ 8 - 1
dist/types/components/Drag/Drag.d.ts

@@ -1,5 +1,12 @@
-import { Components, DragComponent, Options } from '@splidejs/splide';
 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 {
+}
 /**
  * The component for dragging the slider.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Drag.d.ts","sourceRoot":"","sources":["Drag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CA4Q9F"}
+{"version":3,"file":"Drag.d.ts","sourceRoot":"","sources":["Drag.ts"],"names":[],"mappings":"AAGA,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;CACnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CA4Q9F"}

+ 26 - 1
dist/types/components/Elements/Elements.d.ts

@@ -1,5 +1,30 @@
-import { Components, ElementsComponent, Options } from '@splidejs/splide';
 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;
+    play: HTMLElement;
+    pause: HTMLElement;
+}
+/**
+ * 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Elements.d.ts","sourceRoot":"","sources":["Elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,iBAAiB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAoB7F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAoItG"}
+{"version":3,"file":"Elements.d.ts","sourceRoot":"","sources":["Elements.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;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,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC;CACpB;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,CAoItG"}

+ 8 - 1
dist/types/components/Keyboard/Keyboard.d.ts

@@ -1,5 +1,12 @@
-import { Components, KeyboardComponent, Options } from '@splidejs/splide';
 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 {
+}
 /**
  * The component for controlling the slider by keyboards.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Keyboard.d.ts","sourceRoot":"","sources":["Keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAYlD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CA4EtG"}
+{"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;CACvD;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CA4EtG"}

+ 13 - 1
dist/types/components/Layout/Layout.d.ts

@@ -1,5 +1,17 @@
-import { Components, LayoutComponent, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["Layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIxE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA0NlG"}
+{"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,CA0NlG"}

+ 21 - 1
dist/types/components/LazyLoad/LazyLoad.d.ts

@@ -1,5 +1,25 @@
-import { Components, LazyLoadComponent, Options } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"LazyLoad.d.ts","sourceRoot":"","sources":["LazyLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAsB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAU9F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAgBlD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,iBAAiB,CAsItG"}
+{"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,GAAG,EAAE,gBAAgB,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,cAAc,CAAC;IACtB,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,CAsItG"}

+ 20 - 1
dist/types/components/Move/Move.d.ts

@@ -1,5 +1,24 @@
-import { Components, MoveComponent, Options } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { 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): void;
+    jump(index: number): void;
+    translate(position: number): void;
+    cancel(): void;
+    toIndex(position: number): number;
+    toPosition(index: number, trimming?: boolean): number;
+    getPosition(): number;
+    getLimit(max: boolean): number;
+    isBusy(): boolean;
+    isExceeded(): boolean;
+    isExceededMin(position: number, offset?: number): boolean;
+    isExceededMax(position: number, offset?: number): boolean;
+}
 /**
  * The component for moving the slider.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Move.d.ts","sourceRoot":"","sources":["Move.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CAqS9F"}
+{"version":3,"file":"Move.d.ts","sourceRoot":"","sources":["Move.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,IAAI,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAI,IAAI,CAAC;IACxD,IAAI,CAAE,KAAK,EAAE,MAAM,GAAI,IAAI,CAAC;IAC5B,SAAS,CAAE,QAAQ,EAAE,MAAM,GAAI,IAAI,CAAC;IACpC,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,UAAU,IAAI,OAAO,CAAC;IACtB,aAAa,CAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAI,OAAO,CAAC;IAC5D,aAAa,CAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAI,OAAO,CAAC;CAC7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CAqS9F"}

+ 8 - 1
dist/types/components/Options/Options.d.ts

@@ -1,5 +1,12 @@
-import { Components, Options, OptionsComponent } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,gBAAgB,CAqFpG"}
+{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["Options.ts"],"names":[],"mappings":"AAEA,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,CAqFpG"}

+ 20 - 1
dist/types/components/Pagination/Pagination.d.ts

@@ -1,5 +1,24 @@
-import { Components, Options, PaginationComponent } from '@splidejs/splide';
 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;
+}
+/**
+ * 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAkB,MAAM,kBAAkB,CAAC;AAU5F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAmH1G"}
+{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKjE;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAE,KAAK,EAAE,MAAM,GAAI,cAAc,CAAC;CACxC;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,CAmH1G"}

+ 10 - 1
dist/types/components/Scroll/Scroll.d.ts

@@ -1,5 +1,14 @@
-import { Components, Options, ScrollComponent } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { 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): void;
+    cancel(): void;
+}
 /**
  * The component for scrolling the slider.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Scroll.d.ts","sourceRoot":"","sources":["Scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAA4B,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIlG,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CAoHlG"}
+{"version":3,"file":"Scroll.d.ts","sourceRoot":"","sources":["Scroll.ts"],"names":[],"mappings":"AAGA,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,CAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IACpD,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CAoHlG"}

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

@@ -1,5 +1,19 @@
-import { SlideComponent } from '@splidejs/splide';
 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;
+    rule(prop: string, value: string | number, useContainer?: boolean): void;
+    isWithin(from: number, distance: number): boolean;
+}
 /**
  * The sub component for managing each slide.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAgClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAmBlD;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAI,cAAc,CAmM7G"}
+{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAkB5C;;;;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,IAAI,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAI,IAAI,CAAA;IAC1E,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,CAmM7G"}

+ 38 - 1
dist/types/components/Slides/Slides.d.ts

@@ -1,5 +1,42 @@
-import { Components, Options, SlidesComponent } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { AnyFunction, BaseComponent, Components, Options } from '../../types';
+import { SlideComponent } from './Slide';
+/**
+ * The interface for the Slides component.
+ *
+ * @since 3.0.0
+ */
+export interface SlidesComponent extends BaseComponent {
+    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, callback?: AnyFunction): void;
+    remove(selector: SlideMatcher): void;
+    forEach(iteratee: SlidesIteratee, excludeClones?: boolean): void;
+    filter(matcher: SlideMatcher): SlideComponent[];
+    rule(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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Slides.d.ts","sourceRoot":"","sources":["Slides.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,OAAO,EAGP,eAAe,EAEhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAsBlD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,eAAe,CA2NlG"}
+{"version":3,"file":"Slides.d.ts","sourceRoot":"","sources":["Slides.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,WAAW,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,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,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAI,IAAI,CAAC;IACvG,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,IAAI,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAI,IAAI,CAAA;IAC1E,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,CA2NlG"}

+ 10 - 1
dist/types/components/Style/Style.d.ts

@@ -1,4 +1,13 @@
-import { StyleComponent } from '@splidejs/splide';
+import { BaseComponent } from '../../types';
+/**
+ * The interface for the Style component.
+ *
+ * @since 3.0.0
+ */
+export interface StyleComponent extends BaseComponent {
+    rule(selector: string, prop: string, value: string | number): void;
+    ruleBy(target: string | HTMLElement, prop: string, value: string | number): void;
+}
 /**
  * The component for managing styles of the slider.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["Style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;;;;;GAMG;AACH,wBAAgB,KAAK,IAAI,cAAc,CAwEtC"}
+{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["Style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,IAAI,CAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAI,IAAI,CAAC;IACrE,MAAM,CAAE,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAI,IAAI,CAAC;CACpF;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,IAAI,cAAc,CAwEtC"}

+ 8 - 1
dist/types/components/Sync/Sync.d.ts

@@ -1,5 +1,12 @@
-import { Components, Options, SyncComponent } from '@splidejs/splide';
 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 {
+}
 /**
  * The component for syncing multiple sliders.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Sync.d.ts","sourceRoot":"","sources":["Sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAYlD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CA0D9F"}
+{"version":3,"file":"Sync.d.ts","sourceRoot":"","sources":["Sync.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;CACnD;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,aAAa,CA0D9F"}

+ 8 - 1
dist/types/components/Wheel/Wheel.d.ts

@@ -1,5 +1,12 @@
-import { Components, Options, WheelComponent } from '@splidejs/splide';
 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Wheel.d.ts","sourceRoot":"","sources":["Wheel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,cAAc,CA6BhG"}
+{"version":3,"file":"Wheel.d.ts","sourceRoot":"","sources":["Wheel.ts"],"names":[],"mappings":"AACA,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,CA6BhG"}

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

@@ -1,4 +1,4 @@
-import { Options } from '@splidejs/splide';
+import { Options } from '../types';
 /**
  * The collection of default options.
  * Note that this collection does not contain all options.

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

@@ -1 +1 @@
-{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAK3C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,OAkBtB,CAAC"}
+{"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,OAkBtB,CAAC"}

+ 31 - 1
dist/types/constructors/EventBus/EventBus.d.ts

@@ -1,4 +1,34 @@
-import { EventBusObject } from '@splidejs/splide';
+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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"EventBus.d.ts","sourceRoot":"","sources":["EventBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlF;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CA2FzC"}
+{"version":3,"file":"EventBus.d.ts","sourceRoot":"","sources":["EventBus.ts"],"names":[],"mappings":"AAAA,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,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,oBAAY,gBAAgB,GAAG,WAAW,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CA2FzC"}

+ 15 - 1
dist/types/constructors/EventInterface/EventInterface.d.ts

@@ -1,5 +1,19 @@
-import { EventInterfaceObject } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { AnyFunction } from '../../types';
+import { EventBusCallback } from '../EventBus/EventBus';
+/**
+ * The interface for the EventInterface object.
+ *
+ * @since 3.0.0
+ */
+export interface EventInterfaceObject {
+    on(events: string | string[], callback: EventBusCallback, priority?: number): void;
+    off(events: string | string[]): 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): void;
+    destroy(): void;
+}
 /**
  * The function that provides interface for internal and native events.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"EventInterface.d.ts","sourceRoot":"","sources":["EventInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAWlD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,MAAM,EAAE,MAAM,GAAI,oBAAoB,CAsHrE"}
+{"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,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,IAAI,CAAC;IACrF,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAI,IAAI,CAAC;IACvC,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,CAAE,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,GAAI,IAAI,CAAC;IACzG,OAAO,IAAI,IAAI,CAAC;CACjB;AASD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,MAAM,EAAE,MAAM,GAAI,oBAAoB,CAsHrE"}

+ 12 - 1
dist/types/constructors/RequestInterval/RequestInterval.d.ts

@@ -1,4 +1,15 @@
-import { RequestIntervalInterface } from '@splidejs/splide';
+/**
+ * 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;
+    isPaused(): boolean;
+}
 /**
  * Requests interval like the native `setInterval()` with using `requestAnimationFrame`.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"RequestInterval.d.ts","sourceRoot":"","sources":["RequestInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D;;;;;;;;;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,CAoH1B"}
+{"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,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,CAoH1B"}

+ 9 - 1
dist/types/constructors/State/State.d.ts

@@ -1,4 +1,12 @@
-import { StateObject } from '@splidejs/splide';
+/**
+ * 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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAE,YAAY,EAAE,MAAM,GAAI,WAAW,CA2BzD"}
+{"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"}

+ 9 - 1
dist/types/constructors/Throttle/Throttle.d.ts

@@ -1,4 +1,12 @@
-import { AnyFunction, ThrottleInstance } from '@splidejs/splide';
+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.
  *

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

@@ -1 +1 @@
-{"version":3,"file":"Throttle.d.ts","sourceRoot":"","sources":["Throttle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAI3F;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,GAChB,gBAAgB,CAAC,CAAC,CAAC,CAerB"}
+{"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,CAerB"}

+ 5 - 5
dist/types/constructors/index.d.ts

@@ -1,6 +1,6 @@
-export { EventBus } from './EventBus/EventBus';
-export { EventInterface } from './EventInterface/EventInterface';
-export { RequestInterval } from './RequestInterval/RequestInterval';
-export { State } from './State/State';
-export { Throttle } from './Throttle/Throttle';
+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

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

@@ -1 +1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAa,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAO,iCAAiC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAgB,eAAe,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAa,qBAAqB,CAAC"}
+{"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"}

+ 4 - 2
dist/types/core/Splide/Splide.d.ts

@@ -1,4 +1,6 @@
-import { Component, Components, EventBusCallback, EventBusObject, Options, SlideMatcher, StateObject } from '@splidejs/splide';
+import { SlideMatcher } from '../../components/Slides/Slides';
+import { EventBusCallback, EventBusObject, StateObject } from '../../constructors';
+import { ComponentConstructor, Components, Options } from '../../types';
 /**
  * The frontend class for the Splide slider.
  *
@@ -66,7 +68,7 @@ export declare class Splide {
      *
      * @return `this`
      */
-    mount(Extensions?: Record<string, Component>, Transition?: Component): this;
+    mount(Extensions?: Record<string, ComponentConstructor>, Transition?: ComponentConstructor): this;
     /**
      * Syncs the slider with the provided one.
      * This method must be called before the `mount()`.

+ 1 - 1
dist/types/core/Splide/Splide.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"Splide.d.ts","sourceRoot":"","sources":["Splide.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAY1B;;;;GAIG;AACH,qBAAa,MAAM;IACjB;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAM;IAE9B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;MAAU;IAEhC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAc;IAE5C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAoB;IAEnD;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAoB;IAE/C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAEhC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IAEpC;;OAEG;IACH,OAAO,CAAC,UAAU,CAAiC;IAEnD;;OAEG;IACH,OAAO,CAAC,UAAU,CAAY;IAE9B;;;;;OAKG;gBACU,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO;IAU5D;;;;;;;OAOG;IACH,KAAK,CAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,EAAE,SAAS,GAAI,IAAI;IA4B7E;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAE,MAAM,EAAE,MAAM,GAAI,IAAI;IAM5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,EAAE,CAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAI,IAAI;IAIpC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,EAAE,CAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,GAAI,IAAI;IAKtD;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CAAE,MAAM,EAAE,MAAM,GAAI,IAAI;IAK3B;;;;;;;OAOG;IACH,IAAI,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAI,IAAI;IAK3C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAI,IAAI;IAKvF;;;;;OAKG;IACH,MAAM,CAAE,OAAO,EAAE,YAAY,GAAI,IAAI;IAKrC;;;;;;OAMG;IACH,EAAE,CAAE,IAAI,EAAE,MAAM,GAAI,OAAO;IAI3B;;;;OAIG;IACH,OAAO,IAAI,IAAI;IAKf;;;;;;OAMG;IACH,OAAO,CAAE,UAAU,CAAC,EAAE,OAAO,GAAI,IAAI;IAoBrC;;;;OAIG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;OAIG;IACH,IAAI,OAAO,CAAE,OAAO,EAAE,OAAO,EAO5B;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;CACF"}
+{"version":3,"file":"Splide.d.ts","sourceRoot":"","sources":["Splide.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAM9D,OAAO,EAAY,gBAAgB,EAAE,cAAc,EAAS,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpG,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAIxE;;;;GAIG;AACH,qBAAa,MAAM;IACjB;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAM;IAE9B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;MAAU;IAEhC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAc;IAE5C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAoB;IAEnD;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAoB;IAE/C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAEhC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IAEpC;;OAEG;IACH,OAAO,CAAC,UAAU,CAA4C;IAE9D;;OAEG;IACH,OAAO,CAAC,UAAU,CAAuB;IAEzC;;;;;OAKG;gBACU,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO;IAU5D;;;;;;;OAOG;IACH,KAAK,CAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE,UAAU,CAAC,EAAE,oBAAoB,GAAI,IAAI;IA4BnG;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAE,MAAM,EAAE,MAAM,GAAI,IAAI;IAM5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,EAAE,CAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAI,IAAI;IAIpC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,EAAE,CAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,GAAI,IAAI;IAKtD;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CAAE,MAAM,EAAE,MAAM,GAAI,IAAI;IAK3B;;;;;;;OAOG;IACH,IAAI,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAI,IAAI;IAK3C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAI,IAAI;IAKvF;;;;;OAKG;IACH,MAAM,CAAE,OAAO,EAAE,YAAY,GAAI,IAAI;IAKrC;;;;;;OAMG;IACH,EAAE,CAAE,IAAI,EAAE,MAAM,GAAI,OAAO;IAI3B;;;;OAIG;IACH,OAAO,IAAI,IAAI;IAKf;;;;;;OAMG;IACH,OAAO,CAAE,UAAU,CAAC,EAAE,OAAO,GAAI,IAAI;IAoBrC;;;;OAIG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;OAIG;IACH,IAAI,OAAO,CAAE,OAAO,EAAE,OAAO,EAO5B;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;CACF"}

+ 3 - 1
dist/types/index.d.ts

@@ -1,5 +1,7 @@
 export { Splide } from './core/Splide/Splide';
 export { Splide as default } from './core/Splide/Splide';
 export * from './constructors';
-export * as utils from './utils';
+export * from './types';
+export * from './constants/events';
+export * from './constants/classes';
 //# sourceMappingURL=../../src/js/index.d.ts.map

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

@@ -1 +1 @@
-{"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,cAAc,gBAAgB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
+{"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,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}

+ 1 - 1
dist/types/test/utils/utils.d.ts

@@ -1,5 +1,5 @@
-import { Options } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { Options } from '../../types';
 import { BuildHtmlArgs } from '../fixtures';
 interface InitArgs extends BuildHtmlArgs {
     mount?: boolean;

+ 1 - 1
dist/types/test/utils/utils.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AAIvD,UAAU,QAAS,SAAQ,aAAa;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAE,OAAO,GAAE,OAAY,EAAE,IAAI,GAAE,QAAa,GAAI,MAAM,CAkFzE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAE,GAAG,EAAE,WAAW,GAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAiBhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,EACnC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,GAAQ,EACd,aAAa,GAAE,SAAc,GAC5B,KAAK,CAUP;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,OAAgB,GAAI,IAAI,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAE,QAAQ,EAAE,MAAM,GAAI,OAAO,CAAC,IAAI,CAAC,CAItD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,QAAQ,EAAE,MAAM,GAAI,YAAY,CAMzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAI,YAAY,CAEvE"}
+{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AAIvD,UAAU,QAAS,SAAQ,aAAa;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAE,OAAO,GAAE,OAAY,EAAE,IAAI,GAAE,QAAa,GAAI,MAAM,CAkFzE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAE,GAAG,EAAE,WAAW,GAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAiBhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,EACnC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,GAAQ,EACd,aAAa,GAAE,SAAc,GAC5B,KAAK,CAUP;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,OAAgB,GAAI,IAAI,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAE,QAAQ,EAAE,MAAM,GAAI,OAAO,CAAC,IAAI,CAAC,CAItD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,QAAQ,EAAE,MAAM,GAAI,YAAY,CAMzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAI,YAAY,CAEvE"}

+ 1 - 1
dist/types/transitions/Fade/Fade.d.ts

@@ -1,5 +1,5 @@
-import { Components, Options, TransitionComponent } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { Components, Options, TransitionComponent } from '../../types';
 /**
  * The component for the fade transition.
  *

+ 1 - 1
dist/types/transitions/Fade/Fade.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"Fade.d.ts","sourceRoot":"","sources":["Fade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAwCpG"}
+{"version":3,"file":"Fade.d.ts","sourceRoot":"","sources":["Fade.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvE;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAwCpG"}

+ 1 - 1
dist/types/transitions/Slide/Slide.d.ts

@@ -1,5 +1,5 @@
-import { Components, Options, TransitionComponent } from '@splidejs/splide';
 import { Splide } from '../../core/Splide/Splide';
+import { Components, Options, TransitionComponent } from '../../types';
 /**
  * The component for the slide transition.
  *

+ 1 - 1
dist/types/transitions/Slide/Slide.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAqFrG"}
+{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvE;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,mBAAmB,CAqFrG"}

+ 45 - 0
dist/types/types/general.d.ts

@@ -0,0 +1,45 @@
+import * as CoreComponents from '../components';
+import { Splide } from '../core/Splide/Splide';
+import { Options } from './options';
+/**
+ * The type for any function.
+ *
+ * @since 3.0.0
+ */
+export declare type AnyFunction = (...args: any[]) => any;
+/**
+ * The type for a component.
+ *
+ * @since 3.0.0
+ */
+export declare type ComponentConstructor = (Splide: Splide, Components: Components, options: Options) => BaseComponent;
+/**
+ * The interface for any component.
+ *
+ * @since 3.0.0
+ */
+export interface BaseComponent {
+    mount?(): void;
+    mounted?(): void;
+    destroy?(completely?: boolean): void;
+}
+/**
+ * The interface for the Transition component.
+ *
+ * @since 3.0.0
+ */
+export interface TransitionComponent extends BaseComponent {
+    start(index: number, done: () => void): void;
+    cancel(): void;
+}
+/**
+ * The type for all component constructors.
+ *
+ * @since 3.0.0
+ */
+export declare type Components = Record<string, BaseComponent> & Partial<{
+    [K in keyof typeof CoreComponents]: ReturnType<typeof CoreComponents[K]>;
+}> & {
+    Transition: TransitionComponent;
+};
+//# sourceMappingURL=../../../src/js/types/general.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["general.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC;;;;GAIG;AACH,oBAAY,WAAW,GAAG,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,GAAG,CAAC;AAEpD;;;;GAIG;AACH,oBAAY,oBAAoB,GAAG,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,KAAM,aAAa,CAAC;AAEjH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,IAAI,IAAI,CAAC;IACf,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,OAAO,CAAC,CAAE,UAAU,CAAC,EAAE,OAAO,GAAI,IAAI,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,KAAK,CAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,GAAI,IAAI,CAAC;IAC/C,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,oBAAY,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAClD,OAAO,CAAC;KACN,CAAC,IAAI,MAAM,OAAO,cAAc,GAAI,UAAU,CAAC,OAAO,cAAc,CAAE,CAAC,CAAE,CAAC;CAC7E,CAAC,GACA;IAAE,UAAU,EAAE,mBAAmB,CAAA;CAAE,CAAA"}

+ 3 - 0
dist/types/types/index.d.ts

@@ -0,0 +1,3 @@
+export * from './general';
+export * from './options';
+//# sourceMappingURL=../../../src/js/types/index.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}

+ 23 - 69
src/js/@types/options.d.ts → dist/types/types/options.d.ts

@@ -1,10 +1,9 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for options.
-   *
-   * @since 3.0.0
-   */
-  interface Options extends ResponsiveOptions {
+/**
+ * The interface for options.
+ *
+ * @since 3.0.0
+ */
+export interface Options extends ResponsiveOptions {
     /**
      * The type of the slider.
      * - 'slide': A slider with the slide transition
@@ -12,63 +11,52 @@ declare module '@splidejs/splide' {
      * - '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`.
@@ -79,13 +67,11 @@ declare module '@splidejs/splide' {
      * - `'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.
@@ -93,13 +79,11 @@ declare module '@splidejs/splide' {
      * - `false`: Disables keyboard shortcuts.
      */
     keyboard?: boolean | string;
-
     /**
      * Enables navigation by the mouse wheel.
      * The `waitForTransition` option should be `true`.
      */
     wheel?: boolean;
-
     /**
      * The direction of the slider.
      * - 'ltr': Left to right
@@ -107,41 +91,34 @@ declare module '@splidejs/splide' {
      * - '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';
-
     /**
      * Options for specific breakpoints.
      *
@@ -159,95 +136,79 @@ declare module '@splidejs/splide' {
      * }
      * ```
      */
-    breakpoints?: Record<string | number, ResponsiveOptions>,
-
+    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 {
+}
+/**
+ * The interface for options that can correspond with breakpoints.
+ *
+ * @since 3.0.0
+ */
+export interface ResponsiveOptions {
     /**
      * 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 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`.
@@ -268,59 +229,52 @@ declare module '@splidejs/splide' {
      * padding: { top: 10, bottom: 20 },
      * ```
      */
-    padding?:
-      | number
-      | string
-      | { left?: number | string, right?: number | string }
-      | { top?: number | string, bottom?: number | string };
-
+    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;
-
+    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.
      * Other pointing devices will ignore this value.
      */
     dragMinThreshold?: number;
-
     /**
      * Determine the power of "flick". The larger number this is, the farther the slider runs.
      * Around 500 is recommended.
      */
     flickPower?: number;
-
     /**
      * Limies the number of pages to move by "flick".
      */
     flickMaxPages?: number;
-
     /**
      * Destroys the slider.
      */
     destroy?: boolean | 'completely';
-  }
 }
+//# sourceMappingURL=../../../src/js/types/options.d.ts.map

Plik diff jest za duży
+ 0 - 0
dist/types/types/options.d.ts.map


+ 1 - 1
dist/types/utils/function/nextTick/nextTick.d.ts

@@ -1,4 +1,4 @@
-import { AnyFunction } from '@splidejs/splide';
+import { AnyFunction } from '../../../types';
 /**
  * Invokes the callback on the next tick.
  *

+ 1 - 1
dist/types/utils/function/nextTick/nextTick.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"nextTick.d.ts","sourceRoot":"","sources":["nextTick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;GAIG;AACH,wBAAgB,QAAQ,CAAE,QAAQ,EAAE,WAAW,GAAI,IAAI,CAEtD"}
+{"version":3,"file":"nextTick.d.ts","sourceRoot":"","sources":["nextTick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;GAIG;AACH,wBAAgB,QAAQ,CAAE,QAAQ,EAAE,WAAW,GAAI,IAAI,CAEtD"}

+ 8 - 8
dist/types/utils/type/type.d.ts

@@ -5,7 +5,7 @@
  *
  * @return `true` if the subject is an object, or otherwise `false`.
  */
-export declare function isObject(subject: any): subject is object;
+export declare function isObject(subject: unknown): subject is object;
 /**
  * Checks if the given subject is an array or not.
  *
@@ -13,7 +13,7 @@ export declare function isObject(subject: any): subject is object;
  *
  * @return `true` if the subject is an array, or otherwise `false`.
  */
-export declare function isArray<T>(subject: any): subject is T[];
+export declare function isArray<T>(subject: unknown): subject is T[];
 /**
  * Checks if the given subject is a function or not.
  *
@@ -21,7 +21,7 @@ export declare function isArray<T>(subject: any): subject is T[];
  *
  * @return `true` if the subject is a function, or otherwise `false`.
  */
-export declare function isFunction(subject: any): subject is (...args: any[]) => any;
+export declare function isFunction(subject: unknown): subject is (...args: any[]) => any;
 /**
  * Checks if the given subject is a string or not.
  *
@@ -29,7 +29,7 @@ export declare function isFunction(subject: any): subject is (...args: any[]) =>
  *
  * @return `true` if the subject is a string, or otherwise `false`.
  */
-export declare function isString(subject: any): subject is string;
+export declare function isString(subject: unknown): subject is string;
 /**
  * Checks if the given subject is `undefined` or not.
  *
@@ -37,7 +37,7 @@ export declare function isString(subject: any): subject is string;
  *
  * @return `true` if the subject is `undefined`, or otherwise `false`.
  */
-export declare function isUndefined(subject: any): subject is undefined;
+export declare function isUndefined(subject: unknown): subject is undefined;
 /**
  * Checks if the given subject is `null` or not.
  *
@@ -45,7 +45,7 @@ export declare function isUndefined(subject: any): subject is undefined;
  *
  * @return `true` if the subject is `null`, or otherwise `false`.
  */
-export declare function isNull(subject: any): subject is null;
+export declare function isNull(subject: unknown): subject is null;
 /**
  * Checks if the given subject is an HTMLElement or not.
  *
@@ -53,7 +53,7 @@ export declare function isNull(subject: any): subject is null;
  *
  * @return `true` if the subject is an HTMLElement instance, or otherwise `false`.
  */
-export declare function isHTMLElement(subject: any): subject is HTMLElement;
+export declare function isHTMLElement(subject: unknown): subject is HTMLElement;
 /**
  * Checks if the given subject is an HTMLButtonElement or not.
  *
@@ -61,5 +61,5 @@ export declare function isHTMLElement(subject: any): subject is HTMLElement;
  *
  * @return `true` if the subject is an HTMLButtonElement, or otherwise `false`.
  */
-export declare function isHTMLButtonElement(subject: any): subject is HTMLButtonElement;
+export declare function isHTMLButtonElement(subject: unknown): subject is HTMLButtonElement;
 //# sourceMappingURL=../../../../src/js/utils/type/type.d.ts.map

+ 1 - 1
dist/types/utils/type/type.d.ts.map

@@ -1 +1 @@
-{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,MAAM,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAG,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,CAAC,EAAE,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,GAAG,CAE/E;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,MAAM,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,SAAS,CAEhE;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,IAAI,CAEtD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,WAAW,CAEpE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,GAAG,GAAI,OAAO,IAAI,iBAAiB,CAEhF"}
+{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,MAAM,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAG,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,CAAC,EAAE,CAE7D;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,GAAG,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,MAAM,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,SAAS,CAEpE;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,IAAI,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,WAAW,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,OAAO,GAAI,OAAO,IAAI,iBAAiB,CAEpF"}

+ 0 - 37
src/js/@types/splide.d.ts

@@ -1,37 +0,0 @@
-declare module '@splidejs/splide' {
-  import { Splide } from '../core/Splide/Splide';
-
-  /**
-   * The type for any function.
-   *
-   * @since 3.0.0
-   */
-  type AnyFunction = ( ...args: any[] ) => any;
-
-  /**
-   * The type for a component.
-   *
-   * @since 3.0.0
-   */
-  type Component = ( Splide: Splide, Components: Components, options: Options ) => BaseComponent;
-
-  /**
-   * The interface for any component.
-   *
-   * @since 3.0.0
-   */
-  interface BaseComponent {
-    mount?(): void;
-    mounted?(): void;
-    destroy?( completely?: boolean ): void;
-  }
-
-  /**
-   * The collection of all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    [ name: string ]: BaseComponent;
-  }
-}

+ 10 - 1
src/js/components/Arrows/Arrows.ts

@@ -1,4 +1,3 @@
-import { ArrowsComponent, Components, Options } from '@splidejs/splide';
 import { ALL_ATTRIBUTES, ARIA_CONTROLS, ARIA_LABEL } from '../../constants/attributes';
 import {
   EVENT_ARROWS_MOUNTED,
@@ -11,10 +10,20 @@ import {
 } from '../../constants/events';
 import { EventInterface } from '../../constructors';
 import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { append, before, child, create, display, parseHtml, remove, removeAttribute, setAttribute } from '../../utils';
 import { PATH, SIZE, XML_NAME_SPACE } from './path';
 
 
+/**
+ * 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.
  *

+ 0 - 19
src/js/components/Arrows/splide.d.ts

@@ -1,19 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Arrows component.
-   *
-   * @since 3.0.0
-   */
-  interface ArrowsComponent extends BaseComponent {
-    arrows: { prev?: HTMLButtonElement, next?: HTMLButtonElement };
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Arrows: ArrowsComponent,
-  }
-}

+ 12 - 1
src/js/components/Autoplay/Autoplay.ts

@@ -1,4 +1,3 @@
-import { AutoplayComponent, Components, Options } from '@splidejs/splide';
 import { ARIA_CONTROLS, ARIA_LABEL, ROLE } from '../../constants/attributes';
 import {
   EVENT_AUTOPLAY_PAUSE,
@@ -10,9 +9,21 @@ import {
 } from '../../constants/events';
 import { EventInterface, RequestInterval } from '../../constructors';
 import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { isHTMLButtonElement, setAttribute, style } from '../../utils';
 
 
+/**
+ * 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.
  *

+ 0 - 21
src/js/components/Autoplay/splide.d.ts

@@ -1,21 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Autoplay component.
-   *
-   * @since 3.0.0
-   */
-  interface AutoplayComponent extends BaseComponent {
-    play(): void;
-    pause(): void;
-    isPaused(): boolean;
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Autoplay: AutoplayComponent,
-  }
-}

+ 1 - 1
src/js/components/Autoplay/test/autoToggle.test.ts

@@ -1,6 +1,6 @@
-import { AutoplayComponent } from '@splidejs/splide';
 import { Splide } from '../../../core/Splide/Splide';
 import { fire, init, wait } from '../../../test';
+import { AutoplayComponent } from '../Autoplay';
 
 
 describe( 'Autoplay', () => {

+ 11 - 3
src/js/components/Clones/Clones.ts

@@ -1,12 +1,20 @@
-import { Components, Options } from '@splidejs/splide';
 import { EVENT_REFRESH, EVENT_RESIZE, EVENT_UPDATED } from '../../constants/events';
 import { LOOP } from '../../constants/types';
-import { Splide } from '../../core/Splide/Splide';
 import { EventInterface } from '../../constructors';
+import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { addClass, append, before, ceil, empty, push, rect, remove } from '../../utils';
 import { pad } from '../../utils/string';
 
 
+/**
+ * The interface for the Clone component.
+ *
+ * @since 3.0.0
+ */
+export interface CloneComponent extends BaseComponent {
+}
+
 /**
  * The component that generates clones for the loop slider.
  *
@@ -18,7 +26,7 @@ import { pad } from '../../utils/string';
  *
  * @return A Clones component object.
  */
-export function Clones( Splide: Splide, Components: Components, options: Options ): any {
+export function Clones( Splide: Splide, Components: Components, options: Options ): CloneComponent {
   const { on, emit } = EventInterface( Splide );
   const { Elements, Slides } = Components;
   const { resolve } = Components.Direction;

+ 0 - 18
src/js/components/Clones/splide.d.ts

@@ -1,18 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Clone component.
-   *
-   * @since 3.0.0
-   */
-  interface CloneComponent extends BaseComponent {
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Clone: CloneComponent,
-  }
-}

+ 18 - 2
src/js/components/Controller/Controller.ts

@@ -1,11 +1,27 @@
-import { Components, ControllerComponent, Options } from '@splidejs/splide';
 import { EVENT_REFRESH, EVENT_SCROLLED, EVENT_UPDATED } from '../../constants/events';
 import { LOOP } from '../../constants/types';
-import { Splide } from '../../core/Splide/Splide';
 import { EventInterface } from '../../constructors';
+import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { between, clamp, floor, isString, isUndefined, max } from '../../utils';
 
 
+/**
+ * The interface for the Controller component.
+ *
+ * @since 3.0.0
+ */
+export interface ControllerComponent extends BaseComponent {
+  go( control: number | string, allowSameIndex?: boolean ): void;
+  getNext( destination?: boolean ): number;
+  getPrev( destination?: boolean ): number;
+  getEnd(): number;
+  getIndex( prev?: boolean ): number;
+  toIndex( page: number ): number;
+  toPage( index: number ): number;
+  hasFocus(): boolean;
+}
+
 /**
  * The component for controlling the slider.
  *

+ 0 - 26
src/js/components/Controller/splide.d.ts

@@ -1,26 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Controller component.
-   *
-   * @since 3.0.0
-   */
-  interface ControllerComponent extends BaseComponent {
-    go( control: number | string, allowSameIndex?: boolean ): void;
-    getNext( destination?: boolean ): number;
-    getPrev( destination?: boolean ): number;
-    getEnd(): number;
-    getIndex( prev?: boolean ): number;
-    toIndex( page: number ): number;
-    toPage( index: number ): number;
-    hasFocus(): boolean;
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Controller: ControllerComponent,
-  }
-}

+ 10 - 1
src/js/components/Cover/Cover.ts

@@ -1,10 +1,19 @@
-import { Components, CoverComponent, Options, SlideComponent } from '@splidejs/splide';
 import { EVENT_LAZYLOAD_LOADED, EVENT_MOUNTED, EVENT_REFRESH, EVENT_UPDATED } from '../../constants/events';
 import { EventInterface } from '../../constructors';
 import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { child, display } from '../../utils';
+import { SlideComponent } from '../Slides/Slide';
 
 
+/**
+ * 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.
  *

+ 0 - 18
src/js/components/Cover/splide.d.ts

@@ -1,18 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Cover component.
-   *
-   * @since 3.0.0
-   */
-  interface CoverComponent extends BaseComponent {
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Cover: CoverComponent,
-  }
-}

+ 11 - 1
src/js/components/Direction/Direction.ts

@@ -1,8 +1,18 @@
-import { Components, DirectionComponent, Options } from '@splidejs/splide';
 import { RTL, TTB } from '../../constants/directions';
 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.
  *

+ 0 - 20
src/js/components/Direction/splide.d.ts

@@ -1,20 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * 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 all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Direction: DirectionComponent,
-  }
-}

+ 10 - 2
src/js/components/Drag/Drag.ts

@@ -1,12 +1,20 @@
-import { Components, DragComponent, Options } from '@splidejs/splide';
 import { EVENT_DRAG, EVENT_DRAGGED, EVENT_DRAGGING } from '../../constants/events';
 import { FADE, LOOP, SLIDE } from '../../constants/types';
-import { Splide } from '../../core/Splide/Splide';
 import { EventInterface } from '../../constructors';
+import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { abs, clamp, min, prevent, sign } from '../../utils';
 import { FRICTION, POINTER_DOWN_EVENTS, POINTER_MOVE_EVENTS, POINTER_UP_EVENTS, SAMPLING_INTERVAL } from './constants';
 
 
+/**
+ * The interface for the Drag component.
+ *
+ * @since 3.0.0
+ */
+export interface DragComponent extends BaseComponent {
+}
+
 /**
  * The component for dragging the slider.
  *

+ 0 - 18
src/js/components/Drag/splide.d.ts

@@ -1,18 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Drag component.
-   *
-   * @since 3.0.0
-   */
-  interface DragComponent extends BaseComponent {
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Drag: DragComponent,
-  }
-}

+ 29 - 2
src/js/components/Elements/Elements.ts

@@ -1,4 +1,3 @@
-import { Components, ElementCollection, ElementsComponent, Options } from '@splidejs/splide';
 import {
   CLASS_ACTIVE,
   CLASS_ARROW_NEXT,
@@ -18,12 +17,40 @@ import {
 } from '../../constants/classes';
 import { EVENT_REFRESH, EVENT_UPDATED } from '../../constants/events';
 import { PROJECT_CODE } from '../../constants/project';
-import { Splide } from '../../core/Splide/Splide';
 import { EventInterface } from '../../constructors';
+import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { addClass, assert, assign, child, children, empty, push, query, removeClass } from '../../utils';
 import { uniqueId } from '../../utils/string';
 
 
+/**
+ * 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;
+  play: HTMLElement;
+  pause: HTMLElement;
+}
+
+/**
+ * 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.
  *

+ 0 - 37
src/js/components/Elements/splide.d.ts

@@ -1,37 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * 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;
-    play: HTMLElement;
-    pause: HTMLElement;
-  }
-
-  /**
-   * The interface for the Elements component.
-   *
-   * @since 3.0.0
-   */
-  interface ElementsComponent extends BaseComponent, ElementCollection {
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Elements: ElementsComponent,
-  }
-}

+ 10 - 2
src/js/components/Keyboard/Keyboard.ts

@@ -1,11 +1,19 @@
-import { Components, KeyboardComponent, Options } from '@splidejs/splide';
 import { TAB_INDEX } from '../../constants/attributes';
 import { EVENT_UPDATED } from '../../constants/events';
-import { Splide } from '../../core/Splide/Splide';
 import { EventInterface } from '../../constructors';
+import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { includes, isHTMLElement, removeAttribute, setAttribute } from '../../utils';
 
 
+/**
+ * The interface for the Keyboard component.
+ *
+ * @since 3.0.0
+ */
+export interface KeyboardComponent extends BaseComponent {
+}
+
 /**
  * The collection of arrow keys of IE.
  *

+ 0 - 18
src/js/components/Keyboard/splide.d.ts

@@ -1,18 +0,0 @@
-declare module '@splidejs/splide' {
-  /**
-   * The interface for the Keyboard component.
-   *
-   * @since 3.0.0
-   */
-  interface KeyboardComponent extends BaseComponent {
-  }
-
-  /**
-   * The interface for all components.
-   *
-   * @since 3.0.0
-   */
-  interface Components {
-    Keyboard: ElementsComponent,
-  }
-}

+ 14 - 1
src/js/components/Layout/Layout.ts

@@ -1,11 +1,24 @@
-import { Components, LayoutComponent, Options } from '@splidejs/splide';
 import { TTB } from '../../constants/directions';
 import { EVENT_REFRESH, EVENT_RESIZE, EVENT_RESIZED, EVENT_UPDATED } from '../../constants/events';
 import { EventInterface, Throttle } from '../../constructors';
 import { Splide } from '../../core/Splide/Splide';
+import { BaseComponent, Components, Options } from '../../types';
 import { abs, assert, isObject, rect, style, unit } from '../../utils';
 
 
+/**
+ * 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.
  *

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików