bootstrap 4.3.1 → 4.6.2.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.
- checksums.yaml +4 -4
- data/.travis.yml +15 -1
- data/CHANGELOG.md +4 -12
- data/README.md +7 -1
- data/Rakefile +16 -4
- data/assets/javascripts/bootstrap/alert.js +43 -55
- data/assets/javascripts/bootstrap/button.js +112 -70
- data/assets/javascripts/bootstrap/carousel.js +164 -189
- data/assets/javascripts/bootstrap/collapse.js +98 -129
- data/assets/javascripts/bootstrap/dropdown.js +165 -200
- data/assets/javascripts/bootstrap/modal.js +218 -205
- data/assets/javascripts/bootstrap/popover.js +63 -79
- data/assets/javascripts/bootstrap/scrollspy.js +82 -119
- data/assets/javascripts/bootstrap/tab.js +79 -85
- data/assets/javascripts/bootstrap/toast.js +100 -115
- data/assets/javascripts/bootstrap/tooltip.js +207 -225
- data/assets/javascripts/bootstrap/util.js +41 -23
- data/assets/javascripts/bootstrap.js +1235 -1314
- data/assets/javascripts/bootstrap.min.js +4 -4
- data/assets/stylesheets/_bootstrap-grid.scss +5 -4
- data/assets/stylesheets/_bootstrap-reboot.scss +4 -4
- data/assets/stylesheets/_bootstrap.scss +4 -4
- data/assets/stylesheets/bootstrap/_alert.scss +1 -0
- data/assets/stylesheets/bootstrap/_badge.scss +1 -1
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +3 -2
- data/assets/stylesheets/bootstrap/_button-group.scss +1 -1
- data/assets/stylesheets/bootstrap/_buttons.scss +13 -8
- data/assets/stylesheets/bootstrap/_card.scss +47 -50
- data/assets/stylesheets/bootstrap/_carousel.scss +12 -9
- data/assets/stylesheets/bootstrap/_close.scss +2 -3
- data/assets/stylesheets/bootstrap/_code.scss +1 -1
- data/assets/stylesheets/bootstrap/_custom-forms.scss +43 -24
- data/assets/stylesheets/bootstrap/_dropdown.scss +7 -6
- data/assets/stylesheets/bootstrap/_forms.scss +30 -13
- data/assets/stylesheets/bootstrap/_functions.scss +110 -6
- data/assets/stylesheets/bootstrap/_grid.scss +32 -11
- data/assets/stylesheets/bootstrap/_images.scss +3 -3
- data/assets/stylesheets/bootstrap/_input-group.scss +23 -5
- data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +36 -31
- data/assets/stylesheets/bootstrap/_mixins.scss +3 -3
- data/assets/stylesheets/bootstrap/_modal.scss +26 -15
- data/assets/stylesheets/bootstrap/_nav.scss +12 -7
- data/assets/stylesheets/bootstrap/_navbar.scss +55 -17
- data/assets/stylesheets/bootstrap/_pagination.scss +5 -4
- data/assets/stylesheets/bootstrap/_popover.scss +17 -18
- data/assets/stylesheets/bootstrap/_print.scss +1 -10
- data/assets/stylesheets/bootstrap/_progress.scss +7 -3
- data/assets/stylesheets/bootstrap/_reboot.scss +39 -38
- data/assets/stylesheets/bootstrap/_spinners.scss +18 -8
- data/assets/stylesheets/bootstrap/_tables.scss +3 -3
- data/assets/stylesheets/bootstrap/_toasts.scss +4 -2
- data/assets/stylesheets/bootstrap/_tooltip.scss +4 -4
- data/assets/stylesheets/bootstrap/_transitions.scss +6 -0
- data/assets/stylesheets/bootstrap/_type.scss +3 -3
- data/assets/stylesheets/bootstrap/_utilities.scss +2 -1
- data/assets/stylesheets/bootstrap/_variables.scss +71 -45
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +5 -3
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +27 -14
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +11 -8
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +8 -8
- data/assets/stylesheets/bootstrap/mixins/_float.scss +3 -3
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +52 -49
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +31 -17
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +32 -14
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_image.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +5 -4
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +3 -2
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +18 -8
- data/assets/stylesheets/bootstrap/utilities/_background.scss +2 -2
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_interactions.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_text.scss +4 -4
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +126 -102
- data/bootstrap.gemspec +2 -4
- data/lib/bootstrap/engine.rb +17 -1
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +18 -6
- data/tasks/updater/network.rb +8 -2
- data/test/dummy_rails/app/assets/config/manifest.js +3 -0
- data/test/dummy_rails/app/assets/stylesheets/.browserslistrc +1 -0
- data/test/gemfiles/rails_6_0.gemfile +7 -0
- data/test/gemfiles/rails_7_0_dartsass.gemfile +8 -0
- data/test/gemfiles/rails_7_0_sassc.gemfile +8 -0
- data/test/support/dummy_rails_integration.rb +3 -1
- data/test/test_helper.rb +18 -13
- metadata +17 -21
@@ -1,26 +1,26 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap util.js v4.
|
3
|
-
* Copyright 2011-
|
4
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
2
|
+
* Bootstrap util.js v4.6.2 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2022 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')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
9
|
-
(global = global || self, global.Util = factory(global.jQuery));
|
10
|
-
}(this, function ($) { 'use strict';
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
|
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.
|
17
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
18
|
+
* Bootstrap (v4.6.2): util.js
|
19
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
18
20
|
* --------------------------------------------------------------------------
|
19
21
|
*/
|
20
22
|
/**
|
21
|
-
* ------------------------------------------------------------------------
|
22
23
|
* Private TransitionEnd Helpers
|
23
|
-
* ------------------------------------------------------------------------
|
24
24
|
*/
|
25
25
|
|
26
26
|
var TRANSITION_END = 'transitionend';
|
@@ -28,6 +28,10 @@
|
|
28
28
|
var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
29
29
|
|
30
30
|
function toType(obj) {
|
31
|
+
if (obj === null || typeof obj === 'undefined') {
|
32
|
+
return "" + obj;
|
33
|
+
}
|
34
|
+
|
31
35
|
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
32
36
|
}
|
33
37
|
|
@@ -36,11 +40,11 @@
|
|
36
40
|
bindType: TRANSITION_END,
|
37
41
|
delegateType: TRANSITION_END,
|
38
42
|
handle: function handle(event) {
|
39
|
-
if ($(event.target).is(this)) {
|
43
|
+
if ($__default["default"](event.target).is(this)) {
|
40
44
|
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
41
45
|
}
|
42
46
|
|
43
|
-
return undefined;
|
47
|
+
return undefined;
|
44
48
|
}
|
45
49
|
};
|
46
50
|
}
|
@@ -49,7 +53,7 @@
|
|
49
53
|
var _this = this;
|
50
54
|
|
51
55
|
var called = false;
|
52
|
-
$(this).one(Util.TRANSITION_END, function () {
|
56
|
+
$__default["default"](this).one(Util.TRANSITION_END, function () {
|
53
57
|
called = true;
|
54
58
|
});
|
55
59
|
setTimeout(function () {
|
@@ -61,13 +65,11 @@
|
|
61
65
|
}
|
62
66
|
|
63
67
|
function setTransitionEndSupport() {
|
64
|
-
|
65
|
-
|
68
|
+
$__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
|
69
|
+
$__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
66
70
|
}
|
67
71
|
/**
|
68
|
-
*
|
69
|
-
* Public Util Api
|
70
|
-
* --------------------------------------------------------------------------
|
72
|
+
* Public Util API
|
71
73
|
*/
|
72
74
|
|
73
75
|
|
@@ -91,7 +93,7 @@
|
|
91
93
|
|
92
94
|
try {
|
93
95
|
return document.querySelector(selector) ? selector : null;
|
94
|
-
} catch (
|
96
|
+
} catch (_) {
|
95
97
|
return null;
|
96
98
|
}
|
97
99
|
},
|
@@ -101,8 +103,8 @@
|
|
101
103
|
} // Get transition-duration of the element
|
102
104
|
|
103
105
|
|
104
|
-
var transitionDuration = $(element).css('transition-duration');
|
105
|
-
var transitionDelay = $(element).css('transition-delay');
|
106
|
+
var transitionDuration = $__default["default"](element).css('transition-duration');
|
107
|
+
var transitionDelay = $__default["default"](element).css('transition-delay');
|
106
108
|
var floatTransitionDuration = parseFloat(transitionDuration);
|
107
109
|
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
108
110
|
|
@@ -119,9 +121,8 @@
|
|
119
121
|
return element.offsetHeight;
|
120
122
|
},
|
121
123
|
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
122
|
-
$(element).trigger(TRANSITION_END);
|
124
|
+
$__default["default"](element).trigger(TRANSITION_END);
|
123
125
|
},
|
124
|
-
// TODO: Remove in v5
|
125
126
|
supportsTransitionEnd: function supportsTransitionEnd() {
|
126
127
|
return Boolean(TRANSITION_END);
|
127
128
|
},
|
@@ -162,8 +163,25 @@
|
|
162
163
|
}
|
163
164
|
|
164
165
|
return Util.findShadowRoot(element.parentNode);
|
166
|
+
},
|
167
|
+
jQueryDetection: function jQueryDetection() {
|
168
|
+
if (typeof $__default["default"] === 'undefined') {
|
169
|
+
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
170
|
+
}
|
171
|
+
|
172
|
+
var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
|
173
|
+
var minMajor = 1;
|
174
|
+
var ltMajor = 2;
|
175
|
+
var minMinor = 9;
|
176
|
+
var minPatch = 1;
|
177
|
+
var maxMajor = 4;
|
178
|
+
|
179
|
+
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
|
180
|
+
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
|
181
|
+
}
|
165
182
|
}
|
166
183
|
};
|
184
|
+
Util.jQueryDetection();
|
167
185
|
setTransitionEndSupport();
|
168
186
|
|
169
187
|
return Util;
|