Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js118
1 files changed, 61 insertions, 57 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 867da25717..89914cd2b4 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -1,16 +1,16 @@
/*!
* Bootstrap v4.2.1 (https://getbootstrap.com/)
- * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
+ * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('popper.js'), require('jquery')) :
- typeof define === 'function' && define.amd ? define(['exports', 'popper.js', 'jquery'], factory) :
- (factory((global.bootstrap = {}),global.Popper,global.jQuery));
-}(this, (function (exports,Popper,$) { 'use strict';
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
+ typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
+ (global = global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
+}(this, function (exports, $, Popper) { 'use strict';
- Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
+ Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
@@ -146,7 +146,11 @@
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
}
- return selector && document.querySelector(selector) ? selector : null;
+ try {
+ return document.querySelector(selector) ? selector : null;
+ } catch (err) {
+ return null;
+ }
},
getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
if (!element) {
@@ -281,8 +285,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY);
this._element = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getRootElement = function _getRootElement(element) {
var selector = Util.getSelectorFromElement(element);
@@ -324,8 +328,8 @@
_proto._destroyElement = function _destroyElement(element) {
$(element).detach().trigger(Event.CLOSED).remove();
- }; // Static
-
+ } // Static
+ ;
Alert._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -477,8 +481,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY$1);
this._element = null;
- }; // Static
-
+ } // Static
+ ;
Button._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -740,8 +744,8 @@
this._isSliding = null;
this._activeElement = null;
this._indicatorsElement = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
@@ -1026,8 +1030,8 @@
if (isCycling) {
this.cycle();
}
- }; // Static
-
+ } // Static
+ ;
Carousel._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -1054,7 +1058,7 @@
}
data[action]();
- } else if (_config.interval) {
+ } else if (_config.interval && _config.ride) {
data.pause();
data.cycle();
}
@@ -1365,8 +1369,8 @@
this._element = null;
this._triggerArray = null;
this._isTransitioning = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$1, config);
@@ -1410,8 +1414,8 @@
if (triggerArray.length) {
$(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
}
- }; // Static
-
+ } // Static
+ ;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = Util.getSelectorFromElement(element);
@@ -1732,8 +1736,8 @@
if (this._popper !== null) {
this._popper.scheduleUpdate();
}
- }; // Private
-
+ } // Private
+ ;
_proto._addEventListeners = function _addEventListeners() {
var _this = this;
@@ -1824,8 +1828,8 @@
}
return popperConfig;
- }; // Static
-
+ } // Static
+ ;
Dropdown._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -1909,8 +1913,8 @@
}
return parent || element.parentNode;
- }; // eslint-disable-next-line complexity
-
+ } // eslint-disable-next-line complexity
+ ;
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
// If not input/textarea:
@@ -2218,8 +2222,8 @@
_proto.handleUpdate = function handleUpdate() {
this._adjustDialog();
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$3, config);
@@ -2413,11 +2417,11 @@
} else if (callback) {
callback();
}
- }; // ----------------------------------------------------------------------
+ } // ----------------------------------------------------------------------
// the following methods are used to handle overflowing modals
// todo (fat): these should probably be refactored out of modal.js
// ----------------------------------------------------------------------
-
+ ;
_proto._adjustDialog = function _adjustDialog() {
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
@@ -2502,8 +2506,8 @@
var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
document.body.removeChild(scrollDiv);
return scrollbarWidth;
- }; // Static
-
+ } // Static
+ ;
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
return this.each(function () {
@@ -2936,8 +2940,8 @@
if (this._popper !== null) {
this._popper.scheduleUpdate();
}
- }; // Protected
-
+ } // Protected
+ ;
_proto.isWithContent = function isWithContent() {
return Boolean(this.getTitle());
@@ -2983,8 +2987,8 @@
}
return title;
- }; // Private
-
+ } // Private
+ ;
_proto._getContainer = function _getContainer() {
if (this.config.container === false) {
@@ -3188,8 +3192,8 @@
this.hide();
this.show();
this.config.animation = initConfigAnimation;
- }; // Static
-
+ } // Static
+ ;
Tooltip._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -3360,8 +3364,8 @@
this.setElementContent($tip.find(Selector$7.CONTENT), content);
$tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW);
- }; // Private
-
+ } // Private
+ ;
_proto._getContent = function _getContent() {
return this.element.getAttribute('data-content') || this.config.content;
@@ -3374,8 +3378,8 @@
if (tabClass !== null && tabClass.length > 0) {
$tip.removeClass(tabClass.join(''));
}
- }; // Static
-
+ } // Static
+ ;
Popover._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -3587,8 +3591,8 @@
this._targets = null;
this._activeTarget = null;
this._scrollHeight = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
@@ -3695,8 +3699,8 @@
}).forEach(function (node) {
return node.classList.remove(ClassName$8.ACTIVE);
});
- }; // Static
-
+ } // Static
+ ;
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -3879,8 +3883,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY$9);
this._element = null;
- }; // Private
-
+ } // Private
+ ;
_proto._activate = function _activate(element, container, callback) {
var _this2 = this;
@@ -3938,8 +3942,8 @@
if (callback) {
callback();
}
- }; // Static
-
+ } // Static
+ ;
Tab._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -4118,8 +4122,8 @@
$.removeData(this._element, DATA_KEY$a);
this._element = null;
this._config = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
@@ -4152,8 +4156,8 @@
} else {
complete();
}
- }; // Static
-
+ } // Static
+ ;
Toast._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -4245,5 +4249,5 @@
Object.defineProperty(exports, '__esModule', { value: true });
-})));
+}));
//# sourceMappingURL=bootstrap.js.map