diff options
Diffstat (limited to 'vendor/twbs/bootstrap/js/dist/base-component.js')
-rw-r--r-- | vendor/twbs/bootstrap/js/dist/base-component.js | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/vendor/twbs/bootstrap/js/dist/base-component.js b/vendor/twbs/bootstrap/js/dist/base-component.js index 18f7f25ea..741d55463 100644 --- a/vendor/twbs/bootstrap/js/dist/base-component.js +++ b/vendor/twbs/bootstrap/js/dist/base-component.js @@ -1,20 +1,25 @@ /*! - * Bootstrap base-component.js v5.0.2 (https://getbootstrap.com/) + * Bootstrap base-component.js v5.1.2 (https://getbootstrap.com/) * Copyright 2011-2021 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' ? module.exports = factory(require('./dom/data.js'), require('./dom/selector-engine.js'), require('./dom/event-handler.js')) : - typeof define === 'function' && define.amd ? define(['./dom/data', './dom/selector-engine', './dom/event-handler'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Base = factory(global.Data, global.SelectorEngine, global.EventHandler)); -}(this, (function (Data, SelectorEngine, EventHandler) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) : + typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Base = factory(global.Data, global.EventHandler)); +})(this, (function (Data, EventHandler) { 'use strict'; - function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e }; - var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data); - var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine); - var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler); + const Data__default = /*#__PURE__*/_interopDefaultLegacy(Data); + const EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler); + /** + * -------------------------------------------------------------------------- + * Bootstrap (v5.1.2): util/index.js + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + * -------------------------------------------------------------------------- + */ const MILLISECONDS_MULTIPLIER = 1000; const TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp) @@ -64,7 +69,7 @@ } if (typeof obj === 'string' && obj.length > 0) { - return SelectorEngine__default['default'].findOne(obj); + return document.querySelector(obj); } return null; @@ -108,7 +113,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.2): base-component.js + * Bootstrap (v5.1.2): base-component.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -118,7 +123,7 @@ * ------------------------------------------------------------------------ */ - const VERSION = '5.0.2'; + const VERSION = '5.1.2'; class BaseComponent { constructor(element) { @@ -129,12 +134,12 @@ } this._element = element; - Data__default['default'].set(this._element, this.constructor.DATA_KEY, this); + Data__default.default.set(this._element, this.constructor.DATA_KEY, this); } dispose() { - Data__default['default'].remove(this._element, this.constructor.DATA_KEY); - EventHandler__default['default'].off(this._element, this.constructor.EVENT_KEY); + Data__default.default.remove(this._element, this.constructor.DATA_KEY); + EventHandler__default.default.off(this._element, this.constructor.EVENT_KEY); Object.getOwnPropertyNames(this).forEach(propertyName => { this[propertyName] = null; }); @@ -147,7 +152,7 @@ static getInstance(element) { - return Data__default['default'].get(element, this.DATA_KEY); + return Data__default.default.get(getElement(element), this.DATA_KEY); } static getOrCreateInstance(element, config = {}) { @@ -174,5 +179,5 @@ return BaseComponent; -}))); +})); //# sourceMappingURL=base-component.js.map |