aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/js/dist/toast.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-27 08:04:00 +0000
committerMario <mario@mariovavti.com>2020-11-27 08:04:00 +0000
commitf4bb7bcbff3770387c2fecfa91ce4a60b916a474 (patch)
treeea007e664d435f1f3d63c87bfe1600484d2bd46c /vendor/twbs/bootstrap/js/dist/toast.js
parent07e5b8295ea9d342f66d8119d88bd58124b548e6 (diff)
downloadvolse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.gz
volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.bz2
volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.zip
update composer libs
Diffstat (limited to 'vendor/twbs/bootstrap/js/dist/toast.js')
-rw-r--r--vendor/twbs/bootstrap/js/dist/toast.js54
1 files changed, 28 insertions, 26 deletions
diff --git a/vendor/twbs/bootstrap/js/dist/toast.js b/vendor/twbs/bootstrap/js/dist/toast.js
index 811530a06..f74f29d46 100644
--- a/vendor/twbs/bootstrap/js/dist/toast.js
+++ b/vendor/twbs/bootstrap/js/dist/toast.js
@@ -1,5 +1,5 @@
/*!
- * Bootstrap toast.js v4.5.2 (https://getbootstrap.com/)
+ * Bootstrap toast.js v4.5.3 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@@ -9,8 +9,10 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Toast = factory(global.jQuery, global.Util));
}(this, (function ($, Util) { 'use strict';
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
- Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
+
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
+ var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);
function _extends() { _extends = Object.assign || 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)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -24,10 +26,10 @@
*/
var NAME = 'toast';
- var VERSION = '4.5.2';
+ var VERSION = '4.5.3';
var DATA_KEY = 'bs.toast';
var EVENT_KEY = "." + DATA_KEY;
- var JQUERY_NO_CONFLICT = $.fn[NAME];
+ var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY;
var EVENT_HIDE = "hide" + EVENT_KEY;
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
@@ -70,8 +72,8 @@
_proto.show = function show() {
var _this = this;
- var showEvent = $.Event(EVENT_SHOW);
- $(this._element).trigger(showEvent);
+ var showEvent = $__default['default'].Event(EVENT_SHOW);
+ $__default['default'](this._element).trigger(showEvent);
if (showEvent.isDefaultPrevented()) {
return;
@@ -88,7 +90,7 @@
_this._element.classList.add(CLASS_NAME_SHOW);
- $(_this._element).trigger(EVENT_SHOWN);
+ $__default['default'](_this._element).trigger(EVENT_SHOWN);
if (_this._config.autohide) {
_this._timeout = setTimeout(function () {
@@ -99,13 +101,13 @@
this._element.classList.remove(CLASS_NAME_HIDE);
- Util.reflow(this._element);
+ Util__default['default'].reflow(this._element);
this._element.classList.add(CLASS_NAME_SHOWING);
if (this._config.animation) {
- var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
+ $__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -116,8 +118,8 @@
return;
}
- var hideEvent = $.Event(EVENT_HIDE);
- $(this._element).trigger(hideEvent);
+ var hideEvent = $__default['default'].Event(EVENT_HIDE);
+ $__default['default'](this._element).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) {
return;
@@ -133,23 +135,23 @@
this._element.classList.remove(CLASS_NAME_SHOW);
}
- $(this._element).off(EVENT_CLICK_DISMISS);
- $.removeData(this._element, DATA_KEY);
+ $__default['default'](this._element).off(EVENT_CLICK_DISMISS);
+ $__default['default'].removeData(this._element, DATA_KEY);
this._element = null;
this._config = null;
} // Private
;
_proto._getConfig = function _getConfig(config) {
- config = _extends({}, Default, $(this._element).data(), typeof config === 'object' && config ? config : {});
- Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
+ config = _extends({}, Default, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
+ Util__default['default'].typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config;
};
_proto._setListeners = function _setListeners() {
var _this2 = this;
- $(this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
+ $__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
return _this2.hide();
});
};
@@ -160,14 +162,14 @@
var complete = function complete() {
_this3._element.classList.add(CLASS_NAME_HIDE);
- $(_this3._element).trigger(EVENT_HIDDEN);
+ $__default['default'](_this3._element).trigger(EVENT_HIDDEN);
};
this._element.classList.remove(CLASS_NAME_SHOW);
if (this._config.animation) {
- var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
+ $__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -181,7 +183,7 @@
Toast._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var $element = $(this);
+ var $element = $__default['default'](this);
var data = $element.data(DATA_KEY);
var _config = typeof config === 'object' && config;
@@ -227,11 +229,11 @@
*/
- $.fn[NAME] = Toast._jQueryInterface;
- $.fn[NAME].Constructor = Toast;
+ $__default['default'].fn[NAME] = Toast._jQueryInterface;
+ $__default['default'].fn[NAME].Constructor = Toast;
- $.fn[NAME].noConflict = function () {
- $.fn[NAME] = JQUERY_NO_CONFLICT;
+ $__default['default'].fn[NAME].noConflict = function () {
+ $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
return Toast._jQueryInterface;
};