bootstrap 4.5.0 → 4.5.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap might be problematic. Click here for more details.

Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap-sprockets.js +5 -5
  4. data/assets/javascripts/bootstrap.js +79 -89
  5. data/assets/javascripts/bootstrap.min.js +3 -3
  6. data/assets/javascripts/bootstrap/alert.js +6 -19
  7. data/assets/javascripts/bootstrap/button.js +8 -23
  8. data/assets/javascripts/bootstrap/carousel.js +11 -71
  9. data/assets/javascripts/bootstrap/collapse.js +9 -69
  10. data/assets/javascripts/bootstrap/dropdown.js +10 -70
  11. data/assets/javascripts/bootstrap/modal.js +28 -71
  12. data/assets/javascripts/bootstrap/popover.js +10 -74
  13. data/assets/javascripts/bootstrap/scrollspy.js +8 -68
  14. data/assets/javascripts/bootstrap/tab.js +6 -19
  15. data/assets/javascripts/bootstrap/toast.js +16 -70
  16. data/assets/javascripts/bootstrap/tooltip.js +15 -75
  17. data/assets/javascripts/bootstrap/util.js +5 -5
  18. data/assets/stylesheets/_bootstrap-grid.scss +2 -2
  19. data/assets/stylesheets/_bootstrap-reboot.scss +2 -2
  20. data/assets/stylesheets/_bootstrap.scss +2 -2
  21. data/assets/stylesheets/bootstrap/_card.scss +10 -6
  22. data/assets/stylesheets/bootstrap/_custom-forms.scss +5 -4
  23. data/assets/stylesheets/bootstrap/_grid.scss +1 -5
  24. data/assets/stylesheets/bootstrap/_modal.scss +0 -1
  25. data/assets/stylesheets/bootstrap/_nav.scss +2 -0
  26. data/assets/stylesheets/bootstrap/_reboot.scss +1 -1
  27. data/assets/stylesheets/bootstrap/_toasts.scss +4 -2
  28. data/assets/stylesheets/bootstrap/_variables.scss +8 -15
  29. data/assets/stylesheets/bootstrap/mixins/_forms.scss +1 -0
  30. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -1
  31. data/assets/stylesheets/bootstrap/mixins/_grid.scss +7 -7
  32. data/assets/stylesheets/bootstrap/utilities/_text.scss +2 -1
  33. data/lib/bootstrap/version.rb +2 -2
  34. metadata +2 -2
@@ -1,82 +1,22 @@
1
1
  /*!
2
- * Bootstrap modal.js v4.5.0 (https://getbootstrap.com/)
2
+ * Bootstrap modal.js v4.5.2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
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('jquery'), require('./util.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
9
- (global = global || self, global.Modal = factory(global.jQuery, global.Util));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.jQuery, global.Util));
10
10
  }(this, (function ($, Util) { 'use strict';
11
11
 
12
12
  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
13
  Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
14
14
 
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
23
- }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- return Constructor;
29
- }
30
-
31
- function _defineProperty(obj, key, value) {
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
-
43
- return obj;
44
- }
45
-
46
- function ownKeys(object, enumerableOnly) {
47
- var keys = Object.keys(object);
48
-
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
52
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
- });
54
- keys.push.apply(keys, symbols);
55
- }
56
-
57
- return keys;
58
- }
15
+ 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); }
59
16
 
60
- function _objectSpread2(target) {
61
- for (var i = 1; i < arguments.length; i++) {
62
- var source = arguments[i] != null ? arguments[i] : {};
63
-
64
- if (i % 2) {
65
- ownKeys(Object(source), true).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- });
68
- } else if (Object.getOwnPropertyDescriptors) {
69
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
- } else {
71
- ownKeys(Object(source)).forEach(function (key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
75
- }
76
-
77
- return target;
78
- }
17
+ 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); } }
79
18
 
19
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
80
20
  /**
81
21
  * ------------------------------------------------------------------------
82
22
  * Constants
@@ -84,7 +24,7 @@
84
24
  */
85
25
 
86
26
  var NAME = 'modal';
87
- var VERSION = '4.5.0';
27
+ var VERSION = '4.5.2';
88
28
  var DATA_KEY = 'bs.modal';
89
29
  var EVENT_KEY = "." + DATA_KEY;
90
30
  var DATA_API_KEY = '.data-api';
