vendor/assets/js/plugins/foundation.drilldown.js in foundation-rails-6.6.2.0 vs vendor/assets/js/plugins/foundation.drilldown.js in foundation-rails-6.9.0.0

- old
+ new

@@ -1,534 +1,340 @@ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("./foundation.core"), require("./foundation.util.box"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("jquery")); + module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("./foundation.util.box")); else if(typeof define === 'function' && define.amd) - define(["./foundation.core", "./foundation.util.box", "./foundation.util.keyboard", "./foundation.util.nest", "jquery"], factory); + define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.nest", "./foundation.util.box"], factory); else if(typeof exports === 'object') - exports["foundation.drilldown"] = factory(require("./foundation.core"), require("./foundation.util.box"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("jquery")); + exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.nest"), require("./foundation.util.box")); else - root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.drilldown"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.nest"], root["jQuery"]); -})(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_box__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__, __WEBPACK_EXTERNAL_MODULE_jquery__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 3); -/******/ }) -/************************************************************************/ -/******/ ({ + root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.drilldown"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.nest"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"]); +})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__, __WEBPACK_EXTERNAL_MODULE__foundation_util_box__) { +return /******/ (function() { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ -/***/ "./foundation.core": -/*!****************************************************************************************************************************************************************!*\ - !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***! - \****************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__; - -/***/ }), - -/***/ "./foundation.util.box": -/*!********************************************************************************************************************************************************************************!*\ - !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***! - \********************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__; - -/***/ }), - -/***/ "./foundation.util.keyboard": -/*!****************************************************************************************************************************************************************************************************!*\ - !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***! - \****************************************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__; - -/***/ }), - -/***/ "./foundation.util.nest": -/*!************************************************************************************************************************************************************************************!*\ - !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***! - \************************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__; - -/***/ }), - -/***/ "./js/entries/plugins/foundation.drilldown.js": -/*!****************************************************!*\ - !*** ./js/entries/plugins/foundation.drilldown.js ***! - \****************************************************/ -/*! exports provided: Foundation, Drilldown */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core"); -/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; }); - -/* harmony import */ var _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.drilldown */ "./js/foundation.drilldown.js"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Drilldown", function() { return _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__["Drilldown"]; }); - - - -_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__["Drilldown"], 'Drilldown'); - - -/***/ }), - /***/ "./js/foundation.drilldown.js": /*!************************************!*\ !*** ./js/foundation.drilldown.js ***! \************************************/ -/*! exports provided: Drilldown */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -"use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Drilldown", function() { return Drilldown; }); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Drilldown: function() { return /* binding */ Drilldown; } +/* harmony export */ }); /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard"); /* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.nest */ "./foundation.util.nest"); /* harmony import */ var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core"); +/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core"); /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.util.box */ "./foundation.util.box"); /* harmony import */ var _foundation_util_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_box__WEBPACK_IMPORTED_MODULE_4__); +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); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +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); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +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); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +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); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +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); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } -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); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -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); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -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); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - - - - - - /** * Drilldown module. * @module foundation.drilldown * @requires foundation.util.keyboard * @requires foundation.util.nest * @requires foundation.util.box */ - -var Drilldown = -/*#__PURE__*/ -function (_Plugin) { - _inherits(Drilldown, _Plugin); - +var Drilldown = /*#__PURE__*/function (_Plugin) { function Drilldown() { _classCallCheck(this, Drilldown); - - return _possibleConstructorReturn(this, _getPrototypeOf(Drilldown).apply(this, arguments)); + return _callSuper(this, Drilldown, arguments); } - - _createClass(Drilldown, [{ + _inherits(Drilldown, _Plugin); + return _createClass(Drilldown, [{ key: "_setup", - + value: /** * Creates a new instance of a drilldown menu. * @class * @name Drilldown * @param {jQuery} element - jQuery object to make into an accordion menu. * @param {Object} options - Overrides to the default plugin settings. */ - value: function _setup(element, options) { + function _setup(element, options) { this.$element = element; - this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Drilldown.defaults, this.$element.data(), options); + this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Drilldown.defaults, this.$element.data(), options); this.className = 'Drilldown'; // ie9 back compat this._init(); - - _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].register('Drilldown', { + _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Drilldown', { 'ENTER': 'open', 'SPACE': 'open', 'ARROW_RIGHT': 'next', 'ARROW_UP': 'up', 'ARROW_DOWN': 'down', 'ARROW_LEFT': 'previous', - 'ESCAPE': 'close', - 'TAB': 'down', - 'SHIFT_TAB': 'up' + 'ESCAPE': 'close' }); } + /** * Initializes the drilldown by creating jQuery collections of elements * @private */ - }, { key: "_init", value: function _init() { - _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__["Nest"].Feather(this.$element, 'drilldown'); - + _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Feather(this.$element, 'drilldown'); if (this.options.autoApplyClass) { this.$element.addClass('drilldown'); } - this.$element.attr({ - 'role': 'tree', 'aria-multiselectable': false }); this.$submenuAnchors = this.$element.find('li.is-drilldown-submenu-parent').children('a'); this.$submenus = this.$submenuAnchors.parent('li').children('[data-submenu]').attr('role', 'group'); - this.$menuItems = this.$element.find('li').not('.js-drilldown-back').attr('role', 'treeitem').find('a'); // Set the main menu as current by default (unless a submenu is selected) - // Used to set the wrapper height when the drilldown is closed/reopened from any (sub)menu + this.$menuItems = this.$element.find('li').not('.js-drilldown-back').find('a'); + // Set the main menu as current by default (unless a submenu is selected) + // Used to set the wrapper height when the drilldown is closed/reopened from any (sub)menu this.$currentMenu = this.$element; - this.$element.attr('data-mutate', this.$element.attr('data-drilldown') || Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"])(6, 'drilldown')); - + this.$element.attr('data-mutate', this.$element.attr('data-drilldown') || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6, 'drilldown')); this._prepareMenu(); - this._registerEvents(); - this._keyboardEvents(); } + /** * prepares drilldown menu by setting attributes to links and elements * sets a min height to prevent content jumping * wraps the element if not already wrapped * @private * @function */ - }, { key: "_prepareMenu", value: function _prepareMenu() { - var _this = this; // if(!this.options.holdOpen){ + var _this = this; + // if(!this.options.holdOpen){ // this._menuLinkEvents(); // } - - this.$submenuAnchors.each(function () { var $link = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); var $sub = $link.parent(); - if (_this.options.parentLink) { $link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="none"></li>'); } - $link.data('savedHref', $link.attr('href')).removeAttr('href').attr('tabindex', 0); $link.children('[data-submenu]').attr({ 'aria-hidden': true, 'tabindex': 0, 'role': 'group' }); - _this._events($link); }); this.$submenus.each(function () { var $menu = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), - $back = $menu.find('.js-drilldown-back'); - + $back = $menu.find('.js-drilldown-back'); if (!$back.length) { switch (_this.options.backButtonPosition) { case "bottom": $menu.append(_this.options.backButton); break; - case "top": $menu.prepend(_this.options.backButton); break; - default: console.error("Unsupported backButtonPosition value '" + _this.options.backButtonPosition + "'"); } } - _this._back($menu); }); this.$submenus.addClass('invisible'); - if (!this.options.autoHeight) { this.$submenus.addClass('drilldown-submenu-cover-previous'); - } // create a wrapper on element if it doesn't exist. + } - + // create a wrapper on element if it doesn't exist. if (!this.$element.parent().hasClass('is-drilldown')) { this.$wrapper = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.wrapper).addClass('is-drilldown'); if (this.options.animateHeight) this.$wrapper.addClass('animate-height'); this.$element.wrap(this.$wrapper); - } // set wrapper - - + } + // set wrapper this.$wrapper = this.$element.parent(); this.$wrapper.css(this._getMaxDims()); } }, { key: "_resize", value: function _resize() { this.$wrapper.css({ 'max-width': 'none', 'min-height': 'none' - }); // _getMaxDims has side effects (boo) but calling it should update all other necessary heights & widths - + }); + // _getMaxDims has side effects (boo) but calling it should update all other necessary heights & widths this.$wrapper.css(this._getMaxDims()); } + /** * Adds event handlers to elements in the menu. * @function * @private * @param {jQuery} $elem - the current menu item to add handlers to. */ - }, { key: "_events", value: function _events($elem) { var _this = this; - $elem.off('click.zf.drilldown').on('click.zf.drilldown', function (e) { if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).parentsUntil('ul', 'li').hasClass('is-drilldown-submenu-parent')) { e.preventDefault(); - } // if(e.target !== e.currentTarget.firstElementChild){ + } + + // if(e.target !== e.currentTarget.firstElementChild){ // return false; // } - - _this._show($elem.parent('li')); - if (_this.options.closeOnClick) { var $body = jquery__WEBPACK_IMPORTED_MODULE_0___default()('body'); - $body.off('.zf.drilldown').on('click.zf.drilldown', function (e) { - if (e.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default.a.contains(_this.$element[0], e.target)) { + $body.off('.zf.drilldown').on('click.zf.drilldown', function (ev) { + if (ev.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0], ev.target)) { return; } - - e.preventDefault(); - + ev.preventDefault(); _this._hideAll(); - $body.off('.zf.drilldown'); }); } }); } + /** * Adds event handlers to the menu element. * @function * @private */ - }, { key: "_registerEvents", value: function _registerEvents() { if (this.options.scrollTop) { this._bindHandler = this._scrollTop.bind(this); this.$element.on('open.zf.drilldown hide.zf.drilldown close.zf.drilldown closed.zf.drilldown', this._bindHandler); } - this.$element.on('mutateme.zf.trigger', this._resize.bind(this)); } + /** * Scroll to Top of Element or data-scroll-top-element * @function * @fires Drilldown#scrollme */ - }, { key: "_scrollTop", value: function _scrollTop() { var _this = this; - - var $scrollTopElement = _this.options.scrollTopElement != '' ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(_this.options.scrollTopElement) : _this.$element, - scrollPos = parseInt($scrollTopElement.offset().top + _this.options.scrollTopOffset, 10); + var $scrollTopElement = _this.options.scrollTopElement !== '' ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(_this.options.scrollTopElement) : _this.$element, + scrollPos = parseInt($scrollTopElement.offset().top + _this.options.scrollTopOffset, 10); jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').stop(true).animate({ scrollTop: scrollPos }, _this.options.animationDuration, _this.options.animationEasing, function () { /** * Fires after the menu has scrolled * @event Drilldown#scrollme */ if (this === jquery__WEBPACK_IMPORTED_MODULE_0___default()('html')[0]) _this.$element.trigger('scrollme.zf.drilldown'); }); } + /** * Adds keydown event listener to `li`'s in the menu. * @private */ - }, { key: "_keyboardEvents", value: function _keyboardEvents() { var _this = this; - this.$menuItems.add(this.$element.find('.js-drilldown-back > a, .is-submenu-parent-item > a')).on('keydown.zf.drilldown', function (e) { var $element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), - $elements = $element.parent('li').parent('ul').children('li').children('a'), - $prevElement, - $nextElement; + $elements = $element.parent('li').parent('ul').children('li').children('a'), + $prevElement, + $nextElement; $elements.each(function (i) { if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)) { $prevElement = $elements.eq(Math.max(0, i - 1)); $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1)); return; } }); - _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"].handleKey(e, 'Drilldown', { + _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e, 'Drilldown', { next: function next() { if ($element.is(_this.$submenuAnchors)) { _this._show($element.parent('li')); - - $element.parent('li').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () { + $element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () { $element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus(); }); return true; } }, previous: function previous() { _this._hide($element.parent('li').parent('ul')); - - $element.parent('li').parent('ul').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () { + $element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () { setTimeout(function () { $element.parent('li').parent('ul').parent('li').children('a').first().focus(); }, 1); }); return true; }, up: function up() { - $prevElement.focus(); // Don't tap focus on first element in root ul - + $prevElement.focus(); + // Don't tap focus on first element in root ul return !$element.is(_this.$element.find('> li:first-child > a')); }, down: function down() { - $nextElement.focus(); // Don't tap focus on last element in root ul - + $nextElement.focus(); + // Don't tap focus on last element in root ul return !$element.is(_this.$element.find('> li:last-child > a')); }, close: function close() { // Don't close on element in root ul if (!$element.is(_this.$element.find('> li > a'))) { _this._hide($element.parent().parent()); - $element.parent().parent().siblings('a').focus(); } }, open: function open() { if (_this.options.parentLink && $element.attr('href')) { // Link with href return false; } else if (!$element.is(_this.$menuItems)) { // not menu item means back button _this._hide($element.parent('li').parent('ul')); - - $element.parent('li').parent('ul').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () { + $element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () { setTimeout(function () { $element.parent('li').parent('ul').parent('li').children('a').first().focus(); }, 1); }); return true; } else if ($element.is(_this.$submenuAnchors)) { // Sub menu item _this._show($element.parent('li')); - - $element.parent('li').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($element), function () { + $element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element), function () { $element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus(); }); return true; } }, @@ -538,431 +344,525 @@ } } }); }); // end keyboardAccess } + /** * Closes all open elements, and returns to root menu. * @function * @fires Drilldown#close * @fires Drilldown#closed */ - }, { key: "_hideAll", value: function _hideAll() { var _this2 = this; - var $elem = this.$element.find('.is-drilldown-submenu.is-active'); $elem.addClass('is-closing'); - + $elem.parent().closest('ul').removeClass('invisible'); if (this.options.autoHeight) { var calcHeight = $elem.parent().closest('ul').data('calcHeight'); this.$wrapper.css({ height: calcHeight }); } + /** * Fires when the menu is closing. * @event Drilldown#close */ - - this.$element.trigger('close.zf.drilldown'); - $elem.one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($elem), function () { + $elem.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem), function () { $elem.removeClass('is-active is-closing'); + /** * Fires when the menu is fully closed. * @event Drilldown#closed */ - _this2.$element.trigger('closed.zf.drilldown'); }); } + /** * Adds event listener for each `back` button, and closes open menus. * @function * @fires Drilldown#back * @param {jQuery} $elem - the current sub-menu to add `back` event. */ - }, { key: "_back", value: function _back($elem) { var _this = this; - $elem.off('click.zf.drilldown'); - $elem.children('.js-drilldown-back').on('click.zf.drilldown', function (e) { - // console.log('mouseup on back'); - _this._hide($elem); // If there is a parent submenu, call show + $elem.children('.js-drilldown-back').on('click.zf.drilldown', function () { + _this._hide($elem); - + // If there is a parent submenu, call show var parentSubMenu = $elem.parent('li').parent('ul').parent('li'); - if (parentSubMenu.length) { _this._show(parentSubMenu); + } else { + _this.$currentMenu = _this.$element; } }); } + /** * Adds event listener to menu items w/o submenus to close open menus on click. * @function * @private */ - }, { key: "_menuLinkEvents", value: function _menuLinkEvents() { var _this = this; - - this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown', function (e) { + this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown', function () { setTimeout(function () { _this._hideAll(); }, 0); }); } + /** * Sets the CSS classes for submenu to show it. * @function * @private * @param {jQuery} $elem - the target submenu (`ul` tag) * @param {boolean} trigger - trigger drilldown event */ - }, { key: "_setShowSubMenuClasses", value: function _setShowSubMenuClasses($elem, trigger) { $elem.addClass('is-active').removeClass('invisible').attr('aria-hidden', false); $elem.parent('li').attr('aria-expanded', true); - if (trigger === true) { this.$element.trigger('open.zf.drilldown', [$elem]); } } + /** * Sets the CSS classes for submenu to hide it. * @function * @private * @param {jQuery} $elem - the target submenu (`ul` tag) * @param {boolean} trigger - trigger drilldown event */ - }, { key: "_setHideSubMenuClasses", value: function _setHideSubMenuClasses($elem, trigger) { $elem.removeClass('is-active').addClass('invisible').attr('aria-hidden', true); $elem.parent('li').attr('aria-expanded', false); - if (trigger === true) { $elem.trigger('hide.zf.drilldown', [$elem]); } } + /** * Opens a specific drilldown (sub)menu no matter which (sub)menu in it is currently visible. * Compared to _show() this lets you jump into any submenu without clicking through every submenu on the way to it. * @function * @fires Drilldown#open * @param {jQuery} $elem - the target (sub)menu (`ul` tag) * @param {boolean} autoFocus - if true the first link in the target (sub)menu gets auto focused */ - }, { key: "_showMenu", value: function _showMenu($elem, autoFocus) { - var _this = this; // Reset drilldown + var _this = this; - + // Reset drilldown var $expandedSubmenus = this.$element.find('li[aria-expanded="true"] > ul[data-submenu]'); - $expandedSubmenus.each(function (index) { + $expandedSubmenus.each(function () { _this._setHideSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)); - }); // Save the menu as the currently displayed one. + }); - this.$currentMenu = $elem; // If target menu is root, focus first link & exit + // Save the menu as the currently displayed one. + this.$currentMenu = $elem; + // If target menu is root, focus first link & exit if ($elem.is('[data-drilldown]')) { - if (autoFocus === true) $elem.find('li[role="treeitem"] > a').first().focus(); + if (autoFocus === true) $elem.find('li > a').first().focus(); if (this.options.autoHeight) this.$wrapper.css('height', $elem.data('calcHeight')); return; - } // Find all submenus on way to root incl. the element itself + } + // Find all submenus on way to root incl. the element itself + var $submenus = $elem.children().first().parentsUntil('[data-drilldown]', '[data-submenu]'); - var $submenus = $elem.children().first().parentsUntil('[data-drilldown]', '[data-submenu]'); // Open target menu and all submenus on its way to root - + // Open target menu and all submenus on its way to root $submenus.each(function (index) { // Update height of first child (target menu) if autoHeight option true if (index === 0 && _this.options.autoHeight) { _this.$wrapper.css('height', jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight')); } + var isLastChild = index === $submenus.length - 1; - var isLastChild = index == $submenus.length - 1; // Add transitionsend listener to last child (root due to reverse order) to open target menu's first link + // Add transitionsend listener to last child (root due to reverse order) to open target menu's first link // Last child makes sure the event gets always triggered even if going through several menus - if (isLastChild === true) { - jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)), function () { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)), function () { if (autoFocus === true) { - $elem.find('li[role="treeitem"] > a').first().focus(); + $elem.find('li > a').first().focus(); } }); } - _this._setShowSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), isLastChild); }); } + /** * Opens a submenu. * @function * @fires Drilldown#open * @param {jQuery} $elem - the current element with a submenu to open, i.e. the `li` tag. */ - }, { key: "_show", value: function _show($elem) { var $submenu = $elem.children('[data-submenu]'); $elem.attr('aria-expanded', true); this.$currentMenu = $submenu; - $submenu.addClass('is-active').removeClass('invisible').attr('aria-hidden', false); + //hide drilldown parent menu when submenu is open + // this removes it from the dom so that the tab key will take the user to the next visible element + $elem.parent().closest('ul').addClass('invisible'); + + // add visible class to submenu to override invisible class above + $submenu.addClass('is-active visible').removeClass('invisible').attr('aria-hidden', false); if (this.options.autoHeight) { this.$wrapper.css({ height: $submenu.data('calcHeight') }); } + /** * Fires when the submenu has opened. * @event Drilldown#open */ - - this.$element.trigger('open.zf.drilldown', [$elem]); } + /** * Hides a submenu * @function * @fires Drilldown#hide * @param {jQuery} $elem - the current sub-menu to hide, i.e. the `ul` tag. */ - }, { key: "_hide", value: function _hide($elem) { if (this.options.autoHeight) this.$wrapper.css({ height: $elem.parent().closest('ul').data('calcHeight') }); - - var _this = this; - + $elem.parent().closest('ul').removeClass('invisible'); $elem.parent('li').attr('aria-expanded', false); $elem.attr('aria-hidden', true); - $elem.addClass('is-closing').one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"])($elem), function () { - $elem.removeClass('is-active is-closing'); + $elem.addClass('is-closing').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem), function () { + $elem.removeClass('is-active is-closing visible'); $elem.blur().addClass('invisible'); }); /** * Fires when the submenu has closed. * @event Drilldown#hide */ - $elem.trigger('hide.zf.drilldown', [$elem]); } + /** * Iterates through the nested menus to calculate the min-height, and max-width for the menu. * Prevents content jumping. * @function * @private */ - }, { key: "_getMaxDims", value: function _getMaxDims() { var maxHeight = 0, - result = {}, - _this = this; // Recalculate menu heights and total max height + result = {}, + _this = this; - + // Recalculate menu heights and total max height this.$submenus.add(this.$element).each(function () { - var numOfElems = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('li').length; - var height = _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__["Box"].GetDimensions(this).height; + var height = _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__.Box.GetDimensions(this).height; maxHeight = height > maxHeight ? height : maxHeight; - if (_this.options.autoHeight) { jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight', height); } }); - if (this.options.autoHeight) result['height'] = this.$currentMenu.data('calcHeight');else result['min-height'] = "".concat(maxHeight, "px"); + if (this.options.autoHeight) result.height = this.$currentMenu.data('calcHeight');else result['min-height'] = "".concat(maxHeight, "px"); result['max-width'] = "".concat(this.$element[0].getBoundingClientRect().width, "px"); return result; } + /** * Destroys the Drilldown Menu * @function */ - }, { key: "_destroy", value: function _destroy() { + jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('.zf.drilldown'); if (this.options.scrollTop) this.$element.off('.zf.drilldown', this._bindHandler); - this._hideAll(); - this.$element.off('mutateme.zf.trigger'); - _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__["Nest"].Burn(this.$element, 'drilldown'); - this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role'); + _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Burn(this.$element, 'drilldown'); + this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').off('transitionend otransitionend webkitTransitionEnd').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role'); this.$submenuAnchors.each(function () { jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off('.zf.drilldown'); }); this.$element.find('[data-is-parent-link]').detach(); this.$submenus.removeClass('drilldown-submenu-cover-previous invisible'); this.$element.find('a').each(function () { var $link = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); $link.removeAttr('tabindex'); - if ($link.data('savedHref')) { $link.attr('href', $link.data('savedHref')).removeData('savedHref'); } else { return; } }); } }]); - - return Drilldown; -}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]); - +}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.Plugin); Drilldown.defaults = { /** * Drilldowns depend on styles in order to function properly; in the default build of Foundation these are * on the `drilldown` class. This option auto-applies this class to the drilldown upon initialization. * @option * @type {boolean} * @default true */ autoApplyClass: true, - /** * Markup used for JS generated back button. Prepended or appended (see backButtonPosition) to submenu lists and deleted on `destroy` method, 'js-drilldown-back' class required. Remove the backslash (`\`) if copy and pasting. * @option * @type {string} * @default '<li class="js-drilldown-back"><a tabindex="0">Back</a></li>' */ backButton: '<li class="js-drilldown-back"><a tabindex="0">Back</a></li>', - /** * Position the back button either at the top or bottom of drilldown submenus. Can be `'left'` or `'bottom'`. * @option * @type {string} * @default top */ backButtonPosition: 'top', - /** * Markup used to wrap drilldown menu. Use a class name for independent styling; the JS applied class: `is-drilldown` is required. Remove the backslash (`\`) if copy and pasting. * @option * @type {string} * @default '<div></div>' */ wrapper: '<div></div>', - /** * Adds the parent link to the submenu. * @option * @type {boolean} * @default false */ parentLink: false, - /** * Allow the menu to return to root list on body click. * @option * @type {boolean} * @default false */ closeOnClick: false, - /** * Allow the menu to auto adjust height. * @option * @type {boolean} * @default false */ autoHeight: false, - /** * Animate the auto adjust height. * @option * @type {boolean} * @default false */ animateHeight: false, - /** * Scroll to the top of the menu after opening a submenu or navigating back using the menu back button * @option * @type {boolean} * @default false */ scrollTop: false, - /** * String jquery selector (for example 'body') of element to take offset().top from, if empty string the drilldown menu offset().top is taken * @option * @type {string} * @default '' */ scrollTopElement: '', - /** * ScrollTop offset * @option * @type {number} * @default 0 */ scrollTopOffset: 0, - /** * Scroll animation duration * @option * @type {number} * @default 500 */ animationDuration: 500, - /** * Scroll animation easing. Can be `'swing'` or `'linear'`. * @option * @type {string} * @see {@link https://api.jquery.com/animate|JQuery animate} * @default 'swing' */ - animationEasing: 'swing' // holdOpen: false - + animationEasing: 'swing' + // holdOpen: false }; /***/ }), -/***/ 3: -/*!**********************************************************!*\ - !*** multi ./js/entries/plugins/foundation.drilldown.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./foundation.core": +/*!****************************************************************************************************************************************************************!*\ + !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***! + \****************************************************************************************************************************************************************/ +/***/ (function(module) { -module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.drilldown.js */"./js/entries/plugins/foundation.drilldown.js"); +module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__; +/***/ }), +/***/ "./foundation.util.box": +/*!********************************************************************************************************************************************************************************!*\ + !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***! + \********************************************************************************************************************************************************************************/ +/***/ (function(module) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__; + /***/ }), +/***/ "./foundation.util.keyboard": +/*!****************************************************************************************************************************************************************************************************!*\ + !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***! + \****************************************************************************************************************************************************************************************************/ +/***/ (function(module) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__; + +/***/ }), + +/***/ "./foundation.util.nest": +/*!************************************************************************************************************************************************************************************!*\ + !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.nest"],"amd":"./foundation.util.nest","commonjs":"./foundation.util.nest","commonjs2":"./foundation.util.nest"} ***! + \************************************************************************************************************************************************************************************/ +/***/ (function(module) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_nest__; + +/***/ }), + /***/ "jquery": /*!********************************************************************************************!*\ !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***! \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { +/***/ (function(module) { module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__; /***/ }) -/******/ }); +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ !function() { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function() { return module['default']; } : +/******/ function() { return module; }; +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = function(exports, definition) { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ !function() { +/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } +/******/ }(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +!function() { +/*!****************************************************!*\ + !*** ./js/entries/plugins/foundation.drilldown.js ***! + \****************************************************/ +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Drilldown: function() { return /* reexport safe */ _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__.Drilldown; }, +/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; } +/* harmony export */ }); +/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core"); +/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.drilldown */ "./js/foundation.drilldown.js"); + + +_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_drilldown__WEBPACK_IMPORTED_MODULE_1__.Drilldown, 'Drilldown'); + +}(); +/******/ return __webpack_exports__; +/******/ })() +; }); //# sourceMappingURL=foundation.drilldown.js.map \ No newline at end of file