foundation-rails 6.6.2.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 +198 -145
- 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 +1996 -3162
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +385 -292
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1663 -2832
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2440 -3870
- 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 +238 -344
- 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 +197 -275
- 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 -260
- 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 +308 -447
- 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 +258 -358
- 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 +289 -457
- 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 +246 -346
- 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 +227 -326
- 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 +225 -336
- 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 -278
- 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 +284 -444
- 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 +322 -483
- 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 -394
- 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 +275 -434
- 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 +130 -186
- 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 +123 -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 +123 -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 +18 -5
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +1 -1
- data/vendor/assets/scss/components/_breadcrumbs.scss +2 -1
- data/vendor/assets/scss/components/_button-group.scss +13 -8
- data/vendor/assets/scss/components/_button.scss +13 -13
- data/vendor/assets/scss/components/_callout.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +5 -4
- data/vendor/assets/scss/components/_dropdown-menu.scss +1 -1
- data/vendor/assets/scss/components/_label.scss +1 -1
- data/vendor/assets/scss/components/_menu.scss +54 -19
- data/vendor/assets/scss/components/_off-canvas.scss +18 -16
- data/vendor/assets/scss/components/_orbit.scss +3 -3
- data/vendor/assets/scss/components/_pagination.scss +1 -1
- data/vendor/assets/scss/components/_progress-bar.scss +1 -1
- data/vendor/assets/scss/components/_responsive-embed.scss +1 -1
- data/vendor/assets/scss/components/_reveal.scss +8 -3
- data/vendor/assets/scss/components/_slider.scss +5 -2
- data/vendor/assets/scss/components/_switch.scss +25 -2
- data/vendor/assets/scss/components/_table.scss +8 -7
- data/vendor/assets/scss/components/_tabs.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +7 -5
- data/vendor/assets/scss/components/_visibility.scss +45 -2
- data/vendor/assets/scss/forms/_label.scss +2 -1
- data/vendor/assets/scss/forms/_progress.scss +1 -1
- data/vendor/assets/scss/forms/_range.scss +1 -1
- data/vendor/assets/scss/forms/_select.scss +5 -4
- data/vendor/assets/scss/forms/_text.scss +2 -2
- data/vendor/assets/scss/foundation.scss +1 -1
- data/vendor/assets/scss/grid/_classes.scss +1 -1
- data/vendor/assets/scss/grid/_column.scss +3 -2
- data/vendor/assets/scss/grid/_flex-grid.scss +7 -6
- data/vendor/assets/scss/grid/_gutter.scss +1 -1
- data/vendor/assets/scss/grid/_layout.scss +5 -5
- data/vendor/assets/scss/grid/_position.scss +4 -4
- data/vendor/assets/scss/grid/_row.scss +1 -1
- 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/_border-none.scss +1 -1
- data/vendor/assets/scss/prototype/_font-styling.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +9 -0
- data/vendor/assets/scss/prototype/_rotate.scss +7 -5
- data/vendor/assets/scss/prototype/_separator.scss +5 -5
- data/vendor/assets/scss/prototype/_shadow.scss +1 -2
- data/vendor/assets/scss/prototype/_spacing.scss +33 -33
- data/vendor/assets/scss/prototype/_text-transformation.scss +3 -3
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_base.scss +6 -6
- data/vendor/assets/scss/typography/_helpers.scss +10 -2
- data/vendor/assets/scss/typography/_print.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +21 -18
- data/vendor/assets/scss/util/_color.scss +20 -8
- data/vendor/assets/scss/util/_direction.scss +1 -1
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +61 -9
- data/vendor/assets/scss/util/_mixins.scss +18 -14
- data/vendor/assets/scss/util/_selector.scss +1 -15
- data/vendor/assets/scss/util/_typography.scss +6 -6
- data/vendor/assets/scss/util/_unit.scss +14 -8
- data/vendor/assets/scss/util/_value.scss +3 -18
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +16 -5
- data/vendor/assets/scss/xy-grid/_classes.scss +8 -8
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +2 -2
- data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
- data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
- data/vendor/assets/scss/xy-grid/_position.scss +12 -7
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +2 -2
- 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,9 +364,7 @@ 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
|
}, {
|
@@ -575,11 +372,9 @@ function (_Positionable) {
|
|
575
372
|
value: function _getDefaultPosition() {
|
576
373
|
// handle legacy classnames
|
577
374
|
var elementClassName = this.$element[0].className;
|
578
|
-
|
579
375
|
if (this.$element[0] instanceof SVGElement) {
|
580
376
|
elementClassName = elementClassName.baseVal;
|
581
377
|
}
|
582
|
-
|
583
378
|
var position = elementClassName.match(/\b(top|left|right|bottom)\b/g);
|
584
379
|
return position ? position[0] : 'top';
|
585
380
|
}
|
@@ -606,11 +401,11 @@ function (_Positionable) {
|
|
606
401
|
return this.options.vOffset;
|
607
402
|
}
|
608
403
|
}
|
404
|
+
|
609
405
|
/**
|
610
406
|
* builds the tooltip element, adds attributes, and returns the template.
|
611
407
|
* @private
|
612
408
|
*/
|
613
|
-
|
614
409
|
}, {
|
615
410
|
key: "_buildTemplate",
|
616
411
|
value: function _buildTemplate(id) {
|
@@ -624,73 +419,66 @@ function (_Positionable) {
|
|
624
419
|
});
|
625
420
|
return $template;
|
626
421
|
}
|
422
|
+
|
627
423
|
/**
|
628
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.
|
629
425
|
* if the tooltip is larger than the screen width, default to full width - any user selected margin
|
630
426
|
* @private
|
631
427
|
*/
|
632
|
-
|
633
428
|
}, {
|
634
429
|
key: "_setPosition",
|
635
430
|
value: function _setPosition() {
|
636
|
-
|
431
|
+
_superPropGet(Tooltip, "_setPosition", this, 3)([this.$element, this.template]);
|
637
432
|
}
|
433
|
+
|
638
434
|
/**
|
639
435
|
* reveals the tooltip, and fires an event to close any other open tooltips on the page
|
640
436
|
* @fires Tooltip#closeme
|
641
437
|
* @fires Tooltip#show
|
642
438
|
* @function
|
643
439
|
*/
|
644
|
-
|
645
440
|
}, {
|
646
441
|
key: "show",
|
647
442
|
value: function show() {
|
648
|
-
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)) {
|
649
444
|
// console.error('The screen is too small to display this tooltip');
|
650
445
|
return false;
|
651
446
|
}
|
652
|
-
|
653
447
|
var _this = this;
|
654
|
-
|
655
448
|
this.template.css('visibility', 'hidden').show();
|
656
|
-
|
657
449
|
this._setPosition();
|
658
|
-
|
659
450
|
this.template.removeClass('top bottom left right').addClass(this.position);
|
660
451
|
this.template.removeClass('align-top align-bottom align-left align-right align-center').addClass('align-' + this.alignment);
|
452
|
+
|
661
453
|
/**
|
662
454
|
* Fires to close all other open tooltips on the page
|
663
455
|
* @event Closeme#tooltip
|
664
456
|
*/
|
665
|
-
|
666
457
|
this.$element.trigger('closeme.zf.tooltip', this.template.attr('id'));
|
667
458
|
this.template.attr({
|
668
459
|
'data-is-active': true,
|
669
460
|
'aria-hidden': false
|
670
461
|
});
|
671
|
-
_this.isActive = true;
|
672
|
-
|
673
|
-
|
462
|
+
_this.isActive = true;
|
463
|
+
this.template.stop().hide().css('visibility', '').fadeIn(this.options.fadeInDuration, function () {
|
464
|
+
//maybe do stuff?
|
674
465
|
});
|
675
466
|
/**
|
676
467
|
* Fires when the tooltip is shown
|
677
468
|
* @event Tooltip#show
|
678
469
|
*/
|
679
|
-
|
680
470
|
this.$element.trigger('show.zf.tooltip');
|
681
471
|
}
|
472
|
+
|
682
473
|
/**
|
683
474
|
* Hides the current tooltip, and resets the positioning class if it was changed due to collision
|
684
475
|
* @fires Tooltip#hide
|
685
476
|
* @function
|
686
477
|
*/
|
687
|
-
|
688
478
|
}, {
|
689
479
|
key: "hide",
|
690
480
|
value: function hide() {
|
691
|
-
// console.log('hiding', this.$element.data('yeti-box'));
|
692
481
|
var _this = this;
|
693
|
-
|
694
482
|
this.template.stop().attr({
|
695
483
|
'aria-hidden': true,
|
696
484
|
'data-is-active': false
|
@@ -702,89 +490,79 @@ function (_Positionable) {
|
|
702
490
|
* fires when the tooltip is hidden
|
703
491
|
* @event Tooltip#hide
|
704
492
|
*/
|
705
|
-
|
706
493
|
this.$element.trigger('hide.zf.tooltip');
|
707
494
|
}
|
495
|
+
|
708
496
|
/**
|
709
497
|
* adds event listeners for the tooltip and its anchor
|
710
498
|
* TODO combine some of the listeners like focus and mouseenter, etc.
|
711
499
|
* @private
|
712
500
|
*/
|
713
|
-
|
714
501
|
}, {
|
715
502
|
key: "_events",
|
716
503
|
value: function _events() {
|
717
504
|
var _this = this;
|
718
|
-
|
719
505
|
var hasTouch = 'ontouchstart' in window || typeof window.ontouchstart !== 'undefined';
|
720
|
-
var
|
721
|
-
var isFocus = false; // `disableForTouch: Fully disable the tooltip on touch devices
|
506
|
+
var isFocus = false;
|
722
507
|
|
508
|
+
// `disableForTouch: Fully disable the tooltip on touch devices
|
723
509
|
if (hasTouch && this.options.disableForTouch) return;
|
724
|
-
|
725
510
|
if (!this.options.disableHover) {
|
726
|
-
this.$element.on('mouseenter.zf.tooltip', function (
|
511
|
+
this.$element.on('mouseenter.zf.tooltip', function () {
|
727
512
|
if (!_this.isActive) {
|
728
513
|
_this.timeout = setTimeout(function () {
|
729
514
|
_this.show();
|
730
515
|
}, _this.options.hoverDelay);
|
731
516
|
}
|
732
|
-
}).on('mouseleave.zf.tooltip',
|
517
|
+
}).on('mouseleave.zf.tooltip', (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.ignoreMousedisappear)(function () {
|
733
518
|
clearTimeout(_this.timeout);
|
734
|
-
|
735
519
|
if (!isFocus || _this.isClick && !_this.options.clickOpen) {
|
736
520
|
_this.hide();
|
737
521
|
}
|
738
522
|
}));
|
739
523
|
}
|
740
|
-
|
741
524
|
if (hasTouch) {
|
742
|
-
this.$element.on('tap.zf.tooltip touchend.zf.tooltip', function (
|
525
|
+
this.$element.on('tap.zf.tooltip touchend.zf.tooltip', function () {
|
743
526
|
_this.isActive ? _this.hide() : _this.show();
|
744
527
|
});
|
745
528
|
}
|
746
|
-
|
747
529
|
if (this.options.clickOpen) {
|
748
|
-
this.$element.on('mousedown.zf.tooltip', function (
|
749
|
-
if (_this.isClick) {
|
530
|
+
this.$element.on('mousedown.zf.tooltip', function () {
|
531
|
+
if (_this.isClick) {
|
532
|
+
//_this.hide();
|
750
533
|
// _this.isClick = false;
|
751
534
|
} else {
|
752
535
|
_this.isClick = true;
|
753
|
-
|
754
536
|
if ((_this.options.disableHover || !_this.$element.attr('tabindex')) && !_this.isActive) {
|
755
537
|
_this.show();
|
756
538
|
}
|
757
539
|
}
|
758
540
|
});
|
759
541
|
} else {
|
760
|
-
this.$element.on('mousedown.zf.tooltip', function (
|
542
|
+
this.$element.on('mousedown.zf.tooltip', function () {
|
761
543
|
_this.isClick = true;
|
762
544
|
});
|
763
545
|
}
|
764
|
-
|
765
546
|
this.$element.on({
|
766
547
|
// 'toggle.zf.trigger': this.toggle.bind(this),
|
767
548
|
// 'close.zf.trigger': this.hide.bind(this)
|
768
549
|
'close.zf.trigger': this.hide.bind(this)
|
769
550
|
});
|
770
|
-
this.$element.on('focus.zf.tooltip', function (
|
551
|
+
this.$element.on('focus.zf.tooltip', function () {
|
771
552
|
isFocus = true;
|
772
|
-
|
773
553
|
if (_this.isClick) {
|
774
554
|
// If we're not showing open on clicks, we need to pretend a click-launched focus isn't
|
775
555
|
// a real focus, otherwise on hover and come back we get bad behavior
|
776
556
|
if (!_this.options.clickOpen) {
|
777
557
|
isFocus = false;
|
778
558
|
}
|
779
|
-
|
780
559
|
return false;
|
781
560
|
} else {
|
782
561
|
_this.show();
|
783
562
|
}
|
784
|
-
}).on('focusout.zf.tooltip', function (
|
563
|
+
}).on('focusout.zf.tooltip', function () {
|
785
564
|
isFocus = false;
|
786
565
|
_this.isClick = false;
|
787
|
-
|
788
566
|
_this.hide();
|
789
567
|
}).on('resizeme.zf.trigger', function () {
|
790
568
|
if (_this.isActive) {
|
@@ -792,11 +570,11 @@ function (_Positionable) {
|
|
792
570
|
}
|
793
571
|
});
|
794
572
|
}
|
573
|
+
|
795
574
|
/**
|
796
575
|
* adds a toggle method, in addition to the static show() & hide() functions
|
797
576
|
* @function
|
798
577
|
*/
|
799
|
-
|
800
578
|
}, {
|
801
579
|
key: "toggle",
|
802
580
|
value: function toggle() {
|
@@ -806,11 +584,11 @@ function (_Positionable) {
|
|
806
584
|
this.show();
|
807
585
|
}
|
808
586
|
}
|
587
|
+
|
809
588
|
/**
|
810
589
|
* Destroys an instance of tooltip, removes template element from the view.
|
811
590
|
* @function
|
812
591
|
*/
|
813
|
-
|
814
592
|
}, {
|
815
593
|
key: "_destroy",
|
816
594
|
value: function _destroy() {
|
@@ -818,10 +596,7 @@ function (_Positionable) {
|
|
818
596
|
this.template.remove();
|
819
597
|
}
|
820
598
|
}]);
|
821
|
-
|
822
|
-
return Tooltip;
|
823
|
-
}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__["Positionable"]);
|
824
|
-
|
599
|
+
}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__.Positionable);
|
825
600
|
Tooltip.defaults = {
|
826
601
|
/**
|
827
602
|
* Time, in ms, before a tooltip should open on hover.
|
@@ -830,7 +605,6 @@ Tooltip.defaults = {
|
|
830
605
|
* @default 200
|
831
606
|
*/
|
832
607
|
hoverDelay: 200,
|
833
|
-
|
834
608
|
/**
|
835
609
|
* Time, in ms, a tooltip should take to fade into view.
|
836
610
|
* @option
|
@@ -838,7 +612,6 @@ Tooltip.defaults = {
|
|
838
612
|
* @default 150
|
839
613
|
*/
|
840
614
|
fadeInDuration: 150,
|
841
|
-
|
842
615
|
/**
|
843
616
|
* Time, in ms, a tooltip should take to fade out of view.
|
844
617
|
* @option
|
@@ -846,7 +619,6 @@ Tooltip.defaults = {
|
|
846
619
|
* @default 150
|
847
620
|
*/
|
848
621
|
fadeOutDuration: 150,
|
849
|
-
|
850
622
|
/**
|
851
623
|
* Disables hover events from opening the tooltip if set to true
|
852
624
|
* @option
|
@@ -854,7 +626,6 @@ Tooltip.defaults = {
|
|
854
626
|
* @default false
|
855
627
|
*/
|
856
628
|
disableHover: false,
|
857
|
-
|
858
629
|
/**
|
859
630
|
* Disable the tooltip for touch devices.
|
860
631
|
* This can be useful to make elements with a tooltip on it trigger their
|
@@ -864,7 +635,6 @@ Tooltip.defaults = {
|
|
864
635
|
* @default false
|
865
636
|
*/
|
866
637
|
disableForTouch: false,
|
867
|
-
|
868
638
|
/**
|
869
639
|
* Optional addtional classes to apply to the tooltip template on init.
|
870
640
|
* @option
|
@@ -872,7 +642,6 @@ Tooltip.defaults = {
|
|
872
642
|
* @default ''
|
873
643
|
*/
|
874
644
|
templateClasses: '',
|
875
|
-
|
876
645
|
/**
|
877
646
|
* Non-optional class added to tooltip templates. Foundation default is 'tooltip'.
|
878
647
|
* @option
|
@@ -880,7 +649,6 @@ Tooltip.defaults = {
|
|
880
649
|
* @default 'tooltip'
|
881
650
|
*/
|
882
651
|
tooltipClass: 'tooltip',
|
883
|
-
|
884
652
|
/**
|
885
653
|
* Class applied to the tooltip anchor element.
|
886
654
|
* @option
|
@@ -888,7 +656,6 @@ Tooltip.defaults = {
|
|
888
656
|
* @default 'has-tip'
|
889
657
|
*/
|
890
658
|
triggerClass: 'has-tip',
|
891
|
-
|
892
659
|
/**
|
893
660
|
* Minimum breakpoint size at which to open the tooltip.
|
894
661
|
* @option
|
@@ -896,7 +663,6 @@ Tooltip.defaults = {
|
|
896
663
|
* @default 'small'
|
897
664
|
*/
|
898
665
|
showOn: 'small',
|
899
|
-
|
900
666
|
/**
|
901
667
|
* Custom template to be used to generate markup for tooltip.
|
902
668
|
* @option
|
@@ -904,7 +670,6 @@ Tooltip.defaults = {
|
|
904
670
|
* @default ''
|
905
671
|
*/
|
906
672
|
template: '',
|
907
|
-
|
908
673
|
/**
|
909
674
|
* Text displayed in the tooltip template on open.
|
910
675
|
* @option
|
@@ -913,7 +678,6 @@ Tooltip.defaults = {
|
|
913
678
|
*/
|
914
679
|
tipText: '',
|
915
680
|
touchCloseText: 'Tap to close.',
|
916
|
-
|
917
681
|
/**
|
918
682
|
* Allows the tooltip to remain open if triggered with a click or touch event.
|
919
683
|
* @option
|
@@ -921,7 +685,6 @@ Tooltip.defaults = {
|
|
921
685
|
* @default true
|
922
686
|
*/
|
923
687
|
clickOpen: true,
|
924
|
-
|
925
688
|
/**
|
926
689
|
* Position of tooltip. Can be left, right, bottom, top, or auto.
|
927
690
|
* @option
|
@@ -929,7 +692,6 @@ Tooltip.defaults = {
|
|
929
692
|
* @default 'auto'
|
930
693
|
*/
|
931
694
|
position: 'auto',
|
932
|
-
|
933
695
|
/**
|
934
696
|
* Alignment of tooltip relative to anchor. Can be left, right, bottom, top, center, or auto.
|
935
697
|
* @option
|
@@ -937,7 +699,6 @@ Tooltip.defaults = {
|
|
937
699
|
* @default 'auto'
|
938
700
|
*/
|
939
701
|
alignment: 'auto',
|
940
|
-
|
941
702
|
/**
|
942
703
|
* Allow overlap of container/window. If false, tooltip will first try to
|
943
704
|
* position as defined by data-position and data-alignment, but reposition if
|
@@ -946,7 +707,6 @@ Tooltip.defaults = {
|
|
946
707
|
* @default false
|
947
708
|
*/
|
948
709
|
allowOverlap: false,
|
949
|
-
|
950
710
|
/**
|
951
711
|
* Allow overlap of only the bottom of the container. This is the most common
|
952
712
|
* behavior for dropdowns, allowing the dropdown to extend the bottom of the
|
@@ -957,7 +717,6 @@ Tooltip.defaults = {
|
|
957
717
|
* @default false
|
958
718
|
*/
|
959
719
|
allowBottomOverlap: false,
|
960
|
-
|
961
720
|
/**
|
962
721
|
* Distance, in pixels, the template should push away from the anchor on the Y axis.
|
963
722
|
* @option
|
@@ -965,7 +724,6 @@ Tooltip.defaults = {
|
|
965
724
|
* @default 0
|
966
725
|
*/
|
967
726
|
vOffset: 0,
|
968
|
-
|
969
727
|
/**
|
970
728
|
* Distance, in pixels, the template should push away from the anchor on the X axis
|
971
729
|
* @option
|
@@ -973,7 +731,6 @@ Tooltip.defaults = {
|
|
973
731
|
* @default 0
|
974
732
|
*/
|
975
733
|
hOffset: 0,
|
976
|
-
|
977
734
|
/**
|
978
735
|
* Distance, in pixels, the template spacing auto-adjust for a vertical tooltip
|
979
736
|
* @option
|
@@ -981,7 +738,6 @@ Tooltip.defaults = {
|
|
981
738
|
* @default 14
|
982
739
|
*/
|
983
740
|
tooltipHeight: 14,
|
984
|
-
|
985
741
|
/**
|
986
742
|
* Distance, in pixels, the template spacing auto-adjust for a horizontal tooltip
|
987
743
|
* @option
|
@@ -989,7 +745,6 @@ Tooltip.defaults = {
|
|
989
745
|
* @default 12
|
990
746
|
*/
|
991
747
|
tooltipWidth: 12,
|
992
|
-
|
993
748
|
/**
|
994
749
|
* Allow HTML in tooltip. Warning: If you are loading user-generated content into tooltips,
|
995
750
|
* allowing HTML may open yourself up to XSS attacks.
|
@@ -999,6 +754,7 @@ Tooltip.defaults = {
|
|
999
754
|
*/
|
1000
755
|
allowHtml: false
|
1001
756
|
};
|
757
|
+
|
1002
758
|
/**
|
1003
759
|
* TODO utilize resize event trigger
|
1004
760
|
*/
|
@@ -1011,44 +767,36 @@ Tooltip.defaults = {
|
|
1011
767
|
/*!****************************************!*\
|
1012
768
|
!*** ./js/foundation.util.triggers.js ***!
|
1013
769
|
\****************************************/
|
1014
|
-
|
1015
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
770
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1016
771
|
|
1017
|
-
"use strict";
|
1018
772
|
__webpack_require__.r(__webpack_exports__);
|
1019
|
-
/* harmony export
|
773
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
774
|
+
/* harmony export */ Triggers: function() { return /* binding */ Triggers; }
|
775
|
+
/* harmony export */ });
|
1020
776
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
|
1021
777
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
1022
778
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
|
1023
779
|
/* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
|
1024
780
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
|
1025
781
|
/* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
|
1026
|
-
|
1027
|
-
|
1028
|
-
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); }
|
1029
|
-
|
1030
|
-
|
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); }
|
1031
783
|
|
1032
784
|
|
1033
785
|
|
1034
786
|
var MutationObserver = function () {
|
1035
787
|
var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
|
1036
|
-
|
1037
788
|
for (var i = 0; i < prefixes.length; i++) {
|
1038
789
|
if ("".concat(prefixes[i], "MutationObserver") in window) {
|
1039
790
|
return window["".concat(prefixes[i], "MutationObserver")];
|
1040
791
|
}
|
1041
792
|
}
|
1042
|
-
|
1043
793
|
return false;
|
1044
794
|
}();
|
1045
|
-
|
1046
795
|
var triggers = function triggers(el, type) {
|
1047
796
|
el.data(type).split(' ').forEach(function (id) {
|
1048
797
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
|
1049
798
|
});
|
1050
799
|
};
|
1051
|
-
|
1052
800
|
var Triggers = {
|
1053
801
|
Listeners: {
|
1054
802
|
Basic: {},
|
@@ -1062,7 +810,6 @@ Triggers.Listeners.Basic = {
|
|
1062
810
|
},
|
1063
811
|
closeListener: function closeListener() {
|
1064
812
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
|
1065
|
-
|
1066
813
|
if (id) {
|
1067
814
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
|
1068
815
|
} else {
|
@@ -1071,7 +818,6 @@ Triggers.Listeners.Basic = {
|
|
1071
818
|
},
|
1072
819
|
toggleListener: function toggleListener() {
|
1073
820
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
|
1074
|
-
|
1075
821
|
if (id) {
|
1076
822
|
triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
|
1077
823
|
} else {
|
@@ -1079,12 +825,12 @@ Triggers.Listeners.Basic = {
|
|
1079
825
|
}
|
1080
826
|
},
|
1081
827
|
closeableListener: function closeableListener(e) {
|
1082
|
-
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
828
|
+
var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
|
1083
829
|
|
830
|
+
// Only close the first closable element. See https://git.io/zf-7833
|
1084
831
|
e.stopPropagation();
|
1085
|
-
|
1086
832
|
if (animation !== '') {
|
1087
|
-
_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 () {
|
1088
834
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
|
1089
835
|
});
|
1090
836
|
} else {
|
@@ -1095,39 +841,40 @@ Triggers.Listeners.Basic = {
|
|
1095
841
|
var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
|
1096
842
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
|
1097
843
|
}
|
1098
|
-
};
|
844
|
+
};
|
1099
845
|
|
846
|
+
// Elements with [data-open] will reveal a plugin that supports it when clicked.
|
1100
847
|
Triggers.Initializers.addOpenListener = function ($elem) {
|
1101
848
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
|
1102
849
|
$elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
|
1103
|
-
};
|
1104
|
-
// If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
|
1105
|
-
|
850
|
+
};
|
1106
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.
|
1107
854
|
Triggers.Initializers.addCloseListener = function ($elem) {
|
1108
855
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
|
1109
856
|
$elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
|
1110
|
-
};
|
1111
|
-
|
857
|
+
};
|
1112
858
|
|
859
|
+
// Elements with [data-toggle] will toggle a plugin that supports it when clicked.
|
1113
860
|
Triggers.Initializers.addToggleListener = function ($elem) {
|
1114
861
|
$elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
|
1115
862
|
$elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
|
1116
|
-
};
|
1117
|
-
|
863
|
+
};
|
1118
864
|
|
865
|
+
// Elements with [data-closable] will respond to close.zf.trigger events.
|
1119
866
|
Triggers.Initializers.addCloseableListener = function ($elem) {
|
1120
867
|
$elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
|
1121
868
|
$elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
|
1122
|
-
};
|
1123
|
-
|
869
|
+
};
|
1124
870
|
|
871
|
+
// Elements with [data-toggle-focus] will respond to coming in and out of focus
|
1125
872
|
Triggers.Initializers.addToggleFocusListener = function ($elem) {
|
1126
873
|
$elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
|
1127
874
|
$elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
|
1128
|
-
};
|
1129
|
-
|
875
|
+
};
|
1130
876
|
|
877
|
+
// More Global/complex listeners and triggers
|
1131
878
|
Triggers.Listeners.Global = {
|
1132
879
|
resizeListener: function resizeListener($nodes) {
|
1133
880
|
if (!MutationObserver) {
|
@@ -1135,9 +882,8 @@ Triggers.Listeners.Global = {
|
|
1135
882
|
$nodes.each(function () {
|
1136
883
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
|
1137
884
|
});
|
1138
|
-
}
|
1139
|
-
|
1140
|
-
|
885
|
+
}
|
886
|
+
//trigger all listening elements and signal a resize event
|
1141
887
|
$nodes.attr('data-events', "resize");
|
1142
888
|
},
|
1143
889
|
scrollListener: function scrollListener($nodes) {
|
@@ -1146,9 +892,8 @@ Triggers.Listeners.Global = {
|
|
1146
892
|
$nodes.each(function () {
|
1147
893
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
|
1148
894
|
});
|
1149
|
-
}
|
1150
|
-
|
1151
|
-
|
895
|
+
}
|
896
|
+
//trigger all listening elements and signal a scroll event
|
1152
897
|
$nodes.attr('data-events', "scroll");
|
1153
898
|
},
|
1154
899
|
closeMeListener: function closeMeListener(e, pluginId) {
|
@@ -1156,17 +901,15 @@ Triggers.Listeners.Global = {
|
|
1156
901
|
var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
|
1157
902
|
plugins.each(function () {
|
1158
903
|
var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
|
1159
|
-
|
1160
904
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
1161
905
|
});
|
1162
|
-
}
|
1163
|
-
|
906
|
+
}
|
1164
907
|
};
|
1165
908
|
|
909
|
+
// Global, parses whole document.
|
1166
910
|
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
1167
911
|
var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
|
1168
|
-
|
1169
|
-
|
912
|
+
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
1170
913
|
if (pluginName) {
|
1171
914
|
if (typeof pluginName === 'string') {
|
1172
915
|
plugNames.push(pluginName);
|
@@ -1176,7 +919,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1176
919
|
console.error('Plugin names must be strings');
|
1177
920
|
}
|
1178
921
|
}
|
1179
|
-
|
1180
922
|
if (yetiBoxes.length) {
|
1181
923
|
var listeners = plugNames.map(function (name) {
|
1182
924
|
return "closeme.zf.".concat(name);
|
@@ -1184,75 +926,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
|
|
1184
926
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
|
1185
927
|
}
|
1186
928
|
};
|
1187
|
-
|
1188
929
|
function debounceGlobalListener(debounce, trigger, listener) {
|
1189
930
|
var timer,
|
1190
|
-
|
1191
|
-
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 () {
|
1192
933
|
if (timer) {
|
1193
934
|
clearTimeout(timer);
|
1194
935
|
}
|
1195
|
-
|
1196
936
|
timer = setTimeout(function () {
|
1197
937
|
listener.apply(null, args);
|
1198
938
|
}, debounce || 10); //default time to emit scroll event
|
1199
939
|
});
|
1200
940
|
}
|
1201
|
-
|
1202
941
|
Triggers.Initializers.addResizeListener = function (debounce) {
|
1203
942
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
|
1204
|
-
|
1205
943
|
if ($nodes.length) {
|
1206
944
|
debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
|
1207
945
|
}
|
1208
946
|
};
|
1209
|
-
|
1210
947
|
Triggers.Initializers.addScrollListener = function (debounce) {
|
1211
948
|
var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
|
1212
|
-
|
1213
949
|
if ($nodes.length) {
|
1214
950
|
debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
|
1215
951
|
}
|
1216
952
|
};
|
1217
|
-
|
1218
953
|
Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
1219
954
|
if (!MutationObserver) {
|
1220
955
|
return false;
|
1221
956
|
}
|
957
|
+
var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
|
1222
958
|
|
1223
|
-
|
1224
|
-
|
959
|
+
//element callback
|
1225
960
|
var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
|
1226
|
-
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
961
|
+
var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
|
1227
962
|
|
963
|
+
//trigger the event handler for the element depending on type
|
1228
964
|
switch (mutationRecordsList[0].type) {
|
1229
965
|
case "attributes":
|
1230
966
|
if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
|
1231
967
|
$target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
|
1232
968
|
}
|
1233
|
-
|
1234
969
|
if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
|
1235
970
|
$target.triggerHandler('resizeme.zf.trigger', [$target]);
|
1236
971
|
}
|
1237
|
-
|
1238
972
|
if (mutationRecordsList[0].attributeName === "style") {
|
1239
973
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1240
974
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1241
975
|
}
|
1242
|
-
|
1243
976
|
break;
|
1244
|
-
|
1245
977
|
case "childList":
|
1246
978
|
$target.closest("[data-mutate]").attr("data-events", "mutate");
|
1247
979
|
$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
|
1248
980
|
break;
|
1249
|
-
|
1250
981
|
default:
|
1251
982
|
return false;
|
1252
983
|
//nothing
|
1253
984
|
}
|
1254
985
|
};
|
1255
|
-
|
1256
986
|
if ($nodes.length) {
|
1257
987
|
//for each element that needs to listen for resizing, scrolling, or mutation add a single observer
|
1258
988
|
for (var i = 0; i <= $nodes.length - 1; i++) {
|
@@ -1267,7 +997,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
|
|
1267
997
|
}
|
1268
998
|
}
|
1269
999
|
};
|
1270
|
-
|
1271
1000
|
Triggers.Initializers.addSimpleListeners = function () {
|
1272
1001
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1273
1002
|
Triggers.Initializers.addOpenListener($document);
|
@@ -1276,44 +1005,68 @@ Triggers.Initializers.addSimpleListeners = function () {
|
|
1276
1005
|
Triggers.Initializers.addCloseableListener($document);
|
1277
1006
|
Triggers.Initializers.addToggleFocusListener($document);
|
1278
1007
|
};
|
1279
|
-
|
1280
1008
|
Triggers.Initializers.addGlobalListeners = function () {
|
1281
1009
|
var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
|
1282
1010
|
Triggers.Initializers.addMutationEventsListener($document);
|
1283
|
-
Triggers.Initializers.addResizeListener();
|
1011
|
+
Triggers.Initializers.addResizeListener(250);
|
1284
1012
|
Triggers.Initializers.addScrollListener();
|
1285
1013
|
Triggers.Initializers.addClosemeListener();
|
1286
1014
|
};
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
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) {
|
1291
1018
|
Triggers.Initializers.addSimpleListeners();
|
1292
1019
|
Triggers.Initializers.addGlobalListeners();
|
1293
|
-
|
1020
|
+
(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
|
1294
1021
|
}
|
1295
1022
|
});
|
1296
|
-
|
1297
1023
|
if (Foundation) {
|
1298
|
-
Foundation.Triggers = Triggers;
|
1299
|
-
|
1024
|
+
Foundation.Triggers = Triggers;
|
1025
|
+
// Legacy included to be backwards compatible for now.
|
1300
1026
|
Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
|
1301
1027
|
}
|
1302
1028
|
};
|
1303
1029
|
|
1304
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__;
|
1305
1040
|
|
1306
1041
|
/***/ }),
|
1307
1042
|
|
1308
|
-
/***/
|
1309
|
-
|
1310
|
-
!***
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
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__;
|
1314
1050
|
|
1315
|
-
|
1051
|
+
/***/ }),
|
1316
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__;
|
1317
1070
|
|
1318
1071
|
/***/ }),
|
1319
1072
|
|
@@ -1321,13 +1074,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
|
|
1321
1074
|
/*!********************************************************************************************!*\
|
1322
1075
|
!*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
|
1323
1076
|
\********************************************************************************************/
|
1324
|
-
|
1325
|
-
/***/ (function(module, exports) {
|
1077
|
+
/***/ (function(module) {
|
1326
1078
|
|
1327
1079
|
module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
|
1328
1080
|
|
1329
1081
|
/***/ })
|
1330
1082
|
|
1331
|
-
/******/
|
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
|
+
;
|
1332
1173
|
});
|
1333
1174
|
//# sourceMappingURL=foundation.tooltip.js.map
|