bootstrap 4.5.2 → 4.5.3
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.
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-sprockets.js +5 -5
- data/assets/javascripts/bootstrap.js +414 -406
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +23 -21
- data/assets/javascripts/bootstrap/button.js +32 -24
- data/assets/javascripts/bootstrap/carousel.js +58 -55
- data/assets/javascripts/bootstrap/collapse.js +53 -51
- data/assets/javascripts/bootstrap/dropdown.js +59 -57
- data/assets/javascripts/bootstrap/modal.js +92 -90
- data/assets/javascripts/bootstrap/popover.js +20 -18
- data/assets/javascripts/bootstrap/scrollspy.js +27 -25
- data/assets/javascripts/bootstrap/tab.js +39 -37
- data/assets/javascripts/bootstrap/toast.js +28 -26
- data/assets/javascripts/bootstrap/tooltip.js +71 -68
- data/assets/javascripts/bootstrap/util.js +15 -15
- 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/_alert.scss +1 -0
- data/assets/stylesheets/bootstrap/_card.scss +4 -4
- data/assets/stylesheets/bootstrap/_custom-forms.scss +5 -4
- data/assets/stylesheets/bootstrap/_dropdown.scss +1 -1
- data/assets/stylesheets/bootstrap/_functions.scss +3 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +1 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +8 -4
- data/assets/stylesheets/bootstrap/_spinners.scss +2 -2
- data/assets/stylesheets/bootstrap/_variables.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_text.scss +2 -2
- data/lib/bootstrap/version.rb +2 -2
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap util.js v4.5.
|
2
|
+
* Bootstrap util.js v4.5.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
5
5
|
*/
|
@@ -9,11 +9,13 @@
|
|
9
9
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
|
10
10
|
}(this, (function ($) { 'use strict';
|
11
11
|
|
12
|
-
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
13
|
+
|
14
|
+
var $__default = /*#__PURE__*/_interopDefaultLegacy($);
|
13
15
|
|
14
16
|
/**
|
15
17
|
* --------------------------------------------------------------------------
|
16
|
-
* Bootstrap (v4.5.
|
18
|
+
* Bootstrap (v4.5.3): util.js
|
17
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
18
20
|
* --------------------------------------------------------------------------
|
19
21
|
*/
|
@@ -40,7 +42,7 @@
|
|
40
42
|
bindType: TRANSITION_END,
|
41
43
|
delegateType: TRANSITION_END,
|
42
44
|
handle: function handle(event) {
|
43
|
-
if ($(event.target).is(this)) {
|
45
|
+
if ($__default['default'](event.target).is(this)) {
|
44
46
|
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
45
47
|
}
|
46
48
|
|
@@ -53,7 +55,7 @@
|
|
53
55
|
var _this = this;
|
54
56
|
|
55
57
|
var called = false;
|
56
|
-
$(this).one(Util.TRANSITION_END, function () {
|
58
|
+
$__default['default'](this).one(Util.TRANSITION_END, function () {
|
57
59
|
called = true;
|
58
60
|
});
|
59
61
|
setTimeout(function () {
|
@@ -65,8 +67,8 @@
|
|
65
67
|
}
|
66
68
|
|
67
69
|
function setTransitionEndSupport() {
|
68
|
-
|
69
|
-
|
70
|
+
$__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
|
71
|
+
$__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
70
72
|
}
|
71
73
|
/**
|
72
74
|
* --------------------------------------------------------------------------
|
@@ -79,7 +81,6 @@
|
|
79
81
|
TRANSITION_END: 'bsTransitionEnd',
|
80
82
|
getUID: function getUID(prefix) {
|
81
83
|
do {
|
82
|
-
// eslint-disable-next-line no-bitwise
|
83
84
|
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
84
85
|
} while (document.getElementById(prefix));
|
85
86
|
|
@@ -95,7 +96,7 @@
|
|
95
96
|
|
96
97
|
try {
|
97
98
|
return document.querySelector(selector) ? selector : null;
|
98
|
-
} catch (
|
99
|
+
} catch (_) {
|
99
100
|
return null;
|
100
101
|
}
|
101
102
|
},
|
@@ -105,8 +106,8 @@
|
|
105
106
|
} // Get transition-duration of the element
|
106
107
|
|
107
108
|
|
108
|
-
var transitionDuration = $(element).css('transition-duration');
|
109
|
-
var transitionDelay = $(element).css('transition-delay');
|
109
|
+
var transitionDuration = $__default['default'](element).css('transition-duration');
|
110
|
+
var transitionDelay = $__default['default'](element).css('transition-delay');
|
110
111
|
var floatTransitionDuration = parseFloat(transitionDuration);
|
111
112
|
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
112
113
|
|
@@ -123,9 +124,8 @@
|
|
123
124
|
return element.offsetHeight;
|
124
125
|
},
|
125
126
|
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
126
|
-
$(element).trigger(TRANSITION_END);
|
127
|
+
$__default['default'](element).trigger(TRANSITION_END);
|
127
128
|
},
|
128
|
-
// TODO: Remove in v5
|
129
129
|
supportsTransitionEnd: function supportsTransitionEnd() {
|
130
130
|
return Boolean(TRANSITION_END);
|
131
131
|
},
|
@@ -168,11 +168,11 @@
|
|
168
168
|
return Util.findShadowRoot(element.parentNode);
|
169
169
|
},
|
170
170
|
jQueryDetection: function jQueryDetection() {
|
171
|
-
if (typeof $ === 'undefined') {
|
171
|
+
if (typeof $__default['default'] === 'undefined') {
|
172
172
|
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
173
173
|
}
|
174
174
|
|
175
|
-
var version =
|
175
|
+
var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
|
176
176
|
var minMajor = 1;
|
177
177
|
var ltMajor = 2;
|
178
178
|
var minMinor = 9;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Grid v4.5.
|
2
|
+
* Bootstrap Grid v4.5.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2020 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2020 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Reboot v4.5.
|
2
|
+
* Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2020 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2020 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -206,12 +206,12 @@
|
|
206
206
|
|
207
207
|
.card-img-top,
|
208
208
|
.card-header {
|
209
|
-
// stylelint-disable-next-line property-
|
209
|
+
// stylelint-disable-next-line property-disallowed-list
|
210
210
|
border-top-right-radius: 0;
|
211
211
|
}
|
212
212
|
.card-img-bottom,
|
213
213
|
.card-footer {
|
214
|
-
// stylelint-disable-next-line property-
|
214
|
+
// stylelint-disable-next-line property-disallowed-list
|
215
215
|
border-bottom-right-radius: 0;
|
216
216
|
}
|
217
217
|
}
|
@@ -221,12 +221,12 @@
|
|
221
221
|
|
222
222
|
.card-img-top,
|
223
223
|
.card-header {
|
224
|
-
// stylelint-disable-next-line property-
|
224
|
+
// stylelint-disable-next-line property-disallowed-list
|
225
225
|
border-top-left-radius: 0;
|
226
226
|
}
|
227
227
|
.card-img-bottom,
|
228
228
|
.card-footer {
|
229
|
-
// stylelint-disable-next-line property-
|
229
|
+
// stylelint-disable-next-line property-disallowed-list
|
230
230
|
border-bottom-left-radius: 0;
|
231
231
|
}
|
232
232
|
}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
display: block;
|
14
14
|
min-height: $font-size-base * $line-height-base;
|
15
15
|
padding-left: $custom-control-gutter + $custom-control-indicator-size;
|
16
|
+
color-adjust: exact; // Keep themed appearance for print
|
16
17
|
}
|
17
18
|
|
18
19
|
.custom-control-inline {
|
@@ -38,7 +39,7 @@
|
|
38
39
|
&:focus ~ .custom-control-label::before {
|
39
40
|
// the mixin is not used here to make sure there is feedback
|
40
41
|
@if $enable-shadows {
|
41
|
-
box-shadow: $input-box-shadow, $
|
42
|
+
box-shadow: $input-box-shadow, $custom-control-indicator-focus-box-shadow;
|
42
43
|
} @else {
|
43
44
|
box-shadow: $custom-control-indicator-focus-box-shadow;
|
44
45
|
}
|
@@ -150,7 +151,7 @@
|
|
150
151
|
|
151
152
|
.custom-radio {
|
152
153
|
.custom-control-label::before {
|
153
|
-
// stylelint-disable-next-line property-
|
154
|
+
// stylelint-disable-next-line property-disallowed-list
|
154
155
|
border-radius: $custom-radio-indicator-border-radius;
|
155
156
|
}
|
156
157
|
|
@@ -180,7 +181,7 @@
|
|
180
181
|
left: -($custom-switch-width + $custom-control-gutter);
|
181
182
|
width: $custom-switch-width;
|
182
183
|
pointer-events: all;
|
183
|
-
// stylelint-disable-next-line property-
|
184
|
+
// stylelint-disable-next-line property-disallowed-list
|
184
185
|
border-radius: $custom-switch-indicator-border-radius;
|
185
186
|
}
|
186
187
|
|
@@ -190,7 +191,7 @@
|
|
190
191
|
width: $custom-switch-indicator-size;
|
191
192
|
height: $custom-switch-indicator-size;
|
192
193
|
background-color: $custom-control-indicator-border-color;
|
193
|
-
// stylelint-disable-next-line property-
|
194
|
+
// stylelint-disable-next-line property-disallowed-list
|
194
195
|
border-radius: $custom-switch-indicator-border-radius;
|
195
196
|
@include transition(transform .15s ease-in-out, $custom-forms-transition);
|
196
197
|
}
|
@@ -22,7 +22,7 @@
|
|
22
22
|
display: none; // none by default, but block on "open" of the menu
|
23
23
|
float: left;
|
24
24
|
min-width: $dropdown-min-width;
|
25
|
-
padding: $dropdown-padding-y
|
25
|
+
padding: $dropdown-padding-y $dropdown-padding-x;
|
26
26
|
margin: $dropdown-spacer 0 0; // override default ul
|
27
27
|
@include font-size($dropdown-font-size);
|
28
28
|
color: $dropdown-color;
|
@@ -278,10 +278,14 @@ caption {
|
|
278
278
|
caption-side: bottom;
|
279
279
|
}
|
280
280
|
|
281
|
+
// 1. Removes font-weight bold by inheriting
|
282
|
+
// 2. Matches default `<td>` alignment by inheriting `text-align`.
|
283
|
+
// 3. Fix alignment for Safari
|
284
|
+
|
281
285
|
th {
|
282
|
-
|
283
|
-
|
284
|
-
text-align:
|
286
|
+
font-weight: $table-th-font-weight; // 1
|
287
|
+
text-align: inherit; // 2
|
288
|
+
text-align: -webkit-match-parent; // 3
|
285
289
|
}
|
286
290
|
|
287
291
|
|
@@ -299,7 +303,7 @@ label {
|
|
299
303
|
//
|
300
304
|
// Details at https://github.com/twbs/bootstrap/issues/24093
|
301
305
|
button {
|
302
|
-
// stylelint-disable-next-line property-
|
306
|
+
// stylelint-disable-next-line property-disallowed-list
|
303
307
|
border-radius: 0;
|
304
308
|
}
|
305
309
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
vertical-align: text-bottom;
|
14
14
|
border: $spinner-border-width solid currentColor;
|
15
15
|
border-right-color: transparent;
|
16
|
-
// stylelint-disable-next-line property-
|
16
|
+
// stylelint-disable-next-line property-disallowed-list
|
17
17
|
border-radius: 50%;
|
18
18
|
animation: spinner-border .75s linear infinite;
|
19
19
|
}
|
@@ -44,7 +44,7 @@
|
|
44
44
|
height: $spinner-height;
|
45
45
|
vertical-align: text-bottom;
|
46
46
|
background-color: currentColor;
|
47
|
-
// stylelint-disable-next-line property-
|
47
|
+
// stylelint-disable-next-line property-disallowed-list
|
48
48
|
border-radius: 50%;
|
49
49
|
opacity: 0;
|
50
50
|
animation: spinner-grow .75s linear infinite;
|
@@ -363,6 +363,7 @@ $table-border-color: $border-color !default;
|
|
363
363
|
|
364
364
|
$table-head-bg: $gray-200 !default;
|
365
365
|
$table-head-color: $gray-700 !default;
|
366
|
+
$table-th-font-weight: null !default;
|
366
367
|
|
367
368
|
$table-dark-color: $white !default;
|
368
369
|
$table-dark-bg: $gray-800 !default;
|
@@ -755,6 +756,7 @@ $navbar-dark-brand-hover-color: $navbar-dark-active-color !default;
|
|
755
756
|
// Dropdown menu container and contents.
|
756
757
|
|
757
758
|
$dropdown-min-width: 10rem !default;
|
759
|
+
$dropdown-padding-x: 0 !default;
|
758
760
|
$dropdown-padding-y: .5rem !default;
|
759
761
|
$dropdown-spacer: .125rem !default;
|
760
762
|
$dropdown-font-size: $font-size-base !default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// Only display content to screen readers
|
2
2
|
//
|
3
|
-
// See: https://a11yproject.com/posts/how-to-hide-content/
|
3
|
+
// See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
|
4
4
|
// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
|
5
5
|
|
6
6
|
@mixin sr-only() {
|
@@ -63,8 +63,8 @@
|
|
63
63
|
.text-decoration-none { text-decoration: none !important; }
|
64
64
|
|
65
65
|
.text-break {
|
66
|
-
word-break: break-word !important; //
|
67
|
-
|
66
|
+
word-break: break-word !important; // Deprecated, but avoids issues with flex containers
|
67
|
+
word-wrap: break-word !important; // Used instead of `overflow-wrap` for IE & Edge Legacy
|
68
68
|
}
|
69
69
|
|
70
70
|
// Reset
|
data/lib/bootstrap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twitter, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08
|
11
|
+
date: 2020-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: popper_js
|