bootstrap 4.2.1 → 4.3.0

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 (75) 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 +133 -94
  5. data/assets/javascripts/bootstrap.min.js +3 -3
  6. data/assets/javascripts/bootstrap/alert.js +10 -10
  7. data/assets/javascripts/bootstrap/button.js +8 -8
  8. data/assets/javascripts/bootstrap/carousel.js +14 -12
  9. data/assets/javascripts/bootstrap/collapse.js +10 -10
  10. data/assets/javascripts/bootstrap/dropdown.js +22 -18
  11. data/assets/javascripts/bootstrap/modal.js +19 -13
  12. data/assets/javascripts/bootstrap/popover.js +10 -10
  13. data/assets/javascripts/bootstrap/scrollspy.js +10 -10
  14. data/assets/javascripts/bootstrap/tab.js +14 -11
  15. data/assets/javascripts/bootstrap/toast.js +15 -10
  16. data/assets/javascripts/bootstrap/tooltip.js +41 -26
  17. data/assets/javascripts/bootstrap/util.js +11 -7
  18. data/assets/stylesheets/_bootstrap-grid.scss +3 -3
  19. data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
  20. data/assets/stylesheets/_bootstrap.scss +3 -3
  21. data/assets/stylesheets/bootstrap/_badge.scss +2 -1
  22. data/assets/stylesheets/bootstrap/_buttons.scss +2 -5
  23. data/assets/stylesheets/bootstrap/_card.scss +13 -34
  24. data/assets/stylesheets/bootstrap/_carousel.scss +1 -2
  25. data/assets/stylesheets/bootstrap/_close.scss +1 -4
  26. data/assets/stylesheets/bootstrap/_code.scss +5 -5
  27. data/assets/stylesheets/bootstrap/_custom-forms.scss +11 -11
  28. data/assets/stylesheets/bootstrap/_dropdown.scss +20 -20
  29. data/assets/stylesheets/bootstrap/_forms.scss +12 -16
  30. data/assets/stylesheets/bootstrap/_functions.scss +3 -3
  31. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  32. data/assets/stylesheets/bootstrap/_input-group.scss +3 -3
  33. data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -0
  34. data/assets/stylesheets/bootstrap/_list-group.scss +33 -5
  35. data/assets/stylesheets/bootstrap/_mixins.scss +6 -0
  36. data/assets/stylesheets/bootstrap/_modal.scss +47 -4
  37. data/assets/stylesheets/bootstrap/_navbar.scss +3 -8
  38. data/assets/stylesheets/bootstrap/_pagination.scss +0 -5
  39. data/assets/stylesheets/bootstrap/_popover.scss +46 -58
  40. data/assets/stylesheets/bootstrap/_print.scss +1 -1
  41. data/assets/stylesheets/bootstrap/_progress.scss +15 -6
  42. data/assets/stylesheets/bootstrap/_reboot.scss +28 -7
  43. data/assets/stylesheets/bootstrap/_spinners.scss +2 -0
  44. data/assets/stylesheets/bootstrap/_tables.scss +3 -5
  45. data/assets/stylesheets/bootstrap/_toasts.scss +3 -2
  46. data/assets/stylesheets/bootstrap/_tooltip.scss +1 -1
  47. data/assets/stylesheets/bootstrap/_transitions.scss +0 -2
  48. data/assets/stylesheets/bootstrap/_type.scss +15 -15
  49. data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
  50. data/assets/stylesheets/bootstrap/_variables.scss +129 -97
  51. data/assets/stylesheets/bootstrap/mixins/_badge.scss +6 -0
  52. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +29 -1
  53. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +16 -1
  54. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +3 -7
  55. data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
  56. data/assets/stylesheets/bootstrap/mixins/_deprecate.scss +10 -0
  57. data/assets/stylesheets/bootstrap/mixins/_float.scss +3 -0
  58. data/assets/stylesheets/bootstrap/mixins/_forms.scss +8 -14
  59. data/assets/stylesheets/bootstrap/mixins/_image.scss +2 -2
  60. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +1 -1
  61. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +1 -1
  62. data/assets/stylesheets/bootstrap/mixins/_size.scss +1 -0
  63. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +5 -3
  64. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +1 -3
  65. data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
  66. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +1 -0
  67. data/assets/stylesheets/bootstrap/utilities/_borders.scss +13 -1
  68. data/assets/stylesheets/bootstrap/utilities/_display.scss +6 -18
  69. data/assets/stylesheets/bootstrap/utilities/_float.scss +5 -3
  70. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +19 -0
  71. data/assets/stylesheets/bootstrap/utilities/_text.scss +6 -1
  72. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +4 -2
  73. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +212 -0
  74. data/lib/bootstrap/version.rb +2 -2
  75. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c5064e9852b6cfec7df1033d5b2cc94342799a3c53bc278e6552756b6f5d0e9
4
- data.tar.gz: 4e3704e4ed47651c051af561b538982f63c678f2fbd203c4eb253c0284e70b79
3
+ metadata.gz: e4f88628d1020f4ed1af944a91de25e047b12ddde97532ca3c735333e6619612
4
+ data.tar.gz: 14c57cf9e092cbc6fd3a0994cf154fba1638e3c856481a914a4ab6697941e1eb
5
5
  SHA512:
6
- metadata.gz: 30575258691fe670f36446c9f4f5ba6740fc912f4bb30d46be967b0e9c5ec11db6540a0d05931095b6f914b76ecc5d3199472cdde6e91358f2abd54aa7e3c856
7
- data.tar.gz: f7c8f39173cbef39ee524dc6ccc01ff00b568f64cbf91d0057ad4cc269641a12dde316c9dd2b2d54b34cd85952feb31bb3e1b5c554117aaefd4c9869570de94e
6
+ metadata.gz: 8d08c1912dd142aec7b7568d47dbd66c09f98d8e6d779115d30ee1790f812cc1db0674dffa7b6c02a5a68af1d89869b4e02b66fbf7047fc02b90ecf7771ce970
7
+ data.tar.gz: cf835b6f910d227b6e967b51e0cc0c1811e2730c5f7c91065a9581952752b7339a751776307690bdd0e672769f983874c2587fa2837b5099f820c04cd2fd5a3a
data/README.md CHANGED
@@ -17,7 +17,7 @@ Please see the appropriate guide for your environment of choice:
17
17
  Add `bootstrap` to your Gemfile:
18
18
 
19
19
  ```ruby
20
- gem 'bootstrap', '~> 4.2.1'
20
+ gem 'bootstrap', '~> 4.3.0'
21
21
  ```
22
22
 
23
23
  Ensure that `sprockets-rails` is at least v2.3.2.
@@ -1,12 +1,12 @@
1
1
  //= require ./bootstrap/util
2
- //= require ./bootstrap/scrollspy
2
+ //= require ./bootstrap/alert
3
3
  //= require ./bootstrap/button
4
+ //= require ./bootstrap/carousel
4
5
  //= require ./bootstrap/collapse
5
- //= require ./bootstrap/modal
6
6
  //= require ./bootstrap/dropdown
7
- //= require ./bootstrap/carousel
8
- //= require ./bootstrap/toast
7
+ //= require ./bootstrap/modal
9
8
  //= require ./bootstrap/tooltip
10
9
  //= require ./bootstrap/popover
11
- //= require ./bootstrap/alert
10
+ //= require ./bootstrap/scrollspy
12
11
  //= require ./bootstrap/tab
12
+ //= require ./bootstrap/toast
@@ -1,16 +1,16 @@
1
1
  /*!
2
- * Bootstrap v4.2.1 (https://getbootstrap.com/)
3
- * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2
+ * Bootstrap v4.3.0 (https://getbootstrap.com/)
3
+ * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('popper.js'), require('jquery')) :
8
- typeof define === 'function' && define.amd ? define(['exports', 'popper.js', 'jquery'], factory) :
9
- (factory((global.bootstrap = {}),global.Popper,global.jQuery));
10
- }(this, (function (exports,Popper,$) { 'use strict';
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
8
+ typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
9
+ (global = global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
10
+ }(this, function (exports, $, Popper) { 'use strict';
11
11
 
12
- Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
13
12
  $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
13
+ Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
14
14
 
15
15
  function _defineProperties(target, props) {
16
16
  for (var i = 0; i < props.length; i++) {
@@ -70,7 +70,7 @@
70
70
 
71
71
  /**
72
72
  * --------------------------------------------------------------------------
73
- * Bootstrap (v4.2.1): util.js
73
+ * Bootstrap (v4.3.0): util.js
74
74
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
75
75
  * --------------------------------------------------------------------------
76
76
  */
@@ -146,7 +146,11 @@
146
146
  selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
147
147
  }
148
148
 
149
- return selector && document.querySelector(selector) ? selector : null;
149
+ try {
150
+ return document.querySelector(selector) ? selector : null;
151
+ } catch (err) {
152
+ return null;
153
+ }
150
154
  },
151
155
  getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
152
156
  if (!element) {
@@ -226,7 +230,7 @@
226
230
  */
227
231
 
228
232
  var NAME = 'alert';
229
- var VERSION = '4.2.1';
233
+ var VERSION = '4.3.0';
230
234
  var DATA_KEY = 'bs.alert';
231
235
  var EVENT_KEY = "." + DATA_KEY;
232
236
  var DATA_API_KEY = '.data-api';
@@ -281,8 +285,8 @@
281
285
  _proto.dispose = function dispose() {
282
286
  $.removeData(this._element, DATA_KEY);
283
287
  this._element = null;
284
- }; // Private
285
-
288
+ } // Private
289
+ ;
286
290
 
287
291
  _proto._getRootElement = function _getRootElement(element) {
288
292
  var selector = Util.getSelectorFromElement(element);
@@ -324,8 +328,8 @@
324
328
 
325
329
  _proto._destroyElement = function _destroyElement(element) {
326
330
  $(element).detach().trigger(Event.CLOSED).remove();
327
- }; // Static
328
-
331
+ } // Static
332
+ ;
329
333
 
330
334
  Alert._jQueryInterface = function _jQueryInterface(config) {
331
335
  return this.each(function () {
@@ -391,7 +395,7 @@
391
395
  */
392
396
 
393
397
  var NAME$1 = 'button';
394
- var VERSION$1 = '4.2.1';
398
+ var VERSION$1 = '4.3.0';
395
399
  var DATA_KEY$1 = 'bs.button';
396
400
  var EVENT_KEY$1 = "." + DATA_KEY$1;
397
401
  var DATA_API_KEY$1 = '.data-api';
@@ -477,8 +481,8 @@
477
481
  _proto.dispose = function dispose() {
478
482
  $.removeData(this._element, DATA_KEY$1);
479
483
  this._element = null;
480
- }; // Static
481
-
484
+ } // Static
485
+ ;
482
486
 
483
487
  Button._jQueryInterface = function _jQueryInterface(config) {
484
488
  return this.each(function () {
@@ -545,7 +549,7 @@
545
549
  */
546
550
 
547
551
  var NAME$2 = 'carousel';
548
- var VERSION$2 = '4.2.1';
552
+ var VERSION$2 = '4.3.0';
549
553
  var DATA_KEY$2 = 'bs.carousel';
550
554
  var EVENT_KEY$2 = "." + DATA_KEY$2;
551
555
  var DATA_API_KEY$2 = '.data-api';
@@ -740,8 +744,8 @@
740
744
  this._isSliding = null;
741
745
  this._activeElement = null;
742
746
  this._indicatorsElement = null;
743
- }; // Private
744
-
747
+ } // Private
748
+ ;
745
749
 
746
750
  _proto._getConfig = function _getConfig(config) {
747
751
  config = _objectSpread({}, Default, config);
@@ -785,7 +789,9 @@
785
789
  });
786
790
  }
787
791
 
788
- this._addTouchEventListeners();
792
+ if (this._config.touch) {
793
+ this._addTouchEventListeners();
794
+ }
789
795
  };
790
796
 
791
797
  _proto._addTouchEventListeners = function _addTouchEventListeners() {
@@ -1026,8 +1032,8 @@
1026
1032
  if (isCycling) {
1027
1033
  this.cycle();
1028
1034
  }
1029
- }; // Static
1030
-
1035
+ } // Static
1036
+ ;
1031
1037
 
1032
1038
  Carousel._jQueryInterface = function _jQueryInterface(config) {
1033
1039
  return this.each(function () {
@@ -1054,7 +1060,7 @@
1054
1060
  }
1055
1061
 
1056
1062
  data[action]();
1057
- } else if (_config.interval) {
1063
+ } else if (_config.interval && _config.ride) {
1058
1064
  data.pause();
1059
1065
  data.cycle();
1060
1066
  }
@@ -1143,7 +1149,7 @@
1143
1149
  */
1144
1150
 
1145
1151
  var NAME$3 = 'collapse';
1146
- var VERSION$3 = '4.2.1';
1152
+ var VERSION$3 = '4.3.0';
1147
1153
  var DATA_KEY$3 = 'bs.collapse';
1148
1154
  var EVENT_KEY$3 = "." + DATA_KEY$3;
1149
1155
  var DATA_API_KEY$3 = '.data-api';
@@ -1365,8 +1371,8 @@
1365
1371
  this._element = null;
1366
1372
  this._triggerArray = null;
1367
1373
  this._isTransitioning = null;
1368
- }; // Private
1369
-
1374
+ } // Private
1375
+ ;
1370
1376
 
1371
1377
  _proto._getConfig = function _getConfig(config) {
1372
1378
  config = _objectSpread({}, Default$1, config);
@@ -1410,8 +1416,8 @@
1410
1416
  if (triggerArray.length) {
1411
1417
  $(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
1412
1418
  }
1413
- }; // Static
1414
-
1419
+ } // Static
1420
+ ;
1415
1421
 
1416
1422
  Collapse._getTargetFromElement = function _getTargetFromElement(element) {
1417
1423
  var selector = Util.getSelectorFromElement(element);
@@ -1503,7 +1509,7 @@
1503
1509
  */
1504
1510
 
1505
1511
  var NAME$4 = 'dropdown';
1506
- var VERSION$4 = '4.2.1';
1512
+ var VERSION$4 = '4.3.0';
1507
1513
  var DATA_KEY$4 = 'bs.dropdown';
1508
1514
  var EVENT_KEY$4 = "." + DATA_KEY$4;
1509
1515
  var DATA_API_KEY$4 = '.data-api';
@@ -1732,8 +1738,8 @@
1732
1738
  if (this._popper !== null) {
1733
1739
  this._popper.scheduleUpdate();
1734
1740
  }
1735
- }; // Private
1736
-
1741
+ } // Private
1742
+ ;
1737
1743
 
1738
1744
  _proto._addEventListeners = function _addEventListeners() {
1739
1745
  var _this = this;
@@ -1789,24 +1795,28 @@
1789
1795
  return $(this._element).closest('.navbar').length > 0;
1790
1796
  };
1791
1797
 
1792
- _proto._getPopperConfig = function _getPopperConfig() {
1798
+ _proto._getOffset = function _getOffset() {
1793
1799
  var _this2 = this;
1794
1800
 
1795
- var offsetConf = {};
1801
+ var offset = {};
1796
1802
 
1797
1803
  if (typeof this._config.offset === 'function') {
1798
- offsetConf.fn = function (data) {
1799
- data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
1804
+ offset.fn = function (data) {
1805
+ data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
1800
1806
  return data;
1801
1807
  };
1802
1808
  } else {
1803
- offsetConf.offset = this._config.offset;
1809
+ offset.offset = this._config.offset;
1804
1810
  }
1805
1811
 
1812
+ return offset;
1813
+ };
1814
+
1815
+ _proto._getPopperConfig = function _getPopperConfig() {
1806
1816
  var popperConfig = {
1807
1817
  placement: this._getPlacement(),
1808
1818
  modifiers: {
1809
- offset: offsetConf,
1819
+ offset: this._getOffset(),
1810
1820
  flip: {
1811
1821
  enabled: this._config.flip
1812
1822
  },
@@ -1824,8 +1834,8 @@
1824
1834
  }
1825
1835
 
1826
1836
  return popperConfig;
1827
- }; // Static
1828
-
1837
+ } // Static
1838
+ ;
1829
1839
 
1830
1840
  Dropdown._jQueryInterface = function _jQueryInterface(config) {
1831
1841
  return this.each(function () {
@@ -1909,8 +1919,8 @@
1909
1919
  }
1910
1920
 
1911
1921
  return parent || element.parentNode;
1912
- }; // eslint-disable-next-line complexity
1913
-
1922
+ } // eslint-disable-next-line complexity
1923
+ ;
1914
1924
 
1915
1925
  Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
1916
1926
  // If not input/textarea:
@@ -2025,7 +2035,7 @@
2025
2035
  */
2026
2036
 
2027
2037
  var NAME$5 = 'modal';
2028
- var VERSION$5 = '4.2.1';
2038
+ var VERSION$5 = '4.3.0';
2029
2039
  var DATA_KEY$5 = 'bs.modal';
2030
2040
  var EVENT_KEY$5 = "." + DATA_KEY$5;
2031
2041
  var DATA_API_KEY$5 = '.data-api';
@@ -2058,6 +2068,7 @@
2058
2068
  CLICK_DATA_API: "click" + EVENT_KEY$5 + DATA_API_KEY$5
2059
2069
  };
2060
2070
  var ClassName$5 = {
2071
+ SCROLLABLE: 'modal-dialog-scrollable',
2061
2072
  SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
2062
2073
  BACKDROP: 'modal-backdrop',
2063
2074
  OPEN: 'modal-open',
@@ -2066,6 +2077,7 @@
2066
2077
  };
2067
2078
  var Selector$5 = {
2068
2079
  DIALOG: '.modal-dialog',
2080
+ MODAL_BODY: '.modal-body',
2069
2081
  DATA_TOGGLE: '[data-toggle="modal"]',
2070
2082
  DATA_DISMISS: '[data-dismiss="modal"]',
2071
2083
  FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
@@ -2218,8 +2230,8 @@
2218
2230
 
2219
2231
  _proto.handleUpdate = function handleUpdate() {
2220
2232
  this._adjustDialog();
2221
- }; // Private
2222
-
2233
+ } // Private
2234
+ ;
2223
2235
 
2224
2236
  _proto._getConfig = function _getConfig(config) {
2225
2237
  config = _objectSpread({}, Default$3, config);
@@ -2243,7 +2255,11 @@
2243
2255
 
2244
2256
  this._element.setAttribute('aria-modal', true);
2245
2257
 
2246
- this._element.scrollTop = 0;
2258
+ if ($(this._dialog).hasClass(ClassName$5.SCROLLABLE)) {
2259
+ this._dialog.querySelector(Selector$5.MODAL_BODY).scrollTop = 0;
2260
+ } else {
2261
+ this._element.scrollTop = 0;
2262
+ }
2247
2263
 
2248
2264
  if (transition) {
2249
2265
  Util.reflow(this._element);
@@ -2413,11 +2429,11 @@
2413
2429
  } else if (callback) {
2414
2430
  callback();
2415
2431
  }
2416
- }; // ----------------------------------------------------------------------
2432
+ } // ----------------------------------------------------------------------
2417
2433
  // the following methods are used to handle overflowing modals
2418
2434
  // todo (fat): these should probably be refactored out of modal.js
2419
2435
  // ----------------------------------------------------------------------
2420
-
2436
+ ;
2421
2437
 
2422
2438
  _proto._adjustDialog = function _adjustDialog() {
2423
2439
  var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
@@ -2502,8 +2518,8 @@
2502
2518
  var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
2503
2519
  document.body.removeChild(scrollDiv);
2504
2520
  return scrollbarWidth;
2505
- }; // Static
2506
-
2521
+ } // Static
2522
+ ;
2507
2523
 
2508
2524
  Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
2509
2525
  return this.each(function () {
@@ -2601,7 +2617,7 @@
2601
2617
  */
2602
2618
 
2603
2619
  var NAME$6 = 'tooltip';
2604
- var VERSION$6 = '4.2.1';
2620
+ var VERSION$6 = '4.3.0';
2605
2621
  var DATA_KEY$6 = 'bs.tooltip';
2606
2622
  var EVENT_KEY$6 = "." + DATA_KEY$6;
2607
2623
  var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
@@ -2616,7 +2632,7 @@
2616
2632
  html: 'boolean',
2617
2633
  selector: '(string|boolean)',
2618
2634
  placement: '(string|function)',
2619
- offset: '(number|string)',
2635
+ offset: '(number|string|function)',
2620
2636
  container: '(string|element|boolean)',
2621
2637
  fallbackPlacement: '(string|array)',
2622
2638
  boundary: '(string|element)'
@@ -2825,9 +2841,7 @@
2825
2841
  this._popper = new Popper(this.element, tip, {
2826
2842
  placement: attachment,
2827
2843
  modifiers: {
2828
- offset: {
2829
- offset: this.config.offset
2830
- },
2844
+ offset: this._getOffset(),
2831
2845
  flip: {
2832
2846
  behavior: this.config.fallbackPlacement
2833
2847
  },
@@ -2936,8 +2950,8 @@
2936
2950
  if (this._popper !== null) {
2937
2951
  this._popper.scheduleUpdate();
2938
2952
  }
2939
- }; // Protected
2940
-
2953
+ } // Protected
2954
+ ;
2941
2955
 
2942
2956
  _proto.isWithContent = function isWithContent() {
2943
2957
  return Boolean(this.getTitle());
@@ -2983,8 +2997,25 @@
2983
2997
  }
2984
2998
 
2985
2999
  return title;
2986
- }; // Private
3000
+ } // Private
3001
+ ;
2987
3002
 
3003
+ _proto._getOffset = function _getOffset() {
3004
+ var _this3 = this;
3005
+
3006
+ var offset = {};
3007
+
3008
+ if (typeof this.config.offset === 'function') {
3009
+ offset.fn = function (data) {
3010
+ data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {});
3011
+ return data;
3012
+ };
3013
+ } else {
3014
+ offset.offset = this.config.offset;
3015
+ }
3016
+
3017
+ return offset;
3018
+ };
2988
3019
 
