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,22 +1,24 @@
1
1
  /*!
2
- * Bootstrap collapse.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap collapse.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.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = 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
  */
@@ -133,11 +135,7 @@
133
135
  return null;
134
136
  };
135
137
 
136
- 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; }
137
-
138
- 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; }
139
-
140
- 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; }
138
+ 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); }
141
139
 
142
140
  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); } }
143
141
 
@@ -149,7 +147,7 @@
149
147
  */
150
148
 
151
149
  var NAME = 'collapse';
152
- var VERSION = '5.0.0-alpha1';
150
+ var VERSION = '5.0.0-alpha2';
153
151
  var DATA_KEY = 'bs.collapse';
154
152
  var EVENT_KEY = "." + DATA_KEY;
155
153
  var DATA_API_KEY = '.data-api';
@@ -185,13 +183,13 @@
185
183
  this._isTransitioning = false;
186
184
  this._element = element;
187
185
  this._config = this._getConfig(config);
188
- this._triggerArray = SelectorEngine.find(SELECTOR_DATA_TOGGLE + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE + "[data-target=\"#" + element.id + "\"]"));
189
- var toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE);
186
+ this._triggerArray = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE + "[data-target=\"#" + element.id + "\"]"));
187
+ var toggleList = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE);
190
188
 
191
189
  for (var i = 0, len = toggleList.length; i < len; i++) {
192
190
  var elem = toggleList[i];
193
191
  var selector = getSelectorFromElement(elem);
194
- var filterElement = SelectorEngine.find(selector).filter(function (foundElem) {
192
+ var filterElement = SelectorEngine__default['default'].find(selector).filter(function (foundElem) {
195
193
  return foundElem === element;
196
194
  });
197
195
 
@@ -212,7 +210,7 @@
212
210
  this.toggle();
213
211
  }
214
212
 
215
- Data.setData(element, DATA_KEY, this);
213
+ Data__default['default'].setData(element, DATA_KEY, this);
216
214
  } // Getters
217
215
 
218
216
 
@@ -238,7 +236,7 @@
238
236
  var activesData;
239
237
 
240
238
  if (this._parent) {
241
- actives = SelectorEngine.find(SELECTOR_ACTIVES, this._parent).filter(function (elem) {
239
+ actives = SelectorEngine__default['default'].find(SELECTOR_ACTIVES, this._parent).filter(function (elem) {
242
240
  if (typeof _this._config.parent === 'string') {
243
241
  return elem.getAttribute('data-parent') === _this._config.parent;
244
242
  }
@@ -251,20 +249,20 @@
251
249
  }
252
250
  }
253
251
 
254
- var container = SelectorEngine.findOne(this._selector);
252
+ var container = SelectorEngine__default['default'].findOne(this._selector);
255
253
 
256
254
  if (actives) {
257
255
  var tempActiveData = actives.filter(function (elem) {
258
256
  return container !== elem;
259
257
  });
260
- activesData = tempActiveData[0] ? Data.getData(tempActiveData[0], DATA_KEY) : null;
258
+ activesData = tempActiveData[0] ? Data__default['default'].getData(tempActiveData[0], DATA_KEY) : null;
261
259
 
262
260
  if (activesData && activesData._isTransitioning) {
263
261
  return;
264
262
  }
265
263
  }
266
264
 
267
- var startEvent = EventHandler.trigger(this._element, EVENT_SHOW);
265
+ var startEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW);
268
266
 
269
267
  if (startEvent.defaultPrevented) {
270
268
  return;
@@ -277,7 +275,7 @@
277
275
  }
278
276
 
279
277
  if (!activesData) {
280
- Data.setData(elemActive, DATA_KEY, null);
278
+ Data__default['default'].setData(elemActive, DATA_KEY, null);
281
279
  }
282
280
  });
283
281
  }
@@ -308,13 +306,13 @@
308
306
 
309
307
  _this.setTransitioning(false);
310
308
 
311
- EventHandler.trigger(_this._element, EVENT_SHOWN);
309
+ EventHandler__default['default'].trigger(_this._element, EVENT_SHOWN);
312
310
  };
313
311
 
314
312
  var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
