foundation-rails 6.6.1.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 +199 -146
- 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 +2101 -3230
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +505 -379
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1779 -2911
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2544 -3970
- 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 +277 -367
- 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 +205 -277
- 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 -262
- 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 +314 -457
- 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 +259 -359
- 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 +291 -462
- 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 +251 -349
- 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 +455 -240
- 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 +226 -342
- 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 -288
- 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 +285 -445
- 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 +321 -486
- 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 -395
- 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 +276 -437
- 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 +176 -234
- 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 +127 -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 +126 -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 +20 -7
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_accordion.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +3 -3
- data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
- data/vendor/assets/scss/components/_button-group.scss +23 -13
- data/vendor/assets/scss/components/_button.scss +15 -15
- data/vendor/assets/scss/components/_callout.scss +4 -4
- data/vendor/assets/scss/components/_card.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +7 -6
- data/vendor/assets/scss/components/_drilldown.scss +2 -2
- data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
- data/vendor/assets/scss/components/_dropdown.scss +2 -2
- data/vendor/assets/scss/components/_flex.scss +2 -2
- data/vendor/assets/scss/components/_float.scss +2 -2
- data/vendor/assets/scss/components/_label.scss +3 -3
- data/vendor/assets/scss/components/_media-object.scss +2 -2
- data/vendor/assets/scss/components/_menu.scss +56 -21
- data/vendor/assets/scss/components/_off-canvas.scss +20 -18
- data/vendor/assets/scss/components/_orbit.scss +5 -5
- data/vendor/assets/scss/components/_pagination.scss +3 -3
- data/vendor/assets/scss/components/_progress-bar.scss +3 -3
- data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
- data/vendor/assets/scss/components/_reveal.scss +10 -5
- data/vendor/assets/scss/components/_slider.scss +7 -4
- data/vendor/assets/scss/components/_sticky.scss +2 -2
- data/vendor/assets/scss/components/_switch.scss +27 -4
- data/vendor/assets/scss/components/_table.scss +10 -9
- data/vendor/assets/scss/components/_tabs.scss +4 -4
- data/vendor/assets/scss/components/_thumbnail.scss +2 -2
- data/vendor/assets/scss/components/_title-bar.scss +2 -2
- data/vendor/assets/scss/components/_tooltip.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +9 -7
- data/vendor/assets/scss/components/_visibility.scss +48 -5
- data/vendor/assets/scss/forms/_checkbox.scss +2 -2
- data/vendor/assets/scss/forms/_error.scss +2 -2
- data/vendor/assets/scss/forms/_fieldset.scss +2 -2
- data/vendor/assets/scss/forms/_forms.scss +2 -2
- data/vendor/assets/scss/forms/_help-text.scss +2 -2
- data/vendor/assets/scss/forms/_input-group.scss +2 -2
- data/vendor/assets/scss/forms/_label.scss +4 -3
- data/vendor/assets/scss/forms/_meter.scss +2 -2
- data/vendor/assets/scss/forms/_progress.scss +3 -3
- data/vendor/assets/scss/forms/_range.scss +3 -3
- data/vendor/assets/scss/forms/_select.scss +7 -6
- data/vendor/assets/scss/forms/_text.scss +4 -4
- data/vendor/assets/scss/foundation.scss +3 -3
- data/vendor/assets/scss/grid/_classes.scss +3 -3
- data/vendor/assets/scss/grid/_column.scss +5 -4
- data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
- data/vendor/assets/scss/grid/_grid.scss +2 -2
- data/vendor/assets/scss/grid/_gutter.scss +3 -3
- data/vendor/assets/scss/grid/_layout.scss +7 -7
- data/vendor/assets/scss/grid/_position.scss +6 -6
- data/vendor/assets/scss/grid/_row.scss +3 -3
- data/vendor/assets/scss/grid/_size.scss +2 -2
- 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/_arrow.scss +2 -2
- data/vendor/assets/scss/prototype/_border-box.scss +2 -2
- data/vendor/assets/scss/prototype/_border-none.scss +3 -3
- data/vendor/assets/scss/prototype/_bordered.scss +2 -2
- data/vendor/assets/scss/prototype/_box.scss +2 -2
- data/vendor/assets/scss/prototype/_display.scss +2 -2
- data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
- data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +11 -2
- data/vendor/assets/scss/prototype/_position.scss +2 -2
- data/vendor/assets/scss/prototype/_prototype.scss +2 -2
- data/vendor/assets/scss/prototype/_rotate.scss +9 -7
- data/vendor/assets/scss/prototype/_rounded.scss +2 -2
- data/vendor/assets/scss/prototype/_separator.scss +7 -7
- data/vendor/assets/scss/prototype/_shadow.scss +3 -4
- data/vendor/assets/scss/prototype/_sizing.scss +2 -2
- data/vendor/assets/scss/prototype/_spacing.scss +35 -35
- data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
- data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
- data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_alignment.scss +2 -2
- data/vendor/assets/scss/typography/_base.scss +8 -8
- data/vendor/assets/scss/typography/_helpers.scss +12 -4
- data/vendor/assets/scss/typography/_print.scss +4 -4
- data/vendor/assets/scss/typography/_typography.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +24 -21
- data/vendor/assets/scss/util/_color.scss +22 -10
- data/vendor/assets/scss/util/_direction.scss +3 -3
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +63 -11
- data/vendor/assets/scss/util/_mixins.scss +20 -16
- data/vendor/assets/scss/util/_selector.scss +3 -17
- data/vendor/assets/scss/util/_typography.scss +8 -8
- data/vendor/assets/scss/util/_unit.scss +16 -10
- data/vendor/assets/scss/util/_util.scss +2 -2
- data/vendor/assets/scss/util/_value.scss +5 -20
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
- data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
- data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
- data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
- data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
- data/vendor/assets/scss/xy-grid/_position.scss +14 -9
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
- 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,46 +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 isDbl = false,
|
292
|
-
_this = this;
|
293
|
-
|
294
125
|
if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) {
|
295
126
|
this.options.disabled = true;
|
296
127
|
this.$element.addClass(this.options.disabledClass);
|
297
128
|
}
|
298
|
-
|
299
129
|
if (!this.inputs.length) {
|
300
130
|
this.inputs = jquery__WEBPACK_IMPORTED_MODULE_0___default()().add(this.$input);
|
301
131
|
this.options.binding = true;
|
302
132
|
}
|
303
|
-
|
304
133
|
this._setInitAttr(0);
|
305
|
-
|
306
134
|
if (this.handles[1]) {
|
307
135
|
this.options.doubleSided = true;
|
308
136
|
this.$handle2 = this.handles.eq(1);
|
309
137
|
this.$input2 = this.inputs.length > 1 ? this.inputs.eq(1) : jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(this.$handle2.attr('aria-controls')));
|
310
|
-
|
311
138
|
if (!this.inputs[1]) {
|
312
139
|
this.inputs = this.inputs.add(this.$input2);
|
313
140
|
}
|
314
141
|
|
315
|
-
|
316
|
-
|
142
|
+
// this.$handle.triggerHandler('click.zf.slider');
|
317
143
|
this._setInitAttr(1);
|
318
|
-
}
|
319
|
-
|
144
|
+
}
|
320
145
|
|
146
|
+
// Set handle positions
|
321
147
|
this.setHandles();
|
322
|
-
|
323
148
|
this._events();
|
149
|
+
this.initialized = true;
|
324
150
|
}
|
325
151
|
}, {
|
326
152
|
key: "setHandles",
|
327
153
|
value: function setHandles() {
|
328
154
|
var _this2 = this;
|
329
|
-
|
330
155
|
if (this.handles[1]) {
|
331
156
|
this._setHandlePos(this.$handle, this.inputs.eq(0).val(), function () {
|
332
157
|
_this2._setHandlePos(_this2.$handle2, _this2.inputs.eq(1).val());
|
@@ -345,30 +170,26 @@ function (_Plugin) {
|
|
345
170
|
* @private
|
346
171
|
* @param {Number} value - floating point (the value) to be transformed using to a relative position on the slider (the inverse of _value)
|
347
172
|
*/
|
348
|
-
|
349
173
|
}, {
|
350
174
|
key: "_pctOfBar",
|
351
175
|
value: function _pctOfBar(value) {
|
352
176
|
var pctOfBar = percent(value - this.options.start, this.options.end - this.options.start);
|
353
|
-
|
354
177
|
switch (this.options.positionValueFunction) {
|
355
178
|
case "pow":
|
356
179
|
pctOfBar = this._logTransform(pctOfBar);
|
357
180
|
break;
|
358
|
-
|
359
181
|
case "log":
|
360
182
|
pctOfBar = this._powTransform(pctOfBar);
|
361
183
|
break;
|
362
184
|
}
|
363
|
-
|
364
185
|
return pctOfBar.toFixed(2);
|
365
186
|
}
|
187
|
+
|
366
188
|
/**
|
367
189
|
* @function
|
368
190
|
* @private
|
369
191
|
* @param {Number} pctOfBar - floating point, the relative position of the slider (typically between 0-1) to be transformed to a value
|
370
192
|
*/
|
371
|
-
|
372
193
|
}, {
|
373
194
|
key: "_value",
|
374
195
|
value: function _value(pctOfBar) {
|
@@ -376,14 +197,11 @@ function (_Plugin) {
|
|
376
197
|
case "pow":
|
377
198
|
pctOfBar = this._powTransform(pctOfBar);
|
378
199
|
break;
|
379
|
-
|
380
200
|
case "log":
|
381
201
|
pctOfBar = this._logTransform(pctOfBar);
|
382
202
|
break;
|
383
203
|
}
|
384
|
-
|
385
204
|
var value;
|
386
|
-
|
387
205
|
if (this.options.vertical) {
|
388
206
|
// linear interpolation which is working with negative values for start
|
389
207
|
// https://math.stackexchange.com/a/1019084
|
@@ -391,31 +209,31 @@ function (_Plugin) {
|
|
391
209
|
} else {
|
392
210
|
value = (this.options.end - this.options.start) * pctOfBar + parseFloat(this.options.start);
|
393
211
|
}
|
394
|
-
|
395
212
|
return value;
|
396
213
|
}
|
214
|
+
|
397
215
|
/**
|
398
216
|
* @function
|
399
217
|
* @private
|
400
218
|
* @param {Number} value - floating point (typically between 0-1) to be transformed using the log function
|
401
219
|
*/
|
402
|
-
|
403
220
|
}, {
|
404
221
|
key: "_logTransform",
|
405
222
|
value: function _logTransform(value) {
|
406
223
|
return baseLog(this.options.nonLinearBase, value * (this.options.nonLinearBase - 1) + 1);
|
407
224
|
}
|
225
|
+
|
408
226
|
/**
|
409
227
|
* @function
|
410
228
|
* @private
|
411
229
|
* @param {Number} value - floating point (typically between 0-1) to be transformed using the power function
|
412
230
|
*/
|
413
|
-
|
414
231
|
}, {
|
415
232
|
key: "_powTransform",
|
416
233
|
value: function _powTransform(value) {
|
417
234
|
return (Math.pow(this.options.nonLinearBase, value) - 1) / (this.options.nonLinearBase - 1);
|
418
235
|
}
|
236
|
+
|
419
237
|
/**
|
420
238
|
* Sets the position of the selected handle and fill bar.
|
421
239
|
* @function
|
@@ -426,27 +244,23 @@ function (_Plugin) {
|
|
426
244
|
* @fires Slider#moved
|
427
245
|
* @fires Slider#changed
|
428
246
|
*/
|
429
|
-
|
430
247
|
}, {
|
431
248
|
key: "_setHandlePos",
|
432
249
|
value: function _setHandlePos($hndl, location, cb) {
|
433
250
|
// don't move if the slider has been disabled since its initialization
|
434
251
|
if (this.$element.hasClass(this.options.disabledClass)) {
|
435
252
|
return;
|
436
|
-
}
|
437
|
-
|
438
|
-
|
253
|
+
}
|
254
|
+
//might need to alter that slightly for bars that will have odd number selections.
|
439
255
|
location = parseFloat(location); //on input change events, convert string to number...grumble.
|
440
|
-
// prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max
|
441
256
|
|
257
|
+
// prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max
|
442
258
|
if (location < this.options.start) {
|
443
259
|
location = this.options.start;
|
444
260
|
} else if (location > this.options.end) {
|
445
261
|
location = this.options.end;
|
446
262
|
}
|
447
|
-
|
448
263
|
var isDbl = this.options.doubleSided;
|
449
|
-
|
450
264
|
if (isDbl) {
|
451
265
|
//this block is to prevent 2 handles from crossing eachother. Could/should be improved.
|
452
266
|
if (this.handles.index($hndl) === 0) {
|
@@ -457,68 +271,56 @@ function (_Plugin) {
|
|
457
271
|
location = location <= h1Val ? h1Val + this.options.step : location;
|
458
272
|
}
|
459
273
|
}
|
460
|
-
|
461
274
|
var _this = this,
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
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
|
477
289
|
var css = {};
|
290
|
+
this._setValues($hndl, location);
|
478
291
|
|
479
|
-
|
480
|
-
|
481
|
-
|
292
|
+
// TODO update to calculate based on values set to respective inputs??
|
482
293
|
if (isDbl) {
|
483
294
|
var isLeftHndl = this.handles.index($hndl) === 0,
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
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
|
489
300
|
if (isLeftHndl) {
|
490
301
|
//left or top percentage value to apply to the fill bar.
|
491
|
-
css[lOrT] = "".concat(movement, "%");
|
492
|
-
|
493
|
-
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
|
494
306
|
//plus, it means we don't care if 'dim' isNaN on init, it won't be in the future.
|
495
|
-
|
496
307
|
if (cb && typeof cb === 'function') {
|
497
308
|
cb();
|
498
309
|
} //this is only needed for the initialization of 2 handled sliders
|
499
|
-
|
500
310
|
} else {
|
501
311
|
//just caching the value of the left/bottom handle's left/top property
|
502
|
-
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
|
503
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
|
504
|
-
|
505
315
|
dim = movement - (isNaN(handlePos) ? (this.options.initialStart - this.options.start) / ((this.options.end - this.options.start) / 100) : handlePos) + handlePct;
|
506
|
-
}
|
507
|
-
|
508
|
-
|
316
|
+
}
|
317
|
+
// assign the min-height/width to our css object
|
509
318
|
css["min-".concat(hOrW)] = "".concat(dim, "%");
|
510
319
|
}
|
511
320
|
|
512
|
-
|
513
|
-
/**
|
514
|
-
* Fires when the handle is done moving.
|
515
|
-
* @event Slider#moved
|
516
|
-
*/
|
517
|
-
_this.$element.trigger('moved.zf.slider', [$hndl]);
|
518
|
-
}); //because we don't know exactly how the handle will be moved, check the amount of time it should take to move.
|
519
|
-
|
321
|
+
//because we don't know exactly how the handle will be moved, check the amount of time it should take to move.
|
520
322
|
var moveTime = this.$element.data('dragging') ? 1000 / 60 : this.options.moveTime;
|
521
|
-
|
323
|
+
(0,_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Move)(moveTime, $hndl, function () {
|
522
324
|
// adjusting the left/top property of the handle, based on the percentage calculated above
|
523
325
|
// if movement isNaN, that is because the slider is hidden and we cannot determine handle width,
|
524
326
|
// fall back to next best guess.
|
@@ -527,7 +329,6 @@ function (_Plugin) {
|
|
527
329
|
} else {
|
528
330
|
$hndl.css(lOrT, "".concat(movement, "%"));
|
529
331
|
}
|
530
|
-
|
531
332
|
if (!_this.options.doubleSided) {
|
532
333
|
//if single-handled, a simple method to expand the fill bar
|
533
334
|
_this.$fill.css(hOrW, "".concat(pctOfBar * 100, "%"));
|
@@ -536,28 +337,36 @@ function (_Plugin) {
|
|
536
337
|
_this.$fill.css(css);
|
537
338
|
}
|
538
339
|
});
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
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
|
+
}
|
548
357
|
}
|
358
|
+
|
549
359
|
/**
|
550
360
|
* Sets the initial attribute for the slider element.
|
551
361
|
* @function
|
552
362
|
* @private
|
553
363
|
* @param {Number} idx - index of the current handle/input to use.
|
554
364
|
*/
|
555
|
-
|
556
365
|
}, {
|
557
366
|
key: "_setInitAttr",
|
558
367
|
value: function _setInitAttr(idx) {
|
559
368
|
var initVal = idx === 0 ? this.options.initialStart : this.options.initialEnd;
|
560
|
-
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');
|
561
370
|
this.inputs.eq(idx).attr({
|
562
371
|
'id': id,
|
563
372
|
'max': this.options.end,
|
@@ -575,6 +384,7 @@ function (_Plugin) {
|
|
575
384
|
'tabindex': 0
|
576
385
|
});
|
577
386
|
}
|
387
|
+
|
578
388
|
/**
|
579
389
|
* Sets the input and `aria-valuenow` values for the slider element.
|
580
390
|
* @function
|
@@ -582,7 +392,6 @@ function (_Plugin) {
|
|
582
392
|
* @param {jQuery} $handle - the currently selected handle.
|
583
393
|
* @param {Number} val - floating point of the new value.
|
584
394
|
*/
|
585
|
-
|
586
395
|
}, {
|
587
396
|
key: "_setValues",
|
588
397
|
value: function _setValues($handle, val) {
|
@@ -590,6 +399,7 @@ function (_Plugin) {
|
|
590
399
|
this.inputs.eq(idx).val(val);
|
591
400
|
$handle.attr('aria-valuenow', val);
|
592
401
|
}
|
402
|
+
|
593
403
|
/**
|
594
404
|
* Handles events on the slider element.
|
595
405
|
* Calculates the new location of the current handle.
|
@@ -601,35 +411,29 @@ function (_Plugin) {
|
|
601
411
|
* @param {Number} val - floating point number for the new value of the slider.
|
602
412
|
* TODO clean this up, there's a lot of repeated code between this and the _setHandlePos fn.
|
603
413
|
*/
|
604
|
-
|
605
414
|
}, {
|
606
415
|
key: "_handleEvent",
|
607
416
|
value: function _handleEvent(e, $handle, val) {
|
608
|
-
var value
|
609
|
-
|
417
|
+
var value;
|
610
418
|
if (!val) {
|
611
419
|
//click or drag events
|
612
420
|
e.preventDefault();
|
613
|
-
|
614
421
|
var _this = this,
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
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...
|
624
431
|
// best way to guess this is simulated is if clientY == pageY
|
625
|
-
|
626
432
|
if (e.clientY === e.pageY) {
|
627
433
|
eventOffset = eventOffset + windowScroll;
|
628
434
|
}
|
629
|
-
|
630
435
|
var eventFromBar = eventOffset - elemOffset;
|
631
436
|
var barXY;
|
632
|
-
|
633
437
|
if (eventFromBar < 0) {
|
634
438
|
barXY = 0;
|
635
439
|
} else if (eventFromBar > barDim) {
|
@@ -637,32 +441,27 @@ function (_Plugin) {
|
|
637
441
|
} else {
|
638
442
|
barXY = eventFromBar;
|
639
443
|
}
|
640
|
-
|
641
444
|
var offsetPct = percent(barXY, barDim);
|
642
|
-
value = this._value(offsetPct);
|
445
|
+
value = this._value(offsetPct);
|
643
446
|
|
644
|
-
|
447
|
+
// turn everything around for RTL, yay math!
|
448
|
+
if ((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.rtl)() && !this.options.vertical) {
|
645
449
|
value = this.options.end - value;
|
646
450
|
}
|
647
|
-
|
648
|
-
value = _this._adjustValue(null, value); //boolean flag for the setHandlePos fn, specifically for vertical sliders
|
649
|
-
|
650
|
-
hasVal = false;
|
651
|
-
|
451
|
+
value = _this._adjustValue(null, value);
|
652
452
|
if (!$handle) {
|
653
453
|
//figure out which handle it is, pass it to the next function.
|
654
454
|
var firstHndlPos = absPosition(this.$handle, direction, barXY, param),
|
655
|
-
|
455
|
+
secndHndlPos = absPosition(this.$handle2, direction, barXY, param);
|
656
456
|
$handle = firstHndlPos <= secndHndlPos ? this.$handle : this.$handle2;
|
657
457
|
}
|
658
458
|
} else {
|
659
459
|
//change event on input
|
660
460
|
value = this._adjustValue(null, val);
|
661
|
-
hasVal = true;
|
662
461
|
}
|
663
|
-
|
664
462
|
this._setHandlePos($handle, value);
|
665
463
|
}
|
464
|
+
|
666
465
|
/**
|
667
466
|
* Adjustes value for handle in regard to step value. returns adjusted value
|
668
467
|
* @function
|
@@ -670,88 +469,76 @@ function (_Plugin) {
|
|
670
469
|
* @param {jQuery} $handle - the selected handle.
|
671
470
|
* @param {Number} value - value to adjust. used if $handle is falsy
|
672
471
|
*/
|
673
|
-
|
674
472
|
}, {
|
675
473
|
key: "_adjustValue",
|
676
474
|
value: function _adjustValue($handle, value) {
|
677
475
|
var val,
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
476
|
+
step = this.options.step,
|
477
|
+
div = parseFloat(step / 2),
|
478
|
+
left,
|
479
|
+
previousVal,
|
480
|
+
nextVal;
|
684
481
|
if (!!$handle) {
|
685
482
|
val = parseFloat($handle.attr('aria-valuenow'));
|
686
483
|
} else {
|
687
484
|
val = value;
|
688
485
|
}
|
689
|
-
|
690
486
|
if (val >= 0) {
|
691
487
|
left = val % step;
|
692
488
|
} else {
|
693
489
|
left = step + val % step;
|
694
490
|
}
|
695
|
-
|
696
|
-
|
697
|
-
next_val = prev_val + step;
|
698
|
-
|
491
|
+
previousVal = val - left;
|
492
|
+
nextVal = previousVal + step;
|
699
493
|
if (left === 0) {
|
700
494
|
return val;
|
701
495
|
}
|
702
|
-
|
703
|
-
val = val >= prev_val + div ? next_val : prev_val;
|
496
|
+
val = val >= previousVal + div ? nextVal : previousVal;
|
704
497
|
return val;
|
705
498
|
}
|
499
|
+
|
706
500
|
/**
|
707
501
|
* Adds event listeners to the slider elements.
|
708
502
|
* @function
|
709
503
|
* @private
|
710
504
|
*/
|
711
|
-
|
712
505
|
}, {
|
713
506
|
key: "_events",
|
714
507
|
value: function _events() {
|
715
508
|
this._eventsForHandle(this.$handle);
|
716
|
-
|
717
509
|
if (this.handles[1]) {
|
718
510
|
this._eventsForHandle(this.$handle2);
|
719
511
|
}
|
720
512
|
}
|
513
|
+
|
721
514
|
/**
|
722
515
|
* Adds event listeners a particular handle
|
723
516
|
* @function
|
724
517
|
* @private
|
725
518
|
* @param {jQuery} $handle - the current handle to apply listeners to.
|
726
519
|
*/
|
727
|
-
|
728
520
|
}, {
|
729
521
|
key: "_eventsForHandle",
|
730
522
|
value: function _eventsForHandle($handle) {
|
731
523
|
var _this = this,
|
732
|
-
|
733
|
-
timer;
|
734
|
-
|
524
|
+
curHandle;
|
735
525
|
var handleChangeEvent = function handleChangeEvent(e) {
|
736
526
|
var idx = _this.inputs.index(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
|
737
|
-
|
738
527
|
_this._handleEvent(e, _this.handles.eq(idx), jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val());
|
739
|
-
};
|
528
|
+
};
|
529
|
+
|
530
|
+
// IE only triggers the change event when the input loses focus which strictly follows the HTML specification
|
740
531
|
// listen for the enter key and trigger a change
|
741
532
|
// @see https://html.spec.whatwg.org/multipage/input.html#common-input-element-events
|
742
|
-
|
743
|
-
|
744
533
|
this.inputs.off('keyup.zf.slider').on('keyup.zf.slider', function (e) {
|
745
|
-
if (e.keyCode
|
534
|
+
if (e.keyCode === 13) handleChangeEvent.call(this, e);
|
746
535
|
});
|
747
536
|
this.inputs.off('change.zf.slider').on('change.zf.slider', handleChangeEvent);
|
748
|
-
|
749
537
|
if (this.options.clickSelect) {
|
750
538
|
this.$element.off('click.zf.slider').on('click.zf.slider', function (e) {
|
751
539
|
if (_this.$element.data('dragging')) {
|
752
540
|
return false;
|
753
541
|
}
|
754
|
-
|
755
542
|
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).is('[data-slider-handle]')) {
|
756
543
|
if (_this.options.doubleSided) {
|
757
544
|
_this._handleEvent(e);
|
@@ -761,58 +548,48 @@ function (_Plugin) {
|
|
761
548
|
}
|
762
549
|
});
|
763
550
|
}
|
764
|
-
|
765
551
|
if (this.options.draggable) {
|
766
552
|
this.handles.addTouch();
|
767
553
|
var $body = jquery__WEBPACK_IMPORTED_MODULE_0___default()('body');
|
768
554
|
$handle.off('mousedown.zf.slider').on('mousedown.zf.slider', function (e) {
|
769
555
|
$handle.addClass('is-dragging');
|
770
|
-
|
771
556
|
_this.$fill.addClass('is-dragging'); //
|
772
|
-
|
773
|
-
|
774
557
|
_this.$element.data('dragging', true);
|
775
|
-
|
776
558
|
curHandle = jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget);
|
777
|
-
$body.on('mousemove.zf.slider', function (
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
_this._handleEvent(e, curHandle);
|
783
|
-
|
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);
|
784
564
|
$handle.removeClass('is-dragging');
|
785
|
-
|
786
565
|
_this.$fill.removeClass('is-dragging');
|
787
|
-
|
788
566
|
_this.$element.data('dragging', false);
|
789
|
-
|
790
567
|
$body.off('mousemove.zf.slider mouseup.zf.slider');
|
791
568
|
});
|
792
|
-
})
|
569
|
+
})
|
570
|
+
// prevent events triggered by touch
|
793
571
|
.on('selectstart.zf.slider touchmove.zf.slider', function (e) {
|
794
572
|
e.preventDefault();
|
795
573
|
});
|
796
574
|
}
|
797
|
-
|
798
575
|
$handle.off('keydown.zf.slider').on('keydown.zf.slider', function (e) {
|
799
576
|
var _$handle = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
577
|
+
idx = _this.options.doubleSided ? _this.handles.index(_$handle) : 0,
|
578
|
+
oldValue = parseFloat($handle.attr('aria-valuenow')),
|
579
|
+
newValue;
|
804
580
|
|
805
|
-
|
581
|
+
// handle keyboard event with keyboard util
|
582
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e, 'Slider', {
|
806
583
|
decrease: function decrease() {
|
807
584
|
newValue = oldValue - _this.options.step;
|
808
585
|
},
|
809
586
|
increase: function increase() {
|
810
587
|
newValue = oldValue + _this.options.step;
|
811
588
|
},
|
812
|
-
|
589
|
+
decreaseFast: function decreaseFast() {
|
813
590
|
newValue = oldValue - _this.options.step * 10;
|
814
591
|
},
|
815
|
-
|
592
|
+
increaseFast: function increaseFast() {
|
816
593
|
newValue = oldValue + _this.options.step * 10;
|
817
594
|
},
|
818
595
|
min: function min() {
|
@@ -824,7 +601,6 @@ function (_Plugin) {
|
|
824
601
|
handled: function handled() {
|
825
602
|
// only set handle pos when event was handled specially
|
826
603
|
e.preventDefault();
|
827
|
-
|
828
604
|
_this._setHandlePos(_$handle, newValue);
|
829
605
|
}
|
830
606
|
});
|
@@ -834,10 +610,10 @@ function (_Plugin) {
|
|
834
610
|
}*/
|
835
611
|
});
|
836
612
|
}
|
613
|
+
|
837
614
|
/**
|
838
615
|
* Destroys the slider plugin.
|
839
616
|
*/
|
840
|
-
|
841
617
|
}, {
|
842
618
|
key: "_destroy",
|
843
619
|
value: function _destroy() {
|
@@ -847,10 +623,7 @@ function (_Plugin) {
|
|
847
623
|
clearTimeout(this.timeout);
|
848
624
|
}
|
849
625
|
}]);
|
850
|
-
|
851
|
-
return Slider;
|
852
|
-
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]);
|
853
|
-
|
626
|
+
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.Plugin);
|
854
627
|
Slider.defaults = {
|
855
628
|
/**
|
856
629
|
* Minimum value for the slider scale.
|
@@ -859,7 +632,6 @@ Slider.defaults = {
|
|
859
632
|
* @default 0
|
860
633
|
*/
|
861
634
|
start: 0,
|
862
|
-
|
863
635
|
/**
|
864
636
|
* Maximum value for the slider scale.
|
865
637
|
* @option
|
@@ -867,7 +639,6 @@ Slider.defaults = {
|
|
867
639
|
* @default 100
|
868
640
|
*/
|
869
641
|
end: 100,
|
870
|
-
|
871
642
|
/**
|
872
643
|
* Minimum value change per change event.
|
873
644
|
* @option
|
@@ -875,7 +646,6 @@ Slider.defaults = {
|
|
875
646
|
* @default 1
|
876
647
|
*/
|
877
648
|
step: 1,
|
878
|
-
|
879
649
|
/**
|
880
650
|
* Value at which the handle/input *(left handle/first input)* should be set to on initialization.
|
881
651
|
* @option
|
@@ -883,7 +653,6 @@ Slider.defaults = {
|
|
883
653
|
* @default 0
|
884
654
|
*/
|
885
655
|
initialStart: 0,
|
886
|
-
|
887
656
|
/**
|
888
657
|
* Value at which the right handle/second input should be set to on initialization.
|
889
658
|
* @option
|
@@ -891,7 +660,6 @@ Slider.defaults = {
|
|
891
660
|
* @default 100
|
892
661
|
*/
|
893
662
|
initialEnd: 100,
|
894
|
-
|
895
663
|
/**
|
896
664
|
* Allows the input to be located outside the container and visible. Set to by the JS
|
897
665
|
* @option
|
@@ -899,7 +667,6 @@ Slider.defaults = {
|
|
899
667
|
* @default false
|
900
668
|
*/
|
901
669
|
binding: false,
|
902
|
-
|
903
670
|
/**
|
904
671
|
* Allows the user to click/tap on the slider bar to select a value.
|
905
672
|
* @option
|
@@ -907,7 +674,6 @@ Slider.defaults = {
|
|
907
674
|
* @default true
|
908
675
|
*/
|
909
676
|
clickSelect: true,
|
910
|
-
|
911
677
|
/**
|
912
678
|
* Set to true and use the `vertical` class to change alignment to vertical.
|
913
679
|
* @option
|
@@ -915,7 +681,6 @@ Slider.defaults = {
|
|
915
681
|
* @default false
|
916
682
|
*/
|
917
683
|
vertical: false,
|
918
|
-
|
919
684
|
/**
|
920
685
|
* Allows the user to drag the slider handle(s) to select a value.
|
921
686
|
* @option
|
@@ -923,7 +688,6 @@ Slider.defaults = {
|
|
923
688
|
* @default true
|
924
689
|
*/
|
925
690
|
draggable: true,
|
926
|
-
|
927
691
|
/**
|
928
692
|
* Disables the slider and prevents event listeners from being applied. Double checked by JS with `disabledClass`.
|
929
693
|
* @option
|
@@ -931,7 +695,6 @@ Slider.defaults = {
|
|
931
695
|
* @default false
|
932
696
|
*/
|
933
697
|
disabled: false,
|
934
|
-
|
935
698
|
/**
|
936
699
|
* Allows the use of two handles. Double checked by the JS. Changes some logic handling.
|
937
700
|
* @option
|
@@ -939,12 +702,10 @@ Slider.defaults = {
|
|
939
702
|
* @default false
|
940
703
|
*/
|
941
704
|
doubleSided: false,
|
942
|
-
|
943
705
|
/**
|
944
706
|
* Potential future feature.
|
945
707
|
*/
|
946
708
|
// steps: 100,
|
947
|
-
|
948
709
|
/**
|
949
710
|
* Number of decimal places the plugin should go to for floating point precision.
|
950
711
|
* @option
|
@@ -952,12 +713,10 @@ Slider.defaults = {
|
|
952
713
|
* @default 2
|
953
714
|
*/
|
954
715
|
decimal: 2,
|
955
|
-
|
956
716
|
/**
|
957
717
|
* Time delay for dragged elements.
|
958
718
|
*/
|
959
719
|
// dragDelay: 0,
|
960
|
-
|
961
720
|
/**
|
962
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.
|
963
722
|
* @option
|
@@ -966,7 +725,6 @@ Slider.defaults = {
|
|
966
725
|
*/
|
967
726
|
moveTime: 200,
|
968
727
|
//update this if changing the transition time in the sass
|
969
|
-
|
970
728
|
/**
|
971
729
|
* Class applied to disabled sliders.
|
972
730
|
* @option
|
@@ -974,7 +732,6 @@ Slider.defaults = {
|
|
974
732
|
* @default 'disabled'
|
975
733
|
*/
|
976
734
|
disabledClass: 'disabled',
|
977
|
-
|
978
735
|
/**
|
979
736
|
* Will invert the default layout for a vertical<span data-tooltip title="who would do this???"> </span>slider.
|
980
737
|
* @option
|
@@ -982,7 +739,6 @@ Slider.defaults = {
|
|
982
739
|
* @default false
|
983
740
|
*/
|
984
741
|
invertVertical: false,
|
985
|
-
|
986
742
|
/**
|
987
743
|
* Milliseconds before the `changed.zf-slider` event is triggered after value change.
|
988
744
|
* @option
|
@@ -990,7 +746,6 @@ Slider.defaults = {
|
|
990
746
|
* @default 500
|
991
747
|
*/
|
992
748
|
changedDelay: 500,
|
993
|
-
|
994
749
|
/**
|
995
750
|
* Basevalue for non-linear sliders
|
996
751
|
* @option
|
@@ -998,7 +753,6 @@ Slider.defaults = {
|
|
998
753
|
* @default 5
|
999
754
|
*/
|
1000
755
|
nonLinearBase: 5,
|
1001
|
-
|
1002
756
|
/**
|
1003
757
|
* Basevalue for non-linear sliders, possible values are: `'linear'`, `'pow'` & `'log'`. Pow and Log use the nonLinearBase setting.
|
1004
758
|
* @option
|
@@ -1007,65 +761,53 @@ Slider.defaults = {
|
|
1007
761
|
*/
|
1008
762
|
positionValueFunction: 'linear'
|
1009
763
|
};
|
1010
|
-
|
1011
764
|
function percent(frac, num) {
|
1012
765
|
return frac / num;
|
1013
766
|
}
|
1014
|
-
|
1015
767
|
function absPosition($handle, dir, clickPos, param) {
|
1016
768
|
return Math.abs($handle.position()[dir] + $handle[param]() / 2 - clickPos);
|
1017
769
|
}
|
1018
|
-
|
1019
770
|
function baseLog(base, value) {
|
1020
771
|
return Math.log(value) / Math.log(base);
|
1021
772
|
}
|
1022
773
|
|
1023
774
|
|
1024
|
-
|
1025
775
|
/***/ }),
|
1026
776
|
|
1027
777
|
/***/ "./js/foundation.util.triggers.js":
|
1028
778
|
/*!****************************************!*\
|
1029
779
|
!*** ./js/foundation.util.triggers.js ***!
|
1030
780
|
\****************************************/
|
1031
|
-
|
1032
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
781
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1033
782
|
|
1034
|
-
"use strict";
|
1035
783
|
__webpack_require__.r(__webpack_exports__);
|
1036
|
-
/* harmony export
|
784
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
785
|
+
/* harmony export */ Triggers: function() { return /* binding */ Triggers; }
|
786
|
+
/* harmony export */ });
|
1037
787
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
1038
788
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
1039
789
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
1040
790
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
|
1041
791
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
1042
792
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
1043
|
-
|
1044
|
-
|
1045
|
-
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); }
|
1046
|
-
|
1047
|
-
|
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); }
|
1048
794
|
|
1049
795
|
|
1050
796
|
|
1051
797
|
var MutationObserver = function () {
|
1052
798
|
var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
|
1053
|
-
|
1054
799
|
for (var i = 0; i < prefixes.length; i++) {
|
1055
800
|
if ("".concat(prefixes[i], "MutationObserver") in window) {
|
1056
801
|
return window["".concat(prefixes[i], "MutationObserver")];
|
1057
802
|
}
|
1058
803
|
}
|
1059
|
-
|
1060
804
|
return false;
|
1061
805
|
}();
|
1062
|
-
|
1063
806
|
var triggers = function triggers(el, type) {
|
1064
807
|
el.data(type).split(' ').forEach(function (id) {
|
1065
808
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
|
1066
809
|
});
|
1067
810
|
};
|
1068
|
-
|
1069
811
|
var Triggers = {
|
1070
812
|
Listeners: {
|
1071
813
|
Basic: {},
|
@@ -1079,7 +821,6 @@ Triggers.Listeners.Basic = {
|
|
1079
821
|
},
|
1080
822
|
closeListener: function closeListener() {
|
1081
823
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
|
1082
|
-
|
1083
824
|
if (id) {
|
1084
825
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
|
1085
826
|
} else {
|
@@ -1088,7 +829,6 @@ Triggers.Listeners.Basic = {
|
|
1088
829
|
},
|
1089
830
|
toggleListener: function toggleListener() {
|
1090
831
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
|
1091
|
-
|
1092
832
|
if (id) {
|
1093
833
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
|
1094
834
|
} else {
|
@@ -1096,12 +836,12 @@ Triggers.Listeners.Basic = {
|
|
1096
836
|
}
|
1097
837
|
},
|
1098
838
|
closeableListener: function closeableListener(e) {
|
1099
|
-
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
839
|
+
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
1100
840
|
|
841
|
+
// Only close the first closable element. See https://git.io/zf-7833
|
1101
842
|
e.stopPropagation();
|
1102
|
-
|
1103
843
|
if (animation !== '') {
|
1104
|
-
_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 () {
|
1105
845
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
|
1106
846
|
});
|
1107
847
|
} else {
|
@@ -1112,39 +852,40 @@ Triggers.Listeners.Basic = {
|
|
1112
852
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
|
1113
853
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
|
1114
854
|
}
|
1115
|
-
};
|
855
|
+
};
|
1116
856
|
|
857
|
+
// Elements with [data-open] will reveal a plugin that supports it when clicked.
|
1117
858
|
Triggers.Initializers.addOpenListener = function ($elem) {
|
1118
859
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
|
1119
860
|
$elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
|
1120
|
-
};
|
1121
|
-
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1122
|
-
|
861
|
+
};
|
1123
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.
|
1124
865
|
Triggers.Initializers.addCloseListener = function ($elem) {
|
1125
866
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
|
1126
867
|
$elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
|
1127
|
-
};
|
1128
|
-
|
868
|
+
};
|
1129
869
|
|
870
|
+
// Elements with [data-toggle] will toggle a plugin that supports it when clicked.
|
1130
871
|
Triggers.Initializers.addToggleListener = function ($elem) {
|
1131
872
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
|
1132
873
|
$elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
|
1133
|
-
};
|
1134
|
-
|
874
|
+
};
|
1135
875
|
|
876
|
+
// Elements with [data-closable] will respond to close.zf.trigger events.
|
1136
877
|
Triggers.Initializers.addCloseableListener = function ($elem) {
|
1137
878
|
$elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
|
1138
879
|
$elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
|
1139
|
-
};
|
1140
|
-
|
880
|
+
};
|
1141
881
|
|
882
|
+
// Elements with [data-toggle-focus] will respond to coming in and out of focus
|
1142
883
|
Triggers.Initializers.addToggleFocusListener = function ($elem) {
|
1143
884
|
$elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
|
1144
885
|
$elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
|
1145
|
-
};
|
1146
|
-
|
886
|
+
};
|
1147
887
|
|
888
|
+
// More Global/complex listeners and triggers
|
1148
889
|
Triggers.Listeners.Global = {
|
1149
890
|
resizeListener: function resizeListener($nodes) {
|
1150
891
|
if (!MutationObserver) {
|
@@ -1152,9 +893,8 @@ Triggers.Listeners.Global = {
|
|
1152
893
|
$nodes.each(function () {
|
1153
894
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
|
1154
895
|
});
|
1155
|
-
}
|
1156
|
-
|
1157
|
-
|
896
|
+
}
|
897
|
+
//trigger all listening elements and signal a resize event
|
1158
898
|
$nodes.attr('data-events', "resize");
|
1159
899
|
},
|
1160
900
|
scrollListener: function scrollListener($nodes) {
|
@@ -1163,9 +903,8 @@ Triggers.Listeners.Global = {
|
|
1163
903
|
$nodes.each(function () {
|
1164
904
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
|
1165
905
|
});
|
1166
|
-
}
|
1167
|
-
|
1168
|
-
|
906
|
+
}
|
907
|
+
//trigger all listening elements and signal a scroll event
|
1169
908
|
$nodes.attr('data-events', "scroll");
|
1170
909
|
},
|
1171
910
|
closeMeListener: function closeMeListener(e, pluginId) {
|
@@ -1173,17 +912,15 @@ Triggers.Listeners.Global = {
|
|
1173
912
|
var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
|
1174
913
|
plugins.each(function () {
|
1175
914
|
var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
1176
|
-
|
1177
915
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
1178
916
|
});
|
1179
|
-
}
|
1180
|
-
|
917
|
+
}
|
1181
918
|
};
|
1182
919
|
|
920
|
+
// Global, parses whole document.
|
1183
921
|
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
1184
922
|
var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
|
1185
|
-
|
1186
|
-
|
923
|
+
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
1187
924
|
if (pluginName) {
|
1188
925
|
if (typeof pluginName === 'string') {
|
1189
926
|
plugNames.push(pluginName);
|
@@ -1193,7 +930,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1193
930
|
console.error('Plugin names must be strings');
|
1194
931
|
}
|
1195
932
|
}
|
1196
|
-
|
1197
933
|
if (yetiBoxes.length) {
|
1198
934
|
var listeners = plugNames.map(function (name) {
|
1199
935
|
return "closeme.zf.".concat(name);
|
@@ -1201,75 +937,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1201
937
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
|
1202
938
|
}
|
1203
939
|
};
|
1204
|
-
|
1205
940
|
function debounceGlobalListener(debounce, trigger, listener) {
|
1206
941
|
var timer,
|
1207
|
-
|
1208
|
-
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 () {
|
1209
944
|
if (timer) {
|
1210
945
|
clearTimeout(timer);
|
1211
946
|
}
|
1212
|
-
|
1213
947
|
timer = setTimeout(function () {
|
1214
948
|
listener.apply(null, args);
|
1215
949
|
}, debounce || 10); //default time to emit scroll event
|
1216
950
|
});
|
1217
951
|
}
|
1218
|
-
|
1219
952
|
Triggers.Initializers.addResizeListener = function (debounce) {
|
1220
953
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
|
1221
|
-
|
1222
954
|
if ($nodes.length) {
|
1223
955
|
debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
|
1224
956
|
}
|
1225
957
|
};
|
1226
|
-
|
1227
958
|
Triggers.Initializers.addScrollListener = function (debounce) {
|
1228
959
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
|
1229
|
-
|
1230
960
|
if ($nodes.length) {
|
1231
961
|
debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
|
1232
962
|
}
|
1233
963
|
};
|
1234
|
-
|
1235
964
|
Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
1236
965
|
if (!MutationObserver) {
|
1237
966
|
return false;
|
1238
967
|
}
|
968
|
+
var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
|
1239
969
|
|
1240
|
-
|
1241
|
-
|
970
|
+
//element callback
|
1242
971
|
var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
|
1243
|
-
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
972
|
+
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
1244
973
|
|
974
|
+
//trigger the event handler for the element depending on type
|
1245
975
|
switch (mutationRecordsList[0].type) {
|
1246
976
|
case "attributes":
|
1247
977
|
if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
|
1248
978
|
$target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
|
1249
979
|
}
|
1250
|
-
|
1251
980
|
if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
|
1252
981
|
$target.triggerHandler('resizeme.zf.trigger', [$target]);
|
1253
982
|
}
|
1254
|
-
|
1255
983
|
if (mutationRecordsList[0].attributeName === "style") {
|
1256
984
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1257
985
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1258
986
|
}
|
1259
|
-
|
1260
987
|
break;
|
1261
|
-
|
1262
988
|
case "childList":
|
1263
989
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1264
990
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1265
991
|
break;
|
1266
|
-
|
1267
992
|
default:
|
1268
993
|
return false;
|
1269
994
|
//nothing
|
1270
995
|
}
|
1271
996
|
};
|
1272
|
-
|
1273
997
|
if ($nodes.length) {
|
1274
998
|
//for each element that needs to listen for resizing, scrolling, or mutation add a single observer
|
1275
999
|
for (var i = 0; i <= $nodes.length - 1; i++) {
|
@@ -1284,7 +1008,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
|
1284
1008
|
}
|
1285
1009
|
}
|
1286
1010
|
};
|
1287
|
-
|
1288
1011
|
Triggers.Initializers.addSimpleListeners = function () {
|
1289
1012
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1290
1013
|
Triggers.Initializers.addOpenListener($document);
|
@@ -1293,44 +1016,68 @@ Triggers.Initializers.addSimpleListeners = function () {
|
|
1293
1016
|
Triggers.Initializers.addCloseableListener($document);
|
1294
1017
|
Triggers.Initializers.addToggleFocusListener($document);
|
1295
1018
|
};
|
1296
|
-
|
1297
1019
|
Triggers.Initializers.addGlobalListeners = function () {
|
1298
1020
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1299
1021
|
Triggers.Initializers.addMutationEventsListener($document);
|
1300
|
-
Triggers.Initializers.addResizeListener();
|
1022
|
+
Triggers.Initializers.addResizeListener(250);
|
1301
1023
|
Triggers.Initializers.addScrollListener();
|
1302
1024
|
Triggers.Initializers.addClosemeListener();
|
1303
1025
|
};
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
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) {
|
1308
1029
|
Triggers.Initializers.addSimpleListeners();
|
1309
1030
|
Triggers.Initializers.addGlobalListeners();
|
1310
|
-
|
1031
|
+
(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
|
1311
1032
|
}
|
1312
1033
|
});
|
1313
|
-
|
1314
1034
|
if (Foundation) {
|
1315
|
-
Foundation.Triggers = Triggers;
|
1316
|
-
|
1035
|
+
Foundation.Triggers = Triggers;
|
1036
|
+
// Legacy included to be backwards compatible for now.
|
1317
1037
|
Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
|
1318
1038
|
}
|
1319
1039
|
};
|
1320
1040
|
|
1321
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__;
|
1322
1061
|
|
1323
1062
|
/***/ }),
|
1324
1063
|
|
1325
|
-
/***/
|
1326
|
-
|
1327
|
-
!***
|
1328
|
-
|
1329
|
-
|
1330
|
-
/***/ (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) {
|
1331
1069
|
|
1332
|
-
module.exports =
|
1070
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
1333
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__;
|
1334
1081
|
|
1335
1082
|
/***/ }),
|
1336
1083
|
|
@@ -1338,13 +1085,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
|
|
1338
1085
|
/*!********************************************************************************************!*\
|
1339
1086
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
1340
1087
|
\********************************************************************************************/
|
1341
|
-
|
1342
|
-
/***/ (function(module, exports) {
|
1088
|
+
/***/ (function(module) {
|
1343
1089
|
|
1344
1090
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
1345
1091
|
|
1346
1092
|
/***/ })
|
1347
1093
|
|
1348
|
-
/******/
|
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
|
+
;
|
1349
1184
|
});
|
1350
1185
|
//# sourceMappingURL=foundation.slider.js.map
|