bootstrap 5.0.0.alpha1 → 5.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/README.md +1 -1
  4. data/assets/javascripts/bootstrap-sprockets.js +6 -6
  5. data/assets/javascripts/bootstrap.js +142 -155
  6. data/assets/javascripts/bootstrap.min.js +2 -2
  7. data/assets/javascripts/bootstrap/alert.js +17 -19
  8. data/assets/javascripts/bootstrap/button.js +14 -12
  9. data/assets/javascripts/bootstrap/carousel.js +47 -49
  10. data/assets/javascripts/bootstrap/collapse.js +50 -55
  11. data/assets/javascripts/bootstrap/dom/data.js +11 -11
  12. data/assets/javascripts/bootstrap/dom/event-handler.js +9 -5
  13. data/assets/javascripts/bootstrap/dom/manipulator.js +5 -9
  14. data/assets/javascripts/bootstrap/dom/polyfill.js +3 -3
  15. data/assets/javascripts/bootstrap/dom/selector-engine.js +3 -3
  16. data/assets/javascripts/bootstrap/dropdown.js +46 -48
  17. data/assets/javascripts/bootstrap/modal.js +77 -65
  18. data/assets/javascripts/bootstrap/popover.js +21 -23
  19. data/assets/javascripts/bootstrap/scrollspy.js +33 -39
  20. data/assets/javascripts/bootstrap/tab.js +24 -22
  21. data/assets/javascripts/bootstrap/toast.js +32 -28
  22. data/assets/javascripts/bootstrap/tooltip.js +67 -66
  23. data/assets/stylesheets/_bootstrap-grid.scss +2 -2
  24. data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
  25. data/assets/stylesheets/_bootstrap.scss +1 -1
  26. data/assets/stylesheets/bootstrap/_alert.scss +3 -4
  27. data/assets/stylesheets/bootstrap/_card.scss +6 -4
  28. data/assets/stylesheets/bootstrap/_carousel.scss +17 -0
  29. data/assets/stylesheets/bootstrap/_close.scss +25 -20
  30. data/assets/stylesheets/bootstrap/_dropdown.scss +42 -1
  31. data/assets/stylesheets/bootstrap/_functions.scss +4 -1
  32. data/assets/stylesheets/bootstrap/_helpers.scss +2 -2
  33. data/assets/stylesheets/bootstrap/_list-group.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_mixins.scss +1 -1
  35. data/assets/stylesheets/bootstrap/_modal.scss +7 -7
  36. data/assets/stylesheets/bootstrap/_nav.scss +4 -0
  37. data/assets/stylesheets/bootstrap/_navbar.scss +1 -0
  38. data/assets/stylesheets/bootstrap/_pagination.scss +3 -0
  39. data/assets/stylesheets/bootstrap/_reboot.scss +7 -6
  40. data/assets/stylesheets/bootstrap/_spinners.scss +2 -2
  41. data/assets/stylesheets/bootstrap/_tables.scss +1 -1
  42. data/assets/stylesheets/bootstrap/_toasts.scss +6 -2
  43. data/assets/stylesheets/bootstrap/_utilities.scss +29 -1
  44. data/assets/stylesheets/bootstrap/_variables.scss +92 -44
  45. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
  46. data/assets/stylesheets/bootstrap/forms/_form-check.scss +1 -1
  47. data/assets/stylesheets/bootstrap/forms/_input-group.scss +2 -2
  48. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +1 -1
  49. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
  50. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
  51. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +9 -9
  52. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
  53. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +4 -3
  54. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +11 -8
  55. data/assets/stylesheets/bootstrap/mixins/_container.scss +5 -3
  56. data/assets/stylesheets/bootstrap/mixins/_grid.scss +6 -7
  57. data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
  58. data/assets/stylesheets/bootstrap/mixins/{_screen-reader.scss → _visually-hidden.scss} +5 -5
  59. data/lib/bootstrap/version.rb +2 -2
  60. metadata +5 -5
  61. data/assets/stylesheets/bootstrap/helpers/_embed.scss +0 -31
  62. data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +0 -8
