aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/js/dist/base-component.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-20 11:05:15 +0000
committerMario <mario@mariovavti.com>2023-01-20 11:05:15 +0000
commit9dc949b62c6b5e3c8872211f71b11714d9d22b22 (patch)
tree38c06e7a128742e219eb74d6adb035f2f106918a /vendor/twbs/bootstrap/js/dist/base-component.js
parent40394b94d7c8a8bf1f61f5482195164fff434b90 (diff)
downloadvolse-hubzilla-9dc949b62c6b5e3c8872211f71b11714d9d22b22.tar.gz
volse-hubzilla-9dc949b62c6b5e3c8872211f71b11714d9d22b22.tar.bz2
volse-hubzilla-9dc949b62c6b5e3c8872211f71b11714d9d22b22.zip
native dark theme initial checkin
Diffstat (limited to 'vendor/twbs/bootstrap/js/dist/base-component.js')
-rw-r--r--vendor/twbs/bootstrap/js/dist/base-component.js53
1 files changed, 18 insertions, 35 deletions
diff --git a/vendor/twbs/bootstrap/js/dist/base-component.js b/vendor/twbs/bootstrap/js/dist/base-component.js
index 9eac028e5..8a8213879 100644
--- a/vendor/twbs/bootstrap/js/dist/base-component.js
+++ b/vendor/twbs/bootstrap/js/dist/base-component.js
@@ -1,97 +1,80 @@
/*!
- * Bootstrap base-component.js v5.2.2 (https://getbootstrap.com/)
+ * Bootstrap base-component.js v5.3.0-alpha1 (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' ? module.exports = factory(require('./dom/data'), require('./util/index'), require('./dom/event-handler'), require('./util/config')) :
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./util/index.js'), require('./dom/event-handler.js'), require('./util/config.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data', './util/index', './dom/event-handler', './util/config'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BaseComponent = factory(global.Data, global.Index, global.EventHandler, global.Config));
-})(this, (function (Data, index, EventHandler, Config) { 'use strict';
-
- const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
-
- const Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
- const EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
- const Config__default = /*#__PURE__*/_interopDefaultLegacy(Config);
+})(this, (function (Data, index_js, EventHandler, Config) { 'use strict';
/**
* --------------------------------------------------------------------------
- * Bootstrap (v5.2.2): base-component.js
+ * Bootstrap (v5.3.0-alpha1): base-component.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
+
/**
* Constants
*/
- const VERSION = '5.2.2';
+ const VERSION = '5.3.0-alpha1';
+
/**
* Class definition
*/
- class BaseComponent extends Config__default.default {
+ class BaseComponent extends Config {
constructor(element, config) {
super();
- element = index.getElement(element);
-
+ element = index_js.getElement(element);
if (!element) {
return;
}
-
this._element = element;
this._config = this._getConfig(config);
- Data__default.default.set(this._element, this.constructor.DATA_KEY, this);
- } // Public
-
+ Data.set(this._element, this.constructor.DATA_KEY, this);
+ }
+ // Public
dispose() {
- Data__default.default.remove(this._element, this.constructor.DATA_KEY);
- EventHandler__default.default.off(this._element, this.constructor.EVENT_KEY);
-
+ Data.remove(this._element, this.constructor.DATA_KEY);
+ EventHandler.off(this._element, this.constructor.EVENT_KEY);
for (const propertyName of Object.getOwnPropertyNames(this)) {
this[propertyName] = null;
}
}
-
_queueCallback(callback, element, isAnimated = true) {
- index.executeAfterTransition(callback, element, isAnimated);
+ index_js.executeAfterTransition(callback, element, isAnimated);
}
-
_getConfig(config) {
config = this._mergeConfigObj(config, this._element);
config = this._configAfterMerge(config);
-
this._typeCheckConfig(config);
-
return config;
- } // Static
-
+ }
+ // Static
static getInstance(element) {
- return Data__default.default.get(index.getElement(element), this.DATA_KEY);
+ return Data.get(index_js.getElement(element), this.DATA_KEY);
}
-
static getOrCreateInstance(element, config = {}) {
return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null);
}
-
static get VERSION() {
return VERSION;
}
-
static get DATA_KEY() {
return `bs.${this.NAME}`;
}
-
static get EVENT_KEY() {
return `.${this.DATA_KEY}`;
}
-
static eventName(name) {
return `${name}${this.EVENT_KEY}`;
}
-
}
return BaseComponent;