popper_js 1.14.3 → 1.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/assets/javascripts/popper.js +74 -60
- data/lib/popper_js/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dd1c49fa22484783cfdbb69523aa205b4af1f0b1365f5da9b91b8c100f05459f
|
4
|
+
data.tar.gz: 94780c4ace3a7196fde3610d74e7ce50363bed8f58fc7bc3fa5a67c5fd8ce812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d9938f95cb4154407870b69b5211c79e7955d60d210aa4077cfabb1346d1e6a23b9739a897db7a6656732294d8eed0950e03fbb55aadc298660e6f7fcae445
|
7
|
+
data.tar.gz: daddb34e1fd145efca58dd18f1727687722066dbb214cbf7a2d4ca1b68410cbc0029118f2f28de6cc1028e7a20a58d4132960d3f4f1ce659a5d546f043e44e1c
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**!
|
2
2
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
3
|
-
* @version 1.14.
|
3
|
+
* @version 1.14.5
|
4
4
|
* @license
|
5
5
|
* Copyright (c) 2016 Federico Zivolo and contributors
|
6
6
|
*
|
@@ -103,7 +103,8 @@ function getStyleComputedProperty(element, property) {
|
|
103
103
|
return [];
|
104
104
|
}
|
105
105
|
// NOTE: 1 DOM access here
|
106
|
-
var
|
106
|
+
var window = element.ownerDocument.defaultView;
|
107
|
+
var css = window.getComputedStyle(element, null);
|
107
108
|
return property ? css[property] : css;
|
108
109
|
}
|
109
110
|
|
@@ -191,7 +192,7 @@ function getOffsetParent(element) {
|
|
191
192
|
var noOffsetParent = isIE(10) ? document.body : null;
|
192
193
|
|
193
194
|
// NOTE: 1 DOM access here
|
194
|
-
var offsetParent = element.offsetParent;
|
195
|
+
var offsetParent = element.offsetParent || null;
|
195
196
|
// Skip hidden elements which don't have an offsetParent
|
196
197
|
while (offsetParent === noOffsetParent && element.nextElementSibling) {
|
197
198
|
offsetParent = (element = element.nextElementSibling).offsetParent;
|
@@ -203,9 +204,9 @@ function getOffsetParent(element) {
|
|
203
204
|
return element ? element.ownerDocument.documentElement : document.documentElement;
|
204
205
|
}
|
205
206
|
|
206
|
-
// .offsetParent will return the closest TD or TABLE in case
|
207
|
+
// .offsetParent will return the closest TH, TD or TABLE in case
|
207
208
|
// no offsetParent is present, I hate this job...
|
208
|
-
if (['TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
|
209
|
+
if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
|
209
210
|
return getOffsetParent(offsetParent);
|
210
211
|
}
|
211
212
|
|
@@ -343,10 +344,10 @@ function getBordersSize(styles, axis) {
|
|
343
344
|
}
|
344
345
|
|
345
346
|
function getSize(axis, body, html, computedStyle) {
|
346
|
-
return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? html['offset' + axis] + computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')] + computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')] : 0);
|
347
|
+
return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
|
347
348
|
}
|
348
349
|
|
349
|
-
function getWindowSizes() {
|
350
|
+
function getWindowSizes(document) {
|
350
351
|
var body = document.body;
|
351
352
|
var html = document.documentElement;
|
352
353
|
var computedStyle = isIE(10) && getComputedStyle(html);
|
@@ -463,7 +464,7 @@ function getBoundingClientRect(element) {
|
|
463
464
|
};
|
464
465
|
|
465
466
|
// subtract scrollbar size from sizes
|
466
|
-
var sizes = element.nodeName === 'HTML' ? getWindowSizes() : {};
|
467
|
+
var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
|
467
468
|
var width = sizes.width || element.clientWidth || result.right - result.left;
|
468
469
|
var height = sizes.height || element.clientHeight || result.bottom - result.top;
|
469
470
|
|
@@ -498,7 +499,7 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
|
|
498
499
|
var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);
|
499
500
|
|
500
501
|
// In cases where the parent is fixed, we must ignore negative scroll in offset calc
|
501
|
-
if (fixedPosition &&
|
502
|
+
if (fixedPosition && isHTML) {
|
502
503
|
parentRect.top = Math.max(parentRect.top, 0);
|
503
504
|
parentRect.left = Math.max(parentRect.left, 0);
|
504
505
|
}
|
@@ -636,7 +637,7 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
|
|
636
637
|
|
637
638
|
// In case of HTML, we need a different computation
|
638
639
|
if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
|
639
|
-
var _getWindowSizes = getWindowSizes(),
|
640
|
+
var _getWindowSizes = getWindowSizes(popper.ownerDocument),
|
640
641
|
height = _getWindowSizes.height,
|
641
642
|
width = _getWindowSizes.width;
|
642
643
|
|
@@ -651,10 +652,12 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
|
|
651
652
|
}
|
652
653
|
|
653
654
|
// Add paddings
|
654
|
-
|
655
|
-
|
656
|
-
boundaries.
|
657
|
-
boundaries.
|
655
|
+
padding = padding || 0;
|
656
|
+
var isPaddingNumber = typeof padding === 'number';
|
657
|
+
boundaries.left += isPaddingNumber ? padding : padding.left || 0;
|
658
|
+
boundaries.top += isPaddingNumber ? padding : padding.top || 0;
|
659
|
+
boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
|
660
|
+
boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;
|
658
661
|
|
659
662
|
return boundaries;
|
660
663
|
}
|
@@ -751,7 +754,8 @@ function getReferenceOffsets(state, popper, reference) {
|
|
751
754
|
* @returns {Object} object containing width and height properties
|
752
755
|
*/
|
753
756
|
function getOuterSizes(element) {
|
754
|
-
var
|
757
|
+
var window = element.ownerDocument.defaultView;
|
758
|
+
var styles = window.getComputedStyle(element);
|
755
759
|
var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
|
756
760
|
var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
|
757
761
|
var result = {
|
@@ -979,7 +983,7 @@ function getSupportedPropertyName(property) {
|
|
979
983
|
}
|
980
984
|
|
981
985
|
/**
|
982
|
-
*
|
986
|
+
* Destroys the popper.
|
983
987
|
* @method
|
984
988
|
* @memberof Popper
|
985
989
|
*/
|
@@ -1086,7 +1090,7 @@ function removeEventListeners(reference, state) {
|
|
1086
1090
|
|
1087
1091
|
/**
|
1088
1092
|
* It will remove resize/scroll events and won't recalculate popper position
|
1089
|
-
* when they are triggered. It also won't trigger onUpdate callback anymore,
|
1093
|
+
* when they are triggered. It also won't trigger `onUpdate` callback anymore,
|
1090
1094
|
* unless you call `update` method manually.
|
1091
1095
|
* @method
|
1092
1096
|
* @memberof Popper
|
@@ -1263,12 +1267,22 @@ function computeStyle(data, options) {
|
|
1263
1267
|
var left = void 0,
|
1264
1268
|
top = void 0;
|
1265
1269
|
if (sideA === 'bottom') {
|
1266
|
-
|
1270
|
+
// when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
|
1271
|
+
// and not the bottom of the html element
|
1272
|
+
if (offsetParent.nodeName === 'HTML') {
|
1273
|
+
top = -offsetParent.clientHeight + offsets.bottom;
|
1274
|
+
} else {
|
1275
|
+
top = -offsetParentRect.height + offsets.bottom;
|
1276
|
+
}
|
1267
1277
|
} else {
|
1268
1278
|
top = offsets.top;
|
1269
1279
|
}
|
1270
1280
|
if (sideB === 'right') {
|
1271
|
-
|
1281
|
+
if (offsetParent.nodeName === 'HTML') {
|
1282
|
+
left = -offsetParent.clientWidth + offsets.right;
|
1283
|
+
} else {
|
1284
|
+
left = -offsetParentRect.width + offsets.right;
|
1285
|
+
}
|
1272
1286
|
} else {
|
1273
1287
|
left = offsets.left;
|
1274
1288
|
}
|
@@ -1377,7 +1391,7 @@ function arrow(data, options) {
|
|
1377
1391
|
|
1378
1392
|
//
|
1379
1393
|
// extends keepTogether behavior making sure the popper and its
|
1380
|
-
// reference have enough pixels in
|
1394
|
+
// reference have enough pixels in conjunction
|
1381
1395
|
//
|
1382
1396
|
|
1383
1397
|
// top/left side
|
@@ -1447,7 +1461,7 @@ function getOppositeVariation(variation) {
|
|
1447
1461
|
* - `top-end` (on top of reference, right aligned)
|
1448
1462
|
* - `right-start` (on right of reference, top aligned)
|
1449
1463
|
* - `bottom` (on bottom, centered)
|
1450
|
-
* - `auto-
|
1464
|
+
* - `auto-end` (on the side with more space available, alignment depends by placement)
|
1451
1465
|
*
|
1452
1466
|
* @static
|
1453
1467
|
* @type {Array}
|
@@ -1989,7 +2003,7 @@ var modifiers = {
|
|
1989
2003
|
* The `offset` modifier can shift your popper on both its axis.
|
1990
2004
|
*
|
1991
2005
|
* It accepts the following units:
|
1992
|
-
* - `px` or
|
2006
|
+
* - `px` or unit-less, interpreted as pixels
|
1993
2007
|
* - `%` or `%r`, percentage relative to the length of the reference element
|
1994
2008
|
* - `%p`, percentage relative to the length of the popper element
|
1995
2009
|
* - `vw`, CSS viewport width unit
|
@@ -1997,7 +2011,7 @@ var modifiers = {
|
|
1997
2011
|
*
|
1998
2012
|
* For length is intended the main axis relative to the placement of the popper.<br />
|
1999
2013
|
* This means that if the placement is `top` or `bottom`, the length will be the
|
2000
|
-
* `width`. In case of `left` or `right`, it will be the height
|
2014
|
+
* `width`. In case of `left` or `right`, it will be the `height`.
|
2001
2015
|
*
|
2002
2016
|
* You can provide a single value (as `Number` or `String`), or a pair of values
|
2003
2017
|
* as `String` divided by a comma or one (or more) white spaces.<br />
|
@@ -2018,7 +2032,7 @@ var modifiers = {
|
|
2018
2032
|
* ```
|
2019
2033
|
* > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
|
2020
2034
|
* > with their reference element, unfortunately, you will have to disable the `flip` modifier.
|
2021
|
-
* >
|
2035
|
+
* > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
|
2022
2036
|
*
|
2023
2037
|
* @memberof modifiers
|
2024
2038
|
* @inner
|
@@ -2039,7 +2053,7 @@ var modifiers = {
|
|
2039
2053
|
/**
|
2040
2054
|
* Modifier used to prevent the popper from being positioned outside the boundary.
|
2041
2055
|
*
|
2042
|
-
*
|
2056
|
+
* A scenario exists where the reference itself is not within the boundaries.<br />
|
2043
2057
|
* We can say it has "escaped the boundaries" — or just "escaped".<br />
|
2044
2058
|
* In this case we need to decide whether the popper should either:
|
2045
2059
|
*
|
@@ -2069,23 +2083,23 @@ var modifiers = {
|
|
2069
2083
|
/**
|
2070
2084
|
* @prop {number} padding=5
|
2071
2085
|
* Amount of pixel used to define a minimum distance between the boundaries
|
2072
|
-
* and the popper
|
2086
|
+
* and the popper. This makes sure the popper always has a little padding
|
2073
2087
|
* between the edges of its container
|
2074
2088
|
*/
|
2075
2089
|
padding: 5,
|
2076
2090
|
/**
|
2077
2091
|
* @prop {String|HTMLElement} boundariesElement='scrollParent'
|
2078
|
-
* Boundaries used by the modifier
|
2092
|
+
* Boundaries used by the modifier. Can be `scrollParent`, `window`,
|
2079
2093
|
* `viewport` or any DOM element.
|
2080
2094
|
*/
|
2081
2095
|
boundariesElement: 'scrollParent'
|
2082
2096
|
},
|
2083
2097
|
|
2084
2098
|
/**
|
2085
|
-
* Modifier used to make sure the reference and its popper stay near
|
2086
|
-
* without leaving any gap between the two.
|
2087
|
-
* enabled and you want to
|
2088
|
-
* It cares only about the first axis
|
2099
|
+
* Modifier used to make sure the reference and its popper stay near each other
|
2100
|
+
* without leaving any gap between the two. Especially useful when the arrow is
|
2101
|
+
* enabled and you want to ensure that it points to its reference element.
|
2102
|
+
* It cares only about the first axis. You can still have poppers with margin
|
2089
2103
|
* between the popper and its reference element.
|
2090
2104
|
* @memberof modifiers
|
2091
2105
|
* @inner
|
@@ -2103,7 +2117,7 @@ var modifiers = {
|
|
2103
2117
|
* This modifier is used to move the `arrowElement` of the popper to make
|
2104
2118
|
* sure it is positioned between the reference element and its popper element.
|
2105
2119
|
* It will read the outer size of the `arrowElement` node to detect how many
|
2106
|
-
* pixels of
|
2120
|
+
* pixels of conjunction are needed.
|
2107
2121
|
*
|
2108
2122
|
* It has no effect if no `arrowElement` is provided.
|
2109
2123
|
* @memberof modifiers
|
@@ -2142,7 +2156,7 @@ var modifiers = {
|
|
2142
2156
|
* @prop {String|Array} behavior='flip'
|
2143
2157
|
* The behavior used to change the popper's placement. It can be one of
|
2144
2158
|
* `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
|
2145
|
-
* placements (with optional variations)
|
2159
|
+
* placements (with optional variations)
|
2146
2160
|
*/
|
2147
2161
|
behavior: 'flip',
|
2148
2162
|
/**
|
@@ -2152,9 +2166,9 @@ var modifiers = {
|
|
2152
2166
|
padding: 5,
|
2153
2167
|
/**
|
2154
2168
|
* @prop {String|HTMLElement} boundariesElement='viewport'
|
2155
|
-
* The element which will define the boundaries of the popper position
|
2156
|
-
*
|
2157
|
-
* (except if keepTogether is enabled)
|
2169
|
+
* The element which will define the boundaries of the popper position.
|
2170
|
+
* The popper will never be placed outside of the defined boundaries
|
2171
|
+
* (except if `keepTogether` is enabled)
|
2158
2172
|
*/
|
2159
2173
|
boundariesElement: 'viewport'
|
2160
2174
|
},
|
@@ -2218,8 +2232,8 @@ var modifiers = {
|
|
2218
2232
|
fn: computeStyle,
|
2219
2233
|
/**
|
2220
2234
|
* @prop {Boolean} gpuAcceleration=true
|
2221
|
-
* If true, it uses the CSS
|
2222
|
-
* Otherwise, it will use the `top` and `left` properties
|
2235
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
2236
|
+
* Otherwise, it will use the `top` and `left` properties
|
2223
2237
|
*/
|
2224
2238
|
gpuAcceleration: true,
|
2225
2239
|
/**
|
@@ -2246,7 +2260,7 @@ var modifiers = {
|
|
2246
2260
|
* Note that if you disable this modifier, you must make sure the popper element
|
2247
2261
|
* has its position set to `absolute` before Popper.js can do its work!
|
2248
2262
|
*
|
2249
|
-
* Just disable this modifier and define
|
2263
|
+
* Just disable this modifier and define your own to achieve the desired effect.
|
2250
2264
|
*
|
2251
2265
|
* @memberof modifiers
|
2252
2266
|
* @inner
|
@@ -2263,27 +2277,27 @@ var modifiers = {
|
|
2263
2277
|
/**
|
2264
2278
|
* @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
|
2265
2279
|
* @prop {Boolean} gpuAcceleration=true
|
2266
|
-
* If true, it uses the CSS
|
2267
|
-
* Otherwise, it will use the `top` and `left` properties
|
2280
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
2281
|
+
* Otherwise, it will use the `top` and `left` properties
|
2268
2282
|
*/
|
2269
2283
|
gpuAcceleration: undefined
|
2270
2284
|
}
|
2271
2285
|
};
|
2272
2286
|
|
2273
2287
|
/**
|
2274
|
-
* The `dataObject` is an object containing all the
|
2275
|
-
*
|
2288
|
+
* The `dataObject` is an object containing all the information used by Popper.js.
|
2289
|
+
* This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
|
2276
2290
|
* @name dataObject
|
2277
2291
|
* @property {Object} data.instance The Popper.js instance
|
2278
2292
|
* @property {String} data.placement Placement applied to popper
|
2279
2293
|
* @property {String} data.originalPlacement Placement originally defined on init
|
2280
2294
|
* @property {Boolean} data.flipped True if popper has been flipped by flip modifier
|
2281
|
-
* @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
|
2295
|
+
* @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
|
2282
2296
|
* @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
|
2283
|
-
* @property {Object} data.styles Any CSS property defined here will be applied to the popper
|
2284
|
-
* @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow
|
2297
|
+
* @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
|
2298
|
+
* @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
|
2285
2299
|
* @property {Object} data.boundaries Offsets of the popper boundaries
|
2286
|
-
* @property {Object} data.offsets The measurements of popper, reference and arrow elements
|
2300
|
+
* @property {Object} data.offsets The measurements of popper, reference and arrow elements
|
2287
2301
|
* @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
|
2288
2302
|
* @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
|
2289
2303
|
* @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
|
@@ -2291,9 +2305,9 @@ var modifiers = {
|
|
2291
2305
|
|
2292
2306
|
/**
|
2293
2307
|
* Default options provided to Popper.js constructor.<br />
|
2294
|
-
* These can be
|
2295
|
-
* To override an option, simply pass
|
2296
|
-
* structure of
|
2308
|
+
* These can be overridden using the `options` argument of Popper.js.<br />
|
2309
|
+
* To override an option, simply pass an object with the same
|
2310
|
+
* structure of the `options` object, as the 3rd argument. For example:
|
2297
2311
|
* ```
|
2298
2312
|
* new Popper(ref, pop, {
|
2299
2313
|
* modifiers: {
|
@@ -2307,7 +2321,7 @@ var modifiers = {
|
|
2307
2321
|
*/
|
2308
2322
|
var Defaults = {
|
2309
2323
|
/**
|
2310
|
-
* Popper's placement
|
2324
|
+
* Popper's placement.
|
2311
2325
|
* @prop {Popper.placements} placement='bottom'
|
2312
2326
|
*/
|
2313
2327
|
placement: 'bottom',
|
@@ -2319,7 +2333,7 @@ var Defaults = {
|
|
2319
2333
|
positionFixed: false,
|
2320
2334
|
|
2321
2335
|
/**
|
2322
|
-
* Whether events (resize, scroll) are initially enabled
|
2336
|
+
* Whether events (resize, scroll) are initially enabled.
|
2323
2337
|
* @prop {Boolean} eventsEnabled=true
|
2324
2338
|
*/
|
2325
2339
|
eventsEnabled: true,
|
@@ -2333,17 +2347,17 @@ var Defaults = {
|
|
2333
2347
|
|
2334
2348
|
/**
|
2335
2349
|
* Callback called when the popper is created.<br />
|
2336
|
-
* By default, is set to no-op.<br />
|
2350
|
+
* By default, it is set to no-op.<br />
|
2337
2351
|
* Access Popper.js instance with `data.instance`.
|
2338
2352
|
* @prop {onCreate}
|
2339
2353
|
*/
|
2340
2354
|
onCreate: function onCreate() {},
|
2341
2355
|
|
2342
2356
|
/**
|
2343
|
-
* Callback called when the popper is updated
|
2357
|
+
* Callback called when the popper is updated. This callback is not called
|
2344
2358
|
* on the initialization/creation of the popper, but only on subsequent
|
2345
2359
|
* updates.<br />
|
2346
|
-
* By default, is set to no-op.<br />
|
2360
|
+
* By default, it is set to no-op.<br />
|
2347
2361
|
* Access Popper.js instance with `data.instance`.
|
2348
2362
|
* @prop {onUpdate}
|
2349
2363
|
*/
|
@@ -2351,7 +2365,7 @@ var Defaults = {
|
|
2351
2365
|
|
2352
2366
|
/**
|
2353
2367
|
* List of modifiers used to modify the offsets before they are applied to the popper.
|
2354
|
-
* They provide most of the functionalities of Popper.js
|
2368
|
+
* They provide most of the functionalities of Popper.js.
|
2355
2369
|
* @prop {modifiers}
|
2356
2370
|
*/
|
2357
2371
|
modifiers: modifiers
|
@@ -2371,10 +2385,10 @@ var Defaults = {
|
|
2371
2385
|
// Methods
|
2372
2386
|
var Popper = function () {
|
2373
2387
|
/**
|
2374
|
-
*
|
2388
|
+
* Creates a new Popper.js instance.
|
2375
2389
|
* @class Popper
|
2376
2390
|
* @param {HTMLElement|referenceObject} reference - The reference element used to position the popper
|
2377
|
-
* @param {HTMLElement} popper - The HTML element used as popper
|
2391
|
+
* @param {HTMLElement} popper - The HTML element used as the popper
|
2378
2392
|
* @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
|
2379
2393
|
* @return {Object} instance - The generated Popper.js instance
|
2380
2394
|
*/
|
@@ -2470,7 +2484,7 @@ var Popper = function () {
|
|
2470
2484
|
}
|
2471
2485
|
|
2472
2486
|
/**
|
2473
|
-
*
|
2487
|
+
* Schedules an update. It will run on the next UI update available.
|
2474
2488
|
* @method scheduleUpdate
|
2475
2489
|
* @memberof Popper
|
2476
2490
|
*/
|
@@ -2507,7 +2521,7 @@ var Popper = function () {
|
|
2507
2521
|
* new Popper(referenceObject, popperNode);
|
2508
2522
|
* ```
|
2509
2523
|
*
|
2510
|
-
* NB: This feature isn't supported in Internet Explorer 10
|
2524
|
+
* NB: This feature isn't supported in Internet Explorer 10.
|
2511
2525
|
* @name referenceObject
|
2512
2526
|
* @property {Function} data.getBoundingClientRect
|
2513
2527
|
* A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
|
data/lib/popper_js/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popper_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Mazovetskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.7.7
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Popper.js assets as a Ruby gem. https://popper.js.org/
|