@@ -1,21 +1,23 @@
1
1
  /*!
2
- * Bootstrap popover.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap popover.js v5.0.0-alpha2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/selector-engine.js'), require('./tooltip.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/selector-engine.js', './tooltip.js'], factory) :
9
- (global = global || self, global.Popover = factory(global.Data, global.SelectorEngine, global.Tooltip));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Popover = factory(global.Data, global.SelectorEngine, global.Tooltip));
10
10
  }(this, (function (Data, SelectorEngine, Tooltip) { 'use strict';
11
11
 
12
- Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
13
- SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
14
- Tooltip = Tooltip && Object.prototype.hasOwnProperty.call(Tooltip, 'default') ? Tooltip['default'] : Tooltip;
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
15
+ var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
16
+ var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
15
17
 
16
18
  /**
17
19
  * --------------------------------------------------------------------------
18
- * Bootstrap (v5.0.0-alpha1): util/index.js
20
+ * Bootstrap (v5.0.0-alpha2): util/index.js
19
21
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
20
22
  * --------------------------------------------------------------------------
21
23
  */
@@ -37,11 +39,7 @@
37
39
 
38
40
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
39
41
 
40
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
41
-
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
43
-
44
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
42
+ 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); }
45
43
  /**
46
44
  * ------------------------------------------------------------------------
47
45
  * Constants
@@ -49,20 +47,20 @@
49
47
  */
50
48
 
51
49
  var NAME = 'popover';
52
- var VERSION = '5.0.0-alpha1';
50
+ var VERSION = '5.0.0-alpha2';
53
51
  var DATA_KEY = 'bs.popover';
54
52
  var EVENT_KEY = "." + DATA_KEY;
55
53
  var CLASS_PREFIX = 'bs-popover';
56
54
  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
57
55
 
58
- var Default = _objectSpread(_objectSpread({}, Tooltip.Default), {}, {
56
+ var Default = _extends({}, Tooltip__default['default'].Default, {
59
57
  placement: 'right',
60
58
  trigger: 'click',
61
59
  content: '',
62
60
  template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
63
61
  });
64
62
 
65
- var DefaultType = _objectSpread(_objectSpread({}, Tooltip.DefaultType), {}, {
63
+ var DefaultType = _extends({}, Tooltip__default['default'].DefaultType, {
66
64
  content: '(string|element|function)'
67
65
  });
68
66
 
@@ -105,7 +103,7 @@
105
103
  _proto.setContent = function setContent() {
106
104
  var tip = this.getTipElement(); // we use append for html objects to maintain js events
107
105
 
108
- this.setElementContent(SelectorEngine.findOne(SELECTOR_TITLE, tip), this.getTitle());
106
+ this.setElementContent(SelectorEngine__default['default'].findOne(SELECTOR_TITLE, tip), this.getTitle());
109
107
 
110
108
  var content = this._getContent();
111
109
 
@@ -113,14 +111,14 @@
113
111
  content = content.call(this.element);
114
112
  }
115
113
 
116
- this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
114
+ this.setElementContent(SelectorEngine__default['default'].findOne(SELECTOR_CONTENT, tip), content);
117
115
  tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW);
118
- };
116
+ } // Private
117
+ ;
119
118
 
120
119
  _proto._addAttachmentClass = function _addAttachmentClass(attachment) {
121
120
  this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
122
- } // Private
123
- ;
121
+ };
124
122
 
