foundation-rails 6.6.1.0 → 6.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +199 -146
- data/bower.json +3 -3
- data/foundation-rails.gemspec +4 -4
- data/gemfiles/rails_7.1.gemfile +10 -0
- data/gemfiles/rails_7.1.gemfile.lock +261 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +32 -28
- data/vendor/assets/js/foundation.cjs.js +2101 -3230
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +505 -379
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1779 -2911
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2544 -3970
- data/vendor/assets/js/foundation.js.map +1 -1
- data/vendor/assets/js/foundation.min.js +1 -1
- data/vendor/assets/js/foundation.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.js +277 -367
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.js +205 -277
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -262
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.js +314 -457
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.js +259 -359
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.js +291 -462
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +251 -349
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.js +455 -240
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.js +226 -342
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -288
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.js +285 -445
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.js +321 -486
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.js +253 -395
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.js +276 -437
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.js +176 -234
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.js +127 -161
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.js +126 -160
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
- data/vendor/assets/scss/_global.scss +20 -7
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_accordion.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +3 -3
- data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
- data/vendor/assets/scss/components/_button-group.scss +23 -13
- data/vendor/assets/scss/components/_button.scss +15 -15
- data/vendor/assets/scss/components/_callout.scss +4 -4
- data/vendor/assets/scss/components/_card.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +7 -6
- data/vendor/assets/scss/components/_drilldown.scss +2 -2
- data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
- data/vendor/assets/scss/components/_dropdown.scss +2 -2
- data/vendor/assets/scss/components/_flex.scss +2 -2
- data/vendor/assets/scss/components/_float.scss +2 -2
- data/vendor/assets/scss/components/_label.scss +3 -3
- data/vendor/assets/scss/components/_media-object.scss +2 -2
- data/vendor/assets/scss/components/_menu.scss +56 -21
- data/vendor/assets/scss/components/_off-canvas.scss +20 -18
- data/vendor/assets/scss/components/_orbit.scss +5 -5
- data/vendor/assets/scss/components/_pagination.scss +3 -3
- data/vendor/assets/scss/components/_progress-bar.scss +3 -3
- data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
- data/vendor/assets/scss/components/_reveal.scss +10 -5
- data/vendor/assets/scss/components/_slider.scss +7 -4
- data/vendor/assets/scss/components/_sticky.scss +2 -2
- data/vendor/assets/scss/components/_switch.scss +27 -4
- data/vendor/assets/scss/components/_table.scss +10 -9
- data/vendor/assets/scss/components/_tabs.scss +4 -4
- data/vendor/assets/scss/components/_thumbnail.scss +2 -2
- data/vendor/assets/scss/components/_title-bar.scss +2 -2
- data/vendor/assets/scss/components/_tooltip.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +9 -7
- data/vendor/assets/scss/components/_visibility.scss +48 -5
- data/vendor/assets/scss/forms/_checkbox.scss +2 -2
- data/vendor/assets/scss/forms/_error.scss +2 -2
- data/vendor/assets/scss/forms/_fieldset.scss +2 -2
- data/vendor/assets/scss/forms/_forms.scss +2 -2
- data/vendor/assets/scss/forms/_help-text.scss +2 -2
- data/vendor/assets/scss/forms/_input-group.scss +2 -2
- data/vendor/assets/scss/forms/_label.scss +4 -3
- data/vendor/assets/scss/forms/_meter.scss +2 -2
- data/vendor/assets/scss/forms/_progress.scss +3 -3
- data/vendor/assets/scss/forms/_range.scss +3 -3
- data/vendor/assets/scss/forms/_select.scss +7 -6
- data/vendor/assets/scss/forms/_text.scss +4 -4
- data/vendor/assets/scss/foundation.scss +3 -3
- data/vendor/assets/scss/grid/_classes.scss +3 -3
- data/vendor/assets/scss/grid/_column.scss +5 -4
- data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
- data/vendor/assets/scss/grid/_grid.scss +2 -2
- data/vendor/assets/scss/grid/_gutter.scss +3 -3
- data/vendor/assets/scss/grid/_layout.scss +7 -7
- data/vendor/assets/scss/grid/_position.scss +6 -6
- data/vendor/assets/scss/grid/_row.scss +3 -3
- data/vendor/assets/scss/grid/_size.scss +2 -2
- data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
- data/vendor/assets/scss/prototype/_arrow.scss +2 -2
- data/vendor/assets/scss/prototype/_border-box.scss +2 -2
- data/vendor/assets/scss/prototype/_border-none.scss +3 -3
- data/vendor/assets/scss/prototype/_bordered.scss +2 -2
- data/vendor/assets/scss/prototype/_box.scss +2 -2
- data/vendor/assets/scss/prototype/_display.scss +2 -2
- data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
- data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +11 -2
- data/vendor/assets/scss/prototype/_position.scss +2 -2
- data/vendor/assets/scss/prototype/_prototype.scss +2 -2
- data/vendor/assets/scss/prototype/_rotate.scss +9 -7
- data/vendor/assets/scss/prototype/_rounded.scss +2 -2
- data/vendor/assets/scss/prototype/_separator.scss +7 -7
- data/vendor/assets/scss/prototype/_shadow.scss +3 -4
- data/vendor/assets/scss/prototype/_sizing.scss +2 -2
- data/vendor/assets/scss/prototype/_spacing.scss +35 -35
- data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
- data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
- data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_alignment.scss +2 -2
- data/vendor/assets/scss/typography/_base.scss +8 -8
- data/vendor/assets/scss/typography/_helpers.scss +12 -4
- data/vendor/assets/scss/typography/_print.scss +4 -4
- data/vendor/assets/scss/typography/_typography.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +24 -21
- data/vendor/assets/scss/util/_color.scss +22 -10
- data/vendor/assets/scss/util/_direction.scss +3 -3
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +63 -11
- data/vendor/assets/scss/util/_mixins.scss +20 -16
- data/vendor/assets/scss/util/_selector.scss +3 -17
- data/vendor/assets/scss/util/_typography.scss +8 -8
- data/vendor/assets/scss/util/_unit.scss +16 -10
- data/vendor/assets/scss/util/_util.scss +2 -2
- data/vendor/assets/scss/util/_value.scss +5 -20
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
- data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
- data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
- data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
- data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
- data/vendor/assets/scss/xy-grid/_position.scss +14 -9
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
- metadata +21 -19
@@ -1,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,157 +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
|
-
|
294
|
-
|
295
|
-
} // Otherwise, close everything
|
137
|
+
}
|
138
|
+
// Otherwise, close everything
|
296
139
|
else {
|
297
|
-
|
298
|
-
|
299
|
-
|
140
|
+
_this2._closeAllTabs();
|
141
|
+
}
|
300
142
|
|
143
|
+
// Roll up a little to show the titles
|
301
144
|
if (_this2.options.deepLinkSmudge) {
|
302
|
-
|
145
|
+
(0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
303
146
|
var offset = _this2.$element.offset();
|
304
|
-
|
305
147
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
|
306
|
-
scrollTop: offset.top
|
148
|
+
scrollTop: offset.top - _this2.options.deepLinkSmudgeOffset
|
307
149
|
}, _this2.options.deepLinkSmudgeDelay);
|
308
150
|
});
|
309
151
|
}
|
152
|
+
|
310
153
|
/**
|
311
154
|
* Fires when the plugin has deeplinked at pageload
|
312
155
|
* @event Accordion#deeplink
|
313
156
|
*/
|
314
|
-
|
315
|
-
|
316
157
|
_this2.$element.trigger('deeplink.zf.accordion', [$link, $anchor]);
|
317
158
|
}
|
318
|
-
};
|
319
|
-
|
159
|
+
};
|
320
160
|
|
161
|
+
//use browser to open a tab, if it exists in this tabset
|
321
162
|
if (this.options.deepLink) {
|
322
163
|
this._checkDeepLink();
|
323
164
|
}
|
324
|
-
|
325
165
|
this._events();
|
326
|
-
|
327
166
|
this._isInitializing = false;
|
328
167
|
}
|
168
|
+
|
329
169
|
/**
|
330
170
|
* Adds event handlers for items within the accordion.
|
331
171
|
* @private
|
332
172
|
*/
|
333
|
-
|
334
173
|
}, {
|
335
174
|
key: "_events",
|
336
175
|
value: function _events() {
|
337
176
|
var _this = this;
|
338
|
-
|
339
177
|
this.$tabs.each(function () {
|
340
178
|
var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
341
179
|
var $tabContent = $elem.children('[data-tab-content]');
|
342
|
-
|
343
180
|
if ($tabContent.length) {
|
344
181
|
$elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion', function (e) {
|
345
182
|
e.preventDefault();
|
346
|
-
|
347
183
|
_this.toggle($tabContent);
|
348
184
|
}).on('keydown.zf.accordion', function (e) {
|
349
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__
|
185
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.handleKey(e, 'Accordion', {
|
350
186
|
toggle: function toggle() {
|
351
187
|
_this.toggle($tabContent);
|
352
188
|
},
|
353
189
|
next: function next() {
|
354
190
|
var $a = $elem.next().find('a').focus();
|
355
|
-
|
356
191
|
if (!_this.options.multiExpand) {
|
357
192
|
$a.trigger('click.zf.accordion');
|
358
193
|
}
|
359
194
|
},
|
360
195
|
previous: function previous() {
|
361
196
|
var $a = $elem.prev().find('a').focus();
|
362
|
-
|
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();
|
363
209
|
if (!_this.options.multiExpand) {
|
364
210
|
$a.trigger('click.zf.accordion');
|
365
211
|
}
|
@@ -371,17 +217,16 @@ function (_Plugin) {
|
|
371
217
|
});
|
372
218
|
}
|
373
219
|
});
|
374
|
-
|
375
220
|
if (this.options.deepLink) {
|
376
221
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange', this._checkDeepLink);
|
377
222
|
}
|
378
223
|
}
|
224
|
+
|
379
225
|
/**
|
380
226
|
* Toggles the selected content pane's open/close state.
|
381
227
|
* @param {jQuery} $target - jQuery object of the pane to toggle (`.accordion-content`).
|
382
228
|
* @function
|
383
229
|
*/
|
384
|
-
|
385
230
|
}, {
|
386
231
|
key: "toggle",
|
387
232
|
value: function toggle($target) {
|
@@ -389,17 +234,14 @@ function (_Plugin) {
|
|
389
234
|
console.info('Cannot toggle an accordion that is disabled.');
|
390
235
|
return;
|
391
236
|
}
|
392
|
-
|
393
237
|
if ($target.parent().hasClass('is-active')) {
|
394
238
|
this.up($target);
|
395
239
|
} else {
|
396
240
|
this.down($target);
|
397
|
-
}
|
398
|
-
|
399
|
-
|
241
|
+
}
|
242
|
+
//either replace or update browser history
|
400
243
|
if (this.options.deepLink) {
|
401
244
|
var anchor = $target.prev('a').attr('href');
|
402
|
-
|
403
245
|
if (this.options.updateHistory) {
|
404
246
|
history.pushState({}, '', anchor);
|
405
247
|
} else {
|
@@ -407,13 +249,13 @@ function (_Plugin) {
|
|
407
249
|
}
|
408
250
|
}
|
409
251
|
}
|
252
|
+
|
410
253
|
/**
|
411
254
|
* Opens the accordion tab defined by `$target`.
|
412
255
|
* @param {jQuery} $target - Accordion pane to open (`.accordion-content`).
|
413
256
|
* @fires Accordion#down
|
414
257
|
* @function
|
415
258
|
*/
|
416
|
-
|
417
259
|
}, {
|
418
260
|
key: "down",
|
419
261
|
value: function down($target) {
|
@@ -421,9 +263,9 @@ function (_Plugin) {
|
|
421
263
|
console.info('Cannot call down on an accordion that is disabled.');
|
422
264
|
return;
|
423
265
|
}
|
424
|
-
|
425
266
|
if (this.options.multiExpand) this._openTab($target);else this._openSingleTab($target);
|
426
267
|
}
|
268
|
+
|
427
269
|
/**
|
428
270
|
* Closes the tab defined by `$target`.
|
429
271
|
* It may be ignored if the Accordion options don't allow it.
|
@@ -432,44 +274,43 @@ function (_Plugin) {
|
|
432
274
|
* @fires Accordion#up
|
433
275
|
* @function
|
434
276
|
*/
|
435
|
-
|
436
277
|
}, {
|
437
278
|
key: "up",
|
438
279
|
value: function up($target) {
|
439
280
|
if (this.$element.is('[disabled]')) {
|
440
281
|
console.info('Cannot call up on an accordion that is disabled.');
|
441
282
|
return;
|
442
|
-
}
|
443
|
-
|
283
|
+
}
|
444
284
|
|
285
|
+
// Don't close the item if it is already closed
|
445
286
|
var $targetItem = $target.parent();
|
446
|
-
if (!$targetItem.hasClass('is-active')) return;
|
287
|
+
if (!$targetItem.hasClass('is-active')) return;
|
447
288
|
|
289
|
+
// Don't close the item if there is no other active item (unless with `allowAllClosed`)
|
448
290
|
var $othersItems = $targetItem.siblings();
|
449
291
|
if (!this.options.allowAllClosed && !$othersItems.hasClass('is-active')) return;
|
450
|
-
|
451
292
|
this._closeTab($target);
|
452
293
|
}
|
294
|
+
|
453
295
|
/**
|
454
296
|
* Make the tab defined by `$target` the only opened tab, closing all others tabs.
|
455
297
|
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
456
298
|
* @function
|
457
299
|
* @private
|
458
300
|
*/
|
459
|
-
|
460
301
|
}, {
|
461
302
|
key: "_openSingleTab",
|
462
303
|
value: function _openSingleTab($target) {
|
463
304
|
// Close all the others active tabs.
|
464
305
|
var $activeContents = this.$element.children('.is-active').children('[data-tab-content]');
|
465
|
-
|
466
306
|
if ($activeContents.length) {
|
467
307
|
this._closeTab($activeContents.not($target));
|
468
|
-
}
|
469
|
-
|
308
|
+
}
|
470
309
|
|
310
|
+
// Then open the target.
|
471
311
|
this._openTab($target);
|
472
312
|
}
|
313
|
+
|
473
314
|
/**
|
474
315
|
* Opens the tab defined by `$target`.
|
475
316
|
* @param {jQuery} $target - Accordion tab to open (`.accordion-content`).
|
@@ -477,21 +318,18 @@ function (_Plugin) {
|
|
477
318
|
* @function
|
478
319
|
* @private
|
479
320
|
*/
|
480
|
-
|
481
321
|
}, {
|
482
322
|
key: "_openTab",
|
483
323
|
value: function _openTab($target) {
|
484
324
|
var _this3 = this;
|
485
|
-
|
486
325
|
var $targetItem = $target.parent();
|
487
326
|
var targetContentId = $target.attr('aria-labelledby');
|
488
327
|
$target.attr('aria-hidden', false);
|
489
328
|
$targetItem.addClass('is-active');
|
490
329
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
491
|
-
'aria-expanded': true
|
492
|
-
'aria-selected': true
|
330
|
+
'aria-expanded': true
|
493
331
|
});
|
494
|
-
$target.slideDown(this.options.slideSpeed, function () {
|
332
|
+
$target.finish().slideDown(this.options.slideSpeed, function () {
|
495
333
|
/**
|
496
334
|
* Fires when the tab is done opening.
|
497
335
|
* @event Accordion#down
|
@@ -499,6 +337,7 @@ function (_Plugin) {
|
|
499
337
|
_this3.$element.trigger('down.zf.accordion', [$target]);
|
500
338
|
});
|
501
339
|
}
|
340
|
+
|
502
341
|
/**
|
503
342
|
* Closes the tab defined by `$target`.
|
504
343
|
* @param {jQuery} $target - Accordion tab to close (`.accordion-content`).
|
@@ -506,21 +345,18 @@ function (_Plugin) {
|
|
506
345
|
* @function
|
507
346
|
* @private
|
508
347
|
*/
|
509
|
-
|
510
348
|
}, {
|
511
349
|
key: "_closeTab",
|
512
350
|
value: function _closeTab($target) {
|
513
351
|
var _this4 = this;
|
514
|
-
|
515
352
|
var $targetItem = $target.parent();
|
516
353
|
var targetContentId = $target.attr('aria-labelledby');
|
517
354
|
$target.attr('aria-hidden', true);
|
518
355
|
$targetItem.removeClass('is-active');
|
519
356
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
|
520
|
-
'aria-expanded': false
|
521
|
-
'aria-selected': false
|
357
|
+
'aria-expanded': false
|
522
358
|
});
|
523
|
-
$target.slideUp(this.options.slideSpeed, function () {
|
359
|
+
$target.finish().slideUp(this.options.slideSpeed, function () {
|
524
360
|
/**
|
525
361
|
* Fires when the tab is done collapsing up.
|
526
362
|
* @event Accordion#up
|
@@ -528,43 +364,38 @@ function (_Plugin) {
|
|
528
364
|
_this4.$element.trigger('up.zf.accordion', [$target]);
|
529
365
|
});
|
530
366
|
}
|
367
|
+
|
531
368
|
/**
|
532
369
|
* Closes all active tabs
|
533
370
|
* @fires Accordion#up
|
534
371
|
* @function
|
535
372
|
* @private
|
536
373
|
*/
|
537
|
-
|
538
374
|
}, {
|
539
375
|
key: "_closeAllTabs",
|
540
376
|
value: function _closeAllTabs() {
|
541
377
|
var $activeTabs = this.$element.children('.is-active').children('[data-tab-content]');
|
542
|
-
|
543
378
|
if ($activeTabs.length) {
|
544
379
|
this._closeTab($activeTabs);
|
545
380
|
}
|
546
381
|
}
|
382
|
+
|
547
383
|
/**
|
548
384
|
* Destroys an instance of an accordion.
|
549
385
|
* @fires Accordion#destroyed
|
550
386
|
* @function
|
551
387
|
*/
|
552
|
-
|
553
388
|
}, {
|
554
389
|
key: "_destroy",
|
555
390
|
value: function _destroy() {
|
556
391
|
this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display', '');
|
557
392
|
this.$element.find('a').off('.zf.accordion');
|
558
|
-
|
559
393
|
if (this.options.deepLink) {
|
560
394
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange', this._checkDeepLink);
|
561
395
|
}
|
562
396
|
}
|
563
397
|
}]);
|
564
|
-
|
565
|
-
return Accordion;
|
566
|
-
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
|
567
|
-
|
398
|
+
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
|
568
399
|
Accordion.defaults = {
|
569
400
|
/**
|
570
401
|
* Amount of time to animate the opening of an accordion pane.
|
@@ -573,7 +404,6 @@ Accordion.defaults = {
|
|
573
404
|
* @default 250
|
574
405
|
*/
|
575
406
|
slideSpeed: 250,
|
576
|
-
|
577
407
|
/**
|
578
408
|
* Allow the accordion to have multiple open panes.
|
579
409
|
* @option
|
@@ -581,7 +411,6 @@ Accordion.defaults = {
|
|
581
411
|
* @default false
|
582
412
|
*/
|
583
413
|
multiExpand: false,
|
584
|
-
|
585
414
|
/**
|
586
415
|
* Allow the accordion to close all panes.
|
587
416
|
* @option
|
@@ -589,7 +418,6 @@ Accordion.defaults = {
|
|
589
418
|
* @default false
|
590
419
|
*/
|
591
420
|
allowAllClosed: false,
|
592
|
-
|
593
421
|
/**
|
594
422
|
* Link the location hash to the open pane.
|
595
423
|
* Set the location hash when the opened pane changes, and open and scroll to the corresponding pane when the location changes.
|
@@ -598,7 +426,6 @@ Accordion.defaults = {
|
|
598
426
|
* @default false
|
599
427
|
*/
|
600
428
|
deepLink: false,
|
601
|
-
|
602
429
|
/**
|
603
430
|
* If `deepLink` is enabled, adjust the deep link scroll to make sure the top of the accordion panel is visible
|
604
431
|
* @option
|
@@ -606,7 +433,6 @@ Accordion.defaults = {
|
|
606
433
|
* @default false
|
607
434
|
*/
|
608
435
|
deepLinkSmudge: false,
|
609
|
-
|
610
436
|
/**
|
611
437
|
* If `deepLinkSmudge` is enabled, animation time (ms) for the deep link adjustment
|
612
438
|
* @option
|
@@ -614,7 +440,13 @@ Accordion.defaults = {
|
|
614
440
|
* @default 300
|
615
441
|
*/
|
616
442
|
deepLinkSmudgeDelay: 300,
|
617
|
-
|
443
|
+
/**
|
444
|
+
* If `deepLinkSmudge` is enabled, the offset for scrollToTtop to prevent overlap by a sticky element at the top of the page
|
445
|
+
* @option
|
446
|
+
* @type {number}
|
447
|
+
* @default 0
|
448
|
+
*/
|
449
|
+
deepLinkSmudgeOffset: 0,
|
618
450
|
/**
|
619
451
|
* If `deepLink` is enabled, update the browser history with the open accordion
|
620
452
|
* @option
|
@@ -627,15 +459,23 @@ Accordion.defaults = {
|
|
627
459
|
|
628
460
|
/***/ }),
|
629
461
|
|
630
|
-
/***/
|
631
|
-
|
632
|
-
!***
|
633
|
-
|
634
|
-
|
635
|
-
|
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
|
+
/***/ }),
|
636
471
|
|
637
|
-
|
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) {
|
638
477
|
|
478
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
639
479
|
|
640
480
|
/***/ }),
|
641
481
|
|
@@ -643,13 +483,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
|
|
643
483
|
/*!********************************************************************************************!*\
|
644
484
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
645
485
|
\********************************************************************************************/
|
646
|
-
|
647
|
-
/***/ (function(module, exports) {
|
486
|
+
/***/ (function(module) {
|
648
487
|
|
649
488
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
650
489
|
|
651
490
|
/***/ })
|
652
491
|
|
653
|
-
/******/
|
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
|
+
;
|
654
582
|
});
|
655
583
|
//# sourceMappingURL=foundation.accordion.js.map
|