@@ -276,7 +216,7 @@
276
216
  ;
277
217
 
278
218
  _proto._getConfig = function _getConfig(config) {
279
- config = _objectSpread2(_objectSpread2({}, Default), config);
219
+ config = _extends({}, Default, config);
280
220
  Util.typeCheckConfig(NAME, config, DefaultType);
281
221
  return config;
282
222
  };
@@ -292,11 +232,24 @@
292
232
  return;
293
233
  }
294
234
 
235
+ var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
236
+
237
+ if (!isModalOverflowing) {
238
+ this._element.style.overflowY = 'hidden';
239
+ }
240
+
295
241
  this._element.classList.add(CLASS_NAME_STATIC);
296
242
 
297
- var modalTransitionDuration = Util.getTransitionDurationFromElement(this._element);
243
+ var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
244
+ $(this._element).off(Util.TRANSITION_END);
298
245
  $(this._element).one(Util.TRANSITION_END, function () {
299
246
  _this3._element.classList.remove(CLASS_NAME_STATIC);
247
+
248
+ if (!isModalOverflowing) {
249
+ $(_this3._element).one(Util.TRANSITION_END, function () {
250
+ _this3._element.style.overflowY = '';
251
+ }).emulateTransitionEnd(_this3._element, modalTransitionDuration);
252
+ }
300
253
  }).emulateTransitionEnd(modalTransitionDuration);
301
254
 
302
255
  this._element.focus();
@@ -322,6 +275,8 @@
322
275
 
323
276
  this._element.setAttribute('aria-modal', true);
324
277
 
278
+ this._element.setAttribute('role', 'dialog');
279
+
325
280
  if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
326
281
  modalBody.scrollTop = 0;
327
282
  } else {
@@ -409,6 +364,8 @@
409
364
 
410
365
  this._element.removeAttribute('aria-modal');
411
366
 
367
+ this._element.removeAttribute('role');
368
+
412
369
  this._isTransitioning = false;
413
370
 
414
371
  this._showBackdrop(function () {
@@ -590,7 +547,7 @@
590
547
  return this.each(function () {
591
548
  var data = $(this).data(DATA_KEY);
592
549
 
593
- var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, Default), $(this).data()), typeof config === 'object' && config ? config : {});
550
+ var _config = _extends({}, Default, $(this).data(), typeof config === 'object' && config ? config : {});
594
551
 
595
552
  if (!data) {
596
553
  data = new Modal(this, _config);
@@ -640,7 +597,7 @@
640
597
  target = document.querySelector(selector);
641
598
  }
642
599
 
643
- var config = $(target).data(DATA_KEY) ? 'toggle' : _objectSpread2(_objectSpread2({}, $(target).data()), $(this).data());
600
+ var config = $(target).data(DATA_KEY) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
644
601
 
645
602
  if (this.tagName === 'A' || this.tagName === 'AREA') {
646
603
  event.preventDefault();
@@ -1,88 +1,24 @@
1
1
  /*!
2
- * Bootstrap popover.js v4.5.0 (https://getbootstrap.com/)
2
+ * Bootstrap popover.js v4.5.2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
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('jquery'), require('./tooltip.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery', './tooltip.js'], factory) :
9
- (global = global || self, global.Popover = factory(global.jQuery, global.Tooltip));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Popover = factory(global.jQuery, global.Tooltip));
10
10
  }(this, (function ($, Tooltip) { 'use strict';
11
11
 
12
12
  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
13
  Tooltip = Tooltip && Object.prototype.hasOwnProperty.call(Tooltip, 'default') ? Tooltip['default'] : Tooltip;
14
14
 
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
23
- }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- return Constructor;
29
- }
30
-
31
- function _defineProperty(obj, key, value) {
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
-
43
- return obj;
44
- }
45
-
46
- function ownKeys(object, enumerableOnly) {
47
- var keys = Object.keys(object);
48
-
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
52
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
- });
54
- keys.push.apply(keys, symbols);
55
- }
56
-
57
- return keys;
58
- }
59
-
60
- function _objectSpread2(target) {
61
- for (var i = 1; i < arguments.length; i++) {
62
- var source = arguments[i] != null ? arguments[i] : {};
63
-
64
- if (i % 2) {
65
- ownKeys(Object(source), true).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- });
68
- } else if (Object.getOwnPropertyDescriptors) {
69
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
- } else {
71
- ownKeys(Object(source)).forEach(function (key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
75
- }
15
+ 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); } }
76
16
 
77
- return target;
78
- }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
79
18
 
80
- function _inheritsLoose(subClass, superClass) {
81
- subClass.prototype = Object.create(superClass.prototype);
82
- subClass.prototype.constructor = subClass;
83
- subClass.__proto__ = superClass;
84
- }
19
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
85
20
 
21
+ 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); }
86
22
  /**
87
23
  * ------------------------------------------------------------------------
88
24
  * Constants
@@ -90,21 +26,21 @@
90
26
  */
91
27
 
92
28
  var NAME = 'popover';
93
- var VERSION = '4.5.0';
29
+ var VERSION = '4.5.2';
94
30
  var DATA_KEY = 'bs.popover';
95
31
  var EVENT_KEY = "." + DATA_KEY;
96
32
  var JQUERY_NO_CONFLICT = $.fn[NAME];
97
33
  var CLASS_PREFIX = 'bs-popover';
98
34
  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
99
35
 
100
- var Default = _objectSpread2(_objectSpread2({}, Tooltip.Default), {}, {
36
+ var Default = _extends({}, Tooltip.Default, {
101
37
  placement: 'right',
102
38
  trigger: 'click',
103
39
  content: '',
104
40
  template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
105
41
  });
106
42
 
107
- var DefaultType = _objectSpread2(_objectSpread2({}, Tooltip.DefaultType), {}, {
43
+ var DefaultType = _extends({}, Tooltip.DefaultType, {
108
44
  content: '(string|element|function)'
109
45
  });
110
46
 
@@ -1,82 +1,22 @@
1
1
  /*!
2
- * Bootstrap scrollspy.js v4.5.0 (https://getbootstrap.com/)
2
+ * Bootstrap scrollspy.js v4.5.2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
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('jquery'), require('./util.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
9
- (global = global || self, global.ScrollSpy = factory(global.jQuery, global.Util));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.jQuery, global.Util));
10
10
  }(this, (function ($, Util) { 'use strict';
11
11
 
12
12
  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
13
  Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
14
14
 
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
23
- }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- return Constructor;
29
- }
30
-
31
- function _defineProperty(obj, key, value) {
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
-
43
- return obj;
44
- }
45
-
46
- function ownKeys(object, enumerableOnly) {
47
- var keys = Object.keys(object);
48
-
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
52
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
- });
54
- keys.push.apply(keys, symbols);
55
- }
56
-
57
- return keys;
58
- }
59
-
60
- function _objectSpread2(target) {
61
- for (var i = 1; i < arguments.length; i++) {
62
- var source = arguments[i] != null ? arguments[i] : {};
63
-
64
- if (i % 2) {
65
- ownKeys(Object(source), true).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- });
68
- } else if (Object.getOwnPropertyDescriptors) {
69
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
- } else {
71
- ownKeys(Object(source)).forEach(function (key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
75
- }
15
+ 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); }
76
16
 
77
- return target;
78
- }
17
+ 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); } }
79
18
 
19
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
80
20
  /**
81
21
  * ------------------------------------------------------------------------
82
22
  * Constants
@@ -84,7 +24,7 @@
84
24
  */
85
25
 
86
26
  var NAME = 'scrollspy';
87
- var VERSION = '4.5.0';
27
+ var VERSION = '4.5.2';
88
28
  var DATA_KEY = 'bs.scrollspy';
89
29
  var EVENT_KEY = "." + DATA_KEY;
90
30
  var DATA_API_KEY = '.data-api';
@@ -198,7 +138,7 @@
198
138
  ;
199
139
 
200
140
  _proto._getConfig = function _getConfig(config) {
201
- config = _objectSpread2(_objectSpread2({}, Default), typeof config === 'object' && config ? config : {});
141
+ config = _extends({}, Default, typeof config === 'object' && config ? config : {});
202
142
 
203
143
  if (typeof config.target !== 'string' && Util.isElement(config.target)) {
204
144
  var id = $(config.target).attr('id');
@@ -1,33 +1,20 @@
1
1
  /*!
2
- * Bootstrap tab.js v4.5.0 (https://getbootstrap.com/)
2
+ * Bootstrap tab.js v4.5.2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
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('jquery'), require('./util.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
9
- (global = global || self, global.Tab = factory(global.jQuery, global.Util));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.jQuery, global.Util));
10
10
  }(this, (function ($, Util) { 'use strict';
11
11
 
12
12
  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
13
  Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
14
14
 
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
23
- }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- return Constructor;
29
- }
15
+ 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); } }
30
16
 
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
31
18
  /**
32
19
  * ------------------------------------------------------------------------
33
20
  * Constants
@@ -35,7 +22,7 @@
35
22
  */
36
23
 
37
24
  var NAME = 'tab';
38
- var VERSION = '4.5.0';
25
+ var VERSION = '4.5.2';
39
26
  var DATA_KEY = 'bs.tab';
40
27
  var EVENT_KEY = "." + DATA_KEY;
41
28
  var DATA_API_KEY = '.data-api';
@@ -1,82 +1,22 @@
1
1
  /*!
2
- * Bootstrap toast.js v4.5.0 (https://getbootstrap.com/)
2
+ * Bootstrap toast.js v4.5.2 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
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('jquery'), require('./util.js')) :
8
8
  typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
9
- (global = global || self, global.Toast = factory(global.jQuery, global.Util));
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Toast = factory(global.jQuery, global.Util));
10
10
  }(this, (function ($, Util) { 'use strict';
11
11
 
12
12
  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
13
  Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
14
14
 
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
23
- }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- return Constructor;
29
- }
30
-
31
- function _defineProperty(obj, key, value) {
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
-
43
- return obj;
44
- }
45
-
46
- function ownKeys(object, enumerableOnly) {
47
- var keys = Object.keys(object);
48
-
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
52
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
- });
54
- keys.push.apply(keys, symbols);
55
- }
56
-
57
- return keys;
58
- }
59
-
60
- function _objectSpread2(target) {
61
- for (var i = 1; i < arguments.length; i++) {
62
- var source = arguments[i] != null ? arguments[i] : {};
63
-
64
- if (i % 2) {
65
- ownKeys(Object(source), true).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- });
68
- } else if (Object.getOwnPropertyDescriptors) {
69
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
- } else {
71
- ownKeys(Object(source)).forEach(function (key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
75
- }
15
+ 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); }
76
16
 
77
- return target;
78
- }
17
+ 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); } }
79
18
 
19
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
80
20
  /**
81
21
  * ------------------------------------------------------------------------
82
22
  * Constants
@@ -84,7 +24,7 @@
84
24
  */
85
25
 
86
26
  var NAME = 'toast';
87
- var VERSION = '4.5.0';
27
+ var VERSION = '4.5.2';
88
28
  var DATA_KEY = 'bs.toast';
89
29
  var EVENT_KEY = "." + DATA_KEY;
90
30
  var JQUERY_NO_CONFLICT = $.fn[NAME];
@@ -137,6 +77,8 @@
137
77
  return;
138
78
  }
139
79
 
80
+ this._clearTimeout();
81
+
140
82
  if (this._config.animation) {
141
83
  this._element.classList.add(CLASS_NAME_FADE);
142
84
  }
@@ -185,8 +127,7 @@
185
127
  };
186
128
 
187
129
  _proto.dispose = function dispose() {
188
- clearTimeout(this._timeout);
189
- this._timeout = null;
130
+ this._clearTimeout();
190
131
 
191
132
  if (this._element.classList.contains(CLASS_NAME_SHOW)) {
192
133
  this._element.classList.remove(CLASS_NAME_SHOW);
@@ -200,7 +141,7 @@
200
141
  ;
201
142
 
202
143
  _proto._getConfig = function _getConfig(config) {
203
- config = _objectSpread2(_objectSpread2(_objectSpread2({}, Default), $(this._element).data()), typeof config === 'object' && config ? config : {});
144
+ config = _extends({}, Default, $(this._element).data(), typeof config === 'object' && config ? config : {});
204
145
  Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
205
146
  return config;
206
147
  };
@@ -230,6 +171,11 @@
230
171
  } else {
231
172
  complete();
232
173
  }
174
+ };
175
+
176
+ _proto._clearTimeout = function _clearTimeout() {
177
+ clearTimeout(this._timeout);
178
+ this._timeout = null;
233
179
  } // Static
234
180
  ;
235
181