0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-20 17:54:23 +01:00
This commit is contained in:
Mark Otto 2017-12-22 16:21:54 -08:00
parent 13150872c6
commit 935d45f461
31 changed files with 381 additions and 344 deletions

View File

@ -22,4 +22,4 @@ License: MIT
* Licensed under the Creative Commons Attribution 3.0 Unported License. For * Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/. * details, see https://creativecommons.org/licenses/by/3.0/.
*/ */
(function(e){"use strict";e(function(){e(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"});e('[data-toggle="popover"]').popover();e(".tooltip-test").tooltip();e(".popover-test").popover();e('.bd-example-indeterminate [type="checkbox"]').prop("indeterminate",true);e('.bd-content [href="#"]').click(function(e){e.preventDefault()});e("#exampleModal").on("show.bs.modal",function(t){var n=e(t.relatedTarget);var r=n.data("whatever");var i=e(this);i.find(".modal-title").text("New message to "+r);i.find(".modal-body input").val(r)});e(".bd-toggle-animated-progress").on("click",function(){e(this).siblings(".progress").find(".progress-bar-striped").toggleClass("progress-bar-animated")});e(".highlight").each(function(){var t='<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>';e(this).before(t);e(".btn-clipboard").tooltip().on("mouseleave",function(){e(this).tooltip("hide")})});var t=new Clipboard(".btn-clipboard",{target:function(e){return e.parentNode.nextElementSibling}});t.on("success",function(t){e(t.trigger).attr("title","Copied!").tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle");t.clearSelection()});t.on("error",function(t){var n=/Mac/i.test(navigator.userAgent)?"⌘":"Ctrl-";var r="Press "+n+"C to copy";e(t.trigger).attr("title",r).tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle")});anchors.options={icon:"#"};anchors.add(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5");e(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5").wrapInner("<div></div>")})})(jQuery);(function(){"use strict";function e(){var e=/MSIE ([0-9.]+)/.exec(window.navigator.userAgent);if(e===null){return null}var t=parseInt(e[1],10);var n=Math.floor(t);return n}function t(){var e=new Function("/*@cc_on return @_jscript_version; @*/")();if(typeof e==="undefined"){return 11}if(e<9){return 8}return e}var n=window.navigator.userAgent;if(n.indexOf("Opera")>-1||n.indexOf("Presto")>-1){return}var r=e();if(r===null){return}var i=t();if(r!==i){window.alert("WARNING: You appear to be using IE"+i+" in IE"+r+" emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!")}})();(function e(){"use strict";if("serviceWorker"in navigator){window.addEventListener("load",function(){navigator.serviceWorker.register("/sw.js").then(function(e){console.log("ServiceWorker registration successful with scope: ",e.scope);e.onupdatefound=function(){var t=e.installing;t.onstatechange=function(){switch(t.state){case"installed":if(navigator.serviceWorker.controller){console.log("new update available");location.reload(true)}break;default:}}}}).catch(function(e){console.log("ServiceWorker registration failed: ",e)})})}})(); (function(e){"use strict";e(function(){e(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"});e('[data-toggle="popover"]').popover();e(".tooltip-test").tooltip();e(".popover-test").popover();e('.bd-example-indeterminate [type="checkbox"]').prop("indeterminate",true);e('.bd-content [href="#"]').click(function(e){e.preventDefault()});e("#exampleModal").on("show.bs.modal",function(t){var n=e(t.relatedTarget);var r=n.data("whatever");var i=e(this);i.find(".modal-title").text("New message to "+r);i.find(".modal-body input").val(r)});e(".bd-toggle-animated-progress").on("click",function(){e(this).siblings(".progress").find(".progress-bar-striped").toggleClass("progress-bar-animated")});e(".highlight").each(function(){var t='<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>';e(this).before(t);e(".btn-clipboard").tooltip().on("mouseleave",function(){e(this).tooltip("hide")})});var t=new Clipboard(".btn-clipboard",{target:function(e){return e.parentNode.nextElementSibling}});t.on("success",function(t){e(t.trigger).attr("title","Copied!").tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle");t.clearSelection()});t.on("error",function(t){var n=/Mac/i.test(navigator.userAgent)?"⌘":"Ctrl-";var r="Press "+n+"C to copy";e(t.trigger).attr("title",r).tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle")});anchors.options={icon:"#"};anchors.add(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5");e(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5").wrapInner("<div></div>")})})(jQuery);(function(){"use strict";function e(){var e=/MSIE ([0-9.]+)/.exec(window.navigator.userAgent);if(e===null){return null}var t=parseInt(e[1],10);var n=Math.floor(t);return n}function t(){var e=new Function("/*@cc_on return @_jscript_version; @*/")();if(typeof e==="undefined"){return 11}if(e<9){return 8}return e}var n=window.navigator.userAgent;if(n.indexOf("Opera")>-1||n.indexOf("Presto")>-1){return}var r=e();if(r===null){return}var i=t();if(r!==i){window.alert("WARNING: You appear to be using IE"+i+" in IE"+r+" emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!")}})();(function e(){"use strict";if("serviceWorker"in navigator){window.addEventListener("load",function(){navigator.serviceWorker.register("/sw.js").then(function(e){console.log("ServiceWorker registration successful with scope: ",e.scope)}).catch(function(e){console.log("ServiceWorker registration failed: ",e)})})}else{console.log("Service workers are not supported.")}})();

View File

@ -1943,17 +1943,23 @@ select.form-control:focus::-ms-value {
} }
.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, .form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control,
.input-group-sm > .form-control-plaintext.input-group-addon, .input-group-sm > .input-group-prepend > .form-control-plaintext.input-group-text,
.input-group-sm > .input-group-btn > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, .input-group-sm > .input-group-append > .form-control-plaintext.input-group-text,
.input-group-lg > .form-control-plaintext.input-group-addon, .input-group-sm > .input-group-prepend > .form-control-plaintext.btn,
.input-group-lg > .input-group-btn > .form-control-plaintext.btn { .input-group-sm > .input-group-append > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control,
.input-group-lg > .input-group-prepend > .form-control-plaintext.input-group-text,
.input-group-lg > .input-group-append > .form-control-plaintext.input-group-text,
.input-group-lg > .input-group-prepend > .form-control-plaintext.btn,
.input-group-lg > .input-group-append > .form-control-plaintext.btn {
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
} }
.form-control-sm, .input-group-sm > .form-control, .form-control-sm, .input-group-sm > .form-control,
.input-group-sm > .input-group-addon, .input-group-sm > .input-group-prepend > .input-group-text,
.input-group-sm > .input-group-btn > .btn { .input-group-sm > .input-group-append > .input-group-text,
.input-group-sm > .input-group-prepend > .btn,
.input-group-sm > .input-group-append > .btn {
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
line-height: 1.5; line-height: 1.5;
@ -1961,14 +1967,18 @@ select.form-control:focus::-ms-value {
} }
select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]),
.input-group-sm > select.input-group-addon:not([size]):not([multiple]), .input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]),
.input-group-sm > .input-group-btn > select.btn:not([size]):not([multiple]) { .input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]),
.input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]),
.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]) {
height: calc(1.8125rem + 2px); height: calc(1.8125rem + 2px);
} }
.form-control-lg, .input-group-lg > .form-control, .form-control-lg, .input-group-lg > .form-control,
.input-group-lg > .input-group-addon, .input-group-lg > .input-group-prepend > .input-group-text,
.input-group-lg > .input-group-btn > .btn { .input-group-lg > .input-group-append > .input-group-text,
.input-group-lg > .input-group-prepend > .btn,
.input-group-lg > .input-group-append > .btn {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.5; line-height: 1.5;
@ -1976,8 +1986,10 @@ select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.for
} }
select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]),
.input-group-lg > select.input-group-addon:not([size]):not([multiple]), .input-group-lg > .input-group-prepend > select.input-group-text:not([size]):not([multiple]),
.input-group-lg > .input-group-btn > select.btn:not([size]):not([multiple]) { .input-group-lg > .input-group-append > select.input-group-text:not([size]):not([multiple]),
.input-group-lg > .input-group-prepend > select.btn:not([size]):not([multiple]),
.input-group-lg > .input-group-append > select.btn:not([size]):not([multiple]) {
height: calc(2.875rem + 2px); height: calc(2.875rem + 2px);
} }
@ -2037,6 +2049,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
.valid-feedback { .valid-feedback {
display: none; display: none;
width: 100%;
margin-top: 0.25rem; margin-top: 0.25rem;
font-size: 80%; font-size: 80%;
color: #28a745; color: #28a745;
@ -2115,6 +2128,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
.invalid-feedback { .invalid-feedback {
display: none; display: none;
width: 100%;
margin-top: 0.25rem; margin-top: 0.25rem;
font-size: 80%; font-size: 80%;
color: #dc3545; color: #dc3545;
@ -3226,61 +3240,103 @@ tbody.collapse.show {
position: relative; position: relative;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-align: stretch; -ms-flex-align: stretch;
align-items: stretch; align-items: stretch;
width: 100%; width: 100%;
} }
.input-group .form-control { .input-group .form-control,
.input-group .custom-select,
.input-group .custom-file {
position: relative; position: relative;
z-index: 1;
-ms-flex: 1 1 auto; -ms-flex: 1 1 auto;
flex: 1 1 auto; flex: 1 1 auto;
width: 1%; width: 1%;
margin-bottom: 0; margin-bottom: 0;
} }
.input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover { .input-group .form-control:focus,
z-index: 2; .input-group .custom-select:focus,
.input-group .custom-file:focus {
z-index: 3;
} }
.input-group-addon, .input-group .form-control + .form-control,
.input-group-btn, .input-group .custom-select + .form-control,
.input-group .form-control, .input-group .custom-file + .form-control {
.input-group .custom-select, margin-left: -1px;
.input-group .custom-file {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
} }
.input-group-addon:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-of-type),
.input-group-btn:not(:first-child):not(:last-child), .input-group .custom-select:not(:first-child):not(:last-of-type) {
.input-group .form-control:not(:first-child):not(:last-child),
.input-group .custom-select:not(:first-child):not(:last-child),
.input-group .custom-file:not(:first-child):not(:last-child) {
border-radius: 0; border-radius: 0;
} }
.input-group .custom-file { .input-group .form-control:first-child,
.input-group .custom-select:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-group .form-control:last-of-type:not(:first-child),
.input-group .custom-select:last-of-type:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.input-group .custom-file:not(:first-child):not(:last-of-type) .custom-file-control,
.input-group .custom-file:not(:first-child):not(:last-of-type) .custom-file-control::before {
border-radius: 0;
}
.input-group .custom-file:first-child .custom-file-control,
.input-group .custom-file:first-child .custom-file-control::before {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-group .custom-file:last-of-type:not(:first-child) .custom-file-control,
.input-group .custom-file:last-of-type:not(:first-child) .custom-file-control::before {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.input-group-prepend,
.input-group-append {
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
} }
.input-group .custom-select, .input-group-prepend .btn,
.input-group .custom-file { .input-group-append .btn {
width: 100%; position: relative;
z-index: 2;
} }
.input-group-addon, .input-group-prepend .btn + .btn,
.input-group-btn { .input-group-prepend .btn + .input-group-text,
white-space: nowrap; .input-group-prepend .input-group-text + .input-group-text,
.input-group-prepend .input-group-text + .btn,
.input-group-append .btn + .btn,
.input-group-append .btn + .input-group-text,
.input-group-append .input-group-text + .input-group-text,
.input-group-append .input-group-text + .btn {
margin-left: -1px;
} }
.input-group-addon { .input-group-prepend {
margin-right: -1px;
}
.input-group-append {
margin-left: -1px;
}
.input-group-text {
padding: 0.375rem 0.75rem; padding: 0.375rem 0.75rem;
margin-bottom: 0; margin-bottom: 0;
font-size: 1rem; font-size: 1rem;
@ -3288,113 +3344,40 @@ tbody.collapse.show {
line-height: 1.5; line-height: 1.5;
color: #495057; color: #495057;
text-align: center; text-align: center;
white-space: nowrap;
background-color: #e9ecef; background-color: #e9ecef;
border: 1px solid #ced4da; border: 1px solid #ced4da;
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.input-group-addon.form-control-sm, .input-group-text input[type="radio"],
.input-group-sm > .input-group-addon, .input-group-text input[type="checkbox"] {
.input-group-sm > .input-group-btn > .input-group-addon.btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
.input-group-addon.form-control-lg,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .input-group-addon.btn {
padding: 0.5rem 1rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0; margin-top: 0;
} }
.input-group .form-control:not(:last-child), .input-group > .input-group-prepend > .btn,
.input-group .custom-select:not(:last-child), .input-group > .input-group-prepend > .input-group-text {
.input-group .custom-file:not(:last-child) .custom-file-control::before,
.input-group-addon:not(:last-child),
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group > .btn,
.input-group-btn:not(:last-child) > .dropdown-toggle,
.input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn {
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.input-group-addon:not(:last-child) { .input-group > .input-group-prepend > .btn + .btn,
border-right: 0; .input-group > .input-group-prepend > .btn + .input-group-text,
} .input-group > .input-group-prepend > .input-group-text + .btn,
.input-group > .input-group-prepend > .input-group-text + .input-group-text {
.input-group .form-control:not(:first-child),
.input-group .custom-select:not(:first-child),
.input-group .custom-file:not(:first-child) .custom-file-control,
.input-group-addon:not(:first-child),
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group > .btn,
.input-group-btn:not(:first-child) > .dropdown-toggle,
.input-group-btn:not(:last-child) > .btn:not(:first-child),
.input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn {
border-top-left-radius: 0; border-top-left-radius: 0;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
} }
.form-control + .input-group-addon:not(:first-child), .input-group > .input-group-append .btn:not(:last-of-type),
.custom-select + .input-group-addon:not(:first-child), .input-group > .input-group-append .input-group-text:not(:last-child) {
.custom-file + .input-group-addon:not(:first-child) { border-radius: 0;
border-left: 0;
} }
.input-group-btn { .input-group > .input-group-append .btn:last-of-type,
position: relative; .input-group > .input-group-append .input-group-text:last-child {
-ms-flex-align: stretch; border-top-left-radius: 0;
align-items: stretch; border-bottom-left-radius: 0;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:focus, .input-group-btn > .btn:active, .input-group-btn > .btn:hover {
z-index: 2;
}
.input-group-btn:first-child > .btn + .btn {
margin-left: 0;
}
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group {
margin-right: -1px;
}
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group {
z-index: 1;
margin-left: 0;
}
.input-group-btn:not(:first-child) > .btn:first-child,
.input-group-btn:not(:first-child) > .btn-group:first-child {
margin-left: -1px;
}
.input-group-btn:not(:first-child) > .btn:focus, .input-group-btn:not(:first-child) > .btn:active, .input-group-btn:not(:first-child) > .btn:hover,
.input-group-btn:not(:first-child) > .btn-group:focus,
.input-group-btn:not(:first-child) > .btn-group:active,
.input-group-btn:not(:first-child) > .btn-group:hover {
z-index: 2;
} }
.custom-control { .custom-control {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,8 +3,11 @@
* Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
var bootstrap = (function (exports,$) { (function (global, factory) {
'use strict'; typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :
typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :
(factory((global.bootstrap = {}),global.jQuery));
}(this, (function (exports,$) { 'use strict';
$ = $ && $.hasOwnProperty('default') ? $['default'] : $; $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
@ -24,6 +27,24 @@ function _createClass(Constructor, protoProps, staticProps) {
return Constructor; return Constructor;
} }
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _inheritsLoose(subClass, superClass) { function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype); subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass; subClass.prototype.constructor = subClass;
@ -44,12 +65,7 @@ var Util = function ($$$1) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var transition = false; var transition = false;
var MAX_UID = 1000000; var MAX_UID = 1000000; // shoutout AngusCroll (https://goo.gl/pxwQGp)
var TransitionEndEvent = {
WebkitTransition: 'webkitTransitionEnd',
transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp)
};
function toType(obj) { function toType(obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
@ -74,17 +90,9 @@ var Util = function ($$$1) {
return false; return false;
} }
var el = document.createElement('bootstrap'); return {
end: 'transitionend'
for (var name in TransitionEndEvent) { };
if (typeof el.style[name] !== 'undefined') {
return {
end: TransitionEndEvent[name]
};
}
}
return false;
} }
function transitionEndEmulator(duration) { function transitionEndEmulator(duration) {
@ -714,7 +722,7 @@ var Carousel = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -916,10 +924,10 @@ var Carousel = function ($$$1) {
return this.each(function () { return this.each(function () {
var data = $$$1(this).data(DATA_KEY); var data = $$$1(this).data(DATA_KEY);
var _config = $$$1.extend({}, Default, $$$1(this).data()); var _config = _extends({}, Default, $$$1(this).data());
if (typeof config === 'object') { if (typeof config === 'object') {
$$$1.extend(_config, config); _config = _extends({}, _config, config);
} }
var action = typeof config === 'string' ? config : _config.slide; var action = typeof config === 'string' ? config : _config.slide;
@ -957,7 +965,7 @@ var Carousel = function ($$$1) {
return; return;
} }
var config = $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); var config = _extends({}, $$$1(target).data(), $$$1(this).data());
var slideIndex = this.getAttribute('data-slide-to'); var slideIndex = this.getAttribute('data-slide-to');
if (slideIndex) { if (slideIndex) {
@ -1256,7 +1264,7 @@ var Collapse = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
config.toggle = Boolean(config.toggle); // coerce string values config.toggle = Boolean(config.toggle); // coerce string values
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
@ -1311,7 +1319,7 @@ var Collapse = function ($$$1) {
var $this = $$$1(this); var $this = $$$1(this);
var data = $this.data(DATA_KEY); var data = $this.data(DATA_KEY);
var _config = $$$1.extend({}, Default, $this.data(), typeof config === 'object' && config); var _config = _extends({}, Default, $this.data(), typeof config === 'object' && config);
if (!data && _config.toggle && /show|hide/.test(config)) { if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false; _config.toggle = false;
@ -1387,7 +1395,7 @@ var Collapse = function ($$$1) {
/**! /**!
* @fileOverview Kickass library to create and place poppers near their reference elements. * @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.12.6 * @version 1.12.9
* @license * @license
* Copyright (c) 2016 Federico Zivolo and contributors * Copyright (c) 2016 Federico Zivolo and contributors
* *
@ -1409,7 +1417,7 @@ var Collapse = function ($$$1) {
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
var timeoutDuration = 0; var timeoutDuration = 0;
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
@ -1426,7 +1434,7 @@ function microtaskDebounce(fn) {
return; return;
} }
called = true; called = true;
Promise.resolve().then(function () { window.Promise.resolve().then(function () {
called = false; called = false;
fn(); fn();
}); });
@ -1483,7 +1491,7 @@ function getStyleComputedProperty(element, property) {
return []; return [];
} }
// NOTE: 1 DOM access here // NOTE: 1 DOM access here
var css = window.getComputedStyle(element, null); var css = getComputedStyle(element, null);
return property ? css[property] : css; return property ? css[property] : css;
} }
@ -1511,7 +1519,7 @@ function getParentNode(element) {
function getScrollParent(element) { function getScrollParent(element) {
// Return body, `getScroll` will take care to get the correct `scrollTop` from it // Return body, `getScroll` will take care to get the correct `scrollTop` from it
if (!element) { if (!element) {
return window.document.body; return document.body;
} }
switch (element.nodeName) { switch (element.nodeName) {
@ -1553,7 +1561,7 @@ function getOffsetParent(element) {
return element.ownerDocument.documentElement; return element.ownerDocument.documentElement;
} }
return window.document.documentElement; return document.documentElement;
} }
// .offsetParent will return the closest TD or TABLE in case // .offsetParent will return the closest TD or TABLE in case
@ -1600,7 +1608,7 @@ function getRoot(node) {
function findCommonOffsetParent(element1, element2) { function findCommonOffsetParent(element1, element2) {
// This check is needed to avoid errors in case one of the elements isn't defined for any reason // This check is needed to avoid errors in case one of the elements isn't defined for any reason
if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {
return window.document.documentElement; return document.documentElement;
} }
// Here we make sure to give as "start" the element that comes first in the DOM // Here we make sure to give as "start" the element that comes first in the DOM
@ -1692,7 +1700,7 @@ function getBordersSize(styles, axis) {
var sideA = axis === 'x' ? 'Left' : 'Top'; var sideA = axis === 'x' ? 'Left' : 'Top';
var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
return +styles['border' + sideA + 'Width'].split('px')[0] + +styles['border' + sideB + 'Width'].split('px')[0]; return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);
} }
/** /**
@ -1715,9 +1723,9 @@ function getSize(axis, body, html, computedStyle) {
} }
function getWindowSizes() { function getWindowSizes() {
var body = window.document.body; var body = document.body;
var html = window.document.documentElement; var html = document.documentElement;
var computedStyle = isIE10$1() && window.getComputedStyle(html); var computedStyle = isIE10$1() && getComputedStyle(html);
return { return {
height: getSize('Height', body, html, computedStyle), height: getSize('Height', body, html, computedStyle),
@ -1768,7 +1776,7 @@ var defineProperty = function (obj, key, value) {
return obj; return obj;
}; };
var _extends = Object.assign || function (target) { var _extends$1 = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) { for (var i = 1; i < arguments.length; i++) {
var source = arguments[i]; var source = arguments[i];
@ -1790,7 +1798,7 @@ var _extends = Object.assign || function (target) {
* @returns {Object} ClientRect like output * @returns {Object} ClientRect like output
*/ */
function getClientRect(offsets) { function getClientRect(offsets) {
return _extends({}, offsets, { return _extends$1({}, offsets, {
right: offsets.left + offsets.width, right: offsets.left + offsets.width,
bottom: offsets.top + offsets.height bottom: offsets.top + offsets.height
}); });
@ -1860,8 +1868,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
var scrollParent = getScrollParent(children); var scrollParent = getScrollParent(children);
var styles = getStyleComputedProperty(parent); var styles = getStyleComputedProperty(parent);
var borderTopWidth = +styles.borderTopWidth.split('px')[0]; var borderTopWidth = parseFloat(styles.borderTopWidth, 10);
var borderLeftWidth = +styles.borderLeftWidth.split('px')[0]; var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);
var offsets = getClientRect({ var offsets = getClientRect({
top: childrenRect.top - parentRect.top - borderTopWidth, top: childrenRect.top - parentRect.top - borderTopWidth,
@ -1877,8 +1885,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
// differently when margins are applied to it. The margins are included in // differently when margins are applied to it. The margins are included in
// the box of the documentElement, in the other cases not. // the box of the documentElement, in the other cases not.
if (!isIE10 && isHTML) { if (!isIE10 && isHTML) {
var marginTop = +styles.marginTop.split('px')[0]; var marginTop = parseFloat(styles.marginTop, 10);
var marginLeft = +styles.marginLeft.split('px')[0]; var marginLeft = parseFloat(styles.marginLeft, 10);
offsets.top -= borderTopWidth - marginTop; offsets.top -= borderTopWidth - marginTop;
offsets.bottom -= borderTopWidth - marginTop; offsets.bottom -= borderTopWidth - marginTop;
@ -1957,7 +1965,7 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
// Handle other cases based on DOM element used as boundaries // Handle other cases based on DOM element used as boundaries
var boundariesNode = void 0; var boundariesNode = void 0;
if (boundariesElement === 'scrollParent') { if (boundariesElement === 'scrollParent') {
boundariesNode = getScrollParent(getParentNode(popper)); boundariesNode = getScrollParent(getParentNode(reference));
if (boundariesNode.nodeName === 'BODY') { if (boundariesNode.nodeName === 'BODY') {
boundariesNode = popper.ownerDocument.documentElement; boundariesNode = popper.ownerDocument.documentElement;
} }
@ -2039,7 +2047,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
}; };
var sortedAreas = Object.keys(rects).map(function (key) { var sortedAreas = Object.keys(rects).map(function (key) {
return _extends({ return _extends$1({
key: key key: key
}, rects[key], { }, rects[key], {
area: getArea(rects[key]) area: getArea(rects[key])
@ -2083,7 +2091,7 @@ function getReferenceOffsets(state, popper, reference) {
* @returns {Object} object containing width and height properties * @returns {Object} object containing width and height properties
*/ */
function getOuterSizes(element) { function getOuterSizes(element) {
var styles = window.getComputedStyle(element); var styles = getComputedStyle(element);
var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom); var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight); var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
var result = { var result = {
@ -2300,7 +2308,7 @@ function getSupportedPropertyName(property) {
for (var i = 0; i < prefixes.length - 1; i++) { for (var i = 0; i < prefixes.length - 1; i++) {
var prefix = prefixes[i]; var prefix = prefixes[i];
var toCheck = prefix ? '' + prefix + upperProp : property; var toCheck = prefix ? '' + prefix + upperProp : property;
if (typeof window.document.body.style[toCheck] !== 'undefined') { if (typeof document.body.style[toCheck] !== 'undefined') {
return toCheck; return toCheck;
} }
} }
@ -2419,7 +2427,7 @@ function removeEventListeners(reference, state) {
*/ */
function disableEventListeners() { function disableEventListeners() {
if (this.state.eventsEnabled) { if (this.state.eventsEnabled) {
window.cancelAnimationFrame(this.scheduleUpdate); cancelAnimationFrame(this.scheduleUpdate);
this.state = removeEventListeners(this.reference, this.state); this.state = removeEventListeners(this.reference, this.state);
} }
} }
@ -2616,9 +2624,9 @@ function computeStyle(data, options) {
}; };
// Update `data` attributes, styles and arrowStyles // Update `data` attributes, styles and arrowStyles
data.attributes = _extends({}, attributes, data.attributes); data.attributes = _extends$1({}, attributes, data.attributes);
data.styles = _extends({}, styles, data.styles); data.styles = _extends$1({}, styles, data.styles);
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
return data; return data;
} }
@ -2659,6 +2667,8 @@ function isModifierRequired(modifiers, requestingName, requestedName) {
* @returns {Object} The data object, properly modified * @returns {Object} The data object, properly modified
*/ */
function arrow(data, options) { function arrow(data, options) {
var _data$offsets$arrow;
// arrow depends on keepTogether in order to work // arrow depends on keepTogether in order to work
if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
return data; return data;
@ -2710,22 +2720,23 @@ function arrow(data, options) {
if (reference[side] + arrowElementSize > popper[opSide]) { if (reference[side] + arrowElementSize > popper[opSide]) {
data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];
} }
data.offsets.popper = getClientRect(data.offsets.popper);
// compute center of the popper // compute center of the popper
var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
// Compute the sideValue using the updated popper offsets // Compute the sideValue using the updated popper offsets
// take popper margin in account because we don't have this info available // take popper margin in account because we don't have this info available
var popperMarginSide = getStyleComputedProperty(data.instance.popper, 'margin' + sideCapitalized).replace('px', ''); var css = getStyleComputedProperty(data.instance.popper);
var sideValue = center - getClientRect(data.offsets.popper)[side] - popperMarginSide; var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10);
var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10);
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
// prevent arrowElement from being placed not contiguously to its popper // prevent arrowElement from being placed not contiguously to its popper
sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);
data.arrowElement = arrowElement; data.arrowElement = arrowElement;
data.offsets.arrow = {}; data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);
data.offsets.arrow[side] = Math.round(sideValue);
data.offsets.arrow[altSide] = ''; // make sure to unset any eventual altSide value from the DOM node
return data; return data;
} }
@ -2888,7 +2899,7 @@ function flip(data, options) {
// this object contains `position`, we want to preserve it along with // this object contains `position`, we want to preserve it along with
// any additional property we may add in the future // any additional property we may add in the future
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
data = runModifiers(data.instance.modifiers, data, 'flip'); data = runModifiers(data.instance.modifiers, data, 'flip');
} }
@ -3142,7 +3153,7 @@ function preventOverflow(data, options) {
order.forEach(function (placement) { order.forEach(function (placement) {
var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
popper = _extends({}, popper, check[side](placement)); popper = _extends$1({}, popper, check[side](placement));
}); });
data.offsets.popper = popper; data.offsets.popper = popper;
@ -3177,7 +3188,7 @@ function shift(data) {
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
}; };
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
} }
return data; return data;
@ -3687,7 +3698,7 @@ var Popper = function () {
this.update = debounce(this.update.bind(this)); this.update = debounce(this.update.bind(this));
// with {} we create a new object with the options inside it // with {} we create a new object with the options inside it
this.options = _extends({}, Popper.Defaults, options); this.options = _extends$1({}, Popper.Defaults, options);
// init state // init state
this.state = { this.state = {
@ -3702,13 +3713,13 @@ var Popper = function () {
// Deep merge modifiers options // Deep merge modifiers options
this.options.modifiers = {}; this.options.modifiers = {};
Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { Object.keys(_extends$1({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
_this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); _this.options.modifiers[name] = _extends$1({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
}); });
// Refactoring modifiers' list (Object => Array) // Refactoring modifiers' list (Object => Array)
this.modifiers = Object.keys(this.options.modifiers).map(function (name) { this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
return _extends({ return _extends$1({
name: name name: name
}, _this.options.modifiers[name]); }, _this.options.modifiers[name]);
}) })
@ -3866,7 +3877,8 @@ var Dropdown = function ($$$1) {
DROPRIGHT: 'dropright', DROPRIGHT: 'dropright',
DROPLEFT: 'dropleft', DROPLEFT: 'dropleft',
MENURIGHT: 'dropdown-menu-right', MENURIGHT: 'dropdown-menu-right',
MENULEFT: 'dropdown-menu-left' MENULEFT: 'dropdown-menu-left',
POSITION_STATIC: 'position-static'
}; };
var Selector = { var Selector = {
DATA_TOGGLE: '[data-toggle="dropdown"]', DATA_TOGGLE: '[data-toggle="dropdown"]',
@ -3887,11 +3899,13 @@ var Dropdown = function ($$$1) {
}; };
var Default = { var Default = {
offset: 0, offset: 0,
flip: true flip: true,
boundary: 'scrollParent'
}; };
var DefaultType = { var DefaultType = {
offset: '(number|string|function)', offset: '(number|string|function)',
flip: 'boolean' flip: 'boolean',
boundary: '(string|element)'
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
* Class Definition * Class Definition
@ -3958,6 +3972,13 @@ var Dropdown = function ($$$1) {
if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) { if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
element = parent; element = parent;
} }
} // If boundary is not `scrollParent`, then set position to `static`
// to allow the menu to "escape" the scroll parent's boundaries
// https://github.com/twbs/bootstrap/issues/24251
if (this._config.boundary !== 'scrollParent') {
$$$1(parent).addClass(ClassName.POSITION_STATIC);
} }
this._popper = new Popper(element, this._menu, this._getPopperConfig()); this._popper = new Popper(element, this._menu, this._getPopperConfig());
@ -4013,7 +4034,7 @@ var Dropdown = function ($$$1) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, this.constructor.Default, $$$1(this._element).data(), config); config = _extends({}, this.constructor.Default, $$$1(this._element).data(), config);
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config; return config;
}; };
@ -4060,7 +4081,7 @@ var Dropdown = function ($$$1) {
if (typeof this._config.offset === 'function') { if (typeof this._config.offset === 'function') {
offsetConf.fn = function (data) { offsetConf.fn = function (data) {
data.offsets = $$$1.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets) || {});
return data; return data;
}; };
} else { } else {
@ -4073,6 +4094,9 @@ var Dropdown = function ($$$1) {
offset: offsetConf, offset: offsetConf,
flip: { flip: {
enabled: this._config.flip enabled: this._config.flip
},
preventOverflow: {
boundariesElement: this._config.boundary
} }
} }
}; };
@ -4473,7 +4497,7 @@ var Modal = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -4757,7 +4781,7 @@ var Modal = function ($$$1) {
return this.each(function () { return this.each(function () {
var data = $$$1(this).data(DATA_KEY); var data = $$$1(this).data(DATA_KEY);
var _config = $$$1.extend({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config); var _config = _extends({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config);
if (!data) { if (!data) {
data = new Modal(this, _config); data = new Modal(this, _config);
@ -4806,7 +4830,7 @@ var Modal = function ($$$1) {
target = $$$1(selector)[0]; target = $$$1(selector)[0];
} }
var config = $$$1(target).data(DATA_KEY) ? 'toggle' : $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _extends({}, $$$1(target).data(), $$$1(this).data());
if (this.tagName === 'A' || this.tagName === 'AREA') { if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault(); event.preventDefault();
@ -4876,7 +4900,8 @@ var Tooltip = function ($$$1) {
placement: '(string|function)', placement: '(string|function)',
offset: '(number|string)', offset: '(number|string)',
container: '(string|element|boolean)', container: '(string|element|boolean)',
fallbackPlacement: '(string|array)' fallbackPlacement: '(string|array)',
boundary: '(string|element)'
}; };
var AttachmentMap = { var AttachmentMap = {
AUTO: 'auto', AUTO: 'auto',
@ -4896,7 +4921,8 @@ var Tooltip = function ($$$1) {
placement: 'top', placement: 'top',
offset: 0, offset: 0,
container: false, container: false,
fallbackPlacement: 'flip' fallbackPlacement: 'flip',
boundary: 'scrollParent'
}; };
var HoverState = { var HoverState = {
SHOW: 'show', SHOW: 'show',
@ -5086,6 +5112,9 @@ var Tooltip = function ($$$1) {
}, },
arrow: { arrow: {
element: Selector.ARROW element: Selector.ARROW
},
preventOverflow: {
boundariesElement: this.config.boundary
} }
}, },
onCreate: function onCreate(data) { onCreate: function onCreate(data) {
@ -5263,7 +5292,7 @@ var Tooltip = function ($$$1) {
}); });
if (this.config.selector) { if (this.config.selector) {
this.config = $$$1.extend({}, this.config, { this.config = _extends({}, this.config, {
trigger: 'manual', trigger: 'manual',
selector: '' selector: ''
}); });
@ -5357,7 +5386,7 @@ var Tooltip = function ($$$1) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, this.constructor.Default, $$$1(this.element).data(), config); config = _extends({}, this.constructor.Default, $$$1(this.element).data(), config);
if (typeof config.delay === 'number') { if (typeof config.delay === 'number') {
config.delay = { config.delay = {
@ -5524,13 +5553,13 @@ var Popover = function ($$$1) {
var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
var CLASS_PREFIX = 'bs-popover'; var CLASS_PREFIX = 'bs-popover';
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
var Default = $$$1.extend({}, Tooltip.Default, { var Default = _extends({}, Tooltip.Default, {
placement: 'right', placement: 'right',
trigger: 'click', trigger: 'click',
content: '', content: '',
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
}); });
var DefaultType = $$$1.extend({}, Tooltip.DefaultType, { var DefaultType = _extends({}, Tooltip.DefaultType, {
content: '(string|element|function)' content: '(string|element|function)'
}); });
var ClassName = { var ClassName = {
@ -5838,7 +5867,7 @@ var ScrollSpy = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
if (typeof config.target !== 'string') { if (typeof config.target !== 'string') {
var id = $$$1(config.target).attr('id'); var id = $$$1(config.target).attr('id');
@ -6149,7 +6178,7 @@ var Tab = function ($$$1) {
var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE); var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE);
var complete = function complete() { var complete = function complete() {
return _this2._transitionComplete(element, active, isTransitioning, callback); return _this2._transitionComplete(element, active, callback);
}; };
if (active && isTransitioning) { if (active && isTransitioning) {
@ -6157,15 +6186,11 @@ var Tab = function ($$$1) {
} else { } else {
complete(); complete();
} }
if (active) {
$$$1(active).removeClass(ClassName.SHOW);
}
}; };
_proto._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) { _proto._transitionComplete = function _transitionComplete(element, active, callback) {
if (active) { if (active) {
$$$1(active).removeClass(ClassName.ACTIVE); $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
if (dropdownChild) { if (dropdownChild) {
@ -6183,12 +6208,8 @@ var Tab = function ($$$1) {
element.setAttribute('aria-selected', true); element.setAttribute('aria-selected', true);
} }
if (isTransitioning) { Util.reflow(element);
Util.reflow(element); $$$1(element).addClass(ClassName.SHOW);
$$$1(element).addClass(ClassName.SHOW);
} else {
$$$1(element).removeClass(ClassName.FADE);
}
if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) { if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0]; var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
@ -6299,7 +6320,7 @@ exports.Scrollspy = ScrollSpy;
exports.Tab = Tab; exports.Tab = Tab;
exports.Tooltip = Tooltip; exports.Tooltip = Tooltip;
return exports; Object.defineProperty(exports, '__esModule', { value: true });
}({},jQuery)); })));
//# sourceMappingURL=bootstrap.bundle.js.map //# sourceMappingURL=bootstrap.bundle.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,8 +3,11 @@
* Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
var bootstrap = (function (exports,$,Popper) { (function (global, factory) {
'use strict'; typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
(factory((global.bootstrap = {}),global.jQuery,global.Popper));
}(this, (function (exports,$,Popper) { 'use strict';
$ = $ && $.hasOwnProperty('default') ? $['default'] : $; $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper; Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
@ -25,6 +28,24 @@ function _createClass(Constructor, protoProps, staticProps) {
return Constructor; return Constructor;
} }
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _inheritsLoose(subClass, superClass) { function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype); subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass; subClass.prototype.constructor = subClass;
@ -45,12 +66,7 @@ var Util = function ($$$1) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var transition = false; var transition = false;
var MAX_UID = 1000000; var MAX_UID = 1000000; // shoutout AngusCroll (https://goo.gl/pxwQGp)
var TransitionEndEvent = {
WebkitTransition: 'webkitTransitionEnd',
transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp)
};
function toType(obj) { function toType(obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
@ -75,17 +91,9 @@ var Util = function ($$$1) {
return false; return false;
} }
var el = document.createElement('bootstrap'); return {
end: 'transitionend'
for (var name in TransitionEndEvent) { };
if (typeof el.style[name] !== 'undefined') {
return {
end: TransitionEndEvent[name]
};
}
}
return false;
} }
function transitionEndEmulator(duration) { function transitionEndEmulator(duration) {
@ -715,7 +723,7 @@ var Carousel = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -917,10 +925,10 @@ var Carousel = function ($$$1) {
return this.each(function () { return this.each(function () {
var data = $$$1(this).data(DATA_KEY); var data = $$$1(this).data(DATA_KEY);
var _config = $$$1.extend({}, Default, $$$1(this).data()); var _config = _extends({}, Default, $$$1(this).data());
if (typeof config === 'object') { if (typeof config === 'object') {
$$$1.extend(_config, config); _config = _extends({}, _config, config);
} }
var action = typeof config === 'string' ? config : _config.slide; var action = typeof config === 'string' ? config : _config.slide;
@ -958,7 +966,7 @@ var Carousel = function ($$$1) {
return; return;
} }
var config = $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); var config = _extends({}, $$$1(target).data(), $$$1(this).data());
var slideIndex = this.getAttribute('data-slide-to'); var slideIndex = this.getAttribute('data-slide-to');
if (slideIndex) { if (slideIndex) {
@ -1257,7 +1265,7 @@ var Collapse = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
config.toggle = Boolean(config.toggle); // coerce string values config.toggle = Boolean(config.toggle); // coerce string values
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
@ -1312,7 +1320,7 @@ var Collapse = function ($$$1) {
var $this = $$$1(this); var $this = $$$1(this);
var data = $this.data(DATA_KEY); var data = $this.data(DATA_KEY);
var _config = $$$1.extend({}, Default, $this.data(), typeof config === 'object' && config); var _config = _extends({}, Default, $this.data(), typeof config === 'object' && config);
if (!data && _config.toggle && /show|hide/.test(config)) { if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false; _config.toggle = false;
@ -1435,7 +1443,8 @@ var Dropdown = function ($$$1) {
DROPRIGHT: 'dropright', DROPRIGHT: 'dropright',
DROPLEFT: 'dropleft', DROPLEFT: 'dropleft',
MENURIGHT: 'dropdown-menu-right', MENURIGHT: 'dropdown-menu-right',
MENULEFT: 'dropdown-menu-left' MENULEFT: 'dropdown-menu-left',
POSITION_STATIC: 'position-static'
}; };
var Selector = { var Selector = {
DATA_TOGGLE: '[data-toggle="dropdown"]', DATA_TOGGLE: '[data-toggle="dropdown"]',
@ -1456,11 +1465,13 @@ var Dropdown = function ($$$1) {
}; };
var Default = { var Default = {
offset: 0, offset: 0,
flip: true flip: true,
boundary: 'scrollParent'
}; };
var DefaultType = { var DefaultType = {
offset: '(number|string|function)', offset: '(number|string|function)',
flip: 'boolean' flip: 'boolean',
boundary: '(string|element)'
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
* Class Definition * Class Definition
@ -1527,6 +1538,13 @@ var Dropdown = function ($$$1) {
if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) { if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
element = parent; element = parent;
} }
} // If boundary is not `scrollParent`, then set position to `static`
// to allow the menu to "escape" the scroll parent's boundaries
// https://github.com/twbs/bootstrap/issues/24251
if (this._config.boundary !== 'scrollParent') {
$$$1(parent).addClass(ClassName.POSITION_STATIC);
} }
this._popper = new Popper(element, this._menu, this._getPopperConfig()); this._popper = new Popper(element, this._menu, this._getPopperConfig());
@ -1582,7 +1600,7 @@ var Dropdown = function ($$$1) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, this.constructor.Default, $$$1(this._element).data(), config); config = _extends({}, this.constructor.Default, $$$1(this._element).data(), config);
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config; return config;
}; };
@ -1629,7 +1647,7 @@ var Dropdown = function ($$$1) {
if (typeof this._config.offset === 'function') { if (typeof this._config.offset === 'function') {
offsetConf.fn = function (data) { offsetConf.fn = function (data) {
data.offsets = $$$1.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets) || {});
return data; return data;
}; };
} else { } else {
@ -1642,6 +1660,9 @@ var Dropdown = function ($$$1) {
offset: offsetConf, offset: offsetConf,
flip: { flip: {
enabled: this._config.flip enabled: this._config.flip
},
preventOverflow: {
boundariesElement: this._config.boundary
} }
} }
}; };
@ -2042,7 +2063,7 @@ var Modal = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -2326,7 +2347,7 @@ var Modal = function ($$$1) {
return this.each(function () { return this.each(function () {
var data = $$$1(this).data(DATA_KEY); var data = $$$1(this).data(DATA_KEY);
var _config = $$$1.extend({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config); var _config = _extends({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config);
if (!data) { if (!data) {
data = new Modal(this, _config); data = new Modal(this, _config);
@ -2375,7 +2396,7 @@ var Modal = function ($$$1) {
target = $$$1(selector)[0]; target = $$$1(selector)[0];
} }
var config = $$$1(target).data(DATA_KEY) ? 'toggle' : $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _extends({}, $$$1(target).data(), $$$1(this).data());
if (this.tagName === 'A' || this.tagName === 'AREA') { if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault(); event.preventDefault();
@ -2445,7 +2466,8 @@ var Tooltip = function ($$$1) {
placement: '(string|function)', placement: '(string|function)',
offset: '(number|string)', offset: '(number|string)',
container: '(string|element|boolean)', container: '(string|element|boolean)',
fallbackPlacement: '(string|array)' fallbackPlacement: '(string|array)',
boundary: '(string|element)'
}; };
var AttachmentMap = { var AttachmentMap = {
AUTO: 'auto', AUTO: 'auto',
@ -2465,7 +2487,8 @@ var Tooltip = function ($$$1) {
placement: 'top', placement: 'top',
offset: 0, offset: 0,
container: false, container: false,
fallbackPlacement: 'flip' fallbackPlacement: 'flip',
boundary: 'scrollParent'
}; };
var HoverState = { var HoverState = {
SHOW: 'show', SHOW: 'show',
@ -2655,6 +2678,9 @@ var Tooltip = function ($$$1) {
}, },
arrow: { arrow: {
element: Selector.ARROW element: Selector.ARROW
},
preventOverflow: {
boundariesElement: this.config.boundary
} }
}, },
onCreate: function onCreate(data) { onCreate: function onCreate(data) {
@ -2832,7 +2858,7 @@ var Tooltip = function ($$$1) {
}); });
if (this.config.selector) { if (this.config.selector) {
this.config = $$$1.extend({}, this.config, { this.config = _extends({}, this.config, {
trigger: 'manual', trigger: 'manual',
selector: '' selector: ''
}); });
@ -2926,7 +2952,7 @@ var Tooltip = function ($$$1) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, this.constructor.Default, $$$1(this.element).data(), config); config = _extends({}, this.constructor.Default, $$$1(this.element).data(), config);
if (typeof config.delay === 'number') { if (typeof config.delay === 'number') {
config.delay = { config.delay = {
@ -3093,13 +3119,13 @@ var Popover = function ($$$1) {
var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
var CLASS_PREFIX = 'bs-popover'; var CLASS_PREFIX = 'bs-popover';
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
var Default = $$$1.extend({}, Tooltip.Default, { var Default = _extends({}, Tooltip.Default, {
placement: 'right', placement: 'right',
trigger: 'click', trigger: 'click',
content: '', content: '',
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
}); });
var DefaultType = $$$1.extend({}, Tooltip.DefaultType, { var DefaultType = _extends({}, Tooltip.DefaultType, {
content: '(string|element|function)' content: '(string|element|function)'
}); });
var ClassName = { var ClassName = {
@ -3407,7 +3433,7 @@ var ScrollSpy = function ($$$1) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $$$1.extend({}, Default, config); config = _extends({}, Default, config);
if (typeof config.target !== 'string') { if (typeof config.target !== 'string') {
var id = $$$1(config.target).attr('id'); var id = $$$1(config.target).attr('id');
@ -3718,7 +3744,7 @@ var Tab = function ($$$1) {
var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE); var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE);
var complete = function complete() { var complete = function complete() {
return _this2._transitionComplete(element, active, isTransitioning, callback); return _this2._transitionComplete(element, active, callback);
}; };
if (active && isTransitioning) { if (active && isTransitioning) {
@ -3726,15 +3752,11 @@ var Tab = function ($$$1) {
} else { } else {
complete(); complete();
} }
if (active) {
$$$1(active).removeClass(ClassName.SHOW);
}
}; };
_proto._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) { _proto._transitionComplete = function _transitionComplete(element, active, callback) {
if (active) { if (active) {
$$$1(active).removeClass(ClassName.ACTIVE); $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
if (dropdownChild) { if (dropdownChild) {
@ -3752,12 +3774,8 @@ var Tab = function ($$$1) {
element.setAttribute('aria-selected', true); element.setAttribute('aria-selected', true);
} }
if (isTransitioning) { Util.reflow(element);
Util.reflow(element); $$$1(element).addClass(ClassName.SHOW);
$$$1(element).addClass(ClassName.SHOW);
} else {
$$$1(element).removeClass(ClassName.FADE);
}
if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) { if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0]; var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
@ -3868,7 +3886,7 @@ exports.Scrollspy = ScrollSpy;
exports.Tab = Tab; exports.Tab = Tab;
exports.Tooltip = Tooltip; exports.Tooltip = Tooltip;
return exports; Object.defineProperty(exports, '__esModule', { value: true });
}({},jQuery,Popper)); })));
//# sourceMappingURL=bootstrap.js.map //# sourceMappingURL=bootstrap.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

11
js/dist/carousel.js vendored
View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -197,7 +199,7 @@ var Carousel = function ($) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -399,10 +401,10 @@ var Carousel = function ($) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Default, $(this).data()); var _config = _extends({}, Default, $(this).data());
if (typeof config === 'object') { if (typeof config === 'object') {
$.extend(_config, config); _config = _extends({}, _config, config);
} }
var action = typeof config === 'string' ? config : _config.slide; var action = typeof config === 'string' ? config : _config.slide;
@ -440,7 +442,8 @@ var Carousel = function ($) {
return; return;
} }
var config = $.extend({}, $(target).data(), $(this).data()); var config = _extends({}, $(target).data(), $(this).data());
var slideIndex = this.getAttribute('data-slide-to'); var slideIndex = this.getAttribute('data-slide-to');
if (slideIndex) { if (slideIndex) {

File diff suppressed because one or more lines are too long

6
js/dist/collapse.js vendored
View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -239,7 +241,7 @@ var Collapse = function ($) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, Default, config); config = _extends({}, Default, config);
config.toggle = Boolean(config.toggle); // coerce string values config.toggle = Boolean(config.toggle); // coerce string values
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
@ -294,7 +296,7 @@ var Collapse = function ($) {
var $this = $(this); var $this = $(this);
var data = $this.data(DATA_KEY); var data = $this.data(DATA_KEY);
var _config = $.extend({}, Default, $this.data(), typeof config === 'object' && config); var _config = _extends({}, Default, $this.data(), typeof config === 'object' && config);
if (!data && _config.toggle && /show|hide/.test(config)) { if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false; _config.toggle = false;

File diff suppressed because one or more lines are too long

25
js/dist/dropdown.js vendored
View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -50,7 +52,8 @@ var Dropdown = function ($) {
DROPRIGHT: 'dropright', DROPRIGHT: 'dropright',
DROPLEFT: 'dropleft', DROPLEFT: 'dropleft',
MENURIGHT: 'dropdown-menu-right', MENURIGHT: 'dropdown-menu-right',
MENULEFT: 'dropdown-menu-left' MENULEFT: 'dropdown-menu-left',
POSITION_STATIC: 'position-static'
}; };
var Selector = { var Selector = {
DATA_TOGGLE: '[data-toggle="dropdown"]', DATA_TOGGLE: '[data-toggle="dropdown"]',
@ -71,11 +74,13 @@ var Dropdown = function ($) {
}; };
var Default = { var Default = {
offset: 0, offset: 0,
flip: true flip: true,
boundary: 'scrollParent'
}; };
var DefaultType = { var DefaultType = {
offset: '(number|string|function)', offset: '(number|string|function)',
flip: 'boolean' flip: 'boolean',
boundary: '(string|element)'
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
* Class Definition * Class Definition
@ -142,6 +147,13 @@ var Dropdown = function ($) {
if ($(this._menu).hasClass(ClassName.MENULEFT) || $(this._menu).hasClass(ClassName.MENURIGHT)) { if ($(this._menu).hasClass(ClassName.MENULEFT) || $(this._menu).hasClass(ClassName.MENURIGHT)) {
element = parent; element = parent;
} }
} // If boundary is not `scrollParent`, then set position to `static`
// to allow the menu to "escape" the scroll parent's boundaries
// https://github.com/twbs/bootstrap/issues/24251
if (this._config.boundary !== 'scrollParent') {
$(parent).addClass(ClassName.POSITION_STATIC);
} }
this._popper = new Popper(element, this._menu, this._getPopperConfig()); this._popper = new Popper(element, this._menu, this._getPopperConfig());
@ -197,7 +209,7 @@ var Dropdown = function ($) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, this.constructor.Default, $(this._element).data(), config); config = _extends({}, this.constructor.Default, $(this._element).data(), config);
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config; return config;
}; };
@ -244,7 +256,7 @@ var Dropdown = function ($) {
if (typeof this._config.offset === 'function') { if (typeof this._config.offset === 'function') {
offsetConf.fn = function (data) { offsetConf.fn = function (data) {
data.offsets = $.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets) || {});
return data; return data;
}; };
} else { } else {
@ -257,6 +269,9 @@ var Dropdown = function ($) {
offset: offsetConf, offset: offsetConf,
flip: { flip: {
enabled: this._config.flip enabled: this._config.flip
},
preventOverflow: {
boundariesElement: this._config.boundary
} }
} }
}; };

File diff suppressed because one or more lines are too long

8
js/dist/modal.js vendored
View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -206,7 +208,7 @@ var Modal = function ($) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, Default, config); config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
}; };
@ -490,7 +492,7 @@ var Modal = function ($) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Modal.Default, $(this).data(), typeof config === 'object' && config); var _config = _extends({}, Modal.Default, $(this).data(), typeof config === 'object' && config);
if (!data) { if (!data) {
data = new Modal(this, _config); data = new Modal(this, _config);
@ -540,7 +542,7 @@ var Modal = function ($) {
target = $(selector)[0]; target = $(selector)[0];
} }
var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data()); var config = $(target).data(DATA_KEY) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
if (this.tagName === 'A' || this.tagName === 'AREA') { if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault(); event.preventDefault();

File diff suppressed because one or more lines are too long

9
js/dist/popover.js vendored
View File

@ -4,6 +4,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* Bootstrap (v4.0.0-beta.2): popover.js * Bootstrap (v4.0.0-beta.2): popover.js
@ -23,15 +25,18 @@ var Popover = function ($) {
var JQUERY_NO_CONFLICT = $.fn[NAME]; var JQUERY_NO_CONFLICT = $.fn[NAME];
var CLASS_PREFIX = 'bs-popover'; var CLASS_PREFIX = 'bs-popover';
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
var Default = $.extend({}, Tooltip.Default, {
var Default = _extends({}, Tooltip.Default, {
placement: 'right', placement: 'right',
trigger: 'click', trigger: 'click',
content: '', content: '',
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
}); });
var DefaultType = $.extend({}, Tooltip.DefaultType, {
var DefaultType = _extends({}, Tooltip.DefaultType, {
content: '(string|element|function)' content: '(string|element|function)'
}); });
var ClassName = { var ClassName = {
FADE: 'fade', FADE: 'fade',
SHOW: 'show' SHOW: 'show'

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -142,7 +144,7 @@ var ScrollSpy = function ($) {
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, Default, config); config = _extends({}, Default, config);
if (typeof config.target !== 'string') { if (typeof config.target !== 'string') {
var id = $(config.target).attr('id'); var id = $(config.target).attr('id');

File diff suppressed because one or more lines are too long

18
js/dist/tab.js vendored
View File

@ -142,7 +142,7 @@ var Tab = function ($) {
var isTransitioning = callback && Util.supportsTransitionEnd() && active && $(active).hasClass(ClassName.FADE); var isTransitioning = callback && Util.supportsTransitionEnd() && active && $(active).hasClass(ClassName.FADE);
var complete = function complete() { var complete = function complete() {
return _this2._transitionComplete(element, active, isTransitioning, callback); return _this2._transitionComplete(element, active, callback);
}; };
if (active && isTransitioning) { if (active && isTransitioning) {
@ -150,15 +150,11 @@ var Tab = function ($) {
} else { } else {
complete(); complete();
} }
if (active) {
$(active).removeClass(ClassName.SHOW);
}
}; };
_proto._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) { _proto._transitionComplete = function _transitionComplete(element, active, callback) {
if (active) { if (active) {
$(active).removeClass(ClassName.ACTIVE); $(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
if (dropdownChild) { if (dropdownChild) {
@ -176,12 +172,8 @@ var Tab = function ($) {
element.setAttribute('aria-selected', true); element.setAttribute('aria-selected', true);
} }
if (isTransitioning) { Util.reflow(element);
Util.reflow(element); $(element).addClass(ClassName.SHOW);
$(element).addClass(ClassName.SHOW);
} else {
$(element).removeClass(ClassName.FADE);
}
if (element.parentNode && $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) { if (element.parentNode && $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
var dropdownElement = $(element).closest(Selector.DROPDOWN)[0]; var dropdownElement = $(element).closest(Selector.DROPDOWN)[0];

2
js/dist/tab.js.map vendored

File diff suppressed because one or more lines are too long

15
js/dist/tooltip.js vendored
View File

@ -1,3 +1,5 @@
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@ -33,7 +35,8 @@ var Tooltip = function ($) {
placement: '(string|function)', placement: '(string|function)',
offset: '(number|string)', offset: '(number|string)',
container: '(string|element|boolean)', container: '(string|element|boolean)',
fallbackPlacement: '(string|array)' fallbackPlacement: '(string|array)',
boundary: '(string|element)'
}; };
var AttachmentMap = { var AttachmentMap = {
AUTO: 'auto', AUTO: 'auto',
@ -53,7 +56,8 @@ var Tooltip = function ($) {
placement: 'top', placement: 'top',
offset: 0, offset: 0,
container: false, container: false,
fallbackPlacement: 'flip' fallbackPlacement: 'flip',
boundary: 'scrollParent'
}; };
var HoverState = { var HoverState = {
SHOW: 'show', SHOW: 'show',
@ -243,6 +247,9 @@ var Tooltip = function ($) {
}, },
arrow: { arrow: {
element: Selector.ARROW element: Selector.ARROW
},
preventOverflow: {
boundariesElement: this.config.boundary
} }
}, },
onCreate: function onCreate(data) { onCreate: function onCreate(data) {
@ -420,7 +427,7 @@ var Tooltip = function ($) {
}); });
if (this.config.selector) { if (this.config.selector) {
this.config = $.extend({}, this.config, { this.config = _extends({}, this.config, {
trigger: 'manual', trigger: 'manual',
selector: '' selector: ''
}); });
@ -514,7 +521,7 @@ var Tooltip = function ($) {
}; };
_proto._getConfig = function _getConfig(config) { _proto._getConfig = function _getConfig(config) {
config = $.extend({}, this.constructor.Default, $(this.element).data(), config); config = _extends({}, this.constructor.Default, $(this.element).data(), config);
if (typeof config.delay === 'number') { if (typeof config.delay === 'number') {
config.delay = { config.delay = {

File diff suppressed because one or more lines are too long

21
js/dist/util.js vendored
View File

@ -11,12 +11,7 @@ var Util = function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var transition = false; var transition = false;
var MAX_UID = 1000000; var MAX_UID = 1000000; // shoutout AngusCroll (https://goo.gl/pxwQGp)
var TransitionEndEvent = {
WebkitTransition: 'webkitTransitionEnd',
transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp)
};
function toType(obj) { function toType(obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
@ -41,17 +36,9 @@ var Util = function ($) {
return false; return false;
} }
var el = document.createElement('bootstrap'); return {
end: 'transitionend'
for (var name in TransitionEndEvent) { };
if (typeof el.style[name] !== 'undefined') {
return {
end: TransitionEndEvent[name]
};
}
}
return false;
} }
function transitionEndEmulator(duration) { function transitionEndEmulator(duration) {

2
js/dist/util.js.map vendored

File diff suppressed because one or more lines are too long