2989
3020
  _proto._getContainer = function _getContainer() {
2990
3021
  if (this.config.container === false) {
@@ -3003,27 +3034,27 @@
3003
3034
  };
3004
3035
 
3005
3036
  _proto._setListeners = function _setListeners() {
3006
- var _this3 = this;
3037
+ var _this4 = this;
3007
3038
 
3008
3039
  var triggers = this.config.trigger.split(' ');
3009
3040
  triggers.forEach(function (trigger) {
3010
3041
  if (trigger === 'click') {
3011
- $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
3012
- return _this3.toggle(event);
3042
+ $(_this4.element).on(_this4.constructor.Event.CLICK, _this4.config.selector, function (event) {
3043
+ return _this4.toggle(event);
3013
3044
  });
3014
3045
  } else if (trigger !== Trigger.MANUAL) {
3015
- var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
3016
- var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
3017
- $(_this3.element).on(eventIn, _this3.config.selector, function (event) {
3018
- return _this3._enter(event);
3019
- }).on(eventOut, _this3.config.selector, function (event) {
3020
- return _this3._leave(event);
3046
+ var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN;
3047
+ var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT;
3048
+ $(_this4.element).on(eventIn, _this4.config.selector, function (event) {
3049
+ return _this4._enter(event);
3050
+ }).on(eventOut, _this4.config.selector, function (event) {
3051
+ return _this4._leave(event);
3021
3052
  });
3022
3053
  }
3023
3054
  });
3024
3055
  $(this.element).closest('.modal').on('hide.bs.modal', function () {
3025
- if (_this3.element) {
3026
- _this3.hide();
3056
+ if (_this4.element) {
3057
+ _this4.hide();
3027
3058
  }
3028
3059
  });
3029
3060
 
@@ -3188,8 +3219,8 @@
3188
3219
  this.hide();
3189
3220
  this.show();
3190
3221
  this.config.animation = initConfigAnimation;
3191
- }; // Static
3192
-
3222
+ } // Static
3223
+ ;
3193
3224
 
3194
3225
  Tooltip._jQueryInterface = function _jQueryInterface(config) {
3195
3226
  return this.each(function () {
@@ -3277,7 +3308,7 @@
3277
3308
  */
3278
3309
 
3279
3310
  var NAME$7 = 'popover';
3280
- var VERSION$7 = '4.2.1';
3311
+ var VERSION$7 = '4.3.0';
3281
3312
  var DATA_KEY$7 = 'bs.popover';
3282
3313
  var EVENT_KEY$7 = "." + DATA_KEY$7;
3283
3314
  var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
@@ -3360,8 +3391,8 @@
3360
3391
 
3361
3392
  this.setElementContent($tip.find(Selector$7.CONTENT), content);
3362
3393
  $tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW);
3363
- }; // Private
3364
-
3394
+ } // Private
3395
+ ;
3365
3396
 
3366
3397
  _proto._getContent = function _getContent() {
3367
3398
  return this.element.getAttribute('data-content') || this.config.content;
@@ -3374,8 +3405,8 @@
3374
3405
  if (tabClass !== null && tabClass.length > 0) {
3375
3406
  $tip.removeClass(tabClass.join(''));
3376
3407
  }
3377
- }; // Static
3378
-
3408
+ } // Static
3409
+ ;
3379
3410
 
3380
3411
  Popover._jQueryInterface = function _jQueryInterface(config) {
3381
3412
  return this.each(function () {
@@ -3464,7 +3495,7 @@
3464
3495
  */
3465
3496
 
3466
3497
  var NAME$8 = 'scrollspy';
3467
- var VERSION$8 = '4.2.1';
3498
+ var VERSION$8 = '4.3.0';
3468
3499
  var DATA_KEY$8 = 'bs.scrollspy';
3469
3500
  var EVENT_KEY$8 = "." + DATA_KEY$8;
3470
3501
  var DATA_API_KEY$6 = '.data-api';
@@ -3587,8 +3618,8 @@
3587
3618
  this._targets = null;
3588
3619
  this._activeTarget = null;
3589
3620
  this._scrollHeight = null;
3590
- }; // Private
3591
-
3621
+ } // Private
3622
+ ;
3592
3623
 
3593
3624
  _proto._getConfig = function _getConfig(config) {
3594
3625
  config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
@@ -3695,8 +3726,8 @@
3695
3726
  }).forEach(function (node) {
3696
3727
  return node.classList.remove(ClassName$8.ACTIVE);
3697
3728
  });
3698
- }; // Static
3699
-
3729
+ } // Static
3730
+ ;
3700
3731
 
3701
3732
  ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
