Jelajahi Sumber

Generate type definition files.

NaotoshiFujita 3 tahun lalu
induk
melakukan
5f6a647ced
100 mengubah file dengan 1124 tambahan dan 18 penghapusan
  1. 11 9
      dist/js/splide.cjs.js
  2. 11 9
      dist/js/splide.esm.js
  3. 2 0
      dist/types/build/default/default.d.ts
  4. 1 0
      dist/types/build/default/default.d.ts.map
  5. 15 0
      dist/types/components/Arrows/Arrows.d.ts
  6. 1 0
      dist/types/components/Arrows/Arrows.d.ts.map
  7. 13 0
      dist/types/components/Arrows/path.d.ts
  8. 1 0
      dist/types/components/Arrows/path.d.ts.map
  9. 15 0
      dist/types/components/Autoplay/Autoplay.d.ts
  10. 1 0
      dist/types/components/Autoplay/Autoplay.d.ts.map
  11. 15 0
      dist/types/components/Clones/Clones.d.ts
  12. 1 0
      dist/types/components/Clones/Clones.d.ts.map
  13. 15 0
      dist/types/components/Controller/Controller.d.ts
  14. 1 0
      dist/types/components/Controller/Controller.d.ts.map
  15. 15 0
      dist/types/components/Cover/Cover.d.ts
  16. 1 0
      dist/types/components/Cover/Cover.d.ts.map
  17. 35 0
      dist/types/components/Direction/Direction.d.ts
  18. 1 0
      dist/types/components/Direction/Direction.d.ts.map
  19. 15 0
      dist/types/components/Drag/Drag.d.ts
  20. 1 0
      dist/types/components/Drag/Drag.d.ts.map
  21. 31 0
      dist/types/components/Drag/constants.d.ts
  22. 1 0
      dist/types/components/Drag/constants.d.ts.map
  23. 15 0
      dist/types/components/Elements/Elements.d.ts
  24. 1 0
      dist/types/components/Elements/Elements.d.ts.map
  25. 15 0
      dist/types/components/Keyboard/Keyboard.d.ts
  26. 1 0
      dist/types/components/Keyboard/Keyboard.d.ts.map
  27. 15 0
      dist/types/components/Layout/Layout.d.ts
  28. 1 0
      dist/types/components/Layout/Layout.d.ts.map
  29. 15 0
      dist/types/components/LazyLoad/LazyLoad.d.ts
  30. 1 0
      dist/types/components/LazyLoad/LazyLoad.d.ts.map
  31. 19 0
      dist/types/components/LazyLoad/constants.d.ts
  32. 1 0
      dist/types/components/LazyLoad/constants.d.ts.map
  33. 15 0
      dist/types/components/Move/Move.d.ts
  34. 1 0
      dist/types/components/Move/Move.d.ts.map
  35. 15 0
      dist/types/components/Options/Options.d.ts
  36. 1 0
      dist/types/components/Options/Options.d.ts.map
  37. 15 0
      dist/types/components/Pagination/Pagination.d.ts
  38. 1 0
      dist/types/components/Pagination/Pagination.d.ts.map
  39. 15 0
      dist/types/components/Scroll/Scroll.d.ts
  40. 1 0
      dist/types/components/Scroll/Scroll.d.ts.map
  41. 31 0
      dist/types/components/Scroll/constants.d.ts
  42. 1 0
      dist/types/components/Scroll/constants.d.ts.map
  43. 16 0
      dist/types/components/Slides/Slide.d.ts
  44. 1 0
      dist/types/components/Slides/Slide.d.ts.map
  45. 15 0
      dist/types/components/Slides/Slides.d.ts
  46. 1 0
      dist/types/components/Slides/Slides.d.ts.map
  47. 10 0
      dist/types/components/Style/Style.d.ts
  48. 1 0
      dist/types/components/Style/Style.d.ts.map
  49. 15 0
      dist/types/components/Sync/Sync.d.ts
  50. 1 0
      dist/types/components/Sync/Sync.d.ts.map
  51. 15 0
      dist/types/components/Wheel/Wheel.d.ts
  52. 1 0
      dist/types/components/Wheel/Wheel.d.ts.map
  53. 20 0
      dist/types/components/index.d.ts
  54. 1 0
      dist/types/components/index.d.ts.map
  55. 14 0
      dist/types/constants/attributes.d.ts
  56. 1 0
      dist/types/constants/attributes.d.ts.map
  57. 48 0
      dist/types/constants/classes.d.ts
  58. 1 0
      dist/types/constants/classes.d.ts.map
  59. 9 0
      dist/types/constants/defaults.d.ts
  60. 1 0
      dist/types/constants/defaults.d.ts.map
  61. 13 0
      dist/types/constants/directions.d.ts
  62. 1 0
      dist/types/constants/directions.d.ts.map
  63. 31 0
      dist/types/constants/events.d.ts
  64. 1 0
      dist/types/constants/events.d.ts.map
  65. 16 0
      dist/types/constants/i18n.d.ts
  66. 1 0
      dist/types/constants/i18n.d.ts.map
  67. 13 0
      dist/types/constants/project.d.ts
  68. 1 0
      dist/types/constants/project.d.ts.map
  69. 33 0
      dist/types/constants/states.d.ts
  70. 1 0
      dist/types/constants/states.d.ts.map
  71. 19 0
      dist/types/constants/types.d.ts
  72. 1 0
      dist/types/constants/types.d.ts.map
  73. 10 0
      dist/types/constructors/EventBus/EventBus.d.ts
  74. 1 0
      dist/types/constructors/EventBus/EventBus.d.ts.map
  75. 13 0
      dist/types/constructors/EventInterface/EventInterface.d.ts
  76. 1 0
      dist/types/constructors/EventInterface/EventInterface.d.ts.map
  77. 13 0
      dist/types/constructors/RequestInterval/RequestInterval.d.ts
  78. 1 0
      dist/types/constructors/RequestInterval/RequestInterval.d.ts.map
  79. 8 0
      dist/types/constructors/State/State.d.ts
  80. 1 0
      dist/types/constructors/State/State.d.ts.map
  81. 11 0
      dist/types/constructors/Throttle/Throttle.d.ts
  82. 1 0
      dist/types/constructors/Throttle/Throttle.d.ts.map
  83. 6 0
      dist/types/constructors/index.d.ts
  84. 1 0
      dist/types/constructors/index.d.ts.map
  85. 251 0
      dist/types/core/Splide/Splide.d.ts
  86. 1 0
      dist/types/core/Splide/Splide.d.ts.map
  87. 5 0
      dist/types/index.d.ts
  88. 1 0
      dist/types/index.d.ts.map
  89. 9 0
      dist/types/test/fixtures/constants.d.ts
  90. 1 0
      dist/types/test/fixtures/constants.d.ts.map
  91. 20 0
      dist/types/test/fixtures/html.d.ts
  92. 1 0
      dist/types/test/fixtures/html.d.ts.map
  93. 2 0
      dist/types/test/fixtures/index.d.ts
  94. 1 0
      dist/types/test/fixtures/index.d.ts.map
  95. 3 0
      dist/types/test/index.d.ts
  96. 1 0
      dist/types/test/index.d.ts.map
  97. 2 0
      dist/types/test/utils/index.d.ts
  98. 1 0
      dist/types/test/utils/index.d.ts.map
  99. 72 0
      dist/types/test/utils/utils.d.ts
  100. 1 0
      dist/types/test/utils/utils.d.ts.map

