foundation-rails 6.6.1.0 → 6.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +199 -146
- data/bower.json +3 -3
- data/foundation-rails.gemspec +4 -4
- data/gemfiles/rails_7.1.gemfile +10 -0
- data/gemfiles/rails_7.1.gemfile.lock +261 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +32 -28
- data/vendor/assets/js/foundation.cjs.js +2101 -3230
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +505 -379
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1779 -2911
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2544 -3970
- data/vendor/assets/js/foundation.js.map +1 -1
- data/vendor/assets/js/foundation.min.js +1 -1
- data/vendor/assets/js/foundation.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.js +277 -367
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.js +205 -277
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -262
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.js +314 -457
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.js +259 -359
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.js +291 -462
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +251 -349
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.js +455 -240
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.js +226 -342
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -288
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.js +285 -445
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.js +321 -486
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.js +253 -395
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.js +276 -437
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.js +176 -234
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.js +127 -161
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.js +126 -160
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
- data/vendor/assets/scss/_global.scss +20 -7
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_accordion.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +3 -3
- data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
- data/vendor/assets/scss/components/_button-group.scss +23 -13
- data/vendor/assets/scss/components/_button.scss +15 -15
- data/vendor/assets/scss/components/_callout.scss +4 -4
- data/vendor/assets/scss/components/_card.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +7 -6
- data/vendor/assets/scss/components/_drilldown.scss +2 -2
- data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
- data/vendor/assets/scss/components/_dropdown.scss +2 -2
- data/vendor/assets/scss/components/_flex.scss +2 -2
- data/vendor/assets/scss/components/_float.scss +2 -2
- data/vendor/assets/scss/components/_label.scss +3 -3
- data/vendor/assets/scss/components/_media-object.scss +2 -2
- data/vendor/assets/scss/components/_menu.scss +56 -21
- data/vendor/assets/scss/components/_off-canvas.scss +20 -18
- data/vendor/assets/scss/components/_orbit.scss +5 -5
- data/vendor/assets/scss/components/_pagination.scss +3 -3
- data/vendor/assets/scss/components/_progress-bar.scss +3 -3
- data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
- data/vendor/assets/scss/components/_reveal.scss +10 -5
- data/vendor/assets/scss/components/_slider.scss +7 -4
- data/vendor/assets/scss/components/_sticky.scss +2 -2
- data/vendor/assets/scss/components/_switch.scss +27 -4
- data/vendor/assets/scss/components/_table.scss +10 -9
- data/vendor/assets/scss/components/_tabs.scss +4 -4
- data/vendor/assets/scss/components/_thumbnail.scss +2 -2
- data/vendor/assets/scss/components/_title-bar.scss +2 -2
- data/vendor/assets/scss/components/_tooltip.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +9 -7
- data/vendor/assets/scss/components/_visibility.scss +48 -5
- data/vendor/assets/scss/forms/_checkbox.scss +2 -2
- data/vendor/assets/scss/forms/_error.scss +2 -2
- data/vendor/assets/scss/forms/_fieldset.scss +2 -2
- data/vendor/assets/scss/forms/_forms.scss +2 -2
- data/vendor/assets/scss/forms/_help-text.scss +2 -2
- data/vendor/assets/scss/forms/_input-group.scss +2 -2
- data/vendor/assets/scss/forms/_label.scss +4 -3
- data/vendor/assets/scss/forms/_meter.scss +2 -2
- data/vendor/assets/scss/forms/_progress.scss +3 -3
- data/vendor/assets/scss/forms/_range.scss +3 -3
- data/vendor/assets/scss/forms/_select.scss +7 -6
- data/vendor/assets/scss/forms/_text.scss +4 -4
- data/vendor/assets/scss/foundation.scss +3 -3
- data/vendor/assets/scss/grid/_classes.scss +3 -3
- data/vendor/assets/scss/grid/_column.scss +5 -4
- data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
- data/vendor/assets/scss/grid/_grid.scss +2 -2
- data/vendor/assets/scss/grid/_gutter.scss +3 -3
- data/vendor/assets/scss/grid/_layout.scss +7 -7
- data/vendor/assets/scss/grid/_position.scss +6 -6
- data/vendor/assets/scss/grid/_row.scss +3 -3
- data/vendor/assets/scss/grid/_size.scss +2 -2
- data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
- data/vendor/assets/scss/prototype/_arrow.scss +2 -2
- data/vendor/assets/scss/prototype/_border-box.scss +2 -2
- data/vendor/assets/scss/prototype/_border-none.scss +3 -3
- data/vendor/assets/scss/prototype/_bordered.scss +2 -2
- data/vendor/assets/scss/prototype/_box.scss +2 -2
- data/vendor/assets/scss/prototype/_display.scss +2 -2
- data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
- data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +11 -2
- data/vendor/assets/scss/prototype/_position.scss +2 -2
- data/vendor/assets/scss/prototype/_prototype.scss +2 -2
- data/vendor/assets/scss/prototype/_rotate.scss +9 -7
- data/vendor/assets/scss/prototype/_rounded.scss +2 -2
- data/vendor/assets/scss/prototype/_separator.scss +7 -7
- data/vendor/assets/scss/prototype/_shadow.scss +3 -4
- data/vendor/assets/scss/prototype/_sizing.scss +2 -2
- data/vendor/assets/scss/prototype/_spacing.scss +35 -35
- data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
- data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
- data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_alignment.scss +2 -2
- data/vendor/assets/scss/typography/_base.scss +8 -8
- data/vendor/assets/scss/typography/_helpers.scss +12 -4
- data/vendor/assets/scss/typography/_print.scss +4 -4
- data/vendor/assets/scss/typography/_typography.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +24 -21
- data/vendor/assets/scss/util/_color.scss +22 -10
- data/vendor/assets/scss/util/_direction.scss +3 -3
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +63 -11
- data/vendor/assets/scss/util/_mixins.scss +20 -16
- data/vendor/assets/scss/util/_selector.scss +3 -17
- data/vendor/assets/scss/util/_typography.scss +8 -8
- data/vendor/assets/scss/util/_unit.scss +16 -10
- data/vendor/assets/scss/util/_util.scss +2 -2
- data/vendor/assets/scss/util/_value.scss +5 -20
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
- data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
- data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
- data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
- data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
- data/vendor/assets/scss/xy-grid/_position.scss +14 -9
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
- metadata +21 -19
@@ -1,192 +1,30 @@
|
|
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.mediaQuery"), require("./foundation.util.motion"), require("./foundation.util.touch")
|
3
|
+
module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("./foundation.util.touch"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.core", "./foundation.util.keyboard", "./foundation.util.mediaQuery", "./foundation.util.motion", "./foundation.util.touch"
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.keyboard", "./foundation.util.mediaQuery", "./foundation.util.motion", "./foundation.util.touch"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["
|
7
|
+
exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.keyboard"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("./foundation.util.touch"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.reveal"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.touch"]
|
10
|
-
})(
|
11
|
-
return /******/ (function(
|
12
|
-
/******/
|
13
|
-
/******/ var
|
14
|
-
/******/
|
15
|
-
/******/ // The require function
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
17
|
-
/******/
|
18
|
-
/******/ // Check if module is in cache
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
21
|
-
/******/ }
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
24
|
-
/******/ i: moduleId,
|
25
|
-
/******/ l: false,
|
26
|
-
/******/ exports: {}
|
27
|
-
/******/ };
|
28
|
-
/******/
|
29
|
-
/******/ // Execute the module function
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31
|
-
/******/
|
32
|
-
/******/ // Flag the module as loaded
|
33
|
-
/******/ module.l = true;
|
34
|
-
/******/
|
35
|
-
/******/ // Return the exports of the module
|
36
|
-
/******/ return module.exports;
|
37
|
-
/******/ }
|
38
|
-
/******/
|
39
|
-
/******/
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
41
|
-
/******/ __webpack_require__.m = modules;
|
42
|
-
/******/
|
43
|
-
/******/ // expose the module cache
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
45
|
-
/******/
|
46
|
-
/******/ // define getter function for harmony exports
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50
|
-
/******/ }
|
51
|
-
/******/ };
|
52
|
-
/******/
|
53
|
-
/******/ // define __esModule on exports
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57
|
-
/******/ }
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
59
|
-
/******/ };
|
60
|
-
/******/
|
61
|
-
/******/ // create a fake namespace object
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
65
|
-
/******/ // mode & 8|1: behave like require
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
68
|
-
/******/ if(mode & 8) return value;
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70
|
-
/******/ var ns = Object.create(null);
|
71
|
-
/******/ __webpack_require__.r(ns);
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74
|
-
/******/ return ns;
|
75
|
-
/******/ };
|
76
|
-
/******/
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
81
|
-
/******/ function getModuleExports() { return module; };
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
83
|
-
/******/ return getter;
|
84
|
-
/******/ };
|
85
|
-
/******/
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88
|
-
/******/
|
89
|
-
/******/ // __webpack_public_path__
|
90
|
-
/******/ __webpack_require__.p = "";
|
91
|
-
/******/
|
92
|
-
/******/
|
93
|
-
/******/ // Load entry module and return exports
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = 14);
|
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.mediaQuery":
|
122
|
-
/*!************************************************************************************************************************************************************************************************************!*\
|
123
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
|
124
|
-
\************************************************************************************************************************************************************************************************************/
|
125
|
-
/*! no static exports found */
|
126
|
-
/***/ (function(module, exports) {
|
127
|
-
|
128
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
|
129
|
-
|
130
|
-
/***/ }),
|
131
|
-
|
132
|
-
/***/ "./foundation.util.motion":
|
133
|
-
/*!********************************************************************************************************************************************************************************************!*\
|
134
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
|
135
|
-
\********************************************************************************************************************************************************************************************/
|
136
|
-
/*! no static exports found */
|
137
|
-
/***/ (function(module, exports) {
|
138
|
-
|
139
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
140
|
-
|
141
|
-
/***/ }),
|
142
|
-
|
143
|
-
/***/ "./foundation.util.touch":
|
144
|
-
/*!****************************************************************************************************************************************************************************************!*\
|
145
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.touch"],"amd":"./foundation.util.touch","commonjs":"./foundation.util.touch","commonjs2":"./foundation.util.touch"} ***!
|
146
|
-
\****************************************************************************************************************************************************************************************/
|
147
|
-
/*! no static exports found */
|
148
|
-
/***/ (function(module, exports) {
|
149
|
-
|
150
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__;
|
151
|
-
|
152
|
-
/***/ }),
|
153
|
-
|
154
|
-
/***/ "./js/entries/plugins/foundation.reveal.js":
|
155
|
-
/*!*************************************************!*\
|
156
|
-
!*** ./js/entries/plugins/foundation.reveal.js ***!
|
157
|
-
\*************************************************/
|
158
|
-
/*! exports provided: Foundation, Reveal */
|
159
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
160
|
-
|
161
|
-
"use strict";
|
162
|
-
__webpack_require__.r(__webpack_exports__);
|
163
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
164
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
165
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
166
|
-
|
167
|
-
/* harmony import */ var _foundation_reveal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.reveal */ "./js/foundation.reveal.js");
|
168
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Reveal", function() { return _foundation_reveal__WEBPACK_IMPORTED_MODULE_1__["Reveal"]; });
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_reveal__WEBPACK_IMPORTED_MODULE_1__["Reveal"], 'Reveal');
|
173
|
-
|
174
|
-
|
175
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.reveal"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.touch"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
176
14
|
|
177
15
|
/***/ "./js/foundation.reveal.js":
|
178
16
|
/*!*********************************!*\
|
179
17
|
!*** ./js/foundation.reveal.js ***!
|
180
18
|
\*********************************/
|
181
|
-
|
182
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
19
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
183
20
|
|
184
|
-
"use strict";
|
185
21
|
__webpack_require__.r(__webpack_exports__);
|
186
|
-
/* harmony export
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
23
|
+
/* harmony export */ Reveal: function() { return /* binding */ Reveal; }
|
24
|
+
/* harmony export */ });
|
187
25
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
188
26
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
189
|
-
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.
|
27
|
+
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
190
28
|
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
|
191
29
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.keyboard */ "./foundation.util.keyboard");
|
192
30
|
/* harmony import */ var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
|
@@ -197,25 +35,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
197
35
|
/* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
|
198
36
|
/* harmony import */ var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./foundation.util.touch */ "./foundation.util.touch");
|
199
37
|
/* harmony import */ var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_touch__WEBPACK_IMPORTED_MODULE_6__);
|
200
|
-
|
201
|
-
|
202
|
-
function
|
203
|
-
|
204
|
-
function
|
205
|
-
|
206
|
-
function
|
207
|
-
|
208
|
-
function
|
209
|
-
|
210
|
-
function
|
211
|
-
|
212
|
-
function
|
213
|
-
|
214
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
215
|
-
|
216
|
-
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); }
|
217
|
-
|
218
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
38
|
+
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); }
|
39
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
40
|
+
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); } }
|
41
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
42
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
43
|
+
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); }
|
44
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
45
|
+
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); }
|
46
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
47
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
48
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
49
|
+
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); }
|
50
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
219
51
|
|
220
52
|
|
221
53
|
|
@@ -234,21 +66,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
234
66
|
* @requires foundation.util.mediaQuery
|
235
67
|
* @requires foundation.util.motion if using animations
|
236
68
|
*/
|
237
|
-
|
238
|
-
var Reveal =
|
239
|
-
/*#__PURE__*/
|
240
|
-
function (_Plugin) {
|
241
|
-
_inherits(Reveal, _Plugin);
|
242
|
-
|
69
|
+
var Reveal = /*#__PURE__*/function (_Plugin) {
|
243
70
|
function Reveal() {
|
244
71
|
_classCallCheck(this, Reveal);
|
245
|
-
|
246
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Reveal).apply(this, arguments));
|
72
|
+
return _callSuper(this, Reveal, arguments);
|
247
73
|
}
|
248
|
-
|
249
|
-
_createClass(Reveal, [{
|
74
|
+
_inherits(Reveal, _Plugin);
|
75
|
+
return _createClass(Reveal, [{
|
250
76
|
key: "_setup",
|
251
|
-
|
77
|
+
value:
|
252
78
|
/**
|
253
79
|
* Creates a new instance of Reveal.
|
254
80
|
* @class
|
@@ -256,97 +82,86 @@ function (_Plugin) {
|
|
256
82
|
* @param {jQuery} element - jQuery object to use for the modal.
|
257
83
|
* @param {Object} options - optional parameters.
|
258
84
|
*/
|
259
|
-
|
85
|
+
function _setup(element, options) {
|
260
86
|
this.$element = element;
|
261
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
87
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Reveal.defaults, this.$element.data(), options);
|
262
88
|
this.className = 'Reveal'; // ie9 back compat
|
89
|
+
this._init();
|
263
90
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
|
269
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Reveal', {
|
91
|
+
// Touch and Triggers init are idempotent, just need to make sure they are initialized
|
92
|
+
_foundation_util_touch__WEBPACK_IMPORTED_MODULE_6__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
|
93
|
+
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
|
94
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.register('Reveal', {
|
270
95
|
'ESCAPE': 'close'
|
271
96
|
});
|
272
97
|
}
|
98
|
+
|
273
99
|
/**
|
274
100
|
* Initializes the modal by adding the overlay and close buttons, (if selected).
|
275
101
|
* @private
|
276
102
|
*/
|
277
|
-
|
278
103
|
}, {
|
279
104
|
key: "_init",
|
280
105
|
value: function _init() {
|
281
106
|
var _this2 = this;
|
282
|
-
|
283
|
-
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"]._init();
|
284
|
-
|
107
|
+
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__.MediaQuery._init();
|
285
108
|
this.id = this.$element.attr('id');
|
286
109
|
this.isActive = false;
|
287
110
|
this.cached = {
|
288
|
-
mq: _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__
|
111
|
+
mq: _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__.MediaQuery.current
|
289
112
|
};
|
290
113
|
this.$anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(this.id, "\"]")).length ? jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(this.id, "\"]")) : jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-toggle=\"".concat(this.id, "\"]"));
|
291
114
|
this.$anchor.attr({
|
292
115
|
'aria-controls': this.id,
|
293
|
-
'aria-haspopup':
|
116
|
+
'aria-haspopup': 'dialog',
|
294
117
|
'tabindex': 0
|
295
118
|
});
|
296
|
-
|
297
119
|
if (this.options.fullScreen || this.$element.hasClass('full')) {
|
298
120
|
this.options.fullScreen = true;
|
299
121
|
this.options.overlay = false;
|
300
122
|
}
|
301
|
-
|
302
123
|
if (this.options.overlay && !this.$overlay) {
|
303
124
|
this.$overlay = this._makeOverlay(this.id);
|
304
125
|
}
|
305
|
-
|
306
126
|
this.$element.attr({
|
307
127
|
'role': 'dialog',
|
308
128
|
'aria-hidden': true,
|
309
129
|
'data-yeti-box': this.id,
|
310
130
|
'data-resize': this.id
|
311
131
|
});
|
312
|
-
|
313
132
|
if (this.$overlay) {
|
314
133
|
this.$element.detach().appendTo(this.$overlay);
|
315
134
|
} else {
|
316
135
|
this.$element.detach().appendTo(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.appendTo));
|
317
136
|
this.$element.addClass('without-overlay');
|
318
137
|
}
|
319
|
-
|
320
138
|
this._events();
|
321
|
-
|
322
139
|
if (this.options.deepLink && window.location.hash === "#".concat(this.id)) {
|
323
|
-
this.onLoadListener =
|
140
|
+
this.onLoadListener = (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
324
141
|
return _this2.open();
|
325
142
|
});
|
326
143
|
}
|
327
144
|
}
|
145
|
+
|
328
146
|
/**
|
329
147
|
* Creates an overlay div to display behind the modal.
|
330
148
|
* @private
|
331
149
|
*/
|
332
|
-
|
333
150
|
}, {
|
334
151
|
key: "_makeOverlay",
|
335
152
|
value: function _makeOverlay() {
|
336
153
|
var additionalOverlayClasses = '';
|
337
|
-
|
338
154
|
if (this.options.additionalOverlayClasses) {
|
339
155
|
additionalOverlayClasses = ' ' + this.options.additionalOverlayClasses;
|
340
156
|
}
|
341
|
-
|
342
157
|
return jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div></div>').addClass('reveal-overlay' + additionalOverlayClasses).appendTo(this.options.appendTo);
|
343
158
|
}
|
159
|
+
|
344
160
|
/**
|
345
161
|
* Updates position of modal
|
346
162
|
* TODO: Figure out if we actually need to cache these values or if it doesn't matter
|
347
163
|
* @private
|
348
164
|
*/
|
349
|
-
|
350
165
|
}, {
|
351
166
|
key: "_updatePosition",
|
352
167
|
value: function _updatePosition() {
|
@@ -355,14 +170,12 @@ function (_Plugin) {
|
|
355
170
|
var height = this.$element.outerHeight();
|
356
171
|
var outerHeight = jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height();
|
357
172
|
var left,
|
358
|
-
|
359
|
-
|
173
|
+
top = null;
|
360
174
|
if (this.options.hOffset === 'auto') {
|
361
175
|
left = parseInt((outerWidth - width) / 2, 10);
|
362
176
|
} else {
|
363
177
|
left = parseInt(this.options.hOffset, 10);
|
364
178
|
}
|
365
|
-
|
366
179
|
if (this.options.vOffset === 'auto') {
|
367
180
|
if (height > outerHeight) {
|
368
181
|
top = parseInt(Math.min(100, outerHeight / 10), 10);
|
@@ -372,15 +185,14 @@ function (_Plugin) {
|
|
372
185
|
} else if (this.options.vOffset !== null) {
|
373
186
|
top = parseInt(this.options.vOffset, 10);
|
374
187
|
}
|
375
|
-
|
376
188
|
if (top !== null) {
|
377
189
|
this.$element.css({
|
378
190
|
top: top + 'px'
|
379
191
|
});
|
380
|
-
}
|
381
|
-
// otherwise we're perfectly in the middle
|
382
|
-
|
192
|
+
}
|
383
193
|
|
194
|
+
// only worry about left if we don't have an overlay or we have a horizontal offset,
|
195
|
+
// otherwise we're perfectly in the middle
|
384
196
|
if (!this.$overlay || this.options.hOffset !== 'auto') {
|
385
197
|
this.$element.css({
|
386
198
|
left: left + 'px'
|
@@ -390,18 +202,16 @@ function (_Plugin) {
|
|
390
202
|
});
|
391
203
|
}
|
392
204
|
}
|
205
|
+
|
393
206
|
/**
|
394
207
|
* Adds event handlers for the modal.
|
395
208
|
* @private
|
396
209
|
*/
|
397
|
-
|
398
210
|
}, {
|
399
211
|
key: "_events",
|
400
212
|
value: function _events() {
|
401
213
|
var _this3 = this;
|
402
|
-
|
403
214
|
var _this = this;
|
404
|
-
|
405
215
|
this.$element.on({
|
406
216
|
'open.zf.trigger': this.open.bind(this),
|
407
217
|
'close.zf.trigger': function closeZfTrigger(event, $element) {
|
@@ -415,79 +225,72 @@ function (_Plugin) {
|
|
415
225
|
_this._updatePosition();
|
416
226
|
}
|
417
227
|
});
|
418
|
-
|
419
228
|
if (this.options.closeOnClick && this.options.overlay) {
|
420
229
|
this.$overlay.off('.zf.reveal').on('click.zf.dropdown tap.zf.dropdown', function (e) {
|
421
|
-
if (e.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
230
|
+
if (e.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0], e.target) || !jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(document, e.target)) {
|
422
231
|
return;
|
423
232
|
}
|
424
|
-
|
425
233
|
_this.close();
|
426
234
|
});
|
427
235
|
}
|
428
|
-
|
429
236
|
if (this.options.deepLink) {
|
430
237
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on("hashchange.zf.reveal:".concat(this.id), this._handleState.bind(this));
|
431
238
|
}
|
432
239
|
}
|
240
|
+
|
433
241
|
/**
|
434
242
|
* Handles modal methods on back/forward button clicks or any other event that triggers hashchange.
|
435
243
|
* @private
|
436
244
|
*/
|
437
|
-
|
438
245
|
}, {
|
439
246
|
key: "_handleState",
|
440
|
-
value: function _handleState(
|
247
|
+
value: function _handleState() {
|
441
248
|
if (window.location.hash === '#' + this.id && !this.isActive) {
|
442
249
|
this.open();
|
443
250
|
} else {
|
444
251
|
this.close();
|
445
252
|
}
|
446
253
|
}
|
254
|
+
|
447
255
|
/**
|
448
256
|
* Disables the scroll when Reveal is shown to prevent the background from shifting
|
449
257
|
* @param {number} scrollTop - Scroll to visually apply, window current scroll by default
|
450
258
|
*/
|
451
|
-
|
452
259
|
}, {
|
453
260
|
key: "_disableScroll",
|
454
261
|
value: function _disableScroll(scrollTop) {
|
455
262
|
scrollTop = scrollTop || jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop();
|
456
|
-
|
457
263
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height() > jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height()) {
|
458
264
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top", -scrollTop);
|
459
265
|
}
|
460
266
|
}
|
267
|
+
|
461
268
|
/**
|
462
269
|
* Reenables the scroll when Reveal closes
|
463
270
|
* @param {number} scrollTop - Scroll to restore, html "top" property by default (as set by `_disableScroll`)
|
464
271
|
*/
|
465
|
-
|
466
272
|
}, {
|
467
273
|
key: "_enableScroll",
|
468
274
|
value: function _enableScroll(scrollTop) {
|
469
|
-
scrollTop = scrollTop || parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"));
|
470
|
-
|
275
|
+
scrollTop = scrollTop || parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"), 10);
|
471
276
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height() > jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height()) {
|
472
277
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top", "");
|
473
278
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop(-scrollTop);
|
474
279
|
}
|
475
280
|
}
|
281
|
+
|
476
282
|
/**
|
477
283
|
* Opens the modal controlled by `this.$anchor`, and closes all others by default.
|
478
284
|
* @function
|
479
285
|
* @fires Reveal#closeme
|
480
286
|
* @fires Reveal#open
|
481
287
|
*/
|
482
|
-
|
483
288
|
}, {
|
484
289
|
key: "open",
|
485
290
|
value: function open() {
|
486
291
|
var _this4 = this;
|
487
|
-
|
488
292
|
// either update or replace browser history
|
489
293
|
var hash = "#".concat(this.id);
|
490
|
-
|
491
294
|
if (this.options.deepLink && window.location.hash !== hash) {
|
492
295
|
if (window.history.pushState) {
|
493
296
|
if (this.options.updateHistory) {
|
@@ -498,40 +301,35 @@ function (_Plugin) {
|
|
498
301
|
} else {
|
499
302
|
window.location.hash = hash;
|
500
303
|
}
|
501
|
-
}
|
502
|
-
|
304
|
+
}
|
503
305
|
|
306
|
+
// Remember anchor that opened it to set focus back later, have general anchors as fallback
|
504
307
|
this.$activeAnchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.activeElement).is(this.$anchor) ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.activeElement) : this.$anchor;
|
505
|
-
this.isActive = true;
|
308
|
+
this.isActive = true;
|
506
309
|
|
310
|
+
// Make elements invisible, but remove display: none so we can get size and positioning
|
507
311
|
this.$element.css({
|
508
312
|
'visibility': 'hidden'
|
509
313
|
}).show().scrollTop(0);
|
510
|
-
|
511
314
|
if (this.options.overlay) {
|
512
315
|
this.$overlay.css({
|
513
316
|
'visibility': 'hidden'
|
514
317
|
}).show();
|
515
318
|
}
|
516
|
-
|
517
319
|
this._updatePosition();
|
518
|
-
|
519
320
|
this.$element.hide().css({
|
520
321
|
'visibility': ''
|
521
322
|
});
|
522
|
-
|
523
323
|
if (this.$overlay) {
|
524
324
|
this.$overlay.css({
|
525
325
|
'visibility': ''
|
526
326
|
}).hide();
|
527
|
-
|
528
327
|
if (this.$element.hasClass('fast')) {
|
529
328
|
this.$overlay.addClass('fast');
|
530
329
|
} else if (this.$element.hasClass('slow')) {
|
531
330
|
this.$overlay.addClass('slow');
|
532
331
|
}
|
533
332
|
}
|
534
|
-
|
535
333
|
if (!this.options.multipleOpened) {
|
536
334
|
/**
|
537
335
|
* Fires immediately before the modal opens.
|
@@ -540,64 +338,56 @@ function (_Plugin) {
|
|
540
338
|
*/
|
541
339
|
this.$element.trigger('closeme.zf.reveal', this.id);
|
542
340
|
}
|
543
|
-
|
544
341
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length === 0) {
|
545
342
|
this._disableScroll();
|
546
343
|
}
|
344
|
+
var _this = this;
|
547
345
|
|
548
|
-
|
549
|
-
|
550
|
-
|
346
|
+
// Motion UI method of reveal
|
551
347
|
if (this.options.animationIn) {
|
552
348
|
var afterAnimation = function afterAnimation() {
|
553
349
|
_this.$element.attr({
|
554
350
|
'aria-hidden': false,
|
555
351
|
'tabindex': -1
|
556
352
|
}).focus();
|
557
|
-
|
558
353
|
_this._addGlobalClasses();
|
559
|
-
|
560
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].trapFocus(_this.$element);
|
354
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.trapFocus(_this.$element);
|
561
355
|
};
|
562
|
-
|
563
356
|
if (this.options.overlay) {
|
564
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__
|
357
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__.Motion.animateIn(this.$overlay, 'fade-in');
|
565
358
|
}
|
566
|
-
|
567
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__["Motion"].animateIn(this.$element, this.options.animationIn, function () {
|
359
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__.Motion.animateIn(this.$element, this.options.animationIn, function () {
|
568
360
|
if (_this4.$element) {
|
569
361
|
// protect against object having been removed
|
570
|
-
_this4.focusableElements = _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__
|
362
|
+
_this4.focusableElements = _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.findFocusable(_this4.$element);
|
571
363
|
afterAnimation();
|
572
364
|
}
|
573
365
|
});
|
574
|
-
}
|
366
|
+
}
|
367
|
+
// jQuery method of reveal
|
575
368
|
else {
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
} // handle accessibility
|
582
|
-
|
369
|
+
if (this.options.overlay) {
|
370
|
+
this.$overlay.show(0);
|
371
|
+
}
|
372
|
+
this.$element.show(this.options.showDelay);
|
373
|
+
}
|
583
374
|
|
375
|
+
// handle accessibility
|
584
376
|
this.$element.attr({
|
585
377
|
'aria-hidden': false,
|
586
378
|
'tabindex': -1
|
587
379
|
}).focus();
|
588
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__
|
589
|
-
|
380
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.trapFocus(this.$element);
|
590
381
|
this._addGlobalClasses();
|
591
|
-
|
592
382
|
this._addGlobalListeners();
|
383
|
+
|
593
384
|
/**
|
594
385
|
* Fires when the modal has successfully opened.
|
595
386
|
* @event Reveal#open
|
596
387
|
*/
|
597
|
-
|
598
|
-
|
599
388
|
this.$element.trigger('open.zf.reveal');
|
600
389
|
}
|
390
|
+
|
601
391
|
/**
|
602
392
|
* Adds classes and listeners on document required by open modals.
|
603
393
|
*
|
@@ -609,25 +399,23 @@ function (_Plugin) {
|
|
609
399
|
*
|
610
400
|
* @private
|
611
401
|
*/
|
612
|
-
|
613
402
|
}, {
|
614
403
|
key: "_addGlobalClasses",
|
615
404
|
value: function _addGlobalClasses() {
|
616
405
|
var updateScrollbarClass = function updateScrollbarClass() {
|
617
406
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').toggleClass('zf-has-scroll', !!(jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height() > jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height()));
|
618
407
|
};
|
619
|
-
|
620
408
|
this.$element.on('resizeme.zf.trigger.revealScrollbarListener', function () {
|
621
409
|
return updateScrollbarClass();
|
622
410
|
});
|
623
411
|
updateScrollbarClass();
|
624
412
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').addClass('is-reveal-open');
|
625
413
|
}
|
414
|
+
|
626
415
|
/**
|
627
416
|
* Removes classes and listeners on document that were required by open modals.
|
628
417
|
* @private
|
629
418
|
*/
|
630
|
-
|
631
419
|
}, {
|
632
420
|
key: "_removeGlobalClasses",
|
633
421
|
value: function _removeGlobalClasses() {
|
@@ -635,36 +423,30 @@ function (_Plugin) {
|
|
635
423
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').removeClass('is-reveal-open');
|
636
424
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').removeClass('zf-has-scroll');
|
637
425
|
}
|
426
|
+
|
638
427
|
/**
|
639
428
|
* Adds extra event handlers for the body and window if necessary.
|
640
429
|
* @private
|
641
430
|
*/
|
642
|
-
|
643
431
|
}, {
|
644
432
|
key: "_addGlobalListeners",
|
645
433
|
value: function _addGlobalListeners() {
|
646
434
|
var _this = this;
|
647
|
-
|
648
435
|
if (!this.$element) {
|
649
436
|
return;
|
650
437
|
} // If we're in the middle of cleanup, don't freak out
|
651
|
-
|
652
|
-
|
653
|
-
this.focusableElements = _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].findFocusable(this.$element);
|
654
|
-
|
438
|
+
this.focusableElements = _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.findFocusable(this.$element);
|
655
439
|
if (!this.options.overlay && this.options.closeOnClick && !this.options.fullScreen) {
|
656
440
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click.zf.dropdown tap.zf.dropdown', function (e) {
|
657
|
-
if (e.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
441
|
+
if (e.target === _this.$element[0] || jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0], e.target) || !jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(document, e.target)) {
|
658
442
|
return;
|
659
443
|
}
|
660
|
-
|
661
444
|
_this.close();
|
662
445
|
});
|
663
446
|
}
|
664
|
-
|
665
447
|
if (this.options.closeOnEsc) {
|
666
448
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('keydown.zf.reveal', function (e) {
|
667
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__
|
449
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.handleKey(e, 'Reveal', {
|
668
450
|
close: function close() {
|
669
451
|
if (_this.options.closeOnEsc) {
|
670
452
|
_this.close();
|
@@ -674,93 +456,79 @@ function (_Plugin) {
|
|
674
456
|
});
|
675
457
|
}
|
676
458
|
}
|
459
|
+
|
677
460
|
/**
|
678
461
|
* Closes the modal.
|
679
462
|
* @function
|
680
463
|
* @fires Reveal#closed
|
681
464
|
*/
|
682
|
-
|
683
465
|
}, {
|
684
466
|
key: "close",
|
685
467
|
value: function close() {
|
686
468
|
if (!this.isActive || !this.$element.is(':visible')) {
|
687
469
|
return false;
|
688
470
|
}
|
471
|
+
var _this = this;
|
689
472
|
|
690
|
-
|
691
|
-
|
692
|
-
|
473
|
+
// Motion UI method of hiding
|
693
474
|
if (this.options.animationOut) {
|
694
475
|
if (this.options.overlay) {
|
695
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__
|
476
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__.Motion.animateOut(this.$overlay, 'fade-out');
|
696
477
|
}
|
697
|
-
|
698
|
-
|
699
|
-
|
478
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_4__.Motion.animateOut(this.$element, this.options.animationOut, finishUp);
|
479
|
+
}
|
480
|
+
// jQuery method of hiding
|
700
481
|
else {
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
} // Conditionals to remove extra event listeners added on open
|
709
|
-
|
482
|
+
this.$element.hide(this.options.hideDelay);
|
483
|
+
if (this.options.overlay) {
|
484
|
+
this.$overlay.hide(0, finishUp);
|
485
|
+
} else {
|
486
|
+
finishUp();
|
487
|
+
}
|
488
|
+
}
|
710
489
|
|
490
|
+
// Conditionals to remove extra event listeners added on open
|
711
491
|
if (this.options.closeOnEsc) {
|
712
492
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('keydown.zf.reveal');
|
713
493
|
}
|
714
|
-
|
715
494
|
if (!this.options.overlay && this.options.closeOnClick) {
|
716
495
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('click.zf.dropdown tap.zf.dropdown');
|
717
496
|
}
|
718
|
-
|
719
497
|
this.$element.off('keydown.zf.reveal');
|
720
|
-
|
721
498
|
function finishUp() {
|
722
499
|
// Get the current top before the modal is closed and restore the scroll after.
|
723
500
|
// TODO: use component properties instead of HTML properties
|
724
|
-
// See https://github.com/
|
725
|
-
var scrollTop = parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"));
|
726
|
-
|
501
|
+
// See https://github.com/foundation/foundation-sites/pull/10786
|
502
|
+
var scrollTop = parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"), 10);
|
727
503
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length === 0) {
|
728
504
|
_this._removeGlobalClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal
|
729
|
-
|
730
505
|
}
|
731
|
-
|
732
|
-
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].releaseFocus(_this.$element);
|
733
|
-
|
506
|
+
_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__.Keyboard.releaseFocus(_this.$element);
|
734
507
|
_this.$element.attr('aria-hidden', true);
|
735
|
-
|
736
508
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length === 0) {
|
737
509
|
_this._enableScroll(scrollTop);
|
738
510
|
}
|
511
|
+
|
739
512
|
/**
|
740
513
|
* Fires when the modal is done closing.
|
741
514
|
* @event Reveal#closed
|
742
515
|
*/
|
743
|
-
|
744
|
-
|
745
516
|
_this.$element.trigger('closed.zf.reveal');
|
746
517
|
}
|
518
|
+
|
747
519
|
/**
|
748
520
|
* Resets the modal content
|
749
521
|
* This prevents a running video to keep going in the background
|
750
522
|
*/
|
751
|
-
|
752
|
-
|
753
523
|
if (this.options.resetOnClose) {
|
754
524
|
this.$element.html(this.$element.html());
|
755
525
|
}
|
756
|
-
|
757
|
-
|
758
|
-
|
526
|
+
this.isActive = false;
|
527
|
+
// If deepLink and we did not switched to an other modal...
|
759
528
|
if (_this.options.deepLink && window.location.hash === "#".concat(this.id)) {
|
760
529
|
// Remove the history hash
|
761
530
|
if (window.history.replaceState) {
|
762
531
|
var urlWithoutHash = window.location.pathname + window.location.search;
|
763
|
-
|
764
532
|
if (this.options.updateHistory) {
|
765
533
|
window.history.pushState({}, '', urlWithoutHash); // remove the hash
|
766
534
|
} else {
|
@@ -770,14 +538,13 @@ function (_Plugin) {
|
|
770
538
|
window.location.hash = '';
|
771
539
|
}
|
772
540
|
}
|
773
|
-
|
774
541
|
this.$activeAnchor.focus();
|
775
542
|
}
|
543
|
+
|
776
544
|
/**
|
777
545
|
* Toggles the open/closed state of a modal.
|
778
546
|
* @function
|
779
547
|
*/
|
780
|
-
|
781
548
|
}, {
|
782
549
|
key: "toggle",
|
783
550
|
value: function toggle() {
|
@@ -789,33 +556,26 @@ function (_Plugin) {
|
|
789
556
|
}
|
790
557
|
}, {
|
791
558
|
key: "_destroy",
|
792
|
-
|
559
|
+
value:
|
793
560
|
/**
|
794
561
|
* Destroys an instance of a modal.
|
795
562
|
* @function
|
796
563
|
*/
|
797
|
-
|
564
|
+
function _destroy() {
|
798
565
|
if (this.options.overlay) {
|
799
566
|
this.$element.appendTo(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.appendTo)); // move $element outside of $overlay to prevent error unregisterPlugin()
|
800
|
-
|
801
567
|
this.$overlay.hide().off().remove();
|
802
568
|
}
|
803
|
-
|
804
569
|
this.$element.hide().off();
|
805
570
|
this.$anchor.off('.zf');
|
806
571
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(".zf.reveal:".concat(this.id));
|
807
572
|
if (this.onLoadListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
|
808
|
-
|
809
573
|
if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length === 0) {
|
810
574
|
this._removeGlobalClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal
|
811
|
-
|
812
575
|
}
|
813
576
|
}
|
814
577
|
}]);
|
815
|
-
|
816
|
-
return Reveal;
|
817
|
-
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
|
818
|
-
|
578
|
+
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
|
819
579
|
Reveal.defaults = {
|
820
580
|
/**
|
821
581
|
* Motion-UI class to use for animated elements. If none used, defaults to simple show/hide.
|
@@ -824,7 +584,6 @@ Reveal.defaults = {
|
|
824
584
|
* @default ''
|
825
585
|
*/
|
826
586
|
animationIn: '',
|
827
|
-
|
828
587
|
/**
|
829
588
|
* Motion-UI class to use for animated elements. If none used, defaults to simple show/hide.
|
830
589
|
* @option
|
@@ -832,7 +591,6 @@ Reveal.defaults = {
|
|
832
591
|
* @default ''
|
833
592
|
*/
|
834
593
|
animationOut: '',
|
835
|
-
|
836
594
|
/**
|
837
595
|
* Time, in ms, to delay the opening of a modal after a click if no animation used.
|
838
596
|
* @option
|
@@ -840,7 +598,6 @@ Reveal.defaults = {
|
|
840
598
|
* @default 0
|
841
599
|
*/
|
842
600
|
showDelay: 0,
|
843
|
-
|
844
601
|
/**
|
845
602
|
* Time, in ms, to delay the closing of a modal after a click if no animation used.
|
846
603
|
* @option
|
@@ -848,7 +605,6 @@ Reveal.defaults = {
|
|
848
605
|
* @default 0
|
849
606
|
*/
|
850
607
|
hideDelay: 0,
|
851
|
-
|
852
608
|
/**
|
853
609
|
* Allows a click on the body/overlay to close the modal.
|
854
610
|
* @option
|
@@ -856,7 +612,6 @@ Reveal.defaults = {
|
|
856
612
|
* @default true
|
857
613
|
*/
|
858
614
|
closeOnClick: true,
|
859
|
-
|
860
615
|
/**
|
861
616
|
* Allows the modal to close if the user presses the `ESCAPE` key.
|
862
617
|
* @option
|
@@ -864,7 +619,6 @@ Reveal.defaults = {
|
|
864
619
|
* @default true
|
865
620
|
*/
|
866
621
|
closeOnEsc: true,
|
867
|
-
|
868
622
|
/**
|
869
623
|
* If true, allows multiple modals to be displayed at once.
|
870
624
|
* @option
|
@@ -872,7 +626,6 @@ Reveal.defaults = {
|
|
872
626
|
* @default false
|
873
627
|
*/
|
874
628
|
multipleOpened: false,
|
875
|
-
|
876
629
|
/**
|
877
630
|
* Distance, in pixels, the modal should push down from the top of the screen.
|
878
631
|
* @option
|
@@ -880,7 +633,6 @@ Reveal.defaults = {
|
|
880
633
|
* @default auto
|
881
634
|
*/
|
882
635
|
vOffset: 'auto',
|
883
|
-
|
884
636
|
/**
|
885
637
|
* Distance, in pixels, the modal should push in from the side of the screen.
|
886
638
|
* @option
|
@@ -888,7 +640,6 @@ Reveal.defaults = {
|
|
888
640
|
* @default auto
|
889
641
|
*/
|
890
642
|
hOffset: 'auto',
|
891
|
-
|
892
643
|
/**
|
893
644
|
* Allows the modal to be fullscreen, completely blocking out the rest of the view. JS checks for this as well.
|
894
645
|
* @option
|
@@ -896,7 +647,6 @@ Reveal.defaults = {
|
|
896
647
|
* @default false
|
897
648
|
*/
|
898
649
|
fullScreen: false,
|
899
|
-
|
900
650
|
/**
|
901
651
|
* Allows the modal to generate an overlay div, which will cover the view when modal opens.
|
902
652
|
* @option
|
@@ -904,7 +654,6 @@ Reveal.defaults = {
|
|
904
654
|
* @default true
|
905
655
|
*/
|
906
656
|
overlay: true,
|
907
|
-
|
908
657
|
/**
|
909
658
|
* Allows the modal to remove and reinject markup on close. Should be true if using video elements w/o using provider's api, otherwise, videos will continue to play in the background.
|
910
659
|
* @option
|
@@ -912,7 +661,6 @@ Reveal.defaults = {
|
|
912
661
|
* @default false
|
913
662
|
*/
|
914
663
|
resetOnClose: false,
|
915
|
-
|
916
664
|
/**
|
917
665
|
* Link the location hash to the modal.
|
918
666
|
* Set the location hash when the modal is opened/closed, and open/close the modal when the location changes.
|
@@ -921,14 +669,12 @@ Reveal.defaults = {
|
|
921
669
|
* @default false
|
922
670
|
*/
|
923
671
|
deepLink: false,
|
924
|
-
|
925
672
|
/**
|
926
673
|
* If `deepLink` is enabled, update the browser history with the open modal
|
927
674
|
* @option
|
928
675
|
* @default false
|
929
676
|
*/
|
930
677
|
updateHistory: false,
|
931
|
-
|
932
678
|
/**
|
933
679
|
* Allows the modal to append to custom div.
|
934
680
|
* @option
|
@@ -936,7 +682,6 @@ Reveal.defaults = {
|
|
936
682
|
* @default "body"
|
937
683
|
*/
|
938
684
|
appendTo: "body",
|
939
|
-
|
940
685
|
/**
|
941
686
|
* Allows adding additional class names to the reveal overlay.
|
942
687
|
* @option
|
@@ -953,44 +698,36 @@ Reveal.defaults = {
|
|
953
698
|
/*!****************************************!*\
|
954
699
|
!*** ./js/foundation.util.triggers.js ***!
|
955
700
|
\****************************************/
|
956
|
-
|
957
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
701
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
958
702
|
|
959
|
-
"use strict";
|
960
703
|
__webpack_require__.r(__webpack_exports__);
|
961
|
-
/* harmony export
|
704
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
705
|
+
/* harmony export */ Triggers: function() { return /* binding */ Triggers; }
|
706
|
+
/* harmony export */ });
|
962
707
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
963
708
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
964
709
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
965
710
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
|
966
711
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
967
712
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
968
|
-
|
969
|
-
|
970
|
-
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); }
|
971
|
-
|
972
|
-
|
713
|
+
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); }
|
973
714
|
|
974
715
|
|
975
716
|
|
976
717
|
var MutationObserver = function () {
|
977
718
|
var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
|
978
|
-
|
979
719
|
for (var i = 0; i < prefixes.length; i++) {
|
980
720
|
if ("".concat(prefixes[i], "MutationObserver") in window) {
|
981
721
|
return window["".concat(prefixes[i], "MutationObserver")];
|
982
722
|
}
|
983
723
|
}
|
984
|
-
|
985
724
|
return false;
|
986
725
|
}();
|
987
|
-
|
988
726
|
var triggers = function triggers(el, type) {
|
989
727
|
el.data(type).split(' ').forEach(function (id) {
|
990
728
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
|
991
729
|
});
|
992
730
|
};
|
993
|
-
|
994
731
|
var Triggers = {
|
995
732
|
Listeners: {
|
996
733
|
Basic: {},
|
@@ -1004,7 +741,6 @@ Triggers.Listeners.Basic = {
|
|
1004
741
|
},
|
1005
742
|
closeListener: function closeListener() {
|
1006
743
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
|
1007
|
-
|
1008
744
|
if (id) {
|
1009
745
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
|
1010
746
|
} else {
|
@@ -1013,7 +749,6 @@ Triggers.Listeners.Basic = {
|
|
1013
749
|
},
|
1014
750
|
toggleListener: function toggleListener() {
|
1015
751
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
|
1016
|
-
|
1017
752
|
if (id) {
|
1018
753
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
|
1019
754
|
} else {
|
@@ -1021,12 +756,12 @@ Triggers.Listeners.Basic = {
|
|
1021
756
|
}
|
1022
757
|
},
|
1023
758
|
closeableListener: function closeableListener(e) {
|
1024
|
-
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
759
|
+
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
1025
760
|
|
761
|
+
// Only close the first closable element. See https://git.io/zf-7833
|
1026
762
|
e.stopPropagation();
|
1027
|
-
|
1028
763
|
if (animation !== '') {
|
1029
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__
|
764
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
|
1030
765
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
|
1031
766
|
});
|
1032
767
|
} else {
|
@@ -1037,39 +772,40 @@ Triggers.Listeners.Basic = {
|
|
1037
772
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
|
1038
773
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
|
1039
774
|
}
|
1040
|
-
};
|
775
|
+
};
|
1041
776
|
|
777
|
+
// Elements with [data-open] will reveal a plugin that supports it when clicked.
|
1042
778
|
Triggers.Initializers.addOpenListener = function ($elem) {
|
1043
779
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
|
1044
780
|
$elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
|
1045
|
-
};
|
1046
|
-
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1047
|
-
|
781
|
+
};
|
1048
782
|
|
783
|
+
// Elements with [data-close] will close a plugin that supports it when clicked.
|
784
|
+
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1049
785
|
Triggers.Initializers.addCloseListener = function ($elem) {
|
1050
786
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
|
1051
787
|
$elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
|
1052
|
-
};
|
1053
|
-
|
788
|
+
};
|
1054
789
|
|
790
|
+
// Elements with [data-toggle] will toggle a plugin that supports it when clicked.
|
1055
791
|
Triggers.Initializers.addToggleListener = function ($elem) {
|
1056
792
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
|
1057
793
|
$elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
|
1058
|
-
};
|
1059
|
-
|
794
|
+
};
|
1060
795
|
|
796
|
+
// Elements with [data-closable] will respond to close.zf.trigger events.
|
1061
797
|
Triggers.Initializers.addCloseableListener = function ($elem) {
|
1062
798
|
$elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
|
1063
799
|
$elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
|
1064
|
-
};
|
1065
|
-
|
800
|
+
};
|
1066
801
|
|
802
|
+
// Elements with [data-toggle-focus] will respond to coming in and out of focus
|
1067
803
|
Triggers.Initializers.addToggleFocusListener = function ($elem) {
|
1068
804
|
$elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
|
1069
805
|
$elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
|
1070
|
-
};
|
1071
|
-
|
806
|
+
};
|
1072
807
|
|
808
|
+
// More Global/complex listeners and triggers
|
1073
809
|
Triggers.Listeners.Global = {
|
1074
810
|
resizeListener: function resizeListener($nodes) {
|
1075
811
|
if (!MutationObserver) {
|
@@ -1077,9 +813,8 @@ Triggers.Listeners.Global = {
|
|
1077
813
|
$nodes.each(function () {
|
1078
814
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
|
1079
815
|
});
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
|
816
|
+
}
|
817
|
+
//trigger all listening elements and signal a resize event
|
1083
818
|
$nodes.attr('data-events', "resize");
|
1084
819
|
},
|
1085
820
|
scrollListener: function scrollListener($nodes) {
|
@@ -1088,9 +823,8 @@ Triggers.Listeners.Global = {
|
|
1088
823
|
$nodes.each(function () {
|
1089
824
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
|
1090
825
|
});
|
1091
|
-
}
|
1092
|
-
|
1093
|
-
|
826
|
+
}
|
827
|
+
//trigger all listening elements and signal a scroll event
|
1094
828
|
$nodes.attr('data-events', "scroll");
|
1095
829
|
},
|
1096
830
|
closeMeListener: function closeMeListener(e, pluginId) {
|
@@ -1098,17 +832,15 @@ Triggers.Listeners.Global = {
|
|
1098
832
|
var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
|
1099
833
|
plugins.each(function () {
|
1100
834
|
var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
1101
|
-
|
1102
835
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
1103
836
|
});
|
1104
|
-
}
|
1105
|
-
|
837
|
+
}
|
1106
838
|
};
|
1107
839
|
|
840
|
+
// Global, parses whole document.
|
1108
841
|
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
1109
842
|
var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
|
1110
|
-
|
1111
|
-
|
843
|
+
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
1112
844
|
if (pluginName) {
|
1113
845
|
if (typeof pluginName === 'string') {
|
1114
846
|
plugNames.push(pluginName);
|
@@ -1118,7 +850,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1118
850
|
console.error('Plugin names must be strings');
|
1119
851
|
}
|
1120
852
|
}
|
1121
|
-
|
1122
853
|
if (yetiBoxes.length) {
|
1123
854
|
var listeners = plugNames.map(function (name) {
|
1124
855
|
return "closeme.zf.".concat(name);
|
@@ -1126,75 +857,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1126
857
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
|
1127
858
|
}
|
1128
859
|
};
|
1129
|
-
|
1130
860
|
function debounceGlobalListener(debounce, trigger, listener) {
|
1131
861
|
var timer,
|
1132
|
-
|
1133
|
-
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).
|
862
|
+
args = Array.prototype.slice.call(arguments, 3);
|
863
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
|
1134
864
|
if (timer) {
|
1135
865
|
clearTimeout(timer);
|
1136
866
|
}
|
1137
|
-
|
1138
867
|
timer = setTimeout(function () {
|
1139
868
|
listener.apply(null, args);
|
1140
869
|
}, debounce || 10); //default time to emit scroll event
|
1141
870
|
});
|
1142
871
|
}
|
1143
|
-
|
1144
872
|
Triggers.Initializers.addResizeListener = function (debounce) {
|
1145
873
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
|
1146
|
-
|
1147
874
|
if ($nodes.length) {
|
1148
875
|
debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
|
1149
876
|
}
|
1150
877
|
};
|
1151
|
-
|
1152
878
|
Triggers.Initializers.addScrollListener = function (debounce) {
|
1153
879
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
|
1154
|
-
|
1155
880
|
if ($nodes.length) {
|
1156
881
|
debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
|
1157
882
|
}
|
1158
883
|
};
|
1159
|
-
|
1160
884
|
Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
1161
885
|
if (!MutationObserver) {
|
1162
886
|
return false;
|
1163
887
|
}
|
888
|
+
var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
|
1164
889
|
|
1165
|
-
|
1166
|
-
|
890
|
+
//element callback
|
1167
891
|
var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
|
1168
|
-
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
892
|
+
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
1169
893
|
|
894
|
+
//trigger the event handler for the element depending on type
|
1170
895
|
switch (mutationRecordsList[0].type) {
|
1171
896
|
case "attributes":
|
1172
897
|
if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
|
1173
898
|
$target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
|
1174
899
|
}
|
1175
|
-
|
1176
900
|
if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
|
1177
901
|
$target.triggerHandler('resizeme.zf.trigger', [$target]);
|
1178
902
|
}
|
1179
|
-
|
1180
903
|
if (mutationRecordsList[0].attributeName === "style") {
|
1181
904
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1182
905
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1183
906
|
}
|
1184
|
-
|
1185
907
|
break;
|
1186
|
-
|
1187
908
|
case "childList":
|
1188
909
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1189
910
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1190
911
|
break;
|
1191
|
-
|
1192
912
|
default:
|
1193
913
|
return false;
|
1194
914
|
//nothing
|
1195
915
|
}
|
1196
916
|
};
|
1197
|
-
|
1198
917
|
if ($nodes.length) {
|
1199
918
|
//for each element that needs to listen for resizing, scrolling, or mutation add a single observer
|
1200
919
|
for (var i = 0; i <= $nodes.length - 1; i++) {
|
@@ -1209,7 +928,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
|
1209
928
|
}
|
1210
929
|
}
|
1211
930
|
};
|
1212
|
-
|
1213
931
|
Triggers.Initializers.addSimpleListeners = function () {
|
1214
932
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1215
933
|
Triggers.Initializers.addOpenListener($document);
|
@@ -1218,44 +936,78 @@ Triggers.Initializers.addSimpleListeners = function () {
|
|
1218
936
|
Triggers.Initializers.addCloseableListener($document);
|
1219
937
|
Triggers.Initializers.addToggleFocusListener($document);
|
1220
938
|
};
|
1221
|
-
|
1222
939
|
Triggers.Initializers.addGlobalListeners = function () {
|
1223
940
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1224
941
|
Triggers.Initializers.addMutationEventsListener($document);
|
1225
|
-
Triggers.Initializers.addResizeListener();
|
942
|
+
Triggers.Initializers.addResizeListener(250);
|
1226
943
|
Triggers.Initializers.addScrollListener();
|
1227
944
|
Triggers.Initializers.addClosemeListener();
|
1228
945
|
};
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
if ($.triggersInitialized !== true) {
|
946
|
+
Triggers.init = function (__, Foundation) {
|
947
|
+
(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
948
|
+
if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
|
1233
949
|
Triggers.Initializers.addSimpleListeners();
|
1234
950
|
Triggers.Initializers.addGlobalListeners();
|
1235
|
-
|
951
|
+
(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
|
1236
952
|
}
|
1237
953
|
});
|
1238
|
-
|
1239
954
|
if (Foundation) {
|
1240
|
-
Foundation.Triggers = Triggers;
|
1241
|
-
|
955
|
+
Foundation.Triggers = Triggers;
|
956
|
+
// Legacy included to be backwards compatible for now.
|
1242
957
|
Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
|
1243
958
|
}
|
1244
959
|
};
|
1245
960
|
|
1246
961
|
|
962
|
+
/***/ }),
|
963
|
+
|
964
|
+
/***/ "./foundation.core":
|
965
|
+
/*!****************************************************************************************************************************************************************!*\
|
966
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
967
|
+
\****************************************************************************************************************************************************************/
|
968
|
+
/***/ (function(module) {
|
969
|
+
|
970
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
1247
971
|
|
1248
972
|
/***/ }),
|
1249
973
|
|
1250
|
-
/***/
|
1251
|
-
|
1252
|
-
!***
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
974
|
+
/***/ "./foundation.util.keyboard":
|
975
|
+
/*!****************************************************************************************************************************************************************************************************!*\
|
976
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.keyboard"],"amd":"./foundation.util.keyboard","commonjs":"./foundation.util.keyboard","commonjs2":"./foundation.util.keyboard"} ***!
|
977
|
+
\****************************************************************************************************************************************************************************************************/
|
978
|
+
/***/ (function(module) {
|
979
|
+
|
980
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
|
1256
981
|
|
1257
|
-
|
982
|
+
/***/ }),
|
1258
983
|
|
984
|
+
/***/ "./foundation.util.mediaQuery":
|
985
|
+
/*!************************************************************************************************************************************************************************************************************!*\
|
986
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
|
987
|
+
\************************************************************************************************************************************************************************************************************/
|
988
|
+
/***/ (function(module) {
|
989
|
+
|
990
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
|
991
|
+
|
992
|
+
/***/ }),
|
993
|
+
|
994
|
+
/***/ "./foundation.util.motion":
|
995
|
+
/*!********************************************************************************************************************************************************************************************!*\
|
996
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
|
997
|
+
\********************************************************************************************************************************************************************************************/
|
998
|
+
/***/ (function(module) {
|
999
|
+
|
1000
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
1001
|
+
|
1002
|
+
/***/ }),
|
1003
|
+
|
1004
|
+
/***/ "./foundation.util.touch":
|
1005
|
+
/*!****************************************************************************************************************************************************************************************!*\
|
1006
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.touch"],"amd":"./foundation.util.touch","commonjs":"./foundation.util.touch","commonjs2":"./foundation.util.touch"} ***!
|
1007
|
+
\****************************************************************************************************************************************************************************************/
|
1008
|
+
/***/ (function(module) {
|
1009
|
+
|
1010
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_touch__;
|
1259
1011
|
|
1260
1012
|
/***/ }),
|
1261
1013
|
|
@@ -1263,13 +1015,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
|
|
1263
1015
|
/*!********************************************************************************************!*\
|
1264
1016
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
1265
1017
|
\********************************************************************************************/
|
1266
|
-
|
1267
|
-
/***/ (function(module, exports) {
|
1018
|
+
/***/ (function(module) {
|
1268
1019
|
|
1269
1020
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
1270
1021
|
|
1271
1022
|
/***/ })
|
1272
1023
|
|
1273
|
-
/******/
|
1024
|
+
/******/ });
|
1025
|
+
/************************************************************************/
|
1026
|
+
/******/ // The module cache
|
1027
|
+
/******/ var __webpack_module_cache__ = {};
|
1028
|
+
/******/
|
1029
|
+
/******/ // The require function
|
1030
|
+
/******/ function __webpack_require__(moduleId) {
|
1031
|
+
/******/ // Check if module is in cache
|
1032
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
1033
|
+
/******/ if (cachedModule !== undefined) {
|
1034
|
+
/******/ return cachedModule.exports;
|
1035
|
+
/******/ }
|
1036
|
+
/******/ // Create a new module (and put it into the cache)
|
1037
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
1038
|
+
/******/ // no module.id needed
|
1039
|
+
/******/ // no module.loaded needed
|
1040
|
+
/******/ exports: {}
|
1041
|
+
/******/ };
|
1042
|
+
/******/
|
1043
|
+
/******/ // Execute the module function
|
1044
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
1045
|
+
/******/
|
1046
|
+
/******/ // Return the exports of the module
|
1047
|
+
/******/ return module.exports;
|
1048
|
+
/******/ }
|
1049
|
+
/******/
|
1050
|
+
/************************************************************************/
|
1051
|
+
/******/ /* webpack/runtime/compat get default export */
|
1052
|
+
/******/ !function() {
|
1053
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
1054
|
+
/******/ __webpack_require__.n = function(module) {
|
1055
|
+
/******/ var getter = module && module.__esModule ?
|
1056
|
+
/******/ function() { return module['default']; } :
|
1057
|
+
/******/ function() { return module; };
|
1058
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
1059
|
+
/******/ return getter;
|
1060
|
+
/******/ };
|
1061
|
+
/******/ }();
|
1062
|
+
/******/
|
1063
|
+
/******/ /* webpack/runtime/define property getters */
|
1064
|
+
/******/ !function() {
|
1065
|
+
/******/ // define getter functions for harmony exports
|
1066
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
1067
|
+
/******/ for(var key in definition) {
|
1068
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1069
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1070
|
+
/******/ }
|
1071
|
+
/******/ }
|
1072
|
+
/******/ };
|
1073
|
+
/******/ }();
|
1074
|
+
/******/
|
1075
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1076
|
+
/******/ !function() {
|
1077
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
1078
|
+
/******/ }();
|
1079
|
+
/******/
|
1080
|
+
/******/ /* webpack/runtime/make namespace object */
|
1081
|
+
/******/ !function() {
|
1082
|
+
/******/ // define __esModule on exports
|
1083
|
+
/******/ __webpack_require__.r = function(exports) {
|
1084
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
1085
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
1086
|
+
/******/ }
|
1087
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
1088
|
+
/******/ };
|
1089
|
+
/******/ }();
|
1090
|
+
/******/
|
1091
|
+
/************************************************************************/
|
1092
|
+
var __webpack_exports__ = {};
|
1093
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1094
|
+
!function() {
|
1095
|
+
/*!*************************************************!*\
|
1096
|
+
!*** ./js/entries/plugins/foundation.reveal.js ***!
|
1097
|
+
\*************************************************/
|
1098
|
+
__webpack_require__.r(__webpack_exports__);
|
1099
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1100
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
|
1101
|
+
/* harmony export */ Reveal: function() { return /* reexport safe */ _foundation_reveal__WEBPACK_IMPORTED_MODULE_1__.Reveal; }
|
1102
|
+
/* harmony export */ });
|
1103
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
1104
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
1105
|
+
/* harmony import */ var _foundation_reveal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.reveal */ "./js/foundation.reveal.js");
|
1106
|
+
|
1107
|
+
|
1108
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_reveal__WEBPACK_IMPORTED_MODULE_1__.Reveal, 'Reveal');
|
1109
|
+
|
1110
|
+
}();
|
1111
|
+
/******/ return __webpack_exports__;
|
1112
|
+
/******/ })()
|
1113
|
+
;
|
1274
1114
|
});
|
1275
1115
|
//# sourceMappingURL=foundation.reveal.js.map
|