125
123
  _proto._getContent = function _getContent() {
126
124
  return this.element.getAttribute('data-content') || this.config.content;
@@ -142,7 +140,7 @@
142
140
 
143
141
  Popover.jQueryInterface = function jQueryInterface(config) {
144
142
  return this.each(function () {
145
- var data = Data.getData(this, DATA_KEY);
143
+ var data = Data__default['default'].getData(this, DATA_KEY);
146
144
 
147
145
  var _config = typeof config === 'object' ? config : null;
148
146
 
@@ -152,7 +150,7 @@
152
150
 
153
151
  if (!data) {
154
152
  data = new Popover(this, _config);
155
- Data.setData(this, DATA_KEY, data);
153
+ Data__default['default'].setData(this, DATA_KEY, data);
156
154
  }
157
155
 
158
156
  if (typeof config === 'string') {
@@ -166,7 +164,7 @@
166
164
  };
167
165
 
168
166
  Popover.getInstance = function getInstance(element) {
169
- return Data.getData(element, DATA_KEY);
167
+ return Data__default['default'].getData(element, DATA_KEY);
170
168
  };
171
169
 
172
170
  _createClass(Popover, null, [{
@@ -208,7 +206,7 @@
208
206
  }]);
209
207
 
210
208
  return Popover;
211
- }(Tooltip);
209
+ }(Tooltip__default['default']);
212
210
 
213
211
  var $ = getjQuery();
214
212
  /**
@@ -1,22 +1,24 @@
1
1
  /*!
2
- * Bootstrap scrollspy.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap scrollspy.js v5.0.0-alpha2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
9
- (global = global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
10
10
  }(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
11
11
 
12
- Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
13
- EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
14
- Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
15
- SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
15
+ var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
16
+ var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
17
+ var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
16
18
 
17
19
  /**
18
20
  * --------------------------------------------------------------------------
19
- * Bootstrap (v5.0.0-alpha1): util/index.js
21
+ * Bootstrap (v5.0.0-alpha2): util/index.js
20
22
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
21
23
  * --------------------------------------------------------------------------
22
24
  */
@@ -92,11 +94,7 @@
92
94
  return null;
93
95
  };
94
96
 
95
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
96
-
97
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
98
-
99
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
97
+ 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); }
100
98
 
101
99
  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); } }
102
100
 
@@ -108,7 +106,7 @@
108
106
  */
109
107
 
110
108
  var NAME = 'scrollspy';
111
- var VERSION = '5.0.0-alpha1';
109
+ var VERSION = '5.0.0-alpha2';
112
110
  var DATA_KEY = 'bs.scrollspy';
113
111
  var EVENT_KEY = "." + DATA_KEY;
114
112
  var DATA_API_KEY = '.data-api';
@@ -149,19 +147,19 @@
149
147
  this._element = element;
150
148
  this._scrollElement = element.tagName === 'BODY' ? window : element;
151
149
  this._config = this._getConfig(config);
152
- this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM);
150
+ this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + ", " + this._config.target + " " + SELECTOR_LIST_ITEMS + ", " + this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM;
153
151
  this._offsets = [];
154
152
  this._targets = [];
155
153
  this._activeTarget = null;
156
154
  this._scrollHeight = 0;