+ 11 - 9
dist/js/splide.cjs.js

@@ -569,13 +569,11 @@ function parseHtml(html) {
 
 
 
 
 function prevent(e, stopPropagation) {
 function prevent(e, stopPropagation) {
-  if (e.cancelable) {
-    e.preventDefault();
+  e.preventDefault();
 
 
-    if (stopPropagation) {
-      e.stopPropagation();
-      e.stopImmediatePropagation();
-    }
+  if (stopPropagation) {
+    e.stopPropagation();
+    e.stopImmediatePropagation();
   }
   }
 }
 }
 /**
 /**
@@ -4047,6 +4045,7 @@ function Drag(Splide, Components, options) {
    */
    */
 
 
   var isMouse;
   var isMouse;
+  var target;
   /**
   /**
    * Indicates whether the slider exceeds borders or not.
    * Indicates whether the slider exceeds borders or not.
    */
    */
@@ -4070,14 +4069,17 @@ function Drag(Splide, Components, options) {
 
 
   function onPointerDown(e) {
   function onPointerDown(e) {
     isMouse = e.type === 'mousedown';
     isMouse = e.type === 'mousedown';
+    target = isMouse ? window : track;
 
 
     if (!(isMouse && e.button)) {
     if (!(isMouse && e.button)) {
       if (!Move.isBusy()) {
       if (!Move.isBusy()) {
-        bind(window, POINTER_MOVE_EVENTS, onPointerMove);
-        bind(window, POINTER_UP_EVENTS, onPointerUp);
+        bind(target, POINTER_MOVE_EVENTS, onPointerMove);
+        bind(target, POINTER_UP_EVENTS, onPointerUp);
         Move.cancel();
         Move.cancel();
         Scroll.cancel();
         Scroll.cancel();
         startCoord = getCoord(e);
         startCoord = getCoord(e);
+      } else {
+        prevent(e);
       }
       }
     }
     }
   }
   }
@@ -4115,7 +4117,7 @@ function Drag(Splide, Components, options) {
 
 
 
 
   function onPointerUp(e) {
   function onPointerUp(e) {
-    unbind(window, POINTER_MOVE_EVENTS + " " + POINTER_UP_EVENTS);
+    unbind(target, POINTER_MOVE_EVENTS + " " + POINTER_UP_EVENTS);
     moving = false;
     moving = false;
 
 
     if (lastEvent) {
     if (lastEvent) {

+ 11 - 9
dist/js/splide.esm.js

@@ -564,13 +564,11 @@ function parseHtml(html) {
 
 
 
 
 function prevent(e, stopPropagation) {
 function prevent(e, stopPropagation) {
-  if (e.cancelable) {
-    e.preventDefault();
+  e.preventDefault();
 
 
-    if (stopPropagation) {
-      e.stopPropagation();
-      e.stopImmediatePropagation();
-    }
+  if (stopPropagation) {
+    e.stopPropagation();
+    e.stopImmediatePropagation();
   }
   }
 }
 }
 /**
 /**
@@ -4042,6 +4040,7 @@ function Drag(Splide, Components, options) {
    */
    */
 
 
   var isMouse;
   var isMouse;
+  var target;
   /**
   /**
    * Indicates whether the slider exceeds borders or not.
    * Indicates whether the slider exceeds borders or not.
    */
    */
@@ -4065,14 +4064,17 @@ function Drag(Splide, Components, options) {
 
 
   function onPointerDown(e) {
   function onPointerDown(e) {
     isMouse = e.type === 'mousedown';
     isMouse = e.type === 'mousedown';
+    target = isMouse ? window : track;
 
 
     if (!(isMouse && e.button)) {
     if (!(isMouse && e.button)) {
       if (!Move.isBusy()) {
       if (!Move.isBusy()) {
-        bind(window, POINTER_MOVE_EVENTS, onPointerMove);
-        bind(window, POINTER_UP_EVENTS, onPointerUp);
+        bind(target, POINTER_MOVE_EVENTS, onPointerMove);
+        bind(target, POINTER_UP_EVENTS, onPointerUp);
         Move.cancel();
         Move.cancel();
         Scroll.cancel();
         Scroll.cancel();
         startCoord = getCoord(e);
         startCoord = getCoord(e);
+      } else {
+        prevent(e);
       }
       }
     }
     }
   }
   }
@@ -4110,7 +4112,7 @@ function Drag(Splide, Components, options) {
 
 
 
 
   function onPointerUp(e) {
   function onPointerUp(e) {
-    unbind(window, POINTER_MOVE_EVENTS + " " + POINTER_UP_EVENTS);
+    unbind(target, POINTER_MOVE_EVENTS + " " + POINTER_UP_EVENTS);
     moving = false;
     moving = false;
 
 
     if (lastEvent) {
     if (lastEvent) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,15 @@
+import { Components, ControllerComponent, Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for controlling the slider.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return A Controller component object.
+ */
+export declare function Controller(Splide: Splide, Components: Components, options: Options): ControllerComponent;
+//# sourceMappingURL=../../../../src/js/components/Controller/Controller.d.ts.map

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

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

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

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

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

@@ -0,0 +1 @@
+{"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["Cover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAkB,MAAM,gBAAgB,CAAC;AAGrF,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"}

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,15 @@
+import { Components, ElementsComponent, Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component that collects and handles elements which the slider consists of.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return An Elements component object.
+ */
+export declare function Elements(Splide: Splide, Components: Components, options: Options): ElementsComponent;
+//# sourceMappingURL=../../../../src/js/components/Elements/Elements.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Elements.d.ts","sourceRoot":"","sources":["Elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,iBAAiB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAoB3F,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"}

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

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

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

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

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

@@ -0,0 +1,15 @@
+import { Components, LayoutComponent, Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component that layouts slider components and provides methods for dimensions.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return An Layout component object.
+ */
+export declare function Layout(Splide: Splide, Components: Components, options: Options): LayoutComponent;
+//# sourceMappingURL=../../../../src/js/components/Layout/Layout.d.ts.map

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

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

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

@@ -0,0 +1,15 @@
+import { Components, LazyLoadComponent, Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for lazily loading images.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return An LazyLoad component object.
+ */
+export declare function LazyLoad(Splide: Splide, Components: Components, options: Options): LazyLoadComponent;
+//# sourceMappingURL=../../../../src/js/components/LazyLoad/LazyLoad.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"LazyLoad.d.ts","sourceRoot":"","sources":["LazyLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAsB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAU5F,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"}

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

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

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

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

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

@@ -0,0 +1,15 @@
+import { Components, MoveComponent, Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for moving the slider.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return A Move component object.
+ */
+export declare function Move(Splide: Splide, Components: Components, options: Options): MoveComponent;
+//# sourceMappingURL=../../../../src/js/components/Move/Move.d.ts.map

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

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

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

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

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

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

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

@@ -0,0 +1,15 @@
+import { Components, Options, PaginationComponent } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for handling previous and next arrows.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return A Arrows component object.
+ */
+export declare function Pagination(Splide: Splide, Components: Components, options: Options): PaginationComponent;
+//# sourceMappingURL=../../../../src/js/components/Pagination/Pagination.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,EAAkB,MAAM,gBAAgB,CAAC;AAU1F,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"}

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

@@ -0,0 +1,15 @@
+import { Components, Options, ScrollComponent } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for scrolling the slider.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return A Scroll component object.
+ */
+export declare function Scroll(Splide: Splide, Components: Components, options: Options): ScrollComponent;
+//# sourceMappingURL=../../../../src/js/components/Scroll/Scroll.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Scroll.d.ts","sourceRoot":"","sources":["Scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAA4B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIhG,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"}

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

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

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

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

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

@@ -0,0 +1,16 @@
+import { SlideComponent } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The sub component for managing each slide.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param index      - A slide index.
+ * @param slideIndex - A slide index for clones. This must be `-1` if the slide is not clone.
+ * @param slide      - A slide element.
+ *
+ * @return A Slide sub component.
+ */
+export declare function Slide(Splide: Splide, index: number, slideIndex: number, slide: HTMLElement): SlideComponent;
+//# sourceMappingURL=../../../../src/js/components/Slides/Slide.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["Slide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAgChD,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"}

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

@@ -0,0 +1,15 @@
+import { Components, Options, SlidesComponent } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The component for managing all slides include clones.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide     - A Splide instance.
+ * @param Components - A collection of components.
+ * @param options    - Options.
+ *
+ * @return An Slides component object.
+ */
+export declare function Slides(Splide: Splide, Components: Components, options: Options): SlidesComponent;
+//# sourceMappingURL=../../../../src/js/components/Slides/Slides.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Slides.d.ts","sourceRoot":"","sources":["Slides.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,OAAO,EAGP,eAAe,EAEhB,MAAM,gBAAgB,CAAC;AAExB,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"}

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

@@ -0,0 +1,10 @@
+import { StyleComponent } from '@splide/splide';
+/**
+ * The component for managing styles of the slider.
+ *
+ * @since 3.0.0
+ *
+ * @return A Style component object.
+ */
+export declare function Style(): StyleComponent;
+//# sourceMappingURL=../../../../src/js/components/Style/Style.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["Style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhD;;;;;;GAMG;AACH,wBAAgB,KAAK,IAAI,cAAc,CAwEtC"}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1 @@
+{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["attributes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,SAAmB,CAAC;AACrC,eAAO,MAAM,aAAa,kBAAmB,CAAC;AAC9C,eAAO,MAAM,YAAY,iBAAmB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAmB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAkB,CAAC;AACzC,eAAO,MAAM,QAAQ,aAAmB,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAQ1B,CAAC"}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,10 @@
+import { EventBusObject } from '@splide/splide';
+/**
+ * The constructor to provided a simple event system.
+ *
+ * @since 3.0.0
+ *
+ * @return An EventBus object.
+ */
+export declare function EventBus(): EventBusObject;
+//# sourceMappingURL=../../../../src/js/constructors/EventBus/EventBus.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"EventBus.d.ts","sourceRoot":"","sources":["EventBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhF;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CA2FzC"}

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

@@ -0,0 +1,13 @@
+import { EventInterfaceObject } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+/**
+ * The function that provides interface for internal and native events.
+ *
+ * @since 3.0.0
+ *
+ * @param Splide - A Splide instance.
+ *
+ * @return A collection of interface functions.
+ */
+export declare function EventInterface(Splide: Splide): EventInterfaceObject;
+//# sourceMappingURL=../../../../src/js/constructors/EventInterface/EventInterface.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"EventInterface.d.ts","sourceRoot":"","sources":["EventInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAErF,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAWlD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,MAAM,EAAE,MAAM,GAAI,oBAAoB,CAsHrE"}

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

@@ -0,0 +1,13 @@
+import { RequestIntervalInterface } from '@splide/splide';
+/**
+ * Requests interval like the native `setInterval()` with using `requestAnimationFrame`.
+ *
+ * @since 3.0.0
+ *
+ * @param interval   - The interval duration in milliseconds.
+ * @param onInterval - The callback fired on every interval.
+ * @param onUpdate   - Optional. Called on every animation frame, taking the progress rate.
+ * @param limit      - Optional. Limits the number of interval.
+ */
+export declare function RequestInterval(interval: number, onInterval: () => void, onUpdate?: (rate: number) => void, limit?: number): RequestIntervalInterface;
+//# sourceMappingURL=../../../../src/js/constructors/RequestInterval/RequestInterval.d.ts.map

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

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

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

@@ -0,0 +1,8 @@
+import { StateObject } from '@splide/splide';
+/**
+ * The function providing a super simple state system.
+ *
+ * @param initialState - Specifies the initial state.
+ */
+export declare function State(initialState: number): StateObject;
+//# sourceMappingURL=../../../../src/js/constructors/State/State.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;;;GAIG;AACH,wBAAgB,KAAK,CAAE,YAAY,EAAE,MAAM,GAAI,WAAW,CA2BzD"}

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

@@ -0,0 +1,11 @@
+import { AnyFunction, ThrottleInstance } from '@splide/splide';
+/**
+ * Returns the throttled function.
+ *
+ * @param func     - A function to throttle.
+ * @param duration - Optional. Throttle duration in milliseconds.
+ *
+ * @return A throttled function.
+ */
+export declare function Throttle<F extends AnyFunction>(func: F, duration?: number): ThrottleInstance<F>;
+//# sourceMappingURL=../../../../src/js/constructors/Throttle/Throttle.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"Throttle.d.ts","sourceRoot":"","sources":["Throttle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIzF;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,GAChB,gBAAgB,CAAC,CAAC,CAAC,CAerB"}

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

@@ -0,0 +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';
+//# sourceMappingURL=../../../src/js/constructors/index.d.ts.map

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

@@ -0,0 +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"}

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

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

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

@@ -0,0 +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,gBAAgB,CAAC;AAYxB;;;;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"}

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

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

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

@@ -0,0 +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"}

+ 9 - 0
dist/types/test/fixtures/constants.d.ts

@@ -0,0 +1,9 @@
+/**
+ * The dummy url.
+ */
+export declare const URL = "https://test.com";
+/**
+ * The root and track width.
+ */
+export declare const SLIDER_WIDTH = 1280;
+//# sourceMappingURL=../../../../src/js/test/fixtures/constants.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,GAAG,qBAAqB,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC"}

+ 20 - 0
dist/types/test/fixtures/html.d.ts

@@ -0,0 +1,20 @@
+export interface BuildHtmlArgs {
+    id?: string;
+    length?: number;
+    arrows?: boolean;
+    progress?: boolean;
+    autoplay?: boolean;
+    src?: boolean | string;
+    dataSrc?: boolean | string;
+    dataSrcset?: boolean | string;
+    json?: string;
+}
+/**
+ * Returns an HTML string for building a slider.
+ *
+ * @param args - Arguments.
+ *
+ * @return A built HTML.
+ */
+export declare function buildHtml(args?: BuildHtmlArgs): string;
+//# sourceMappingURL=../../../../src/js/test/fixtures/html.d.ts.map

+ 1 - 0
dist/types/test/fixtures/html.d.ts.map

@@ -0,0 +1 @@
+{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["html.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAE,IAAI,GAAE,aAAkB,GAAI,MAAM,CA0B5D"}

+ 2 - 0
dist/types/test/fixtures/index.d.ts

@@ -0,0 +1,2 @@
+export * from './html';
+//# sourceMappingURL=../../../../src/js/test/fixtures/index.d.ts.map

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

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

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

@@ -0,0 +1,3 @@
+export * from './fixtures';
+export * from './utils';
+//# sourceMappingURL=../../../src/js/test/index.d.ts.map

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

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

+ 2 - 0
dist/types/test/utils/index.d.ts

@@ -0,0 +1,2 @@
+export * from './utils';
+//# sourceMappingURL=../../../../src/js/test/utils/index.d.ts.map

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

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

+ 72 - 0
dist/types/test/utils/utils.d.ts

@@ -0,0 +1,72 @@
+import { Options } from '@splide/splide';
+import { Splide } from '../../core/Splide/Splide';
+import { BuildHtmlArgs } from '../fixtures';
+interface InitArgs extends BuildHtmlArgs {
+    mount?: boolean;
+    html?: string;
+    insertHtml?: boolean;
+}
+/**
+ * Creates a new splide instance.
+ *
+ * @param args    - Arguments for initialization.
+ * @param options - Options for Splide.
+ *
+ * @return A created Splide instance.
+ */
+export declare function init(options?: Options, args?: InitArgs): Splide;
+/**
+ * Converts translate values to positions.
+ *
+ * @param elm - An element to parse.
+ *
+ * @return An object with left and top offsets.
+ */
+export declare function parseTransform(elm: HTMLElement): {
+    left: number;
+    top: number;
+};
+/**
+ * Fires any native event manually.
+ *
+ * @param target        - A target.
+ * @param type          - An event type.
+ * @param data          - Optional. Additional data.
+ * @param eventInitDict - Optional. An EventInit object.
+ *
+ * @return An event object.
+ */
+export declare function fire(target: Window | Document | Element, type: string, data?: any, eventInitDict?: EventInit): Event;
+/**
+ * Emulates keydown.
+ *
+ * @param key    - A key to press.
+ * @param target - A target.
+ */
+export declare function keydown(key: string, target?: Window | Element): void;
+/**
+ * Returns a new Promise resolved after the specified duration.
+ *
+ * @param duration - Duration to wait.
+ *
+ * @return A Promise instance.
+ */
+export declare function wait(duration: number): Promise<void>;
+/**
+ * Finds the CSSRule object.
+ *
+ * @param selector - A selector to find.
+ *
+ * @return A found CSSRule object.
+ */
+export declare function findRule(selector: string): CSSStyleRule;
+/**
+ * Finds the CSSRule object by ID.
+ *
+ * @param target - The element or ID.
+ *
+ * @return A found CSSRule object.
+ */
+export declare function findRuleBy(target: string | HTMLElement): CSSStyleRule;
+export {};
+//# sourceMappingURL=../../../../src/js/test/utils/utils.d.ts.map

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

@@ -0,0 +1 @@
+{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,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"}

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini