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.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -0
  4. data/Appraisals +4 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +199 -146
  7. data/bower.json +3 -3
  8. data/foundation-rails.gemspec +4 -4
  9. data/gemfiles/rails_7.1.gemfile +10 -0
  10. data/gemfiles/rails_7.1.gemfile.lock +261 -0
  11. data/lib/foundation/rails/version.rb +1 -1
  12. data/lib/generators/foundation/templates/_settings.scss +32 -28
  13. data/vendor/assets/js/foundation.cjs.js +2101 -3230
  14. data/vendor/assets/js/foundation.cjs.js.map +1 -1
  15. data/vendor/assets/js/foundation.es6.js +505 -379
  16. data/vendor/assets/js/foundation.es6.js.map +1 -1
  17. data/vendor/assets/js/foundation.esm.js +1779 -2911
  18. data/vendor/assets/js/foundation.esm.js.map +1 -1
  19. data/vendor/assets/js/foundation.js +2544 -3970
  20. data/vendor/assets/js/foundation.js.map +1 -1
  21. data/vendor/assets/js/foundation.min.js +1 -1
  22. data/vendor/assets/js/foundation.min.js.map +1 -1
  23. data/vendor/assets/js/plugins/foundation.abide.js +277 -367
  24. data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
  25. data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
  26. data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
  27. data/vendor/assets/js/plugins/foundation.accordion.js +205 -277
  28. data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
  29. data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
  30. data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
  31. data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -262
  32. data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
  33. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
  34. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
  35. data/vendor/assets/js/plugins/foundation.core.js +314 -457
  36. data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
  37. data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
  38. data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
  39. data/vendor/assets/js/plugins/foundation.drilldown.js +259 -359
  40. data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
  41. data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
  42. data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
  43. data/vendor/assets/js/plugins/foundation.dropdown.js +291 -462
  44. data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
  45. data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
  46. data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
  47. data/vendor/assets/js/plugins/foundation.dropdownMenu.js +251 -349
  48. data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
  49. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
  50. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
  51. data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
  52. data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
  53. data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
  54. data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
  55. data/vendor/assets/js/plugins/foundation.interchange.js +455 -240
  56. data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
  57. data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
  58. data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
  59. data/vendor/assets/js/plugins/foundation.magellan.js +226 -342
  60. data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
  61. data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
  62. data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
  63. data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
  64. data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
  65. data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
  66. data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
  67. data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
  68. data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
  69. data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
  70. data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
  71. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -288
  72. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
  73. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
  74. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
  75. data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
  76. data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
  77. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
  78. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
  79. data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
  80. data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
  81. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
  82. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
  83. data/vendor/assets/js/plugins/foundation.reveal.js +285 -445
  84. data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
  85. data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
  86. data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
  87. data/vendor/assets/js/plugins/foundation.slider.js +321 -486
  88. data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
  89. data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
  90. data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
  91. data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
  92. data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
  93. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
  94. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
  95. data/vendor/assets/js/plugins/foundation.sticky.js +253 -395
  96. data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
  97. data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
  98. data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
  99. data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
  100. data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
  101. data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
  102. data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
  103. data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
  104. data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
  105. data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
  106. data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
  107. data/vendor/assets/js/plugins/foundation.tooltip.js +276 -437
  108. data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
  109. data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
  110. data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
  111. data/vendor/assets/js/plugins/foundation.util.box.js +176 -234
  112. data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
  113. data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
  114. data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
  115. data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
  116. data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
  117. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
  118. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
  119. data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
  120. data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
  121. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
  122. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
  123. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
  124. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
  125. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
  126. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
  127. data/vendor/assets/js/plugins/foundation.util.motion.js +127 -161
  128. data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
  129. data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
  130. data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
  131. data/vendor/assets/js/plugins/foundation.util.nest.js +126 -160
  132. data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
  133. data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
  134. data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
  135. data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
  136. data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
  137. data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
  138. data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
  139. data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
  140. data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
  141. data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
  142. data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
  143. data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
  144. data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
  145. data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
  146. data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
  147. data/vendor/assets/scss/_global.scss +20 -7
  148. data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
  149. data/vendor/assets/scss/components/_accordion.scss +2 -2
  150. data/vendor/assets/scss/components/_badge.scss +3 -3
  151. data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
  152. data/vendor/assets/scss/components/_button-group.scss +23 -13
  153. data/vendor/assets/scss/components/_button.scss +15 -15
  154. data/vendor/assets/scss/components/_callout.scss +4 -4
  155. data/vendor/assets/scss/components/_card.scss +2 -2
  156. data/vendor/assets/scss/components/_close-button.scss +7 -6
  157. data/vendor/assets/scss/components/_drilldown.scss +2 -2
  158. data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
  159. data/vendor/assets/scss/components/_dropdown.scss +2 -2
  160. data/vendor/assets/scss/components/_flex.scss +2 -2
  161. data/vendor/assets/scss/components/_float.scss +2 -2
  162. data/vendor/assets/scss/components/_label.scss +3 -3
  163. data/vendor/assets/scss/components/_media-object.scss +2 -2
  164. data/vendor/assets/scss/components/_menu.scss +56 -21
  165. data/vendor/assets/scss/components/_off-canvas.scss +20 -18
  166. data/vendor/assets/scss/components/_orbit.scss +5 -5
  167. data/vendor/assets/scss/components/_pagination.scss +3 -3
  168. data/vendor/assets/scss/components/_progress-bar.scss +3 -3
  169. data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
  170. data/vendor/assets/scss/components/_reveal.scss +10 -5
  171. data/vendor/assets/scss/components/_slider.scss +7 -4
  172. data/vendor/assets/scss/components/_sticky.scss +2 -2
  173. data/vendor/assets/scss/components/_switch.scss +27 -4
  174. data/vendor/assets/scss/components/_table.scss +10 -9
  175. data/vendor/assets/scss/components/_tabs.scss +4 -4
  176. data/vendor/assets/scss/components/_thumbnail.scss +2 -2
  177. data/vendor/assets/scss/components/_title-bar.scss +2 -2
  178. data/vendor/assets/scss/components/_tooltip.scss +2 -2
  179. data/vendor/assets/scss/components/_top-bar.scss +9 -7
  180. data/vendor/assets/scss/components/_visibility.scss +48 -5
  181. data/vendor/assets/scss/forms/_checkbox.scss +2 -2
  182. data/vendor/assets/scss/forms/_error.scss +2 -2
  183. data/vendor/assets/scss/forms/_fieldset.scss +2 -2
  184. data/vendor/assets/scss/forms/_forms.scss +2 -2
  185. data/vendor/assets/scss/forms/_help-text.scss +2 -2
  186. data/vendor/assets/scss/forms/_input-group.scss +2 -2
  187. data/vendor/assets/scss/forms/_label.scss +4 -3
  188. data/vendor/assets/scss/forms/_meter.scss +2 -2
  189. data/vendor/assets/scss/forms/_progress.scss +3 -3
  190. data/vendor/assets/scss/forms/_range.scss +3 -3
  191. data/vendor/assets/scss/forms/_select.scss +7 -6
  192. data/vendor/assets/scss/forms/_text.scss +4 -4
  193. data/vendor/assets/scss/foundation.scss +3 -3
  194. data/vendor/assets/scss/grid/_classes.scss +3 -3
  195. data/vendor/assets/scss/grid/_column.scss +5 -4
  196. data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
  197. data/vendor/assets/scss/grid/_grid.scss +2 -2
  198. data/vendor/assets/scss/grid/_gutter.scss +3 -3
  199. data/vendor/assets/scss/grid/_layout.scss +7 -7
  200. data/vendor/assets/scss/grid/_position.scss +6 -6
  201. data/vendor/assets/scss/grid/_row.scss +3 -3
  202. data/vendor/assets/scss/grid/_size.scss +2 -2
  203. data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
  204. data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
  205. data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
  206. data/vendor/assets/scss/prototype/_arrow.scss +2 -2
  207. data/vendor/assets/scss/prototype/_border-box.scss +2 -2
  208. data/vendor/assets/scss/prototype/_border-none.scss +3 -3
  209. data/vendor/assets/scss/prototype/_bordered.scss +2 -2
  210. data/vendor/assets/scss/prototype/_box.scss +2 -2
  211. data/vendor/assets/scss/prototype/_display.scss +2 -2
  212. data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
  213. data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
  214. data/vendor/assets/scss/prototype/_overflow.scss +11 -2
  215. data/vendor/assets/scss/prototype/_position.scss +2 -2
  216. data/vendor/assets/scss/prototype/_prototype.scss +2 -2
  217. data/vendor/assets/scss/prototype/_rotate.scss +9 -7
  218. data/vendor/assets/scss/prototype/_rounded.scss +2 -2
  219. data/vendor/assets/scss/prototype/_separator.scss +7 -7
  220. data/vendor/assets/scss/prototype/_shadow.scss +3 -4
  221. data/vendor/assets/scss/prototype/_sizing.scss +2 -2
  222. data/vendor/assets/scss/prototype/_spacing.scss +35 -35
  223. data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
  224. data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
  225. data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
  226. data/vendor/assets/scss/settings/_settings.scss +32 -28
  227. data/vendor/assets/scss/typography/_alignment.scss +2 -2
  228. data/vendor/assets/scss/typography/_base.scss +8 -8
  229. data/vendor/assets/scss/typography/_helpers.scss +12 -4
  230. data/vendor/assets/scss/typography/_print.scss +4 -4
  231. data/vendor/assets/scss/typography/_typography.scss +2 -2
  232. data/vendor/assets/scss/util/_breakpoint.scss +24 -21
  233. data/vendor/assets/scss/util/_color.scss +22 -10
  234. data/vendor/assets/scss/util/_direction.scss +3 -3
  235. data/vendor/assets/scss/util/_flex.scss +1 -1
  236. data/vendor/assets/scss/util/_math.scss +63 -11
  237. data/vendor/assets/scss/util/_mixins.scss +20 -16
  238. data/vendor/assets/scss/util/_selector.scss +3 -17
  239. data/vendor/assets/scss/util/_typography.scss +8 -8
  240. data/vendor/assets/scss/util/_unit.scss +16 -10
  241. data/vendor/assets/scss/util/_util.scss +2 -2
  242. data/vendor/assets/scss/util/_value.scss +5 -20
  243. data/vendor/assets/scss/vendor/normalize.scss +19 -2
  244. data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
  245. data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
  246. data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
  247. data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
  248. data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
  249. data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
  250. data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
  251. data/vendor/assets/scss/xy-grid/_position.scss +14 -9
  252. data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
  253. metadata +21 -19
@@ -1,194 +1,48 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("jquery"));
3
+ module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.nest"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./foundation.core", "./foundation.util.keyboard", "./foundation.util.nest", "jquery"], factory);
5
+ define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.nest"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["foundation.accordionMenu"] = factory(require("./foundation.core"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("jquery"));
7
+ exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.nest"));
8
8
  else
9
- root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.accordionMenu"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.nest"], root["jQuery"]);
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__, __WEBPACK_EXTERNAL_MODULE_jquery__) {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
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 = 2);
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
- /***/ "./foundation.util.nest":
122
- /*!************************************************************************************************************************************************************************************!*\
123
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***!
124
- \************************************************************************************************************************************************************************************/
125
- /*! no static exports found */
126
- /***/ (function(module, exports) {
127
-
128
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__;
129
-
130
- /***/ }),
131
-
132
- /***/ "./js/entries/plugins/foundation.accordionMenu.js":
133
- /*!********************************************************!*\
134
- !*** ./js/entries/plugins/foundation.accordionMenu.js ***!
135
- \********************************************************/
136
- /*! exports provided: Foundation, AccordionMenu */
137
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
138
-
139
- "use strict";
140
- __webpack_require__.r(__webpack_exports__);
141
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
142
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
143
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
144
-
145
- /* harmony import */ var _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.accordionMenu */ "./js/foundation.accordionMenu.js");
146
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionMenu", function() { return _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__["AccordionMenu"]; });
147
-
148
-
149
-
150
- _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__["AccordionMenu"], 'AccordionMenu');
151
-
152
-
153
- /***/ }),
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.accordionMenu"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.nest"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__) {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
154
14
 
155
15
  /***/ "./js/foundation.accordionMenu.js":
156
16
  /*!****************************************!*\
157
17
  !*** ./js/foundation.accordionMenu.js ***!
158
18
  \****************************************/
159
- /*! exports provided: AccordionMenu */
160
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
19
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
161
20
 
162
- "use strict";
163
21
  __webpack_require__.r(__webpack_exports__);
164
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccordionMenu", function() { return AccordionMenu; });
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ AccordionMenu: function() { return /* binding */ AccordionMenu; }
24
+ /* harmony export */ });
165
25
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
166
26
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
167
27
  /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
