mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
grunt
This commit is contained in:
parent
432fe74c31
commit
49be9bc63a
31
dist/css/bootstrap-flex.css
vendored
31
dist/css/bootstrap-flex.css
vendored
@ -6115,7 +6115,36 @@ button.close {
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (transform-3d), (-webkit-transform-3d) {
|
@media (-webkit-transform-3d) {
|
||||||
|
.carousel-inner > .carousel-item {
|
||||||
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
-o-transition: -o-transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-perspective: 1000px;
|
||||||
|
perspective: 1000px;
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next, .carousel-inner > .carousel-item.active.right {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.prev, .carousel-inner > .carousel-item.active.left {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(-100%, 0, 0);
|
||||||
|
transform: translate3d(-100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next.left, .carousel-inner > .carousel-item.prev.right, .carousel-inner > .carousel-item.active {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
|
||||||
.carousel-inner > .carousel-item {
|
.carousel-inner > .carousel-item {
|
||||||
-webkit-transition: -webkit-transform .6s ease-in-out;
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
transition: -webkit-transform .6s ease-in-out;
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
2
dist/css/bootstrap-flex.css.map
vendored
2
dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-flex.min.css
vendored
2
dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-flex.min.css.map
vendored
2
dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -5831,7 +5831,7 @@ button.close {
|
|||||||
.carousel-inner > .carousel-item {
|
.carousel-inner > .carousel-item {
|
||||||
-webkit-transition: -webkit-transform .6s ease-in-out;
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
transition: -webkit-transform .6s ease-in-out;
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
-o-transition: transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
-o-transition: -o-transform .6s ease-in-out;
|
||||||
transition: transform .6s ease-in-out;
|
transition: transform .6s ease-in-out;
|
||||||
transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
||||||
-webkit-backface-visibility: hidden;
|
-webkit-backface-visibility: hidden;
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -85,7 +85,9 @@ var Util = function ($) {
|
|||||||
|
|
||||||
for (var name in TransitionEndEvent) {
|
for (var name in TransitionEndEvent) {
|
||||||
if (el.style[name] !== undefined) {
|
if (el.style[name] !== undefined) {
|
||||||
return { end: TransitionEndEvent[name] };
|
return {
|
||||||
|
end: TransitionEndEvent[name]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,9 +134,8 @@ var Util = function ($) {
|
|||||||
|
|
||||||
getUID: function getUID(prefix) {
|
getUID: function getUID(prefix) {
|
||||||
do {
|
do {
|
||||||
/* eslint-disable no-bitwise */
|
// eslint-disable-next-line no-bitwise
|
||||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||||
/* eslint-enable no-bitwise */
|
|
||||||
} while (document.getElementById(prefix));
|
} while (document.getElementById(prefix));
|
||||||
return prefix;
|
return prefix;
|
||||||
},
|
},
|
||||||
@ -162,13 +163,7 @@ var Util = function ($) {
|
|||||||
if (configTypes.hasOwnProperty(property)) {
|
if (configTypes.hasOwnProperty(property)) {
|
||||||
var expectedTypes = configTypes[property];
|
var expectedTypes = configTypes[property];
|
||||||
var value = config[property];
|
var value = config[property];
|
||||||
var valueType = void 0;
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (value && isElement(value)) {
|
|
||||||
valueType = 'element';
|
|
||||||
} else {
|
|
||||||
valueType = toType(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
||||||
@ -1427,7 +1422,9 @@ var Dropdown = function ($) {
|
|||||||
$(dropdown).on('click', Dropdown._clearMenus);
|
$(dropdown).on('click', Dropdown._clearMenus);
|
||||||
}
|
}
|
||||||
|
|
||||||
var relatedTarget = { relatedTarget: this };
|
var relatedTarget = {
|
||||||
|
relatedTarget: this
|
||||||
|
};
|
||||||
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
||||||
|
|
||||||
$(parent).trigger(showEvent);
|
$(parent).trigger(showEvent);
|
||||||
@ -1437,7 +1434,7 @@ var Dropdown = function ($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.focus();
|
this.focus();
|
||||||
this.setAttribute('aria-expanded', 'true');
|
this.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
$(parent).toggleClass(ClassName.ACTIVE);
|
$(parent).toggleClass(ClassName.ACTIVE);
|
||||||
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
||||||
@ -1464,7 +1461,8 @@ var Dropdown = function ($) {
|
|||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
$(this).data(DATA_KEY, data = new Dropdown(this));
|
data = new Dropdown(this);
|
||||||
|
$(this).data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
@ -1490,7 +1488,9 @@ var Dropdown = function ($) {
|
|||||||
|
|
||||||
for (var i = 0; i < toggles.length; i++) {
|
for (var i = 0; i < toggles.length; i++) {
|
||||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||||
var relatedTarget = { relatedTarget: toggles[i] };
|
var relatedTarget = {
|
||||||
|
relatedTarget: toggles[i]
|
||||||
|
};
|
||||||
|
|
||||||
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
||||||
continue;
|
continue;
|
||||||
@ -1898,7 +1898,7 @@ var Modal = function ($) {
|
|||||||
var _this15 = this;
|
var _this15 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', 'true');
|
this._element.setAttribute('aria-hidden', true);
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this15._resetAdjustments();
|
_this15._resetAdjustments();
|
||||||
@ -2374,7 +2374,7 @@ var ScrollSpy = function ($) {
|
|||||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config || null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new ScrollSpy(this, _config);
|
data = new ScrollSpy(this, _config);
|
||||||
@ -2597,7 +2597,7 @@ var Tab = function ($) {
|
|||||||
if (active) {
|
if (active) {
|
||||||
$(active).removeClass(ClassName.ACTIVE);
|
$(active).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
var dropdownChild = $(active).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
||||||
|
|
||||||
if (dropdownChild) {
|
if (dropdownChild) {
|
||||||
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
||||||
@ -2639,7 +2639,7 @@ var Tab = function ($) {
|
|||||||
var data = $this.data(DATA_KEY);
|
var data = $this.data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = data = new Tab(this);
|
data = new Tab(this);
|
||||||
$this.data(DATA_KEY, data);
|
$this.data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3209,7 +3209,7 @@ var Tooltip = function ($) {
|
|||||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data && /dispose|hide/.test(config)) {
|
if (!data && /dispose|hide/.test(config)) {
|
||||||
return;
|
return;
|
||||||
|
4
dist/js/bootstrap.min.js
vendored
4
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
31
docs/dist/css/bootstrap-flex.css
vendored
31
docs/dist/css/bootstrap-flex.css
vendored
@ -6115,7 +6115,36 @@ button.close {
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (transform-3d), (-webkit-transform-3d) {
|
@media (-webkit-transform-3d) {
|
||||||
|
.carousel-inner > .carousel-item {
|
||||||
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
-o-transition: -o-transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-perspective: 1000px;
|
||||||
|
perspective: 1000px;
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next, .carousel-inner > .carousel-item.active.right {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.prev, .carousel-inner > .carousel-item.active.left {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(-100%, 0, 0);
|
||||||
|
transform: translate3d(-100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next.left, .carousel-inner > .carousel-item.prev.right, .carousel-inner > .carousel-item.active {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
|
||||||
.carousel-inner > .carousel-item {
|
.carousel-inner > .carousel-item {
|
||||||
-webkit-transition: -webkit-transform .6s ease-in-out;
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
transition: -webkit-transform .6s ease-in-out;
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
2
docs/dist/css/bootstrap-flex.css.map
vendored
2
docs/dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.min.css
vendored
2
docs/dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -5827,7 +5827,36 @@ button.close {
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (transform-3d), (-webkit-transform-3d) {
|
@media (-webkit-transform-3d) {
|
||||||
|
.carousel-inner > .carousel-item {
|
||||||
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
-o-transition: -o-transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out, -o-transform .6s ease-in-out;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-perspective: 1000px;
|
||||||
|
perspective: 1000px;
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next, .carousel-inner > .carousel-item.active.right {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.prev, .carousel-inner > .carousel-item.active.left {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(-100%, 0, 0);
|
||||||
|
transform: translate3d(-100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .carousel-item.next.left, .carousel-inner > .carousel-item.prev.right, .carousel-inner > .carousel-item.active {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
|
||||||
.carousel-inner > .carousel-item {
|
.carousel-inner > .carousel-item {
|
||||||
-webkit-transition: -webkit-transform .6s ease-in-out;
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
transition: -webkit-transform .6s ease-in-out;
|
transition: -webkit-transform .6s ease-in-out;
|
||||||
|
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css.map
vendored
2
docs/dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -85,7 +85,9 @@ var Util = function ($) {
|
|||||||
|
|
||||||
for (var name in TransitionEndEvent) {
|
for (var name in TransitionEndEvent) {
|
||||||
if (el.style[name] !== undefined) {
|
if (el.style[name] !== undefined) {
|
||||||
return { end: TransitionEndEvent[name] };
|
return {
|
||||||
|
end: TransitionEndEvent[name]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,9 +134,8 @@ var Util = function ($) {
|
|||||||
|
|
||||||
getUID: function getUID(prefix) {
|
getUID: function getUID(prefix) {
|
||||||
do {
|
do {
|
||||||
/* eslint-disable no-bitwise */
|
// eslint-disable-next-line no-bitwise
|
||||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||||
/* eslint-enable no-bitwise */
|
|
||||||
} while (document.getElementById(prefix));
|
} while (document.getElementById(prefix));
|
||||||
return prefix;
|
return prefix;
|
||||||
},
|
},
|
||||||
@ -162,13 +163,7 @@ var Util = function ($) {
|
|||||||
if (configTypes.hasOwnProperty(property)) {
|
if (configTypes.hasOwnProperty(property)) {
|
||||||
var expectedTypes = configTypes[property];
|
var expectedTypes = configTypes[property];
|
||||||
var value = config[property];
|
var value = config[property];
|
||||||
var valueType = void 0;
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (value && isElement(value)) {
|
|
||||||
valueType = 'element';
|
|
||||||
} else {
|
|
||||||
valueType = toType(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
||||||
@ -1427,7 +1422,9 @@ var Dropdown = function ($) {
|
|||||||
$(dropdown).on('click', Dropdown._clearMenus);
|
$(dropdown).on('click', Dropdown._clearMenus);
|
||||||
}
|
}
|
||||||
|
|
||||||
var relatedTarget = { relatedTarget: this };
|
var relatedTarget = {
|
||||||
|
relatedTarget: this
|
||||||
|
};
|
||||||
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
||||||
|
|
||||||
$(parent).trigger(showEvent);
|
$(parent).trigger(showEvent);
|
||||||
@ -1437,7 +1434,7 @@ var Dropdown = function ($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.focus();
|
this.focus();
|
||||||
this.setAttribute('aria-expanded', 'true');
|
this.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
$(parent).toggleClass(ClassName.ACTIVE);
|
$(parent).toggleClass(ClassName.ACTIVE);
|
||||||
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
||||||
@ -1464,7 +1461,8 @@ var Dropdown = function ($) {
|
|||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
$(this).data(DATA_KEY, data = new Dropdown(this));
|
data = new Dropdown(this);
|
||||||
|
$(this).data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
@ -1490,7 +1488,9 @@ var Dropdown = function ($) {
|
|||||||
|
|
||||||
for (var i = 0; i < toggles.length; i++) {
|
for (var i = 0; i < toggles.length; i++) {
|
||||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||||
var relatedTarget = { relatedTarget: toggles[i] };
|
var relatedTarget = {
|
||||||
|
relatedTarget: toggles[i]
|
||||||
|
};
|
||||||
|
|
||||||
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
||||||
continue;
|
continue;
|
||||||
@ -1898,7 +1898,7 @@ var Modal = function ($) {
|
|||||||
var _this15 = this;
|
var _this15 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', 'true');
|
this._element.setAttribute('aria-hidden', true);
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this15._resetAdjustments();
|
_this15._resetAdjustments();
|
||||||
@ -2374,7 +2374,7 @@ var ScrollSpy = function ($) {
|
|||||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config || null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new ScrollSpy(this, _config);
|
data = new ScrollSpy(this, _config);
|
||||||
@ -2597,7 +2597,7 @@ var Tab = function ($) {
|
|||||||
if (active) {
|
if (active) {
|
||||||
$(active).removeClass(ClassName.ACTIVE);
|
$(active).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
var dropdownChild = $(active).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
||||||
|
|
||||||
if (dropdownChild) {
|
if (dropdownChild) {
|
||||||
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
||||||
@ -2639,7 +2639,7 @@ var Tab = function ($) {
|
|||||||
var data = $this.data(DATA_KEY);
|
var data = $this.data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = data = new Tab(this);
|
data = new Tab(this);
|
||||||
$this.data(DATA_KEY, data);
|
$this.data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3209,7 +3209,7 @@ var Tooltip = function ($) {
|
|||||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data && /dispose|hide/.test(config)) {
|
if (!data && /dispose|hide/.test(config)) {
|
||||||
return;
|
return;
|
||||||
|
4
docs/dist/js/bootstrap.min.js
vendored
4
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/alert.js.map
vendored
2
js/dist/alert.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/button.js.map
vendored
2
js/dist/button.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/carousel.js.map
vendored
2
js/dist/carousel.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/collapse.js.map
vendored
2
js/dist/collapse.js.map
vendored
File diff suppressed because one or more lines are too long
13
js/dist/dropdown.js
vendored
13
js/dist/dropdown.js
vendored
@ -96,7 +96,9 @@ var Dropdown = function ($) {
|
|||||||
$(dropdown).on('click', Dropdown._clearMenus);
|
$(dropdown).on('click', Dropdown._clearMenus);
|
||||||
}
|
}
|
||||||
|
|
||||||
var relatedTarget = { relatedTarget: this };
|
var relatedTarget = {
|
||||||
|
relatedTarget: this
|
||||||
|
};
|
||||||
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
var showEvent = $.Event(Event.SHOW, relatedTarget);
|
||||||
|
|
||||||
$(parent).trigger(showEvent);
|
$(parent).trigger(showEvent);
|
||||||
@ -106,7 +108,7 @@ var Dropdown = function ($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.focus();
|
this.focus();
|
||||||
this.setAttribute('aria-expanded', 'true');
|
this.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
$(parent).toggleClass(ClassName.ACTIVE);
|
$(parent).toggleClass(ClassName.ACTIVE);
|
||||||
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
$(parent).trigger($.Event(Event.SHOWN, relatedTarget));
|
||||||
@ -133,7 +135,8 @@ var Dropdown = function ($) {
|
|||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
$(this).data(DATA_KEY, data = new Dropdown(this));
|
data = new Dropdown(this);
|
||||||
|
$(this).data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
@ -159,7 +162,9 @@ var Dropdown = function ($) {
|
|||||||
|
|
||||||
for (var i = 0; i < toggles.length; i++) {
|
for (var i = 0; i < toggles.length; i++) {
|
||||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||||
var relatedTarget = { relatedTarget: toggles[i] };
|
var relatedTarget = {
|
||||||
|
relatedTarget: toggles[i]
|
||||||
|
};
|
||||||
|
|
||||||
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
if (!$(parent).hasClass(ClassName.ACTIVE)) {
|
||||||
continue;
|
continue;
|
||||||
|
2
js/dist/dropdown.js.map
vendored
2
js/dist/dropdown.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/modal.js
vendored
2
js/dist/modal.js
vendored
@ -288,7 +288,7 @@ var Modal = function ($) {
|
|||||||
var _this7 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', 'true');
|
this._element.setAttribute('aria-hidden', true);
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this7._resetAdjustments();
|
_this7._resetAdjustments();
|
||||||
|
2
js/dist/modal.js.map
vendored
2
js/dist/modal.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/popover.js.map
vendored
2
js/dist/popover.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/scrollspy.js
vendored
2
js/dist/scrollspy.js
vendored
@ -249,7 +249,7 @@ var ScrollSpy = function ($) {
|
|||||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config || null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new ScrollSpy(this, _config);
|
data = new ScrollSpy(this, _config);
|
||||||
|
2
js/dist/scrollspy.js.map
vendored
2
js/dist/scrollspy.js.map
vendored
File diff suppressed because one or more lines are too long
4
js/dist/tab.js
vendored
4
js/dist/tab.js
vendored
@ -163,7 +163,7 @@ var Tab = function ($) {
|
|||||||
if (active) {
|
if (active) {
|
||||||
$(active).removeClass(ClassName.ACTIVE);
|
$(active).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
var dropdownChild = $(active).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
|
||||||
|
|
||||||
if (dropdownChild) {
|
if (dropdownChild) {
|
||||||
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
$(dropdownChild).removeClass(ClassName.ACTIVE);
|
||||||
@ -205,7 +205,7 @@ var Tab = function ($) {
|
|||||||
var data = $this.data(DATA_KEY);
|
var data = $this.data(DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = data = new Tab(this);
|
data = new Tab(this);
|
||||||
$this.data(DATA_KEY, data);
|
$this.data(DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
js/dist/tab.js.map
vendored
2
js/dist/tab.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/tooltip.js
vendored
2
js/dist/tooltip.js
vendored
@ -522,7 +522,7 @@ var Tooltip = function ($) {
|
|||||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = $(this).data(DATA_KEY);
|
var data = $(this).data(DATA_KEY);
|
||||||
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
|
var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
|
||||||
|
|
||||||
if (!data && /dispose|hide/.test(config)) {
|
if (!data && /dispose|hide/.test(config)) {
|
||||||
return;
|
return;
|
||||||
|
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
15
js/dist/util.js
vendored
15
js/dist/util.js
vendored
@ -55,7 +55,9 @@ var Util = function ($) {
|
|||||||
|
|
||||||
for (var name in TransitionEndEvent) {
|
for (var name in TransitionEndEvent) {
|
||||||
if (el.style[name] !== undefined) {
|
if (el.style[name] !== undefined) {
|
||||||
return { end: TransitionEndEvent[name] };
|
return {
|
||||||
|
end: TransitionEndEvent[name]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,9 +104,8 @@ var Util = function ($) {
|
|||||||
|
|
||||||
getUID: function getUID(prefix) {
|
getUID: function getUID(prefix) {
|
||||||
do {
|
do {
|
||||||
/* eslint-disable no-bitwise */
|
// eslint-disable-next-line no-bitwise
|
||||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||||
/* eslint-enable no-bitwise */
|
|
||||||
} while (document.getElementById(prefix));
|
} while (document.getElementById(prefix));
|
||||||
return prefix;
|
return prefix;
|
||||||
},
|
},
|
||||||
@ -132,13 +133,7 @@ var Util = function ($) {
|
|||||||
if (configTypes.hasOwnProperty(property)) {
|
if (configTypes.hasOwnProperty(property)) {
|
||||||
var expectedTypes = configTypes[property];
|
var expectedTypes = configTypes[property];
|
||||||
var value = config[property];
|
var value = config[property];
|
||||||
var valueType = void 0;
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (value && isElement(value)) {
|
|
||||||
valueType = 'element';
|
|
||||||
} else {
|
|
||||||
valueType = toType(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
|
||||||
|
2
js/dist/util.js.map
vendored
2
js/dist/util.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user