foundation-rails 6.4.1.0 → 6.4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Rakefile +5 -6
- data/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/js/foundation.abide.js +781 -0
- data/vendor/assets/js/foundation.accordion.js +511 -0
- data/vendor/assets/js/foundation.accordionMenu.js +527 -0
- data/vendor/assets/js/foundation.core.js +860 -0
- data/vendor/assets/js/foundation.drilldown.js +759 -0
- data/vendor/assets/js/foundation.dropdown.js +1131 -0
- data/vendor/assets/js/foundation.dropdownMenu.js +678 -0
- data/vendor/assets/js/foundation.equalizer.js +542 -0
- data/vendor/assets/js/foundation.interchange.js +399 -0
- data/vendor/assets/js/{foundation.js.es6 → foundation.js} +11 -12
- data/vendor/assets/js/foundation.magellan.js +449 -0
- data/vendor/assets/js/foundation.offcanvas.js +1052 -0
- data/vendor/assets/js/foundation.orbit.js +767 -0
- data/vendor/assets/js/foundation.responsiveAccordionTabs.js +440 -0
- data/vendor/assets/js/foundation.responsiveMenu.js +362 -0
- data/vendor/assets/js/foundation.responsiveToggle.js +336 -0
- data/vendor/assets/js/foundation.reveal.js +1066 -0
- data/vendor/assets/js/foundation.slider.js +1236 -0
- data/vendor/assets/js/foundation.smoothScroll.js +303 -0
- data/vendor/assets/js/foundation.sticky.js +1001 -0
- data/vendor/assets/js/foundation.tabs.js +678 -0
- data/vendor/assets/js/foundation.toggler.js +602 -0
- data/vendor/assets/js/foundation.tooltip.js +1195 -0
- data/vendor/assets/js/{foundation.util.box.js.es6 → foundation.util.box.js} +154 -41
- data/vendor/assets/js/foundation.util.imageLoader.js +163 -0
- data/vendor/assets/js/foundation.util.keyboard.js +298 -0
- data/vendor/assets/js/foundation.util.mediaQuery.js +353 -0
- data/vendor/assets/js/foundation.util.motion.js +231 -0
- data/vendor/assets/js/foundation.util.nest.js +181 -0
- data/vendor/assets/js/foundation.util.timer.js +170 -0
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +90 -0
- data/vendor/assets/js/foundation.util.touch.js +275 -0
- data/vendor/assets/js/foundation.util.triggers.js +399 -0
- data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js +262 -0
- metadata +37 -71
- data/vendor/assets/js/entries/foundation-plugins.js +0 -25
- data/vendor/assets/js/entries/foundation.js +0 -101
- data/vendor/assets/js/entries/plugins/foundation.abide.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.accordion.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.accordionMenu.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.core.js +0 -21
- data/vendor/assets/js/entries/plugins/foundation.drilldown.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.dropdown.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.dropdownMenu.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.equalizer.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.interchange.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.magellan.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.offcanvas.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.orbit.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveAccordionTabs.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveMenu.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveToggle.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.reveal.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.slider.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.smoothScroll.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.sticky.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.tabs.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.toggler.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.tooltip.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.box.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.imageLoader.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.keyboard.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.mediaQuery.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.motion.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.nest.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.timer.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.touch.js +0 -7
- data/vendor/assets/js/entries/plugins/foundation.util.triggers.js +0 -5
- data/vendor/assets/js/foundation.abide.js.es6 +0 -587
- data/vendor/assets/js/foundation.accordion.js.es6 +0 -329
- data/vendor/assets/js/foundation.accordionMenu.js.es6 +0 -328
- data/vendor/assets/js/foundation.core.js.es6 +0 -337
- data/vendor/assets/js/foundation.drilldown.js.es6 +0 -536
- data/vendor/assets/js/foundation.dropdown.js.es6 +0 -394
- data/vendor/assets/js/foundation.dropdownMenu.js.es6 +0 -458
- data/vendor/assets/js/foundation.equalizer.js.es6 +0 -318
- data/vendor/assets/js/foundation.interchange.js.es6 +0 -210
- data/vendor/assets/js/foundation.magellan.js.es6 +0 -257
- data/vendor/assets/js/foundation.offcanvas.js.es6 +0 -546
- data/vendor/assets/js/foundation.orbit.js.es6 +0 -531
- data/vendor/assets/js/foundation.plugin.js.es6 +0 -54
- data/vendor/assets/js/foundation.positionable.js.es6 +0 -206
- data/vendor/assets/js/foundation.responsiveAccordionTabs.js.es6 +0 -243
- data/vendor/assets/js/foundation.responsiveMenu.js.es6 +0 -155
- data/vendor/assets/js/foundation.responsiveToggle.js.es6 +0 -156
- data/vendor/assets/js/foundation.reveal.js.es6 +0 -585
- data/vendor/assets/js/foundation.slider.js.es6 +0 -712
- data/vendor/assets/js/foundation.smoothScroll.js.es6 +0 -135
- data/vendor/assets/js/foundation.sticky.js.es6 +0 -507
- data/vendor/assets/js/foundation.tabs.js.es6 +0 -498
- data/vendor/assets/js/foundation.toggler.js.es6 +0 -150
- data/vendor/assets/js/foundation.tooltip.js.es6 +0 -462
- data/vendor/assets/js/foundation.util.core.js.es6 +0 -52
- data/vendor/assets/js/foundation.util.imageLoader.js.es6 +0 -45
- data/vendor/assets/js/foundation.util.keyboard.js.es6 +0 -162
- data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +0 -234
- data/vendor/assets/js/foundation.util.motion.js.es6 +0 -104
- data/vendor/assets/js/foundation.util.nest.js.es6 +0 -67
- data/vendor/assets/js/foundation.util.timer.js.es6 +0 -48
- data/vendor/assets/js/foundation.util.touch.js.es6 +0 -149
- data/vendor/assets/js/foundation.util.triggers.js.es6 +0 -268
@@ -0,0 +1,231 @@
|
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // identity function for calling harmony imports with the correct context
|
37
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
38
|
+
/******/
|
39
|
+
/******/ // define getter function for harmony exports
|
40
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
41
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
42
|
+
/******/ Object.defineProperty(exports, name, {
|
43
|
+
/******/ configurable: false,
|
44
|
+
/******/ enumerable: true,
|
45
|
+
/******/ get: getter
|
46
|
+
/******/ });
|
47
|
+
/******/ }
|
48
|
+
/******/ };
|
49
|
+
/******/
|
50
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
51
|
+
/******/ __webpack_require__.n = function(module) {
|
52
|
+
/******/ var getter = module && module.__esModule ?
|
53
|
+
/******/ function getDefault() { return module['default']; } :
|
54
|
+
/******/ function getModuleExports() { return module; };
|
55
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
56
|
+
/******/ return getter;
|
57
|
+
/******/ };
|
58
|
+
/******/
|
59
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
60
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
61
|
+
/******/
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
/******/
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(__webpack_require__.s = 104);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ({
|
70
|
+
|
71
|
+
/***/ 0:
|
72
|
+
/***/ (function(module, exports) {
|
73
|
+
|
74
|
+
module.exports = jQuery;
|
75
|
+
|
76
|
+
/***/ }),
|
77
|
+
|
78
|
+
/***/ 1:
|
79
|
+
/***/ (function(module, exports) {
|
80
|
+
|
81
|
+
module.exports = {Foundation: window.Foundation};
|
82
|
+
|
83
|
+
/***/ }),
|
84
|
+
|
85
|
+
/***/ 104:
|
86
|
+
/***/ (function(module, exports, __webpack_require__) {
|
87
|
+
|
88
|
+
module.exports = __webpack_require__(38);
|
89
|
+
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 3:
|
94
|
+
/***/ (function(module, exports) {
|
95
|
+
|
96
|
+
module.exports = {rtl: window.Foundation.rtl, GetYoDigits: window.Foundation.GetYoDigits, transitionend: window.Foundation.transitionend};
|
97
|
+
|
98
|
+
/***/ }),
|
99
|
+
|
100
|
+
/***/ 38:
|
101
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
102
|
+
|
103
|
+
"use strict";
|
104
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
105
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
|
106
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
|
107
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__ = __webpack_require__(68);
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Motion = __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__["a" /* Motion */];
|
112
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Move = __WEBPACK_IMPORTED_MODULE_1__foundation_util_motion__["b" /* Move */];
|
113
|
+
|
114
|
+
/***/ }),
|
115
|
+
|
116
|
+
/***/ 68:
|
117
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
118
|
+
|
119
|
+
"use strict";
|
120
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Move; });
|
121
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Motion; });
|
122
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
|
123
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
|
124
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core__ = __webpack_require__(3);
|
125
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__);
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Motion module.
|
133
|
+
* @module foundation.motion
|
134
|
+
*/
|
135
|
+
|
136
|
+
var initClasses = ['mui-enter', 'mui-leave'];
|
137
|
+
var activeClasses = ['mui-enter-active', 'mui-leave-active'];
|
138
|
+
|
139
|
+
var Motion = {
|
140
|
+
animateIn: function (element, animation, cb) {
|
141
|
+
animate(true, element, animation, cb);
|
142
|
+
},
|
143
|
+
|
144
|
+
animateOut: function (element, animation, cb) {
|
145
|
+
animate(false, element, animation, cb);
|
146
|
+
}
|
147
|
+
};
|
148
|
+
|
149
|
+
function Move(duration, elem, fn) {
|
150
|
+
var anim,
|
151
|
+
prog,
|
152
|
+
start = null;
|
153
|
+
// console.log('called');
|
154
|
+
|
155
|
+
if (duration === 0) {
|
156
|
+
fn.apply(elem);
|
157
|
+
elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]);
|
158
|
+
return;
|
159
|
+
}
|
160
|
+
|
161
|
+
function move(ts) {
|
162
|
+
if (!start) start = ts;
|
163
|
+
// console.log(start, ts);
|
164
|
+
prog = ts - start;
|
165
|
+
fn.apply(elem);
|
166
|
+
|
167
|
+
if (prog < duration) {
|
168
|
+
anim = window.requestAnimationFrame(move, elem);
|
169
|
+
} else {
|
170
|
+
window.cancelAnimationFrame(anim);
|
171
|
+
elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
anim = window.requestAnimationFrame(move);
|
175
|
+
}
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Animates an element in or out using a CSS transition class.
|
179
|
+
* @function
|
180
|
+
* @private
|
181
|
+
* @param {Boolean} isIn - Defines if the animation is in or out.
|
182
|
+
* @param {Object} element - jQuery or HTML object to animate.
|
183
|
+
* @param {String} animation - CSS class to use.
|
184
|
+
* @param {Function} cb - Callback to run when animation is finished.
|
185
|
+
*/
|
186
|
+
function animate(isIn, element, animation, cb) {
|
187
|
+
element = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).eq(0);
|
188
|
+
|
189
|
+
if (!element.length) return;
|
190
|
+
|
191
|
+
var initClass = isIn ? initClasses[0] : initClasses[1];
|
192
|
+
var activeClass = isIn ? activeClasses[0] : activeClasses[1];
|
193
|
+
|
194
|
+
// Set up the animation
|
195
|
+
reset();
|
196
|
+
|
197
|
+
element.addClass(animation).css('transition', 'none');
|
198
|
+
|
199
|
+
requestAnimationFrame(function () {
|
200
|
+
element.addClass(initClass);
|
201
|
+
if (isIn) element.show();
|
202
|
+
});
|
203
|
+
|
204
|
+
// Start the animation
|
205
|
+
requestAnimationFrame(function () {
|
206
|
+
element[0].offsetWidth;
|
207
|
+
element.css('transition', '').addClass(activeClass);
|
208
|
+
});
|
209
|
+
|
210
|
+
// Clean up the animation when it finishes
|
211
|
+
element.one(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__["transitionend"])(element), finish);
|
212
|
+
|
213
|
+
// Hides the element (for out animations), resets the element, and runs a callback
|
214
|
+
function finish() {
|
215
|
+
if (!isIn) element.hide();
|
216
|
+
reset();
|
217
|
+
if (cb) cb.apply(element);
|
218
|
+
}
|
219
|
+
|
220
|
+
// Resets transitions and removes motion-specific classes
|
221
|
+
function reset() {
|
222
|
+
element[0].style.transitionDuration = 0;
|
223
|
+
element.removeClass(initClass + ' ' + activeClass + ' ' + animation);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
/***/ })
|
230
|
+
|
231
|
+
/******/ });
|
@@ -0,0 +1,181 @@
|
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // identity function for calling harmony imports with the correct context
|
37
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
38
|
+
/******/
|
39
|
+
/******/ // define getter function for harmony exports
|
40
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
41
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
42
|
+
/******/ Object.defineProperty(exports, name, {
|
43
|
+
/******/ configurable: false,
|
44
|
+
/******/ enumerable: true,
|
45
|
+
/******/ get: getter
|
46
|
+
/******/ });
|
47
|
+
/******/ }
|
48
|
+
/******/ };
|
49
|
+
/******/
|
50
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
51
|
+
/******/ __webpack_require__.n = function(module) {
|
52
|
+
/******/ var getter = module && module.__esModule ?
|
53
|
+
/******/ function getDefault() { return module['default']; } :
|
54
|
+
/******/ function getModuleExports() { return module; };
|
55
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
56
|
+
/******/ return getter;
|
57
|
+
/******/ };
|
58
|
+
/******/
|
59
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
60
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
61
|
+
/******/
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
/******/
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(__webpack_require__.s = 105);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ({
|
70
|
+
|
71
|
+
/***/ 0:
|
72
|
+
/***/ (function(module, exports) {
|
73
|
+
|
74
|
+
module.exports = jQuery;
|
75
|
+
|
76
|
+
/***/ }),
|
77
|
+
|
78
|
+
/***/ 1:
|
79
|
+
/***/ (function(module, exports) {
|
80
|
+
|
81
|
+
module.exports = {Foundation: window.Foundation};
|
82
|
+
|
83
|
+
/***/ }),
|
84
|
+
|
85
|
+
/***/ 105:
|
86
|
+
/***/ (function(module, exports, __webpack_require__) {
|
87
|
+
|
88
|
+
module.exports = __webpack_require__(39);
|
89
|
+
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 39:
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
|
+
|
96
|
+
"use strict";
|
97
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
98
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
|
99
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
|
100
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_nest__ = __webpack_require__(69);
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Nest = __WEBPACK_IMPORTED_MODULE_1__foundation_util_nest__["a" /* Nest */];
|
106
|
+
|
107
|
+
/***/ }),
|
108
|
+
|
109
|
+
/***/ 69:
|
110
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
111
|
+
|
112
|
+
"use strict";
|
113
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Nest; });
|
114
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
|
115
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
var Nest = {
|
121
|
+
Feather: function (menu) {
|
122
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zf';
|
123
|
+
|
124
|
+
menu.attr('role', 'menubar');
|
125
|
+
|
126
|
+
var items = menu.find('li').attr({ 'role': 'menuitem' }),
|
127
|
+
subMenuClass = 'is-' + type + '-submenu',
|
128
|
+
subItemClass = subMenuClass + '-item',
|
129
|
+
hasSubClass = 'is-' + type + '-submenu-parent',
|
130
|
+
applyAria = type !== 'accordion'; // Accordions handle their own ARIA attriutes.
|
131
|
+
|
132
|
+
items.each(function () {
|
133
|
+
var $item = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this),
|
134
|
+
$sub = $item.children('ul');
|
135
|
+
|
136
|
+
if ($sub.length) {
|
137
|
+
$item.addClass(hasSubClass);
|
138
|
+
$sub.addClass('submenu ' + subMenuClass).attr({ 'data-submenu': '' });
|
139
|
+
if (applyAria) {
|
140
|
+
$item.attr({
|
141
|
+
'aria-haspopup': true,
|
142
|
+
'aria-label': $item.children('a:first').text()
|
143
|
+
});
|
144
|
+
// Note: Drilldowns behave differently in how they hide, and so need
|
145
|
+
// additional attributes. We should look if this possibly over-generalized
|
146
|
+
// utility (Nest) is appropriate when we rework menus in 6.4
|
147
|
+
if (type === 'drilldown') {
|
148
|
+
$item.attr({ 'aria-expanded': false });
|
149
|
+
}
|
150
|
+
}
|
151
|
+
$sub.addClass('submenu ' + subMenuClass).attr({
|
152
|
+
'data-submenu': '',
|
153
|
+
'role': 'menu'
|
154
|
+
});
|
155
|
+
if (type === 'drilldown') {
|
156
|
+
$sub.attr({ 'aria-hidden': true });
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
if ($item.parent('[data-submenu]').length) {
|
161
|
+
$item.addClass('is-submenu-item ' + subItemClass);
|
162
|
+
}
|
163
|
+
});
|
164
|
+
|
165
|
+
return;
|
166
|
+
},
|
167
|
+
Burn: function (menu, type) {
|
168
|
+
var //items = menu.find('li'),
|
169
|
+
subMenuClass = 'is-' + type + '-submenu',
|
170
|
+
subItemClass = subMenuClass + '-item',
|
171
|
+
hasSubClass = 'is-' + type + '-submenu-parent';
|
172
|
+
|
173
|
+
menu.find('>li, .menu, .menu > li').removeClass(subMenuClass + ' ' + subItemClass + ' ' + hasSubClass + ' is-submenu-item submenu is-active').removeAttr('data-submenu').css('display', '');
|
174
|
+
}
|
175
|
+
};
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
/***/ })
|
180
|
+
|
181
|
+
/******/ });
|
@@ -0,0 +1,170 @@
|
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // identity function for calling harmony imports with the correct context
|
37
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
38
|
+
/******/
|
39
|
+
/******/ // define getter function for harmony exports
|
40
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
41
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
42
|
+
/******/ Object.defineProperty(exports, name, {
|
43
|
+
/******/ configurable: false,
|
44
|
+
/******/ enumerable: true,
|
45
|
+
/******/ get: getter
|
46
|
+
/******/ });
|
47
|
+
/******/ }
|
48
|
+
/******/ };
|
49
|
+
/******/
|
50
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
51
|
+
/******/ __webpack_require__.n = function(module) {
|
52
|
+
/******/ var getter = module && module.__esModule ?
|
53
|
+
/******/ function getDefault() { return module['default']; } :
|
54
|
+
/******/ function getModuleExports() { return module; };
|
55
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
56
|
+
/******/ return getter;
|
57
|
+
/******/ };
|
58
|
+
/******/
|
59
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
60
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
61
|
+
/******/
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
/******/
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(__webpack_require__.s = 106);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ({
|
70
|
+
|
71
|
+
/***/ 0:
|
72
|
+
/***/ (function(module, exports) {
|
73
|
+
|
74
|
+
module.exports = jQuery;
|
75
|
+
|
76
|
+
/***/ }),
|
77
|
+
|
78
|
+
/***/ 1:
|
79
|
+
/***/ (function(module, exports) {
|
80
|
+
|
81
|
+
module.exports = {Foundation: window.Foundation};
|
82
|
+
|
83
|
+
/***/ }),
|
84
|
+
|
85
|
+
/***/ 106:
|
86
|
+
/***/ (function(module, exports, __webpack_require__) {
|
87
|
+
|
88
|
+
module.exports = __webpack_require__(40);
|
89
|
+
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 40:
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
|
+
|
96
|
+
"use strict";
|
97
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
98
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
|
99
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
|
100
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_timer__ = __webpack_require__(70);
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Timer = __WEBPACK_IMPORTED_MODULE_1__foundation_util_timer__["a" /* Timer */];
|
106
|
+
|
107
|
+
/***/ }),
|
108
|
+
|
109
|
+
/***/ 70:
|
110
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
111
|
+
|
112
|
+
"use strict";
|
113
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Timer; });
|
114
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
|
115
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
function Timer(elem, options, cb) {
|
121
|
+
var _this = this,
|
122
|
+
duration = options.duration,
|
123
|
+
//options is an object for easily adding features later.
|
124
|
+
nameSpace = Object.keys(elem.data())[0] || 'timer',
|
125
|
+
remain = -1,
|
126
|
+
start,
|
127
|
+
timer;
|
128
|
+
|
129
|
+
this.isPaused = false;
|
130
|
+
|
131
|
+
this.restart = function () {
|
132
|
+
remain = -1;
|
133
|
+
clearTimeout(timer);
|
134
|
+
this.start();
|
135
|
+
};
|
136
|
+
|
137
|
+
this.start = function () {
|
138
|
+
this.isPaused = false;
|
139
|
+
// if(!elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.
|
140
|
+
clearTimeout(timer);
|
141
|
+
remain = remain <= 0 ? duration : remain;
|
142
|
+
elem.data('paused', false);
|
143
|
+
start = Date.now();
|
144
|
+
timer = setTimeout(function () {
|
145
|
+
if (options.infinite) {
|
146
|
+
_this.restart(); //rerun the timer.
|
147
|
+
}
|
148
|
+
if (cb && typeof cb === 'function') {
|
149
|
+
cb();
|
150
|
+
}
|
151
|
+
}, remain);
|
152
|
+
elem.trigger('timerstart.zf.' + nameSpace);
|
153
|
+
};
|
154
|
+
|
155
|
+
this.pause = function () {
|
156
|
+
this.isPaused = true;
|
157
|
+
//if(elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.
|
158
|
+
clearTimeout(timer);
|
159
|
+
elem.data('paused', true);
|
160
|
+
var end = Date.now();
|
161
|
+
remain = remain - (end - start);
|
162
|
+
elem.trigger('timerpaused.zf.' + nameSpace);
|
163
|
+
};
|
164
|
+
}
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
/***/ })
|
169
|
+
|
170
|
+
/******/ });
|