315
313
  var scrollSize = "scroll" + capitalizedDimension;
316
314
  var transitionDuration = getTransitionDurationFromElement(this._element);
317
- EventHandler.one(this._element, TRANSITION_END, complete);
315
+ EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
318
316
  emulateTransitionEnd(this._element, transitionDuration);
319
317
  this._element.style[dimension] = this._element[scrollSize] + "px";
320
318
  };
@@ -326,7 +324,7 @@
326
324
  return;
327
325
  }
328
326
 
329
- var startEvent = EventHandler.trigger(this._element, EVENT_HIDE);
327
+ var startEvent = EventHandler__default['default'].trigger(this._element, EVENT_HIDE);
330
328
 
331
329
  if (startEvent.defaultPrevented) {
332
330
  return;
@@ -364,12 +362,12 @@
364
362
 
365
363
  _this2._element.classList.add(CLASS_NAME_COLLAPSE);
366
364
 
367
- EventHandler.trigger(_this2._element, EVENT_HIDDEN);
365
+ EventHandler__default['default'].trigger(_this2._element, EVENT_HIDDEN);
368
366
  };
369
367
 
370
368
  this._element.style[dimension] = '';
371
369
  var transitionDuration = getTransitionDurationFromElement(this._element);
372
- EventHandler.one(this._element, TRANSITION_END, complete);
370
+ EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
373
371
  emulateTransitionEnd(this._element, transitionDuration);
374
372
  };
375
373
 
@@ -378,7 +376,7 @@
378
376
  };
379
377
 
380
378
  _proto.dispose = function dispose() {
381
- Data.removeData(this._element, DATA_KEY);
379
+ Data__default['default'].removeData(this._element, DATA_KEY);
382
380
  this._config = null;
383
381
  this._parent = null;
384
382
  this._element = null;
@@ -388,7 +386,7 @@
388
386
  ;
389
387
 
390
388
  _proto._getConfig = function _getConfig(config) {
391
- config = _objectSpread(_objectSpread({}, Default), config);
389
+ config = _extends({}, Default, config);
392
390
  config.toggle = Boolean(config.toggle); // Coerce string values
393
391
 
394
392
  typeCheckConfig(NAME, config, DefaultType);
@@ -396,9 +394,7 @@
396
394
  };
397
395
 
398
396
  _proto._getDimension = function _getDimension() {
399
- var hasWidth = this._element.classList.contains(WIDTH);
400
-
401
- return hasWidth ? WIDTH : HEIGHT;
397
+ return this._element.classList.contains(WIDTH) ? WIDTH : HEIGHT;
402
398
  };
403
399
 
404
400
  _proto._getParent = function _getParent() {
@@ -412,11 +408,11 @@
412
408
  parent = parent[0];
413
409
  }
414
410
  } else {
415
- parent = SelectorEngine.findOne(parent);
411
+ parent = SelectorEngine__default['default'].findOne(parent);
416
412
  }
417
413
 
418
414
  var selector = SELECTOR_DATA_TOGGLE + "[data-parent=\"" + parent + "\"]";
