foundation-rails 6.6.2.0 → 6.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +198 -145
- data/bower.json +3 -3
- data/foundation-rails.gemspec +4 -4
- data/gemfiles/rails_7.1.gemfile +10 -0
- data/gemfiles/rails_7.1.gemfile.lock +261 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +32 -28
- data/vendor/assets/js/foundation.cjs.js +1996 -3162
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +385 -292
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1663 -2832
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2440 -3870
- data/vendor/assets/js/foundation.js.map +1 -1
- data/vendor/assets/js/foundation.min.js +1 -1
- data/vendor/assets/js/foundation.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.js +238 -344
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.js +197 -275
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -260
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.js +308 -447
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.js +258 -358
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.js +289 -457
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +246 -346
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.js +227 -326
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.js +225 -336
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -278
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.js +284 -444
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.js +322 -483
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.js +253 -394
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.js +275 -434
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.js +130 -186
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.js +123 -161
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.js +123 -160
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
- data/vendor/assets/scss/_global.scss +18 -5
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +1 -1
- data/vendor/assets/scss/components/_breadcrumbs.scss +2 -1
- data/vendor/assets/scss/components/_button-group.scss +13 -8
- data/vendor/assets/scss/components/_button.scss +13 -13
- data/vendor/assets/scss/components/_callout.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +5 -4
- data/vendor/assets/scss/components/_dropdown-menu.scss +1 -1
- data/vendor/assets/scss/components/_label.scss +1 -1
- data/vendor/assets/scss/components/_menu.scss +54 -19
- data/vendor/assets/scss/components/_off-canvas.scss +18 -16
- data/vendor/assets/scss/components/_orbit.scss +3 -3
- data/vendor/assets/scss/components/_pagination.scss +1 -1
- data/vendor/assets/scss/components/_progress-bar.scss +1 -1
- data/vendor/assets/scss/components/_responsive-embed.scss +1 -1
- data/vendor/assets/scss/components/_reveal.scss +8 -3
- data/vendor/assets/scss/components/_slider.scss +5 -2
- data/vendor/assets/scss/components/_switch.scss +25 -2
- data/vendor/assets/scss/components/_table.scss +8 -7
- data/vendor/assets/scss/components/_tabs.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +7 -5
- data/vendor/assets/scss/components/_visibility.scss +45 -2
- data/vendor/assets/scss/forms/_label.scss +2 -1
- data/vendor/assets/scss/forms/_progress.scss +1 -1
- data/vendor/assets/scss/forms/_range.scss +1 -1
- data/vendor/assets/scss/forms/_select.scss +5 -4
- data/vendor/assets/scss/forms/_text.scss +2 -2
- data/vendor/assets/scss/foundation.scss +1 -1
- data/vendor/assets/scss/grid/_classes.scss +1 -1
- data/vendor/assets/scss/grid/_column.scss +3 -2
- data/vendor/assets/scss/grid/_flex-grid.scss +7 -6
- data/vendor/assets/scss/grid/_gutter.scss +1 -1
- data/vendor/assets/scss/grid/_layout.scss +5 -5
- data/vendor/assets/scss/grid/_position.scss +4 -4
- data/vendor/assets/scss/grid/_row.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
- data/vendor/assets/scss/prototype/_border-none.scss +1 -1
- data/vendor/assets/scss/prototype/_font-styling.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +9 -0
- data/vendor/assets/scss/prototype/_rotate.scss +7 -5
- data/vendor/assets/scss/prototype/_separator.scss +5 -5
- data/vendor/assets/scss/prototype/_shadow.scss +1 -2
- data/vendor/assets/scss/prototype/_spacing.scss +33 -33
- data/vendor/assets/scss/prototype/_text-transformation.scss +3 -3
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_base.scss +6 -6
- data/vendor/assets/scss/typography/_helpers.scss +10 -2
- data/vendor/assets/scss/typography/_print.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +21 -18
- data/vendor/assets/scss/util/_color.scss +20 -8
- data/vendor/assets/scss/util/_direction.scss +1 -1
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +61 -9
- data/vendor/assets/scss/util/_mixins.scss +18 -14
- data/vendor/assets/scss/util/_selector.scss +1 -15
- data/vendor/assets/scss/util/_typography.scss +6 -6
- data/vendor/assets/scss/util/_unit.scss +14 -8
- data/vendor/assets/scss/util/_value.scss +3 -18
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +16 -5
- data/vendor/assets/scss/xy-grid/_classes.scss +8 -8
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +2 -2
- data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
- data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
- data/vendor/assets/scss/xy-grid/_position.scss +12 -7
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +2 -2
- metadata +21 -19
@@ -1,207 +1,50 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("./foundation.core"), require("
|
3
|
+
module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("./foundation.util.box"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.core", "
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.nest", "./foundation.util.box"], 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.nest"), require("./foundation.util.box"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.drilldown"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.
|
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 = 3);
|
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.box":
|
111
|
-
/*!********************************************************************************************************************************************************************************!*\
|
112
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***!
|
113
|
-
\********************************************************************************************************************************************************************************/
|
114
|
-
/*! no static exports found */
|
115
|
-
/***/ (function(module, exports) {
|
116
|
-
|
117
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__;
|
118
|
-
|
119
|
-
/***/ }),
|
120
|
-
|
121
|
-
/***/ "./foundation.util.keyboard":
|
122
|
-
/*!****************************************************************************************************************************************************************************************************!*\
|
123
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
124
|
-
\****************************************************************************************************************************************************************************************************/
|
125
|
-
/*! no static exports found */
|
126
|
-
/***/ (function(module, exports) {
|
127
|
-
|
128
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
129
|
-
|
130
|
-
/***/ }),
|
131
|
-
|
132
|
-
/***/ "./foundation.util.nest":
|
133
|
-
/*!************************************************************************************************************************************************************************************!*\
|
134
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***!
|
135
|
-
\************************************************************************************************************************************************************************************/
|
136
|
-
/*! no static exports found */
|
137
|
-
/***/ (function(module, exports) {
|
138
|
-
|
139
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__;
|
140
|
-
|
141
|
-
/***/ }),
|
142
|
-
|
143
|
-
/***/ "./js/entries/plugins/foundation.drilldown.js":
|
144
|
-
/*!****************************************************!*\
|
145
|
-
!*** ./js/entries/plugins/foundation.drilldown.js ***!
|
146
|
-
\****************************************************/
|
147
|
-
/*! exports provided: Foundation, Drilldown */
|
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_drilldown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.drilldown */ "./js/foundation.drilldown.js");
|
157
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Drilldown", function() { return _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__["Drilldown"]; });
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__["Drilldown"], 'Drilldown');
|
162
|
-
|
163
|
-
|
164
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.drilldown"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.nest"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__, __WEBPACK_EXTERNAL_MODULE__foundation_util_box__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
165
14
|
|
166
15
|
/***/ "./js/foundation.drilldown.js":
|
167
16
|
/*!************************************!*\
|
168
17
|
!*** ./js/foundation.drilldown.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 */ Drilldown: function() { return /* binding */ Drilldown; }
|
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_nest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.nest */ "./foundation.util.nest");
|
181
30
|
/* harmony import */ var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_nest__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_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.util.box */ "./foundation.util.box");
|
185
34
|
/* harmony import */ var _foundation_util_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_box__WEBPACK_IMPORTED_MODULE_4__);
|
186
|
-
|
187
|
-
|
188
|
-
function
|
189
|
-
|
190
|
-
function
|
191
|
-
|
192
|
-
function
|
193
|
-
|
194
|
-
function
|
195
|
-
|
196
|
-
function
|
197
|
-
|
198
|
-
function
|
199
|
-
|
200
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
201
|
-
|
202
|
-
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); }
|
203
|
-
|
204
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
35
|
+
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); }
|
36
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
37
|
+
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); } }
|
38
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
39
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
40
|
+
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); }
|
41
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
42
|
+
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); }
|
43
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
44
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
45
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
46
|
+
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); }
|
47
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
205
48
|
|
206
49
|
|
207
50
|
|
@@ -216,21 +59,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
216
59
|
* @requires foundation.util.nest
|
217
60
|
* @requires foundation.util.box
|
218
61
|
*/
|
219
|
-
|
220
|
-
var Drilldown =
|
221
|
-
/*#__PURE__*/
|
222
|
-
function (_Plugin) {
|
223
|
-
_inherits(Drilldown, _Plugin);
|
224
|
-
|
62
|
+
var Drilldown = /*#__PURE__*/function (_Plugin) {
|
225
63
|
function Drilldown() {
|
226
64
|
_classCallCheck(this, Drilldown);
|
227
|
-
|
228
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Drilldown).apply(this, arguments));
|
65
|
+
return _callSuper(this, Drilldown, arguments);
|
229
66
|
}
|
230
|
-
|
231
|
-
_createClass(Drilldown, [{
|
67
|
+
_inherits(Drilldown, _Plugin);
|
68
|
+
return _createClass(Drilldown, [{
|
232
69
|
key: "_setup",
|
233
|
-
|
70
|
+
value:
|
234
71
|
/**
|
235
72
|
* Creates a new instance of a drilldown menu.
|
236
73
|
* @class
|
@@ -238,57 +75,50 @@ function (_Plugin) {
|
|
238
75
|
* @param {jQuery} element - jQuery object to make into an accordion menu.
|
239
76
|
* @param {Object} options - Overrides to the default plugin settings.
|
240
77
|
*/
|
241
|
-
|
78
|
+
function _setup(element, options) {
|
242
79
|
this.$element = element;
|
243
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
80
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Drilldown.defaults, this.$element.data(), options);
|
244
81
|
this.className = 'Drilldown'; // ie9 back compat
|
245
82
|
|
246
83
|
this._init();
|
247
|
-
|
248
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].register('Drilldown', {
|
84
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Drilldown', {
|
249
85
|
'ENTER': 'open',
|
250
86
|
'SPACE': 'open',
|
251
87
|
'ARROW_RIGHT': 'next',
|
252
88
|
'ARROW_UP': 'up',
|
253
89
|
'ARROW_DOWN': 'down',
|
254
90
|
'ARROW_LEFT': 'previous',
|
255
|
-
'ESCAPE': 'close'
|
256
|
-
'TAB': 'down',
|
257
|
-
'SHIFT_TAB': 'up'
|
91
|
+
'ESCAPE': 'close'
|
258
92
|
});
|
259
93
|
}
|
94
|
+
|
260
95
|
/**
|
261
96
|
* Initializes the drilldown by creating jQuery collections of elements
|
262
97
|
* @private
|
263
98
|
*/
|
264
|
-
|
265
99
|
}, {
|
266
100
|
key: "_init",
|
267
101
|
value: function _init() {
|
268
|
-
_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__
|
269
|
-
|
102
|
+
_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Feather(this.$element, 'drilldown');
|
270
103
|
if (this.options.autoApplyClass) {
|
271
104
|
this.$element.addClass('drilldown');
|
272
105
|
}
|
273
|
-
|
274
106
|
this.$element.attr({
|
275
|
-
'role': 'tree',
|
276
107
|
'aria-multiselectable': false
|
277
108
|
});
|
278
109
|
this.$submenuAnchors = this.$element.find('li.is-drilldown-submenu-parent').children('a');
|
279
110
|
this.$submenus = this.$submenuAnchors.parent('li').children('[data-submenu]').attr('role', 'group');
|
280
|
-
this.$menuItems = this.$element.find('li').not('.js-drilldown-back').
|
281
|
-
// Used to set the wrapper height when the drilldown is closed/reopened from any (sub)menu
|
111
|
+
this.$menuItems = this.$element.find('li').not('.js-drilldown-back').find('a');
|
282
112
|
|
113
|
+
// Set the main menu as current by default (unless a submenu is selected)
|
114
|
+
// Used to set the wrapper height when the drilldown is closed/reopened from any (sub)menu
|
283
115
|
this.$currentMenu = this.$element;
|
284
|
-
this.$element.attr('data-mutate', this.$element.attr('data-drilldown') ||
|
285
|
-
|
116
|
+
this.$element.attr('data-mutate', this.$element.attr('data-drilldown') || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6, 'drilldown'));
|
286
117
|
this._prepareMenu();
|
287
|
-
|
288
118
|
this._registerEvents();
|
289
|
-
|
290
119
|
this._keyboardEvents();
|
291
120
|
}
|
121
|
+
|
292
122
|
/**
|
293
123
|
* prepares drilldown menu by setting attributes to links and elements
|
294
124
|
* sets a min height to prevent content jumping
|
@@ -296,67 +126,56 @@ function (_Plugin) {
|
|
296
126
|
* @private
|
297
127
|
* @function
|
298
128
|
*/
|
299
|
-
|
300
129
|
}, {
|
301
130
|
key: "_prepareMenu",
|
302
131
|
value: function _prepareMenu() {
|
303
|
-
var _this = this;
|
132
|
+
var _this = this;
|
133
|
+
// if(!this.options.holdOpen){
|
304
134
|
// this._menuLinkEvents();
|
305
135
|
// }
|
306
|
-
|
307
|
-
|
308
136
|
this.$submenuAnchors.each(function () {
|
309
137
|
var $link = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
310
138
|
var $sub = $link.parent();
|
311
|
-
|
312
139
|
if (_this.options.parentLink) {
|
313
140
|
$link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="none"></li>');
|
314
141
|
}
|
315
|
-
|
316
142
|
$link.data('savedHref', $link.attr('href')).removeAttr('href').attr('tabindex', 0);
|
317
143
|
$link.children('[data-submenu]').attr({
|
318
144
|
'aria-hidden': true,
|
319
145
|
'tabindex': 0,
|
320
146
|
'role': 'group'
|
321
147
|
});
|
322
|
-
|
323
148
|
_this._events($link);
|
324
149
|
});
|
325
150
|
this.$submenus.each(function () {
|
326
151
|
var $menu = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
|
327
|
-
|
328
|
-
|
152
|
+
$back = $menu.find('.js-drilldown-back');
|
329
153
|
if (!$back.length) {
|
330
154
|
switch (_this.options.backButtonPosition) {
|
331
155
|
case "bottom":
|
332
156
|
$menu.append(_this.options.backButton);
|
333
157
|
break;
|
334
|
-
|
335
158
|
case "top":
|
336
159
|
$menu.prepend(_this.options.backButton);
|
337
160
|
break;
|
338
|
-
|
339
161
|
default:
|
340
162
|
console.error("Unsupported backButtonPosition value '" + _this.options.backButtonPosition + "'");
|
341
163
|
}
|
342
164
|
}
|
343
|
-
|
344
165
|
_this._back($menu);
|
345
166
|
});
|
346
167
|
this.$submenus.addClass('invisible');
|
347
|
-
|
348
168
|
if (!this.options.autoHeight) {
|
349
169
|
this.$submenus.addClass('drilldown-submenu-cover-previous');
|
350
|
-
}
|
351
|
-
|
170
|
+
}
|
352
171
|
|
172
|
+
// create a wrapper on element if it doesn't exist.
|
353
173
|
if (!this.$element.parent().hasClass('is-drilldown')) {
|
354
174
|
this.$wrapper = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.wrapper).addClass('is-drilldown');
|
355
175
|
if (this.options.animateHeight) this.$wrapper.addClass('animate-height');
|
356
176
|
this.$element.wrap(this.$wrapper);
|
357
|
-
}
|
358
|
-
|
359
|
-
|
177
|
+
}
|
178
|
+
// set wrapper
|
360
179
|
this.$wrapper = this.$element.parent();
|
361
180
|
this.$wrapper.css(this._getMaxDims());
|
362
181
|
}
|
@@ -366,54 +185,49 @@ function (_Plugin) {
|
|
366
185
|
this.$wrapper.css({
|
367
186
|
'max-width': 'none',
|
368
187
|
'min-height': 'none'
|
369
|
-
});
|
370
|
-
|
188
|
+
});
|
189
|
+
// _getMaxDims has side effects (boo) but calling it should update all other necessary heights & widths
|
371
190
|
this.$wrapper.css(this._getMaxDims());
|
372
191
|
}
|
192
|
+
|
373
193
|
/**
|
374
194
|
* Adds event handlers to elements in the menu.
|
375
195
|
* @function
|
376
196
|
* @private
|
377
197
|
* @param {jQuery} $elem - the current menu item to add handlers to.
|
378
198
|
*/
|
379
|
-
|
380
199
|
}, {
|
381
200
|
key: "_events",
|
382
201
|
value: function _events($elem) {
|
383
202
|
var _this = this;
|
384
|
-
|
385
203
|
$elem.off('click.zf.drilldown').on('click.zf.drilldown', function (e) {
|
386
204
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).parentsUntil('ul', 'li').hasClass('is-drilldown-submenu-parent')) {
|
387
205
|
e.preventDefault();
|
388
|
-
}
|
206
|
+
}
|
207
|
+
|
208
|
+
// if(e.target !== e.currentTarget.firstElementChild){
|
389
209
|
// return false;
|
390
210
|
// }
|
391
|
-
|
392
|
-
|
393
211
|
_this._show($elem.parent('li'));
|
394
|
-
|
395
212
|
if (_this.options.closeOnClick) {
|
396
213
|
var $body = jquery__WEBPACK_IMPORTED_MODULE_0___default()('body');
|
397
|
-
$body.off('.zf.drilldown').on('click.zf.drilldown', function (
|
398
|
-
if (
|
214
|
+
$body.off('.zf.drilldown').on('click.zf.drilldown', function (ev) {
|
215
|
+
if (ev.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0], ev.target)) {
|
399
216
|
return;
|
400
217
|
}
|
401
|
-
|
402
|
-
e.preventDefault();
|
403
|
-
|
218
|
+
ev.preventDefault();
|
404
219
|
_this._hideAll();
|
405
|
-
|
406
220
|
$body.off('.zf.drilldown');
|
407
221
|
});
|
408
222
|
}
|
409
223
|
});
|
410
224
|
}
|
225
|
+
|
411
226
|
/**
|
412
227
|
* Adds event handlers to the menu element.
|
413
228
|
* @function
|
414
229
|
* @private
|
415
230
|
*/
|
416
|
-
|
417
231
|
}, {
|
418
232
|
key: "_registerEvents",
|
419
233
|
value: function _registerEvents() {
|
@@ -421,22 +235,20 @@ function (_Plugin) {
|
|
421
235
|
this._bindHandler = this._scrollTop.bind(this);
|
422
236
|
this.$element.on('open.zf.drilldown hide.zf.drilldown close.zf.drilldown closed.zf.drilldown', this._bindHandler);
|
423
237
|
}
|
424
|
-
|
425
238
|
this.$element.on('mutateme.zf.trigger', this._resize.bind(this));
|
426
239
|
}
|
240
|
+
|
427
241
|
/**
|
428
242
|
* Scroll to Top of Element or data-scroll-top-element
|
429
243
|
* @function
|
430
244
|
* @fires Drilldown#scrollme
|
431
245
|
*/
|
432
|
-
|
433
246
|
}, {
|
434
247
|
key: "_scrollTop",
|
435
248
|
value: function _scrollTop() {
|
436
249
|
var _this = this;
|
437
|
-
|
438
|
-
|
439
|
-
scrollPos = parseInt($scrollTopElement.offset().top + _this.options.scrollTopOffset, 10);
|
250
|
+
var $scrollTopElement = _this.options.scrollTopElement !== '' ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(_this.options.scrollTopElement) : _this.$element,
|
251
|
+
scrollPos = parseInt($scrollTopElement.offset().top + _this.options.scrollTopOffset, 10);
|
440
252
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').stop(true).animate({
|
441
253
|
scrollTop: scrollPos
|
442
254
|
}, _this.options.animationDuration, _this.options.animationEasing, function () {
|
@@ -447,21 +259,20 @@ function (_Plugin) {
|
|
447
259
|
if (this === jquery__WEBPACK_IMPORTED_MODULE_0___default()('html')[0]) _this.$element.trigger('scrollme.zf.drilldown');
|
448
260
|
});
|
449
261
|
}
|
262
|
+
|
450
263
|
/**
|
451
264
|
* Adds keydown event listener to `li`'s in the menu.
|
452
265
|
* @private
|
453
266
|
*/
|
454
|
-
|
455
267
|
}, {
|
456
268
|
key: "_keyboardEvents",
|
457
269
|
value: function _keyboardEvents() {
|
458
270
|
var _this = this;
|
459
|
-
|
460
271
|
this.$menuItems.add(this.$element.find('.js-drilldown-back > a, .is-submenu-parent-item > a')).on('keydown.zf.drilldown', function (e) {
|
461
272
|
var $element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
|
462
|
-
|
463
|
-
|
464
|
-
|
273
|
+
$elements = $element.parent('li').parent('ul').children('li').children('a'),
|
274
|
+
$prevElement,
|
275
|
+
$nextElement;
|
465
276
|
$elements.each(function (i) {
|
466
277
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)) {
|
467
278
|
$prevElement = $elements.eq(Math.max(0, i - 1));
|
@@ -469,12 +280,11 @@ function (_Plugin) {
|
|
469
280
|
return;
|
470
281
|
}
|
471
282
|
});
|
472
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__
|
283
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e, 'Drilldown', {
|
473
284
|
next: function next() {
|
474
285
|
if ($element.is(_this.$submenuAnchors)) {
|
475
286
|
_this._show($element.parent('li'));
|
476
|
-
|
477
|
-
$element.parent('li').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () {
|
287
|
+
$element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () {
|
478
288
|
$element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus();
|
479
289
|
});
|
480
290
|
return true;
|
@@ -482,8 +292,7 @@ function (_Plugin) {
|
|
482
292
|
},
|
483
293
|
previous: function previous() {
|
484
294
|
_this._hide($element.parent('li').parent('ul'));
|
485
|
-
|
486
|
-
$element.parent('li').parent('ul').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () {
|
295
|
+
$element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () {
|
487
296
|
setTimeout(function () {
|
488
297
|
$element.parent('li').parent('ul').parent('li').children('a').first().focus();
|
489
298
|
}, 1);
|
@@ -491,20 +300,19 @@ function (_Plugin) {
|
|
491
300
|
return true;
|
492
301
|
},
|
493
302
|
up: function up() {
|
494
|
-
$prevElement.focus();
|
495
|
-
|
303
|
+
$prevElement.focus();
|
304
|
+
// Don't tap focus on first element in root ul
|
496
305
|
return !$element.is(_this.$element.find('> li:first-child > a'));
|
497
306
|
},
|
498
307
|
down: function down() {
|
499
|
-
$nextElement.focus();
|
500
|
-
|
308
|
+
$nextElement.focus();
|
309
|
+
// Don't tap focus on last element in root ul
|
501
310
|
return !$element.is(_this.$element.find('> li:last-child > a'));
|
502
311
|
},
|
503
312
|
close: function close() {
|
504
313
|
// Don't close on element in root ul
|
505
314
|
if (!$element.is(_this.$element.find('> li > a'))) {
|
506
315
|
_this._hide($element.parent().parent());
|
507
|
-
|
508
316
|
$element.parent().parent().siblings('a').focus();
|
509
317
|
}
|
510
318
|
},
|
@@ -515,8 +323,7 @@ function (_Plugin) {
|
|
515
323
|
} else if (!$element.is(_this.$menuItems)) {
|
516
324
|
// not menu item means back button
|
517
325
|
_this._hide($element.parent('li').parent('ul'));
|
518
|
-
|
519
|
-
$element.parent('li').parent('ul').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () {
|
326
|
+
$element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () {
|
520
327
|
setTimeout(function () {
|
521
328
|
$element.parent('li').parent('ul').parent('li').children('a').first().focus();
|
522
329
|
}, 1);
|
@@ -525,8 +332,7 @@ function (_Plugin) {
|
|
525
332
|
} else if ($element.is(_this.$submenuAnchors)) {
|
526
333
|
// Sub menu item
|
527
334
|
_this._show($element.parent('li'));
|
528
|
-
|
529
|
-
$element.parent('li').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () {
|
335
|
+
$element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () {
|
530
336
|
$element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus();
|
531
337
|
});
|
532
338
|
return true;
|
@@ -540,86 +346,83 @@ function (_Plugin) {
|
|
540
346
|
});
|
541
347
|
}); // end keyboardAccess
|
542
348
|
}
|
349
|
+
|
543
350
|
/**
|
544
351
|
* Closes all open elements, and returns to root menu.
|
545
352
|
* @function
|
546
353
|
* @fires Drilldown#close
|
547
354
|
* @fires Drilldown#closed
|
548
355
|
*/
|
549
|
-
|
550
356
|
}, {
|
551
357
|
key: "_hideAll",
|
552
358
|
value: function _hideAll() {
|
553
359
|
var _this2 = this;
|
554
|
-
|
555
360
|
var $elem = this.$element.find('.is-drilldown-submenu.is-active');
|
556
361
|
$elem.addClass('is-closing');
|
557
|
-
|
362
|
+
$elem.parent().closest('ul').removeClass('invisible');
|
558
363
|
if (this.options.autoHeight) {
|
559
364
|
var calcHeight = $elem.parent().closest('ul').data('calcHeight');
|
560
365
|
this.$wrapper.css({
|
561
366
|
height: calcHeight
|
562
367
|
});
|
563
368
|
}
|
369
|
+
|
564
370
|
/**
|
565
371
|
* Fires when the menu is closing.
|
566
372
|
* @event Drilldown#close
|
567
373
|
*/
|
568
|
-
|
569
|
-
|
570
374
|
this.$element.trigger('close.zf.drilldown');
|
571
|
-
$elem.one(
|
375
|
+
$elem.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem), function () {
|
572
376
|
$elem.removeClass('is-active is-closing');
|
377
|
+
|
573
378
|
/**
|
574
379
|
* Fires when the menu is fully closed.
|
575
380
|
* @event Drilldown#closed
|
576
381
|
*/
|
577
|
-
|
578
382
|
_this2.$element.trigger('closed.zf.drilldown');
|
579
383
|
});
|
580
384
|
}
|
385
|
+
|
581
386
|
/**
|
582
387
|
* Adds event listener for each `back` button, and closes open menus.
|
583
388
|
* @function
|
584
389
|
* @fires Drilldown#back
|
585
390
|
* @param {jQuery} $elem - the current sub-menu to add `back` event.
|
586
391
|
*/
|
587
|
-
|
588
392
|
}, {
|
589
393
|
key: "_back",
|
590
394
|
value: function _back($elem) {
|
591
395
|
var _this = this;
|
592
|
-
|
593
396
|
$elem.off('click.zf.drilldown');
|
594
|
-
$elem.children('.js-drilldown-back').on('click.zf.drilldown', function (
|
595
|
-
|
596
|
-
_this._hide($elem); // If there is a parent submenu, call show
|
597
|
-
|
397
|
+
$elem.children('.js-drilldown-back').on('click.zf.drilldown', function () {
|
398
|
+
_this._hide($elem);
|
598
399
|
|
400
|
+
// If there is a parent submenu, call show
|
599
401
|
var parentSubMenu = $elem.parent('li').parent('ul').parent('li');
|
600
|
-
|
601
402
|
if (parentSubMenu.length) {
|
602
403
|
_this._show(parentSubMenu);
|
404
|
+
} else {
|
405
|
+
_this.$currentMenu = _this.$element;
|
603
406
|
}
|
604
407
|
});
|
605
408
|
}
|
409
|
+
|
606
410
|
/**
|
607
411
|
* Adds event listener to menu items w/o submenus to close open menus on click.
|
608
412
|
* @function
|
609
413
|
* @private
|
610
414
|
*/
|
611
|
-
|
612
415
|
}, {
|
613
416
|
key: "_menuLinkEvents",
|
614
417
|
value: function _menuLinkEvents() {
|
615
418
|
var _this = this;
|
616
|
-
|
617
|
-
this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown', function (e) {
|
419
|
+
this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown', function () {
|
618
420
|
setTimeout(function () {
|
619
421
|
_this._hideAll();
|
620
422
|
}, 0);
|
621
423
|
});
|
622
424
|
}
|
425
|
+
|
623
426
|
/**
|
624
427
|
* Sets the CSS classes for submenu to show it.
|
625
428
|
* @function
|
@@ -627,17 +430,16 @@ function (_Plugin) {
|
|
627
430
|
* @param {jQuery} $elem - the target submenu (`ul` tag)
|
628
431
|
* @param {boolean} trigger - trigger drilldown event
|
629
432
|
*/
|
630
|
-
|
631
433
|
}, {
|
632
434
|
key: "_setShowSubMenuClasses",
|
633
435
|
value: function _setShowSubMenuClasses($elem, trigger) {
|
634
436
|
$elem.addClass('is-active').removeClass('invisible').attr('aria-hidden', false);
|
635
437
|
$elem.parent('li').attr('aria-expanded', true);
|
636
|
-
|
637
438
|
if (trigger === true) {
|
638
439
|
this.$element.trigger('open.zf.drilldown', [$elem]);
|
639
440
|
}
|
640
441
|
}
|
442
|
+
|
641
443
|
/**
|
642
444
|
* Sets the CSS classes for submenu to hide it.
|
643
445
|
* @function
|
@@ -645,17 +447,16 @@ function (_Plugin) {
|
|
645
447
|
* @param {jQuery} $elem - the target submenu (`ul` tag)
|
646
448
|
* @param {boolean} trigger - trigger drilldown event
|
647
449
|
*/
|
648
|
-
|
649
450
|
}, {
|
650
451
|
key: "_setHideSubMenuClasses",
|
651
452
|
value: function _setHideSubMenuClasses($elem, trigger) {
|
652
453
|
$elem.removeClass('is-active').addClass('invisible').attr('aria-hidden', true);
|
653
454
|
$elem.parent('li').attr('aria-expanded', false);
|
654
|
-
|
655
455
|
if (trigger === true) {
|
656
456
|
$elem.trigger('hide.zf.drilldown', [$elem]);
|
657
457
|
}
|
658
458
|
}
|
459
|
+
|
659
460
|
/**
|
660
461
|
* Opens a specific drilldown (sub)menu no matter which (sub)menu in it is currently visible.
|
661
462
|
* Compared to _show() this lets you jump into any submenu without clicking through every submenu on the way to it.
|
@@ -664,149 +465,148 @@ function (_Plugin) {
|
|
664
465
|
* @param {jQuery} $elem - the target (sub)menu (`ul` tag)
|
665
466
|
* @param {boolean} autoFocus - if true the first link in the target (sub)menu gets auto focused
|
666
467
|
*/
|
667
|
-
|
668
468
|
}, {
|
669
469
|
key: "_showMenu",
|
670
470
|
value: function _showMenu($elem, autoFocus) {
|
671
|
-
var _this = this;
|
672
|
-
|
471
|
+
var _this = this;
|
673
472
|
|
473
|
+
// Reset drilldown
|
674
474
|
var $expandedSubmenus = this.$element.find('li[aria-expanded="true"] > ul[data-submenu]');
|
675
|
-
$expandedSubmenus.each(function (
|
475
|
+
$expandedSubmenus.each(function () {
|
676
476
|
_this._setHideSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
|
677
|
-
});
|
477
|
+
});
|
678
478
|
|
679
|
-
|
479
|
+
// Save the menu as the currently displayed one.
|
480
|
+
this.$currentMenu = $elem;
|
680
481
|
|
482
|
+
// If target menu is root, focus first link & exit
|
681
483
|
if ($elem.is('[data-drilldown]')) {
|
682
|
-
if (autoFocus === true) $elem.find('li
|
484
|
+
if (autoFocus === true) $elem.find('li > a').first().focus();
|
683
485
|
if (this.options.autoHeight) this.$wrapper.css('height', $elem.data('calcHeight'));
|
684
486
|
return;
|
685
|
-
}
|
686
|
-
|
487
|
+
}
|
687
488
|
|
688
|
-
|
489
|
+
// Find all submenus on way to root incl. the element itself
|
490
|
+
var $submenus = $elem.children().first().parentsUntil('[data-drilldown]', '[data-submenu]');
|
689
491
|
|
492
|
+
// Open target menu and all submenus on its way to root
|
690
493
|
$submenus.each(function (index) {
|
691
494
|
// Update height of first child (target menu) if autoHeight option true
|
692
495
|
if (index === 0 && _this.options.autoHeight) {
|
693
496
|
_this.$wrapper.css('height', jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight'));
|
694
497
|
}
|
498
|
+
var isLastChild = index === $submenus.length - 1;
|
695
499
|
|
696
|
-
|
500
|
+
// Add transitionsend listener to last child (root due to reverse order) to open target menu's first link
|
697
501
|
// Last child makes sure the event gets always triggered even if going through several menus
|
698
|
-
|
699
502
|
if (isLastChild === true) {
|
700
|
-
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).one(
|
503
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)), function () {
|
701
504
|
if (autoFocus === true) {
|
702
|
-
$elem.find('li
|
505
|
+
$elem.find('li > a').first().focus();
|
703
506
|
}
|
704
507
|
});
|
705
508
|
}
|
706
|
-
|
707
509
|
_this._setShowSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), isLastChild);
|
708
510
|
});
|
709
511
|
}
|
512
|
+
|
710
513
|
/**
|
711
514
|
* Opens a submenu.
|
712
515
|
* @function
|
713
516
|
* @fires Drilldown#open
|
714
517
|
* @param {jQuery} $elem - the current element with a submenu to open, i.e. the `li` tag.
|
715
518
|
*/
|
716
|
-
|
717
519
|
}, {
|
718
520
|
key: "_show",
|
719
521
|
value: function _show($elem) {
|
720
522
|
var $submenu = $elem.children('[data-submenu]');
|
721
523
|
$elem.attr('aria-expanded', true);
|
722
524
|
this.$currentMenu = $submenu;
|
723
|
-
$submenu.addClass('is-active').removeClass('invisible').attr('aria-hidden', false);
|
724
525
|
|
526
|
+
//hide drilldown parent menu when submenu is open
|
527
|
+
// this removes it from the dom so that the tab key will take the user to the next visible element
|
528
|
+
$elem.parent().closest('ul').addClass('invisible');
|
529
|
+
|
530
|
+
// add visible class to submenu to override invisible class above
|
531
|
+
$submenu.addClass('is-active visible').removeClass('invisible').attr('aria-hidden', false);
|
725
532
|
if (this.options.autoHeight) {
|
726
533
|
this.$wrapper.css({
|
727
534
|
height: $submenu.data('calcHeight')
|
728
535
|
});
|
729
536
|
}
|
537
|
+
|
730
538
|
/**
|
731
539
|
* Fires when the submenu has opened.
|
732
540
|
* @event Drilldown#open
|
733
541
|
*/
|
734
|
-
|
735
|
-
|
736
542
|
this.$element.trigger('open.zf.drilldown', [$elem]);
|
737
543
|
}
|
544
|
+
|
738
545
|
/**
|
739
546
|
* Hides a submenu
|
740
547
|
* @function
|
741
548
|
* @fires Drilldown#hide
|
742
549
|
* @param {jQuery} $elem - the current sub-menu to hide, i.e. the `ul` tag.
|
743
550
|
*/
|
744
|
-
|
745
551
|
}, {
|
746
552
|
key: "_hide",
|
747
553
|
value: function _hide($elem) {
|
748
554
|
if (this.options.autoHeight) this.$wrapper.css({
|
749
555
|
height: $elem.parent().closest('ul').data('calcHeight')
|
750
556
|
});
|
751
|
-
|
752
|
-
var _this = this;
|
753
|
-
|
557
|
+
$elem.parent().closest('ul').removeClass('invisible');
|
754
558
|
$elem.parent('li').attr('aria-expanded', false);
|
755
559
|
$elem.attr('aria-hidden', true);
|
756
|
-
$elem.addClass('is-closing').one(
|
757
|
-
$elem.removeClass('is-active is-closing');
|
560
|
+
$elem.addClass('is-closing').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem), function () {
|
561
|
+
$elem.removeClass('is-active is-closing visible');
|
758
562
|
$elem.blur().addClass('invisible');
|
759
563
|
});
|
760
564
|
/**
|
761
565
|
* Fires when the submenu has closed.
|
762
566
|
* @event Drilldown#hide
|
763
567
|
*/
|
764
|
-
|
765
568
|
$elem.trigger('hide.zf.drilldown', [$elem]);
|
766
569
|
}
|
570
|
+
|
767
571
|
/**
|
768
572
|
* Iterates through the nested menus to calculate the min-height, and max-width for the menu.
|
769
573
|
* Prevents content jumping.
|
770
574
|
* @function
|
771
575
|
* @private
|
772
576
|
*/
|
773
|
-
|
774
577
|
}, {
|
775
578
|
key: "_getMaxDims",
|
776
579
|
value: function _getMaxDims() {
|
777
580
|
var maxHeight = 0,
|
778
|
-
|
779
|
-
|
780
|
-
|
581
|
+
result = {},
|
582
|
+
_this = this;
|
781
583
|
|
584
|
+
// Recalculate menu heights and total max height
|
782
585
|
this.$submenus.add(this.$element).each(function () {
|
783
|
-
var
|
784
|
-
var height = _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__["Box"].GetDimensions(this).height;
|
586
|
+
var height = _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__.Box.GetDimensions(this).height;
|
785
587
|
maxHeight = height > maxHeight ? height : maxHeight;
|
786
|
-
|
787
588
|
if (_this.options.autoHeight) {
|
788
589
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight', height);
|
789
590
|
}
|
790
591
|
});
|
791
|
-
if (this.options.autoHeight) result
|
592
|
+
if (this.options.autoHeight) result.height = this.$currentMenu.data('calcHeight');else result['min-height'] = "".concat(maxHeight, "px");
|
792
593
|
result['max-width'] = "".concat(this.$element[0].getBoundingClientRect().width, "px");
|
793
594
|
return result;
|
794
595
|
}
|
596
|
+
|
795
597
|
/**
|
796
598
|
* Destroys the Drilldown Menu
|
797
599
|
* @function
|
798
600
|
*/
|
799
|
-
|
800
601
|
}, {
|
801
602
|
key: "_destroy",
|
802
603
|
value: function _destroy() {
|
604
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('.zf.drilldown');
|
803
605
|
if (this.options.scrollTop) this.$element.off('.zf.drilldown', this._bindHandler);
|
804
|
-
|
805
606
|
this._hideAll();
|
806
|
-
|
807
607
|
this.$element.off('mutateme.zf.trigger');
|
808
|
-
_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__
|
809
|
-
this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role');
|
608
|
+
_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Burn(this.$element, 'drilldown');
|
609
|
+
this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').off('transitionend otransitionend webkitTransitionEnd').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role');
|
810
610
|
this.$submenuAnchors.each(function () {
|
811
611
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off('.zf.drilldown');
|
812
612
|
});
|
@@ -815,7 +615,6 @@ function (_Plugin) {
|
|
815
615
|
this.$element.find('a').each(function () {
|
816
616
|
var $link = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
817
617
|
$link.removeAttr('tabindex');
|
818
|
-
|
819
618
|
if ($link.data('savedHref')) {
|
820
619
|
$link.attr('href', $link.data('savedHref')).removeData('savedHref');
|
821
620
|
} else {
|
@@ -824,10 +623,7 @@ function (_Plugin) {
|
|
824
623
|
});
|
825
624
|
}
|
826
625
|
}]);
|
827
|
-
|
828
|
-
return Drilldown;
|
829
|
-
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]);
|
830
|
-
|
626
|
+
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.Plugin);
|
831
627
|
Drilldown.defaults = {
|
832
628
|
/**
|
833
629
|
* Drilldowns depend on styles in order to function properly; in the default build of Foundation these are
|
@@ -837,7 +633,6 @@ Drilldown.defaults = {
|
|
837
633
|
* @default true
|
838
634
|
*/
|
839
635
|
autoApplyClass: true,
|
840
|
-
|
841
636
|
/**
|
842
637
|
* Markup used for JS generated back button. Prepended or appended (see backButtonPosition) to submenu lists and deleted on `destroy` method, 'js-drilldown-back' class required. Remove the backslash (`\`) if copy and pasting.
|
843
638
|
* @option
|
@@ -845,7 +640,6 @@ Drilldown.defaults = {
|
|
845
640
|
* @default '<li class="js-drilldown-back"><a tabindex="0">Back</a></li>'
|
846
641
|
*/
|
847
642
|
backButton: '<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',
|
848
|
-
|
849
643
|
/**
|
850
644
|
* Position the back button either at the top or bottom of drilldown submenus. Can be `'left'` or `'bottom'`.
|
851
645
|
* @option
|
@@ -853,7 +647,6 @@ Drilldown.defaults = {
|
|
853
647
|
* @default top
|
854
648
|
*/
|
855
649
|
backButtonPosition: 'top',
|
856
|
-
|
857
650
|
/**
|
858
651
|
* Markup used to wrap drilldown menu. Use a class name for independent styling; the JS applied class: `is-drilldown` is required. Remove the backslash (`\`) if copy and pasting.
|
859
652
|
* @option
|
@@ -861,7 +654,6 @@ Drilldown.defaults = {
|
|
861
654
|
* @default '<div></div>'
|
862
655
|
*/
|
863
656
|
wrapper: '<div></div>',
|
864
|
-
|
865
657
|
/**
|
866
658
|
* Adds the parent link to the submenu.
|
867
659
|
* @option
|
@@ -869,7 +661,6 @@ Drilldown.defaults = {
|
|
869
661
|
* @default false
|
870
662
|
*/
|
871
663
|
parentLink: false,
|
872
|
-
|
873
664
|
/**
|
874
665
|
* Allow the menu to return to root list on body click.
|
875
666
|
* @option
|
@@ -877,7 +668,6 @@ Drilldown.defaults = {
|
|
877
668
|
* @default false
|
878
669
|
*/
|
879
670
|
closeOnClick: false,
|
880
|
-
|
881
671
|
/**
|
882
672
|
* Allow the menu to auto adjust height.
|
883
673
|
* @option
|
@@ -885,7 +675,6 @@ Drilldown.defaults = {
|
|
885
675
|
* @default false
|
886
676
|
*/
|
887
677
|
autoHeight: false,
|
888
|
-
|
889
678
|
/**
|
890
679
|
* Animate the auto adjust height.
|
891
680
|
* @option
|
@@ -893,7 +682,6 @@ Drilldown.defaults = {
|
|
893
682
|
* @default false
|
894
683
|
*/
|
895
684
|
animateHeight: false,
|
896
|
-
|
897
685
|
/**
|
898
686
|
* Scroll to the top of the menu after opening a submenu or navigating back using the menu back button
|
899
687
|
* @option
|
@@ -901,7 +689,6 @@ Drilldown.defaults = {
|
|
901
689
|
* @default false
|
902
690
|
*/
|
903
691
|
scrollTop: false,
|
904
|
-
|
905
692
|
/**
|
906
693
|
* String jquery selector (for example 'body') of element to take offset().top from, if empty string the drilldown menu offset().top is taken
|
907
694
|
* @option
|
@@ -909,7 +696,6 @@ Drilldown.defaults = {
|
|
909
696
|
* @default ''
|
910
697
|
*/
|
911
698
|
scrollTopElement: '',
|
912
|
-
|
913
699
|
/**
|
914
700
|
* ScrollTop offset
|
915
701
|
* @option
|
@@ -917,7 +703,6 @@ Drilldown.defaults = {
|
|
917
703
|
* @default 0
|
918
704
|
*/
|
919
705
|
scrollTopOffset: 0,
|
920
|
-
|
921
706
|
/**
|
922
707
|
* Scroll animation duration
|
923
708
|
* @option
|
@@ -925,7 +710,6 @@ Drilldown.defaults = {
|
|
925
710
|
* @default 500
|
926
711
|
*/
|
927
712
|
animationDuration: 500,
|
928
|
-
|
929
713
|
/**
|
930
714
|
* Scroll animation easing. Can be `'swing'` or `'linear'`.
|
931
715
|
* @option
|
@@ -933,22 +717,50 @@ Drilldown.defaults = {
|
|
933
717
|
* @see {@link https://api.jquery.com/animate|JQuery animate}
|
934
718
|
* @default 'swing'
|
935
719
|
*/
|
936
|
-
animationEasing: 'swing'
|
937
|
-
|
720
|
+
animationEasing: 'swing'
|
721
|
+
// holdOpen: false
|
938
722
|
};
|
939
723
|
|
940
724
|
|
941
725
|
/***/ }),
|
942
726
|
|
943
|
-
/***/
|
944
|
-
|
945
|
-
!***
|
946
|
-
|
947
|
-
|
948
|
-
|
727
|
+
/***/ "./foundation.core":
|
728
|
+
/*!****************************************************************************************************************************************************************!*\
|
729
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
730
|
+
\****************************************************************************************************************************************************************/
|
731
|
+
/***/ (function(module) {
|
732
|
+
|
733
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
734
|
+
|
735
|
+
/***/ }),
|
736
|
+
|
737
|
+
/***/ "./foundation.util.box":
|
738
|
+
/*!********************************************************************************************************************************************************************************!*\
|
739
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***!
|
740
|
+
\********************************************************************************************************************************************************************************/
|
741
|
+
/***/ (function(module) {
|
949
742
|
|
950
|
-
module.exports =
|
743
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__;
|
951
744
|
|
745
|
+
/***/ }),
|
746
|
+
|
747
|
+
/***/ "./foundation.util.keyboard":
|
748
|
+
/*!****************************************************************************************************************************************************************************************************!*\
|
749
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
750
|
+
\****************************************************************************************************************************************************************************************************/
|
751
|
+
/***/ (function(module) {
|
752
|
+
|
753
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
754
|
+
|
755
|
+
/***/ }),
|
756
|
+
|
757
|
+
/***/ "./foundation.util.nest":
|
758
|
+
/*!************************************************************************************************************************************************************************************!*\
|
759
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***!
|
760
|
+
\************************************************************************************************************************************************************************************/
|
761
|
+
/***/ (function(module) {
|
762
|
+
|
763
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__;
|
952
764
|
|
953
765
|
/***/ }),
|
954
766
|
|
@@ -956,13 +768,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
|
|
956
768
|
/*!********************************************************************************************!*\
|
957
769
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
958
770
|
\********************************************************************************************/
|
959
|
-
|
960
|
-
/***/ (function(module, exports) {
|
771
|
+
/***/ (function(module) {
|
961
772
|
|
962
773
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
963
774
|
|
964
775
|
/***/ })
|
965
776
|
|
966
|
-
/******/
|
777
|
+
/******/ });
|
778
|
+
/************************************************************************/
|
779
|
+
/******/ // The module cache
|
780
|
+
/******/ var __webpack_module_cache__ = {};
|
781
|
+
/******/
|
782
|
+
/******/ // The require function
|
783
|
+
/******/ function __webpack_require__(moduleId) {
|
784
|
+
/******/ // Check if module is in cache
|
785
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
786
|
+
/******/ if (cachedModule !== undefined) {
|
787
|
+
/******/ return cachedModule.exports;
|
788
|
+
/******/ }
|
789
|
+
/******/ // Create a new module (and put it into the cache)
|
790
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
791
|
+
/******/ // no module.id needed
|
792
|
+
/******/ // no module.loaded needed
|
793
|
+
/******/ exports: {}
|
794
|
+
/******/ };
|
795
|
+
/******/
|
796
|
+
/******/ // Execute the module function
|
797
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
798
|
+
/******/
|
799
|
+
/******/ // Return the exports of the module
|
800
|
+
/******/ return module.exports;
|
801
|
+
/******/ }
|
802
|
+
/******/
|
803
|
+
/************************************************************************/
|
804
|
+
/******/ /* webpack/runtime/compat get default export */
|
805
|
+
/******/ !function() {
|
806
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
807
|
+
/******/ __webpack_require__.n = function(module) {
|
808
|
+
/******/ var getter = module && module.__esModule ?
|
809
|
+
/******/ function() { return module['default']; } :
|
810
|
+
/******/ function() { return module; };
|
811
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
812
|
+
/******/ return getter;
|
813
|
+
/******/ };
|
814
|
+
/******/ }();
|
815
|
+
/******/
|
816
|
+
/******/ /* webpack/runtime/define property getters */
|
817
|
+
/******/ !function() {
|
818
|
+
/******/ // define getter functions for harmony exports
|
819
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
820
|
+
/******/ for(var key in definition) {
|
821
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
822
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
823
|
+
/******/ }
|
824
|
+
/******/ }
|
825
|
+
/******/ };
|
826
|
+
/******/ }();
|
827
|
+
/******/
|
828
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
829
|
+
/******/ !function() {
|
830
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
831
|
+
/******/ }();
|
832
|
+
/******/
|
833
|
+
/******/ /* webpack/runtime/make namespace object */
|
834
|
+
/******/ !function() {
|
835
|
+
/******/ // define __esModule on exports
|
836
|
+
/******/ __webpack_require__.r = function(exports) {
|
837
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
838
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
839
|
+
/******/ }
|
840
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
841
|
+
/******/ };
|
842
|
+
/******/ }();
|
843
|
+
/******/
|
844
|
+
/************************************************************************/
|
845
|
+
var __webpack_exports__ = {};
|
846
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
847
|
+
!function() {
|
848
|
+
/*!****************************************************!*\
|
849
|
+
!*** ./js/entries/plugins/foundation.drilldown.js ***!
|
850
|
+
\****************************************************/
|
851
|
+
__webpack_require__.r(__webpack_exports__);
|
852
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
853
|
+
/* harmony export */ Drilldown: function() { return /* reexport safe */ _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__.Drilldown; },
|
854
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; }
|
855
|
+
/* harmony export */ });
|
856
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
857
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
858
|
+
/* harmony import */ var _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.drilldown */ "./js/foundation.drilldown.js");
|
859
|
+
|
860
|
+
|
861
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__.Drilldown, 'Drilldown');
|
862
|
+
|
863
|
+
}();
|
864
|
+
/******/ return __webpack_exports__;
|
865
|
+
/******/ })()
|
866
|
+
;
|
967
867
|
});
|
968
868
|
//# sourceMappingURL=foundation.drilldown.js.map
|