|
@@ -13,112 +13,32 @@
|
|
|
exports["Splide"] = factory();
|
|
|
else
|
|
|
root["Splide"] = factory();
|
|
|
-})(window, function() {
|
|
|
-return /******/ (function(modules) { // webpackBootstrap
|
|
|
-/******/ // The module cache
|
|
|
-/******/ var installedModules = {};
|
|
|
-/******/
|
|
|
-/******/ // The require function
|
|
|
-/******/ function __webpack_require__(moduleId) {
|
|
|
-/******/
|
|
|
-/******/ // Check if module is in cache
|
|
|
-/******/ if(installedModules[moduleId]) {
|
|
|
-/******/ return installedModules[moduleId].exports;
|
|
|
-/******/ }
|
|
|
-/******/ // Create a new module (and put it into the cache)
|
|
|
-/******/ var module = installedModules[moduleId] = {
|
|
|
-/******/ i: moduleId,
|
|
|
-/******/ l: false,
|
|
|
-/******/ exports: {}
|
|
|
-/******/ };
|
|
|
-/******/
|
|
|
-/******/ // Execute the module function
|
|
|
-/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
|
-/******/
|
|
|
-/******/ // Flag the module as loaded
|
|
|
-/******/ module.l = true;
|
|
|
-/******/
|
|
|
-/******/ // Return the exports of the module
|
|
|
-/******/ return module.exports;
|
|
|
-/******/ }
|
|
|
-/******/
|
|
|
-/******/
|
|
|
-/******/ // expose the modules object (__webpack_modules__)
|
|
|
-/******/ __webpack_require__.m = modules;
|
|
|
-/******/
|
|
|
-/******/ // expose the module cache
|
|
|
-/******/ __webpack_require__.c = installedModules;
|
|
|
-/******/
|
|
|
-/******/ // define getter function for harmony exports
|
|
|
-/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
|
-/******/ if(!__webpack_require__.o(exports, name)) {
|
|
|
-/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
|
-/******/ }
|
|
|
-/******/ };
|
|
|
-/******/
|
|
|
-/******/ // define __esModule on exports
|
|
|
-/******/ __webpack_require__.r = function(exports) {
|
|
|
-/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
|
-/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
-/******/ }
|
|
|
-/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
-/******/ };
|
|
|
-/******/
|
|
|
-/******/ // create a fake namespace object
|
|
|
-/******/ // mode & 1: value is a module id, require it
|
|
|
-/******/ // mode & 2: merge all properties of value into the ns
|
|
|
-/******/ // mode & 4: return value when already ns object
|
|
|
-/******/ // mode & 8|1: behave like require
|
|
|
-/******/ __webpack_require__.t = function(value, mode) {
|
|
|
-/******/ if(mode & 1) value = __webpack_require__(value);
|
|
|
-/******/ if(mode & 8) return value;
|
|
|
-/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
|
-/******/ var ns = Object.create(null);
|
|
|
-/******/ __webpack_require__.r(ns);
|
|
|
-/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
|
-/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
|
-/******/ return ns;
|
|
|
-/******/ };
|
|
|
-/******/
|
|
|
-/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
|
-/******/ __webpack_require__.n = function(module) {
|
|
|
-/******/ var getter = module && module.__esModule ?
|
|
|
-/******/ function getDefault() { return module['default']; } :
|
|
|
-/******/ function getModuleExports() { return module; };
|
|
|
-/******/ __webpack_require__.d(getter, 'a', getter);
|
|
|
-/******/ return getter;
|
|
|
-/******/ };
|
|
|
-/******/
|
|
|
-/******/ // Object.prototype.hasOwnProperty.call
|
|
|
-/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
|
-/******/
|
|
|
-/******/ // __webpack_public_path__
|
|
|
-/******/ __webpack_require__.p = "";
|
|
|
-/******/
|
|
|
-/******/
|
|
|
-/******/ // Load entry module and return exports
|
|
|
-/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
|
-/******/ })
|
|
|
-/************************************************************************/
|
|
|
-/******/ ([
|
|
|
-/* 0 */
|
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
+})(self, function() {
|
|
|
+return /******/ (() => { // webpackBootstrap
|
|
|
+/******/ "use strict";
|
|
|
+/******/ var __webpack_modules__ = ({
|
|
|
+
|
|
|
+/***/ 311:
|
|
|
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
-"use strict";
|
|
|
// ESM COMPAT FLAG
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
// EXPORTS
|
|
|
-__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ module_Splide; });
|
|
|
+__webpack_require__.d(__webpack_exports__, {
|
|
|
+ "default": () => /* binding */ module_Splide
|
|
|
+});
|
|
|
|
|
|
// NAMESPACE OBJECT: ./src/js/constants/states.js
|
|
|
var states_namespaceObject = {};
|
|
|
__webpack_require__.r(states_namespaceObject);
|
|
|
-__webpack_require__.d(states_namespaceObject, "CREATED", function() { return CREATED; });
|
|
|
-__webpack_require__.d(states_namespaceObject, "MOUNTED", function() { return MOUNTED; });
|
|
|
-__webpack_require__.d(states_namespaceObject, "IDLE", function() { return IDLE; });
|
|
|
-__webpack_require__.d(states_namespaceObject, "MOVING", function() { return MOVING; });
|
|
|
-__webpack_require__.d(states_namespaceObject, "DESTROYED", function() { return DESTROYED; });
|
|
|
+__webpack_require__.d(states_namespaceObject, {
|
|
|
+ "CREATED": () => CREATED,
|
|
|
+ "DESTROYED": () => DESTROYED,
|
|
|
+ "IDLE": () => IDLE,
|
|
|
+ "MOUNTED": () => MOUNTED,
|
|
|
+ "MOVING": () => MOVING
|
|
|
+});
|
|
|
|
|
|
// CONCATENATED MODULE: ./src/js/core/event.js
|
|
|
/**
|
|
@@ -131,7 +51,7 @@ __webpack_require__.d(states_namespaceObject, "DESTROYED", function() { return D
|
|
|
/**
|
|
|
* The function for providing an Event object simply managing events.
|
|
|
*/
|
|
|
-/* harmony default export */ var core_event = (function () {
|
|
|
+/* harmony default export */ const core_event = (function () {
|
|
|
/**
|
|
|
* Store all event data.
|
|
|
*
|
|
@@ -248,7 +168,7 @@ __webpack_require__.d(states_namespaceObject, "DESTROYED", function() { return D
|
|
|
*
|
|
|
* @param {string|number} initialState - Provide the initial state value.
|
|
|
*/
|
|
|
-/* harmony default export */ var state = (function (initialState) {
|
|
|
+/* harmony default export */ const state = (function (initialState) {
|
|
|
/**
|
|
|
* Store the current state.
|
|
|
*
|
|
@@ -374,7 +294,7 @@ function object_assign(to, from) {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
/**
|
|
|
* Convert the given value to array.
|
|
|
*
|
|
@@ -474,7 +394,7 @@ function toPixel(root, value) {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* Find the first element matching the given selector.
|
|
@@ -711,7 +631,7 @@ function getRect(elm) {
|
|
|
* @param {Function} callback - Callback function fired right after all images are loaded.
|
|
|
*/
|
|
|
|
|
|
-function dom_loaded(elm, callback) {
|
|
|
+function loaded(elm, callback) {
|
|
|
var images = elm.querySelectorAll('img');
|
|
|
var length = images.length;
|
|
|
|
|
@@ -764,7 +684,7 @@ var FADE = 'fade';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* The component for general slide effect transition.
|
|
@@ -775,7 +695,7 @@ var FADE = 'fade';
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var transitions_slide = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const slide = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Hold the list element.
|
|
|
*
|
|
@@ -837,7 +757,7 @@ var FADE = 'fade';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* The component for fade transition.
|
|
@@ -848,7 +768,7 @@ var FADE = 'fade';
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var fade = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const fade = (function (Splide, Components) {
|
|
|
var Fade = {
|
|
|
/**
|
|
|
* Called when the component is mounted.
|
|
@@ -912,7 +832,7 @@ var FADE = 'fade';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -932,7 +852,7 @@ function compose(Splide, Components, Transition) {
|
|
|
});
|
|
|
|
|
|
if (!Transition) {
|
|
|
- Transition = Splide.is(FADE) ? fade : transitions_slide;
|
|
|
+ Transition = Splide.is(FADE) ? fade : slide;
|
|
|
}
|
|
|
|
|
|
components.Transition = Transition(Splide, components);
|
|
@@ -958,7 +878,7 @@ var MESSAGE_PREFIX = '[SPLIDE]';
|
|
|
* @param {string} message - An error message.
|
|
|
*/
|
|
|
|
|
|
-function error_error(message) {
|
|
|
+function error(message) {
|
|
|
console.error(MESSAGE_PREFIX + " " + message);
|
|
|
}
|
|
|
/**
|
|
@@ -1059,7 +979,7 @@ var I18N = {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
var DEFAULTS = {
|
|
|
/**
|
|
@@ -1530,7 +1450,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
* providing some APIs to control the behavior.
|
|
|
*/
|
|
|
|
|
|
-var splide_Splide = /*#__PURE__*/function () {
|
|
|
+var Splide = /*#__PURE__*/function () {
|
|
|
/**
|
|
|
* Splide constructor.
|
|
|
*
|
|
@@ -1602,7 +1522,7 @@ var splide_Splide = /*#__PURE__*/function () {
|
|
|
}
|
|
|
});
|
|
|
} catch (e) {
|
|
|
- error_error(e.message);
|
|
|
+ error(e.message);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1899,7 +1819,7 @@ var splide_Splide = /*#__PURE__*/function () {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1910,7 +1830,7 @@ var splide_Splide = /*#__PURE__*/function () {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_options = (function (Splide) {
|
|
|
+/* harmony default export */ const options = (function (Splide) {
|
|
|
/**
|
|
|
* Retrieve options from the data attribute.
|
|
|
* Note that IE10 doesn't support dataset property.
|
|
@@ -1923,7 +1843,7 @@ var splide_Splide = /*#__PURE__*/function () {
|
|
|
try {
|
|
|
Splide.options = JSON.parse(options);
|
|
|
} catch (e) {
|
|
|
- error_error(e.message);
|
|
|
+ error(e.message);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1973,7 +1893,7 @@ var TTB = 'ttb';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -1997,7 +1917,7 @@ var STYLE_RESTORE_EVENTS = 'update.slide';
|
|
|
* @return {Object} - The sub component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var elements_slide = (function (Splide, index, realIndex, slide) {
|
|
|
+/* harmony default export */ const elements_slide = (function (Splide, index, realIndex, slide) {
|
|
|
/**
|
|
|
* Whether to update "is-active" class before or after transition.
|
|
|
*
|
|
@@ -2198,7 +2118,7 @@ var STYLE_RESTORE_EVENTS = 'update.slide';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -2219,7 +2139,7 @@ var UID_NAME = 'uid';
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_elements = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const components_elements = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Hold the root element.
|
|
|
*
|
|
@@ -2384,7 +2304,7 @@ var UID_NAME = 'uid';
|
|
|
this.slides.push(slide);
|
|
|
}
|
|
|
|
|
|
- dom_loaded(slide, function () {
|
|
|
+ loaded(slide, function () {
|
|
|
callback && callback(slide);
|
|
|
});
|
|
|
}
|
|
@@ -2480,7 +2400,7 @@ var UID_NAME = 'uid';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
var floor = Math.floor;
|
|
@@ -2493,7 +2413,7 @@ var floor = Math.floor;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var controller = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const controller = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Store current options.
|
|
|
*
|
|
@@ -2791,7 +2711,7 @@ var floor = Math.floor;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -2806,7 +2726,7 @@ var abs = Math.abs;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_track = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const track = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Hold the Layout component.
|
|
|
*
|
|
@@ -3128,7 +3048,7 @@ var abs = Math.abs;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -3141,7 +3061,7 @@ var abs = Math.abs;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_clones = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const clones = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Store information of all clones.
|
|
|
*
|
|
@@ -3315,7 +3235,7 @@ var abs = Math.abs;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -3327,7 +3247,7 @@ var abs = Math.abs;
|
|
|
* @return {Object} - The resolver object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var horizontal = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const horizontal = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Keep the Elements component.
|
|
|
*
|
|
@@ -3474,7 +3394,7 @@ var abs = Math.abs;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -3486,7 +3406,7 @@ var abs = Math.abs;
|
|
|
* @return {Object} - The resolver object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var vertical = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const vertical = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Keep the Elements component.
|
|
|
*
|
|
@@ -3719,7 +3639,7 @@ function createInterval(callback, interval, progress) {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -3735,7 +3655,7 @@ function createInterval(callback, interval, progress) {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var layout = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const layout = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Keep the Elements component.
|
|
|
*
|
|
@@ -3841,7 +3761,7 @@ function createInterval(callback, interval, progress) {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -3871,7 +3791,7 @@ var FRICTION_REDUCER = 7;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var drag = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const drag = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Store the Move component.
|
|
|
*
|
|
@@ -4195,7 +4115,7 @@ var FRICTION_REDUCER = 7;
|
|
|
*
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
-/* harmony default export */ var click = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const click = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Whether click is disabled or not.
|
|
|
*
|
|
@@ -4252,7 +4172,7 @@ var FRICTION_REDUCER = 7;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* Set of pause flags.
|
|
@@ -4273,7 +4193,7 @@ var PAUSE_FLAGS = {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_autoplay = (function (Splide, Components, name) {
|
|
|
+/* harmony default export */ const autoplay = (function (Splide, Components, name) {
|
|
|
/**
|
|
|
* Store pause flags.
|
|
|
*
|
|
@@ -4439,7 +4359,7 @@ var PAUSE_FLAGS = {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
/**
|
|
|
* The component for change an img element to background image of its wrapper.
|
|
|
*
|
|
@@ -4449,7 +4369,7 @@ var PAUSE_FLAGS = {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_cover = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const cover = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Hold options.
|
|
|
*
|
|
@@ -4558,7 +4478,7 @@ var SIZE = 40;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -4571,7 +4491,7 @@ var SIZE = 40;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_arrows = (function (Splide, Components, name) {
|
|
|
+/* harmony default export */ const arrows = (function (Splide, Components, name) {
|
|
|
/**
|
|
|
* Previous arrow element.
|
|
|
*
|
|
@@ -4733,7 +4653,7 @@ var SIZE = 40;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* The event name for updating some attributes of pagination nodes.
|
|
@@ -4759,7 +4679,7 @@ var UPDATE_EVENT = 'updated.page refresh.page';
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_pagination = (function (Splide, Components, name) {
|
|
|
+/* harmony default export */ const pagination = (function (Splide, Components, name) {
|
|
|
/**
|
|
|
* Store all data for pagination.
|
|
|
* - list: A list element.
|
|
@@ -4926,7 +4846,7 @@ var UPDATE_EVENT = 'updated.page refresh.page';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -4953,7 +4873,7 @@ var SRCSET_DATA_NAME = 'data-splide-lazy-srcset';
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var lazyload = (function (Splide, Components, name) {
|
|
|
+/* harmony default export */ const lazyload = (function (Splide, Components, name) {
|
|
|
/**
|
|
|
* Next index for sequential loading.
|
|
|
*
|
|
@@ -5186,7 +5106,7 @@ var TAB_INDEX = 'tabindex';
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* Map a key to a slide control.
|
|
@@ -5225,7 +5145,7 @@ var KEY_MAP = {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_keyboard = (function (Splide) {
|
|
|
+/* harmony default export */ const keyboard = (function (Splide) {
|
|
|
/**
|
|
|
* Hold the target element.
|
|
|
*
|
|
@@ -5273,7 +5193,7 @@ var KEY_MAP = {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -5285,7 +5205,7 @@ var KEY_MAP = {
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var a11y = (function (Splide, Components) {
|
|
|
+/* harmony default export */ const a11y = (function (Splide, Components) {
|
|
|
/**
|
|
|
* Hold a i18n object.
|
|
|
*
|
|
@@ -5526,7 +5446,7 @@ var KEY_MAP = {
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* The event name for sync.
|
|
@@ -5556,7 +5476,7 @@ var TRIGGER_KEYS = [' ', 'Enter', 'Spacebar'];
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var sync = (function (Splide) {
|
|
|
+/* harmony default export */ const sync = (function (Splide) {
|
|
|
/**
|
|
|
* Keep the sibling Splide instance.
|
|
|
*
|
|
@@ -5691,7 +5611,7 @@ var TRIGGER_KEYS = [' ', 'Enter', 'Spacebar'];
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
/**
|
|
|
* Interval time for throttle.
|
|
@@ -5708,7 +5628,7 @@ var THROTTLE = 50;
|
|
|
* @return {Object} - The component object.
|
|
|
*/
|
|
|
|
|
|
-/* harmony default export */ var components_breakpoints = (function (Splide) {
|
|
|
+/* harmony default export */ const breakpoints = (function (Splide) {
|
|
|
/**
|
|
|
* Store breakpoints.
|
|
|
*
|
|
@@ -5841,7 +5761,7 @@ var THROTTLE = 50;
|
|
|
* @author Naotoshi Fujita
|
|
|
* @copyright Naotoshi Fujita. All rights reserved.
|
|
|
*/
|
|
|
-
|
|
|
+;
|
|
|
|
|
|
|
|
|
|
|
@@ -5859,35 +5779,35 @@ var THROTTLE = 50;
|
|
|
|
|
|
|
|
|
var COMPLETE = {
|
|
|
- Options: components_options,
|
|
|
- Breakpoints: components_breakpoints,
|
|
|
+ Options: options,
|
|
|
+ Breakpoints: breakpoints,
|
|
|
Controller: controller,
|
|
|
Elements: components_elements,
|
|
|
- Track: components_track,
|
|
|
- Clones: components_clones,
|
|
|
+ Track: track,
|
|
|
+ Clones: clones,
|
|
|
Layout: layout,
|
|
|
Drag: drag,
|
|
|
Click: click,
|
|
|
- Autoplay: components_autoplay,
|
|
|
- Cover: components_cover,
|
|
|
- Arrows: components_arrows,
|
|
|
- Pagination: components_pagination,
|
|
|
+ Autoplay: autoplay,
|
|
|
+ Cover: cover,
|
|
|
+ Arrows: arrows,
|
|
|
+ Pagination: pagination,
|
|
|
LazyLoad: lazyload,
|
|
|
- Keyboard: components_keyboard,
|
|
|
+ Keyboard: keyboard,
|
|
|
Sync: sync,
|
|
|
A11y: a11y
|
|
|
};
|
|
|
var LIGHT = {
|
|
|
- Options: components_options,
|
|
|
+ Options: options,
|
|
|
Controller: controller,
|
|
|
Elements: components_elements,
|
|
|
- Track: components_track,
|
|
|
- Clones: components_clones,
|
|
|
+ Track: track,
|
|
|
+ Clones: clones,
|
|
|
Layout: layout,
|
|
|
Drag: drag,
|
|
|
Click: click,
|
|
|
- Arrows: components_arrows,
|
|
|
- Pagination: components_pagination,
|
|
|
+ Arrows: arrows,
|
|
|
+ Pagination: pagination,
|
|
|
A11y: a11y
|
|
|
};
|
|
|
// CONCATENATED MODULE: ./build/module/module.js
|
|
@@ -5913,10 +5833,71 @@ var module_Splide = /*#__PURE__*/function (_Core) {
|
|
|
}
|
|
|
|
|
|
return Splide;
|
|
|
-}(splide_Splide);
|
|
|
+}(Splide);
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
-/******/ ]);
|
|
|
+
|
|
|
+/******/ });
|
|
|
+/************************************************************************/
|
|
|
+/******/ // The module cache
|
|
|
+/******/ var __webpack_module_cache__ = {};
|
|
|
+/******/
|
|
|
+/******/ // The require function
|
|
|
+/******/ function __webpack_require__(moduleId) {
|
|
|
+/******/ // Check if module is in cache
|
|
|
+/******/ if(__webpack_module_cache__[moduleId]) {
|
|
|
+/******/ return __webpack_module_cache__[moduleId].exports;
|
|
|
+/******/ }
|
|
|
+/******/ // Create a new module (and put it into the cache)
|
|
|
+/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
|
+/******/ // no module.id needed
|
|
|
+/******/ // no module.loaded needed
|
|
|
+/******/ exports: {}
|
|
|
+/******/ };
|
|
|
+/******/
|
|
|
+/******/ // Execute the module function
|
|
|
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
|
+/******/
|
|
|
+/******/ // Return the exports of the module
|
|
|
+/******/ return module.exports;
|
|
|
+/******/ }
|
|
|
+/******/
|
|
|
+/************************************************************************/
|
|
|
+/******/ /* webpack/runtime/define property getters */
|
|
|
+/******/ (() => {
|
|
|
+/******/ // define getter functions for harmony exports
|
|
|
+/******/ __webpack_require__.d = (exports, definition) => {
|
|
|
+/******/ for(var key in definition) {
|
|
|
+/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
|
+/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
|
+/******/ }
|
|
|
+/******/ }
|
|
|
+/******/ };
|
|
|
+/******/ })();
|
|
|
+/******/
|
|
|
+/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
|
+/******/ (() => {
|
|
|
+/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
|
|
+/******/ })();
|
|
|
+/******/
|
|
|
+/******/ /* webpack/runtime/make namespace object */
|
|
|
+/******/ (() => {
|
|
|
+/******/ // define __esModule on exports
|
|
|
+/******/ __webpack_require__.r = (exports) => {
|
|
|
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
|
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
+/******/ }
|
|
|
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
+/******/ };
|
|
|
+/******/ })();
|
|
|
+/******/
|
|
|
+/************************************************************************/
|
|
|
+/******/ // module exports must be returned from runtime so entry inlining is disabled
|
|
|
+/******/ // startup
|
|
|
+/******/ // Load entry module and return exports
|
|
|
+/******/ return __webpack_require__(311);
|
|
|
+/******/ })()
|
|
|
+;
|
|
|
});
|