diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-02-10 19:14:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 19:14:51 +0300 |
commit | e50c11b8c6434b6d68ea5897771e4d35fe12f5c3 (patch) | |
tree | bb52939845662ce21d01c370092a12fbb0875fb4 /js/dist/base-component.js | |
parent | 2bb42a9176e7ea361aa1ab0050da5be6a5cb56ea (diff) |
Release v5.0.0-beta2 (#32467)v5.0.0-beta2
* Bump version to 5.0.0-beta2
* Dist
Diffstat (limited to 'js/dist/base-component.js')
-rw-r--r-- | js/dist/base-component.js | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/js/dist/base-component.js b/js/dist/base-component.js new file mode 100644 index 0000000000..80605b5a1a --- /dev/null +++ b/js/dist/base-component.js @@ -0,0 +1,76 @@ +/*! + * Bootstrap base-component.js v5.0.0-beta2 (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')) : + typeof define === 'function' && define.amd ? define(['./dom/data'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Base = factory(global.Data)); +}(this, (function (Data) { 'use strict'; + + function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + + var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data); + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var VERSION = '5.0.0-beta2'; + + var BaseComponent = /*#__PURE__*/function () { + function BaseComponent(element) { + if (!element) { + return; + } + + this._element = element; + Data__default['default'].setData(element, this.constructor.DATA_KEY, this); + } + + var _proto = BaseComponent.prototype; + + _proto.dispose = function dispose() { + Data__default['default'].removeData(this._element, this.constructor.DATA_KEY); + this._element = null; + } + /** Static */ + ; + + BaseComponent.getInstance = function getInstance(element) { + return Data__default['default'].getData(element, this.DATA_KEY); + }; + + _createClass(BaseComponent, null, [{ + key: "VERSION", + get: function get() { + return VERSION; + } + }]); + + return BaseComponent; + }(); + + return BaseComponent; + +}))); +//# sourceMappingURL=base-component.js.map |