diff --git a/_config.yml b/_config.yml index dbc55f65a6..3e596615d3 100644 --- a/_config.yml +++ b/_config.yml @@ -51,5 +51,5 @@ cdn: js_hash: "sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" jquery: https://code.jquery.com/jquery-3.2.1.slim.min.js jquery_hash: "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" - popper: https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.8.2/umd/popper.min.js - popper_hash: "sha256-BAff/WQyNN7ckHOYSDwzhssjY5DBa/weYqKfjkdlmuU=" + popper: https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.9.1/umd/popper.min.js + popper_hash: "sha256-bEc/d4PvjMyrMkTlKFig/0NhlGlr7UA2Q0BoiXR9gc0=" diff --git a/bower.json b/bower.json index 18b95f59be..9c00f85210 100644 --- a/bower.json +++ b/bower.json @@ -31,6 +31,6 @@ ], "dependencies": { "jquery": ">=1.9.1", - "popper.js": "^1.8.2" + "popper.js": "^1.9.1" } } diff --git a/build/npm-shrinkwrap.json b/build/npm-shrinkwrap.json index e893bc0cdc..6879240f0d 100644 --- a/build/npm-shrinkwrap.json +++ b/build/npm-shrinkwrap.json @@ -3390,9 +3390,9 @@ "dev": true }, "popper.js": { - "version": "1.8.2", - "from": "popper.js@>=1.8.2 <2.0.0", - "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.8.2.tgz" + "version": "1.9.1", + "from": "popper.js@>=1.9.1 <2.0.0", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.9.1.tgz" }, "postcss": { "version": "5.2.17", diff --git a/docs/assets/js/vendor/popper.min.js b/docs/assets/js/vendor/popper.min.js index 98bd38f860..e0092080e1 100644 --- a/docs/assets/js/vendor/popper.min.js +++ b/docs/assets/js/vendor/popper.min.js @@ -1,3 +1,3 @@ -var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function o(Ee){return''!==Ee&&!isNaN(parseFloat(Ee))&&isFinite(Ee)}function r(Ee,Oe){Object.keys(Oe).forEach(function(Le){var Se='';-1!==['width','height','top','right','bottom','left'].indexOf(Le)&&o(Oe[Le])&&(Se='px'),Ee.style[Le]=Oe[Le]+Se})}function s(Ee){for(var Oe=[!1,'ms','webkit','moz','o'],Le=Ee.charAt(0).toUpperCase()+Ee.slice(1),Se=0;SeSe[De]&&!Oe.escapeWithReference&&(Pe=_Mathmin(Ne[ke],Se[De]-('right'===De?Ne.width:Ne.height))),le({},ke,Pe)}};return Ce.forEach(function(We){var De=-1===['left','top'].indexOf(We)?'secondary':'primary';Ne=me({},Ne,Te[De](We))}),Ee.offsets.popper=Ne,Ee},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,function:function(Ee){var Oe=E(Ee.offsets.popper),Le=Ee.offsets.reference,Se=Ee.placement.split('-')[0],Ce=_Mathfloor,Ne=-1!==['top','bottom'].indexOf(Se),Te=Ne?'right':'bottom',We=Ne?'left':'top',De=Ne?'width':'height';return Oe[Te]Ce(Le[Te])&&(Ee.offsets.popper[We]=Ce(Le[Te])),Ee}},arrow:{order:500,enabled:!0,function:function(Ee,Oe){if(!K(Ee.instance.modifiers,'arrow','keepTogether'))return console.warn('WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!'),Ee;var Le=Oe.element;if('string'==typeof Le){if(Le=Ee.instance.popper.querySelector(Le),!Le)return Ee;}else if(!Ee.instance.popper.contains(Le))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),Ee;var Se=Ee.placement.split('-')[0],Ce=E(Ee.offsets.popper),Ne=Ee.offsets.reference,Te=-1!==['left','right'].indexOf(Se),We=Te?'height':'width',De=Te?'top':'left',ke=Te?'left':'top',Pe=Te?'bottom':'right',He=C(Le)[We];Ne[Pe]-HeCe[Pe]&&(Ee.offsets.popper[De]+=Ne[De]+He-Ce[Pe]);var Be=Ne[De]+Ne[We]/2-He/2,Ie=Be-E(Ee.offsets.popper)[De];return Ie=_Mathmax(_Mathmin(Ce[We]-He,Ie),0),Ee.arrowElement=Le,Ee.offsets.arrow={},Ee.offsets.arrow[De]=Ie,Ee.offsets.arrow[ke]='',Ee},element:'[x-arrow]'},flip:{order:600,enabled:!0,function:function(Ee,Oe){if(M(Ee.instance.modifiers,'inner'))return Ee;if(Ee.flipped&&Ee.placement===Ee.originalPlacement)return Ee;var Le=U(Ee.instance.popper,Ee.instance.reference,Oe.padding,Oe.boundariesElement),Se=Ee.placement.split('-')[0],Ce=N(Se),Ne=Ee.placement.split('-')[1]||'',Te=[];switch(Oe.behavior){case ye.FLIP:Te=[Se,Ce];break;case ye.CLOCKWISE:Te=V(Se);break;case ye.COUNTERCLOCKWISE:Te=V(Se,!0);break;default:Te=Oe.behavior;}return Te.forEach(function(We,De){if(Se!==We||Te.length===De+1)return Ee;Se=Ee.placement.split('-')[0],Ce=N(Se);var ke=E(Ee.offsets.popper),Pe=Ee.offsets.reference,He=_Mathfloor,Be='left'===Se&&He(ke.right)>He(Pe.left)||'right'===Se&&He(ke.left)He(Pe.top)||'bottom'===Se&&He(ke.top)He(Le.right),Ae=He(ke.top)He(Le.bottom),Ue='left'===Se&&Ie||'right'===Se&&Me||'top'===Se&&Ae||'bottom'===Se&&Re,Ye=-1!==['top','bottom'].indexOf(Se),Fe=!!Oe.flipVariations&&(Ye&&'start'===Ne&&Ie||Ye&&'end'===Ne&&Me||!Ye&&'start'===Ne&&Ae||!Ye&&'end'===Ne&&Re);(Be||Ue||Fe)&&(Ee.flipped=!0,(Be||Ue)&&(Se=Te[De+1]),Fe&&(Ne=z(Ne)),Ee.placement=Se+(Ne?'-'+Ne:''),Ee.offsets.popper=T(Ee.instance.state.position,Ee.instance.popper,Ee.offsets.reference,Ee.placement),Ee=I(Ee.instance.modifiers,Ee,'flip'))}),Ee},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,function:function(Ee){var Oe=Ee.placement,Le=Oe.split('-')[0],Se=E(Ee.offsets.popper),Ce=E(Ee.offsets.reference),Ne=-1!==['left','right'].indexOf(Le),Te=-1===['top','left'].indexOf(Le);return Se[Ne?'left':'top']=Ce[Oe]-(Te?Se[Ne?'width':'height']:0),Ee.placement=N(Oe),Ee.offsets.popper=E(Se),Ee}},hide:{order:800,enabled:!0,function:function(Ee){if(!K(Ee.instance.modifiers,'hide','preventOverflow'))return console.warn('WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!'),Ee;var Oe=Ee.offsets.reference,Le=H(Ee.instance.modifiers,function(Se){return'preventOverflow'===Se.name}).boundaries;if(Oe.bottomLe.right||Oe.top>Le.bottom||Oe.rightCe[He]&&!Le.escapeWithReference&&(ke=_Mathmin(Ne[Pe],Ce[He]-('right'===He?Ne.width:Ne.height))),ce({},Pe,ke)}};return Te.forEach(function(De){var He=-1===['left','top'].indexOf(De)?'secondary':'primary';Ne=he({},Ne,We[He](De))}),Oe.offsets.popper=Ne,Oe},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(Oe){var Le=w(Oe.offsets.popper),Se=Oe.offsets.reference,Ce=Oe.placement.split('-')[0],Te=_Mathfloor,Ne=-1!==['top','bottom'].indexOf(Ce),We=Ne?'right':'bottom',De=Ne?'left':'top',He=Ne?'width':'height';return Le[We]Te(Se[We])&&(Oe.offsets.popper[De]=Te(Se[We])),Oe}},arrow:{order:500,enabled:!0,fn:function(Oe,Le){if(!K(Oe.instance.modifiers,'arrow','keepTogether'))return Oe;var Se=Le.element;if('string'==typeof Se){if(Se=Oe.instance.popper.querySelector(Se),!Se)return Oe;}else if(!Oe.instance.popper.contains(Se))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),Oe;var Ce=Oe.placement.split('-')[0],Te=w(Oe.offsets.popper),Ne=Oe.offsets.reference,We=-1!==['left','right'].indexOf(Ce),De=We?'height':'width',He=We?'top':'left',Pe=We?'left':'top',ke=We?'bottom':'right',Be=C(Se)[De];Ne[ke]-BeTe[ke]&&(Oe.offsets.popper[He]+=Ne[He]+Be-Te[ke]);var Me=Ne[He]+Ne[De]/2-Be/2,Ie=Me-w(Oe.offsets.popper)[He];return Ie=_Mathmax(_Mathmin(Te[De]-Be,Ie),0),Oe.arrowElement=Se,Oe.offsets.arrow={},Oe.offsets.arrow[He]=Ie,Oe.offsets.arrow[Pe]='',Oe},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(Oe,Le){if(I(Oe.instance.modifiers,'inner'))return Oe;if(Oe.flipped&&Oe.placement===Oe.originalPlacement)return Oe;var Se=Y(Oe.instance.popper,Oe.instance.reference,Le.padding,Le.boundariesElement),Ce=Oe.placement.split('-')[0],Te=T(Ce),Ne=Oe.placement.split('-')[1]||'',We=[];switch(Le.behavior){case Ee.FLIP:We=[Ce,Te];break;case Ee.CLOCKWISE:We=V(Ce);break;case Ee.COUNTERCLOCKWISE:We=V(Ce,!0);break;default:We=Le.behavior;}return We.forEach(function(De,He){if(Ce!==De||We.length===He+1)return Oe;Ce=Oe.placement.split('-')[0],Te=T(Ce);var Pe=w(Oe.offsets.popper),ke=Oe.offsets.reference,Be=_Mathfloor,Me='left'===Ce&&Be(Pe.right)>Be(ke.left)||'right'===Ce&&Be(Pe.left)Be(ke.top)||'bottom'===Ce&&Be(Pe.top)Be(Se.right),Ue=Be(Pe.top)Be(Se.bottom),Re='left'===Ce&&Ie||'right'===Ce&&Ae||'top'===Ce&&Ue||'bottom'===Ce&&Ye,Fe=-1!==['top','bottom'].indexOf(Ce),je=!!Le.flipVariations&&(Fe&&'start'===Ne&&Ie||Fe&&'end'===Ne&&Ae||!Fe&&'start'===Ne&&Ue||!Fe&&'end'===Ne&&Ye);(Me||Re||je)&&(Oe.flipped=!0,(Me||Re)&&(Ce=We[He+1]),je&&(Ne=_(Ne)),Oe.placement=Ce+(Ne?'-'+Ne:''),Oe.offsets.popper=N(Oe.instance.state.position,Oe.instance.popper,Oe.offsets.reference,Oe.placement),Oe=M(Oe.instance.modifiers,Oe,'flip'))}),Oe},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(Oe){var Le=Oe.placement,Se=Le.split('-')[0],Ce=w(Oe.offsets.popper),Te=w(Oe.offsets.reference),Ne=-1!==['left','right'].indexOf(Se),We=-1===['top','left'].indexOf(Se);return Ce[Ne?'left':'top']=Te[Le]-(We?Ce[Ne?'width':'height']:0),Oe.placement=T(Le),Oe.offsets.popper=w(Ce),Oe}},hide:{order:800,enabled:!0,fn:function(Oe){if(!K(Oe.instance.modifiers,'hide','preventOverflow'))return Oe;var Le=Oe.offsets.reference,Se=k(Oe.instance.modifiers,function(Ce){return'preventOverflow'===Ce.name}).boundaries;if(Le.bottomSe.right||Le.top>Se.bottom||Le.right placement - string | function + string 'bottom'