419
- SelectorEngine.find(selector, parent).forEach(function (element) {
415
+ SelectorEngine__default['default'].find(selector, parent).forEach(function (element) {
420
416
  var selected = getElementFromSelector(element);
421
417
 
422
418
  _this3._addAriaAndCollapsedClass(selected, [element]);
@@ -425,28 +421,27 @@
425
421
  };
426
422
 
427
423
  _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
428
- if (element) {
429
- var isOpen = element.classList.contains(CLASS_NAME_SHOW);
430
-
431
- if (triggerArray.length) {
432
- triggerArray.forEach(function (elem) {
433
- if (isOpen) {
434
- elem.classList.remove(CLASS_NAME_COLLAPSED);
435
- } else {
436
- elem.classList.add(CLASS_NAME_COLLAPSED);
437
- }
438
-
439
- elem.setAttribute('aria-expanded', isOpen);
440
- });
441
- }
424
+ if (!element || !triggerArray.length) {
425
+ return;
442
426
  }
427
+
428
+ var isOpen = element.classList.contains(CLASS_NAME_SHOW);
429
+ triggerArray.forEach(function (elem) {
430
+ if (isOpen) {
431
+ elem.classList.remove(CLASS_NAME_COLLAPSED);
432
+ } else {
433
+ elem.classList.add(CLASS_NAME_COLLAPSED);
434
+ }
435
+
436
+ elem.setAttribute('aria-expanded', isOpen);
437
+ });
443
438
  } // Static
444
439
  ;
445
440
 
446
441
  Collapse.collapseInterface = function collapseInterface(element, config) {
447
- var data = Data.getData(element, DATA_KEY);
442
+ var data = Data__default['default'].getData(element, DATA_KEY);
448
443
 
449
- var _config = _objectSpread(_objectSpread(_objectSpread({}, Default), Manipulator.getDataAttributes(element)), typeof config === 'object' && config ? config : {});
444
+ var _config = _extends({}, Default, Manipulator__default['default'].getDataAttributes(element), typeof config === 'object' && config ? config : {});
450
445
 
451
446
  if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
452
447
  _config.toggle = false;
@@ -472,7 +467,7 @@
472
467
  };
473
468
 
474
469
  Collapse.getInstance = function getInstance(element) {
475
- return Data.getData(element, DATA_KEY);
470
+ return Data__default['default'].getData(element, DATA_KEY);
476
471
  };
477
472
 
478
473
  _createClass(Collapse, null, [{
@@ -496,17 +491,17 @@
496
491
  */
497
492
 
498
493
 
499
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
494
+ EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
500
495
  // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
501
496
  if (event.target.tagName === 'A') {
502
497
  event.preventDefault();
503
498
  }
504
499
 
505
- var triggerData = Manipulator.getDataAttributes(this);
500
+ var triggerData = Manipulator__default['default'].getDataAttributes(this);
506
501
  var selector = getSelectorFromElement(this);
507
- var selectorElements = SelectorEngine.find(selector);
502
+ var selectorElements = SelectorEngine__default['default'].find(selector);
508
503
  selectorElements.forEach(function (element) {
509
- var data = Data.getData(element, DATA_KEY);
504
+ var data = Data__default['default'].getData(element, DATA_KEY);
510
505
  var config;
511
506
 
512
507
  if (data) {
@@ -1,17 +1,17 @@
1
1
  /*!
2
- * Bootstrap data.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap data.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() :
8
8
  typeof define === 'function' && define.amd ? define(factory) :
9
- (global = global || self, global.Data = factory());
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Data = factory());
10
10
  }(this, (function () { 'use strict';
11
11
 
12
12
  /**
13
13
  * --------------------------------------------------------------------------
14
- * Bootstrap (v5.0.0-alpha1): dom/data.js
14
+ * Bootstrap (v5.0.0-alpha2): dom/data.js
15
15
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
16
16
  * --------------------------------------------------------------------------
17
17
  */
@@ -26,22 +26,22 @@
26
26
  var id = 1;
27
27
  return {
28
28
  set: function set(element, key, data) {
29
- if (typeof element.key === 'undefined') {
30
- element.key = {
29
+ if (typeof element.bsKey === 'undefined') {
30
+ element.bsKey = {
31
31
  key: key,
32
32
  id: id
33
33
  };
34
34
  id++;
35
35
  }
36
36
 
37
- storeData[element.key.id] = data;
37
+ storeData[element.bsKey.id] = data;
38
38
  },
39
39
  get: function get(element, key) {
40
- if (!element || typeof element.key === 'undefined') {
40
+ if (!element || typeof element.bsKey === 'undefined') {
41
41
  return null;
42
42
  }
43
43
 
44
- var keyProperties = element.key;
44
+ var keyProperties = element.bsKey;
45
45
 
46
46
  if (keyProperties.key === key) {
47
47
  return storeData[keyProperties.id];
@@ -50,15 +50,15 @@
50
50
  return null;
51
51
  },
52
52
  delete: function _delete(element, key) {
53
- if (typeof element.key === 'undefined') {
53
+ if (typeof element.bsKey === 'undefined') {
54
54
  return;
55
55
  }
56
56
 
57
- var keyProperties = element.key;
57
+ var keyProperties = element.bsKey;
58
58
 
59
59
  if (keyProperties.key === key) {
60
60
  delete storeData[keyProperties.id];
61
- delete element.key;
61
+ delete element.bsKey;
62
62
  }
63
63
  }
64
64
  };
@@ -1,17 +1,17 @@
1
1
  /*!
2
- * Bootstrap event-handler.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap event-handler.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('./polyfill.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) :
9
- (global = global || self, global.EventHandler = factory(global.Polyfill));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EventHandler = factory(global.Polyfill));
10
10
  }(this, (function (polyfill_js) { 'use strict';
11
11
 
12
12
  /**
13
13
  * --------------------------------------------------------------------------
14
- * Bootstrap (v5.0.0-alpha1): util/index.js
14
+ * Bootstrap (v5.0.0-alpha2): util/index.js
15
15
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
16
16
  * --------------------------------------------------------------------------
17
17
  */
@@ -29,7 +29,7 @@
29
29
 
30
30
  /**
31
31
  * --------------------------------------------------------------------------
32
- * Bootstrap (v5.0.0-alpha1): dom/event-handler.js
32
+ * Bootstrap (v5.0.0-alpha2): dom/event-handler.js
33
33
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
34
34
  * --------------------------------------------------------------------------
35
35
  */
@@ -70,6 +70,8 @@
70
70
 
71
71
  function bootstrapHandler(element, fn) {
72
72
  return function handler(event) {
73
+ event.delegateTarget = element;
74
+
73
75
  if (handler.oneOff) {
74
76
  EventHandler.off(element, event.type, fn);
75
77
  }
@@ -85,6 +87,8 @@
85
87
  for (var target = event.target; target && target !== this; target = target.parentNode) {
86
88
  for (var i = domElements.length; i--;) {
87
89
  if (domElements[i] === target) {
90
+ event.delegateTarget = target;
91
+
88
92
  if (handler.oneOff) {
89
93
  EventHandler.off(element, event.type, fn);
90
94
  }
@@ -269,7 +273,7 @@
269
273
  bubbles: bubbles,
270
274
  cancelable: true
271
275
  });
272
- } // merge custom informations in our event
276
+ } // merge custom information in our event
273
277
 
274
278
 
275
279
  if (typeof args !== 'undefined') {
@@ -1,23 +1,19 @@
1
1
  /*!
2
- * Bootstrap manipulator.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap manipulator.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() :
8
8
  typeof define === 'function' && define.amd ? define(factory) :
9
- (global = global || self, global.Manipulator = factory());
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Manipulator = factory());
10
10
  }(this, (function () { 'use strict';
11
11
 
12
- 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; }
13
-
14
- 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; }
15
-
16
- 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; }
12
+ 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); }
17
13
 
18
14
  /**
19
15
  * --------------------------------------------------------------------------
20
- * Bootstrap (v5.0.0-alpha1): dom/manipulator.js
16
+ * Bootstrap (v5.0.0-alpha2): dom/manipulator.js
21
17
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
22
18
  * --------------------------------------------------------------------------
23
19
  */
@@ -59,7 +55,7 @@
59
55
  return {};
60
56
  }
61
57
 
62
- var attributes = _objectSpread({}, element.dataset);
58
+ var attributes = _extends({}, element.dataset);
63
59
 
64
60
  Object.keys(attributes).forEach(function (key) {
65
61
  attributes[key] = normalizeData(attributes[key]);
@@ -1,17 +1,17 @@
1
1
  /*!
2
- * Bootstrap polyfill.js v5.0.0-alpha1 (https://getbootstrap.com/)
2
+ * Bootstrap polyfill.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' ? factory(exports) :
8
8
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
9
- (global = global || self, factory(global.Polyfill = {}));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Polyfill = {}));
10
10
  }(this, (function (exports) { 'use strict';
11
11
 
12
12
  /**
13
13
  * --------------------------------------------------------------------------
14
- * Bootstrap (v5.0.0-alpha1): util/index.js
14
+ * Bootstrap (v5.0.0-alpha2): util/index.js
15
15
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
16
16
  * --------------------------------------------------------------------------
17
17
  */