mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Dist (#29638)
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
@@ -1121,6 +1121,10 @@
|
||||
background-color: #343a40 !important;
|
||||
}
|
||||
|
||||
.bg-body {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+30
-53
@@ -1828,9 +1828,9 @@ main {
|
||||
|
||||
.form-check-input[type="checkbox"]:indeterminate {
|
||||
background-color: #0d6efd;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 8h6'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 8h6'/%3e%3c/svg%3e");
|
||||
background-size: 1em;
|
||||
border-color: #0d6efd;
|
||||
}
|
||||
@@ -1860,7 +1860,7 @@ main {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0, 0, 0, 0.25)'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: left center;
|
||||
background-size: calc(1.25em - 2px);
|
||||
background-size: contain;
|
||||
border-radius: 2em;
|
||||
}
|
||||
|
||||
@@ -1869,8 +1869,8 @@ main {
|
||||
}
|
||||
|
||||
.form-switch .form-check-input:checked {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
||||
background-position: right center;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
.form-check-inline {
|
||||
@@ -1956,7 +1956,7 @@ main {
|
||||
|
||||
.form-range {
|
||||
width: 100%;
|
||||
height: calc(1rem + 0.4rem);
|
||||
height: 1.4rem;
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
-webkit-appearance: none;
|
||||
@@ -1991,6 +1991,7 @@ main {
|
||||
background-color: #0d6efd;
|
||||
border: 0;
|
||||
border-radius: 1rem;
|
||||
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
@@ -1998,6 +1999,7 @@ main {
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.form-range::-webkit-slider-thumb {
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -2022,6 +2024,7 @@ main {
|
||||
background-color: #0d6efd;
|
||||
border: 0;
|
||||
border-radius: 1rem;
|
||||
-moz-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
@@ -2029,6 +2032,7 @@ main {
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.form-range::-moz-range-thumb {
|
||||
-moz-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -2056,12 +2060,14 @@ main {
|
||||
background-color: #0d6efd;
|
||||
border: 0;
|
||||
border-radius: 1rem;
|
||||
-ms-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.form-range::-ms-thumb {
|
||||
-ms-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -2411,7 +2417,7 @@ main {
|
||||
|
||||
.was-validated .form-select:valid, .form-select.is-valid {
|
||||
border-color: #28a745;
|
||||
padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
|
||||
padding-right: calc(0.75em + 2.3125rem);
|
||||
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||
}
|
||||
|
||||
@@ -2499,7 +2505,7 @@ main {
|
||||
|
||||
.was-validated .form-select:invalid, .form-select.is-invalid {
|
||||
border-color: #dc3545;
|
||||
padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
|
||||
padding-right: calc(0.75em + 2.3125rem);
|
||||
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||
}
|
||||
|
||||
@@ -3663,7 +3669,8 @@ fieldset:disabled a.btn {
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.5rem 1rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.navbar .container,
|
||||
@@ -3678,7 +3685,6 @@ fieldset:disabled a.btn {
|
||||
display: inline-block;
|
||||
padding-top: 0.3125rem;
|
||||
padding-bottom: 0.3125rem;
|
||||
margin-right: 1rem;
|
||||
font-size: 1.25rem;
|
||||
line-height: inherit;
|
||||
white-space: nowrap;
|
||||
@@ -3740,14 +3746,6 @@ fieldset:disabled a.btn {
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.navbar-expand-sm > .container,
|
||||
.navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.navbar-expand-sm {
|
||||
flex-flow: row nowrap;
|
||||
@@ -3776,14 +3774,6 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.navbar-expand-md > .container,
|
||||
.navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.navbar-expand-md {
|
||||
flex-flow: row nowrap;
|
||||
@@ -3812,14 +3802,6 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.navbar-expand-lg > .container,
|
||||
.navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.navbar-expand-lg {
|
||||
flex-flow: row nowrap;
|
||||
@@ -3848,14 +3830,6 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1199.98px) {
|
||||
.navbar-expand-xl > .container,
|
||||
.navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.navbar-expand-xl {
|
||||
flex-flow: row nowrap;
|
||||
@@ -3889,12 +3863,6 @@ fieldset:disabled a.btn {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.navbar-expand > .container,
|
||||
.navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.navbar-expand .navbar-nav {
|
||||
flex-direction: row;
|
||||
}
|
||||
@@ -4494,6 +4462,7 @@ fieldset:disabled a.btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
@@ -4979,6 +4948,10 @@ a.close.disabled {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.modal.modal-static .modal-dialog {
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
.modal-dialog-scrollable {
|
||||
display: flex;
|
||||
max-height: calc(100% - 1rem);
|
||||
@@ -5300,7 +5273,7 @@ a.close.disabled {
|
||||
}
|
||||
|
||||
.bs-popover-top > .popover-arrow, .bs-popover-auto[x-placement^="top"] > .popover-arrow {
|
||||
bottom: calc((0.5rem + 1px) * -1);
|
||||
bottom: calc(-0.5rem - 1px);
|
||||
}
|
||||
|
||||
.bs-popover-top > .popover-arrow::before, .bs-popover-auto[x-placement^="top"] > .popover-arrow::before {
|
||||
@@ -5320,7 +5293,7 @@ a.close.disabled {
|
||||
}
|
||||
|
||||
.bs-popover-right > .popover-arrow, .bs-popover-auto[x-placement^="right"] > .popover-arrow {
|
||||
left: calc((0.5rem + 1px) * -1);
|
||||
left: calc(-0.5rem - 1px);
|
||||
width: 0.5rem;
|
||||
height: 1rem;
|
||||
margin: 0.3rem 0;
|
||||
@@ -5343,7 +5316,7 @@ a.close.disabled {
|
||||
}
|
||||
|
||||
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[x-placement^="bottom"] > .popover-arrow {
|
||||
top: calc((0.5rem + 1px) * -1);
|
||||
top: calc(-0.5rem - 1px);
|
||||
}
|
||||
|
||||
.bs-popover-bottom > .popover-arrow::before, .bs-popover-auto[x-placement^="bottom"] > .popover-arrow::before {
|
||||
@@ -5374,7 +5347,7 @@ a.close.disabled {
|
||||
}
|
||||
|
||||
.bs-popover-left > .popover-arrow, .bs-popover-auto[x-placement^="left"] > .popover-arrow {
|
||||
right: calc((0.5rem + 1px) * -1);
|
||||
right: calc(-0.5rem - 1px);
|
||||
width: 0.5rem;
|
||||
height: 1rem;
|
||||
margin: 0.3rem 0;
|
||||
@@ -5591,10 +5564,10 @@ a.close.disabled {
|
||||
.carousel-caption {
|
||||
position: absolute;
|
||||
right: 15%;
|
||||
bottom: 20px;
|
||||
bottom: 1.25rem;
|
||||
left: 15%;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 1.25rem;
|
||||
padding-bottom: 1.25rem;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -6976,6 +6949,10 @@ a.close.disabled {
|
||||
background-color: #343a40 !important;
|
||||
}
|
||||
|
||||
.bg-body {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+68
-36
@@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.bootstrap = factory());
|
||||
}(this, function () { 'use strict';
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
function _defineProperties(target, props) {
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
@@ -211,7 +211,9 @@
|
||||
}
|
||||
|
||||
if (element.style && element.parentNode && element.parentNode.style) {
|
||||
return element.style.display !== 'none' && element.parentNode.style.display !== 'none' && element.style.visibility !== 'hidden';
|
||||
var elementStyle = getComputedStyle(element);
|
||||
var parentNodeStyle = getComputedStyle(element.parentNode);
|
||||
return elementStyle.display !== 'none' && parentNodeStyle.display !== 'none' && elementStyle.visibility !== 'hidden';
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -1211,7 +1213,7 @@
|
||||
|
||||
function normalizeDataKey(key) {
|
||||
return key.replace(/[A-Z]/g, function (chr) {
|
||||
return chr.toLowerCase();
|
||||
return "-" + chr.toLowerCase();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1607,8 +1609,6 @@
|
||||
event.preventDefault();
|
||||
this.next();
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2297,7 +2297,7 @@
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.15.0
|
||||
* @version 1.16.0
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
@@ -2319,16 +2319,17 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
||||
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
|
||||
|
||||
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
|
||||
var timeoutDuration = 0;
|
||||
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
|
||||
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
|
||||
timeoutDuration = 1;
|
||||
break;
|
||||
var timeoutDuration = function () {
|
||||
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
|
||||
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
|
||||
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}();
|
||||
|
||||
function microtaskDebounce(fn) {
|
||||
var called = false;
|
||||
@@ -2448,6 +2449,17 @@
|
||||
return getScrollParent(getParentNode(element));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the reference node of the reference object, or the reference object itself.
|
||||
* @method
|
||||
* @memberof Popper.Utils
|
||||
* @param {Element|Object} reference - the reference element (the popper will be relative to this)
|
||||
* @returns {Element} parent
|
||||
*/
|
||||
function getReferenceNode(reference) {
|
||||
return reference && reference.referenceNode ? reference.referenceNode : reference;
|
||||
}
|
||||
|
||||
var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
|
||||
var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
|
||||
|
||||
@@ -2756,8 +2768,8 @@
|
||||
|
||||
// subtract scrollbar size from sizes
|
||||
var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
|
||||
var width = sizes.width || element.clientWidth || result.right - result.left;
|
||||
var height = sizes.height || element.clientHeight || result.bottom - result.top;
|
||||
var width = sizes.width || element.clientWidth || result.width;
|
||||
var height = sizes.height || element.clientHeight || result.height;
|
||||
|
||||
var horizScrollbar = element.offsetWidth - width;
|
||||
var vertScrollbar = element.offsetHeight - height;
|
||||
@@ -2909,7 +2921,7 @@
|
||||
// NOTE: 1 DOM access here
|
||||
|
||||
var boundaries = { top: 0, left: 0 };
|
||||
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
||||
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
||||
|
||||
// Handle viewport case
|
||||
if (boundariesElement === 'viewport') {
|
||||
@@ -3037,7 +3049,7 @@
|
||||
function getReferenceOffsets(state, popper, reference) {
|
||||
var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
||||
|
||||
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
||||
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
||||
return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
|
||||
}
|
||||
|
||||
@@ -3299,7 +3311,7 @@
|
||||
|
||||
this.disableEventListeners();
|
||||
|
||||
// remove the popper if user explicity asked for the deletion on destroy
|
||||
// remove the popper if user explicitly asked for the deletion on destroy
|
||||
// do not use `remove` because IE11 doesn't support it
|
||||
if (this.options.removeOnDestroy) {
|
||||
this.popper.parentNode.removeChild(this.popper);
|
||||
@@ -5327,7 +5339,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent));
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent)).filter(isVisible);
|
||||
|
||||
if (!items.length) {
|
||||
return;
|
||||
@@ -5442,6 +5454,7 @@
|
||||
};
|
||||
var Event$6 = {
|
||||
HIDE: "hide" + EVENT_KEY$5,
|
||||
HIDE_PREVENTED: "hidePrevented" + EVENT_KEY$5,
|
||||
HIDDEN: "hidden" + EVENT_KEY$5,
|
||||
SHOW: "show" + EVENT_KEY$5,
|
||||
SHOWN: "shown" + EVENT_KEY$5,
|
||||
@@ -5459,7 +5472,8 @@
|
||||
BACKDROP: 'modal-backdrop',
|
||||
OPEN: 'modal-open',
|
||||
FADE: 'fade',
|
||||
SHOW: 'show'
|
||||
SHOW: 'show',
|
||||
STATIC: 'modal-static'
|
||||
};
|
||||
var Selector$5 = {
|
||||
DIALOG: '.modal-dialog',
|
||||
@@ -5699,9 +5713,7 @@
|
||||
if (this._isShown && this._config.keyboard) {
|
||||
EventHandler.on(this._element, Event$6.KEYDOWN_DISMISS, function (event) {
|
||||
if (event.which === ESCAPE_KEYCODE$1) {
|
||||
event.preventDefault();
|
||||
|
||||
_this5.hide();
|
||||
_this5._triggerBackdropTransition();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -5773,11 +5785,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (_this8._config.backdrop === 'static') {
|
||||
_this8._element.focus();
|
||||
} else {
|
||||
_this8.hide();
|
||||
}
|
||||
_this8._triggerBackdropTransition();
|
||||
});
|
||||
|
||||
if (animate) {
|
||||
@@ -5814,6 +5822,30 @@
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this9 = this;
|
||||
|
||||
if (this._config.backdrop === 'static') {
|
||||
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE_PREVENTED);
|
||||
|
||||
if (hideEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._element.classList.add(ClassName$5.STATIC);
|
||||
|
||||
var modalTransitionDuration = getTransitionDurationFromElement(this._element);
|
||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
||||
_this9._element.classList.remove(ClassName$5.STATIC);
|
||||
});
|
||||
emulateTransitionEnd(this._element, modalTransitionDuration);
|
||||
|
||||
this._element.focus();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
} // ----------------------------------------------------------------------
|
||||
// the following methods are used to handle overflowing modals
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -5843,7 +5875,7 @@
|
||||
};
|
||||
|
||||
_proto._setScrollbar = function _setScrollbar() {
|
||||
var _this9 = this;
|
||||
var _this10 = this;
|
||||
|
||||
if (this._isBodyOverflowing) {
|
||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
||||
@@ -5853,14 +5885,14 @@
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px";
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px";
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
makeArray(SelectorEngine.find(Selector$5.STICKY_CONTENT)).forEach(function (element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px";
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px";
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
@@ -5961,7 +5993,7 @@
|
||||
|
||||
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
var _this11 = this;
|
||||
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
@@ -5976,8 +6008,8 @@
|
||||
}
|
||||
|
||||
EventHandler.one(target, Event$6.HIDDEN, function () {
|
||||
if (isVisible(_this10)) {
|
||||
_this10.focus();
|
||||
if (isVisible(_this11)) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -7881,5 +7913,5 @@
|
||||
|
||||
return index_umd;
|
||||
|
||||
}));
|
||||
})));
|
||||
//# sourceMappingURL=bootstrap.bundle.js.map
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+40
-20
@@ -207,7 +207,9 @@ var isVisible = function isVisible(element) {
|
||||
}
|
||||
|
||||
if (element.style && element.parentNode && element.parentNode.style) {
|
||||
return element.style.display !== 'none' && element.parentNode.style.display !== 'none' && element.style.visibility !== 'hidden';
|
||||
var elementStyle = getComputedStyle(element);
|
||||
var parentNodeStyle = getComputedStyle(element.parentNode);
|
||||
return elementStyle.display !== 'none' && parentNodeStyle.display !== 'none' && elementStyle.visibility !== 'hidden';
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -1207,7 +1209,7 @@ function normalizeData(val) {
|
||||
|
||||
function normalizeDataKey(key) {
|
||||
return key.replace(/[A-Z]/g, function (chr) {
|
||||
return chr.toLowerCase();
|
||||
return "-" + chr.toLowerCase();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1603,8 +1605,6 @@ function () {
|
||||
event.preventDefault();
|
||||
this.next();
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2721,7 +2721,7 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent));
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent)).filter(isVisible);
|
||||
|
||||
if (!items.length) {
|
||||
return;
|
||||
@@ -2836,6 +2836,7 @@ var DefaultType$3 = {
|
||||
};
|
||||
var Event$6 = {
|
||||
HIDE: "hide" + EVENT_KEY$5,
|
||||
HIDE_PREVENTED: "hidePrevented" + EVENT_KEY$5,
|
||||
HIDDEN: "hidden" + EVENT_KEY$5,
|
||||
SHOW: "show" + EVENT_KEY$5,
|
||||
SHOWN: "shown" + EVENT_KEY$5,
|
||||
@@ -2853,7 +2854,8 @@ var ClassName$5 = {
|
||||
BACKDROP: 'modal-backdrop',
|
||||
OPEN: 'modal-open',
|
||||
FADE: 'fade',
|
||||
SHOW: 'show'
|
||||
SHOW: 'show',
|
||||
STATIC: 'modal-static'
|
||||
};
|
||||
var Selector$5 = {
|
||||
DIALOG: '.modal-dialog',
|
||||
@@ -3093,9 +3095,7 @@ function () {
|
||||
if (this._isShown && this._config.keyboard) {
|
||||
EventHandler.on(this._element, Event$6.KEYDOWN_DISMISS, function (event) {
|
||||
if (event.which === ESCAPE_KEYCODE$1) {
|
||||
event.preventDefault();
|
||||
|
||||
_this5.hide();
|
||||
_this5._triggerBackdropTransition();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -3167,11 +3167,7 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_this8._config.backdrop === 'static') {
|
||||
_this8._element.focus();
|
||||
} else {
|
||||
_this8.hide();
|
||||
}
|
||||
_this8._triggerBackdropTransition();
|
||||
});
|
||||
|
||||
if (animate) {
|
||||
@@ -3208,6 +3204,30 @@ function () {
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this9 = this;
|
||||
|
||||
if (this._config.backdrop === 'static') {
|
||||
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE_PREVENTED);
|
||||
|
||||
if (hideEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._element.classList.add(ClassName$5.STATIC);
|
||||
|
||||
var modalTransitionDuration = getTransitionDurationFromElement(this._element);
|
||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
||||
_this9._element.classList.remove(ClassName$5.STATIC);
|
||||
});
|
||||
emulateTransitionEnd(this._element, modalTransitionDuration);
|
||||
|
||||
this._element.focus();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
} // ----------------------------------------------------------------------
|
||||
// the following methods are used to handle overflowing modals
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -3237,7 +3257,7 @@ function () {
|
||||
};
|
||||
|
||||
_proto._setScrollbar = function _setScrollbar() {
|
||||
var _this9 = this;
|
||||
var _this10 = this;
|
||||
|
||||
if (this._isBodyOverflowing) {
|
||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
||||
@@ -3247,14 +3267,14 @@ function () {
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px";
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px";
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
makeArray(SelectorEngine.find(Selector$5.STICKY_CONTENT)).forEach(function (element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px";
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px";
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
@@ -3355,7 +3375,7 @@ function () {
|
||||
|
||||
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
var _this11 = this;
|
||||
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
@@ -3370,8 +3390,8 @@ EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, functi
|
||||
}
|
||||
|
||||
EventHandler.one(target, Event$6.HIDDEN, function () {
|
||||
if (isVisible(_this10)) {
|
||||
_this10.focus();
|
||||
if (isVisible(_this11)) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+42
-22
@@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('popper.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['popper.js'], factory) :
|
||||
(global = global || self, global.bootstrap = factory(global.Popper));
|
||||
}(this, function (Popper) { 'use strict';
|
||||
}(this, (function (Popper) { 'use strict';
|
||||
|
||||
Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
|
||||
|
||||
@@ -213,7 +213,9 @@
|
||||
}
|
||||
|
||||
if (element.style && element.parentNode && element.parentNode.style) {
|
||||
return element.style.display !== 'none' && element.parentNode.style.display !== 'none' && element.style.visibility !== 'hidden';
|
||||
var elementStyle = getComputedStyle(element);
|
||||
var parentNodeStyle = getComputedStyle(element.parentNode);
|
||||
return elementStyle.display !== 'none' && parentNodeStyle.display !== 'none' && elementStyle.visibility !== 'hidden';
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -1213,7 +1215,7 @@
|
||||
|
||||
function normalizeDataKey(key) {
|
||||
return key.replace(/[A-Z]/g, function (chr) {
|
||||
return chr.toLowerCase();
|
||||
return "-" + chr.toLowerCase();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1609,8 +1611,6 @@
|
||||
event.preventDefault();
|
||||
this.next();
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2727,7 +2727,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent));
|
||||
var items = makeArray(SelectorEngine.find(Selector$4.VISIBLE_ITEMS, parent)).filter(isVisible);
|
||||
|
||||
if (!items.length) {
|
||||
return;
|
||||
@@ -2842,6 +2842,7 @@
|
||||
};
|
||||
var Event$6 = {
|
||||
HIDE: "hide" + EVENT_KEY$5,
|
||||
HIDE_PREVENTED: "hidePrevented" + EVENT_KEY$5,
|
||||
HIDDEN: "hidden" + EVENT_KEY$5,
|
||||
SHOW: "show" + EVENT_KEY$5,
|
||||
SHOWN: "shown" + EVENT_KEY$5,
|
||||
@@ -2859,7 +2860,8 @@
|
||||
BACKDROP: 'modal-backdrop',
|
||||
OPEN: 'modal-open',
|
||||
FADE: 'fade',
|
||||
SHOW: 'show'
|
||||
SHOW: 'show',
|
||||
STATIC: 'modal-static'
|
||||
};
|
||||
var Selector$5 = {
|
||||
DIALOG: '.modal-dialog',
|
||||
@@ -3099,9 +3101,7 @@
|
||||
if (this._isShown && this._config.keyboard) {
|
||||
EventHandler.on(this._element, Event$6.KEYDOWN_DISMISS, function (event) {
|
||||
if (event.which === ESCAPE_KEYCODE$1) {
|
||||
event.preventDefault();
|
||||
|
||||
_this5.hide();
|
||||
_this5._triggerBackdropTransition();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -3173,11 +3173,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (_this8._config.backdrop === 'static') {
|
||||
_this8._element.focus();
|
||||
} else {
|
||||
_this8.hide();
|
||||
}
|
||||
_this8._triggerBackdropTransition();
|
||||
});
|
||||
|
||||
if (animate) {
|
||||
@@ -3214,6 +3210,30 @@
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this9 = this;
|
||||
|
||||
if (this._config.backdrop === 'static') {
|
||||
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE_PREVENTED);
|
||||
|
||||
if (hideEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._element.classList.add(ClassName$5.STATIC);
|
||||
|
||||
var modalTransitionDuration = getTransitionDurationFromElement(this._element);
|
||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
||||
_this9._element.classList.remove(ClassName$5.STATIC);
|
||||
});
|
||||
emulateTransitionEnd(this._element, modalTransitionDuration);
|
||||
|
||||
this._element.focus();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
} // ----------------------------------------------------------------------
|
||||
// the following methods are used to handle overflowing modals
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -3243,7 +3263,7 @@
|
||||
};
|
||||
|
||||
_proto._setScrollbar = function _setScrollbar() {
|
||||
var _this9 = this;
|
||||
var _this10 = this;
|
||||
|
||||
if (this._isBodyOverflowing) {
|
||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
||||
@@ -3253,14 +3273,14 @@
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px";
|
||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px";
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
makeArray(SelectorEngine.find(Selector$5.STICKY_CONTENT)).forEach(function (element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px";
|
||||
element.style.marginRight = parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px";
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
@@ -3361,7 +3381,7 @@
|
||||
|
||||
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
var _this11 = this;
|
||||
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
@@ -3376,8 +3396,8 @@
|
||||
}
|
||||
|
||||
EventHandler.one(target, Event$6.HIDDEN, function () {
|
||||
if (isVisible(_this10)) {
|
||||
_this10.focus();
|
||||
if (isVisible(_this11)) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -5281,5 +5301,5 @@
|
||||
|
||||
return index_umd;
|
||||
|
||||
}));
|
||||
})));
|
||||
//# sourceMappingURL=bootstrap.js.map
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user