How to position the popover - top | bottom.

diff --git a/docs/components/popovers.md b/docs/components/popovers.md index dda4edd9b3..bc3f9333f7 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -17,7 +17,7 @@ Add small overlay content, like those found in iOS, to any element for housing s Things to know when using the popover plugin: -- Popovers rely on the 3rd party library [Popper.js](https://popper.js.org) for positioning. You must include [popper.min.js](https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.8.2/umd/popper.min.js) before bootstrap.js in order for popovers to work! +- Popovers rely on the 3rd party library [Popper.js](https://popper.js.org) for positioning. You must include [popper.min.js](https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.9.1/umd/popper.min.js) before bootstrap.js in order for popovers to work! - Popovers require the [tooltip plugin]({{ site.baseurl }}/components/tooltips/) as a dependency. - Popovers are opt-in for performance reasons, so **you must initialize them yourself**. - Zero-length `title` and `content` values will never show a popover. diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index ce4430548d..85e5385f56 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -16,7 +16,7 @@ Inspired by the excellent Tipsy jQuery plugin written by Jason Frame. Tooltips a Things to know when using the tooltip plugin: -- Tooltips rely on the 3rd party library [Popper.js](https://popper.js.org) for positioning. You must include [popper.min.js](https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.8.2/umd/popper.min.js) before bootstrap.js in order for tooltips to work! +- Tooltips rely on the 3rd party library [Popper.js](https://popper.js.org) for positioning. You must include [popper.min.js](https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.9.1/umd/popper.min.js) before bootstrap.js in order for tooltips to work! - Tooltips are opt-in for performance reasons, so **you must initialize them yourself**. - Tooltips with zero-length titles are never displayed. - Specify `container: 'body'` to avoid rendering problems in more complex components (like our input groups, button groups, etc). diff --git a/docs/examples/album/index.html b/docs/examples/album/index.html index 6a791309a9..260b62a702 100644 --- a/docs/examples/album/index.html +++ b/docs/examples/album/index.html @@ -118,7 +118,7 @@ - + - + diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html index 52e79179ee..ae7a3a30fa 100644 --- a/docs/examples/carousel/index.html +++ b/docs/examples/carousel/index.html @@ -176,7 +176,7 @@ - + diff --git a/docs/examples/cover/index.html b/docs/examples/cover/index.html index 72a74b6166..6ba8850eb9 100644 --- a/docs/examples/cover/index.html +++ b/docs/examples/cover/index.html @@ -60,7 +60,7 @@ - + diff --git a/docs/examples/dashboard/index.html b/docs/examples/dashboard/index.html index a3ac9eb921..781fc17885 100644 --- a/docs/examples/dashboard/index.html +++ b/docs/examples/dashboard/index.html @@ -254,7 +254,7 @@ - + diff --git a/docs/examples/jumbotron/index.html b/docs/examples/jumbotron/index.html index 5478b6e284..e3b7fde1f0 100644 --- a/docs/examples/jumbotron/index.html +++ b/docs/examples/jumbotron/index.html @@ -93,7 +93,7 @@ - + diff --git a/docs/examples/justified-nav/index.html b/docs/examples/justified-nav/index.html index 024ebaae98..724f0abe55 100644 --- a/docs/examples/justified-nav/index.html +++ b/docs/examples/justified-nav/index.html @@ -96,7 +96,7 @@ - + diff --git a/docs/examples/navbar-top-fixed/index.html b/docs/examples/navbar-top-fixed/index.html index 3865bfe47d..0cac1bf9ae 100644 --- a/docs/examples/navbar-top-fixed/index.html +++ b/docs/examples/navbar-top-fixed/index.html @@ -56,7 +56,7 @@ - + diff --git a/docs/examples/navbar-top/index.html b/docs/examples/navbar-top/index.html index 079f7d502b..0af4b5e259 100644 --- a/docs/examples/navbar-top/index.html +++ b/docs/examples/navbar-top/index.html @@ -56,7 +56,7 @@ - + diff --git a/docs/examples/navbars/index.html b/docs/examples/navbars/index.html index 6163cb9727..a06b5d8daa 100644 --- a/docs/examples/navbars/index.html +++ b/docs/examples/navbars/index.html @@ -351,7 +351,7 @@ - + diff --git a/docs/examples/offcanvas/index.html b/docs/examples/offcanvas/index.html index 7f72bd2fdb..a2dc6c9ed4 100644 --- a/docs/examples/offcanvas/index.html +++ b/docs/examples/offcanvas/index.html @@ -127,7 +127,7 @@ - + diff --git a/docs/examples/starter-template/index.html b/docs/examples/starter-template/index.html index 3644f9129a..27522ec421 100644 --- a/docs/examples/starter-template/index.html +++ b/docs/examples/starter-template/index.html @@ -66,7 +66,7 @@ - + diff --git a/docs/examples/sticky-footer-navbar/index.html b/docs/examples/sticky-footer-navbar/index.html index f1486af79c..6102e885c1 100644 --- a/docs/examples/sticky-footer-navbar/index.html +++ b/docs/examples/sticky-footer-navbar/index.html @@ -64,7 +64,7 @@ - + diff --git a/docs/examples/tooltip-viewport/index.html b/docs/examples/tooltip-viewport/index.html index 9121cbf107..9056b0a00b 100644 --- a/docs/examples/tooltip-viewport/index.html +++ b/docs/examples/tooltip-viewport/index.html @@ -39,7 +39,7 @@ - + diff --git a/package.json b/package.json index 1a12fb066e..812d819553 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "license": "MIT", "dependencies": { "jquery": ">=1.9.1", - "popper.js": "^1.8.2" + "popper.js": "^1.9.1" }, "devDependencies": { "autoprefixer": "^6.7.7",