157
- EventHandler.on(this._scrollElement, EVENT_SCROLL, function (event) {
155
+ EventHandler__default['default'].on(this._scrollElement, EVENT_SCROLL, function (event) {
158
156
  return _this._process(event);
159
157
  });
160
158
  this.refresh();
161
159
 
162
160
  this._process();
163
161
 
164
- Data.setData(element, DATA_KEY, this);
162
+ Data__default['default'].setData(element, DATA_KEY, this);
165
163
  } // Getters
166
164
 
167
165
 
@@ -177,20 +175,16 @@
177
175
  this._offsets = [];
178
176
  this._targets = [];
179
177
  this._scrollHeight = this._getScrollHeight();
180
- var targets = SelectorEngine.find(this._selector);
178
+ var targets = SelectorEngine__default['default'].find(this._selector);
181
179
  targets.map(function (element) {
182
- var target;
183
180
  var targetSelector = getSelectorFromElement(element);
184
-
185
- if (targetSelector) {
186
- target = SelectorEngine.findOne(targetSelector);
187
- }
181
+ var target = targetSelector ? SelectorEngine__default['default'].findOne(targetSelector) : null;
188
182
 
189
183
  if (target) {
190
184
  var targetBCR = target.getBoundingClientRect();
191
185
 
192
186
  if (targetBCR.width || targetBCR.height) {
193
- return [Manipulator[offsetMethod](target).top + offsetBase, targetSelector];
187
+ return [Manipulator__default['default'][offsetMethod](target).top + offsetBase, targetSelector];
194
188
  }
195
189
  }
196
190
 
@@ -207,8 +201,8 @@
207
201
  };
208
202
 
209
203
  _proto.dispose = function dispose() {
210
- Data.removeData(this._element, DATA_KEY);
211
- EventHandler.off(this._scrollElement, EVENT_KEY);
204
+ Data__default['default'].removeData(this._element, DATA_KEY);
205
+ EventHandler__default['default'].off(this._scrollElement, EVENT_KEY);
212
206
  this._element = null;
213
207
  this._scrollElement = null;
214
208
  this._config = null;
@@ -221,7 +215,7 @@
221
215
  ;
222
216
 
223
217
  _proto._getConfig = function _getConfig(config) {
224
- config = _objectSpread(_objectSpread({}, Default), typeof config === 'object' && config ? config : {});
218
+ config = _extends({}, Default, typeof config === 'object' && config ? config : {});
225
219
 
226
220
  if (typeof config.target !== 'string' && isElement(config.target)) {
227
221
  var id = config.target.id;
@@ -297,36 +291,36 @@
297
291
  return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
298
292
  });
299
293
 
300
- var link = SelectorEngine.findOne(queries.join(','));
294
+ var link = SelectorEngine__default['default'].findOne(queries.join(','));
301
295
 
302
296
  if (link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {
303
- SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE, link.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE);
297
+ SelectorEngine__default['default'].findOne(SELECTOR_DROPDOWN_TOGGLE, link.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE);
304
298
  link.classList.add(CLASS_NAME_ACTIVE);
305
299
  } else {
306
300
  // Set triggered link as active
307
301
  link.classList.add(CLASS_NAME_ACTIVE);
308
- SelectorEngine.parents(link, SELECTOR_NAV_LIST_GROUP).forEach(function (listGroup) {
302
+ SelectorEngine__default['default'].parents(link, SELECTOR_NAV_LIST_GROUP).forEach(function (listGroup) {
309
303
  // Set triggered links parents as active
310
304
  // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
311
- SelectorEngine.prev(listGroup, SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).forEach(function (item) {
305
+ SelectorEngine__default['default'].prev(listGroup, SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).forEach(function (item) {
312
306
  return item.classList.add(CLASS_NAME_ACTIVE);
313
307
  }); // Handle special case when .nav-link is inside .nav-item
314
308
 
315
- SelectorEngine.prev(listGroup, SELECTOR_NAV_ITEMS).forEach(function (navItem) {
316
- SelectorEngine.children(navItem, SELECTOR_NAV_LINKS).forEach(function (item) {
309
+ SelectorEngine__default['default'].prev(listGroup, SELECTOR_NAV_ITEMS).forEach(function (navItem) {
310
+ SelectorEngine__default['default'].children(navItem, SELECTOR_NAV_LINKS).forEach(function (item) {
317
311
  return item.classList.add(CLASS_NAME_ACTIVE);
318
312
  });
319
313
  });
320
314
  });
321
315
  }
322
316
 
323
- EventHandler.trigger(this._scrollElement, EVENT_ACTIVATE, {
317
+ EventHandler__default['default'].trigger(this._scrollElement, EVENT_ACTIVATE, {
324
318
  relatedTarget: target
325
319
  });
326
320
  };
327
321
 
328
322
  _proto._clear = function _clear() {
329
- SelectorEngine.find(this._selector).filter(function (node) {
323
+ SelectorEngine__default['default'].find(this._selector).filter(function (node) {
330
324
  return node.classList.contains(CLASS_NAME_ACTIVE);
331
325
  }).forEach(function (node) {
332
326
  return node.classList.remove(CLASS_NAME_ACTIVE);
@@ -336,7 +330,7 @@
336
330
 
337
331
  ScrollSpy.jQueryInterface = function jQueryInterface(config) {
338
332
  return this.each(function () {
339
- var data = Data.getData(this, DATA_KEY);
333
+ var data = Data__default['default'].getData(this, DATA_KEY);
340
334
 
341
335
  var _config = typeof config === 'object' && config;
342
336
 
@@ -355,7 +349,7 @@
355
349
  };
356
350
 
357
351
  ScrollSpy.getInstance = function getInstance(element) {
358
- return Data.getData(element, DATA_KEY);
352
+ return Data__default['default'].getData(element, DATA_KEY);
359
353
  };
360
354
 
361
355
  _createClass(ScrollSpy, null, [{
@@ -379,9 +373,9 @@
379
373
  */
380
374
 
381
375
 
382
- EventHandler.on(window, EVENT_LOAD_DATA_API, function () {
383
- SelectorEngine.find(SELECTOR_DATA_SPY).forEach(function (spy) {
384
- return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
376
+ EventHandler__default['default'].on(window, EVENT_LOAD_DATA_API, function () {
377
+ SelectorEngine__default['default'].find(SELECTOR_DATA_SPY).forEach(function (spy) {
378
+ return new ScrollSpy(spy, Manipulator__default['default'].getDataAttributes(spy));
385
379
  });
386
380
  });
387
381
  var $ = getjQuery();
@@ -1,21 +1,23 @@
1
1
  /*!
2
- * Bootstrap tab.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap tab.js v5.0.0-alpha2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/selector-engine.js'], factory) :
9
- (global = global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
10
10
  }(this, (function (Data, EventHandler, SelectorEngine) { 'use strict';
11
11
 
12
- Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
13
- EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
14
- SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
15
+ var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
16
+ var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
15
17
 
16
18
  /**
17
19
  * --------------------------------------------------------------------------
18
- * Bootstrap (v5.0.0-alpha1): util/index.js
20
+ * Bootstrap (v5.0.0-alpha2): util/index.js
19
21
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
20
22
  * --------------------------------------------------------------------------
21
23
  */
@@ -108,7 +110,7 @@
108
110
  */
109
111
 
110
112
  var NAME = 'tab';
111
- var VERSION = '5.0.0-alpha1';
113
+ var VERSION = '5.0.0-alpha2';
112
114
  var DATA_KEY = 'bs.tab';
113
115
  var EVENT_KEY = "." + DATA_KEY;
114
116
  var DATA_API_KEY = '.data-api';
@@ -138,7 +140,7 @@
138
140
  var Tab = /*#__PURE__*/function () {
139
141
  function Tab(element) {
140
142
  this._element = element;
141
- Data.setData(this._element, DATA_KEY, this);
143
+ Data__default['default'].setData(this._element, DATA_KEY, this);
142
144
  } // Getters
143
145
 
144
146
 
@@ -159,19 +161,19 @@
159
161
 
160
162
  if (listElement) {
161
163
  var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
162
- previous = SelectorEngine.find(itemSelector, listElement);
164
+ previous = SelectorEngine__default['default'].find(itemSelector, listElement);
163
165
  previous = previous[previous.length - 1];
164
166
  }
165
167
 
166
168
  var hideEvent = null;
167
169
 
168
170
  if (previous) {
169
- hideEvent = EventHandler.trigger(previous, EVENT_HIDE, {
171
+ hideEvent = EventHandler__default['default'].trigger(previous, EVENT_HIDE, {
170
172
  relatedTarget: this._element
171
173
  });
172
174
  }
173
175
 
174
- var showEvent = EventHandler.trigger(this._element, EVENT_SHOW, {
176
+ var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, {
175
177
  relatedTarget: previous
176
178
  });
177
179
 
@@ -182,10 +184,10 @@
182
184
  this._activate(this._element, listElement);
183
185
 
184
186
  var complete = function complete() {
185
- EventHandler.trigger(previous, EVENT_HIDDEN, {
187
+ EventHandler__default['default'].trigger(previous, EVENT_HIDDEN, {
186
188
  relatedTarget: _this._element
187
189
  });
188
- EventHandler.trigger(_this._element, EVENT_SHOWN, {
190
+ EventHandler__default['default'].trigger(_this._element, EVENT_SHOWN, {
189
191
  relatedTarget: previous
190
192
  });
191
193
  };
@@ -198,7 +200,7 @@
198
200
  };
199
201
 
200
202
  _proto.dispose = function dispose() {
201
- Data.removeData(this._element, DATA_KEY);
203
+ Data__default['default'].removeData(this._element, DATA_KEY);
202
204
  this._element = null;
203
205
  } // Private
204
206
  ;
@@ -206,7 +208,7 @@
206
208
  _proto._activate = function _activate(element, container, callback) {
207
209
  var _this2 = this;
208
210
 
209
- var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE);
211
+ var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine__default['default'].find(SELECTOR_ACTIVE_UL, container) : SelectorEngine__default['default'].children(container, SELECTOR_ACTIVE);
210
212
  var active = activeElements[0];
211
213
  var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE);
212
214
 
@@ -217,7 +219,7 @@
217
219
  if (active && isTransitioning) {
218
220
  var transitionDuration = getTransitionDurationFromElement(active);
219
221
  active.classList.remove(CLASS_NAME_SHOW);
220
- EventHandler.one(active, TRANSITION_END, complete);
222
+ EventHandler__default['default'].one(active, TRANSITION_END, complete);
221
223
  emulateTransitionEnd(active, transitionDuration);
222
224
  } else {
223
225
  complete();
@@ -227,7 +229,7 @@
227
229
  _proto._transitionComplete = function _transitionComplete(element, active, callback) {
228
230
  if (active) {
229
231
  active.classList.remove(CLASS_NAME_ACTIVE);
230
- var dropdownChild = SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD, active.parentNode);
232
+ var dropdownChild = SelectorEngine__default['default'].findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD, active.parentNode);
231
233
 
232
234
  if (dropdownChild) {
233
235
  dropdownChild.classList.remove(CLASS_NAME_ACTIVE);
@@ -254,7 +256,7 @@
254
256
  var dropdownElement = element.closest(SELECTOR_DROPDOWN);
255
257
 
256
258
  if (dropdownElement) {
257
- SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE).forEach(function (dropdown) {
259
+ SelectorEngine__default['default'].find(SELECTOR_DROPDOWN_TOGGLE).forEach(function (dropdown) {
258
260
  return dropdown.classList.add(CLASS_NAME_ACTIVE);
259
261
  });
260
262
  }
@@ -270,7 +272,7 @@
270
272
 
271
273
  Tab.jQueryInterface = function jQueryInterface(config) {
272
274
  return this.each(function () {
273
- var data = Data.getData(this, DATA_KEY) || new Tab(this);
275
+ var data = Data__default['default'].getData(this, DATA_KEY) || new Tab(this);
274
276
 
275
277
  if (typeof config === 'string') {
276
278
  if (typeof data[config] === 'undefined') {
@@ -283,7 +285,7 @@
283
285
  };
284
286
 
285
287
  Tab.getInstance = function getInstance(element) {
286
- return Data.getData(element, DATA_KEY);
288
+ return Data__default['default'].getData(element, DATA_KEY);
287
289
  };
288
290
 
289
291
  _createClass(Tab, null, [{
@@ -302,9 +304,9 @@
302
304
  */
303
305
 
304
306
 
305
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
307
+ EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
306
308
  event.preventDefault();
307
- var data = Data.getData(this, DATA_KEY) || new Tab(this);
309
+ var data = Data__default['default'].getData(this, DATA_KEY) || new Tab(this);
308
310
  data.show();
309
311
  });
310
312
  var $ = getjQuery();