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,232 +1,71 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("./foundation.
|
3
|
+
module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.accordion"), require("./foundation.tabs"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.mediaQuery", "./foundation.accordion", "./foundation.tabs"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["
|
7
|
+
exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.accordion"), require("./foundation.tabs"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.responsiveAccordionTabs"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.
|
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 = 11);
|
95
|
-
/******/ })
|
96
|
-
/************************************************************************/
|
97
|
-
/******/ ({
|
98
|
-
|
99
|
-
/***/ "./foundation.accordion":
|
100
|
-
/*!************************************************************************************************************************************************************************************!*\
|
101
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.accordion"],"amd":"./foundation.accordion","commonjs":"./foundation.accordion","commonjs2":"./foundation.accordion"} ***!
|
102
|
-
\************************************************************************************************************************************************************************************/
|
103
|
-
/*! no static exports found */
|
104
|
-
/***/ (function(module, exports) {
|
105
|
-
|
106
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_accordion__;
|
107
|
-
|
108
|
-
/***/ }),
|
109
|
-
|
110
|
-
/***/ "./foundation.core":
|
111
|
-
/*!****************************************************************************************************************************************************************!*\
|
112
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
113
|
-
\****************************************************************************************************************************************************************/
|
114
|
-
/*! no static exports found */
|
115
|
-
/***/ (function(module, exports) {
|
116
|
-
|
117
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
118
|
-
|
119
|
-
/***/ }),
|
120
|
-
|
121
|
-
/***/ "./foundation.tabs":
|
122
|
-
/*!****************************************************************************************************************************************************************!*\
|
123
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.tabs"],"amd":"./foundation.tabs","commonjs":"./foundation.tabs","commonjs2":"./foundation.tabs"} ***!
|
124
|
-
\****************************************************************************************************************************************************************/
|
125
|
-
/*! no static exports found */
|
126
|
-
/***/ (function(module, exports) {
|
127
|
-
|
128
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_tabs__;
|
129
|
-
|
130
|
-
/***/ }),
|
131
|
-
|
132
|
-
/***/ "./foundation.util.mediaQuery":
|
133
|
-
/*!************************************************************************************************************************************************************************************************************!*\
|
134
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
|
135
|
-
\************************************************************************************************************************************************************************************************************/
|
136
|
-
/*! no static exports found */
|
137
|
-
/***/ (function(module, exports) {
|
138
|
-
|
139
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
|
140
|
-
|
141
|
-
/***/ }),
|
142
|
-
|
143
|
-
/***/ "./js/entries/plugins/foundation.responsiveAccordionTabs.js":
|
144
|
-
/*!******************************************************************!*\
|
145
|
-
!*** ./js/entries/plugins/foundation.responsiveAccordionTabs.js ***!
|
146
|
-
\******************************************************************/
|
147
|
-
/*! exports provided: Foundation, ResponsiveAccordionTabs */
|
148
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
149
|
-
|
150
|
-
"use strict";
|
151
|
-
__webpack_require__.r(__webpack_exports__);
|
152
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
153
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
154
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
155
|
-
|
156
|
-
/* harmony import */ var _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.responsiveAccordionTabs */ "./js/foundation.responsiveAccordionTabs.js");
|
157
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResponsiveAccordionTabs", function() { return _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__["ResponsiveAccordionTabs"]; });
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__["ResponsiveAccordionTabs"], 'ResponsiveAccordionTabs');
|
162
|
-
|
163
|
-
|
164
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.responsiveAccordionTabs"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.accordion"], root["__FOUNDATION_EXTERNAL__"]["foundation.tabs"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_accordion__, __WEBPACK_EXTERNAL_MODULE__foundation_tabs__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
165
14
|
|
166
15
|
/***/ "./js/foundation.responsiveAccordionTabs.js":
|
167
16
|
/*!**************************************************!*\
|
168
17
|
!*** ./js/foundation.responsiveAccordionTabs.js ***!
|
169
18
|
\**************************************************/
|
170
|
-
|
171
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
19
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
172
20
|
|
173
|
-
"use strict";
|
174
21
|
__webpack_require__.r(__webpack_exports__);
|
175
|
-
/* harmony export
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
23
|
+
/* harmony export */ ResponsiveAccordionTabs: function() { return /* binding */ ResponsiveAccordionTabs; }
|
24
|
+
/* harmony export */ });
|
176
25
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
177
26
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
178
27
|
/* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.mediaQuery */ "./foundation.util.mediaQuery");
|
179
28
|
/* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__);
|
180
|
-
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.core.
|
29
|
+
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
|
181
30
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__);
|
182
31
|
/* harmony import */ var _foundation_accordion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.accordion */ "./foundation.accordion");
|
183
32
|
/* harmony import */ var _foundation_accordion__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_accordion__WEBPACK_IMPORTED_MODULE_3__);
|
184
33
|
/* harmony import */ var _foundation_tabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.tabs */ "./foundation.tabs");
|
185
34
|
/* harmony import */ var _foundation_tabs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_foundation_tabs__WEBPACK_IMPORTED_MODULE_4__);
|
35
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
36
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
37
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
38
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
39
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
40
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
41
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
42
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
43
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
44
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
45
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
46
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
47
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
186
48
|
|
187
49
|
|
188
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
189
|
-
|
190
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
191
|
-
|
192
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
193
|
-
|
194
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
195
|
-
|
196
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
197
|
-
|
198
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
199
|
-
|
200
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
201
|
-
|
202
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
203
|
-
|
204
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
205
|
-
|
206
50
|
|
207
51
|
|
208
52
|
|
209
53
|
|
210
54
|
|
211
|
-
|
212
|
-
|
55
|
+
// The plugin matches the plugin classes with these plugin instances.
|
213
56
|
var MenuPlugins = {
|
214
57
|
tabs: {
|
215
58
|
cssClass: 'tabs',
|
216
|
-
plugin: _foundation_tabs__WEBPACK_IMPORTED_MODULE_4__
|
59
|
+
plugin: _foundation_tabs__WEBPACK_IMPORTED_MODULE_4__.Tabs,
|
217
60
|
open: function open(plugin, target) {
|
218
61
|
return plugin.selectTab(target);
|
219
62
|
},
|
220
|
-
close: null
|
221
|
-
/* not supported */
|
222
|
-
,
|
223
|
-
toggle: null
|
224
|
-
/* not supported */
|
225
|
-
|
63
|
+
close: null /* not supported */,
|
64
|
+
toggle: null /* not supported */
|
226
65
|
},
|
227
66
|
accordion: {
|
228
67
|
cssClass: 'accordion',
|
229
|
-
plugin: _foundation_accordion__WEBPACK_IMPORTED_MODULE_3__
|
68
|
+
plugin: _foundation_accordion__WEBPACK_IMPORTED_MODULE_3__.Accordion,
|
230
69
|
open: function open(plugin, target) {
|
231
70
|
return plugin.down(jquery__WEBPACK_IMPORTED_MODULE_0___default()(target));
|
232
71
|
},
|
@@ -238,6 +77,7 @@ var MenuPlugins = {
|
|
238
77
|
}
|
239
78
|
}
|
240
79
|
};
|
80
|
+
|
241
81
|
/**
|
242
82
|
* ResponsiveAccordionTabs module.
|
243
83
|
* @module foundation.responsiveAccordionTabs
|
@@ -245,20 +85,14 @@ var MenuPlugins = {
|
|
245
85
|
* @requires foundation.accordion
|
246
86
|
* @requires foundation.tabs
|
247
87
|
*/
|
248
|
-
|
249
|
-
var ResponsiveAccordionTabs =
|
250
|
-
/*#__PURE__*/
|
251
|
-
function (_Plugin) {
|
252
|
-
_inherits(ResponsiveAccordionTabs, _Plugin);
|
253
|
-
|
88
|
+
var ResponsiveAccordionTabs = /*#__PURE__*/function (_Plugin) {
|
254
89
|
function ResponsiveAccordionTabs(element, options) {
|
255
90
|
var _this2;
|
256
|
-
|
257
91
|
_classCallCheck(this, ResponsiveAccordionTabs);
|
258
|
-
|
259
|
-
|
260
|
-
return _possibleConstructorReturn(_this2, _this2.options.reflow && _this2.storezfData || _assertThisInitialized(_this2));
|
92
|
+
_this2 = _callSuper(this, ResponsiveAccordionTabs, [element, options]);
|
93
|
+
return _possibleConstructorReturn(_this2, _this2.options.reflow && _this2.storezfData || _this2);
|
261
94
|
}
|
95
|
+
|
262
96
|
/**
|
263
97
|
* Creates a new instance of a responsive accordion tabs.
|
264
98
|
* @class
|
@@ -267,63 +101,55 @@ function (_Plugin) {
|
|
267
101
|
* @param {jQuery} element - jQuery object to make into Responsive Accordion Tabs.
|
268
102
|
* @param {Object} options - Overrides to the default plugin settings.
|
269
103
|
*/
|
270
|
-
|
271
|
-
|
272
|
-
_createClass(ResponsiveAccordionTabs, [{
|
104
|
+
_inherits(ResponsiveAccordionTabs, _Plugin);
|
105
|
+
return _createClass(ResponsiveAccordionTabs, [{
|
273
106
|
key: "_setup",
|
274
107
|
value: function _setup(element, options) {
|
275
108
|
this.$element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(element);
|
276
109
|
this.$element.data('zfPluginBase', this);
|
277
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
110
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, ResponsiveAccordionTabs.defaults, this.$element.data(), options);
|
278
111
|
this.rules = this.$element.data('responsive-accordion-tabs');
|
279
112
|
this.currentMq = null;
|
280
113
|
this.currentRule = null;
|
281
114
|
this.currentPlugin = null;
|
282
115
|
this.className = 'ResponsiveAccordionTabs'; // ie9 back compat
|
283
|
-
|
284
116
|
if (!this.$element.attr('id')) {
|
285
|
-
this.$element.attr('id',
|
117
|
+
this.$element.attr('id', (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6, 'responsiveaccordiontabs'));
|
286
118
|
}
|
287
|
-
|
288
|
-
;
|
289
|
-
|
290
119
|
this._init();
|
291
|
-
|
292
120
|
this._events();
|
293
121
|
}
|
122
|
+
|
294
123
|
/**
|
295
124
|
* Initializes the Menu by parsing the classes from the 'data-responsive-accordion-tabs' attribute on the element.
|
296
125
|
* @function
|
297
126
|
* @private
|
298
127
|
*/
|
299
|
-
|
300
128
|
}, {
|
301
129
|
key: "_init",
|
302
130
|
value: function _init() {
|
303
|
-
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__
|
304
|
-
|
131
|
+
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();
|
305
132
|
|
133
|
+
// The first time an Interchange plugin is initialized, this.rules is converted from a string of "classes" to an object of rules
|
306
134
|
if (typeof this.rules === 'string') {
|
307
|
-
var rulesTree = {};
|
135
|
+
var rulesTree = {};
|
308
136
|
|
309
|
-
|
137
|
+
// Parse rules from "classes" pulled from data attribute
|
138
|
+
var rules = this.rules.split(' ');
|
310
139
|
|
140
|
+
// Iterate through every rule found
|
311
141
|
for (var i = 0; i < rules.length; i++) {
|
312
142
|
var rule = rules[i].split('-');
|
313
143
|
var ruleSize = rule.length > 1 ? rule[0] : 'small';
|
314
144
|
var rulePlugin = rule.length > 1 ? rule[1] : rule[0];
|
315
|
-
|
316
145
|
if (MenuPlugins[rulePlugin] !== null) {
|
317
146
|
rulesTree[ruleSize] = MenuPlugins[rulePlugin];
|
318
147
|
}
|
319
148
|
}
|
320
|
-
|
321
149
|
this.rules = rulesTree;
|
322
150
|
}
|
323
|
-
|
324
151
|
this._getAllOptions();
|
325
|
-
|
326
|
-
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default.a.isEmptyObject(this.rules)) {
|
152
|
+
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default().isEmptyObject(this.rules)) {
|
327
153
|
this._checkMediaQueries();
|
328
154
|
}
|
329
155
|
}
|
@@ -332,78 +158,77 @@ function (_Plugin) {
|
|
332
158
|
value: function _getAllOptions() {
|
333
159
|
//get all defaults and options
|
334
160
|
var _this = this;
|
335
|
-
|
336
161
|
_this.allOptions = {};
|
337
|
-
|
338
162
|
for (var key in MenuPlugins) {
|
339
163
|
if (MenuPlugins.hasOwnProperty(key)) {
|
340
164
|
var obj = MenuPlugins[key];
|
341
|
-
|
342
165
|
try {
|
343
166
|
var dummyPlugin = jquery__WEBPACK_IMPORTED_MODULE_0___default()('<ul></ul>');
|
344
167
|
var tmpPlugin = new obj.plugin(dummyPlugin, _this.options);
|
345
|
-
|
346
168
|
for (var keyKey in tmpPlugin.options) {
|
347
169
|
if (tmpPlugin.options.hasOwnProperty(keyKey) && keyKey !== 'zfPlugin') {
|
348
170
|
var objObj = tmpPlugin.options[keyKey];
|
349
171
|
_this.allOptions[keyKey] = objObj;
|
350
172
|
}
|
351
173
|
}
|
352
|
-
|
353
174
|
tmpPlugin.destroy();
|
354
|
-
} catch (e) {
|
175
|
+
} catch (e) {
|
176
|
+
console.warn("Warning: Problems getting Accordion/Tab options: ".concat(e));
|
177
|
+
}
|
355
178
|
}
|
356
179
|
}
|
357
180
|
}
|
181
|
+
|
358
182
|
/**
|
359
183
|
* Initializes events for the Menu.
|
360
184
|
* @function
|
361
185
|
* @private
|
362
186
|
*/
|
363
|
-
|
364
187
|
}, {
|
365
188
|
key: "_events",
|
366
189
|
value: function _events() {
|
367
190
|
this._changedZfMediaQueryHandler = this._checkMediaQueries.bind(this);
|
368
191
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery', this._changedZfMediaQueryHandler);
|
369
192
|
}
|
193
|
+
|
370
194
|
/**
|
371
195
|
* Checks the current screen width against available media queries. If the media query has changed, and the plugin needed has changed, the plugins will swap out.
|
372
196
|
* @function
|
373
197
|
* @private
|
374
198
|
*/
|
375
|
-
|
376
199
|
}, {
|
377
200
|
key: "_checkMediaQueries",
|
378
201
|
value: function _checkMediaQueries() {
|
379
202
|
var matchedMq,
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"].atLeast(key)) {
|
203
|
+
_this = this;
|
204
|
+
// Iterate through each rule and find the last matching rule
|
205
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default().each(this.rules, function (key) {
|
206
|
+
if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.atLeast(key)) {
|
385
207
|
matchedMq = key;
|
386
208
|
}
|
387
|
-
});
|
209
|
+
});
|
388
210
|
|
389
|
-
|
211
|
+
// No match? No dice
|
212
|
+
if (!matchedMq) return;
|
390
213
|
|
391
|
-
|
214
|
+
// Plugin already initialized? We good
|
215
|
+
if (this.currentPlugin instanceof this.rules[matchedMq].plugin) return;
|
392
216
|
|
393
|
-
|
217
|
+
// Remove existing plugin-specific CSS classes
|
218
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default().each(MenuPlugins, function (key, value) {
|
394
219
|
_this.$element.removeClass(value.cssClass);
|
395
|
-
});
|
220
|
+
});
|
396
221
|
|
397
|
-
|
222
|
+
// Add the CSS class for the new plugin
|
223
|
+
this.$element.addClass(this.rules[matchedMq].cssClass);
|
398
224
|
|
225
|
+
// Create an instance of the new plugin
|
399
226
|
if (this.currentPlugin) {
|
400
227
|
//don't know why but on nested elements data zfPlugin get's lost
|
401
228
|
if (!this.currentPlugin.$element.data('zfPlugin') && this.storezfData) this.currentPlugin.$element.data('zfPlugin', this.storezfData);
|
402
229
|
this.currentPlugin.destroy();
|
403
230
|
}
|
404
|
-
|
405
231
|
this._handleMarkup(this.rules[matchedMq].cssClass);
|
406
|
-
|
407
232
|
this.currentRule = this.rules[matchedMq];
|
408
233
|
this.currentPlugin = new this.currentRule.plugin(this.$element, this.options);
|
409
234
|
this.storezfData = this.currentPlugin.$element.data('zfPlugin');
|
@@ -412,30 +237,23 @@ function (_Plugin) {
|
|
412
237
|
key: "_handleMarkup",
|
413
238
|
value: function _handleMarkup(toSet) {
|
414
239
|
var _this = this,
|
415
|
-
|
416
|
-
|
240
|
+
fromString = 'accordion';
|
417
241
|
var $panels = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-tabs-content=' + this.$element.attr('id') + ']');
|
418
242
|
if ($panels.length) fromString = 'tabs';
|
419
|
-
|
420
243
|
if (fromString === toSet) {
|
421
244
|
return;
|
422
245
|
}
|
423
|
-
|
424
|
-
;
|
425
246
|
var tabsTitle = _this.allOptions.linkClass ? _this.allOptions.linkClass : 'tabs-title';
|
426
247
|
var tabsPanel = _this.allOptions.panelClass ? _this.allOptions.panelClass : 'tabs-panel';
|
427
248
|
this.$element.removeAttr('role');
|
428
249
|
var $liHeads = this.$element.children('.' + tabsTitle + ',[data-accordion-item]').removeClass(tabsTitle).removeClass('accordion-item').removeAttr('data-accordion-item');
|
429
250
|
var $liHeadsA = $liHeads.children('a').removeClass('accordion-title');
|
430
|
-
|
431
251
|
if (fromString === 'tabs') {
|
432
252
|
$panels = $panels.children('.' + tabsPanel).removeClass(tabsPanel).removeAttr('role').removeAttr('aria-hidden').removeAttr('aria-labelledby');
|
433
253
|
$panels.children('a').removeAttr('role').removeAttr('aria-controls').removeAttr('aria-selected');
|
434
254
|
} else {
|
435
255
|
$panels = $liHeads.children('[data-tab-content]').removeClass('accordion-content');
|
436
256
|
}
|
437
|
-
|
438
|
-
;
|
439
257
|
$panels.css({
|
440
258
|
display: '',
|
441
259
|
visibility: ''
|
@@ -444,7 +262,6 @@ function (_Plugin) {
|
|
444
262
|
display: '',
|
445
263
|
visibility: ''
|
446
264
|
});
|
447
|
-
|
448
265
|
if (toSet === 'accordion') {
|
449
266
|
$panels.each(function (key, value) {
|
450
267
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).appendTo($liHeads.get(key)).addClass('accordion-content').attr('data-tab-content', '').removeClass('is-active').css({
|
@@ -457,20 +274,16 @@ function (_Plugin) {
|
|
457
274
|
} else if (toSet === 'tabs') {
|
458
275
|
var $tabsContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-tabs-content=' + _this.$element.attr('id') + ']');
|
459
276
|
var $placeholder = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#tabs-placeholder-' + _this.$element.attr('id'));
|
460
|
-
|
461
277
|
if ($placeholder.length) {
|
462
278
|
$tabsContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="tabs-content"></div>').insertAfter($placeholder).attr('data-tabs-content', _this.$element.attr('id'));
|
463
279
|
$placeholder.remove();
|
464
280
|
} else {
|
465
281
|
$tabsContent = jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="tabs-content"></div>').insertAfter(_this.$element).attr('data-tabs-content', _this.$element.attr('id'));
|
466
282
|
}
|
467
|
-
|
468
|
-
;
|
469
283
|
$panels.each(function (key, value) {
|
470
284
|
var tempValue = jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).appendTo($tabsContent).addClass(tabsPanel);
|
471
285
|
var hash = $liHeadsA.get(key).hash.slice(1);
|
472
|
-
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id') ||
|
473
|
-
|
286
|
+
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id') || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6, 'accordion');
|
474
287
|
if (hash !== id) {
|
475
288
|
if (hash !== '') {
|
476
289
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id', hash);
|
@@ -479,24 +292,17 @@ function (_Plugin) {
|
|
479
292
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id', hash);
|
480
293
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeadsA.get(key)).attr('href', jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeadsA.get(key)).attr('href').replace('#', '') + '#' + hash);
|
481
294
|
}
|
482
|
-
|
483
|
-
;
|
484
295
|
}
|
485
|
-
|
486
|
-
;
|
487
296
|
var isActive = jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeads.get(key)).hasClass('is-active');
|
488
|
-
|
489
297
|
if (isActive) {
|
490
298
|
tempValue.addClass('is-active');
|
491
299
|
}
|
492
|
-
|
493
|
-
;
|
494
300
|
});
|
495
301
|
$liHeads.addClass(tabsTitle);
|
496
302
|
}
|
497
|
-
|
498
303
|
;
|
499
304
|
}
|
305
|
+
|
500
306
|
/**
|
501
307
|
* Opens the plugin pane defined by `target`.
|
502
308
|
* @param {jQuery | String} target - jQuery object or string of the id of the pane to open.
|
@@ -504,53 +310,49 @@ function (_Plugin) {
|
|
504
310
|
* @see Tabs.selectTab
|
505
311
|
* @function
|
506
312
|
*/
|
507
|
-
|
508
313
|
}, {
|
509
314
|
key: "open",
|
510
|
-
value: function open(
|
315
|
+
value: function open() {
|
511
316
|
if (this.currentRule && typeof this.currentRule.open === 'function') {
|
512
317
|
var _this$currentRule;
|
513
|
-
|
514
318
|
return (_this$currentRule = this.currentRule).open.apply(_this$currentRule, [this.currentPlugin].concat(Array.prototype.slice.call(arguments)));
|
515
319
|
}
|
516
320
|
}
|
321
|
+
|
517
322
|
/**
|
518
323
|
* Closes the plugin pane defined by `target`. Not availaible for Tabs.
|
519
324
|
* @param {jQuery | String} target - jQuery object or string of the id of the pane to close.
|
520
325
|
* @see Accordion.up
|
521
326
|
* @function
|
522
327
|
*/
|
523
|
-
|
524
328
|
}, {
|
525
329
|
key: "close",
|
526
|
-
value: function close(
|
330
|
+
value: function close() {
|
527
331
|
if (this.currentRule && typeof this.currentRule.close === 'function') {
|
528
332
|
var _this$currentRule2;
|
529
|
-
|
530
333
|
return (_this$currentRule2 = this.currentRule).close.apply(_this$currentRule2, [this.currentPlugin].concat(Array.prototype.slice.call(arguments)));
|
531
334
|
}
|
532
335
|
}
|
336
|
+
|
533
337
|
/**
|
534
338
|
* Toggles the plugin pane defined by `target`. Not availaible for Tabs.
|
535
339
|
* @param {jQuery | String} target - jQuery object or string of the id of the pane to toggle.
|
536
340
|
* @see Accordion.toggle
|
537
341
|
* @function
|
538
342
|
*/
|
539
|
-
|
540
343
|
}, {
|
541
344
|
key: "toggle",
|
542
|
-
value: function toggle(
|
345
|
+
value: function toggle() {
|
543
346
|
if (this.currentRule && typeof this.currentRule.toggle === 'function') {
|
544
347
|
var _this$currentRule3;
|
545
|
-
|
546
348
|
return (_this$currentRule3 = this.currentRule).toggle.apply(_this$currentRule3, [this.currentPlugin].concat(Array.prototype.slice.call(arguments)));
|
547
349
|
}
|
548
350
|
}
|
351
|
+
|
549
352
|
/**
|
550
353
|
* Destroys the instance of the current plugin on this element, as well as the window resize handler that switches the plugins out.
|
551
354
|
* @function
|
552
355
|
*/
|
553
|
-
|
554
356
|
}, {
|
555
357
|
key: "_destroy",
|
556
358
|
value: function _destroy() {
|
@@ -558,24 +360,49 @@ function (_Plugin) {
|
|
558
360
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery', this._changedZfMediaQueryHandler);
|
559
361
|
}
|
560
362
|
}]);
|
363
|
+
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.Plugin);
|
364
|
+
ResponsiveAccordionTabs.defaults = {};
|
561
365
|
|
562
|
-
return ResponsiveAccordionTabs;
|
563
|
-
}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__["Plugin"]);
|
564
366
|
|
565
|
-
|
367
|
+
/***/ }),
|
566
368
|
|
369
|
+
/***/ "./foundation.accordion":
|
370
|
+
/*!************************************************************************************************************************************************************************************!*\
|
371
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.accordion"],"amd":"./foundation.accordion","commonjs":"./foundation.accordion","commonjs2":"./foundation.accordion"} ***!
|
372
|
+
\************************************************************************************************************************************************************************************/
|
373
|
+
/***/ (function(module) {
|
374
|
+
|
375
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_accordion__;
|
567
376
|
|
568
377
|
/***/ }),
|
569
378
|
|
570
|
-
/***/
|
571
|
-
|
572
|
-
!***
|
573
|
-
|
574
|
-
|
575
|
-
/***/ (function(module, exports, __webpack_require__) {
|
379
|
+
/***/ "./foundation.core":
|
380
|
+
/*!****************************************************************************************************************************************************************!*\
|
381
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
382
|
+
\****************************************************************************************************************************************************************/
|
383
|
+
/***/ (function(module) {
|
576
384
|
|
577
|
-
module.exports =
|
385
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
386
|
+
|
387
|
+
/***/ }),
|
578
388
|
|
389
|
+
/***/ "./foundation.tabs":
|
390
|
+
/*!****************************************************************************************************************************************************************!*\
|
391
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.tabs"],"amd":"./foundation.tabs","commonjs":"./foundation.tabs","commonjs2":"./foundation.tabs"} ***!
|
392
|
+
\****************************************************************************************************************************************************************/
|
393
|
+
/***/ (function(module) {
|
394
|
+
|
395
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_tabs__;
|
396
|
+
|
397
|
+
/***/ }),
|
398
|
+
|
399
|
+
/***/ "./foundation.util.mediaQuery":
|
400
|
+
/*!************************************************************************************************************************************************************************************************************!*\
|
401
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
|
402
|
+
\************************************************************************************************************************************************************************************************************/
|
403
|
+
/***/ (function(module) {
|
404
|
+
|
405
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
|
579
406
|
|
580
407
|
/***/ }),
|
581
408
|
|
@@ -583,13 +410,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
|
|
583
410
|
/*!********************************************************************************************!*\
|
584
411
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
585
412
|
\********************************************************************************************/
|
586
|
-
|
587
|
-
/***/ (function(module, exports) {
|
413
|
+
/***/ (function(module) {
|
588
414
|
|
589
415
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
590
416
|
|
591
417
|
/***/ })
|
592
418
|
|
593
|
-
/******/
|
419
|
+
/******/ });
|
420
|
+
/************************************************************************/
|
421
|
+
/******/ // The module cache
|
422
|
+
/******/ var __webpack_module_cache__ = {};
|
423
|
+
/******/
|
424
|
+
/******/ // The require function
|
425
|
+
/******/ function __webpack_require__(moduleId) {
|
426
|
+
/******/ // Check if module is in cache
|
427
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
428
|
+
/******/ if (cachedModule !== undefined) {
|
429
|
+
/******/ return cachedModule.exports;
|
430
|
+
/******/ }
|
431
|
+
/******/ // Create a new module (and put it into the cache)
|
432
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
433
|
+
/******/ // no module.id needed
|
434
|
+
/******/ // no module.loaded needed
|
435
|
+
/******/ exports: {}
|
436
|
+
/******/ };
|
437
|
+
/******/
|
438
|
+
/******/ // Execute the module function
|
439
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
440
|
+
/******/
|
441
|
+
/******/ // Return the exports of the module
|
442
|
+
/******/ return module.exports;
|
443
|
+
/******/ }
|
444
|
+
/******/
|
445
|
+
/************************************************************************/
|
446
|
+
/******/ /* webpack/runtime/compat get default export */
|
447
|
+
/******/ !function() {
|
448
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
449
|
+
/******/ __webpack_require__.n = function(module) {
|
450
|
+
/******/ var getter = module && module.__esModule ?
|
451
|
+
/******/ function() { return module['default']; } :
|
452
|
+
/******/ function() { return module; };
|
453
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
454
|
+
/******/ return getter;
|
455
|
+
/******/ };
|
456
|
+
/******/ }();
|
457
|
+
/******/
|
458
|
+
/******/ /* webpack/runtime/define property getters */
|
459
|
+
/******/ !function() {
|
460
|
+
/******/ // define getter functions for harmony exports
|
461
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
462
|
+
/******/ for(var key in definition) {
|
463
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
464
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
465
|
+
/******/ }
|
466
|
+
/******/ }
|
467
|
+
/******/ };
|
468
|
+
/******/ }();
|
469
|
+
/******/
|
470
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
471
|
+
/******/ !function() {
|
472
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
473
|
+
/******/ }();
|
474
|
+
/******/
|
475
|
+
/******/ /* webpack/runtime/make namespace object */
|
476
|
+
/******/ !function() {
|
477
|
+
/******/ // define __esModule on exports
|
478
|
+
/******/ __webpack_require__.r = function(exports) {
|
479
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
480
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
481
|
+
/******/ }
|
482
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
483
|
+
/******/ };
|
484
|
+
/******/ }();
|
485
|
+
/******/
|
486
|
+
/************************************************************************/
|
487
|
+
var __webpack_exports__ = {};
|
488
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
489
|
+
!function() {
|
490
|
+
/*!******************************************************************!*\
|
491
|
+
!*** ./js/entries/plugins/foundation.responsiveAccordionTabs.js ***!
|
492
|
+
\******************************************************************/
|
493
|
+
__webpack_require__.r(__webpack_exports__);
|
494
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
495
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
|
496
|
+
/* harmony export */ ResponsiveAccordionTabs: function() { return /* reexport safe */ _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__.ResponsiveAccordionTabs; }
|
497
|
+
/* harmony export */ });
|
498
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
499
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
500
|
+
/* harmony import */ var _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.responsiveAccordionTabs */ "./js/foundation.responsiveAccordionTabs.js");
|
501
|
+
|
502
|
+
|
503
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_1__.ResponsiveAccordionTabs, 'ResponsiveAccordionTabs');
|
504
|
+
|
505
|
+
}();
|
506
|
+
/******/ return __webpack_exports__;
|
507
|
+
/******/ })()
|
508
|
+
;
|
594
509
|
});
|
595
510
|
//# sourceMappingURL=foundation.responsiveAccordionTabs.js.map
|