foundation-rails 6.6.2.0 → 6.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +198 -145
- data/bower.json +3 -3
- data/foundation-rails.gemspec +4 -4
- data/gemfiles/rails_7.1.gemfile +10 -0
- data/gemfiles/rails_7.1.gemfile.lock +261 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +32 -28
- data/vendor/assets/js/foundation.cjs.js +1996 -3162
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +385 -292
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1663 -2832
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2440 -3870
- data/vendor/assets/js/foundation.js.map +1 -1
- data/vendor/assets/js/foundation.min.js +1 -1
- data/vendor/assets/js/foundation.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.js +238 -344
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.js +197 -275
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -260
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.js +308 -447
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.js +258 -358
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.js +289 -457
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +246 -346
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.js +227 -326
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.js +225 -336
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -278
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.js +284 -444
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.js +322 -483
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.js +253 -394
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.js +275 -434
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.js +130 -186
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.js +123 -161
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.js +123 -160
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
- data/vendor/assets/scss/_global.scss +18 -5
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +1 -1
- data/vendor/assets/scss/components/_breadcrumbs.scss +2 -1
- data/vendor/assets/scss/components/_button-group.scss +13 -8
- data/vendor/assets/scss/components/_button.scss +13 -13
- data/vendor/assets/scss/components/_callout.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +5 -4
- data/vendor/assets/scss/components/_dropdown-menu.scss +1 -1
- data/vendor/assets/scss/components/_label.scss +1 -1
- data/vendor/assets/scss/components/_menu.scss +54 -19
- data/vendor/assets/scss/components/_off-canvas.scss +18 -16
- data/vendor/assets/scss/components/_orbit.scss +3 -3
- data/vendor/assets/scss/components/_pagination.scss +1 -1
- data/vendor/assets/scss/components/_progress-bar.scss +1 -1
- data/vendor/assets/scss/components/_responsive-embed.scss +1 -1
- data/vendor/assets/scss/components/_reveal.scss +8 -3
- data/vendor/assets/scss/components/_slider.scss +5 -2
- data/vendor/assets/scss/components/_switch.scss +25 -2
- data/vendor/assets/scss/components/_table.scss +8 -7
- data/vendor/assets/scss/components/_tabs.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +7 -5
- data/vendor/assets/scss/components/_visibility.scss +45 -2
- data/vendor/assets/scss/forms/_label.scss +2 -1
- data/vendor/assets/scss/forms/_progress.scss +1 -1
- data/vendor/assets/scss/forms/_range.scss +1 -1
- data/vendor/assets/scss/forms/_select.scss +5 -4
- data/vendor/assets/scss/forms/_text.scss +2 -2
- data/vendor/assets/scss/foundation.scss +1 -1
- data/vendor/assets/scss/grid/_classes.scss +1 -1
- data/vendor/assets/scss/grid/_column.scss +3 -2
- data/vendor/assets/scss/grid/_flex-grid.scss +7 -6
- data/vendor/assets/scss/grid/_gutter.scss +1 -1
- data/vendor/assets/scss/grid/_layout.scss +5 -5
- data/vendor/assets/scss/grid/_position.scss +4 -4
- data/vendor/assets/scss/grid/_row.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
- data/vendor/assets/scss/prototype/_border-none.scss +1 -1
- data/vendor/assets/scss/prototype/_font-styling.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +9 -0
- data/vendor/assets/scss/prototype/_rotate.scss +7 -5
- data/vendor/assets/scss/prototype/_separator.scss +5 -5
- data/vendor/assets/scss/prototype/_shadow.scss +1 -2
- data/vendor/assets/scss/prototype/_spacing.scss +33 -33
- data/vendor/assets/scss/prototype/_text-transformation.scss +3 -3
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_base.scss +6 -6
- data/vendor/assets/scss/typography/_helpers.scss +10 -2
- data/vendor/assets/scss/typography/_print.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +21 -18
- data/vendor/assets/scss/util/_color.scss +20 -8
- data/vendor/assets/scss/util/_direction.scss +1 -1
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +61 -9
- data/vendor/assets/scss/util/_mixins.scss +18 -14
- data/vendor/assets/scss/util/_selector.scss +1 -15
- data/vendor/assets/scss/util/_typography.scss +6 -6
- data/vendor/assets/scss/util/_unit.scss +14 -8
- data/vendor/assets/scss/util/_value.scss +3 -18
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +16 -5
- data/vendor/assets/scss/xy-grid/_classes.scss +8 -8
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +2 -2
- data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
- data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
- data/vendor/assets/scss/xy-grid/_position.scss +12 -7
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +2 -2
- metadata +21 -19
@@ -1,209 +1,51 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("./foundation.util.motion"), require("./foundation.util.touch")
|
3
|
+
module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.motion"), require("./foundation.util.touch"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.core", "./foundation.util.keyboard", "./foundation.util.motion", "./foundation.util.touch"
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.motion", "./foundation.util.touch"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["
|
7
|
+
exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.motion"), require("./foundation.util.touch"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.slider"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.touch"]
|
10
|
-
})(
|
11
|
-
return /******/ (function(
|
12
|
-
/******/
|
13
|
-
/******/ var
|
14
|
-
/******/
|
15
|
-
/******/ // The require function
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
17
|
-
/******/
|
18
|
-
/******/ // Check if module is in cache
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
21
|
-
/******/ }
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
24
|
-
/******/ i: moduleId,
|
25
|
-
/******/ l: false,
|
26
|
-
/******/ exports: {}
|
27
|
-
/******/ };
|
28
|
-
/******/
|
29
|
-
/******/ // Execute the module function
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31
|
-
/******/
|
32
|
-
/******/ // Flag the module as loaded
|
33
|
-
/******/ module.l = true;
|
34
|
-
/******/
|
35
|
-
/******/ // Return the exports of the module
|
36
|
-
/******/ return module.exports;
|
37
|
-
/******/ }
|
38
|
-
/******/
|
39
|
-
/******/
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
41
|
-
/******/ __webpack_require__.m = modules;
|
42
|
-
/******/
|
43
|
-
/******/ // expose the module cache
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
45
|
-
/******/
|
46
|
-
/******/ // define getter function for harmony exports
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50
|
-
/******/ }
|
51
|
-
/******/ };
|
52
|
-
/******/
|
53
|
-
/******/ // define __esModule on exports
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57
|
-
/******/ }
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
59
|
-
/******/ };
|
60
|
-
/******/
|
61
|
-
/******/ // create a fake namespace object
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
65
|
-
/******/ // mode & 8|1: behave like require
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
68
|
-
/******/ if(mode & 8) return value;
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70
|
-
/******/ var ns = Object.create(null);
|
71
|
-
/******/ __webpack_require__.r(ns);
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74
|
-
/******/ return ns;
|
75
|
-
/******/ };
|
76
|
-
/******/
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
81
|
-
/******/ function getModuleExports() { return module; };
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
83
|
-
/******/ return getter;
|
84
|
-
/******/ };
|
85
|
-
/******/
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88
|
-
/******/
|
89
|
-
/******/ // __webpack_public_path__
|
90
|
-
/******/ __webpack_require__.p = "";
|
91
|
-
/******/
|
92
|
-
/******/
|
93
|
-
/******/ // Load entry module and return exports
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = 15);
|
95
|
-
/******/ })
|
96
|
-
/************************************************************************/
|
97
|
-
/******/ ({
|
98
|
-
|
99
|
-
/***/ "./foundation.core":
|
100
|
-
/*!****************************************************************************************************************************************************************!*\
|
101
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
102
|
-
\****************************************************************************************************************************************************************/
|
103
|
-
/*! no static exports found */
|
104
|
-
/***/ (function(module, exports) {
|
105
|
-
|
106
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
107
|
-
|
108
|
-
/***/ }),
|
109
|
-
|
110
|
-
/***/ "./foundation.util.keyboard":
|
111
|
-
/*!****************************************************************************************************************************************************************************************************!*\
|
112
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
113
|
-
\****************************************************************************************************************************************************************************************************/
|
114
|
-
/*! no static exports found */
|
115
|
-
/***/ (function(module, exports) {
|
116
|
-
|
117
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
118
|
-
|
119
|
-
/***/ }),
|
120
|
-
|
121
|
-
/***/ "./foundation.util.motion":
|
122
|
-
/*!********************************************************************************************************************************************************************************************!*\
|
123
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
|
124
|
-
\********************************************************************************************************************************************************************************************/
|
125
|
-
/*! no static exports found */
|
126
|
-
/***/ (function(module, exports) {
|
127
|
-
|
128
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
129
|
-
|
130
|
-
/***/ }),
|
131
|
-
|
132
|
-
/***/ "./foundation.util.touch":
|
133
|
-
/*!****************************************************************************************************************************************************************************************!*\
|
134
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.touch"],"amd":"./foundation.util.touch","commonjs":"./foundation.util.touch","commonjs2":"./foundation.util.touch"} ***!
|
135
|
-
\****************************************************************************************************************************************************************************************/
|
136
|
-
/*! no static exports found */
|
137
|
-
/***/ (function(module, exports) {
|
138
|
-
|
139
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__;
|
140
|
-
|
141
|
-
/***/ }),
|
142
|
-
|
143
|
-
/***/ "./js/entries/plugins/foundation.slider.js":
|
144
|
-
/*!*************************************************!*\
|
145
|
-
!*** ./js/entries/plugins/foundation.slider.js ***!
|
146
|
-
\*************************************************/
|
147
|
-
/*! exports provided: Foundation, Slider */
|
148
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
149
|
-
|
150
|
-
"use strict";
|
151
|
-
__webpack_require__.r(__webpack_exports__);
|
152
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
153
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
154
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
155
|
-
|
156
|
-
/* harmony import */ var _foundation_slider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.slider */ "./js/foundation.slider.js");
|
157
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _foundation_slider__WEBPACK_IMPORTED_MODULE_1__["Slider"]; });
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_slider__WEBPACK_IMPORTED_MODULE_1__["Slider"], 'Slider');
|
162
|
-
|
163
|
-
|
164
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.slider"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.touch"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
165
14
|
|
166
15
|
/***/ "./js/foundation.slider.js":
|
167
16
|
/*!*********************************!*\
|
168
17
|
!*** ./js/foundation.slider.js ***!
|
169
18
|
\*********************************/
|
170
|
-
|
171
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
19
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
172
20
|
|
173
|
-
"use strict";
|
174
21
|
__webpack_require__.r(__webpack_exports__);
|
175
|
-
/* harmony export
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
23
|
+
/* harmony export */ Slider: function() { return /* binding */ Slider; }
|
24
|
+
/* harmony export */ });
|
176
25
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
177
26
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
178
27
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
|
179
28
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__);
|
180
29
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
181
30
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
182
|
-
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.
|
31
|
+
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
|
183
32
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__);
|
184
33
|
/* harmony import */ var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.util.touch */ "./foundation.util.touch");
|
185
34
|
/* harmony import */ var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_touch__WEBPACK_IMPORTED_MODULE_4__);
|
186
35
|
/* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
|
187
|
-
|
188
|
-
|
189
|
-
function
|
190
|
-
|
191
|
-
function
|
192
|
-
|
193
|
-
function
|
194
|
-
|
195
|
-
function
|
196
|
-
|
197
|
-
function
|
198
|
-
|
199
|
-
function
|
200
|
-
|
201
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
202
|
-
|
203
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
204
|
-
|
205
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
206
|
-
|
36
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
37
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
38
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
39
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
40
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
41
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
42
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
43
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
44
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
46
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
47
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
48
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
207
49
|
|
208
50
|
|
209
51
|
|
@@ -219,21 +61,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
219
61
|
* @requires foundation.util.keyboard
|
220
62
|
* @requires foundation.util.touch
|
221
63
|
*/
|
222
|
-
|
223
|
-
var Slider =
|
224
|
-
/*#__PURE__*/
|
225
|
-
function (_Plugin) {
|
226
|
-
_inherits(Slider, _Plugin);
|
227
|
-
|
64
|
+
var Slider = /*#__PURE__*/function (_Plugin) {
|
228
65
|
function Slider() {
|
229
66
|
_classCallCheck(this, Slider);
|
230
|
-
|
231
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Slider).apply(this, arguments));
|
67
|
+
return _callSuper(this, Slider, arguments);
|
232
68
|
}
|
233
|
-
|
234
|
-
_createClass(Slider, [{
|
69
|
+
_inherits(Slider, _Plugin);
|
70
|
+
return _createClass(Slider, [{
|
235
71
|
key: "_setup",
|
236
|
-
|
72
|
+
value:
|
237
73
|
/**
|
238
74
|
* Creates a new instance of a slider control.
|
239
75
|
* @class
|
@@ -241,44 +77,43 @@ function (_Plugin) {
|
|
241
77
|
* @param {jQuery} element - jQuery object to make into a slider control.
|
242
78
|
* @param {Object} options - Overrides to the default plugin settings.
|
243
79
|
*/
|
244
|
-
|
80
|
+
function _setup(element, options) {
|
245
81
|
this.$element = element;
|
246
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
82
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Slider.defaults, this.$element.data(), options);
|
247
83
|
this.className = 'Slider'; // ie9 back compat
|
248
|
-
|
249
|
-
|
250
|
-
_foundation_util_touch__WEBPACK_IMPORTED_MODULE_4__["Touch"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
|
251
|
-
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
|
84
|
+
this.initialized = false;
|
252
85
|
|
86
|
+
// Touch and Triggers inits are idempotent, we just need to make sure it's initialied.
|
87
|
+
_foundation_util_touch__WEBPACK_IMPORTED_MODULE_4__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
|
88
|
+
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
|
253
89
|
this._init();
|
254
|
-
|
255
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].register('Slider', {
|
90
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Slider', {
|
256
91
|
'ltr': {
|
257
92
|
'ARROW_RIGHT': 'increase',
|
258
93
|
'ARROW_UP': 'increase',
|
259
94
|
'ARROW_DOWN': 'decrease',
|
260
95
|
'ARROW_LEFT': 'decrease',
|
261
|
-
'SHIFT_ARROW_RIGHT': '
|
262
|
-
'SHIFT_ARROW_UP': '
|
263
|
-
'SHIFT_ARROW_DOWN': '
|
264
|
-
'SHIFT_ARROW_LEFT': '
|
96
|
+
'SHIFT_ARROW_RIGHT': 'increaseFast',
|
97
|
+
'SHIFT_ARROW_UP': 'increaseFast',
|
98
|
+
'SHIFT_ARROW_DOWN': 'decreaseFast',
|
99
|
+
'SHIFT_ARROW_LEFT': 'decreaseFast',
|
265
100
|
'HOME': 'min',
|
266
101
|
'END': 'max'
|
267
102
|
},
|
268
103
|
'rtl': {
|
269
104
|
'ARROW_LEFT': 'increase',
|
270
105
|
'ARROW_RIGHT': 'decrease',
|
271
|
-
'SHIFT_ARROW_LEFT': '
|
272
|
-
'SHIFT_ARROW_RIGHT': '
|
106
|
+
'SHIFT_ARROW_LEFT': 'increaseFast',
|
107
|
+
'SHIFT_ARROW_RIGHT': 'decreaseFast'
|
273
108
|
}
|
274
109
|
});
|
275
110
|
}
|
111
|
+
|
276
112
|
/**
|
277
113
|
* Initilizes the plugin by reading/setting attributes, creating collections and setting the initial position of the handle(s).
|
278
114
|
* @function
|
279
115
|
* @private
|
280
116
|
*/
|
281
|
-
|
282
117
|
}, {
|
283
118
|
key: "_init",
|
284
119
|
value: function _init() {
|
@@ -287,44 +122,36 @@ function (_Plugin) {
|
|
287
122
|
this.$handle = this.handles.eq(0);
|
288
123
|
this.$input = this.inputs.length ? this.inputs.eq(0) : jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(this.$handle.attr('aria-controls')));
|
289
124
|
this.$fill = this.$element.find('[data-slider-fill]').css(this.options.vertical ? 'height' : 'width', 0);
|
290
|
-
|
291
|
-
var _this = this;
|
292
|
-
|
293
125
|
if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) {
|
294
126
|
this.options.disabled = true;
|
295
127
|
this.$element.addClass(this.options.disabledClass);
|
296
128
|
}
|
297
|
-
|
298
129
|
if (!this.inputs.length) {
|
299
130
|
this.inputs = jquery__WEBPACK_IMPORTED_MODULE_0___default()().add(this.$input);
|
300
131
|
this.options.binding = true;
|
301
132
|
}
|
302
|
-
|
303
133
|
this._setInitAttr(0);
|
304
|
-
|
305
134
|
if (this.handles[1]) {
|
306
135
|
this.options.doubleSided = true;
|
307
136
|
this.$handle2 = this.handles.eq(1);
|
308
137
|
this.$input2 = this.inputs.length > 1 ? this.inputs.eq(1) : jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(this.$handle2.attr('aria-controls')));
|
309
|
-
|
310
138
|
if (!this.inputs[1]) {
|
311
139
|
this.inputs = this.inputs.add(this.$input2);
|
312
|
-
}
|
313
|
-
|
140
|
+
}
|
314
141
|
|
142
|
+
// this.$handle.triggerHandler('click.zf.slider');
|
315
143
|
this._setInitAttr(1);
|
316
|
-
}
|
317
|
-
|
144
|
+
}
|
318
145
|
|
146
|
+
// Set handle positions
|
319
147
|
this.setHandles();
|
320
|
-
|
321
148
|
this._events();
|
149
|
+
this.initialized = true;
|
322
150
|
}
|
323
151
|
}, {
|
324
152
|
key: "setHandles",
|
325
153
|
value: function setHandles() {
|
326
154
|
var _this2 = this;
|
327
|
-
|
328
155
|
if (this.handles[1]) {
|
329
156
|
this._setHandlePos(this.$handle, this.inputs.eq(0).val(), function () {
|
330
157
|
_this2._setHandlePos(_this2.$handle2, _this2.inputs.eq(1).val());
|
@@ -343,30 +170,26 @@ function (_Plugin) {
|
|
343
170
|
* @private
|
344
171
|
* @param {Number} value - floating point (the value) to be transformed using to a relative position on the slider (the inverse of _value)
|
345
172
|
*/
|
346
|
-
|
347
173
|
}, {
|
348
174
|
key: "_pctOfBar",
|
349
175
|
value: function _pctOfBar(value) {
|
350
176
|
var pctOfBar = percent(value - this.options.start, this.options.end - this.options.start);
|
351
|
-
|
352
177
|
switch (this.options.positionValueFunction) {
|
353
178
|
case "pow":
|
354
179
|
pctOfBar = this._logTransform(pctOfBar);
|
355
180
|
break;
|
356
|
-
|
357
181
|
case "log":
|
358
182
|
pctOfBar = this._powTransform(pctOfBar);
|
359
183
|
break;
|
360
184
|
}
|
361
|
-
|
362
185
|
return pctOfBar.toFixed(2);
|
363
186
|
}
|
187
|
+
|
364
188
|
/**
|
365
189
|
* @function
|
366
190
|
* @private
|
367
191
|
* @param {Number} pctOfBar - floating point, the relative position of the slider (typically between 0-1) to be transformed to a value
|
368
192
|
*/
|
369
|
-
|
370
193
|
}, {
|
371
194
|
key: "_value",
|
372
195
|
value: function _value(pctOfBar) {
|
@@ -374,14 +197,11 @@ function (_Plugin) {
|
|
374
197
|
case "pow":
|
375
198
|
pctOfBar = this._powTransform(pctOfBar);
|
376
199
|
break;
|
377
|
-
|
378
200
|
case "log":
|
379
201
|
pctOfBar = this._logTransform(pctOfBar);
|
380
202
|
break;
|
381
203
|
}
|
382
|
-
|
383
204
|
var value;
|
384
|
-
|
385
205
|
if (this.options.vertical) {
|
386
206
|
// linear interpolation which is working with negative values for start
|
387
207
|
// https://math.stackexchange.com/a/1019084
|
@@ -389,31 +209,31 @@ function (_Plugin) {
|
|
389
209
|
} else {
|
390
210
|
value = (this.options.end - this.options.start) * pctOfBar + parseFloat(this.options.start);
|
391
211
|
}
|
392
|
-
|
393
212
|
return value;
|
394
213
|
}
|
214
|
+
|
395
215
|
/**
|
396
216
|
* @function
|
397
217
|
* @private
|
398
218
|
* @param {Number} value - floating point (typically between 0-1) to be transformed using the log function
|
399
219
|
*/
|
400
|
-
|
401
220
|
}, {
|
402
221
|
key: "_logTransform",
|
403
222
|
value: function _logTransform(value) {
|
404
223
|
return baseLog(this.options.nonLinearBase, value * (this.options.nonLinearBase - 1) + 1);
|
405
224
|
}
|
225
|
+
|
406
226
|
/**
|
407
227
|
* @function
|
408
228
|
* @private
|
409
229
|
* @param {Number} value - floating point (typically between 0-1) to be transformed using the power function
|
410
230
|
*/
|
411
|
-
|
412
231
|
}, {
|
413
232
|
key: "_powTransform",
|
414
233
|
value: function _powTransform(value) {
|
415
234
|
return (Math.pow(this.options.nonLinearBase, value) - 1) / (this.options.nonLinearBase - 1);
|
416
235
|
}
|
236
|
+
|
417
237
|
/**
|
418
238
|
* Sets the position of the selected handle and fill bar.
|
419
239
|
* @function
|
@@ -424,27 +244,23 @@ function (_Plugin) {
|
|
424
244
|
* @fires Slider#moved
|
425
245
|
* @fires Slider#changed
|
426
246
|
*/
|
427
|
-
|
428
247
|
}, {
|
429
248
|
key: "_setHandlePos",
|
430
249
|
value: function _setHandlePos($hndl, location, cb) {
|
431
250
|
// don't move if the slider has been disabled since its initialization
|
432
251
|
if (this.$element.hasClass(this.options.disabledClass)) {
|
433
252
|
return;
|
434
|
-
}
|
435
|
-
|
436
|
-
|
253
|
+
}
|
254
|
+
//might need to alter that slightly for bars that will have odd number selections.
|
437
255
|
location = parseFloat(location); //on input change events, convert string to number...grumble.
|
438
|
-
// prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max
|
439
256
|
|
257
|
+
// prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max
|
440
258
|
if (location < this.options.start) {
|
441
259
|
location = this.options.start;
|
442
260
|
} else if (location > this.options.end) {
|
443
261
|
location = this.options.end;
|
444
262
|
}
|
445
|
-
|
446
263
|
var isDbl = this.options.doubleSided;
|
447
|
-
|
448
264
|
if (isDbl) {
|
449
265
|
//this block is to prevent 2 handles from crossing eachother. Could/should be improved.
|
450
266
|
if (this.handles.index($hndl) === 0) {
|
@@ -455,68 +271,56 @@ function (_Plugin) {
|
|
455
271
|
location = location <= h1Val ? h1Val + this.options.step : location;
|
456
272
|
}
|
457
273
|
}
|
458
|
-
|
459
274
|
var _this = this,
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
275
|
+
vert = this.options.vertical,
|
276
|
+
hOrW = vert ? 'height' : 'width',
|
277
|
+
lOrT = vert ? 'top' : 'left',
|
278
|
+
handleDim = $hndl[0].getBoundingClientRect()[hOrW],
|
279
|
+
elemDim = this.$element[0].getBoundingClientRect()[hOrW],
|
280
|
+
//percentage of bar min/max value based on click or drag point
|
281
|
+
pctOfBar = this._pctOfBar(location),
|
282
|
+
//number of actual pixels to shift the handle, based on the percentage obtained above
|
283
|
+
pxToMove = (elemDim - handleDim) * pctOfBar,
|
284
|
+
//percentage of bar to shift the handle
|
285
|
+
movement = (percent(pxToMove, elemDim) * 100).toFixed(this.options.decimal);
|
286
|
+
//fixing the decimal value for the location number, is passed to other methods as a fixed floating-point value
|
287
|
+
location = parseFloat(location.toFixed(this.options.decimal));
|
288
|
+
// declare empty object for css adjustments, only used with 2 handled-sliders
|
475
289
|
var css = {};
|
290
|
+
this._setValues($hndl, location);
|
476
291
|
|
477
|
-
|
478
|
-
|
479
|
-
|
292
|
+
// TODO update to calculate based on values set to respective inputs??
|
480
293
|
if (isDbl) {
|
481
294
|
var isLeftHndl = this.handles.index($hndl) === 0,
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
295
|
+
//empty variable, will be used for min-height/width for fill bar
|
296
|
+
dim,
|
297
|
+
//percentage w/h of the handle compared to the slider bar
|
298
|
+
handlePct = Math.floor(percent(handleDim, elemDim) * 100);
|
299
|
+
//if left handle, the math is slightly different than if it's the right handle, and the left/top property needs to be changed for the fill bar
|
487
300
|
if (isLeftHndl) {
|
488
301
|
//left or top percentage value to apply to the fill bar.
|
489
|
-
css[lOrT] = "".concat(movement, "%");
|
490
|
-
|
491
|
-
dim = parseFloat(this.$handle2[0].style[lOrT]) - movement + handlePct;
|
302
|
+
css[lOrT] = "".concat(movement, "%");
|
303
|
+
//calculate the new min-height/width for the fill bar.
|
304
|
+
dim = parseFloat(this.$handle2[0].style[lOrT]) - movement + handlePct;
|
305
|
+
//this callback is necessary to prevent errors and allow the proper placement and initialization of a 2-handled slider
|
492
306
|
//plus, it means we don't care if 'dim' isNaN on init, it won't be in the future.
|
493
|
-
|
494
307
|
if (cb && typeof cb === 'function') {
|
495
308
|
cb();
|
496
309
|
} //this is only needed for the initialization of 2 handled sliders
|
497
|
-
|
498
310
|
} else {
|
499
311
|
//just caching the value of the left/bottom handle's left/top property
|
500
|
-
var handlePos = parseFloat(this.$handle[0].style[lOrT]);
|
312
|
+
var handlePos = parseFloat(this.$handle[0].style[lOrT]);
|
313
|
+
//calculate the new min-height/width for the fill bar. Use isNaN to prevent false positives for numbers <= 0
|
501
314
|
//based on the percentage of movement of the handle being manipulated, less the opposing handle's left/top position, plus the percentage w/h of the handle itself
|
502
|
-
|
503
315
|
dim = movement - (isNaN(handlePos) ? (this.options.initialStart - this.options.start) / ((this.options.end - this.options.start) / 100) : handlePos) + handlePct;
|
504
|
-
}
|
505
|
-
|
506
|
-
|
316
|
+
}
|
317
|
+
// assign the min-height/width to our css object
|
507
318
|
css["min-".concat(hOrW)] = "".concat(dim, "%");
|
508
319
|
}
|
509
320
|
|
510
|
-
|
511
|
-
/**
|
512
|
-
* Fires when the handle is done moving.
|
513
|
-
* @event Slider#moved
|
514
|
-
*/
|
515
|
-
_this.$element.trigger('moved.zf.slider', [$hndl]);
|
516
|
-
}); //because we don't know exactly how the handle will be moved, check the amount of time it should take to move.
|
517
|
-
|
321
|
+
//because we don't know exactly how the handle will be moved, check the amount of time it should take to move.
|
518
322
|
var moveTime = this.$element.data('dragging') ? 1000 / 60 : this.options.moveTime;
|
519
|
-
|
323
|
+
(0,_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Move)(moveTime, $hndl, function () {
|
520
324
|
// adjusting the left/top property of the handle, based on the percentage calculated above
|
521
325
|
// if movement isNaN, that is because the slider is hidden and we cannot determine handle width,
|
522
326
|
// fall back to next best guess.
|
@@ -525,7 +329,6 @@ function (_Plugin) {
|
|
525
329
|
} else {
|
526
330
|
$hndl.css(lOrT, "".concat(movement, "%"));
|
527
331
|
}
|
528
|
-
|
529
332
|
if (!_this.options.doubleSided) {
|
530
333
|
//if single-handled, a simple method to expand the fill bar
|
531
334
|
_this.$fill.css(hOrW, "".concat(pctOfBar * 100, "%"));
|
@@ -534,28 +337,36 @@ function (_Plugin) {
|
|
534
337
|
_this.$fill.css(css);
|
535
338
|
}
|
536
339
|
});
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
340
|
+
if (this.initialized) {
|
341
|
+
this.$element.one('finished.zf.animate', function () {
|
342
|
+
/**
|
343
|
+
* Fires when the handle is done moving.
|
344
|
+
* @event Slider#moved
|
345
|
+
*/
|
346
|
+
_this.$element.trigger('moved.zf.slider', [$hndl]);
|
347
|
+
});
|
348
|
+
/**
|
349
|
+
* Fires when the value has not been change for a given time.
|
350
|
+
* @event Slider#changed
|
351
|
+
*/
|
352
|
+
clearTimeout(_this.timeout);
|
353
|
+
_this.timeout = setTimeout(function () {
|
354
|
+
_this.$element.trigger('changed.zf.slider', [$hndl]);
|
355
|
+
}, _this.options.changedDelay);
|
356
|
+
}
|
546
357
|
}
|
358
|
+
|
547
359
|
/**
|
548
360
|
* Sets the initial attribute for the slider element.
|
549
361
|
* @function
|
550
362
|
* @private
|
551
363
|
* @param {Number} idx - index of the current handle/input to use.
|
552
364
|
*/
|
553
|
-
|
554
365
|
}, {
|
555
366
|
key: "_setInitAttr",
|
556
367
|
value: function _setInitAttr(idx) {
|
557
368
|
var initVal = idx === 0 ? this.options.initialStart : this.options.initialEnd;
|
558
|
-
var id = this.inputs.eq(idx).attr('id') ||
|
369
|
+
var id = this.inputs.eq(idx).attr('id') || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6, 'slider');
|
559
370
|
this.inputs.eq(idx).attr({
|
560
371
|
'id': id,
|
561
372
|
'max': this.options.end,
|
@@ -573,6 +384,7 @@ function (_Plugin) {
|
|
573
384
|
'tabindex': 0
|
574
385
|
});
|
575
386
|
}
|
387
|
+
|
576
388
|
/**
|
577
389
|
* Sets the input and `aria-valuenow` values for the slider element.
|
578
390
|
* @function
|
@@ -580,7 +392,6 @@ function (_Plugin) {
|
|
580
392
|
* @param {jQuery} $handle - the currently selected handle.
|
581
393
|
* @param {Number} val - floating point of the new value.
|
582
394
|
*/
|
583
|
-
|
584
395
|
}, {
|
585
396
|
key: "_setValues",
|
586
397
|
value: function _setValues($handle, val) {
|
@@ -588,6 +399,7 @@ function (_Plugin) {
|
|
588
399
|
this.inputs.eq(idx).val(val);
|
589
400
|
$handle.attr('aria-valuenow', val);
|
590
401
|
}
|
402
|
+
|
591
403
|
/**
|
592
404
|
* Handles events on the slider element.
|
593
405
|
* Calculates the new location of the current handle.
|
@@ -599,34 +411,29 @@ function (_Plugin) {
|
|
599
411
|
* @param {Number} val - floating point number for the new value of the slider.
|
600
412
|
* TODO clean this up, there's a lot of repeated code between this and the _setHandlePos fn.
|
601
413
|
*/
|
602
|
-
|
603
414
|
}, {
|
604
415
|
key: "_handleEvent",
|
605
416
|
value: function _handleEvent(e, $handle, val) {
|
606
|
-
var value
|
607
|
-
|
417
|
+
var value;
|
608
418
|
if (!val) {
|
609
419
|
//click or drag events
|
610
420
|
e.preventDefault();
|
611
|
-
|
612
421
|
var _this = this,
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
422
|
+
vertical = this.options.vertical,
|
423
|
+
param = vertical ? 'height' : 'width',
|
424
|
+
direction = vertical ? 'top' : 'left',
|
425
|
+
eventOffset = vertical ? e.pageY : e.pageX,
|
426
|
+
barDim = this.$element[0].getBoundingClientRect()[param],
|
427
|
+
windowScroll = vertical ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop() : jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollLeft();
|
428
|
+
var elemOffset = this.$element.offset()[direction];
|
429
|
+
|
430
|
+
// touch events emulated by the touch util give position relative to screen, add window.scroll to event coordinates...
|
621
431
|
// best way to guess this is simulated is if clientY == pageY
|
622
|
-
|
623
432
|
if (e.clientY === e.pageY) {
|
624
433
|
eventOffset = eventOffset + windowScroll;
|
625
434
|
}
|
626
|
-
|
627
435
|
var eventFromBar = eventOffset - elemOffset;
|
628
436
|
var barXY;
|
629
|
-
|
630
437
|
if (eventFromBar < 0) {
|
631
438
|
barXY = 0;
|
632
439
|
} else if (eventFromBar > barDim) {
|
@@ -634,32 +441,27 @@ function (_Plugin) {
|
|
634
441
|
} else {
|
635
442
|
barXY = eventFromBar;
|
636
443
|
}
|
637
|
-
|
638
444
|
var offsetPct = percent(barXY, barDim);
|
639
|
-
value = this._value(offsetPct);
|
445
|
+
value = this._value(offsetPct);
|
640
446
|
|
641
|
-
|
447
|
+
// turn everything around for RTL, yay math!
|
448
|
+
if ((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.rtl)() && !this.options.vertical) {
|
642
449
|
value = this.options.end - value;
|
643
450
|
}
|
644
|
-
|
645
|
-
value = _this._adjustValue(null, value); //boolean flag for the setHandlePos fn, specifically for vertical sliders
|
646
|
-
|
647
|
-
hasVal = false;
|
648
|
-
|
451
|
+
value = _this._adjustValue(null, value);
|
649
452
|
if (!$handle) {
|
650
453
|
//figure out which handle it is, pass it to the next function.
|
651
454
|
var firstHndlPos = absPosition(this.$handle, direction, barXY, param),
|
652
|
-
|
455
|
+
secndHndlPos = absPosition(this.$handle2, direction, barXY, param);
|
653
456
|
$handle = firstHndlPos <= secndHndlPos ? this.$handle : this.$handle2;
|
654
457
|
}
|
655
458
|
} else {
|
656
459
|
//change event on input
|
657
460
|
value = this._adjustValue(null, val);
|
658
|
-
hasVal = true;
|
659
461
|
}
|
660
|
-
|
661
462
|
this._setHandlePos($handle, value);
|
662
463
|
}
|
464
|
+
|
663
465
|
/**
|
664
466
|
* Adjustes value for handle in regard to step value. returns adjusted value
|
665
467
|
* @function
|
@@ -667,87 +469,76 @@ function (_Plugin) {
|
|
667
469
|
* @param {jQuery} $handle - the selected handle.
|
668
470
|
* @param {Number} value - value to adjust. used if $handle is falsy
|
669
471
|
*/
|
670
|
-
|
671
472
|
}, {
|
672
473
|
key: "_adjustValue",
|
673
474
|
value: function _adjustValue($handle, value) {
|
674
475
|
var val,
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
476
|
+
step = this.options.step,
|
477
|
+
div = parseFloat(step / 2),
|
478
|
+
left,
|
479
|
+
previousVal,
|
480
|
+
nextVal;
|
681
481
|
if (!!$handle) {
|
682
482
|
val = parseFloat($handle.attr('aria-valuenow'));
|
683
483
|
} else {
|
684
484
|
val = value;
|
685
485
|
}
|
686
|
-
|
687
486
|
if (val >= 0) {
|
688
487
|
left = val % step;
|
689
488
|
} else {
|
690
489
|
left = step + val % step;
|
691
490
|
}
|
692
|
-
|
693
|
-
|
694
|
-
next_val = prev_val + step;
|
695
|
-
|
491
|
+
previousVal = val - left;
|
492
|
+
nextVal = previousVal + step;
|
696
493
|
if (left === 0) {
|
697
494
|
return val;
|
698
495
|
}
|
699
|
-
|
700
|
-
val = val >= prev_val + div ? next_val : prev_val;
|
496
|
+
val = val >= previousVal + div ? nextVal : previousVal;
|
701
497
|
return val;
|
702
498
|
}
|
499
|
+
|
703
500
|
/**
|
704
501
|
* Adds event listeners to the slider elements.
|
705
502
|
* @function
|
706
503
|
* @private
|
707
504
|
*/
|
708
|
-
|
709
505
|
}, {
|
710
506
|
key: "_events",
|
711
507
|
value: function _events() {
|
712
508
|
this._eventsForHandle(this.$handle);
|
713
|
-
|
714
509
|
if (this.handles[1]) {
|
715
510
|
this._eventsForHandle(this.$handle2);
|
716
511
|
}
|
717
512
|
}
|
513
|
+
|
718
514
|
/**
|
719
515
|
* Adds event listeners a particular handle
|
720
516
|
* @function
|
721
517
|
* @private
|
722
518
|
* @param {jQuery} $handle - the current handle to apply listeners to.
|
723
519
|
*/
|
724
|
-
|
725
520
|
}, {
|
726
521
|
key: "_eventsForHandle",
|
727
522
|
value: function _eventsForHandle($handle) {
|
728
523
|
var _this = this,
|
729
|
-
|
730
|
-
|
524
|
+
curHandle;
|
731
525
|
var handleChangeEvent = function handleChangeEvent(e) {
|
732
526
|
var idx = _this.inputs.index(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
|
733
|
-
|
734
527
|
_this._handleEvent(e, _this.handles.eq(idx), jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val());
|
735
|
-
};
|
528
|
+
};
|
529
|
+
|
530
|
+
// IE only triggers the change event when the input loses focus which strictly follows the HTML specification
|
736
531
|
// listen for the enter key and trigger a change
|
737
532
|
// @see https://html.spec.whatwg.org/multipage/input.html#common-input-element-events
|
738
|
-
|
739
|
-
|
740
533
|
this.inputs.off('keyup.zf.slider').on('keyup.zf.slider', function (e) {
|
741
|
-
if (e.keyCode
|
534
|
+
if (e.keyCode === 13) handleChangeEvent.call(this, e);
|
742
535
|
});
|
743
536
|
this.inputs.off('change.zf.slider').on('change.zf.slider', handleChangeEvent);
|
744
|
-
|
745
537
|
if (this.options.clickSelect) {
|
746
538
|
this.$element.off('click.zf.slider').on('click.zf.slider', function (e) {
|
747
539
|
if (_this.$element.data('dragging')) {
|
748
540
|
return false;
|
749
541
|
}
|
750
|
-
|
751
542
|
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).is('[data-slider-handle]')) {
|
752
543
|
if (_this.options.doubleSided) {
|
753
544
|
_this._handleEvent(e);
|
@@ -757,58 +548,48 @@ function (_Plugin) {
|
|
757
548
|
}
|
758
549
|
});
|
759
550
|
}
|
760
|
-
|
761
551
|
if (this.options.draggable) {
|
762
552
|
this.handles.addTouch();
|
763
553
|
var $body = jquery__WEBPACK_IMPORTED_MODULE_0___default()('body');
|
764
554
|
$handle.off('mousedown.zf.slider').on('mousedown.zf.slider', function (e) {
|
765
555
|
$handle.addClass('is-dragging');
|
766
|
-
|
767
556
|
_this.$fill.addClass('is-dragging'); //
|
768
|
-
|
769
|
-
|
770
557
|
_this.$element.data('dragging', true);
|
771
|
-
|
772
558
|
curHandle = jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget);
|
773
|
-
$body.on('mousemove.zf.slider', function (
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
_this._handleEvent(e, curHandle);
|
779
|
-
|
559
|
+
$body.on('mousemove.zf.slider', function (ev) {
|
560
|
+
ev.preventDefault();
|
561
|
+
_this._handleEvent(ev, curHandle);
|
562
|
+
}).on('mouseup.zf.slider', function (ev) {
|
563
|
+
_this._handleEvent(ev, curHandle);
|
780
564
|
$handle.removeClass('is-dragging');
|
781
|
-
|
782
565
|
_this.$fill.removeClass('is-dragging');
|
783
|
-
|
784
566
|
_this.$element.data('dragging', false);
|
785
|
-
|
786
567
|
$body.off('mousemove.zf.slider mouseup.zf.slider');
|
787
568
|
});
|
788
|
-
})
|
569
|
+
})
|
570
|
+
// prevent events triggered by touch
|
789
571
|
.on('selectstart.zf.slider touchmove.zf.slider', function (e) {
|
790
572
|
e.preventDefault();
|
791
573
|
});
|
792
574
|
}
|
793
|
-
|
794
575
|
$handle.off('keydown.zf.slider').on('keydown.zf.slider', function (e) {
|
795
576
|
var _$handle = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
577
|
+
idx = _this.options.doubleSided ? _this.handles.index(_$handle) : 0,
|
578
|
+
oldValue = parseFloat($handle.attr('aria-valuenow')),
|
579
|
+
newValue;
|
800
580
|
|
801
|
-
|
581
|
+
// handle keyboard event with keyboard util
|
582
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e, 'Slider', {
|
802
583
|
decrease: function decrease() {
|
803
584
|
newValue = oldValue - _this.options.step;
|
804
585
|
},
|
805
586
|
increase: function increase() {
|
806
587
|
newValue = oldValue + _this.options.step;
|
807
588
|
},
|
808
|
-
|
589
|
+
decreaseFast: function decreaseFast() {
|
809
590
|
newValue = oldValue - _this.options.step * 10;
|
810
591
|
},
|
811
|
-
|
592
|
+
increaseFast: function increaseFast() {
|
812
593
|
newValue = oldValue + _this.options.step * 10;
|
813
594
|
},
|
814
595
|
min: function min() {
|
@@ -820,7 +601,6 @@ function (_Plugin) {
|
|
820
601
|
handled: function handled() {
|
821
602
|
// only set handle pos when event was handled specially
|
822
603
|
e.preventDefault();
|
823
|
-
|
824
604
|
_this._setHandlePos(_$handle, newValue);
|
825
605
|
}
|
826
606
|
});
|
@@ -830,10 +610,10 @@ function (_Plugin) {
|
|
830
610
|
}*/
|
831
611
|
});
|
832
612
|
}
|
613
|
+
|
833
614
|
/**
|
834
615
|
* Destroys the slider plugin.
|
835
616
|
*/
|
836
|
-
|
837
617
|
}, {
|
838
618
|
key: "_destroy",
|
839
619
|
value: function _destroy() {
|
@@ -843,10 +623,7 @@ function (_Plugin) {
|
|
843
623
|
clearTimeout(this.timeout);
|
844
624
|
}
|
845
625
|
}]);
|
846
|
-
|
847
|
-
return Slider;
|
848
|
-
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]);
|
849
|
-
|
626
|
+
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.Plugin);
|
850
627
|
Slider.defaults = {
|
851
628
|
/**
|
852
629
|
* Minimum value for the slider scale.
|
@@ -855,7 +632,6 @@ Slider.defaults = {
|
|
855
632
|
* @default 0
|
856
633
|
*/
|
857
634
|
start: 0,
|
858
|
-
|
859
635
|
/**
|
860
636
|
* Maximum value for the slider scale.
|
861
637
|
* @option
|
@@ -863,7 +639,6 @@ Slider.defaults = {
|
|
863
639
|
* @default 100
|
864
640
|
*/
|
865
641
|
end: 100,
|
866
|
-
|
867
642
|
/**
|
868
643
|
* Minimum value change per change event.
|
869
644
|
* @option
|
@@ -871,7 +646,6 @@ Slider.defaults = {
|
|
871
646
|
* @default 1
|
872
647
|
*/
|
873
648
|
step: 1,
|
874
|
-
|
875
649
|
/**
|
876
650
|
* Value at which the handle/input *(left handle/first input)* should be set to on initialization.
|
877
651
|
* @option
|
@@ -879,7 +653,6 @@ Slider.defaults = {
|
|
879
653
|
* @default 0
|
880
654
|
*/
|
881
655
|
initialStart: 0,
|
882
|
-
|
883
656
|
/**
|
884
657
|
* Value at which the right handle/second input should be set to on initialization.
|
885
658
|
* @option
|
@@ -887,7 +660,6 @@ Slider.defaults = {
|
|
887
660
|
* @default 100
|
888
661
|
*/
|
889
662
|
initialEnd: 100,
|
890
|
-
|
891
663
|
/**
|
892
664
|
* Allows the input to be located outside the container and visible. Set to by the JS
|
893
665
|
* @option
|
@@ -895,7 +667,6 @@ Slider.defaults = {
|
|
895
667
|
* @default false
|
896
668
|
*/
|
897
669
|
binding: false,
|
898
|
-
|
899
670
|
/**
|
900
671
|
* Allows the user to click/tap on the slider bar to select a value.
|
901
672
|
* @option
|
@@ -903,7 +674,6 @@ Slider.defaults = {
|
|
903
674
|
* @default true
|
904
675
|
*/
|
905
676
|
clickSelect: true,
|
906
|
-
|
907
677
|
/**
|
908
678
|
* Set to true and use the `vertical` class to change alignment to vertical.
|
909
679
|
* @option
|
@@ -911,7 +681,6 @@ Slider.defaults = {
|
|
911
681
|
* @default false
|
912
682
|
*/
|
913
683
|
vertical: false,
|
914
|
-
|
915
684
|
/**
|
916
685
|
* Allows the user to drag the slider handle(s) to select a value.
|
917
686
|
* @option
|
@@ -919,7 +688,6 @@ Slider.defaults = {
|
|
919
688
|
* @default true
|
920
689
|
*/
|
921
690
|
draggable: true,
|
922
|
-
|
923
691
|
/**
|
924
692
|
* Disables the slider and prevents event listeners from being applied. Double checked by JS with `disabledClass`.
|
925
693
|
* @option
|
@@ -927,7 +695,6 @@ Slider.defaults = {
|
|
927
695
|
* @default false
|
928
696
|
*/
|
929
697
|
disabled: false,
|
930
|
-
|
931
698
|
/**
|
932
699
|
* Allows the use of two handles. Double checked by the JS. Changes some logic handling.
|
933
700
|
* @option
|
@@ -935,12 +702,10 @@ Slider.defaults = {
|
|
935
702
|
* @default false
|
936
703
|
*/
|
937
704
|
doubleSided: false,
|
938
|
-
|
939
705
|
/**
|
940
706
|
* Potential future feature.
|
941
707
|
*/
|
942
708
|
// steps: 100,
|
943
|
-
|
944
709
|
/**
|
945
710
|
* Number of decimal places the plugin should go to for floating point precision.
|
946
711
|
* @option
|
@@ -948,12 +713,10 @@ Slider.defaults = {
|
|
948
713
|
* @default 2
|
949
714
|
*/
|
950
715
|
decimal: 2,
|
951
|
-
|
952
716
|
/**
|
953
717
|
* Time delay for dragged elements.
|
954
718
|
*/
|
955
719
|
// dragDelay: 0,
|
956
|
-
|
957
720
|
/**
|
958
721
|
* Time, in ms, to animate the movement of a slider handle if user clicks/taps on the bar. Needs to be manually set if updating the transition time in the Sass settings.
|
959
722
|
* @option
|
@@ -962,7 +725,6 @@ Slider.defaults = {
|
|
962
725
|
*/
|
963
726
|
moveTime: 200,
|
964
727
|
//update this if changing the transition time in the sass
|
965
|
-
|
966
728
|
/**
|
967
729
|
* Class applied to disabled sliders.
|
968
730
|
* @option
|
@@ -970,7 +732,6 @@ Slider.defaults = {
|
|
970
732
|
* @default 'disabled'
|
971
733
|
*/
|
972
734
|
disabledClass: 'disabled',
|
973
|
-
|
974
735
|
/**
|
975
736
|
* Will invert the default layout for a vertical<span data-tooltip title="who would do this???"> </span>slider.
|
976
737
|
* @option
|
@@ -978,7 +739,6 @@ Slider.defaults = {
|
|
978
739
|
* @default false
|
979
740
|
*/
|
980
741
|
invertVertical: false,
|
981
|
-
|
982
742
|
/**
|
983
743
|
* Milliseconds before the `changed.zf-slider` event is triggered after value change.
|
984
744
|
* @option
|
@@ -986,7 +746,6 @@ Slider.defaults = {
|
|
986
746
|
* @default 500
|
987
747
|
*/
|
988
748
|
changedDelay: 500,
|
989
|
-
|
990
749
|
/**
|
991
750
|
* Basevalue for non-linear sliders
|
992
751
|
* @option
|
@@ -994,7 +753,6 @@ Slider.defaults = {
|
|
994
753
|
* @default 5
|
995
754
|
*/
|
996
755
|
nonLinearBase: 5,
|
997
|
-
|
998
756
|
/**
|
999
757
|
* Basevalue for non-linear sliders, possible values are: `'linear'`, `'pow'` & `'log'`. Pow and Log use the nonLinearBase setting.
|
1000
758
|
* @option
|
@@ -1003,65 +761,53 @@ Slider.defaults = {
|
|
1003
761
|
*/
|
1004
762
|
positionValueFunction: 'linear'
|
1005
763
|
};
|
1006
|
-
|
1007
764
|
function percent(frac, num) {
|
1008
765
|
return frac / num;
|
1009
766
|
}
|
1010
|
-
|
1011
767
|
function absPosition($handle, dir, clickPos, param) {
|
1012
768
|
return Math.abs($handle.position()[dir] + $handle[param]() / 2 - clickPos);
|
1013
769
|
}
|
1014
|
-
|
1015
770
|
function baseLog(base, value) {
|
1016
771
|
return Math.log(value) / Math.log(base);
|
1017
772
|
}
|
1018
773
|
|
1019
774
|
|
1020
|
-
|
1021
775
|
/***/ }),
|
1022
776
|
|
1023
777
|
/***/ "./js/foundation.util.triggers.js":
|
1024
778
|
/*!****************************************!*\
|
1025
779
|
!*** ./js/foundation.util.triggers.js ***!
|
1026
780
|
\****************************************/
|
1027
|
-
|
1028
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
781
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1029
782
|
|
1030
|
-
"use strict";
|
1031
783
|
__webpack_require__.r(__webpack_exports__);
|
1032
|
-
/* harmony export
|
784
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
785
|
+
/* harmony export */ Triggers: function() { return /* binding */ Triggers; }
|
786
|
+
/* harmony export */ });
|
1033
787
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
1034
788
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
1035
789
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
1036
790
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
|
1037
791
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
1038
792
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
1039
|
-
|
1040
|
-
|
1041
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
1042
|
-
|
1043
|
-
|
793
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
1044
794
|
|
1045
795
|
|
1046
796
|
|
1047
797
|
var MutationObserver = function () {
|
1048
798
|
var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
|
1049
|
-
|
1050
799
|
for (var i = 0; i < prefixes.length; i++) {
|
1051
800
|
if ("".concat(prefixes[i], "MutationObserver") in window) {
|
1052
801
|
return window["".concat(prefixes[i], "MutationObserver")];
|
1053
802
|
}
|
1054
803
|
}
|
1055
|
-
|
1056
804
|
return false;
|
1057
805
|
}();
|
1058
|
-
|
1059
806
|
var triggers = function triggers(el, type) {
|
1060
807
|
el.data(type).split(' ').forEach(function (id) {
|
1061
808
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
|
1062
809
|
});
|
1063
810
|
};
|
1064
|
-
|
1065
811
|
var Triggers = {
|
1066
812
|
Listeners: {
|
1067
813
|
Basic: {},
|
@@ -1075,7 +821,6 @@ Triggers.Listeners.Basic = {
|
|
1075
821
|
},
|
1076
822
|
closeListener: function closeListener() {
|
1077
823
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
|
1078
|
-
|
1079
824
|
if (id) {
|
1080
825
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
|
1081
826
|
} else {
|
@@ -1084,7 +829,6 @@ Triggers.Listeners.Basic = {
|
|
1084
829
|
},
|
1085
830
|
toggleListener: function toggleListener() {
|
1086
831
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
|
1087
|
-
|
1088
832
|
if (id) {
|
1089
833
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
|
1090
834
|
} else {
|
@@ -1092,12 +836,12 @@ Triggers.Listeners.Basic = {
|
|
1092
836
|
}
|
1093
837
|
},
|
1094
838
|
closeableListener: function closeableListener(e) {
|
1095
|
-
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
839
|
+
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
1096
840
|
|
841
|
+
// Only close the first closable element. See https://git.io/zf-7833
|
1097
842
|
e.stopPropagation();
|
1098
|
-
|
1099
843
|
if (animation !== '') {
|
1100
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__
|
844
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
|
1101
845
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
|
1102
846
|
});
|
1103
847
|
} else {
|
@@ -1108,39 +852,40 @@ Triggers.Listeners.Basic = {
|
|
1108
852
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
|
1109
853
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
|
1110
854
|
}
|
1111
|
-
};
|
855
|
+
};
|
1112
856
|
|
857
|
+
// Elements with [data-open] will reveal a plugin that supports it when clicked.
|
1113
858
|
Triggers.Initializers.addOpenListener = function ($elem) {
|
1114
859
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
|
1115
860
|
$elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
|
1116
|
-
};
|
1117
|
-
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1118
|
-
|
861
|
+
};
|
1119
862
|
|
863
|
+
// Elements with [data-close] will close a plugin that supports it when clicked.
|
864
|
+
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1120
865
|
Triggers.Initializers.addCloseListener = function ($elem) {
|
1121
866
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
|
1122
867
|
$elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
|
1123
|
-
};
|
1124
|
-
|
868
|
+
};
|
1125
869
|
|
870
|
+
// Elements with [data-toggle] will toggle a plugin that supports it when clicked.
|
1126
871
|
Triggers.Initializers.addToggleListener = function ($elem) {
|
1127
872
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
|
1128
873
|
$elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
|
1129
|
-
};
|
1130
|
-
|
874
|
+
};
|
1131
875
|
|
876
|
+
// Elements with [data-closable] will respond to close.zf.trigger events.
|
1132
877
|
Triggers.Initializers.addCloseableListener = function ($elem) {
|
1133
878
|
$elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
|
1134
879
|
$elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
|
1135
|
-
};
|
1136
|
-
|
880
|
+
};
|
1137
881
|
|
882
|
+
// Elements with [data-toggle-focus] will respond to coming in and out of focus
|
1138
883
|
Triggers.Initializers.addToggleFocusListener = function ($elem) {
|
1139
884
|
$elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
|
1140
885
|
$elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
|
1141
|
-
};
|
1142
|
-
|
886
|
+
};
|
1143
887
|
|
888
|
+
// More Global/complex listeners and triggers
|
1144
889
|
Triggers.Listeners.Global = {
|
1145
890
|
resizeListener: function resizeListener($nodes) {
|
1146
891
|
if (!MutationObserver) {
|
@@ -1148,9 +893,8 @@ Triggers.Listeners.Global = {
|
|
1148
893
|
$nodes.each(function () {
|
1149
894
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
|
1150
895
|
});
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
|
896
|
+
}
|
897
|
+
//trigger all listening elements and signal a resize event
|
1154
898
|
$nodes.attr('data-events', "resize");
|
1155
899
|
},
|
1156
900
|
scrollListener: function scrollListener($nodes) {
|
@@ -1159,9 +903,8 @@ Triggers.Listeners.Global = {
|
|
1159
903
|
$nodes.each(function () {
|
1160
904
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
|
1161
905
|
});
|
1162
|
-
}
|
1163
|
-
|
1164
|
-
|
906
|
+
}
|
907
|
+
//trigger all listening elements and signal a scroll event
|
1165
908
|
$nodes.attr('data-events', "scroll");
|
1166
909
|
},
|
1167
910
|
closeMeListener: function closeMeListener(e, pluginId) {
|
@@ -1169,17 +912,15 @@ Triggers.Listeners.Global = {
|
|
1169
912
|
var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
|
1170
913
|
plugins.each(function () {
|
1171
914
|
var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
1172
|
-
|
1173
915
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
1174
916
|
});
|
1175
|
-
}
|
1176
|
-
|
917
|
+
}
|
1177
918
|
};
|
1178
919
|
|
920
|
+
// Global, parses whole document.
|
1179
921
|
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
1180
922
|
var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
|
1181
|
-
|
1182
|
-
|
923
|
+
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
1183
924
|
if (pluginName) {
|
1184
925
|
if (typeof pluginName === 'string') {
|
1185
926
|
plugNames.push(pluginName);
|
@@ -1189,7 +930,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1189
930
|
console.error('Plugin names must be strings');
|
1190
931
|
}
|
1191
932
|
}
|
1192
|
-
|
1193
933
|
if (yetiBoxes.length) {
|
1194
934
|
var listeners = plugNames.map(function (name) {
|
1195
935
|
return "closeme.zf.".concat(name);
|
@@ -1197,75 +937,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1197
937
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
|
1198
938
|
}
|
1199
939
|
};
|
1200
|
-
|
1201
940
|
function debounceGlobalListener(debounce, trigger, listener) {
|
1202
941
|
var timer,
|
1203
|
-
|
1204
|
-
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).
|
942
|
+
args = Array.prototype.slice.call(arguments, 3);
|
943
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
|
1205
944
|
if (timer) {
|
1206
945
|
clearTimeout(timer);
|
1207
946
|
}
|
1208
|
-
|
1209
947
|
timer = setTimeout(function () {
|
1210
948
|
listener.apply(null, args);
|
1211
949
|
}, debounce || 10); //default time to emit scroll event
|
1212
950
|
});
|
1213
951
|
}
|
1214
|
-
|
1215
952
|
Triggers.Initializers.addResizeListener = function (debounce) {
|
1216
953
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
|
1217
|
-
|
1218
954
|
if ($nodes.length) {
|
1219
955
|
debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
|
1220
956
|
}
|
1221
957
|
};
|
1222
|
-
|
1223
958
|
Triggers.Initializers.addScrollListener = function (debounce) {
|
1224
959
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
|
1225
|
-
|
1226
960
|
if ($nodes.length) {
|
1227
961
|
debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
|
1228
962
|
}
|
1229
963
|
};
|
1230
|
-
|
1231
964
|
Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
1232
965
|
if (!MutationObserver) {
|
1233
966
|
return false;
|
1234
967
|
}
|
968
|
+
var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
|
1235
969
|
|
1236
|
-
|
1237
|
-
|
970
|
+
//element callback
|
1238
971
|
var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
|
1239
|
-
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
972
|
+
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
1240
973
|
|
974
|
+
//trigger the event handler for the element depending on type
|
1241
975
|
switch (mutationRecordsList[0].type) {
|
1242
976
|
case "attributes":
|
1243
977
|
if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
|
1244
978
|
$target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
|
1245
979
|
}
|
1246
|
-
|
1247
980
|
if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
|
1248
981
|
$target.triggerHandler('resizeme.zf.trigger', [$target]);
|
1249
982
|
}
|
1250
|
-
|
1251
983
|
if (mutationRecordsList[0].attributeName === "style") {
|
1252
984
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1253
985
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1254
986
|
}
|
1255
|
-
|
1256
987
|
break;
|
1257
|
-
|
1258
988
|
case "childList":
|
1259
989
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1260
990
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1261
991
|
break;
|
1262
|
-
|
1263
992
|
default:
|
1264
993
|
return false;
|
1265
994
|
//nothing
|
1266
995
|
}
|
1267
996
|
};
|
1268
|
-
|
1269
997
|
if ($nodes.length) {
|
1270
998
|
//for each element that needs to listen for resizing, scrolling, or mutation add a single observer
|
1271
999
|
for (var i = 0; i <= $nodes.length - 1; i++) {
|
@@ -1280,7 +1008,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
|
1280
1008
|
}
|
1281
1009
|
}
|
1282
1010
|
};
|
1283
|
-
|
1284
1011
|
Triggers.Initializers.addSimpleListeners = function () {
|
1285
1012
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1286
1013
|
Triggers.Initializers.addOpenListener($document);
|
@@ -1289,44 +1016,68 @@ Triggers.Initializers.addSimpleListeners = function () {
|
|
1289
1016
|
Triggers.Initializers.addCloseableListener($document);
|
1290
1017
|
Triggers.Initializers.addToggleFocusListener($document);
|
1291
1018
|
};
|
1292
|
-
|
1293
1019
|
Triggers.Initializers.addGlobalListeners = function () {
|
1294
1020
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1295
1021
|
Triggers.Initializers.addMutationEventsListener($document);
|
1296
|
-
Triggers.Initializers.addResizeListener();
|
1022
|
+
Triggers.Initializers.addResizeListener(250);
|
1297
1023
|
Triggers.Initializers.addScrollListener();
|
1298
1024
|
Triggers.Initializers.addClosemeListener();
|
1299
1025
|
};
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
if ($.triggersInitialized !== true) {
|
1026
|
+
Triggers.init = function (__, Foundation) {
|
1027
|
+
(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
1028
|
+
if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
|
1304
1029
|
Triggers.Initializers.addSimpleListeners();
|
1305
1030
|
Triggers.Initializers.addGlobalListeners();
|
1306
|
-
|
1031
|
+
(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
|
1307
1032
|
}
|
1308
1033
|
});
|
1309
|
-
|
1310
1034
|
if (Foundation) {
|
1311
|
-
Foundation.Triggers = Triggers;
|
1312
|
-
|
1035
|
+
Foundation.Triggers = Triggers;
|
1036
|
+
// Legacy included to be backwards compatible for now.
|
1313
1037
|
Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
|
1314
1038
|
}
|
1315
1039
|
};
|
1316
1040
|
|
1317
1041
|
|
1042
|
+
/***/ }),
|
1043
|
+
|
1044
|
+
/***/ "./foundation.core":
|
1045
|
+
/*!****************************************************************************************************************************************************************!*\
|
1046
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
1047
|
+
\****************************************************************************************************************************************************************/
|
1048
|
+
/***/ (function(module) {
|
1049
|
+
|
1050
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
1051
|
+
|
1052
|
+
/***/ }),
|
1053
|
+
|
1054
|
+
/***/ "./foundation.util.keyboard":
|
1055
|
+
/*!****************************************************************************************************************************************************************************************************!*\
|
1056
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
1057
|
+
\****************************************************************************************************************************************************************************************************/
|
1058
|
+
/***/ (function(module) {
|
1059
|
+
|
1060
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
1318
1061
|
|
1319
1062
|
/***/ }),
|
1320
1063
|
|
1321
|
-
/***/
|
1322
|
-
|
1323
|
-
!***
|
1324
|
-
|
1325
|
-
|
1326
|
-
/***/ (function(module, exports, __webpack_require__) {
|
1064
|
+
/***/ "./foundation.util.motion":
|
1065
|
+
/*!********************************************************************************************************************************************************************************************!*\
|
1066
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
|
1067
|
+
\********************************************************************************************************************************************************************************************/
|
1068
|
+
/***/ (function(module) {
|
1327
1069
|
|
1328
|
-
module.exports =
|
1070
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
1329
1071
|
|
1072
|
+
/***/ }),
|
1073
|
+
|
1074
|
+
/***/ "./foundation.util.touch":
|
1075
|
+
/*!****************************************************************************************************************************************************************************************!*\
|
1076
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.touch"],"amd":"./foundation.util.touch","commonjs":"./foundation.util.touch","commonjs2":"./foundation.util.touch"} ***!
|
1077
|
+
\****************************************************************************************************************************************************************************************/
|
1078
|
+
/***/ (function(module) {
|
1079
|
+
|
1080
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__;
|
1330
1081
|
|
1331
1082
|
/***/ }),
|
1332
1083
|
|
@@ -1334,13 +1085,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
|
|
1334
1085
|
/*!********************************************************************************************!*\
|
1335
1086
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
1336
1087
|
\********************************************************************************************/
|
1337
|
-
|
1338
|
-
/***/ (function(module, exports) {
|
1088
|
+
/***/ (function(module) {
|
1339
1089
|
|
1340
1090
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
1341
1091
|
|
1342
1092
|
/***/ })
|
1343
1093
|
|
1344
|
-
/******/
|
1094
|
+
/******/ });
|
1095
|
+
/************************************************************************/
|
1096
|
+
/******/ // The module cache
|
1097
|
+
/******/ var __webpack_module_cache__ = {};
|
1098
|
+
/******/
|
1099
|
+
/******/ // The require function
|
1100
|
+
/******/ function __webpack_require__(moduleId) {
|
1101
|
+
/******/ // Check if module is in cache
|
1102
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
1103
|
+
/******/ if (cachedModule !== undefined) {
|
1104
|
+
/******/ return cachedModule.exports;
|
1105
|
+
/******/ }
|
1106
|
+
/******/ // Create a new module (and put it into the cache)
|
1107
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
1108
|
+
/******/ // no module.id needed
|
1109
|
+
/******/ // no module.loaded needed
|
1110
|
+
/******/ exports: {}
|
1111
|
+
/******/ };
|
1112
|
+
/******/
|
1113
|
+
/******/ // Execute the module function
|
1114
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
1115
|
+
/******/
|
1116
|
+
/******/ // Return the exports of the module
|
1117
|
+
/******/ return module.exports;
|
1118
|
+
/******/ }
|
1119
|
+
/******/
|
1120
|
+
/************************************************************************/
|
1121
|
+
/******/ /* webpack/runtime/compat get default export */
|
1122
|
+
/******/ !function() {
|
1123
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
1124
|
+
/******/ __webpack_require__.n = function(module) {
|
1125
|
+
/******/ var getter = module && module.__esModule ?
|
1126
|
+
/******/ function() { return module['default']; } :
|
1127
|
+
/******/ function() { return module; };
|
1128
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
1129
|
+
/******/ return getter;
|
1130
|
+
/******/ };
|
1131
|
+
/******/ }();
|
1132
|
+
/******/
|
1133
|
+
/******/ /* webpack/runtime/define property getters */
|
1134
|
+
/******/ !function() {
|
1135
|
+
/******/ // define getter functions for harmony exports
|
1136
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
1137
|
+
/******/ for(var key in definition) {
|
1138
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1139
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1140
|
+
/******/ }
|
1141
|
+
/******/ }
|
1142
|
+
/******/ };
|
1143
|
+
/******/ }();
|
1144
|
+
/******/
|
1145
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1146
|
+
/******/ !function() {
|
1147
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
1148
|
+
/******/ }();
|
1149
|
+
/******/
|
1150
|
+
/******/ /* webpack/runtime/make namespace object */
|
1151
|
+
/******/ !function() {
|
1152
|
+
/******/ // define __esModule on exports
|
1153
|
+
/******/ __webpack_require__.r = function(exports) {
|
1154
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
1155
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
1156
|
+
/******/ }
|
1157
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
1158
|
+
/******/ };
|
1159
|
+
/******/ }();
|
1160
|
+
/******/
|
1161
|
+
/************************************************************************/
|
1162
|
+
var __webpack_exports__ = {};
|
1163
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1164
|
+
!function() {
|
1165
|
+
/*!*************************************************!*\
|
1166
|
+
!*** ./js/entries/plugins/foundation.slider.js ***!
|
1167
|
+
\*************************************************/
|
1168
|
+
__webpack_require__.r(__webpack_exports__);
|
1169
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1170
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
|
1171
|
+
/* harmony export */ Slider: function() { return /* reexport safe */ _foundation_slider__WEBPACK_IMPORTED_MODULE_1__.Slider; }
|
1172
|
+
/* harmony export */ });
|
1173
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
1174
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
1175
|
+
/* harmony import */ var _foundation_slider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.slider */ "./js/foundation.slider.js");
|
1176
|
+
|
1177
|
+
|
1178
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_slider__WEBPACK_IMPORTED_MODULE_1__.Slider, 'Slider');
|
1179
|
+
|
1180
|
+
}();
|
1181
|
+
/******/ return __webpack_exports__;
|
1182
|
+
/******/ })()
|
1183
|
+
;
|
1345
1184
|
});
|
1346
1185
|
//# sourceMappingURL=foundation.slider.js.map
|