3702
3733
  return this.each(function () {
@@ -3771,7 +3802,7 @@
3771
3802
  */
3772
3803
 
3773
3804
  var NAME$9 = 'tab';
3774
- var VERSION$9 = '4.2.1';
3805
+ var VERSION$9 = '4.3.0';
3775
3806
  var DATA_KEY$9 = 'bs.tab';
3776
3807
  var EVENT_KEY$9 = "." + DATA_KEY$9;
3777
3808
  var DATA_API_KEY$7 = '.data-api';
@@ -3879,8 +3910,8 @@
3879
3910
  _proto.dispose = function dispose() {
3880
3911
  $.removeData(this._element, DATA_KEY$9);
3881
3912
  this._element = null;
3882
- }; // Private
3883
-
3913
+ } // Private
3914
+ ;
3884
3915
 
3885
3916
  _proto._activate = function _activate(element, container, callback) {
3886
3917
  var _this2 = this;
@@ -3922,7 +3953,10 @@
3922
3953
  }
3923
3954
 
3924
3955
  Util.reflow(element);
3925
- $(element).addClass(ClassName$9.SHOW);
3956
+
3957
+ if (element.classList.contains(ClassName$9.FADE)) {
3958
+ element.classList.add(ClassName$9.SHOW);
3959
+ }
3926
3960
 
3927
3961
  if (element.parentNode && $(element.parentNode).hasClass(ClassName$9.DROPDOWN_MENU)) {
3928
3962
  var dropdownElement = $(element).closest(Selector$9.DROPDOWN)[0];
@@ -3938,8 +3972,8 @@
3938
3972
  if (callback) {
3939
3973
  callback();
3940
3974
  }
3941
- }; // Static
3942
-
3975
+ } // Static
3976
+ ;
3943
3977
 
3944
3978
  Tab._jQueryInterface = function _jQueryInterface(config) {
3945
3979
  return this.each(function () {
@@ -4003,7 +4037,7 @@
4003
4037
  */
4004
4038
 
4005
4039
  var NAME$a = 'toast';
4006
- var VERSION$a = '4.2.1';
4040
+ var VERSION$a = '4.3.0';
4007
4041
  var DATA_KEY$a = 'bs.toast';
4008
4042
  var EVENT_KEY$a = "." + DATA_KEY$a;
4009
4043
  var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
@@ -4118,8 +4152,8 @@
4118
4152
  $.removeData(this._element, DATA_KEY$a);
4119
4153
  this._element = null;
4120
4154
  this._config = null;
4121
- }; // Private
4122
-
4155
+ } // Private
4156
+ ;
4123
4157
 
4124
4158
  _proto._getConfig = function _getConfig(config) {
4125
4159
  config = _objectSpread({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
@@ -4152,8 +4186,8 @@
4152
4186
  } else {
4153
4187
  complete();
4154
4188
  }
4155
- }; // Static
4156
-
4189
+ } // Static
4190
+ ;
4157
4191
 
4158
4192
  Toast._jQueryInterface = function _jQueryInterface(config) {
4159
4193
  return this.each(function () {
@@ -4187,6 +4221,11 @@
4187
4221
  get: function get() {
4188
4222
  return DefaultType$7;
4189
4223
  }
4224
+ }, {
4225
+ key: "Default",
4226
+ get: function get() {
4227
+ return Default$7;
4228
+ }
4190
4229
  }]);
4191
4230
 
4192
4231
  return Toast;
@@ -4208,7 +4247,7 @@
4208
4247
 
4209
4248
  /**
4210
4249
  * --------------------------------------------------------------------------
4211
- * Bootstrap (v4.2.1): index.js
4250
+ * Bootstrap (v4.3.0): index.js
4212
4251
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
4213
4252
  * --------------------------------------------------------------------------
4214
4253
  */
@@ -4245,4 +4284,4 @@
4245
4284
 
4246
4285
  Object.defineProperty(exports, '__esModule', { value: true });
4247
4286
 
4248
- })));
4287
+ }));