aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/js/dist/scrollspy.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/scrollspy.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/scrollspy.js')
-rw-r--r--vendor/twbs/bootstrap/js/dist/scrollspy.js52
1 files changed, 27 insertions, 25 deletions
diff --git a/vendor/twbs/bootstrap/js/dist/scrollspy.js b/vendor/twbs/bootstrap/js/dist/scrollspy.js
index b1e4b2aff..366519656 100644
--- a/vendor/twbs/bootstrap/js/dist/scrollspy.js
+++ b/vendor/twbs/bootstrap/js/dist/scrollspy.js
@@ -1,5 +1,5 @@
/*!
- * Bootstrap scrollspy.js v4.5.2 (https://getbootstrap.com/)
+ * Bootstrap scrollspy.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.ScrollSpy = 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,11 +26,11 @@
*/
var NAME = 'scrollspy';
- var VERSION = '4.5.2';
+ var VERSION = '4.5.3';
var DATA_KEY = 'bs.scrollspy';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
- var JQUERY_NO_CONFLICT = $.fn[NAME];
+ var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
var Default = {
offset: 10,
method: 'auto',
@@ -72,7 +74,7 @@
this._targets = [];
this._activeTarget = null;
this._scrollHeight = 0;
- $(this._scrollElement).on(EVENT_SCROLL, function (event) {
+ $__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
return _this._process(event);
});
this.refresh();
@@ -96,7 +98,7 @@
var targets = [].slice.call(document.querySelectorAll(this._selector));
targets.map(function (element) {
var target;
- var targetSelector = Util.getSelectorFromElement(element);
+ var targetSelector = Util__default['default'].getSelectorFromElement(element);
if (targetSelector) {
target = document.querySelector(targetSelector);
@@ -107,7 +109,7 @@
if (targetBCR.width || targetBCR.height) {
// TODO (fat): remove sketch reliance on jQuery position/offset
- return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
+ return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
}
}
@@ -124,8 +126,8 @@
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY);
- $(this._scrollElement).off(EVENT_KEY);
+ $__default['default'].removeData(this._element, DATA_KEY);
+ $__default['default'](this._scrollElement).off(EVENT_KEY);
this._element = null;
this._scrollElement = null;
this._config = null;
@@ -140,18 +142,18 @@
_proto._getConfig = function _getConfig(config) {
config = _extends({}, Default, typeof config === 'object' && config ? config : {});
- if (typeof config.target !== 'string' && Util.isElement(config.target)) {
- var id = $(config.target).attr('id');
+ if (typeof config.target !== 'string' && Util__default['default'].isElement(config.target)) {
+ var id = $__default['default'](config.target).attr('id');
if (!id) {
- id = Util.getUID(NAME);
- $(config.target).attr('id', id);
+ id = Util__default['default'].getUID(NAME);
+ $__default['default'](config.target).attr('id', id);
}
config.target = "#" + id;
}
- Util.typeCheckConfig(NAME, config, DefaultType);
+ Util__default['default'].typeCheckConfig(NAME, config, DefaultType);
return config;
};
@@ -214,7 +216,7 @@
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
});
- var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
+ var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE);
@@ -229,7 +231,7 @@
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE);
}
- $(this._scrollElement).trigger(EVENT_ACTIVATE, {
+ $__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
relatedTarget: target
});
};
@@ -245,13 +247,13 @@
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY);
+ var data = $__default['default'](this).data(DATA_KEY);
var _config = typeof config === 'object' && config;
if (!data) {
data = new ScrollSpy(this, _config);
- $(this).data(DATA_KEY, data);
+ $__default['default'](this).data(DATA_KEY, data);
}
if (typeof config === 'string') {
@@ -285,12 +287,12 @@
*/
- $(window).on(EVENT_LOAD_DATA_API, function () {
+ $__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
var scrollSpysLength = scrollSpys.length;
for (var i = scrollSpysLength; i--;) {
- var $spy = $(scrollSpys[i]);
+ var $spy = $__default['default'](scrollSpys[i]);
ScrollSpy._jQueryInterface.call($spy, $spy.data());
}
@@ -301,11 +303,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME] = ScrollSpy._jQueryInterface;
- $.fn[NAME].Constructor = ScrollSpy;
+ $__default['default'].fn[NAME] = ScrollSpy._jQueryInterface;
+ $__default['default'].fn[NAME].Constructor = ScrollSpy;
- $.fn[NAME].noConflict = function () {
- $.fn[NAME] = JQUERY_NO_CONFLICT;
+ $__default['default'].fn[NAME].noConflict = function () {
+ $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
return ScrollSpy._jQueryInterface;
};