bootstrap 4.6.0 → 4.6.1
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/javascripts/bootstrap/alert.js +27 -35
- data/assets/javascripts/bootstrap/button.js +27 -35
- data/assets/javascripts/bootstrap/carousel.js +81 -93
- data/assets/javascripts/bootstrap/collapse.js +63 -71
- data/assets/javascripts/bootstrap/dropdown.js +66 -77
- data/assets/javascripts/bootstrap/modal.js +114 -122
- data/assets/javascripts/bootstrap/popover.js +36 -32
- data/assets/javascripts/bootstrap/scrollspy.js +41 -49
- data/assets/javascripts/bootstrap/tab.js +50 -52
- data/assets/javascripts/bootstrap/toast.js +37 -43
- data/assets/javascripts/bootstrap/tooltip.js +106 -111
- data/assets/javascripts/bootstrap/util.js +15 -18
- data/assets/javascripts/bootstrap-sprockets.js +7 -7
- data/assets/javascripts/bootstrap.js +787 -862
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/stylesheets/_bootstrap-grid.scss +1 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +1 -1
- data/assets/stylesheets/bootstrap/_card.scss +5 -5
- data/assets/stylesheets/bootstrap/_carousel.scss +5 -2
- data/assets/stylesheets/bootstrap/_custom-forms.scss +6 -6
- data/assets/stylesheets/bootstrap/_forms.scss +10 -10
- data/assets/stylesheets/bootstrap/_functions.scss +47 -1
- data/assets/stylesheets/bootstrap/_images.scss +1 -1
- data/assets/stylesheets/bootstrap/_input-group.scss +3 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -1
- data/assets/stylesheets/bootstrap/_modal.scss +2 -2
- data/assets/stylesheets/bootstrap/_popover.scss +9 -9
- data/assets/stylesheets/bootstrap/_print.scss +0 -9
- data/assets/stylesheets/bootstrap/_spinners.scss +2 -2
- data/assets/stylesheets/bootstrap/_tooltip.scss +4 -4
- data/assets/stylesheets/bootstrap/_variables.scss +12 -10
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +13 -3
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +11 -11
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +1 -1
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +126 -102
- data/lib/bootstrap/version.rb +2 -2
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap tooltip.js v4.6.
|
2
|
+
* Bootstrap tooltip.js v4.6.1 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 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
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util'], factory) :
|
9
9
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.jQuery, global.Popper, global.Util));
|
10
|
-
}(this, (function ($, Popper, Util) { 'use strict';
|
10
|
+
})(this, (function ($, Popper, Util) { 'use strict';
|
11
11
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
13
13
|
|
@@ -51,7 +51,7 @@
|
|
51
51
|
|
52
52
|
/**
|
53
53
|
* --------------------------------------------------------------------------
|
54
|
-
* Bootstrap (v4.6.
|
54
|
+
* Bootstrap (v4.6.1): tools/sanitizer.js
|
55
55
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
56
56
|
* --------------------------------------------------------------------------
|
57
57
|
*/
|
@@ -93,14 +93,14 @@
|
|
93
93
|
/**
|
94
94
|
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
95
95
|
*
|
96
|
-
* Shoutout to Angular
|
96
|
+
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
97
97
|
*/
|
98
98
|
|
99
|
-
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/
|
99
|
+
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
|
100
100
|
/**
|
101
101
|
* A pattern that matches safe data URLs. Only matches image, video and audio types.
|
102
102
|
*
|
103
|
-
* Shoutout to Angular
|
103
|
+
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
104
104
|
*/
|
105
105
|
|
106
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;
|
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
if (allowedAttributeList.indexOf(attrName) !== -1) {
|
112
112
|
if (uriAttrs.indexOf(attrName) !== -1) {
|
113
|
-
return Boolean(attr.nodeValue
|
113
|
+
return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
|
114
114
|
}
|
115
115
|
|
116
116
|
return true;
|
@@ -121,7 +121,7 @@
|
|
121
121
|
}); // Check if a regular expression validates the attribute.
|
122
122
|
|
123
123
|
for (var i = 0, len = regExp.length; i < len; i++) {
|
124
|
-
if (
|
124
|
+
if (regExp[i].test(attrName)) {
|
125
125
|
return true;
|
126
126
|
}
|
127
127
|
}
|
@@ -152,7 +152,8 @@
|
|
152
152
|
return "continue";
|
153
153
|
}
|
154
154
|
|
155
|
-
var attributeList = [].slice.call(el.attributes);
|
155
|
+
var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
|
156
|
+
|
156
157
|
var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
|
157
158
|
attributeList.forEach(function (attr) {
|
158
159
|
if (!allowedAttribute(attr, whitelistedAttributes)) {
|
@@ -171,38 +172,27 @@
|
|
171
172
|
}
|
172
173
|
|
173
174
|
/**
|
174
|
-
* ------------------------------------------------------------------------
|
175
175
|
* Constants
|
176
|
-
* ------------------------------------------------------------------------
|
177
176
|
*/
|
178
177
|
|
179
178
|
var NAME = 'tooltip';
|
180
|
-
var VERSION = '4.6.
|
179
|
+
var VERSION = '4.6.1';
|
181
180
|
var DATA_KEY = 'bs.tooltip';
|
182
181
|
var EVENT_KEY = "." + DATA_KEY;
|
183
|
-
var JQUERY_NO_CONFLICT = $__default[
|
182
|
+
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
184
183
|
var CLASS_PREFIX = 'bs-tooltip';
|
185
184
|
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
186
185
|
var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
|
187
|
-
var
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
container: '(string|element|boolean)',
|
198
|
-
fallbackPlacement: '(string|array)',
|
199
|
-
boundary: '(string|element)',
|
200
|
-
customClass: '(string|function)',
|
201
|
-
sanitize: 'boolean',
|
202
|
-
sanitizeFn: '(null|function)',
|
203
|
-
whiteList: 'object',
|
204
|
-
popperConfig: '(null|object)'
|
205
|
-
};
|
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';
|
206
196
|
var AttachmentMap = {
|
207
197
|
AUTO: 'auto',
|
208
198
|
TOP: 'top',
|
@@ -229,8 +219,25 @@
|
|
229
219
|
whiteList: DefaultWhitelist,
|
230
220
|
popperConfig: null
|
231
221
|
};
|
232
|
-
var
|
233
|
-
|
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
|
+
};
|
234
241
|
var Event = {
|
235
242
|
HIDE: "hide" + EVENT_KEY,
|
236
243
|
HIDDEN: "hidden" + EVENT_KEY,
|
@@ -243,25 +250,15 @@
|
|
243
250
|
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
244
251
|
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
245
252
|
};
|
246
|
-
var CLASS_NAME_FADE = 'fade';
|
247
|
-
var CLASS_NAME_SHOW = 'show';
|
248
|
-
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
249
|
-
var SELECTOR_ARROW = '.arrow';
|
250
|
-
var TRIGGER_HOVER = 'hover';
|
251
|
-
var TRIGGER_FOCUS = 'focus';
|
252
|
-
var TRIGGER_CLICK = 'click';
|
253
|
-
var TRIGGER_MANUAL = 'manual';
|
254
253
|
/**
|
255
|
-
*
|
256
|
-
* Class Definition
|
257
|
-
* ------------------------------------------------------------------------
|
254
|
+
* Class definition
|
258
255
|
*/
|
259
256
|
|
260
257
|
var Tooltip = /*#__PURE__*/function () {
|
261
258
|
function Tooltip(element, config) {
|
262
|
-
if (typeof Popper__default[
|
259
|
+
if (typeof Popper__default["default"] === 'undefined') {
|
263
260
|
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
264
|
-
} //
|
261
|
+
} // Private
|
265
262
|
|
266
263
|
|
267
264
|
this._isEnabled = true;
|
@@ -300,11 +297,11 @@
|
|
300
297
|
|
301
298
|
if (event) {
|
302
299
|
var dataKey = this.constructor.DATA_KEY;
|
303
|
-
var context = $__default[
|
300
|
+
var context = $__default["default"](event.currentTarget).data(dataKey);
|
304
301
|
|
305
302
|
if (!context) {
|
306
303
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
307
|
-
$__default[
|
304
|
+
$__default["default"](event.currentTarget).data(dataKey, context);
|
308
305
|
}
|
309
306
|
|
310
307
|
context._activeTrigger.click = !context._activeTrigger.click;
|
@@ -315,7 +312,7 @@
|
|
315
312
|
context._leave(null, context);
|
316
313
|
}
|
317
314
|
} else {
|
318
|
-
if ($__default[
|
315
|
+
if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
|
319
316
|
this._leave(null, this);
|
320
317
|
|
321
318
|
return;
|
@@ -327,12 +324,12 @@
|
|
327
324
|
|
328
325
|
_proto.dispose = function dispose() {
|
329
326
|
clearTimeout(this._timeout);
|
330
|
-
$__default[
|
331
|
-
$__default[
|
332
|
-
$__default[
|
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);
|
333
330
|
|
334
331
|
if (this.tip) {
|
335
|
-
$__default[
|
332
|
+
$__default["default"](this.tip).remove();
|
336
333
|
}
|
337
334
|
|
338
335
|
this._isEnabled = null;
|
@@ -353,29 +350,29 @@
|
|
353
350
|
_proto.show = function show() {
|
354
351
|
var _this = this;
|
355
352
|
|
356
|
-
if ($__default[
|
353
|
+
if ($__default["default"](this.element).css('display') === 'none') {
|
357
354
|
throw new Error('Please use show on visible elements');
|
358
355
|
}
|
359
356
|
|
360
|
-
var showEvent = $__default[
|
357
|
+
var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
|
361
358
|
|
362
359
|
if (this.isWithContent() && this._isEnabled) {
|
363
|
-
$__default[
|
364
|
-
var shadowRoot = Util__default[
|
365
|
-
var isInTheDom = $__default[
|
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);
|
366
363
|
|
367
364
|
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
368
365
|
return;
|
369
366
|
}
|
370
367
|
|
371
368
|
var tip = this.getTipElement();
|
372
|
-
var tipId = Util__default[
|
369
|
+
var tipId = Util__default["default"].getUID(this.constructor.NAME);
|
373
370
|
tip.setAttribute('id', tipId);
|
374
371
|
this.element.setAttribute('aria-describedby', tipId);
|
375
372
|
this.setContent();
|
376
373
|
|
377
374
|
if (this.config.animation) {
|
378
|
-
$__default[
|
375
|
+
$__default["default"](tip).addClass(CLASS_NAME_FADE);
|
379
376
|
}
|
380
377
|
|
381
378
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
@@ -386,22 +383,22 @@
|
|
386
383
|
|
387
384
|
var container = this._getContainer();
|
388
385
|
|
389
|
-
$__default[
|
386
|
+
$__default["default"](tip).data(this.constructor.DATA_KEY, this);
|
390
387
|
|
391
|
-
if (!$__default[
|
392
|
-
$__default[
|
388
|
+
if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
389
|
+
$__default["default"](tip).appendTo(container);
|
393
390
|
}
|
394
391
|
|
395
|
-
$__default[
|
396
|
-
this._popper = new Popper__default[
|
397
|
-
$__default[
|
398
|
-
$__default[
|
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
|
399
396
|
// empty mouseover listeners to the body's immediate children;
|
400
397
|
// only needed because of broken event delegation on iOS
|
401
398
|
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
402
399
|
|
403
400
|
if ('ontouchstart' in document.documentElement) {
|
404
|
-
$__default[
|
401
|
+
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
405
402
|
}
|
406
403
|
|
407
404
|
var complete = function complete() {
|
@@ -411,16 +408,16 @@
|
|
411
408
|
|
412
409
|
var prevHoverState = _this._hoverState;
|
413
410
|
_this._hoverState = null;
|
414
|
-
$__default[
|
411
|
+
$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
|
415
412
|
|
416
413
|
if (prevHoverState === HOVER_STATE_OUT) {
|
417
414
|
_this._leave(null, _this);
|
418
415
|
}
|
419
416
|
};
|
420
417
|
|
421
|
-
if ($__default[
|
422
|
-
var transitionDuration = Util__default[
|
423
|
-
$__default[
|
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);
|
424
421
|
} else {
|
425
422
|
complete();
|
426
423
|
}
|
@@ -431,7 +428,7 @@
|
|
431
428
|
var _this2 = this;
|
432
429
|
|
433
430
|
var tip = this.getTipElement();
|
434
|
-
var hideEvent = $__default[
|
431
|
+
var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
|
435
432
|
|
436
433
|
var complete = function complete() {
|
437
434
|
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
|
@@ -442,7 +439,7 @@
|
|
442
439
|
|
443
440
|
_this2.element.removeAttribute('aria-describedby');
|
444
441
|
|
445
|
-
$__default[
|
442
|
+
$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
446
443
|
|
447
444
|
if (_this2._popper !== null) {
|
448
445
|
_this2._popper.destroy();
|
@@ -453,26 +450,26 @@
|
|
453
450
|
}
|
454
451
|
};
|
455
452
|
|
456
|
-
$__default[
|
453
|
+
$__default["default"](this.element).trigger(hideEvent);
|
457
454
|
|
458
455
|
if (hideEvent.isDefaultPrevented()) {
|
459
456
|
return;
|
460
457
|
}
|
461
458
|
|
462
|
-
$__default[
|
459
|
+
$__default["default"](tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
|
463
460
|
// empty mouseover listeners we added for iOS support
|
464
461
|
|
465
462
|
if ('ontouchstart' in document.documentElement) {
|
466
|
-
$__default[
|
463
|
+
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
467
464
|
}
|
468
465
|
|
469
466
|
this._activeTrigger[TRIGGER_CLICK] = false;
|
470
467
|
this._activeTrigger[TRIGGER_FOCUS] = false;
|
471
468
|
this._activeTrigger[TRIGGER_HOVER] = false;
|
472
469
|
|
473
|
-
if ($__default[
|
474
|
-
var transitionDuration = Util__default[
|
475
|
-
$__default[
|
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);
|
476
473
|
} else {
|
477
474
|
complete();
|
478
475
|
}
|
@@ -492,29 +489,29 @@
|
|
492
489
|
};
|
493
490
|
|
494
491
|
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
495
|
-
$__default[
|
492
|
+
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
496
493
|
};
|
497
494
|
|
498
495
|
_proto.getTipElement = function getTipElement() {
|
499
|
-
this.tip = this.tip || $__default[
|
496
|
+
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
500
497
|
return this.tip;
|
501
498
|
};
|
502
499
|
|
503
500
|
_proto.setContent = function setContent() {
|
504
501
|
var tip = this.getTipElement();
|
505
|
-
this.setElementContent($__default[
|
506
|
-
$__default[
|
502
|
+
this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
503
|
+
$__default["default"](tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
|
507
504
|
};
|
508
505
|
|
509
506
|
_proto.setElementContent = function setElementContent($element, content) {
|
510
507
|
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
511
508
|
// Content is a DOM node or a jQuery
|
512
509
|
if (this.config.html) {
|
513
|
-
if (!$__default[
|
510
|
+
if (!$__default["default"](content).parent().is($element)) {
|
514
511
|
$element.empty().append(content);
|
515
512
|
}
|
516
513
|
} else {
|
517
|
-
$element.text($__default[
|
514
|
+
$element.text($__default["default"](content).text());
|
518
515
|
}
|
519
516
|
|
520
517
|
return;
|
@@ -578,7 +575,7 @@
|
|
578
575
|
|
579
576
|
if (typeof this.config.offset === 'function') {
|
580
577
|
offset.fn = function (data) {
|
581
|
-
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element)
|
578
|
+
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
|
582
579
|
return data;
|
583
580
|
};
|
584
581
|
} else {
|
@@ -593,11 +590,11 @@
|
|
593
590
|
return document.body;
|
594
591
|
}
|
595
592
|
|
596
|
-
if (Util__default[
|
597
|
-
return $__default[
|
593
|
+
if (Util__default["default"].isElement(this.config.container)) {
|
594
|
+
return $__default["default"](this.config.container);
|
598
595
|
}
|
599
596
|
|
600
|
-
return $__default[
|
597
|
+
return $__default["default"](document).find(this.config.container);
|
601
598
|
};
|
602
599
|
|
603
600
|
_proto._getAttachment = function _getAttachment(placement) {
|
@@ -610,13 +607,13 @@
|
|
610
607
|
var triggers = this.config.trigger.split(' ');
|
611
608
|
triggers.forEach(function (trigger) {
|
612
609
|
if (trigger === 'click') {
|
613
|
-
$__default[
|
610
|
+
$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
614
611
|
return _this5.toggle(event);
|
615
612
|
});
|
616
613
|
} else if (trigger !== TRIGGER_MANUAL) {
|
617
614
|
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
618
615
|
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
619
|
-
$__default[
|
616
|
+
$__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
620
617
|
return _this5._enter(event);
|
621
618
|
}).on(eventOut, _this5.config.selector, function (event) {
|
622
619
|
return _this5._leave(event);
|
@@ -630,7 +627,7 @@
|
|
630
627
|
}
|
631
628
|
};
|
632
629
|
|
633
|
-
$__default[
|
630
|
+
$__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
634
631
|
|
635
632
|
if (this.config.selector) {
|
636
633
|
this.config = _extends({}, this.config, {
|
@@ -653,18 +650,18 @@
|
|
653
650
|
|
654
651
|
_proto._enter = function _enter(event, context) {
|
655
652
|
var dataKey = this.constructor.DATA_KEY;
|
656
|
-
context = context || $__default[
|
653
|
+
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
657
654
|
|
658
655
|
if (!context) {
|
659
656
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
660
|
-
$__default[
|
657
|
+
$__default["default"](event.currentTarget).data(dataKey, context);
|
661
658
|
}
|
662
659
|
|
663
660
|
if (event) {
|
664
661
|
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
665
662
|
}
|
666
663
|
|
667
|
-
if ($__default[
|
664
|
+
if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
|
668
665
|
context._hoverState = HOVER_STATE_SHOW;
|
669
666
|
return;
|
670
667
|
}
|
@@ -686,11 +683,11 @@
|
|
686
683
|
|
687
684
|
_proto._leave = function _leave(event, context) {
|
688
685
|
var dataKey = this.constructor.DATA_KEY;
|
689
|
-
context = context || $__default[
|
686
|
+
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
690
687
|
|
691
688
|
if (!context) {
|
692
689
|
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
693
|
-
$__default[
|
690
|
+
$__default["default"](event.currentTarget).data(dataKey, context);
|
694
691
|
}
|
695
692
|
|
696
693
|
if (event) {
|
@@ -727,7 +724,7 @@
|
|
727
724
|
};
|
728
725
|
|
729
726
|
_proto._getConfig = function _getConfig(config) {
|
730
|
-
var dataAttributes = $__default[
|
727
|
+
var dataAttributes = $__default["default"](this.element).data();
|
731
728
|
Object.keys(dataAttributes).forEach(function (dataAttr) {
|
732
729
|
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
|
733
730
|
delete dataAttributes[dataAttr];
|
@@ -750,7 +747,7 @@
|
|
750
747
|
config.content = config.content.toString();
|
751
748
|
}
|
752
749
|
|
753
|
-
Util__default[
|
750
|
+
Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
754
751
|
|
755
752
|
if (config.sanitize) {
|
756
753
|
config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
|
@@ -774,7 +771,7 @@
|
|
774
771
|
};
|
775
772
|
|
776
773
|
_proto._cleanTipClass = function _cleanTipClass() {
|
777
|
-
var $tip = $__default[
|
774
|
+
var $tip = $__default["default"](this.getTipElement());
|
778
775
|
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
779
776
|
|
780
777
|
if (tabClass !== null && tabClass.length) {
|
@@ -798,7 +795,7 @@
|
|
798
795
|
return;
|
799
796
|
}
|
800
797
|
|
801
|
-
$__default[
|
798
|
+
$__default["default"](tip).removeClass(CLASS_NAME_FADE);
|
802
799
|
this.config.animation = false;
|
803
800
|
this.hide();
|
804
801
|
this.show();
|
@@ -808,7 +805,7 @@
|
|
808
805
|
|
809
806
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
810
807
|
return this.each(function () {
|
811
|
-
var $element = $__default[
|
808
|
+
var $element = $__default["default"](this);
|
812
809
|
var data = $element.data(DATA_KEY);
|
813
810
|
|
814
811
|
var _config = typeof config === 'object' && config;
|
@@ -872,20 +869,18 @@
|
|
872
869
|
return Tooltip;
|
873
870
|
}();
|
874
871
|
/**
|
875
|
-
* ------------------------------------------------------------------------
|
876
872
|
* jQuery
|
877
|
-
* ------------------------------------------------------------------------
|
878
873
|
*/
|
879
874
|
|
880
875
|
|
881
|
-
$__default[
|
882
|
-
$__default[
|
876
|
+
$__default["default"].fn[NAME] = Tooltip._jQueryInterface;
|
877
|
+
$__default["default"].fn[NAME].Constructor = Tooltip;
|
883
878
|
|
884
|
-
$__default[
|
885
|
-
$__default[
|
879
|
+
$__default["default"].fn[NAME].noConflict = function () {
|
880
|
+
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
886
881
|
return Tooltip._jQueryInterface;
|
887
882
|
};
|
888
883
|
|
889
884
|
return Tooltip;
|
890
885
|
|
891
|
-
}))
|
886
|
+
}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap util.js v4.6.
|
2
|
+
* Bootstrap util.js v4.6.1 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 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
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
9
9
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
|
10
|
-
}(this, (function ($) { 'use strict';
|
10
|
+
})(this, (function ($) { 'use strict';
|
11
11
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
13
13
|
|
@@ -15,14 +15,12 @@
|
|
15
15
|
|
16
16
|
/**
|
17
17
|
* --------------------------------------------------------------------------
|
18
|
-
* Bootstrap (v4.6.
|
18
|
+
* Bootstrap (v4.6.1): util.js
|
19
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
20
20
|
* --------------------------------------------------------------------------
|
21
21
|
*/
|
22
22
|
/**
|
23
|
-
* ------------------------------------------------------------------------
|
24
23
|
* Private TransitionEnd Helpers
|
25
|
-
* ------------------------------------------------------------------------
|
26
24
|
*/
|
27
25
|
|
28
26
|
var TRANSITION_END = 'transitionend';
|
@@ -42,7 +40,7 @@
|
|
42
40
|
bindType: TRANSITION_END,
|
43
41
|
delegateType: TRANSITION_END,
|
44
42
|
handle: function handle(event) {
|
45
|
-
if ($__default[
|
43
|
+
if ($__default["default"](event.target).is(this)) {
|
46
44
|
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
47
45
|
}
|
48
46
|
|
@@ -55,7 +53,7 @@
|
|
55
53
|
var _this = this;
|
56
54
|
|
57
55
|
var called = false;
|
58
|
-
$__default[
|
56
|
+
$__default["default"](this).one(Util.TRANSITION_END, function () {
|
59
57
|
called = true;
|
60
58
|
});
|
61
59
|
setTimeout(function () {
|
@@ -67,13 +65,11 @@
|
|
67
65
|
}
|
68
66
|
|
69
67
|
function setTransitionEndSupport() {
|
70
|
-
$__default[
|
71
|
-
$__default[
|
68
|
+
$__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
|
69
|
+
$__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
72
70
|
}
|
73
71
|
/**
|
74
|
-
*
|
75
|
-
* Public Util Api
|
76
|
-
* --------------------------------------------------------------------------
|
72
|
+
* Public Util API
|
77
73
|
*/
|
78
74
|
|
79
75
|
|
@@ -81,6 +77,7 @@
|
|
81
77
|
TRANSITION_END: 'bsTransitionEnd',
|
82
78
|
getUID: function getUID(prefix) {
|
83
79
|
do {
|
80
|
+
// eslint-disable-next-line no-bitwise
|
84
81
|
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
85
82
|
} while (document.getElementById(prefix));
|
86
83
|
|
@@ -106,8 +103,8 @@
|
|
106
103
|
} // Get transition-duration of the element
|
107
104
|
|
108
105
|
|
109
|
-
var transitionDuration = $__default[
|
110
|
-
var transitionDelay = $__default[
|
106
|
+
var transitionDuration = $__default["default"](element).css('transition-duration');
|
107
|
+
var transitionDelay = $__default["default"](element).css('transition-delay');
|
111
108
|
var floatTransitionDuration = parseFloat(transitionDuration);
|
112
109
|
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
113
110
|
|
@@ -124,7 +121,7 @@
|
|
124
121
|
return element.offsetHeight;
|
125
122
|
},
|
126
123
|
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
127
|
-
$__default[
|
124
|
+
$__default["default"](element).trigger(TRANSITION_END);
|
128
125
|
},
|
129
126
|
supportsTransitionEnd: function supportsTransitionEnd() {
|
130
127
|
return Boolean(TRANSITION_END);
|
@@ -168,11 +165,11 @@
|
|
168
165
|
return Util.findShadowRoot(element.parentNode);
|
169
166
|
},
|
170
167
|
jQueryDetection: function jQueryDetection() {
|
171
|
-
if (typeof $__default[
|
168
|
+
if (typeof $__default["default"] === 'undefined') {
|
172
169
|
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
173
170
|
}
|
174
171
|
|
175
|
-
var version = $__default[
|
172
|
+
var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
|
176
173
|
var minMajor = 1;
|
177
174
|
var ltMajor = 2;
|
178
175
|
var minMinor = 9;
|
@@ -189,4 +186,4 @@
|
|
189
186
|
|
190
187
|
return Util;
|
191
188
|
|
192
|
-
}))
|
189
|
+
}));
|