mirror of https://github.com/twbs/bootstrap.git
dist
This commit is contained in:
parent
30e27e7942
commit
2be34d5ce9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1772,14 +1772,14 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
|
||||||
box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
|
box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.was-validated .form-control:valid ~ .invalid-feedback,
|
.was-validated .form-control:valid ~ .valid-feedback,
|
||||||
.was-validated .form-control:valid ~ .invalid-tooltip, .form-control.is-valid ~ .invalid-feedback,
|
.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback,
|
||||||
.form-control.is-valid ~ .invalid-tooltip, .was-validated
|
.form-control.is-valid ~ .valid-tooltip, .was-validated
|
||||||
.custom-select:valid ~ .invalid-feedback,
|
.custom-select:valid ~ .valid-feedback,
|
||||||
.was-validated
|
.was-validated
|
||||||
.custom-select:valid ~ .invalid-tooltip,
|
.custom-select:valid ~ .valid-tooltip,
|
||||||
.custom-select.is-valid ~ .invalid-feedback,
|
.custom-select.is-valid ~ .valid-feedback,
|
||||||
.custom-select.is-valid ~ .invalid-tooltip {
|
.custom-select.is-valid ~ .valid-tooltip {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2813,6 +2813,8 @@ tbody.collapse.show {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2829,15 +2831,6 @@ tbody.collapse.show {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-addon,
|
|
||||||
.input-group-btn,
|
|
||||||
.input-group .form-control {
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-ms-flex-align: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-group-addon:not(:first-child):not(:last-child),
|
.input-group-addon:not(:first-child):not(:last-child),
|
||||||
.input-group-btn:not(:first-child):not(:last-child),
|
.input-group-btn:not(:first-child):not(:last-child),
|
||||||
.input-group .form-control:not(:first-child):not(:last-child) {
|
.input-group .form-control:not(:first-child):not(:last-child) {
|
||||||
|
@ -2847,7 +2840,6 @@ tbody.collapse.show {
|
||||||
.input-group-addon,
|
.input-group-addon,
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-addon {
|
.input-group-addon {
|
||||||
|
|
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
|
@ -50,9 +50,10 @@ var Util = function ($) {
|
||||||
MozTransition: 'transitionend',
|
MozTransition: 'transitionend',
|
||||||
OTransition: 'oTransitionEnd otransitionend',
|
OTransition: 'oTransitionEnd otransitionend',
|
||||||
transition: 'transitionend'
|
transition: 'transitionend'
|
||||||
|
};
|
||||||
|
|
||||||
// shoutout AngusCroll (https://goo.gl/pxwQGp)
|
// 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,6 +216,7 @@ var Alert = function ($) {
|
||||||
ALERT: 'alert',
|
ALERT: 'alert',
|
||||||
FADE: 'fade',
|
FADE: 'fade',
|
||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -222,7 +224,6 @@ var Alert = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Alert = function () {
|
var Alert = function () {
|
||||||
function Alert(element) {
|
function Alert(element) {
|
||||||
_classCallCheck(this, Alert);
|
_classCallCheck(this, Alert);
|
||||||
|
@ -396,6 +397,7 @@ var Button = function ($) {
|
||||||
var Event = {
|
var Event = {
|
||||||
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
|
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
|
||||||
FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)
|
FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -403,7 +405,6 @@ var Button = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Button = function () {
|
var Button = function () {
|
||||||
function Button(element) {
|
function Button(element) {
|
||||||
_classCallCheck(this, Button);
|
_classCallCheck(this, Button);
|
||||||
|
@ -606,6 +607,7 @@ var Carousel = function ($) {
|
||||||
INDICATORS: '.carousel-indicators',
|
INDICATORS: '.carousel-indicators',
|
||||||
DATA_SLIDE: '[data-slide], [data-slide-to]',
|
DATA_SLIDE: '[data-slide], [data-slide-to]',
|
||||||
DATA_RIDE: '[data-ride="carousel"]'
|
DATA_RIDE: '[data-ride="carousel"]'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -613,7 +615,6 @@ var Carousel = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Carousel = function () {
|
var Carousel = function () {
|
||||||
function Carousel(element, config) {
|
function Carousel(element, config) {
|
||||||
_classCallCheck(this, Carousel);
|
_classCallCheck(this, Carousel);
|
||||||
|
@ -1090,6 +1091,7 @@ var Collapse = function ($) {
|
||||||
var Selector = {
|
var Selector = {
|
||||||
ACTIVES: '.show, .collapsing',
|
ACTIVES: '.show, .collapsing',
|
||||||
DATA_TOGGLE: '[data-toggle="collapse"]'
|
DATA_TOGGLE: '[data-toggle="collapse"]'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -1097,7 +1099,6 @@ var Collapse = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Collapse = function () {
|
var Collapse = function () {
|
||||||
function Collapse(element, config) {
|
function Collapse(element, config) {
|
||||||
_classCallCheck(this, Collapse);
|
_classCallCheck(this, Collapse);
|
||||||
|
@ -1478,6 +1479,7 @@ var Dropdown = function ($) {
|
||||||
placement: 'string',
|
placement: 'string',
|
||||||
offset: '(number|string)',
|
offset: '(number|string)',
|
||||||
flip: 'boolean'
|
flip: 'boolean'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -1485,7 +1487,6 @@ var Dropdown = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Dropdown = function () {
|
var Dropdown = function () {
|
||||||
function Dropdown(element, config) {
|
function Dropdown(element, config) {
|
||||||
_classCallCheck(this, Dropdown);
|
_classCallCheck(this, Dropdown);
|
||||||
|
@ -1634,9 +1635,10 @@ var Dropdown = function ($) {
|
||||||
enabled: this._config.flip
|
enabled: this._config.flip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Disable Popper.js for Dropdown in Navbar
|
// Disable Popper.js for Dropdown in Navbar
|
||||||
};if (this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers.applyStyle = {
|
||||||
enabled: !this._inNavbar
|
enabled: !this._inNavbar
|
||||||
};
|
};
|
||||||
|
@ -1889,6 +1891,7 @@ var Modal = function ($) {
|
||||||
DATA_DISMISS: '[data-dismiss="modal"]',
|
DATA_DISMISS: '[data-dismiss="modal"]',
|
||||||
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
||||||
NAVBAR_TOGGLER: '.navbar-toggler'
|
NAVBAR_TOGGLER: '.navbar-toggler'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -1896,7 +1899,6 @@ var Modal = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Modal = function () {
|
var Modal = function () {
|
||||||
function Modal(element, config) {
|
function Modal(element, config) {
|
||||||
_classCallCheck(this, Modal);
|
_classCallCheck(this, Modal);
|
||||||
|
@ -2453,6 +2455,7 @@ var ScrollSpy = function ($) {
|
||||||
var OffsetMethod = {
|
var OffsetMethod = {
|
||||||
OFFSET: 'offset',
|
OFFSET: 'offset',
|
||||||
POSITION: 'position'
|
POSITION: 'position'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -2460,7 +2463,6 @@ var ScrollSpy = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var ScrollSpy = function () {
|
var ScrollSpy = function () {
|
||||||
function ScrollSpy(element, config) {
|
function ScrollSpy(element, config) {
|
||||||
var _this20 = this;
|
var _this20 = this;
|
||||||
|
@ -2750,9 +2752,11 @@ var Tab = function ($) {
|
||||||
DROPDOWN: '.dropdown',
|
DROPDOWN: '.dropdown',
|
||||||
NAV_LIST_GROUP: '.nav, .list-group',
|
NAV_LIST_GROUP: '.nav, .list-group',
|
||||||
ACTIVE: '.active',
|
ACTIVE: '.active',
|
||||||
|
ACTIVE_UL: '> li > .active',
|
||||||
DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
||||||
DROPDOWN_TOGGLE: '.dropdown-toggle',
|
DROPDOWN_TOGGLE: '.dropdown-toggle',
|
||||||
DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
|
DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -2760,7 +2764,6 @@ var Tab = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Tab = function () {
|
var Tab = function () {
|
||||||
function Tab(element) {
|
function Tab(element) {
|
||||||
_classCallCheck(this, Tab);
|
_classCallCheck(this, Tab);
|
||||||
|
@ -2785,7 +2788,8 @@ var Tab = function ($) {
|
||||||
var selector = Util.getSelectorFromElement(this._element);
|
var selector = Util.getSelectorFromElement(this._element);
|
||||||
|
|
||||||
if (listElement) {
|
if (listElement) {
|
||||||
previous = $.makeArray($(listElement).find(Selector.ACTIVE));
|
var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
|
||||||
|
previous = $.makeArray($(listElement).find(itemSelector));
|
||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2843,7 +2847,14 @@ var Tab = function ($) {
|
||||||
Tab.prototype._activate = function _activate(element, container, callback) {
|
Tab.prototype._activate = function _activate(element, container, callback) {
|
||||||
var _this23 = this;
|
var _this23 = this;
|
||||||
|
|
||||||
var active = $(container).find(Selector.ACTIVE)[0];
|
var activeElements = void 0;
|
||||||
|
if (container.nodeName === 'UL') {
|
||||||
|
activeElements = $(container).find(Selector.ACTIVE_UL);
|
||||||
|
} else {
|
||||||
|
activeElements = $(container).children(Selector.ACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
|
var active = activeElements[0];
|
||||||
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() {
|
||||||
|
@ -3061,6 +3072,7 @@ var Tooltip = function ($) {
|
||||||
FOCUS: 'focus',
|
FOCUS: 'focus',
|
||||||
CLICK: 'click',
|
CLICK: 'click',
|
||||||
MANUAL: 'manual'
|
MANUAL: 'manual'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -3068,7 +3080,6 @@ var Tooltip = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Tooltip = function () {
|
var Tooltip = function () {
|
||||||
function Tooltip(element, config) {
|
function Tooltip(element, config) {
|
||||||
_classCallCheck(this, Tooltip);
|
_classCallCheck(this, Tooltip);
|
||||||
|
@ -3687,6 +3698,7 @@ var Popover = function ($) {
|
||||||
FOCUSOUT: 'focusout' + EVENT_KEY,
|
FOCUSOUT: 'focusout' + EVENT_KEY,
|
||||||
MOUSEENTER: 'mouseenter' + EVENT_KEY,
|
MOUSEENTER: 'mouseenter' + EVENT_KEY,
|
||||||
MOUSELEAVE: 'mouseleave' + EVENT_KEY
|
MOUSELEAVE: 'mouseleave' + EVENT_KEY
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -3694,7 +3706,6 @@ var Popover = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Popover = function (_Tooltip) {
|
var Popover = function (_Tooltip) {
|
||||||
_inherits(Popover, _Tooltip);
|
_inherits(Popover, _Tooltip);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -39,6 +39,7 @@ var Alert = function ($) {
|
||||||
ALERT: 'alert',
|
ALERT: 'alert',
|
||||||
FADE: 'fade',
|
FADE: 'fade',
|
||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -46,7 +47,6 @@ var Alert = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Alert = function () {
|
var Alert = function () {
|
||||||
function Alert(element) {
|
function Alert(element) {
|
||||||
_classCallCheck(this, Alert);
|
_classCallCheck(this, Alert);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -41,6 +41,7 @@ var Button = function ($) {
|
||||||
var Event = {
|
var Event = {
|
||||||
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
|
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
|
||||||
FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)
|
FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -48,7 +49,6 @@ var Button = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Button = function () {
|
var Button = function () {
|
||||||
function Button(element) {
|
function Button(element) {
|
||||||
_classCallCheck(this, Button);
|
_classCallCheck(this, Button);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -83,6 +83,7 @@ var Carousel = function ($) {
|
||||||
INDICATORS: '.carousel-indicators',
|
INDICATORS: '.carousel-indicators',
|
||||||
DATA_SLIDE: '[data-slide], [data-slide-to]',
|
DATA_SLIDE: '[data-slide], [data-slide-to]',
|
||||||
DATA_RIDE: '[data-ride="carousel"]'
|
DATA_RIDE: '[data-ride="carousel"]'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -90,7 +91,6 @@ var Carousel = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Carousel = function () {
|
var Carousel = function () {
|
||||||
function Carousel(element, config) {
|
function Carousel(element, config) {
|
||||||
_classCallCheck(this, Carousel);
|
_classCallCheck(this, Carousel);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -60,6 +60,7 @@ var Collapse = function ($) {
|
||||||
var Selector = {
|
var Selector = {
|
||||||
ACTIVES: '.show, .collapsing',
|
ACTIVES: '.show, .collapsing',
|
||||||
DATA_TOGGLE: '[data-toggle="collapse"]'
|
DATA_TOGGLE: '[data-toggle="collapse"]'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -67,7 +68,6 @@ var Collapse = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Collapse = function () {
|
var Collapse = function () {
|
||||||
function Collapse(element, config) {
|
function Collapse(element, config) {
|
||||||
_classCallCheck(this, Collapse);
|
_classCallCheck(this, Collapse);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -85,6 +85,7 @@ var Dropdown = function ($) {
|
||||||
placement: 'string',
|
placement: 'string',
|
||||||
offset: '(number|string)',
|
offset: '(number|string)',
|
||||||
flip: 'boolean'
|
flip: 'boolean'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -92,7 +93,6 @@ var Dropdown = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Dropdown = function () {
|
var Dropdown = function () {
|
||||||
function Dropdown(element, config) {
|
function Dropdown(element, config) {
|
||||||
_classCallCheck(this, Dropdown);
|
_classCallCheck(this, Dropdown);
|
||||||
|
@ -241,9 +241,10 @@ var Dropdown = function ($) {
|
||||||
enabled: this._config.flip
|
enabled: this._config.flip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Disable Popper.js for Dropdown in Navbar
|
// Disable Popper.js for Dropdown in Navbar
|
||||||
};if (this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers.applyStyle = {
|
||||||
enabled: !this._inNavbar
|
enabled: !this._inNavbar
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -71,6 +71,7 @@ var Modal = function ($) {
|
||||||
DATA_DISMISS: '[data-dismiss="modal"]',
|
DATA_DISMISS: '[data-dismiss="modal"]',
|
||||||
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
||||||
NAVBAR_TOGGLER: '.navbar-toggler'
|
NAVBAR_TOGGLER: '.navbar-toggler'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -78,7 +79,6 @@ var Modal = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Modal = function () {
|
var Modal = function () {
|
||||||
function Modal(element, config) {
|
function Modal(element, config) {
|
||||||
_classCallCheck(this, Modal);
|
_classCallCheck(this, Modal);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -63,6 +63,7 @@ var Popover = function ($) {
|
||||||
FOCUSOUT: 'focusout' + EVENT_KEY,
|
FOCUSOUT: 'focusout' + EVENT_KEY,
|
||||||
MOUSEENTER: 'mouseenter' + EVENT_KEY,
|
MOUSEENTER: 'mouseenter' + EVENT_KEY,
|
||||||
MOUSELEAVE: 'mouseleave' + EVENT_KEY
|
MOUSELEAVE: 'mouseleave' + EVENT_KEY
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -70,7 +71,6 @@ var Popover = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Popover = function (_Tooltip) {
|
var Popover = function (_Tooltip) {
|
||||||
_inherits(Popover, _Tooltip);
|
_inherits(Popover, _Tooltip);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -64,6 +64,7 @@ var ScrollSpy = function ($) {
|
||||||
var OffsetMethod = {
|
var OffsetMethod = {
|
||||||
OFFSET: 'offset',
|
OFFSET: 'offset',
|
||||||
POSITION: 'position'
|
POSITION: 'position'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -71,7 +72,6 @@ var ScrollSpy = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var ScrollSpy = function () {
|
var ScrollSpy = function () {
|
||||||
function ScrollSpy(element, config) {
|
function ScrollSpy(element, config) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,9 +45,11 @@ var Tab = function ($) {
|
||||||
DROPDOWN: '.dropdown',
|
DROPDOWN: '.dropdown',
|
||||||
NAV_LIST_GROUP: '.nav, .list-group',
|
NAV_LIST_GROUP: '.nav, .list-group',
|
||||||
ACTIVE: '.active',
|
ACTIVE: '.active',
|
||||||
|
ACTIVE_UL: '> li > .active',
|
||||||
DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
|
||||||
DROPDOWN_TOGGLE: '.dropdown-toggle',
|
DROPDOWN_TOGGLE: '.dropdown-toggle',
|
||||||
DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
|
DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -55,7 +57,6 @@ var Tab = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Tab = function () {
|
var Tab = function () {
|
||||||
function Tab(element) {
|
function Tab(element) {
|
||||||
_classCallCheck(this, Tab);
|
_classCallCheck(this, Tab);
|
||||||
|
@ -80,7 +81,8 @@ var Tab = function ($) {
|
||||||
var selector = Util.getSelectorFromElement(this._element);
|
var selector = Util.getSelectorFromElement(this._element);
|
||||||
|
|
||||||
if (listElement) {
|
if (listElement) {
|
||||||
previous = $.makeArray($(listElement).find(Selector.ACTIVE));
|
var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
|
||||||
|
previous = $.makeArray($(listElement).find(itemSelector));
|
||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +140,14 @@ var Tab = function ($) {
|
||||||
Tab.prototype._activate = function _activate(element, container, callback) {
|
Tab.prototype._activate = function _activate(element, container, callback) {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
var active = $(container).find(Selector.ACTIVE)[0];
|
var activeElements = void 0;
|
||||||
|
if (container.nodeName === 'UL') {
|
||||||
|
activeElements = $(container).find(Selector.ACTIVE_UL);
|
||||||
|
} else {
|
||||||
|
activeElements = $(container).children(Selector.ACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
|
var active = activeElements[0];
|
||||||
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() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -106,6 +106,7 @@ var Tooltip = function ($) {
|
||||||
FOCUS: 'focus',
|
FOCUS: 'focus',
|
||||||
CLICK: 'click',
|
CLICK: 'click',
|
||||||
MANUAL: 'manual'
|
MANUAL: 'manual'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -113,7 +114,6 @@ var Tooltip = function ($) {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
};
|
|
||||||
var Tooltip = function () {
|
var Tooltip = function () {
|
||||||
function Tooltip(element, config) {
|
function Tooltip(element, config) {
|
||||||
_classCallCheck(this, Tooltip);
|
_classCallCheck(this, Tooltip);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -22,9 +22,10 @@ var Util = function ($) {
|
||||||
MozTransition: 'transitionend',
|
MozTransition: 'transitionend',
|
||||||
OTransition: 'oTransitionEnd otransitionend',
|
OTransition: 'oTransitionEnd otransitionend',
|
||||||
transition: 'transitionend'
|
transition: 'transitionend'
|
||||||
|
};
|
||||||
|
|
||||||
// shoutout AngusCroll (https://goo.gl/pxwQGp)
|
// 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue