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,202 +1,44 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("./foundation.core"), require("
|
3
|
+
module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("./foundation.util.box"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["./foundation.core", "
|
5
|
+
define(["./foundation.core", "jquery", "./foundation.util.mediaQuery", "./foundation.util.motion", "./foundation.util.box"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["
|
7
|
+
exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("./foundation.util.box"));
|
8
8
|
else
|
9
|
-
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.tooltip"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.
|
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 = 20);
|
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.box":
|
111
|
-
/*!********************************************************************************************************************************************************************************!*\
|
112
|
-
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***!
|
113
|
-
\********************************************************************************************************************************************************************************/
|
114
|
-
/*! no static exports found */
|
115
|
-
/***/ (function(module, exports) {
|
116
|
-
|
117
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__;
|
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
|
-
/***/ "./js/entries/plugins/foundation.tooltip.js":
|
144
|
-
/*!**************************************************!*\
|
145
|
-
!*** ./js/entries/plugins/foundation.tooltip.js ***!
|
146
|
-
\**************************************************/
|
147
|
-
/*! exports provided: Foundation, Tooltip */
|
148
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
149
|
-
|
150
|
-
"use strict";
|
151
|
-
__webpack_require__.r(__webpack_exports__);
|
152
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
153
|
-
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
154
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
|
155
|
-
|
156
|
-
/* harmony import */ var _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.tooltip */ "./js/foundation.tooltip.js");
|
157
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__["Tooltip"]; });
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__["Tooltip"], 'Tooltip');
|
162
|
-
|
163
|
-
|
164
|
-
/***/ }),
|
9
|
+
root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.tooltip"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"]);
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __WEBPACK_EXTERNAL_MODULE__foundation_util_box__) {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
165
14
|
|
166
15
|
/***/ "./js/foundation.positionable.js":
|
167
16
|
/*!***************************************!*\
|
168
17
|
!*** ./js/foundation.positionable.js ***!
|
169
18
|
\***************************************/
|
170
|
-
|
171
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
19
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
172
20
|
|
173
|
-
"use strict";
|
174
21
|
__webpack_require__.r(__webpack_exports__);
|
175
|
-
/* harmony export
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
23
|
+
/* harmony export */ Positionable: function() { return /* binding */ Positionable; }
|
24
|
+
/* harmony export */ });
|
176
25
|
/* harmony import */ var _foundation_util_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.util.box */ "./foundation.util.box");
|
177
26
|
/* harmony import */ var _foundation_util_box__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__);
|
178
|
-
/* 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");
|
179
28
|
/* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
|
180
|
-
|
181
|
-
|
182
|
-
function
|
183
|
-
|
184
|
-
function
|
185
|
-
|
186
|
-
function
|
187
|
-
|
188
|
-
function
|
189
|
-
|
190
|
-
function
|
191
|
-
|
192
|
-
function
|
193
|
-
|
194
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
195
|
-
|
196
|
-
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); }
|
197
|
-
|
198
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
199
|
-
|
29
|
+
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); }
|
30
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
31
|
+
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); } }
|
32
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
33
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
34
|
+
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); }
|
35
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
36
|
+
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); }
|
37
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
38
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
39
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
40
|
+
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); }
|
41
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
200
42
|
|
201
43
|
|
202
44
|
|
@@ -209,31 +51,23 @@ var ALIGNMENTS = {
|
|
209
51
|
'top': HORIZONTAL_ALIGNMENTS,
|
210
52
|
'bottom': HORIZONTAL_ALIGNMENTS
|
211
53
|
};
|
212
|
-
|
213
54
|
function nextItem(item, array) {
|
214
55
|
var currentIdx = array.indexOf(item);
|
215
|
-
|
216
56
|
if (currentIdx === array.length - 1) {
|
217
57
|
return array[0];
|
218
58
|
} else {
|
219
59
|
return array[currentIdx + 1];
|
220
60
|
}
|
221
61
|
}
|
222
|
-
|
223
|
-
var Positionable =
|
224
|
-
/*#__PURE__*/
|
225
|
-
function (_Plugin) {
|
226
|
-
_inherits(Positionable, _Plugin);
|
227
|
-
|
62
|
+
var Positionable = /*#__PURE__*/function (_Plugin) {
|
228
63
|
function Positionable() {
|
229
64
|
_classCallCheck(this, Positionable);
|
230
|
-
|
231
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Positionable).apply(this, arguments));
|
65
|
+
return _callSuper(this, Positionable, arguments);
|
232
66
|
}
|
233
|
-
|
234
|
-
_createClass(Positionable, [{
|
67
|
+
_inherits(Positionable, _Plugin);
|
68
|
+
return _createClass(Positionable, [{
|
235
69
|
key: "_init",
|
236
|
-
|
70
|
+
value:
|
237
71
|
/**
|
238
72
|
* Abstract class encapsulating the tether-like explicit positioning logic
|
239
73
|
* including repositioning based on overlap.
|
@@ -243,7 +77,8 @@ function (_Plugin) {
|
|
243
77
|
* generated) by explicitly declaring them.
|
244
78
|
*
|
245
79
|
**/
|
246
|
-
|
80
|
+
|
81
|
+
function _init() {
|
247
82
|
this.triedPositions = {};
|
248
83
|
this.position = this.options.position === 'auto' ? this._getDefaultPosition() : this.options.position;
|
249
84
|
this.alignment = this.options.alignment === 'auto' ? this._getDefaultAlignment() : this.options.alignment;
|
@@ -261,20 +96,19 @@ function (_Plugin) {
|
|
261
96
|
switch (this.position) {
|
262
97
|
case 'bottom':
|
263
98
|
case 'top':
|
264
|
-
return
|
265
|
-
|
99
|
+
return (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.rtl)() ? 'right' : 'left';
|
266
100
|
case 'left':
|
267
101
|
case 'right':
|
268
102
|
return 'bottom';
|
269
103
|
}
|
270
104
|
}
|
105
|
+
|
271
106
|
/**
|
272
107
|
* Adjusts the positionable possible positions by iterating through alignments
|
273
108
|
* and positions.
|
274
109
|
* @function
|
275
110
|
* @private
|
276
111
|
*/
|
277
|
-
|
278
112
|
}, {
|
279
113
|
key: "_reposition",
|
280
114
|
value: function _reposition() {
|
@@ -285,18 +119,17 @@ function (_Plugin) {
|
|
285
119
|
this._realign();
|
286
120
|
}
|
287
121
|
}
|
122
|
+
|
288
123
|
/**
|
289
124
|
* Adjusts the dropdown pane possible positions by iterating through alignments
|
290
125
|
* on the current position.
|
291
126
|
* @function
|
292
127
|
* @private
|
293
128
|
*/
|
294
|
-
|
295
129
|
}, {
|
296
130
|
key: "_realign",
|
297
131
|
value: function _realign() {
|
298
132
|
this._addTriedPosition(this.position, this.alignment);
|
299
|
-
|
300
133
|
this.alignment = nextItem(this.alignment, ALIGNMENTS[this.position]);
|
301
134
|
}
|
302
135
|
}, {
|
@@ -309,24 +142,23 @@ function (_Plugin) {
|
|
309
142
|
key: "_positionsExhausted",
|
310
143
|
value: function _positionsExhausted() {
|
311
144
|
var isExhausted = true;
|
312
|
-
|
313
145
|
for (var i = 0; i < POSITIONS.length; i++) {
|
314
146
|
isExhausted = isExhausted && this._alignmentsExhausted(POSITIONS[i]);
|
315
147
|
}
|
316
|
-
|
317
148
|
return isExhausted;
|
318
149
|
}
|
319
150
|
}, {
|
320
151
|
key: "_alignmentsExhausted",
|
321
152
|
value: function _alignmentsExhausted(position) {
|
322
|
-
return this.triedPositions[position] && this.triedPositions[position].length
|
323
|
-
}
|
153
|
+
return this.triedPositions[position] && this.triedPositions[position].length === ALIGNMENTS[position].length;
|
154
|
+
}
|
155
|
+
|
156
|
+
// When we're trying to center, we don't want to apply offset that's going to
|
324
157
|
// take us just off center, so wrap around to return 0 for the appropriate
|
325
158
|
// offset in those alignments. TODO: Figure out if we want to make this
|
326
159
|
// configurable behavior... it feels more intuitive, especially for tooltips, but
|
327
160
|
// it's possible someone might actually want to start from center and then nudge
|
328
161
|
// slightly off.
|
329
|
-
|
330
162
|
}, {
|
331
163
|
key: "_getVOffset",
|
332
164
|
value: function _getVOffset() {
|
@@ -343,30 +175,24 @@ function (_Plugin) {
|
|
343
175
|
if ($anchor.attr('aria-expanded') === 'false') {
|
344
176
|
return false;
|
345
177
|
}
|
346
|
-
|
347
178
|
if (!this.options.allowOverlap) {
|
348
179
|
// restore original position & alignment before checking overlap
|
349
180
|
this.position = this.originalPosition;
|
350
181
|
this.alignment = this.originalAlignment;
|
351
182
|
}
|
352
|
-
|
353
|
-
$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetExplicitOffsets($element, $anchor, this.position, this.alignment, this._getVOffset(), this._getHOffset()));
|
354
|
-
|
183
|
+
$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element, $anchor, this.position, this.alignment, this._getVOffset(), this._getHOffset()));
|
355
184
|
if (!this.options.allowOverlap) {
|
356
|
-
var minOverlap = 100000000;
|
357
|
-
|
185
|
+
var minOverlap = 100000000;
|
186
|
+
// default coordinates to how we start, in case we can't figure out better
|
358
187
|
var minCoordinates = {
|
359
188
|
position: this.position,
|
360
189
|
alignment: this.alignment
|
361
190
|
};
|
362
|
-
|
363
191
|
while (!this._positionsExhausted()) {
|
364
|
-
var overlap = _foundation_util_box__WEBPACK_IMPORTED_MODULE_0__
|
365
|
-
|
192
|
+
var overlap = _foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.OverlapArea($element, $parent, false, false, this.options.allowBottomOverlap);
|
366
193
|
if (overlap === 0) {
|
367
194
|
return;
|
368
195
|
}
|
369
|
-
|
370
196
|
if (overlap < minOverlap) {
|
371
197
|
minOverlap = overlap;
|
372
198
|
minCoordinates = {
|
@@ -374,24 +200,18 @@ function (_Plugin) {
|
|
374
200
|
alignment: this.alignment
|
375
201
|
};
|
376
202
|
}
|
377
|
-
|
378
203
|
this._reposition();
|
379
|
-
|
380
|
-
|
381
|
-
|
204
|
+
$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element, $anchor, this.position, this.alignment, this._getVOffset(), this._getHOffset()));
|
205
|
+
}
|
206
|
+
// If we get through the entire loop, there was no non-overlapping
|
382
207
|
// position available. Pick the version with least overlap.
|
383
|
-
|
384
|
-
|
385
208
|
this.position = minCoordinates.position;
|
386
209
|
this.alignment = minCoordinates.alignment;
|
387
|
-
$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__
|
210
|
+
$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element, $anchor, this.position, this.alignment, this._getVOffset(), this._getHOffset()));
|
388
211
|
}
|
389
212
|
}
|
390
213
|
}]);
|
391
|
-
|
392
|
-
return Positionable;
|
393
|
-
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
|
394
|
-
|
214
|
+
}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
|
395
215
|
Positionable.defaults = {
|
396
216
|
/**
|
397
217
|
* Position of positionable relative to anchor. Can be left, right, bottom, top, or auto.
|
@@ -400,7 +220,6 @@ Positionable.defaults = {
|
|
400
220
|
* @default 'auto'
|
401
221
|
*/
|
402
222
|
position: 'auto',
|
403
|
-
|
404
223
|
/**
|
405
224
|
* Alignment of positionable relative to anchor. Can be left, right, bottom, top, center, or auto.
|
406
225
|
* @option
|
@@ -408,7 +227,6 @@ Positionable.defaults = {
|
|
408
227
|
* @default 'auto'
|
409
228
|
*/
|
410
229
|
alignment: 'auto',
|
411
|
-
|
412
230
|
/**
|
413
231
|
* Allow overlap of container/window. If false, dropdown positionable first
|
414
232
|
* try to position as defined by data-position and data-alignment, but
|
@@ -418,7 +236,6 @@ Positionable.defaults = {
|
|
418
236
|
* @default false
|
419
237
|
*/
|
420
238
|
allowOverlap: false,
|
421
|
-
|
422
239
|
/**
|
423
240
|
* Allow overlap of only the bottom of the container. This is the most common
|
424
241
|
* behavior for dropdowns, allowing the dropdown to extend the bottom of the
|
@@ -428,7 +245,6 @@ Positionable.defaults = {
|
|
428
245
|
* @default true
|
429
246
|
*/
|
430
247
|
allowBottomOverlap: true,
|
431
|
-
|
432
248
|
/**
|
433
249
|
* Number of pixels the positionable should be separated vertically from anchor
|
434
250
|
* @option
|
@@ -436,7 +252,6 @@ Positionable.defaults = {
|
|
436
252
|
* @default 0
|
437
253
|
*/
|
438
254
|
vOffset: 0,
|
439
|
-
|
440
255
|
/**
|
441
256
|
* Number of pixels the positionable should be separated horizontally from anchor
|
442
257
|
* @option
|
@@ -453,12 +268,12 @@ Positionable.defaults = {
|
|
453
268
|
/*!**********************************!*\
|
454
269
|
!*** ./js/foundation.tooltip.js ***!
|
455
270
|
\**********************************/
|
456
|
-
|
457
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
271
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
458
272
|
|
459
|
-
"use strict";
|
460
273
|
__webpack_require__.r(__webpack_exports__);
|
461
|
-
/* harmony export
|
274
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
275
|
+
/* harmony export */ Tooltip: function() { return /* binding */ Tooltip; }
|
276
|
+
/* harmony export */ });
|
462
277
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
463
278
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
464
279
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
@@ -467,29 +282,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
467
282
|
/* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__);
|
468
283
|
/* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
|
469
284
|
/* harmony import */ var _foundation_positionable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./foundation.positionable */ "./js/foundation.positionable.js");
|
470
|
-
|
471
|
-
|
472
|
-
function
|
473
|
-
|
474
|
-
function
|
475
|
-
|
476
|
-
function
|
477
|
-
|
478
|
-
function
|
479
|
-
|
480
|
-
function
|
481
|
-
|
482
|
-
function
|
483
|
-
|
484
|
-
function
|
485
|
-
|
486
|
-
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
487
|
-
|
488
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
489
|
-
|
490
|
-
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); }
|
491
|
-
|
492
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
285
|
+
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); }
|
286
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
287
|
+
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); } }
|
288
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
289
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
290
|
+
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); }
|
291
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
292
|
+
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); }
|
293
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
294
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
295
|
+
function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; }
|
296
|
+
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
|
297
|
+
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
298
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
299
|
+
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); }
|
300
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
493
301
|
|
494
302
|
|
495
303
|
|
@@ -503,21 +311,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
503
311
|
* @requires foundation.util.mediaQuery
|
504
312
|
* @requires foundation.util.triggers
|
505
313
|
*/
|
506
|
-
|
507
|
-
var Tooltip =
|
508
|
-
/*#__PURE__*/
|
509
|
-
function (_Positionable) {
|
510
|
-
_inherits(Tooltip, _Positionable);
|
511
|
-
|
314
|
+
var Tooltip = /*#__PURE__*/function (_Positionable) {
|
512
315
|
function Tooltip() {
|
513
316
|
_classCallCheck(this, Tooltip);
|
514
|
-
|
515
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Tooltip).apply(this, arguments));
|
317
|
+
return _callSuper(this, Tooltip, arguments);
|
516
318
|
}
|
517
|
-
|
518
|
-
_createClass(Tooltip, [{
|
319
|
+
_inherits(Tooltip, _Positionable);
|
320
|
+
return _createClass(Tooltip, [{
|
519
321
|
key: "_setup",
|
520
|
-
|
322
|
+
value:
|
521
323
|
/**
|
522
324
|
* Creates a new instance of a Tooltip.
|
523
325
|
* @class
|
@@ -526,38 +328,35 @@ function (_Positionable) {
|
|
526
328
|
* @param {jQuery} element - jQuery object to attach a tooltip to.
|
527
329
|
* @param {Object} options - object to extend the default configuration.
|
528
330
|
*/
|
529
|
-
|
331
|
+
function _setup(element, options) {
|
530
332
|
this.$element = element;
|
531
|
-
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.
|
333
|
+
this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Tooltip.defaults, this.$element.data(), options);
|
532
334
|
this.className = 'Tooltip'; // ie9 back compat
|
533
335
|
|
534
336
|
this.isActive = false;
|
535
|
-
this.isClick = false;
|
536
|
-
|
537
|
-
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
|
337
|
+
this.isClick = false;
|
538
338
|
|
339
|
+
// Triggers init is idempotent, just need to make sure it is initialized
|
340
|
+
_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
|
539
341
|
this._init();
|
540
342
|
}
|
343
|
+
|
541
344
|
/**
|
542
345
|
* Initializes the tooltip by setting the creating the tip element, adding it's text, setting private variables and setting attributes on the anchor.
|
543
346
|
* @private
|
544
347
|
*/
|
545
|
-
|
546
348
|
}, {
|
547
349
|
key: "_init",
|
548
350
|
value: function _init() {
|
549
|
-
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__
|
550
|
-
|
551
|
-
var elemId = this.$element.attr('aria-describedby') || Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'tooltip');
|
351
|
+
_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery._init();
|
352
|
+
var elemId = this.$element.attr('aria-describedby') || (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6, 'tooltip');
|
552
353
|
this.options.tipText = this.options.tipText || this.$element.attr('title');
|
553
354
|
this.template = this.options.template ? jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.template) : this._buildTemplate(elemId);
|
554
|
-
|
555
355
|
if (this.options.allowHtml) {
|
556
356
|
this.template.appendTo(document.body).html(this.options.tipText).hide();
|
557
357
|
} else {
|
558
358
|
this.template.appendTo(document.body).text(this.options.tipText).hide();
|
559
359
|
}
|
560
|
-
|
561
360
|
this.$element.attr({
|
562
361
|
'title': '',
|
563
362
|
'aria-describedby': elemId,
|
@@ -565,25 +364,19 @@ function (_Positionable) {
|
|
565
364
|
'data-toggle': elemId,
|
566
365
|
'data-resize': elemId
|
567
366
|
}).addClass(this.options.triggerClass);
|
568
|
-
|
569
|
-
_get(_getPrototypeOf(Tooltip.prototype), "_init", this).call(this);
|
570
|
-
|
367
|
+
_superPropGet(Tooltip, "_init", this, 3)([]);
|
571
368
|
this._events();
|
572
369
|
}
|
573
370
|
}, {
|
574
371
|
key: "_getDefaultPosition",
|
575
372
|
value: function _getDefaultPosition() {
|
576
373
|
// handle legacy classnames
|
577
|
-
var position = this.$element[0].className.match(/\b(top|left|right|bottom)\b/g);
|
578
374
|
var elementClassName = this.$element[0].className;
|
579
|
-
|
580
375
|
if (this.$element[0] instanceof SVGElement) {
|
581
376
|
elementClassName = elementClassName.baseVal;
|
582
377
|
}
|
583
|
-
|
378
|
+
var position = elementClassName.match(/\b(top|left|right|bottom)\b/g);
|
584
379
|
return position ? position[0] : 'top';
|
585
|
-
var position = elementClassName.match(/\b(top|left|right)\b/g);
|
586
|
-
position = position ? position[0] : 'tp';
|
587
380
|
}
|
588
381
|
}, {
|
589
382
|
key: "_getDefaultAlignment",
|
@@ -608,11 +401,11 @@ function (_Positionable) {
|
|
608
401
|
return this.options.vOffset;
|
609
402
|
}
|
610
403
|
}
|
404
|
+
|
611
405
|
/**
|
612
406
|
* builds the tooltip element, adds attributes, and returns the template.
|
613
407
|
* @private
|
614
408
|
*/
|
615
|
-
|
616
409
|
}, {
|
617
410
|
key: "_buildTemplate",
|
618
411
|
value: function _buildTemplate(id) {
|
@@ -626,73 +419,66 @@ function (_Positionable) {
|
|
626
419
|
});
|
627
420
|
return $template;
|
628
421
|
}
|
422
|
+
|
629
423
|
/**
|
630
424
|
* sets the position class of an element and recursively calls itself until there are no more possible positions to attempt, or the tooltip element is no longer colliding.
|
631
425
|
* if the tooltip is larger than the screen width, default to full width - any user selected margin
|
632
426
|
* @private
|
633
427
|
*/
|
634
|
-
|
635
428
|
}, {
|
636
429
|
key: "_setPosition",
|
637
430
|
value: function _setPosition() {
|
638
|
-
|
431
|
+
_superPropGet(Tooltip, "_setPosition", this, 3)([this.$element, this.template]);
|
639
432
|
}
|
433
|
+
|
640
434
|
/**
|
641
435
|
* reveals the tooltip, and fires an event to close any other open tooltips on the page
|
642
436
|
* @fires Tooltip#closeme
|
643
437
|
* @fires Tooltip#show
|
644
438
|
* @function
|
645
439
|
*/
|
646
|
-
|
647
440
|
}, {
|
648
441
|
key: "show",
|
649
442
|
value: function show() {
|
650
|
-
if (this.options.showOn !== 'all' && !_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__
|
443
|
+
if (this.options.showOn !== 'all' && !_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery.is(this.options.showOn)) {
|
651
444
|
// console.error('The screen is too small to display this tooltip');
|
652
445
|
return false;
|
653
446
|
}
|
654
|
-
|
655
447
|
var _this = this;
|
656
|
-
|
657
448
|
this.template.css('visibility', 'hidden').show();
|
658
|
-
|
659
449
|
this._setPosition();
|
660
|
-
|
661
450
|
this.template.removeClass('top bottom left right').addClass(this.position);
|
662
451
|
this.template.removeClass('align-top align-bottom align-left align-right align-center').addClass('align-' + this.alignment);
|
452
|
+
|
663
453
|
/**
|
664
454
|
* Fires to close all other open tooltips on the page
|
665
455
|
* @event Closeme#tooltip
|
666
456
|
*/
|
667
|
-
|
668
457
|
this.$element.trigger('closeme.zf.tooltip', this.template.attr('id'));
|
669
458
|
this.template.attr({
|
670
459
|
'data-is-active': true,
|
671
460
|
'aria-hidden': false
|
672
461
|
});
|
673
|
-
_this.isActive = true;
|
674
|
-
|
675
|
-
|
462
|
+
_this.isActive = true;
|
463
|
+
this.template.stop().hide().css('visibility', '').fadeIn(this.options.fadeInDuration, function () {
|
464
|
+
//maybe do stuff?
|
676
465
|
});
|
677
466
|
/**
|
678
467
|
* Fires when the tooltip is shown
|
679
468
|
* @event Tooltip#show
|
680
469
|
*/
|
681
|
-
|
682
470
|
this.$element.trigger('show.zf.tooltip');
|
683
471
|
}
|
472
|
+
|
684
473
|
/**
|
685
474
|
* Hides the current tooltip, and resets the positioning class if it was changed due to collision
|
686
475
|
* @fires Tooltip#hide
|
687
476
|
* @function
|
688
477
|
*/
|
689
|
-
|
690
478
|
}, {
|
691
479
|
key: "hide",
|
692
480
|
value: function hide() {
|
693
|
-
// console.log('hiding', this.$element.data('yeti-box'));
|
694
481
|
var _this = this;
|
695
|
-
|
696
482
|
this.template.stop().attr({
|
697
483
|
'aria-hidden': true,
|
698
484
|
'data-is-active': false
|
@@ -704,89 +490,79 @@ function (_Positionable) {
|
|
704
490
|
* fires when the tooltip is hidden
|
705
491
|
* @event Tooltip#hide
|
706
492
|
*/
|
707
|
-
|
708
493
|
this.$element.trigger('hide.zf.tooltip');
|
709
494
|
}
|
495
|
+
|
710
496
|
/**
|
711
497
|
* adds event listeners for the tooltip and its anchor
|
712
498
|
* TODO combine some of the listeners like focus and mouseenter, etc.
|
713
499
|
* @private
|
714
500
|
*/
|
715
|
-
|
716
501
|
}, {
|
717
502
|
key: "_events",
|
718
503
|
value: function _events() {
|
719
504
|
var _this = this;
|
720
|
-
|
721
505
|
var hasTouch = 'ontouchstart' in window || typeof window.ontouchstart !== 'undefined';
|
722
|
-
var
|
723
|
-
var isFocus = false; // `disableForTouch: Fully disable the tooltip on touch devices
|
506
|
+
var isFocus = false;
|
724
507
|
|
508
|
+
// `disableForTouch: Fully disable the tooltip on touch devices
|
725
509
|
if (hasTouch && this.options.disableForTouch) return;
|
726
|
-
|
727
510
|
if (!this.options.disableHover) {
|
728
|
-
this.$element.on('mouseenter.zf.tooltip', function (
|
511
|
+
this.$element.on('mouseenter.zf.tooltip', function () {
|
729
512
|
if (!_this.isActive) {
|
730
513
|
_this.timeout = setTimeout(function () {
|
731
514
|
_this.show();
|
732
515
|
}, _this.options.hoverDelay);
|
733
516
|
}
|
734
|
-
}).on('mouseleave.zf.tooltip',
|
517
|
+
}).on('mouseleave.zf.tooltip', (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.ignoreMousedisappear)(function () {
|
735
518
|
clearTimeout(_this.timeout);
|
736
|
-
|
737
519
|
if (!isFocus || _this.isClick && !_this.options.clickOpen) {
|
738
520
|
_this.hide();
|
739
521
|
}
|
740
522
|
}));
|
741
523
|
}
|
742
|
-
|
743
524
|
if (hasTouch) {
|
744
|
-
this.$element.on('tap.zf.tooltip touchend.zf.tooltip', function (
|
525
|
+
this.$element.on('tap.zf.tooltip touchend.zf.tooltip', function () {
|
745
526
|
_this.isActive ? _this.hide() : _this.show();
|
746
527
|
});
|
747
528
|
}
|
748
|
-
|
749
529
|
if (this.options.clickOpen) {
|
750
|
-
this.$element.on('mousedown.zf.tooltip', function (
|
751
|
-
if (_this.isClick) {
|
530
|
+
this.$element.on('mousedown.zf.tooltip', function () {
|
531
|
+
if (_this.isClick) {
|
532
|
+
//_this.hide();
|
752
533
|
// _this.isClick = false;
|
753
534
|
} else {
|
754
535
|
_this.isClick = true;
|
755
|
-
|
756
536
|
if ((_this.options.disableHover || !_this.$element.attr('tabindex')) && !_this.isActive) {
|
757
537
|
_this.show();
|
758
538
|
}
|
759
539
|
}
|
760
540
|
});
|
761
541
|
} else {
|
762
|
-
this.$element.on('mousedown.zf.tooltip', function (
|
542
|
+
this.$element.on('mousedown.zf.tooltip', function () {
|
763
543
|
_this.isClick = true;
|
764
544
|
});
|
765
545
|
}
|
766
|
-
|
767
546
|
this.$element.on({
|
768
547
|
// 'toggle.zf.trigger': this.toggle.bind(this),
|
769
548
|
// 'close.zf.trigger': this.hide.bind(this)
|
770
549
|
'close.zf.trigger': this.hide.bind(this)
|
771
550
|
});
|
772
|
-
this.$element.on('focus.zf.tooltip', function (
|
551
|
+
this.$element.on('focus.zf.tooltip', function () {
|
773
552
|
isFocus = true;
|
774
|
-
|
775
553
|
if (_this.isClick) {
|
776
554
|
// If we're not showing open on clicks, we need to pretend a click-launched focus isn't
|
777
555
|
// a real focus, otherwise on hover and come back we get bad behavior
|
778
556
|
if (!_this.options.clickOpen) {
|
779
557
|
isFocus = false;
|
780
558
|
}
|
781
|
-
|
782
559
|
return false;
|
783
560
|
} else {
|
784
561
|
_this.show();
|
785
562
|
}
|
786
|
-
}).on('focusout.zf.tooltip', function (
|
563
|
+
}).on('focusout.zf.tooltip', function () {
|
787
564
|
isFocus = false;
|
788
565
|
_this.isClick = false;
|
789
|
-
|
790
566
|
_this.hide();
|
791
567
|
}).on('resizeme.zf.trigger', function () {
|
792
568
|
if (_this.isActive) {
|
@@ -794,11 +570,11 @@ function (_Positionable) {
|
|
794
570
|
}
|
795
571
|
});
|
796
572
|
}
|
573
|
+
|
797
574
|
/**
|
798
575
|
* adds a toggle method, in addition to the static show() & hide() functions
|
799
576
|
* @function
|
800
577
|
*/
|
801
|
-
|
802
578
|
}, {
|
803
579
|
key: "toggle",
|
804
580
|
value: function toggle() {
|
@@ -808,11 +584,11 @@ function (_Positionable) {
|
|
808
584
|
this.show();
|
809
585
|
}
|
810
586
|
}
|
587
|
+
|
811
588
|
/**
|
812
589
|
* Destroys an instance of tooltip, removes template element from the view.
|
813
590
|
* @function
|
814
591
|
*/
|
815
|
-
|
816
592
|
}, {
|
817
593
|
key: "_destroy",
|
818
594
|
value: function _destroy() {
|
@@ -820,10 +596,7 @@ function (_Positionable) {
|
|
820
596
|
this.template.remove();
|
821
597
|
}
|
822
598
|
}]);
|
823
|
-
|
824
|
-
return Tooltip;
|
825
|
-
}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__["Positionable"]);
|
826
|
-
|
599
|
+
}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__.Positionable);
|
827
600
|
Tooltip.defaults = {
|
828
601
|
/**
|
829
602
|
* Time, in ms, before a tooltip should open on hover.
|
@@ -832,7 +605,6 @@ Tooltip.defaults = {
|
|
832
605
|
* @default 200
|
833
606
|
*/
|
834
607
|
hoverDelay: 200,
|
835
|
-
|
836
608
|
/**
|
837
609
|
* Time, in ms, a tooltip should take to fade into view.
|
838
610
|
* @option
|
@@ -840,7 +612,6 @@ Tooltip.defaults = {
|
|
840
612
|
* @default 150
|
841
613
|
*/
|
842
614
|
fadeInDuration: 150,
|
843
|
-
|
844
615
|
/**
|
845
616
|
* Time, in ms, a tooltip should take to fade out of view.
|
846
617
|
* @option
|
@@ -848,7 +619,6 @@ Tooltip.defaults = {
|
|
848
619
|
* @default 150
|
849
620
|
*/
|
850
621
|
fadeOutDuration: 150,
|
851
|
-
|
852
622
|
/**
|
853
623
|
* Disables hover events from opening the tooltip if set to true
|
854
624
|
* @option
|
@@ -856,7 +626,6 @@ Tooltip.defaults = {
|
|
856
626
|
* @default false
|
857
627
|
*/
|
858
628
|
disableHover: false,
|
859
|
-
|
860
629
|
/**
|
861
630
|
* Disable the tooltip for touch devices.
|
862
631
|
* This can be useful to make elements with a tooltip on it trigger their
|
@@ -866,7 +635,6 @@ Tooltip.defaults = {
|
|
866
635
|
* @default false
|
867
636
|
*/
|
868
637
|
disableForTouch: false,
|
869
|
-
|
870
638
|
/**
|
871
639
|
* Optional addtional classes to apply to the tooltip template on init.
|
872
640
|
* @option
|
@@ -874,7 +642,6 @@ Tooltip.defaults = {
|
|
874
642
|
* @default ''
|
875
643
|
*/
|
876
644
|
templateClasses: '',
|
877
|
-
|
878
645
|
/**
|
879
646
|
* Non-optional class added to tooltip templates. Foundation default is 'tooltip'.
|
880
647
|
* @option
|
@@ -882,7 +649,6 @@ Tooltip.defaults = {
|
|
882
649
|
* @default 'tooltip'
|
883
650
|
*/
|
884
651
|
tooltipClass: 'tooltip',
|
885
|
-
|
886
652
|
/**
|
887
653
|
* Class applied to the tooltip anchor element.
|
888
654
|
* @option
|
@@ -890,7 +656,6 @@ Tooltip.defaults = {
|
|
890
656
|
* @default 'has-tip'
|
891
657
|
*/
|
892
658
|
triggerClass: 'has-tip',
|
893
|
-
|
894
659
|
/**
|
895
660
|
* Minimum breakpoint size at which to open the tooltip.
|
896
661
|
* @option
|
@@ -898,7 +663,6 @@ Tooltip.defaults = {
|
|
898
663
|
* @default 'small'
|
899
664
|
*/
|
900
665
|
showOn: 'small',
|
901
|
-
|
902
666
|
/**
|
903
667
|
* Custom template to be used to generate markup for tooltip.
|
904
668
|
* @option
|
@@ -906,7 +670,6 @@ Tooltip.defaults = {
|
|
906
670
|
* @default ''
|
907
671
|
*/
|
908
672
|
template: '',
|
909
|
-
|
910
673
|
/**
|
911
674
|
* Text displayed in the tooltip template on open.
|
912
675
|
* @option
|
@@ -915,7 +678,6 @@ Tooltip.defaults = {
|
|
915
678
|
*/
|
916
679
|
tipText: '',
|
917
680
|
touchCloseText: 'Tap to close.',
|
918
|
-
|
919
681
|
/**
|
920
682
|
* Allows the tooltip to remain open if triggered with a click or touch event.
|
921
683
|
* @option
|
@@ -923,7 +685,6 @@ Tooltip.defaults = {
|
|
923
685
|
* @default true
|
924
686
|
*/
|
925
687
|
clickOpen: true,
|
926
|
-
|
927
688
|
/**
|
928
689
|
* Position of tooltip. Can be left, right, bottom, top, or auto.
|
929
690
|
* @option
|
@@ -931,7 +692,6 @@ Tooltip.defaults = {
|
|
931
692
|
* @default 'auto'
|
932
693
|
*/
|
933
694
|
position: 'auto',
|
934
|
-
|
935
695
|
/**
|
936
696
|
* Alignment of tooltip relative to anchor. Can be left, right, bottom, top, center, or auto.
|
937
697
|
* @option
|
@@ -939,7 +699,6 @@ Tooltip.defaults = {
|
|
939
699
|
* @default 'auto'
|
940
700
|
*/
|
941
701
|
alignment: 'auto',
|
942
|
-
|
943
702
|
/**
|
944
703
|
* Allow overlap of container/window. If false, tooltip will first try to
|
945
704
|
* position as defined by data-position and data-alignment, but reposition if
|
@@ -948,7 +707,6 @@ Tooltip.defaults = {
|
|
948
707
|
* @default false
|
949
708
|
*/
|
950
709
|
allowOverlap: false,
|
951
|
-
|
952
710
|
/**
|
953
711
|
* Allow overlap of only the bottom of the container. This is the most common
|
954
712
|
* behavior for dropdowns, allowing the dropdown to extend the bottom of the
|
@@ -959,7 +717,6 @@ Tooltip.defaults = {
|
|
959
717
|
* @default false
|
960
718
|
*/
|
961
719
|
allowBottomOverlap: false,
|
962
|
-
|
963
720
|
/**
|
964
721
|
* Distance, in pixels, the template should push away from the anchor on the Y axis.
|
965
722
|
* @option
|
@@ -967,7 +724,6 @@ Tooltip.defaults = {
|
|
967
724
|
* @default 0
|
968
725
|
*/
|
969
726
|
vOffset: 0,
|
970
|
-
|
971
727
|
/**
|
972
728
|
* Distance, in pixels, the template should push away from the anchor on the X axis
|
973
729
|
* @option
|
@@ -975,7 +731,6 @@ Tooltip.defaults = {
|
|
975
731
|
* @default 0
|
976
732
|
*/
|
977
733
|
hOffset: 0,
|
978
|
-
|
979
734
|
/**
|
980
735
|
* Distance, in pixels, the template spacing auto-adjust for a vertical tooltip
|
981
736
|
* @option
|
@@ -983,7 +738,6 @@ Tooltip.defaults = {
|
|
983
738
|
* @default 14
|
984
739
|
*/
|
985
740
|
tooltipHeight: 14,
|
986
|
-
|
987
741
|
/**
|
988
742
|
* Distance, in pixels, the template spacing auto-adjust for a horizontal tooltip
|
989
743
|
* @option
|
@@ -991,7 +745,6 @@ Tooltip.defaults = {
|
|
991
745
|
* @default 12
|
992
746
|
*/
|
993
747
|
tooltipWidth: 12,
|
994
|
-
|
995
748
|
/**
|
996
749
|
* Allow HTML in tooltip. Warning: If you are loading user-generated content into tooltips,
|
997
750
|
* allowing HTML may open yourself up to XSS attacks.
|
@@ -1001,6 +754,7 @@ Tooltip.defaults = {
|
|
1001
754
|
*/
|
1002
755
|
allowHtml: false
|
1003
756
|
};
|
757
|
+
|
1004
758
|
/**
|
1005
759
|
* TODO utilize resize event trigger
|
1006
760
|
*/
|
@@ -1013,44 +767,36 @@ Tooltip.defaults = {
|
|
1013
767
|
/*!****************************************!*\
|
1014
768
|
!*** ./js/foundation.util.triggers.js ***!
|
1015
769
|
\****************************************/
|
1016
|
-
|
1017
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
770
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1018
771
|
|
1019
|
-
"use strict";
|
1020
772
|
__webpack_require__.r(__webpack_exports__);
|
1021
|
-
/* harmony export
|
773
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
774
|
+
/* harmony export */ Triggers: function() { return /* binding */ Triggers; }
|
775
|
+
/* harmony export */ });
|
1022
776
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
1023
777
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
1024
778
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
1025
779
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
|
1026
780
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
1027
781
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
1028
|
-
|
1029
|
-
|
1030
|
-
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); }
|
1031
|
-
|
1032
|
-
|
782
|
+
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); }
|
1033
783
|
|
1034
784
|
|
1035
785
|
|
1036
786
|
var MutationObserver = function () {
|
1037
787
|
var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
|
1038
|
-
|
1039
788
|
for (var i = 0; i < prefixes.length; i++) {
|
1040
789
|
if ("".concat(prefixes[i], "MutationObserver") in window) {
|
1041
790
|
return window["".concat(prefixes[i], "MutationObserver")];
|
1042
791
|
}
|
1043
792
|
}
|
1044
|
-
|
1045
793
|
return false;
|
1046
794
|
}();
|
1047
|
-
|
1048
795
|
var triggers = function triggers(el, type) {
|
1049
796
|
el.data(type).split(' ').forEach(function (id) {
|
1050
797
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
|
1051
798
|
});
|
1052
799
|
};
|
1053
|
-
|
1054
800
|
var Triggers = {
|
1055
801
|
Listeners: {
|
1056
802
|
Basic: {},
|
@@ -1064,7 +810,6 @@ Triggers.Listeners.Basic = {
|
|
1064
810
|
},
|
1065
811
|
closeListener: function closeListener() {
|
1066
812
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
|
1067
|
-
|
1068
813
|
if (id) {
|
1069
814
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
|
1070
815
|
} else {
|
@@ -1073,7 +818,6 @@ Triggers.Listeners.Basic = {
|
|
1073
818
|
},
|
1074
819
|
toggleListener: function toggleListener() {
|
1075
820
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
|
1076
|
-
|
1077
821
|
if (id) {
|
1078
822
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
|
1079
823
|
} else {
|
@@ -1081,12 +825,12 @@ Triggers.Listeners.Basic = {
|
|
1081
825
|
}
|
1082
826
|
},
|
1083
827
|
closeableListener: function closeableListener(e) {
|
1084
|
-
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
828
|
+
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
1085
829
|
|
830
|
+
// Only close the first closable element. See https://git.io/zf-7833
|
1086
831
|
e.stopPropagation();
|
1087
|
-
|
1088
832
|
if (animation !== '') {
|
1089
|
-
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__
|
833
|
+
_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
|
1090
834
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
|
1091
835
|
});
|
1092
836
|
} else {
|
@@ -1097,39 +841,40 @@ Triggers.Listeners.Basic = {
|
|
1097
841
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
|
1098
842
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
|
1099
843
|
}
|
1100
|
-
};
|
844
|
+
};
|
1101
845
|
|
846
|
+
// Elements with [data-open] will reveal a plugin that supports it when clicked.
|
1102
847
|
Triggers.Initializers.addOpenListener = function ($elem) {
|
1103
848
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
|
1104
849
|
$elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
|
1105
|
-
};
|
1106
|
-
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1107
|
-
|
850
|
+
};
|
1108
851
|
|
852
|
+
// Elements with [data-close] will close a plugin that supports it when clicked.
|
853
|
+
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1109
854
|
Triggers.Initializers.addCloseListener = function ($elem) {
|
1110
855
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
|
1111
856
|
$elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
|
1112
|
-
};
|
1113
|
-
|
857
|
+
};
|
1114
858
|
|
859
|
+
// Elements with [data-toggle] will toggle a plugin that supports it when clicked.
|
1115
860
|
Triggers.Initializers.addToggleListener = function ($elem) {
|
1116
861
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
|
1117
862
|
$elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
|
1118
|
-
};
|
1119
|
-
|
863
|
+
};
|
1120
864
|
|
865
|
+
// Elements with [data-closable] will respond to close.zf.trigger events.
|
1121
866
|
Triggers.Initializers.addCloseableListener = function ($elem) {
|
1122
867
|
$elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
|
1123
868
|
$elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
|
1124
|
-
};
|
1125
|
-
|
869
|
+
};
|
1126
870
|
|
871
|
+
// Elements with [data-toggle-focus] will respond to coming in and out of focus
|
1127
872
|
Triggers.Initializers.addToggleFocusListener = function ($elem) {
|
1128
873
|
$elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
|
1129
874
|
$elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
|
1130
|
-
};
|
1131
|
-
|
875
|
+
};
|
1132
876
|
|
877
|
+
// More Global/complex listeners and triggers
|
1133
878
|
Triggers.Listeners.Global = {
|
1134
879
|
resizeListener: function resizeListener($nodes) {
|
1135
880
|
if (!MutationObserver) {
|
@@ -1137,9 +882,8 @@ Triggers.Listeners.Global = {
|
|
1137
882
|
$nodes.each(function () {
|
1138
883
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
|
1139
884
|
});
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
|
885
|
+
}
|
886
|
+
//trigger all listening elements and signal a resize event
|
1143
887
|
$nodes.attr('data-events', "resize");
|
1144
888
|
},
|
1145
889
|
scrollListener: function scrollListener($nodes) {
|
@@ -1148,9 +892,8 @@ Triggers.Listeners.Global = {
|
|
1148
892
|
$nodes.each(function () {
|
1149
893
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
|
1150
894
|
});
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
|
895
|
+
}
|
896
|
+
//trigger all listening elements and signal a scroll event
|
1154
897
|
$nodes.attr('data-events', "scroll");
|
1155
898
|
},
|
1156
899
|
closeMeListener: function closeMeListener(e, pluginId) {
|
@@ -1158,17 +901,15 @@ Triggers.Listeners.Global = {
|
|
1158
901
|
var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
|
1159
902
|
plugins.each(function () {
|
1160
903
|
var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
1161
|
-
|
1162
904
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
1163
905
|
});
|
1164
|
-
}
|
1165
|
-
|
906
|
+
}
|
1166
907
|
};
|
1167
908
|
|
909
|
+
// Global, parses whole document.
|
1168
910
|
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
1169
911
|
var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
|
1170
|
-
|
1171
|
-
|
912
|
+
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
1172
913
|
if (pluginName) {
|
1173
914
|
if (typeof pluginName === 'string') {
|
1174
915
|
plugNames.push(pluginName);
|
@@ -1178,7 +919,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1178
919
|
console.error('Plugin names must be strings');
|
1179
920
|
}
|
1180
921
|
}
|
1181
|
-
|
1182
922
|
if (yetiBoxes.length) {
|
1183
923
|
var listeners = plugNames.map(function (name) {
|
1184
924
|
return "closeme.zf.".concat(name);
|
@@ -1186,75 +926,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1186
926
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
|
1187
927
|
}
|
1188
928
|
};
|
1189
|
-
|
1190
929
|
function debounceGlobalListener(debounce, trigger, listener) {
|
1191
930
|
var timer,
|
1192
|
-
|
1193
|
-
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).
|
931
|
+
args = Array.prototype.slice.call(arguments, 3);
|
932
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
|
1194
933
|
if (timer) {
|
1195
934
|
clearTimeout(timer);
|
1196
935
|
}
|
1197
|
-
|
1198
936
|
timer = setTimeout(function () {
|
1199
937
|
listener.apply(null, args);
|
1200
938
|
}, debounce || 10); //default time to emit scroll event
|
1201
939
|
});
|
1202
940
|
}
|
1203
|
-
|
1204
941
|
Triggers.Initializers.addResizeListener = function (debounce) {
|
1205
942
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
|
1206
|
-
|
1207
943
|
if ($nodes.length) {
|
1208
944
|
debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
|
1209
945
|
}
|
1210
946
|
};
|
1211
|
-
|
1212
947
|
Triggers.Initializers.addScrollListener = function (debounce) {
|
1213
948
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
|
1214
|
-
|
1215
949
|
if ($nodes.length) {
|
1216
950
|
debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
|
1217
951
|
}
|
1218
952
|
};
|
1219
|
-
|
1220
953
|
Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
1221
954
|
if (!MutationObserver) {
|
1222
955
|
return false;
|
1223
956
|
}
|
957
|
+
var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
|
1224
958
|
|
1225
|
-
|
1226
|
-
|
959
|
+
//element callback
|
1227
960
|
var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
|
1228
|
-
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
961
|
+
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
1229
962
|
|
963
|
+
//trigger the event handler for the element depending on type
|
1230
964
|
switch (mutationRecordsList[0].type) {
|
1231
965
|
case "attributes":
|
1232
966
|
if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
|
1233
967
|
$target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
|
1234
968
|
}
|
1235
|
-
|
1236
969
|
if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
|
1237
970
|
$target.triggerHandler('resizeme.zf.trigger', [$target]);
|
1238
971
|
}
|
1239
|
-
|
1240
972
|
if (mutationRecordsList[0].attributeName === "style") {
|
1241
973
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1242
974
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1243
975
|
}
|
1244
|
-
|
1245
976
|
break;
|
1246
|
-
|
1247
977
|
case "childList":
|
1248
978
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1249
979
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1250
980
|
break;
|
1251
|
-
|
1252
981
|
default:
|
1253
982
|
return false;
|
1254
983
|
//nothing
|
1255
984
|
}
|
1256
985
|
};
|
1257
|
-
|
1258
986
|
if ($nodes.length) {
|
1259
987
|
//for each element that needs to listen for resizing, scrolling, or mutation add a single observer
|
1260
988
|
for (var i = 0; i <= $nodes.length - 1; i++) {
|
@@ -1269,7 +997,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
|
1269
997
|
}
|
1270
998
|
}
|
1271
999
|
};
|
1272
|
-
|
1273
1000
|
Triggers.Initializers.addSimpleListeners = function () {
|
1274
1001
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1275
1002
|
Triggers.Initializers.addOpenListener($document);
|
@@ -1278,44 +1005,68 @@ Triggers.Initializers.addSimpleListeners = function () {
|
|
1278
1005
|
Triggers.Initializers.addCloseableListener($document);
|
1279
1006
|
Triggers.Initializers.addToggleFocusListener($document);
|
1280
1007
|
};
|
1281
|
-
|
1282
1008
|
Triggers.Initializers.addGlobalListeners = function () {
|
1283
1009
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1284
1010
|
Triggers.Initializers.addMutationEventsListener($document);
|
1285
|
-
Triggers.Initializers.addResizeListener();
|
1011
|
+
Triggers.Initializers.addResizeListener(250);
|
1286
1012
|
Triggers.Initializers.addScrollListener();
|
1287
1013
|
Triggers.Initializers.addClosemeListener();
|
1288
1014
|
};
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
if ($.triggersInitialized !== true) {
|
1015
|
+
Triggers.init = function (__, Foundation) {
|
1016
|
+
(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
|
1017
|
+
if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
|
1293
1018
|
Triggers.Initializers.addSimpleListeners();
|
1294
1019
|
Triggers.Initializers.addGlobalListeners();
|
1295
|
-
|
1020
|
+
(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
|
1296
1021
|
}
|
1297
1022
|
});
|
1298
|
-
|
1299
1023
|
if (Foundation) {
|
1300
|
-
Foundation.Triggers = Triggers;
|
1301
|
-
|
1024
|
+
Foundation.Triggers = Triggers;
|
1025
|
+
// Legacy included to be backwards compatible for now.
|
1302
1026
|
Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
|
1303
1027
|
}
|
1304
1028
|
};
|
1305
1029
|
|
1306
1030
|
|
1031
|
+
/***/ }),
|
1032
|
+
|
1033
|
+
/***/ "./foundation.core":
|
1034
|
+
/*!****************************************************************************************************************************************************************!*\
|
1035
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
|
1036
|
+
\****************************************************************************************************************************************************************/
|
1037
|
+
/***/ (function(module) {
|
1038
|
+
|
1039
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
|
1307
1040
|
|
1308
1041
|
/***/ }),
|
1309
1042
|
|
1310
|
-
/***/
|
1311
|
-
|
1312
|
-
!***
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1043
|
+
/***/ "./foundation.util.box":
|
1044
|
+
/*!********************************************************************************************************************************************************************************!*\
|
1045
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.box"],"amd":"./foundation.util.box","commonjs":"./foundation.util.box","commonjs2":"./foundation.util.box"} ***!
|
1046
|
+
\********************************************************************************************************************************************************************************/
|
1047
|
+
/***/ (function(module) {
|
1048
|
+
|
1049
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_box__;
|
1316
1050
|
|
1317
|
-
|
1051
|
+
/***/ }),
|
1318
1052
|
|
1053
|
+
/***/ "./foundation.util.mediaQuery":
|
1054
|
+
/*!************************************************************************************************************************************************************************************************************!*\
|
1055
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
|
1056
|
+
\************************************************************************************************************************************************************************************************************/
|
1057
|
+
/***/ (function(module) {
|
1058
|
+
|
1059
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
|
1060
|
+
|
1061
|
+
/***/ }),
|
1062
|
+
|
1063
|
+
/***/ "./foundation.util.motion":
|
1064
|
+
/*!********************************************************************************************************************************************************************************************!*\
|
1065
|
+
!*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
|
1066
|
+
\********************************************************************************************************************************************************************************************/
|
1067
|
+
/***/ (function(module) {
|
1068
|
+
|
1069
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
|
1319
1070
|
|
1320
1071
|
/***/ }),
|
1321
1072
|
|
@@ -1323,13 +1074,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
|
|
1323
1074
|
/*!********************************************************************************************!*\
|
1324
1075
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
1325
1076
|
\********************************************************************************************/
|
1326
|
-
|
1327
|
-
/***/ (function(module, exports) {
|
1077
|
+
/***/ (function(module) {
|
1328
1078
|
|
1329
1079
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
1330
1080
|
|
1331
1081
|
/***/ })
|
1332
1082
|
|
1333
|
-
/******/
|
1083
|
+
/******/ });
|
1084
|
+
/************************************************************************/
|
1085
|
+
/******/ // The module cache
|
1086
|
+
/******/ var __webpack_module_cache__ = {};
|
1087
|
+
/******/
|
1088
|
+
/******/ // The require function
|
1089
|
+
/******/ function __webpack_require__(moduleId) {
|
1090
|
+
/******/ // Check if module is in cache
|
1091
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
1092
|
+
/******/ if (cachedModule !== undefined) {
|
1093
|
+
/******/ return cachedModule.exports;
|
1094
|
+
/******/ }
|
1095
|
+
/******/ // Create a new module (and put it into the cache)
|
1096
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
1097
|
+
/******/ // no module.id needed
|
1098
|
+
/******/ // no module.loaded needed
|
1099
|
+
/******/ exports: {}
|
1100
|
+
/******/ };
|
1101
|
+
/******/
|
1102
|
+
/******/ // Execute the module function
|
1103
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
1104
|
+
/******/
|
1105
|
+
/******/ // Return the exports of the module
|
1106
|
+
/******/ return module.exports;
|
1107
|
+
/******/ }
|
1108
|
+
/******/
|
1109
|
+
/************************************************************************/
|
1110
|
+
/******/ /* webpack/runtime/compat get default export */
|
1111
|
+
/******/ !function() {
|
1112
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
1113
|
+
/******/ __webpack_require__.n = function(module) {
|
1114
|
+
/******/ var getter = module && module.__esModule ?
|
1115
|
+
/******/ function() { return module['default']; } :
|
1116
|
+
/******/ function() { return module; };
|
1117
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
1118
|
+
/******/ return getter;
|
1119
|
+
/******/ };
|
1120
|
+
/******/ }();
|
1121
|
+
/******/
|
1122
|
+
/******/ /* webpack/runtime/define property getters */
|
1123
|
+
/******/ !function() {
|
1124
|
+
/******/ // define getter functions for harmony exports
|
1125
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
1126
|
+
/******/ for(var key in definition) {
|
1127
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1128
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1129
|
+
/******/ }
|
1130
|
+
/******/ }
|
1131
|
+
/******/ };
|
1132
|
+
/******/ }();
|
1133
|
+
/******/
|
1134
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1135
|
+
/******/ !function() {
|
1136
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
1137
|
+
/******/ }();
|
1138
|
+
/******/
|
1139
|
+
/******/ /* webpack/runtime/make namespace object */
|
1140
|
+
/******/ !function() {
|
1141
|
+
/******/ // define __esModule on exports
|
1142
|
+
/******/ __webpack_require__.r = function(exports) {
|
1143
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
1144
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
1145
|
+
/******/ }
|
1146
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
1147
|
+
/******/ };
|
1148
|
+
/******/ }();
|
1149
|
+
/******/
|
1150
|
+
/************************************************************************/
|
1151
|
+
var __webpack_exports__ = {};
|
1152
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1153
|
+
!function() {
|
1154
|
+
/*!**************************************************!*\
|
1155
|
+
!*** ./js/entries/plugins/foundation.tooltip.js ***!
|
1156
|
+
\**************************************************/
|
1157
|
+
__webpack_require__.r(__webpack_exports__);
|
1158
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1159
|
+
/* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
|
1160
|
+
/* harmony export */ Tooltip: function() { return /* reexport safe */ _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip; }
|
1161
|
+
/* harmony export */ });
|
1162
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
|
1163
|
+
/* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
|
1164
|
+
/* harmony import */ var _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.tooltip */ "./js/foundation.tooltip.js");
|
1165
|
+
|
1166
|
+
|
1167
|
+
_foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip, 'Tooltip');
|
1168
|
+
|
1169
|
+
}();
|
1170
|
+
/******/ return __webpack_exports__;
|
1171
|
+
/******/ })()
|
1172
|
+
;
|
1334
1173
|
});
|
1335
1174
|
//# sourceMappingURL=foundation.tooltip.js.map
|