bootstrap 4.5.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap/alert.js +35 -41
  4. data/assets/javascripts/bootstrap/button.js +42 -44
  5. data/assets/javascripts/bootstrap/carousel.js +126 -155
  6. data/assets/javascripts/bootstrap/collapse.js +88 -125
  7. data/assets/javascripts/bootstrap/dropdown.js +93 -133
  8. data/assets/javascripts/bootstrap/modal.js +163 -183
  9. data/assets/javascripts/bootstrap/popover.js +57 -82
  10. data/assets/javascripts/bootstrap/scrollspy.js +63 -100
  11. data/assets/javascripts/bootstrap/tab.js +58 -58
  12. data/assets/javascripts/bootstrap/toast.js +66 -95
  13. data/assets/javascripts/bootstrap/tooltip.js +136 -166
  14. data/assets/javascripts/bootstrap/util.js +22 -25
  15. data/assets/javascripts/bootstrap-sprockets.js +6 -6
  16. data/assets/javascripts/bootstrap.js +884 -947
  17. data/assets/javascripts/bootstrap.min.js +4 -4
  18. data/assets/stylesheets/_bootstrap-grid.scss +5 -4
  19. data/assets/stylesheets/_bootstrap-reboot.scss +4 -4
  20. data/assets/stylesheets/_bootstrap.scss +4 -4
  21. data/assets/stylesheets/bootstrap/_alert.scss +1 -0
  22. data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -3
  23. data/assets/stylesheets/bootstrap/_card.scss +19 -15
  24. data/assets/stylesheets/bootstrap/_carousel.scss +6 -3
  25. data/assets/stylesheets/bootstrap/_custom-forms.scss +20 -16
  26. data/assets/stylesheets/bootstrap/_dropdown.scss +2 -2
  27. data/assets/stylesheets/bootstrap/_forms.scss +10 -10
  28. data/assets/stylesheets/bootstrap/_functions.scss +50 -1
  29. data/assets/stylesheets/bootstrap/_grid.scss +1 -5
  30. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  31. data/assets/stylesheets/bootstrap/_input-group.scss +22 -3
  32. data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -1
  33. data/assets/stylesheets/bootstrap/_list-group.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_modal.scss +2 -3
  35. data/assets/stylesheets/bootstrap/_nav.scss +3 -4
  36. data/assets/stylesheets/bootstrap/_navbar.scss +10 -2
  37. data/assets/stylesheets/bootstrap/_pagination.scss +2 -2
  38. data/assets/stylesheets/bootstrap/_popover.scss +9 -9
  39. data/assets/stylesheets/bootstrap/_print.scss +0 -9
  40. data/assets/stylesheets/bootstrap/_progress.scss +1 -1
  41. data/assets/stylesheets/bootstrap/_reboot.scss +17 -13
  42. data/assets/stylesheets/bootstrap/_root.scss +0 -1
  43. data/assets/stylesheets/bootstrap/_spinners.scss +15 -6
  44. data/assets/stylesheets/bootstrap/_toasts.scss +4 -2
  45. data/assets/stylesheets/bootstrap/_tooltip.scss +4 -4
  46. data/assets/stylesheets/bootstrap/_type.scss +1 -1
  47. data/assets/stylesheets/bootstrap/_variables.scss +30 -29
  48. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
  49. data/assets/stylesheets/bootstrap/mixins/_forms.scss +21 -3
  50. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -3
  51. data/assets/stylesheets/bootstrap/mixins/_grid.scss +17 -17
  52. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -1
  53. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +2 -2
  54. data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
  55. data/assets/stylesheets/bootstrap/utilities/_borders.scss +1 -1
  56. data/assets/stylesheets/bootstrap/utilities/_embed.scss +1 -1
  57. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +1 -1
  58. data/assets/stylesheets/bootstrap/utilities/_text.scss +2 -1
  59. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +126 -102
  60. data/lib/bootstrap/version.rb +2 -2
  61. metadata +2 -2
@@ -1,17 +1,19 @@
1
1
  /*!
2
- * Bootstrap tooltip.js v4.5.0 (https://getbootstrap.com/)
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)
2
+ * Bootstrap tooltip.js v4.6.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
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('popper.js'), require('./util.js')) :
8
- typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util.js'], factory) :
9
- (global = global || self, global.Tooltip = factory(global.jQuery, global.Popper, global.Util));
10
- }(this, (function ($, Popper, Util) { 'use strict';
8
+ typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util'], factory) :
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.jQuery, global.Popper, global.Util));
10
+ })(this, (function ($, Popper, Util) { 'use strict';
11
11
 
12
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
- Popper = Popper && Object.prototype.hasOwnProperty.call(Popper, 'default') ? Popper['default'] : Popper;
14
- Util = Util && Object.prototype.hasOwnProperty.call(Util, 'default') ? Util['default'] : Util;
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
15
+ var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
16
+ var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);
15
17
 
16
18
  function _defineProperties(target, props) {
17
19
  for (var i = 0; i < props.length; i++) {
@@ -29,59 +31,28 @@
29
31
  return Constructor;
30
32
  }
31
33
 
32
- function _defineProperty(obj, key, value) {
33
- if (key in obj) {
34
- Object.defineProperty(obj, key, {
35
- value: value,
36
- enumerable: true,
37
- configurable: true,
38
- writable: true
39
- });
40
- } else {
41
- obj[key] = value;
42
- }
43
-
44
- return obj;
45
- }
46
-
47
- function ownKeys(object, enumerableOnly) {
48
- var keys = Object.keys(object);
49
-
50
- if (Object.getOwnPropertySymbols) {
51
- var symbols = Object.getOwnPropertySymbols(object);
52
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
53
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
- });
55
- keys.push.apply(keys, symbols);
56
- }
57
-
58
- return keys;
59
- }
60
-
61
- function _objectSpread2(target) {
62
- for (var i = 1; i < arguments.length; i++) {
63
- var source = arguments[i] != null ? arguments[i] : {};
34
+ function _extends() {
35
+ _extends = Object.assign || function (target) {
36
+ for (var i = 1; i < arguments.length; i++) {
37
+ var source = arguments[i];
64
38
 
65
- if (i % 2) {
66
- ownKeys(Object(source), true).forEach(function (key) {
67
- _defineProperty(target, key, source[key]);
68
- });
69
- } else if (Object.getOwnPropertyDescriptors) {
70
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
71
- } else {
72
- ownKeys(Object(source)).forEach(function (key) {
73
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
74
- });
39
+ for (var key in source) {
40
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
41
+ target[key] = source[key];
42
+ }
43
+ }
75
44
  }
76
- }
77
45
 
78
- return target;
46
+ return target;
47
+ };
48
+
49
+ return _extends.apply(this, arguments);
79
50
  }
80
51
 
81
52
  /**
82
53
  * --------------------------------------------------------------------------
83
- * Bootstrap (v4.5.0): tools/sanitizer.js
84
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
54
+ * Bootstrap (v4.6.1): tools/sanitizer.js
55
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
85
56
  * --------------------------------------------------------------------------
86
57
  */
87
58
  var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
@@ -122,14 +93,14 @@
122
93
  /**
123
94
  * A pattern that recognizes a commonly useful subset of URLs that are safe.
124
95
  *
125
- * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
96
+ * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
126
97
  */
127
98
 
128
- var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
99
+ var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
129
100
  /**
130
101
  * A pattern that matches safe data URLs. Only matches image, video and audio types.
131
102
  *
132
- * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
103
+ * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
133
104
  */
134
105
 
135
106
  var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
@@ -139,7 +110,7 @@
139
110
 
140
111
  if (allowedAttributeList.indexOf(attrName) !== -1) {
141
112
  if (uriAttrs.indexOf(attrName) !== -1) {
142
- return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
113
+ return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
143
114
  }
144
115
 
145
116
  return true;
@@ -150,7 +121,7 @@
150
121
  }); // Check if a regular expression validates the attribute.
151
122
 
152
123
  for (var i = 0, len = regExp.length; i < len; i++) {
153
- if (attrName.match(regExp[i])) {
124
+ if (regExp[i].test(attrName)) {
154
125
  return true;
155
126
  }
156
127
  }
@@ -181,7 +152,8 @@
181
152
  return "continue";
182
153
  }
183
154
 
184
- var attributeList = [].slice.call(el.attributes);
155
+ var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
156
+
185
157
  var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
186
158
  attributeList.forEach(function (attr) {
187
159
  if (!allowedAttribute(attr, whitelistedAttributes)) {
@@ -200,37 +172,27 @@
200
172
  }
201
173
 
202
174
  /**
203
- * ------------------------------------------------------------------------
204
175
  * Constants
205
- * ------------------------------------------------------------------------
206
176
  */
207
177
 
208
178
  var NAME = 'tooltip';
209
- var VERSION = '4.5.0';
179
+ var VERSION = '4.6.1';
210
180
  var DATA_KEY = 'bs.tooltip';
211
181
  var EVENT_KEY = "." + DATA_KEY;
212
- var JQUERY_NO_CONFLICT = $.fn[NAME];
182
+ var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
213
183
  var CLASS_PREFIX = 'bs-tooltip';
214
184
  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
215
185
  var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
216
- var DefaultType = {
217
- animation: 'boolean',
218
- template: 'string',
219
- title: '(string|element|function)',
220
- trigger: 'string',
221
- delay: '(number|object)',
222
- html: 'boolean',
223
- selector: '(string|boolean)',
224
- placement: '(string|function)',
225
- offset: '(number|string|function)',
226
- container: '(string|element|boolean)',
227
- fallbackPlacement: '(string|array)',
228
- boundary: '(string|element)',
229
- sanitize: 'boolean',
230
- sanitizeFn: '(null|function)',
231
- whiteList: 'object',
232
- popperConfig: '(null|object)'
233
- };
186
+ var CLASS_NAME_FADE = 'fade';
187
+ var CLASS_NAME_SHOW = 'show';
188
+ var HOVER_STATE_SHOW = 'show';
189
+ var HOVER_STATE_OUT = 'out';
190
+ var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
191
+ var SELECTOR_ARROW = '.arrow';
192
+ var TRIGGER_HOVER = 'hover';
193
+ var TRIGGER_FOCUS = 'focus';
194
+ var TRIGGER_CLICK = 'click';
195
+ var TRIGGER_MANUAL = 'manual';
234
196
  var AttachmentMap = {
235
197
  AUTO: 'auto',
236
198
  TOP: 'top',
@@ -251,13 +213,31 @@
251
213
  container: false,
252
214
  fallbackPlacement: 'flip',
253
215
  boundary: 'scrollParent',
216
+ customClass: '',
254
217
  sanitize: true,
255
218
  sanitizeFn: null,
256
219
  whiteList: DefaultWhitelist,
257
220
  popperConfig: null
258
221
  };
259
- var HOVER_STATE_SHOW = 'show';
260
- var HOVER_STATE_OUT = 'out';
222
+ var DefaultType = {
223
+ animation: 'boolean',
224
+ template: 'string',
225
+ title: '(string|element|function)',
226
+ trigger: 'string',
227
+ delay: '(number|object)',
228
+ html: 'boolean',
229
+ selector: '(string|boolean)',
230
+ placement: '(string|function)',
231
+ offset: '(number|string|function)',
232
+ container: '(string|element|boolean)',
233
+ fallbackPlacement: '(string|array)',
234
+ boundary: '(string|element)',
235
+ customClass: '(string|function)',
236
+ sanitize: 'boolean',
237
+ sanitizeFn: '(null|function)',
238
+ whiteList: 'object',
239
+ popperConfig: '(null|object)'
240
+ };
261
241
  var Event = {
262
242
  HIDE: "hide" + EVENT_KEY,
263
243
  HIDDEN: "hidden" + EVENT_KEY,
@@ -270,25 +250,15 @@
270
250
  MOUSEENTER: "mouseenter" + EVENT_KEY,
271
251
  MOUSELEAVE: "mouseleave" + EVENT_KEY
272
252
  };
273
- var CLASS_NAME_FADE = 'fade';
274
- var CLASS_NAME_SHOW = 'show';
275
- var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
276
- var SELECTOR_ARROW = '.arrow';
277
- var TRIGGER_HOVER = 'hover';
278
- var TRIGGER_FOCUS = 'focus';
279
- var TRIGGER_CLICK = 'click';
280
- var TRIGGER_MANUAL = 'manual';
281
253
  /**
282
- * ------------------------------------------------------------------------
283
- * Class Definition
284
- * ------------------------------------------------------------------------
254
+ * Class definition
285
255
  */
286
256
 
287
257
  var Tooltip = /*#__PURE__*/function () {
288
258
  function Tooltip(element, config) {
289
- if (typeof Popper === 'undefined') {
290
- throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
291
- } // private
259
+ if (typeof Popper__default["default"] === 'undefined') {
260
+ throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
261
+ } // Private
292
262
 
293
263
 
294
264
  this._isEnabled = true;
@@ -327,11 +297,11 @@
327
297
 
328
298
  if (event) {
329
299
  var dataKey = this.constructor.DATA_KEY;
330
- var context = $(event.currentTarget).data(dataKey);
300
+ var context = $__default["default"](event.currentTarget).data(dataKey);
331
301
 
332
302
  if (!context) {
333
303
  context = new this.constructor(event.currentTarget, this._getDelegateConfig());
334
- $(event.currentTarget).data(dataKey, context);
304
+ $__default["default"](event.currentTarget).data(dataKey, context);
335
305
  }
336
306
 
337
307
  context._activeTrigger.click = !context._activeTrigger.click;
@@ -342,7 +312,7 @@
342
312
  context._leave(null, context);
343
313
  }
344
314
  } else {
345
- if ($(this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
315
+ if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
346
316
  this._leave(null, this);
347
317
 
348
318
  return;
@@ -354,12 +324,12 @@
354
324
 
355
325
  _proto.dispose = function dispose() {
356
326
  clearTimeout(this._timeout);
357
- $.removeData(this.element, this.constructor.DATA_KEY);
358
- $(this.element).off(this.constructor.EVENT_KEY);
359
- $(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
327
+ $__default["default"].removeData(this.element, this.constructor.DATA_KEY);
328
+ $__default["default"](this.element).off(this.constructor.EVENT_KEY);
329
+ $__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
360
330
 
361
331
  if (this.tip) {
362
- $(this.tip).remove();
332
+ $__default["default"](this.tip).remove();
363
333
  }
364
334
 
365
335
  this._isEnabled = null;
@@ -380,29 +350,29 @@
380
350
  _proto.show = function show() {
381
351
  var _this = this;
382
352
 
383
- if ($(this.element).css('display') === 'none') {
353
+ if ($__default["default"](this.element).css('display') === 'none') {
384
354
  throw new Error('Please use show on visible elements');
385
355
  }
386
356
 
387
- var showEvent = $.Event(this.constructor.Event.SHOW);
357
+ var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
388
358
 
389
359
  if (this.isWithContent() && this._isEnabled) {
390
- $(this.element).trigger(showEvent);
391
- var shadowRoot = Util.findShadowRoot(this.element);
392
- var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
360
+ $__default["default"](this.element).trigger(showEvent);
361
+ var shadowRoot = Util__default["default"].findShadowRoot(this.element);
362
+ var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
393
363
 
394
364
  if (showEvent.isDefaultPrevented() || !isInTheDom) {
395
365
  return;
396
366
  }
397
367
 
398
368
  var tip = this.getTipElement();
399
- var tipId = Util.getUID(this.constructor.NAME);
369
+ var tipId = Util__default["default"].getUID(this.constructor.NAME);
400
370
  tip.setAttribute('id', tipId);
401
371
  this.element.setAttribute('aria-describedby', tipId);
402
372
  this.setContent();
403
373
 
404
374
  if (this.config.animation) {
405
- $(tip).addClass(CLASS_NAME_FADE);
375
+ $__default["default"](tip).addClass(CLASS_NAME_FADE);
406
376
  }
407
377
 
408
378
  var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
@@ -413,21 +383,22 @@
413
383
 
414
384
  var container = this._getContainer();
415
385
 
416
- $(tip).data(this.constructor.DATA_KEY, this);
386
+ $__default["default"](tip).data(this.constructor.DATA_KEY, this);
417
387
 
418
- if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {
419
- $(tip).appendTo(container);
388
+ if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
389
+ $__default["default"](tip).appendTo(container);
420
390
  }
421
391
 
422
- $(this.element).trigger(this.constructor.Event.INSERTED);
423
- this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
424
- $(tip).addClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we add extra
392
+ $__default["default"](this.element).trigger(this.constructor.Event.INSERTED);
393
+ this._popper = new Popper__default["default"](this.element, tip, this._getPopperConfig(attachment));
394
+ $__default["default"](tip).addClass(CLASS_NAME_SHOW);
395
+ $__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
425
396
  // empty mouseover listeners to the body's immediate children;
426
397
  // only needed because of broken event delegation on iOS
427
398
  // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
428
399
 
429
400
  if ('ontouchstart' in document.documentElement) {
430
- $(document.body).children().on('mouseover', null, $.noop);
401
+ $__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
431
402
  }
432
403
 
433
404
  var complete = function complete() {
@@ -437,16 +408,16 @@
437
408
 
438
409
  var prevHoverState = _this._hoverState;
439
410
  _this._hoverState = null;
440
- $(_this.element).trigger(_this.constructor.Event.SHOWN);
411
+ $__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
441
412
 
442
413
  if (prevHoverState === HOVER_STATE_OUT) {
443
414
  _this._leave(null, _this);
444
415
  }
445
416
  };
446
417
 
447
- if ($(this.tip).hasClass(CLASS_NAME_FADE)) {
448
- var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
449
- $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
418
+ if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
419
+ var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this.tip);
420
+ $__default["default"](this.tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
450
421
  } else {
451
422
  complete();
452
423
  }
@@ -457,7 +428,7 @@
457
428
  var _this2 = this;
458
429
 
459
430
  var tip = this.getTipElement();
460
- var hideEvent = $.Event(this.constructor.Event.HIDE);
431
+ var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
461
432
 
462
433
  var complete = function complete() {
463
434
  if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
@@ -468,7 +439,7 @@
468
439
 
469
440
  _this2.element.removeAttribute('aria-describedby');
470
441
 
471
- $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
442
+ $__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
472
443
 
473
444
  if (_this2._popper !== null) {
474
445
  _this2._popper.destroy();
@@ -479,26 +450,26 @@
479
450
  }
480
451
  };
481
452
 
482
- $(this.element).trigger(hideEvent);
453
+ $__default["default"](this.element).trigger(hideEvent);
483
454
 
484
455
  if (hideEvent.isDefaultPrevented()) {
485
456
  return;
486
457
  }
487
458
 
488
- $(tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
459
+ $__default["default"](tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
489
460
  // empty mouseover listeners we added for iOS support
490
461
 
491
462
  if ('ontouchstart' in document.documentElement) {
492
- $(document.body).children().off('mouseover', null, $.noop);
463
+ $__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
493
464
  }
494
465
 
495
466
  this._activeTrigger[TRIGGER_CLICK] = false;
496
467
  this._activeTrigger[TRIGGER_FOCUS] = false;
497
468
  this._activeTrigger[TRIGGER_HOVER] = false;
498
469
 
499
- if ($(this.tip).hasClass(CLASS_NAME_FADE)) {
500
- var transitionDuration = Util.getTransitionDurationFromElement(tip);
501
- $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
470
+ if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
471
+ var transitionDuration = Util__default["default"].getTransitionDurationFromElement(tip);
472
+ $__default["default"](tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
502
473
  } else {
503
474
  complete();
504
475
  }
@@ -518,29 +489,29 @@
518
489
  };
519
490
 
520
491
  _proto.addAttachmentClass = function addAttachmentClass(attachment) {
521
- $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
492
+ $__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
522
493
  };
523
494
 
524
495
  _proto.getTipElement = function getTipElement() {
525
- this.tip = this.tip || $(this.config.template)[0];
496
+ this.tip = this.tip || $__default["default"](this.config.template)[0];
526
497
  return this.tip;
527
498
  };
528
499
 
529
500
  _proto.setContent = function setContent() {
530
501
  var tip = this.getTipElement();
531
- this.setElementContent($(tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
532
- $(tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
502
+ this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
503
+ $__default["default"](tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
533
504
  };
534
505
 
535
506
  _proto.setElementContent = function setElementContent($element, content) {
536
507
  if (typeof content === 'object' && (content.nodeType || content.jquery)) {
537
508
  // Content is a DOM node or a jQuery
538
509
  if (this.config.html) {
539
- if (!$(content).parent().is($element)) {
510
+ if (!$__default["default"](content).parent().is($element)) {
540
511
  $element.empty().append(content);
541
512
  }
542
513
  } else {
543
- $element.text($(content).text());
514
+ $element.text($__default["default"](content).text());
544
515
  }
545
516
 
546
517
  return;
@@ -594,7 +565,7 @@
594
565
  return _this3._handlePopperPlacementChange(data);
595
566
  }
596
567
  };
597
- return _objectSpread2(_objectSpread2({}, defaultBsConfig), this.config.popperConfig);
568
+ return _extends({}, defaultBsConfig, this.config.popperConfig);
598
569
  };
599
570
 
600
571
  _proto._getOffset = function _getOffset() {
@@ -604,7 +575,7 @@
604
575
 
605
576
  if (typeof this.config.offset === 'function') {
606
577
  offset.fn = function (data) {
607
- data.offsets = _objectSpread2(_objectSpread2({}, data.offsets), _this4.config.offset(data.offsets, _this4.element) || {});
578
+ data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
608
579
  return data;
609
580
  };
610
581
  } else {
@@ -619,11 +590,11 @@
619
590
  return document.body;
620
591
  }
621
592
 
622
- if (Util.isElement(this.config.container)) {
623
- return $(this.config.container);
593
+ if (Util__default["default"].isElement(this.config.container)) {
594
+ return $__default["default"](this.config.container);
624
595
  }
625
596
 
626
- return $(document).find(this.config.container);
597
+ return $__default["default"](document).find(this.config.container);
627
598
  };
628
599
 
629
600
  _proto._getAttachment = function _getAttachment(placement) {
@@ -636,13 +607,13 @@
636
607
  var triggers = this.config.trigger.split(' ');
637
608
  triggers.forEach(function (trigger) {
638
609
  if (trigger === 'click') {
639
- $(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
610
+ $__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
640
611
  return _this5.toggle(event);
641
612
  });
642
613
  } else if (trigger !== TRIGGER_MANUAL) {
643
614
  var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
644
615
  var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
645
- $(_this5.element).on(eventIn, _this5.config.selector, function (event) {
616
+ $__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
646
617
  return _this5._enter(event);
647
618
  }).on(eventOut, _this5.config.selector, function (event) {
648
619
  return _this5._leave(event);
@@ -656,10 +627,10 @@
656
627
  }
657
628
  };
658
629
 
659
- $(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
630
+ $__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
660
631
 
661
632
  if (this.config.selector) {
662
- this.config = _objectSpread2(_objectSpread2({}, this.config), {}, {
633
+ this.config = _extends({}, this.config, {
663
634
  trigger: 'manual',
664
635
  selector: ''
665
636
  });
@@ -679,18 +650,18 @@
679
650
 
680
651
  _proto._enter = function _enter(event, context) {
681
652
  var dataKey = this.constructor.DATA_KEY;
682
- context = context || $(event.currentTarget).data(dataKey);
653
+ context = context || $__default["default"](event.currentTarget).data(dataKey);
683
654
 
684
655
  if (!context) {
685
656
  context = new this.constructor(event.currentTarget, this._getDelegateConfig());
686
- $(event.currentTarget).data(dataKey, context);
657
+ $__default["default"](event.currentTarget).data(dataKey, context);
687
658
  }
688
659
 
689
660
  if (event) {
690
661
  context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
691
662
  }
692
663
 
693
- if ($(context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
664
+ if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
694
665
  context._hoverState = HOVER_STATE_SHOW;
695
666
  return;
696
667
  }
@@ -712,11 +683,11 @@
712
683
 
713
684
  _proto._leave = function _leave(event, context) {
714
685
  var dataKey = this.constructor.DATA_KEY;
715
- context = context || $(event.currentTarget).data(dataKey);
686
+ context = context || $__default["default"](event.currentTarget).data(dataKey);
716
687
 
717
688
  if (!context) {
718
689
  context = new this.constructor(event.currentTarget, this._getDelegateConfig());
719
- $(event.currentTarget).data(dataKey, context);
690
+ $__default["default"](event.currentTarget).data(dataKey, context);
720
691
  }
721
692
 
722
693
  if (event) {
@@ -753,13 +724,13 @@
753
724
  };
754
725
 
755
726
  _proto._getConfig = function _getConfig(config) {
756
- var dataAttributes = $(this.element).data();
727
+ var dataAttributes = $__default["default"](this.element).data();
757
728
  Object.keys(dataAttributes).forEach(function (dataAttr) {
758
729
  if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
759
730
  delete dataAttributes[dataAttr];
760
731
  }
761
732
  });
762
- config = _objectSpread2(_objectSpread2(_objectSpread2({}, this.constructor.Default), dataAttributes), typeof config === 'object' && config ? config : {});
733
+ config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
763
734
 
764
735
  if (typeof config.delay === 'number') {
765
736
  config.delay = {
@@ -776,7 +747,7 @@
776
747
  config.content = config.content.toString();
777
748
  }
778
749
 
779
- Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
750
+ Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
780
751
 
781
752
  if (config.sanitize) {
782
753
  config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
@@ -800,7 +771,7 @@
800
771
  };
801
772
 
802
773
  _proto._cleanTipClass = function _cleanTipClass() {
803
- var $tip = $(this.getTipElement());
774
+ var $tip = $__default["default"](this.getTipElement());
804
775
  var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
805
776
 
806
777
  if (tabClass !== null && tabClass.length) {
@@ -824,7 +795,7 @@
824
795
  return;
825
796
  }
826
797
 
827
- $(tip).removeClass(CLASS_NAME_FADE);
798
+ $__default["default"](tip).removeClass(CLASS_NAME_FADE);
828
799
  this.config.animation = false;
829
800
  this.hide();
830
801
  this.show();
@@ -834,7 +805,8 @@
834
805
 
835
806
  Tooltip._jQueryInterface = function _jQueryInterface(config) {
836
807
  return this.each(function () {
837
- var data = $(this).data(DATA_KEY);
808
+ var $element = $__default["default"](this);
809
+ var data = $element.data(DATA_KEY);
838
810
 
839
811
  var _config = typeof config === 'object' && config;
840
812
 
@@ -844,7 +816,7 @@
844
816
 
845
817
  if (!data) {
846
818
  data = new Tooltip(this, _config);
847
- $(this).data(DATA_KEY, data);
819
+ $element.data(DATA_KEY, data);
848
820
  }
849
821
 
850
822
  if (typeof config === 'string') {
@@ -897,20 +869,18 @@
897
869
  return Tooltip;
898
870
  }();
899
871
  /**
900
- * ------------------------------------------------------------------------
901
872
  * jQuery
902
- * ------------------------------------------------------------------------
903
873
  */
904
874
 
905
875
 
906
- $.fn[NAME] = Tooltip._jQueryInterface;
907
- $.fn[NAME].Constructor = Tooltip;
876
+ $__default["default"].fn[NAME] = Tooltip._jQueryInterface;
877
+ $__default["default"].fn[NAME].Constructor = Tooltip;
908
878
 
909
- $.fn[NAME].noConflict = function () {
910
- $.fn[NAME] = JQUERY_NO_CONFLICT;
879
+ $__default["default"].fn[NAME].noConflict = function () {
880
+ $__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
911
881
  return Tooltip._jQueryInterface;
912
882
  };
913
883
 
914
884
  return Tooltip;
915
885
 
916
- })));
886
+ }));