assets/javascripts/bootstrap.js in bootstrap-4.6.1 vs assets/javascripts/bootstrap.js in bootstrap-4.6.2

- old
+ new

@@ -1,8 +1,8 @@ /*! - * Bootstrap v4.6.1 (https://getbootstrap.com/) - * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Bootstrap v4.6.2 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) : typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) : @@ -25,15 +25,18 @@ } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); return Constructor; } function _extends() { - _extends = Object.assign || function (target) { + _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { @@ -42,11 +45,10 @@ } } return target; }; - return _extends.apply(this, arguments); } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); @@ -54,21 +56,20 @@ _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; - return _setPrototypeOf(o, p); } /** * -------------------------------------------------------------------------- - * Bootstrap (v4.6.1): util.js + * Bootstrap (v4.6.2): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ /** * Private TransitionEnd Helpers @@ -238,11 +239,11 @@ /** * Constants */ var NAME$a = 'alert'; - var VERSION$a = '4.6.1'; + var VERSION$a = '4.6.2'; var DATA_KEY$a = 'bs.alert'; var EVENT_KEY$a = "." + DATA_KEY$a; var DATA_API_KEY$7 = '.data-api'; var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a]; var CLASS_NAME_ALERT = 'alert'; @@ -386,11 +387,11 @@ /** * Constants */ var NAME$9 = 'button'; - var VERSION$9 = '4.6.1'; + var VERSION$9 = '4.6.2'; var DATA_KEY$9 = 'bs.button'; var EVENT_KEY$9 = "." + DATA_KEY$9; var DATA_API_KEY$6 = '.data-api'; var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9]; var CLASS_NAME_ACTIVE$3 = 'active'; @@ -577,11 +578,11 @@ /** * Constants */ var NAME$8 = 'carousel'; - var VERSION$8 = '4.6.1'; + var VERSION$8 = '4.6.2'; var DATA_KEY$8 = 'bs.carousel'; var EVENT_KEY$8 = "." + DATA_KEY$8; var DATA_API_KEY$5 = '.data-api'; var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8]; var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key @@ -1164,11 +1165,11 @@ /** * Constants */ var NAME$7 = 'collapse'; - var VERSION$7 = '4.6.1'; + var VERSION$7 = '4.6.2'; var DATA_KEY$7 = 'bs.collapse'; var EVENT_KEY$7 = "." + DATA_KEY$7; var DATA_API_KEY$4 = '.data-api'; var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7]; var CLASS_NAME_SHOW$6 = 'show'; @@ -1505,11 +1506,11 @@ /** * Constants */ var NAME$6 = 'dropdown'; - var VERSION$6 = '4.6.1'; + var VERSION$6 = '4.6.2'; var DATA_KEY$6 = 'bs.dropdown'; var EVENT_KEY$6 = "." + DATA_KEY$6; var DATA_API_KEY$3 = '.data-api'; var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6]; var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key @@ -2008,11 +2009,11 @@ /** * Constants */ var NAME$5 = 'modal'; - var VERSION$5 = '4.6.1'; + var VERSION$5 = '4.6.2'; var DATA_KEY$5 = 'bs.modal'; var EVENT_KEY$5 = "." + DATA_KEY$5; var DATA_API_KEY$2 = '.data-api'; var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5]; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key @@ -2612,11 +2613,11 @@ return Modal._jQueryInterface; }; /** * -------------------------------------------------------------------------- - * Bootstrap (v4.6.1): tools/sanitizer.js + * Bootstrap (v4.6.2): tools/sanitizer.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']; var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; @@ -2737,11 +2738,11 @@ /** * Constants */ var NAME$4 = 'tooltip'; - var VERSION$4 = '4.6.1'; + var VERSION$4 = '4.6.2'; var DATA_KEY$4 = 'bs.tooltip'; var EVENT_KEY$4 = "." + DATA_KEY$4; var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4]; var CLASS_PREFIX$1 = 'bs-tooltip'; var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g'); @@ -3447,11 +3448,11 @@ /** * Constants */ var NAME$3 = 'popover'; - var VERSION$3 = '4.6.1'; + var VERSION$3 = '4.6.2'; var DATA_KEY$3 = 'bs.popover'; var EVENT_KEY$3 = "." + DATA_KEY$3; var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3]; var CLASS_PREFIX = 'bs-popover'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); @@ -3621,11 +3622,11 @@ /** * Constants */ var NAME$2 = 'scrollspy'; - var VERSION$2 = '4.6.1'; + var VERSION$2 = '4.6.2'; var DATA_KEY$2 = 'bs.scrollspy'; var EVENT_KEY$2 = "." + DATA_KEY$2; var DATA_API_KEY$1 = '.data-api'; var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2]; var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'; @@ -3707,13 +3708,11 @@ return [$__default["default"](target)[offsetMethod]().top + offsetBase, targetSelector]; } } return null; - }).filter(function (item) { - return item; - }).sort(function (a, b) { + }).filter(Boolean).sort(function (a, b) { return a[0] - b[0]; }).forEach(function (item) { _this2._offsets.push(item[0]); _this2._targets.push(item[1]); @@ -3905,11 +3904,11 @@ /** * Constants */ var NAME$1 = 'tab'; - var VERSION$1 = '4.6.1'; + var VERSION$1 = '4.6.2'; var DATA_KEY$1 = 'bs.tab'; var EVENT_KEY$1 = "." + DATA_KEY$1; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1]; var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu'; @@ -3943,11 +3942,11 @@ // Public _proto.show = function show() { var _this = this; - if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) { + if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED) || this._element.hasAttribute('disabled')) { return; } var target; var previous; @@ -4129,10 +4128,10 @@ /** * Constants */ var NAME = 'toast'; - var VERSION = '4.6.1'; + var VERSION = '4.6.2'; var DATA_KEY = 'bs.toast'; var EVENT_KEY = "." + DATA_KEY; var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME]; var CLASS_NAME_FADE = 'fade'; var CLASS_NAME_HIDE = 'hide';