168
28
  /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__);
169
29
  /* harmony import */ var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.nest */ "./foundation.util.nest");
170
30
  /* harmony import */ var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__);
171
- /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
31
+ /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
172
32
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__);
173
-
174
-
175
- 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); }
176
-
177
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
178
-
179
- 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); } }
180
-
181
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
182
-
183
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
184
-
185
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
186
-
187
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
188
-
189
- 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); }
190
-
191
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+ 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); }
34
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
35
+ 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); } }
36
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
37
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
38
+ 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); }
39
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
40
+ 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); }
41
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
42
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
43
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
44
+ 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); }
45
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
192
46
 
193
47
 
194
48
 
@@ -201,21 +55,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
201
55
  * @requires foundation.util.keyboard
202
56
  * @requires foundation.util.nest
203
57
  */
204
-
205
- var AccordionMenu =
206
- /*#__PURE__*/
207
- function (_Plugin) {
208
- _inherits(AccordionMenu, _Plugin);
209
-
58
+ var AccordionMenu = /*#__PURE__*/function (_Plugin) {
210
59
  function AccordionMenu() {
211
60
  _classCallCheck(this, AccordionMenu);
212
-
213
- return _possibleConstructorReturn(this, _getPrototypeOf(AccordionMenu).apply(this, arguments));
61
+ return _callSuper(this, AccordionMenu, arguments);
214
62
  }
215
-
216
- _createClass(AccordionMenu, [{
63
+ _inherits(AccordionMenu, _Plugin);
64
+ return _createClass(AccordionMenu, [{
217
65
  key: "_setup",
218
-
66
+ value:
219
67
  /**
220
68
  * Creates a new instance of an accordion menu.
221
69
  * @class
@@ -224,14 +72,13 @@ function (_Plugin) {
224
72
  * @param {jQuery} element - jQuery object to make into an accordion menu.
225
73
  * @param {Object} options - Overrides to the default plugin settings.
226
74
  */
227
- value: function _setup(element, options) {
75
+ function _setup(element, options) {
228
76
  this.$element = element;
229
- this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, AccordionMenu.defaults, this.$element.data(), options);
77
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, AccordionMenu.defaults, this.$element.data(), options);
230
78
  this.className = 'AccordionMenu'; // ie9 back compat
231
79
 
232
80
  this._init();
233
-
234
- _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].register('AccordionMenu', {
81
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('AccordionMenu', {
235
82
  'ENTER': 'toggle',
236
83
  'SPACE': 'toggle',
237
84
  'ARROW_RIGHT': 'open',
@@ -241,37 +88,31 @@ function (_Plugin) {
241
88
  'ESCAPE': 'closeAll'
242
89
  });
243
90
  }
91
+
244
92
  /**
245
93
  * Initializes the accordion menu by hiding all nested menus.
246
94
  * @private
247
95
  */
248
-
249
96
  }, {
250
97
  key: "_init",
251
98
  value: function _init() {
252
- _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__["Nest"].Feather(this.$element, 'accordion');
253
-
99
+ _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Feather(this.$element, 'accordion');
254
100
  var _this = this;
255
-
256
101
  this.$element.find('[data-submenu]').not('.is-active').slideUp(0); //.find('a').css('padding-left', '1rem');
257
-
258
102
  this.$element.attr({
259
- 'role': 'tree',
260
103
  'aria-multiselectable': this.options.multiOpen
261
104
  });
262
105
  this.$menuLinks = this.$element.find('.is-accordion-submenu-parent');
263
106
  this.$menuLinks.each(function () {
264
- var linkId = this.id || Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"])(6, 'acc-menu-link'),
265
- $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
266
- $sub = $elem.children('[data-submenu]'),
267
- subId = $sub[0].id || Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"])(6, 'acc-menu'),
268
- isActive = $sub.hasClass('is-active');
269
-
107
+ var linkId = this.id || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6, 'acc-menu-link'),
108
+ $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
109
+ $sub = $elem.children('[data-submenu]'),
110
+ subId = $sub[0].id || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6, 'acc-menu'),
111
+ isActive = $sub.hasClass('is-active');
270
112
  if (_this.options.parentLink) {
271
113
  var $anchor = $elem.children('a');
272
114
  $anchor.clone().prependTo($sub).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-accordion-submenu-item"></li>');
273
115
  }
274
-
275
116
  if (_this.options.submenuToggle) {
276
117
  $elem.addClass('has-submenu-toggle');
277
118
  $elem.children('a').after('<button id="' + linkId + '" class="submenu-toggle" aria-controls="' + subId + '" aria-expanded="' + isActive + '" title="' + _this.options.submenuToggleText + '"><span class="submenu-toggle-text">' + _this.options.submenuToggleText + '</span></button>');
@@ -282,7 +123,6 @@ function (_Plugin) {
282
123
  'id': linkId
283
124
  });
284
125
  }
285
-
286
126
  $sub.attr({
287
127
  'aria-labelledby': linkId,
288
128
  'aria-hidden': !isActive,
@@ -290,63 +130,51 @@ function (_Plugin) {
290
130
  'id': subId
291
131
  });
292
132
  });
293
- this.$element.find('li').attr({
294
- 'role': 'treeitem'
295
- });
296
133
  var initPanes = this.$element.find('.is-active');
297
-
298
134
  if (initPanes.length) {
299
- var _this = this;
300
-
301
135
  initPanes.each(function () {
302
136
  _this.down(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
303
137
  });
304
138
  }
305
-
306
139
  this._events();
307
140
  }
141
+
308
142
  /**
309
143
  * Adds event handlers for items within the menu.
310
144
  * @private
311
145
  */
312
-
313
146
  }, {
314
147
  key: "_events",
315
148
  value: function _events() {
316
149
  var _this = this;
317
-
318
150
  this.$element.find('li').each(function () {
319
151
  var $submenu = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('[data-submenu]');
320
-
321
152
  if ($submenu.length) {
322
153
  if (_this.options.submenuToggle) {
323
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('.submenu-toggle').off('click.zf.accordionMenu').on('click.zf.accordionMenu', function (e) {
154
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('.submenu-toggle').off('click.zf.accordionMenu').on('click.zf.accordionMenu', function () {
324
155
  _this.toggle($submenu);
325
156
  });
326
157
  } else {
327
158
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('a').off('click.zf.accordionMenu').on('click.zf.accordionMenu', function (e) {
328
159
  e.preventDefault();
329
-
330
160
  _this.toggle($submenu);
331
161
  });
332
162
  }
333
163
  }
334
164
  }).on('keydown.zf.accordionMenu', function (e) {
335
165
  var $element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
336
- $elements = $element.parent('ul').children('li'),
337
- $prevElement,
338
- $nextElement,
339
- $target = $element.children('[data-submenu]');
166
+ $elements = $element.parent('ul').children('li'),
167
+ $prevElement,
168
+ $nextElement,
169
+ $target = $element.children('[data-submenu]');
340
170
  $elements.each(function (i) {
341
171
  if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)) {
342
172
  $prevElement = $elements.eq(Math.max(0, i - 1)).find('a').first();
343
173
  $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1)).find('a').first();
344
-
345
174
  if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('[data-submenu]:visible').length) {
346
175
  // has open sub menu
347
176
  $nextElement = $element.find('li:first-child').find('a').first();
348
177
  }
349
-
350
178
  if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':first-child')) {
351
179
  // is first element of sub menu
352
180
  $prevElement = $element.parents('li').first().find('a').first();
@@ -354,20 +182,17 @@ function (_Plugin) {
354
182
  // if previous element has open sub menu
355
183
  $prevElement = $prevElement.parents('li').find('li:last-child').find('a').first();
356
184
  }
357
-
358
185
  if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':last-child')) {
359
186
  // is last element of sub menu
360
187
  $nextElement = $element.parents('li').first().next('li').find('a').first();
361
188
  }
362
-
363
189
  return;
364
190
  }
365
191
  });
366
- _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].handleKey(e, 'AccordionMenu', {
192
+ _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e, 'AccordionMenu', {
367
193
  open: function open() {
368
194
  if ($target.is(':hidden')) {
369
195
  _this.down($target);
370
-
371
196
  $target.find('li').first().find('a').first().focus();
372
197
  }
373
198
  },
@@ -378,7 +203,6 @@ function (_Plugin) {
378
203
  } else if ($element.parent('[data-submenu]').length) {
379
204
  // close currently open sub
380
205
  _this.up($element.parent('[data-submenu]'));
381
-
382
206
  $element.parents('li').first().find('a').first().focus();
383
207
  }
384
208
  },
@@ -394,10 +218,8 @@ function (_Plugin) {
394
218
  if (_this.options.submenuToggle) {
395
219
  return false;
396
220
  }
397
-
398
221
  if ($element.children('[data-submenu]').length) {
399
222
  _this.toggle($element.children('[data-submenu]'));
400
-
401
223
  return true;
402
224
  }
403
225
  },
@@ -412,32 +234,32 @@ function (_Plugin) {
412
234
  });
413
235
  }); //.attr('tabindex', 0);
414
236
  }
237
+
415
238
  /**
416
239
  * Closes all panes of the menu.
417
240
  * @function
418
241
  */
419
-
420
242
  }, {
421
243
  key: "hideAll",
422
244
  value: function hideAll() {
423
245
  this.up(this.$element.find('[data-submenu]'));
424
246
  }
247
+
425
248
  /**
426
249
  * Opens all panes of the menu.
427
250
  * @function
428
251
  */
429
-
430
252
  }, {
431
253
  key: "showAll",
432
254
  value: function showAll() {
433
255
  this.down(this.$element.find('[data-submenu]'));
434
256
  }
257
+
435
258
  /**
436
259
  * Toggles the open/close state of a submenu.
437
260
  * @function
438
261
  * @param {jQuery} $target - the submenu to toggle
439
262
  */
440
-
441
263
  }, {
442
264
  key: "toggle",
443
265
  value: function toggle($target) {
@@ -449,32 +271,29 @@ function (_Plugin) {
449
271
  }
450
272
  }
451
273
  }
274
+
452
275
  /**
453
276
  * Opens the sub-menu defined by `$target`.
454
277
  * @param {jQuery} $target - Sub-menu to open.
455
278
  * @fires AccordionMenu#down
456
279
  */
457
-
458
280
  }, {
459
281
  key: "down",
460
282
  value: function down($target) {
461
283
  var _this2 = this;
462
-
463
284
  // If having multiple submenus active is disabled, close all the submenus
464
285
  // that are not parents or children of the targeted submenu.
465
286
  if (!this.options.multiOpen) {
466
287
  // The "branch" of the targetted submenu, from the component root to
467
288
  // the active submenus nested in it.
468
- var $targetBranch = $target.parentsUntil(this.$element).add($target).add($target.find('.is-active')); // All the active submenus that are not in the branch.
469
-
289
+ var $targetBranch = $target.parentsUntil(this.$element).add($target).add($target.find('.is-active'));
290
+ // All the active submenus that are not in the branch.
470
291
  var $othersActiveSubmenus = this.$element.find('.is-active').not($targetBranch);
471
292
  this.up($othersActiveSubmenus);
472
293
  }
473
-
474
294
  $target.addClass('is-active').attr({
475
295
  'aria-hidden': false
476
296
  });
477
-
478
297
  if (this.options.submenuToggle) {
479
298
  $target.prev('.submenu-toggle').attr({
480
299
  'aria-expanded': true
@@ -484,7 +303,6 @@ function (_Plugin) {
484
303
  'aria-expanded': true
485
304
  });
486
305
  }
487
-
488
306
  $target.slideDown(this.options.slideSpeed, function () {
489
307
  /**
490
308
  * Fires when the menu is done opening.
@@ -493,28 +311,25 @@ function (_Plugin) {
493
311
  _this2.$element.trigger('down.zf.accordionMenu', [$target]);
494
312
  });
495
313
  }
314
+
496
315
  /**
497
316
  * Closes the sub-menu defined by `$target`. All sub-menus inside the target will be closed as well.
498
317
  * @param {jQuery} $target - Sub-menu to close.
499
318
  * @fires AccordionMenu#up
500
319
  */
501
-
502
320
  }, {
503
321
  key: "up",
504
322
  value: function up($target) {
505
323
  var _this3 = this;
506
-
507
324
  var $submenus = $target.find('[data-submenu]');
508
325
  var $allmenus = $target.add($submenus);
509
326
  $submenus.slideUp(0);
510
327
  $allmenus.removeClass('is-active').attr('aria-hidden', true);
511
-
512
328
  if (this.options.submenuToggle) {
513
329
  $allmenus.prev('.submenu-toggle').attr('aria-expanded', false);
514
330
  } else {
515
331
  $allmenus.parent('.is-accordion-submenu-parent').attr('aria-expanded', false);
516
332
  }
517
-
518
333
  $target.slideUp(this.options.slideSpeed, function () {
519
334
  /**
520
335
  * Fires when the menu is done collapsing up.
@@ -523,30 +338,25 @@ function (_Plugin) {
523
338
  _this3.$element.trigger('up.zf.accordionMenu', [$target]);
524
339
  });
525
340
  }
341
+
526
342
  /**
527
343
  * Destroys an instance of accordion menu.
528
344
  * @fires AccordionMenu#destroyed
529
345
  */
530
-
531
346
  }, {
532
347
  key: "_destroy",
533
348
  value: function _destroy() {
534
349
  this.$element.find('[data-submenu]').slideDown(0).css('display', '');
535
350
  this.$element.find('a').off('click.zf.accordionMenu');
536
351
  this.$element.find('[data-is-parent-link]').detach();
537
-
538
352
  if (this.options.submenuToggle) {
539
353
  this.$element.find('.has-submenu-toggle').removeClass('has-submenu-toggle');
540
354
  this.$element.find('.submenu-toggle').remove();
541
355
  }
542
-
543
- _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__["Nest"].Burn(this.$element, 'accordion');
356
+ _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Burn(this.$element, 'accordion');
544
357
  }
545
358
  }]);
546
-
547
- return AccordionMenu;
548
- }(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]);
549
-
359
+ }(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.Plugin);
550
360
  AccordionMenu.defaults = {
551
361
  /**
552
362
  * Adds the parent link to the submenu.
@@ -555,7 +365,6 @@ AccordionMenu.defaults = {
555
365
  * @default false
556
366
  */
557
367
  parentLink: false,
558
-
559
368
  /**
560
369
  * Amount of time to animate the opening of a submenu in ms.
561
370
  * @option
@@ -563,21 +372,18 @@ AccordionMenu.defaults = {
563
372
  * @default 250
564
373
  */
565
374
  slideSpeed: 250,
566
-
567
375
  /**
568
376
  * Adds a separate submenu toggle button. This allows the parent item to have a link.
569
377
  * @option
570
378
  * @example true
571
379
  */
572
380
  submenuToggle: false,
573
-
574
381
  /**
575
382
  * The text used for the submenu toggle if enabled. This is used for screen readers only.
576
383
  * @option
577
384
  * @example true
578
385
  */
579
386
  submenuToggleText: 'Toggle menu',
580
-
581
387
  /**
582
388
  * Allow the menu to have multiple open panes.
583
389
  * @option
@@ -590,15 +396,33 @@ AccordionMenu.defaults = {
590
396
 
591
397
  /***/ }),
592
398
 
593
- /***/ 2:
594
- /*!**************************************************************!*\
595
- !*** multi ./js/entries/plugins/foundation.accordionMenu.js ***!
596
- \**************************************************************/
597
- /*! no static exports found */
598
- /***/ (function(module, exports, __webpack_require__) {
399
+ /***/ "./foundation.core":
400
+ /*!****************************************************************************************************************************************************************!*\
401
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
402
+ \****************************************************************************************************************************************************************/
403
+ /***/ (function(module) {
599
404
 
600
- module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/foundation-sites/js/entries/plugins/foundation.accordionMenu.js */"./js/entries/plugins/foundation.accordionMenu.js");
405
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
601
406
 
407
+ /***/ }),
408
+
409
+ /***/ "./foundation.util.keyboard":
410
+ /*!****************************************************************************************************************************************************************************************************!*\
411
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
412
+ \****************************************************************************************************************************************************************************************************/
413
+ /***/ (function(module) {
414
+
415
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
416
+
417
+ /***/ }),
418
+
419
+ /***/ "./foundation.util.nest":
420
+ /*!************************************************************************************************************************************************************************************!*\
421
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***!
422
+ \************************************************************************************************************************************************************************************/
423
+ /***/ (function(module) {
424
+
425
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__;
602
426
 
603
427
  /***/ }),
604
428
 
@@ -606,13 +430,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
606
430
  /*!********************************************************************************************!*\
607
431
  !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
608
432
  \********************************************************************************************/
609
- /*! no static exports found */
610
- /***/ (function(module, exports) {
433
+ /***/ (function(module) {
611
434
 
612
435
  module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
613
436
 
614
437
  /***/ })
615
438
 
616
- /******/ });
439
+ /******/ });
440
+ /************************************************************************/
441
+ /******/ // The module cache
442
+ /******/ var __webpack_module_cache__ = {};
443
+ /******/
444
+ /******/ // The require function
445
+ /******/ function __webpack_require__(moduleId) {
446
+ /******/ // Check if module is in cache
447
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
448
+ /******/ if (cachedModule !== undefined) {
449
+ /******/ return cachedModule.exports;
450
+ /******/ }
451
+ /******/ // Create a new module (and put it into the cache)
452
+ /******/ var module = __webpack_module_cache__[moduleId] = {
453
+ /******/ // no module.id needed
454
+ /******/ // no module.loaded needed
455
+ /******/ exports: {}
456
+ /******/ };
457
+ /******/
458
+ /******/ // Execute the module function
459
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
460
+ /******/
461
+ /******/ // Return the exports of the module
462
+ /******/ return module.exports;
463
+ /******/ }
464
+ /******/
465
+ /************************************************************************/
466
+ /******/ /* webpack/runtime/compat get default export */
467
+ /******/ !function() {
468
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
469
+ /******/ __webpack_require__.n = function(module) {
470
+ /******/ var getter = module && module.__esModule ?
471
+ /******/ function() { return module['default']; } :
472
+ /******/ function() { return module; };
473
+ /******/ __webpack_require__.d(getter, { a: getter });
474
+ /******/ return getter;
475
+ /******/ };
476
+ /******/ }();
477
+ /******/
478
+ /******/ /* webpack/runtime/define property getters */
479
+ /******/ !function() {
480
+ /******/ // define getter functions for harmony exports
481
+ /******/ __webpack_require__.d = function(exports, definition) {
482
+ /******/ for(var key in definition) {
483
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
484
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
485
+ /******/ }
486
+ /******/ }
487
+ /******/ };
488
+ /******/ }();
489
+ /******/
490
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
491
+ /******/ !function() {
492
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
493
+ /******/ }();
494
+ /******/
495
+ /******/ /* webpack/runtime/make namespace object */
496
+ /******/ !function() {
497
+ /******/ // define __esModule on exports
498
+ /******/ __webpack_require__.r = function(exports) {
499
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
500
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
501
+ /******/ }
502
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
503
+ /******/ };
504
+ /******/ }();
505
+ /******/
506
+ /************************************************************************/
507
+ var __webpack_exports__ = {};
508
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
509
+ !function() {
510
+ /*!********************************************************!*\
511
+ !*** ./js/entries/plugins/foundation.accordionMenu.js ***!
512
+ \********************************************************/
513
+ __webpack_require__.r(__webpack_exports__);
514
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
515
+ /* harmony export */ AccordionMenu: function() { return /* reexport safe */ _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__.AccordionMenu; },
516
+ /* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; }
517
+ /* harmony export */ });
518
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
519
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
520
+ /* harmony import */ var _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.accordionMenu */ "./js/foundation.accordionMenu.js");
521
+
522
+
523
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_1__.AccordionMenu, 'AccordionMenu');
524
+
525
+ }();
526
+ /******/ return __webpack_exports__;
527
+ /******/ })()
528
+ ;
617
529
  });
618
530
  //# sourceMappingURL=foundation.accordionMenu.js.map