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,181 +1,46 @@
|
|
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"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.core", "./foundation.util.keyboard"
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.keyboard"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["
|
7
|
+
exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.accordion"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"]
|
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 = 1);
|
95
|
-
/******/ })
|
96
|
-
/************************************************************************/
|
97
|
-
/******/ ({
|
98
|
-
|
99
|
-
/***/ "./foundation.core":
|
100
|
-
/*!****************************************************************************************************************************************************************!*\
|
101
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
102
|
-
\****************************************************************************************************************************************************************/
|
103
|
-
/*! no static exports found */
|
104
|
-
/***/ (function(module, exports) {
|
105
|
-
|
106
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
107
|
-
|
108
|
-
/***/ }),
|
109
|
-
|
110
|
-
/***/ "./foundation.util.keyboard":
|
111
|
-
/*!****************************************************************************************************************************************************************************************************!*\
|
112
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
113
|
-
\****************************************************************************************************************************************************************************************************/
|
114
|
-
/*! no static exports found */
|
115
|
-
/***/ (function(module, exports) {
|
116
|
-
|
117
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
118
|
-
|
119
|
-
/***/ }),
|
120
|
-
|
121
|
-
/***/ "./js/entries/plugins/foundation.accordion.js":
|
122
|
-
/*!****************************************************!*\
|
123
|
-
!*** ./js/entries/plugins/foundation.accordion.js ***!
|
124
|
-
\****************************************************/
|
125
|
-
/*! exports provided: Foundation, Accordion */
|
126
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
127
|
-
|
128
|
-
"use strict";
|
129
|
-
__webpack_require__.r(__webpack_exports__);
|
130
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
131
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
132
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
133
|
-
|
134
|
-
/* harmony import */ var _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.accordion */ "./js/foundation.accordion.js");
|
135
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"]; });
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"], 'Accordion');
|
140
|
-
|
141
|
-
|
142
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.accordion"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
143
14
|
|
144
15
|
/***/ "./js/foundation.accordion.js":
|
145
16
|
/*!************************************!*\
|
146
17
|
!*** ./js/foundation.accordion.js ***!
|
147
18
|
\************************************/
|
148
|
-
|
149
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
19
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
150
20
|
|
151
|
-
"use strict";
|
152
21
|
__webpack_require__.r(__webpack_exports__);
|
153
|
-
/* harmony export
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
23
|
+
/* harmony export */ Accordion: function() { return /* binding */ Accordion; }
|
24
|
+
/* harmony export */ });
|
154
25
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
155
26
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
156
|
-
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.
|
27
|
+
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
157
28
|
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
|
158
29
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
|
159
30
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
|
160
|
-
|
161
|
-
|
162
|
-
function
|
163
|
-
|
164
|
-
function
|
165
|
-
|
166
|
-
function
|
167
|
-
|
168
|
-
function
|
169
|
-
|
170
|
-
function
|
171
|
-
|
172
|
-
function
|
173
|
-
|
174
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
175
|
-
|
176
|
-
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); }
|
177
|
-
|
178
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
31
|
+
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); }
|
32
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
33
|
+
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); } }
|
34
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
35
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
36
|
+
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); }
|
37
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
38
|
+
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); }
|
39
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
40
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
41
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
42
|
+
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); }
|
43
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
179
44
|
|
180
45
|
|
181
46
|
|
@@ -186,21 +51,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
186
51
|
* @module foundation.accordion
|
187
52
|
* @requires foundation.util.keyboard
|
188
53
|
*/
|
189
|
-
|
190
|
-
var Accordion =
|
191
|
-
/*#__PURE__*/
|
192
|
-
function (_Plugin) {
|
193
|
-
_inherits(Accordion, _Plugin);
|
194
|
-
|
54
|
+
var Accordion = /*#__PURE__*/function (_Plugin) {
|
195
55
|
function Accordion() {
|
196
56
|
_classCallCheck(this, Accordion);
|
197
|
-
|
198
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Accordion).apply(this, arguments));
|
57
|
+
return _callSuper(this, Accordion, arguments);
|
199
58
|
}
|
200
|
-
|
201
|
-
_createClass(Accordion, [{
|
59
|
+
_inherits(Accordion, _Plugin);
|
60
|
+
return _createClass(Accordion, [{
|
202
61
|
key: "_setup",
|
203
|
-
|
62
|
+
value:
|
204
63
|
/**
|
205
64
|
* Creates a new instance of an accordion.
|
206
65
|
* @class
|
@@ -209,155 +68,144 @@ function (_Plugin) {
|
|
209
68
|
* @param {jQuery} element - jQuery object to make into an accordion.
|
210
69
|
* @param {Object} options - a plain object with settings to override the default options.
|
211
70
|
*/
|
212
|
-
|
71
|
+
function _setup(element, options) {
|
213
72
|
this.$element = element;
|
214
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
73
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Accordion.defaults, this.$element.data(), options);
|
215
74
|
this.className = 'Accordion'; // ie9 back compat
|
216
|
-
|
217
75
|
this._init();
|
218
|
-
|
219
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Accordion', {
|
76
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.register('Accordion', {
|
220
77
|
'ENTER': 'toggle',
|
221
78
|
'SPACE': 'toggle',
|
222
79
|
'ARROW_DOWN': 'next',
|
223
|
-
'ARROW_UP': 'previous'
|
80
|
+
'ARROW_UP': 'previous',
|
81
|
+
'HOME': 'first',
|
82
|
+
'END': 'last'
|
224
83
|
});
|
225
84
|
}
|
85
|
+
|
226
86
|
/**
|
227
87
|
* Initializes the accordion by animating the preset active pane(s).
|
228
88
|
* @private
|
229
89
|
*/
|
230
|
-
|
231
90
|
}, {
|
232
91
|
key: "_init",
|
233
92
|
value: function _init() {
|
234
93
|
var _this2 = this;
|
235
|
-
|
236
94
|
this._isInitializing = true;
|
237
|
-
this.$element.attr('role', 'tablist');
|
238
95
|
this.$tabs = this.$element.children('[data-accordion-item]');
|
239
|
-
this.$tabs.attr({
|
240
|
-
'role': 'presentation'
|
241
|
-
});
|
242
96
|
this.$tabs.each(function (idx, el) {
|
243
97
|
var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el),
|
244
|
-
|
245
|
-
|
246
|
-
|
98
|
+
$content = $el.children('[data-tab-content]'),
|
99
|
+
id = $content[0].id || (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6, 'accordion'),
|
100
|
+
linkId = el.id ? "".concat(el.id, "-label") : "".concat(id, "-label");
|
247
101
|
$el.find('a:first').attr({
|
248
102
|
'aria-controls': id,
|
249
|
-
'role': 'tab',
|
250
103
|
'id': linkId,
|
251
|
-
'aria-expanded': false
|
252
|
-
'aria-selected': false
|
104
|
+
'aria-expanded': false
|
253
105
|
});
|
254
106
|
$content.attr({
|
255
|
-
'role': '
|
107
|
+
'role': 'region',
|
256
108
|
'aria-labelledby': linkId,
|
257
109
|
'aria-hidden': true,
|
258
110
|
'id': id
|
259
111
|
});
|
260
112
|
});
|
261
113
|
var $initActive = this.$element.find('.is-active').children('[data-tab-content]');
|
262
|
-
|
263
114
|
if ($initActive.length) {
|
264
115
|
// Save up the initial hash to return to it later when going back in history
|
265
116
|
this._initialAnchor = $initActive.prev('a').attr('href');
|
266
|
-
|
267
117
|
this._openSingleTab($initActive);
|
268
118
|
}
|
269
|
-
|
270
119
|
this._checkDeepLink = function () {
|
271
120
|
var anchor = window.location.hash;
|
272
|
-
|
273
121
|
if (!anchor.length) {
|
274
122
|
// If we are still initializing and there is no anchor, then there is nothing to do
|
275
|
-
if (_this2._isInitializing) return;
|
276
|
-
|
123
|
+
if (_this2._isInitializing) return;
|
124
|
+
// Otherwise, move to the initial anchor
|
277
125
|
if (_this2._initialAnchor) anchor = _this2._initialAnchor;
|
278
126
|
}
|
279
|
-
|
280
127
|
var $anchor = anchor && jquery__WEBPACK_IMPORTED_MODULE_0___default()(anchor);
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
128
|
+
var $link = anchor && _this2.$element.find("[href$=\"".concat(anchor, "\"]"));
|
129
|
+
// Whether the anchor element that has been found is part of this element
|
285
130
|
var isOwnAnchor = !!($anchor.length && $link.length);
|
286
|
-
|
287
131
|
if (isOwnAnchor) {
|
288
132
|
// If there is an anchor for the hash, open it (if not already active)
|
289
133
|
if ($anchor && $link && $link.length) {
|
290
134
|
if (!$link.parent('[data-accordion-item]').hasClass('is-active')) {
|
291
135
|
_this2._openSingleTab($anchor);
|
292
136
|
}
|
293
|
-
}
|
137
|
+
}
|
138
|
+
// Otherwise, close everything
|
294
139
|
else {
|
295
|
-
|
296
|
-
|
297
|
-
|
140
|
+
_this2._closeAllTabs();
|
141
|
+
}
|
298
142
|
|
143
|
+
// Roll up a little to show the titles
|
299
144
|
if (_this2.options.deepLinkSmudge) {
|
300
|
-
|
145
|
+
(0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
301
146
|
var offset = _this2.$element.offset();
|
302
|
-
|
303
147
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
|
304
148
|
scrollTop: offset.top - _this2.options.deepLinkSmudgeOffset
|
305
149
|
}, _this2.options.deepLinkSmudgeDelay);
|
306
150
|
});
|
307
151
|
}
|
152
|
+
|
308
153
|
/**
|
309
154
|
* Fires when the plugin has deeplinked at pageload
|
310
155
|
* @event Accordion#deeplink
|
311
156
|
*/
|
312
|
-
|
313
|
-
|
314
157
|
_this2.$element.trigger('deeplink.zf.accordion', [$link, $anchor]);
|
315
158
|
}
|
316
|
-
};
|
317
|
-
|
159
|
+
};
|
318
160
|
|
161
|
+
//use browser to open a tab, if it exists in this tabset
|
319
162
|
if (this.options.deepLink) {
|
320
163
|
this._checkDeepLink();
|
321
164
|
}
|
322
|
-
|
323
165
|
this._events();
|
324
|
-
|
325
166
|
this._isInitializing = false;
|
326
167
|
}
|
168
|
+
|
327
169
|
/**
|
328
170
|
* Adds event handlers for items within the accordion.
|
329
171
|
* @private
|
330
172
|
*/
|
331
|
-
|
332
173
|
}, {
|
333
174
|
key: "_events",
|
334
175
|
value: function _events() {
|
335
176
|
var _this = this;
|
336
|
-
|
337
177
|
this.$tabs.each(function () {
|
338
178
|
var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
339
179
|
var $tabContent = $elem.children('[data-tab-content]');
|
340
|
-
|
341
180
|
if ($tabContent.length) {
|
342
181
|
$elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion', function (e) {
|
343
182
|
e.preventDefault();
|
344
|
-
|
345
183
|
_this.toggle($tabContent);
|
346
184
|
}).on('keydown.zf.accordion', function (e) {
|
347
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__
|
185
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.handleKey(e, 'Accordion', {
|
348
186
|
toggle: function toggle() {
|
349
187
|
_this.toggle($tabContent);
|
350
188
|
},
|
351
189
|
next: function next() {
|
352
190
|
var $a = $elem.next().find('a').focus();
|
353
|
-
|
354
191
|
if (!_this.options.multiExpand) {
|
355
192
|
$a.trigger('click.zf.accordion');
|
356
193
|
}
|
357
194
|
},
|
358
195
|
previous: function previous() {
|
359
196
|
var $a = $elem.prev().find('a').focus();
|
360
|
-
|
197
|
+
if (!_this.options.multiExpand) {
|
198
|
+
$a.trigger('click.zf.accordion');
|
199
|
+
}
|
200
|
+
},
|
201
|
+
first: function first() {
|
202
|
+
var $a = _this.$tabs.first().find('.accordion-title').focus();
|
203
|
+
if (!_this.options.multiExpand) {
|
204
|
+
$a.trigger('click.zf.accordion');
|
205
|
+
}
|
206
|
+
},
|
207
|
+
last: function last() {
|
208
|
+
var $a = _this.$tabs.last().find('.accordion-title').focus();
|
361
209
|
if (!_this.options.multiExpand) {
|
362
210
|
$a.trigger('click.zf.accordion');
|
363
211
|
}
|
@@ -369,17 +217,16 @@ function (_Plugin) {
|
|
369
217
|
});
|
370
218
|
}
|
371
219
|
});
|
372
|
-
|
373
220
|
if (this.options.deepLink) {
|
374
221
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange', this._checkDeepLink);
|
375
222
|
}
|
376
223
|
}
|
224
|
+
|
377
225
|
/**
|
378
226
|
* Toggles the selected content pane's open/close state.
|
379
227
|
* @param {jQuery} $target - jQuery object of the pane to toggle (`.accordion-content`).
|
380
228
|
* @function
|
381
229
|
*/
|
382
|
-
|
383
230
|
}, {
|
384
231
|
key: "toggle",
|
385
232
|
value: function toggle($target) {
|
@@ -387,17 +234,14 @@ function (_Plugin) {
|
|
387
234
|
console.info('Cannot toggle an accordion that is disabled.');
|
388
235
|
return;
|
389
236
|
}
|
390
|
-
|
391
237
|
if ($target.parent().hasClass('is-active')) {
|
392
238
|
this.up($target);
|
393
239
|
} else {
|
394
240
|
this.down($target);
|
395
|
-
}
|
396
|
-
|
397
|
-
|
241
|
+
}
|
242
|
+
//either replace or update browser history
|
398
243
|
if (this.options.deepLink) {
|
399
244
|
var anchor = $target.prev('a').attr('href');
|
400
|
-
|
401
245
|
if (this.options.updateHistory) {
|
402
246
|
history.pushState({}, '', anchor);
|
403
247
|
} else {
|
@@ -405,13 +249,13 @@ function (_Plugin) {
|
|
405
249
|
}
|
406
250
|
}
|
407
251
|
}
|
252
|
+
|
408
253
|
/**
|
409
254
|
* Opens the accordion tab defined by `$target`.
|
410
255
|
* @param {jQuery} $target - Accordion pane to open (`.accordion-content`).
|
411
256
|
* @fires Accordion#down
|
412
257
|
* @function
|
413
258
|
*/
|
414
|
-
|
415
259
|
}, {
|
416
260
|
key: "down",
|
417
261
|
value: function down($target) {
|
@@ -419,9 +263,9 @@ function (_Plugin) {
|
|
419
263
|
console.info('Cannot call down on an accordion that is disabled.');
|
420
264
|
return;
|
421
265
|
}
|
422
|
-
|
423
266
|
if (this.options.multiExpand) this._openTab($target);else this._openSingleTab($target);
|
424
267
|
}
|
268
|
+
|
425
269
|
/**
|
426
270
|
* Closes the tab defined by `$target`.
|
427
271
|
* It may be ignored if the Accordion options don't allow it.
|
@@ -430,44 +274,43 @@ function (_Plugin) {
|
|
430
274
|
* @fires Accordion#up
|
431
275
|
* @function
|
432
276
|
*/
|
433
|
-
|
434
277
|
}, {
|
435
278
|
key: "up",
|
436
279
|
value: function up($target) {
|
437
280
|
if (this.$element.is('[disabled]')) {
|
438
281
|
console.info('Cannot call up on an accordion that is disabled.');
|
439
282
|
return;
|
440
|
-
}
|
441
|
-
|
283
|
+
}
|
442
284
|
|
285
|
+
// Don't close the item if it is already closed
|
443
286
|
var $targetItem = $target.parent();
|
444
|
-
if (!$targetItem.hasClass('is-active')) return;
|
287
|
+
if (!$targetItem.hasClass('is-active')) return;
|
445
288
|
|
289
|
+
// Don't close the item if there is no other active item (unless with `allowAllClosed`)
|
446
290
|
var $othersItems = $targetItem.siblings();
|
447
291
|
if (!this.options.allowAllClosed && !$othersItems.hasClass('is-active')) return;
|
448
|
-
|
449
292
|
this._closeTab($target);
|
450
293
|
}
|
294
|
+
|
451
295
|
/**
|
452
296
|
* Make the tab defined by `$target` the only opened tab, closing all others tabs.
|
453
297
|
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
454
298
|
* @function
|
455
299
|
* @private
|
456
300
|
*/
|
457
|
-
|
458
301
|
}, {
|
459
302
|
key: "_openSingleTab",
|
460
303
|
value: function _openSingleTab($target) {
|
461
304
|
// Close all the others active tabs.
|
462
305
|
var $activeContents = this.$element.children('.is-active').children('[data-tab-content]');
|
463
|
-
|
464
306
|
if ($activeContents.length) {
|
465
307
|
this._closeTab($activeContents.not($target));
|
466
|
-
}
|
467
|
-
|
308
|
+
}
|
468
309
|
|
310
|
+
// Then open the target.
|
469
311
|
this._openTab($target);
|
470
312
|
}
|
313
|
+
|
471
314
|
/**
|
472
315
|
* Opens the tab defined by `$target`.
|
473
316
|
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
@@ -475,21 +318,18 @@ function (_Plugin) {
|
|
475
318
|
* @function
|
476
319
|
* @private
|
477
320
|
*/
|
478
|
-
|
479
321
|
}, {
|
480
322
|
key: "_openTab",
|
481
323
|
value: function _openTab($target) {
|
482
324
|
var _this3 = this;
|
483
|
-
|
484
325
|
var $targetItem = $target.parent();
|
485
326
|
var targetContentId = $target.attr('aria-labelledby');
|
486
327
|
$target.attr('aria-hidden', false);
|
487
328
|
$targetItem.addClass('is-active');
|
488
329
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
489
|
-
'aria-expanded': true
|
490
|
-
'aria-selected': true
|
330
|
+
'aria-expanded': true
|
491
331
|
});
|
492
|
-
$target.
|
332
|
+
$target.finish().slideDown(this.options.slideSpeed, function () {
|
493
333
|
/**
|
494
334
|
* Fires when the tab is done opening.
|
495
335
|
* @event Accordion#down
|
@@ -497,6 +337,7 @@ function (_Plugin) {
|
|
497
337
|
_this3.$element.trigger('down.zf.accordion', [$target]);
|
498
338
|
});
|
499
339
|
}
|
340
|
+
|
500
341
|
/**
|
501
342
|
* Closes the tab defined by `$target`.
|
502
343
|
* @param {jQuery} $target - Accordion tab to close (`.accordion-content`).
|
@@ -504,21 +345,18 @@ function (_Plugin) {
|
|
504
345
|
* @function
|
505
346
|
* @private
|
506
347
|
*/
|
507
|
-
|
508
348
|
}, {
|
509
349
|
key: "_closeTab",
|
510
350
|
value: function _closeTab($target) {
|
511
351
|
var _this4 = this;
|
512
|
-
|
513
352
|
var $targetItem = $target.parent();
|
514
353
|
var targetContentId = $target.attr('aria-labelledby');
|
515
354
|
$target.attr('aria-hidden', true);
|
516
355
|
$targetItem.removeClass('is-active');
|
517
356
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
518
|
-
'aria-expanded': false
|
519
|
-
'aria-selected': false
|
357
|
+
'aria-expanded': false
|
520
358
|
});
|
521
|
-
$target.
|
359
|
+
$target.finish().slideUp(this.options.slideSpeed, function () {
|
522
360
|
/**
|
523
361
|
* Fires when the tab is done collapsing up.
|
524
362
|
* @event Accordion#up
|
@@ -526,43 +364,38 @@ function (_Plugin) {
|
|
526
364
|
_this4.$element.trigger('up.zf.accordion', [$target]);
|
527
365
|
});
|
528
366
|
}
|
367
|
+
|
529
368
|
/**
|
530
369
|
* Closes all active tabs
|
531
370
|
* @fires Accordion#up
|
532
371
|
* @function
|
533
372
|
* @private
|
534
373
|
*/
|
535
|
-
|
536
374
|
}, {
|
537
375
|
key: "_closeAllTabs",
|
538
376
|
value: function _closeAllTabs() {
|
539
377
|
var $activeTabs = this.$element.children('.is-active').children('[data-tab-content]');
|
540
|
-
|
541
378
|
if ($activeTabs.length) {
|
542
379
|
this._closeTab($activeTabs);
|
543
380
|
}
|
544
381
|
}
|
382
|
+
|
545
383
|
/**
|
546
384
|
* Destroys an instance of an accordion.
|
547
385
|
* @fires Accordion#destroyed
|
548
386
|
* @function
|
549
387
|
*/
|
550
|
-
|
551
388
|
}, {
|
552
389
|
key: "_destroy",
|
553
390
|
value: function _destroy() {
|
554
391
|
this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display', '');
|
555
392
|
this.$element.find('a').off('.zf.accordion');
|
556
|
-
|
557
393
|
if (this.options.deepLink) {
|
558
394
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange', this._checkDeepLink);
|
559
395
|
}
|
560
396
|
}
|
561
397
|
}]);
|
562
|
-
|
563
|
-
return Accordion;
|
564
|
-
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
|
565
|
-
|
398
|
+
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
|
566
399
|
Accordion.defaults = {
|
567
400
|
/**
|
568
401
|
* Amount of time to animate the opening of an accordion pane.
|
@@ -571,7 +404,6 @@ Accordion.defaults = {
|
|
571
404
|
* @default 250
|
572
405
|
*/
|
573
406
|
slideSpeed: 250,
|
574
|
-
|
575
407
|
/**
|
576
408
|
* Allow the accordion to have multiple open panes.
|
577
409
|
* @option
|
@@ -579,7 +411,6 @@ Accordion.defaults = {
|
|
579
411
|
* @default false
|
580
412
|
*/
|
581
413
|
multiExpand: false,
|
582
|
-
|
583
414
|
/**
|
584
415
|
* Allow the accordion to close all panes.
|
585
416
|
* @option
|
@@ -587,7 +418,6 @@ Accordion.defaults = {
|
|
587
418
|
* @default false
|
588
419
|
*/
|
589
420
|
allowAllClosed: false,
|
590
|
-
|
591
421
|
/**
|
592
422
|
* Link the location hash to the open pane.
|
593
423
|
* Set the location hash when the opened pane changes, and open and scroll to the corresponding pane when the location changes.
|
@@ -596,7 +426,6 @@ Accordion.defaults = {
|
|
596
426
|
* @default false
|
597
427
|
*/
|
598
428
|
deepLink: false,
|
599
|
-
|
600
429
|
/**
|
601
430
|
* If `deepLink` is enabled, adjust the deep link scroll to make sure the top of the accordion panel is visible
|
602
431
|
* @option
|
@@ -604,7 +433,6 @@ Accordion.defaults = {
|
|
604
433
|
* @default false
|
605
434
|
*/
|
606
435
|
deepLinkSmudge: false,
|
607
|
-
|
608
436
|
/**
|
609
437
|
* If `deepLinkSmudge` is enabled, animation time (ms) for the deep link adjustment
|
610
438
|
* @option
|
@@ -612,7 +440,6 @@ Accordion.defaults = {
|
|
612
440
|
* @default 300
|
613
441
|
*/
|
614
442
|
deepLinkSmudgeDelay: 300,
|
615
|
-
|
616
443
|
/**
|
617
444
|
* If `deepLinkSmudge` is enabled, the offset for scrollToTtop to prevent overlap by a sticky element at the top of the page
|
618
445
|
* @option
|
@@ -620,7 +447,6 @@ Accordion.defaults = {
|
|
620
447
|
* @default 0
|
621
448
|
*/
|
622
449
|
deepLinkSmudgeOffset: 0,
|
623
|
-
|
624
450
|
/**
|
625
451
|
* If `deepLink` is enabled, update the browser history with the open accordion
|
626
452
|
* @option
|
@@ -633,15 +459,23 @@ Accordion.defaults = {
|
|
633
459
|
|
634
460
|
/***/ }),
|
635
461
|
|
636
|
-
/***/
|
637
|
-
|
638
|
-
!***
|
639
|
-
|
640
|
-
|
641
|
-
|
462
|
+
/***/ "./foundation.core":
|
463
|
+
/*!****************************************************************************************************************************************************************!*\
|
464
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
465
|
+
\****************************************************************************************************************************************************************/
|
466
|
+
/***/ (function(module) {
|
467
|
+
|
468
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
469
|
+
|
470
|
+
/***/ }),
|
642
471
|
|
643
|
-
|
472
|
+
/***/ "./foundation.util.keyboard":
|
473
|
+
/*!****************************************************************************************************************************************************************************************************!*\
|
474
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
475
|
+
\****************************************************************************************************************************************************************************************************/
|
476
|
+
/***/ (function(module) {
|
644
477
|
|
478
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
645
479
|
|
646
480
|
/***/ }),
|
647
481
|
|
@@ -649,13 +483,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
|
|
649
483
|
/*!********************************************************************************************!*\
|
650
484
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
651
485
|
\********************************************************************************************/
|
652
|
-
|
653
|
-
/***/ (function(module, exports) {
|
486
|
+
/***/ (function(module) {
|
654
487
|
|
655
488
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
656
489
|
|
657
490
|
/***/ })
|
658
491
|
|
659
|
-
/******/
|
492
|
+
/******/ });
|
493
|
+
/************************************************************************/
|
494
|
+
/******/ // The module cache
|
495
|
+
/******/ var __webpack_module_cache__ = {};
|
496
|
+
/******/
|
497
|
+
/******/ // The require function
|
498
|
+
/******/ function __webpack_require__(moduleId) {
|
499
|
+
/******/ // Check if module is in cache
|
500
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
501
|
+
/******/ if (cachedModule !== undefined) {
|
502
|
+
/******/ return cachedModule.exports;
|
503
|
+
/******/ }
|
504
|
+
/******/ // Create a new module (and put it into the cache)
|
505
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
506
|
+
/******/ // no module.id needed
|
507
|
+
/******/ // no module.loaded needed
|
508
|
+
/******/ exports: {}
|
509
|
+
/******/ };
|
510
|
+
/******/
|
511
|
+
/******/ // Execute the module function
|
512
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
513
|
+
/******/
|
514
|
+
/******/ // Return the exports of the module
|
515
|
+
/******/ return module.exports;
|
516
|
+
/******/ }
|
517
|
+
/******/
|
518
|
+
/************************************************************************/
|
519
|
+
/******/ /* webpack/runtime/compat get default export */
|
520
|
+
/******/ !function() {
|
521
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
522
|
+
/******/ __webpack_require__.n = function(module) {
|
523
|
+
/******/ var getter = module && module.__esModule ?
|
524
|
+
/******/ function() { return module['default']; } :
|
525
|
+
/******/ function() { return module; };
|
526
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
527
|
+
/******/ return getter;
|
528
|
+
/******/ };
|
529
|
+
/******/ }();
|
530
|
+
/******/
|
531
|
+
/******/ /* webpack/runtime/define property getters */
|
532
|
+
/******/ !function() {
|
533
|
+
/******/ // define getter functions for harmony exports
|
534
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
535
|
+
/******/ for(var key in definition) {
|
536
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
537
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
538
|
+
/******/ }
|
539
|
+
/******/ }
|
540
|
+
/******/ };
|
541
|
+
/******/ }();
|
542
|
+
/******/
|
543
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
544
|
+
/******/ !function() {
|
545
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
546
|
+
/******/ }();
|
547
|
+
/******/
|
548
|
+
/******/ /* webpack/runtime/make namespace object */
|
549
|
+
/******/ !function() {
|
550
|
+
/******/ // define __esModule on exports
|
551
|
+
/******/ __webpack_require__.r = function(exports) {
|
552
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
553
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
554
|
+
/******/ }
|
555
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
556
|
+
/******/ };
|
557
|
+
/******/ }();
|
558
|
+
/******/
|
559
|
+
/************************************************************************/
|
560
|
+
var __webpack_exports__ = {};
|
561
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
562
|
+
!function() {
|
563
|
+
/*!****************************************************!*\
|
564
|
+
!*** ./js/entries/plugins/foundation.accordion.js ***!
|
565
|
+
\****************************************************/
|
566
|
+
__webpack_require__.r(__webpack_exports__);
|
567
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
568
|
+
/* harmony export */ Accordion: function() { return /* reexport safe */ _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__.Accordion; },
|
569
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; }
|
570
|
+
/* harmony export */ });
|
571
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
572
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
573
|
+
/* harmony import */ var _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.accordion */ "./js/foundation.accordion.js");
|
574
|
+
|
575
|
+
|
576
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_accordion__WEBPACK_IMPORTED_MODULE_1__.Accordion, 'Accordion');
|
577
|
+
|
578
|
+
}();
|
579
|
+
/******/ return __webpack_exports__;
|
580
|
+
/******/ })()
|
581
|
+
;
|
660
582
|
});
|
661
583
|
//# sourceMappingURL=foundation.accordion.js.map
|