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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e791267a64e7f6a3aef767cc844085c0c3b815ca4aa8148d2c07a16a9f149db4
|
4
|
+
data.tar.gz: '068dcaefca522f86bbffde485b6b87b4ab446e591fcb65858f963ebd105d4eb0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 132b45ccfd439386a5b998e0111f0e845b35a090c764f3274158474b29b908c82915d79a723175bdb29b1d47a6f74cab426d2d4c20f36e95ef40649a1da86c9a
|
7
|
+
data.tar.gz: 0d9fd4713444aa657b664a1216146c0a500437ec493e1df8ac93e0faaecd1964483d63ada3b988714d991a1e9317705af14f9405db936a774c767e179625b70b
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap alert.js v4.6.
|
2
|
+
* Bootstrap alert.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('./util.js')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
9
9
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Alert = factory(global.jQuery, global.Util));
|
10
|
-
}(this, (function ($, Util) { 'use strict';
|
10
|
+
})(this, (function ($, Util) { 'use strict';
|
11
11
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
13
13
|
|
@@ -31,28 +31,24 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
/**
|
34
|
-
* ------------------------------------------------------------------------
|
35
34
|
* Constants
|
36
|
-
* ------------------------------------------------------------------------
|
37
35
|
*/
|
38
36
|
|
39
37
|
var NAME = 'alert';
|
40
|
-
var VERSION = '4.6.
|
38
|
+
var VERSION = '4.6.1';
|
41
39
|
var DATA_KEY = 'bs.alert';
|
42
40
|
var EVENT_KEY = "." + DATA_KEY;
|
43
41
|
var DATA_API_KEY = '.data-api';
|
44
|
-
var JQUERY_NO_CONFLICT = $__default[
|
45
|
-
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
46
|
-
var EVENT_CLOSE = "close" + EVENT_KEY;
|
47
|
-
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
48
|
-
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
42
|
+
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
49
43
|
var CLASS_NAME_ALERT = 'alert';
|
50
44
|
var CLASS_NAME_FADE = 'fade';
|
51
45
|
var CLASS_NAME_SHOW = 'show';
|
46
|
+
var EVENT_CLOSE = "close" + EVENT_KEY;
|
47
|
+
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
48
|
+
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
49
|
+
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
52
50
|
/**
|
53
|
-
*
|
54
|
-
* Class Definition
|
55
|
-
* ------------------------------------------------------------------------
|
51
|
+
* Class definition
|
56
52
|
*/
|
57
53
|
|
58
54
|
var Alert = /*#__PURE__*/function () {
|
@@ -81,13 +77,13 @@
|
|
81
77
|
};
|
82
78
|
|
83
79
|
_proto.dispose = function dispose() {
|
84
|
-
$__default[
|
80
|
+
$__default["default"].removeData(this._element, DATA_KEY);
|
85
81
|
this._element = null;
|
86
82
|
} // Private
|
87
83
|
;
|
88
84
|
|
89
85
|
_proto._getRootElement = function _getRootElement(element) {
|
90
|
-
var selector = Util__default[
|
86
|
+
var selector = Util__default["default"].getSelectorFromElement(element);
|
91
87
|
var parent = false;
|
92
88
|
|
93
89
|
if (selector) {
|
@@ -95,43 +91,43 @@
|
|
95
91
|
}
|
96
92
|
|
97
93
|
if (!parent) {
|
98
|
-
parent = $__default[
|
94
|
+
parent = $__default["default"](element).closest("." + CLASS_NAME_ALERT)[0];
|
99
95
|
}
|
100
96
|
|
101
97
|
return parent;
|
102
98
|
};
|
103
99
|
|
104
100
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
105
|
-
var closeEvent = $__default[
|
106
|
-
$__default[
|
101
|
+
var closeEvent = $__default["default"].Event(EVENT_CLOSE);
|
102
|
+
$__default["default"](element).trigger(closeEvent);
|
107
103
|
return closeEvent;
|
108
104
|
};
|
109
105
|
|
110
106
|
_proto._removeElement = function _removeElement(element) {
|
111
107
|
var _this = this;
|
112
108
|
|
113
|
-
$__default[
|
109
|
+
$__default["default"](element).removeClass(CLASS_NAME_SHOW);
|
114
110
|
|
115
|
-
if (!$__default[
|
111
|
+
if (!$__default["default"](element).hasClass(CLASS_NAME_FADE)) {
|
116
112
|
this._destroyElement(element);
|
117
113
|
|
118
114
|
return;
|
119
115
|
}
|
120
116
|
|
121
|
-
var transitionDuration = Util__default[
|
122
|
-
$__default[
|
117
|
+
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(element);
|
118
|
+
$__default["default"](element).one(Util__default["default"].TRANSITION_END, function (event) {
|
123
119
|
return _this._destroyElement(element, event);
|
124
120
|
}).emulateTransitionEnd(transitionDuration);
|
125
121
|
};
|
126
122
|
|
127
123
|
_proto._destroyElement = function _destroyElement(element) {
|
128
|
-
$__default[
|
124
|
+
$__default["default"](element).detach().trigger(EVENT_CLOSED).remove();
|
129
125
|
} // Static
|
130
126
|
;
|
131
127
|
|
132
128
|
Alert._jQueryInterface = function _jQueryInterface(config) {
|
133
129
|
return this.each(function () {
|
134
|
-
var $element = $__default[
|
130
|
+
var $element = $__default["default"](this);
|
135
131
|
var data = $element.data(DATA_KEY);
|
136
132
|
|
137
133
|
if (!data) {
|
@@ -165,27 +161,23 @@
|
|
165
161
|
return Alert;
|
166
162
|
}();
|
167
163
|
/**
|
168
|
-
*
|
169
|
-
* Data Api implementation
|
170
|
-
* ------------------------------------------------------------------------
|
164
|
+
* Data API implementation
|
171
165
|
*/
|
172
166
|
|
173
167
|
|
174
|
-
$__default[
|
168
|
+
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
175
169
|
/**
|
176
|
-
* ------------------------------------------------------------------------
|
177
170
|
* jQuery
|
178
|
-
* ------------------------------------------------------------------------
|
179
171
|
*/
|
180
172
|
|
181
|
-
$__default[
|
182
|
-
$__default[
|
173
|
+
$__default["default"].fn[NAME] = Alert._jQueryInterface;
|
174
|
+
$__default["default"].fn[NAME].Constructor = Alert;
|
183
175
|
|
184
|
-
$__default[
|
185
|
-
$__default[
|
176
|
+
$__default["default"].fn[NAME].noConflict = function () {
|
177
|
+
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
186
178
|
return Alert._jQueryInterface;
|
187
179
|
};
|
188
180
|
|
189
181
|
return Alert;
|
190
182
|
|
191
|
-
}))
|
183
|
+
}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap button.js v4.6.
|
2
|
+
* Bootstrap button.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.Button = 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
|
|
@@ -30,20 +30,21 @@
|
|
30
30
|
}
|
31
31
|
|
32
32
|
/**
|
33
|
-
* ------------------------------------------------------------------------
|
34
33
|
* Constants
|
35
|
-
* ------------------------------------------------------------------------
|
36
34
|
*/
|
37
35
|
|
38
36
|
var NAME = 'button';
|
39
|
-
var VERSION = '4.6.
|
37
|
+
var VERSION = '4.6.1';
|
40
38
|
var DATA_KEY = 'bs.button';
|
41
39
|
var EVENT_KEY = "." + DATA_KEY;
|
42
40
|
var DATA_API_KEY = '.data-api';
|
43
|
-
var JQUERY_NO_CONFLICT = $__default[
|
41
|
+
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
44
42
|
var CLASS_NAME_ACTIVE = 'active';
|
45
43
|
var CLASS_NAME_BUTTON = 'btn';
|
46
44
|
var CLASS_NAME_FOCUS = 'focus';
|
45
|
+
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
46
|
+
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY);
|
47
|
+
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
47
48
|
var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
|
48
49
|
var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
|
49
50
|
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
@@ -51,13 +52,8 @@
|
|
51
52
|
var SELECTOR_INPUT = 'input:not([type="hidden"])';
|
52
53
|
var SELECTOR_ACTIVE = '.active';
|
53
54
|
var SELECTOR_BUTTON = '.btn';
|
54
|
-
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
55
|
-
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY);
|
56
|
-
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
57
55
|
/**
|
58
|
-
*
|
59
|
-
* Class Definition
|
60
|
-
* ------------------------------------------------------------------------
|
56
|
+
* Class definition
|
61
57
|
*/
|
62
58
|
|
63
59
|
var Button = /*#__PURE__*/function () {
|
@@ -73,7 +69,7 @@
|
|
73
69
|
_proto.toggle = function toggle() {
|
74
70
|
var triggerChangeEvent = true;
|
75
71
|
var addAriaPressed = true;
|
76
|
-
var rootElement = $__default[
|
72
|
+
var rootElement = $__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
77
73
|
|
78
74
|
if (rootElement) {
|
79
75
|
var input = this._element.querySelector(SELECTOR_INPUT);
|
@@ -86,7 +82,7 @@
|
|
86
82
|
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
|
87
83
|
|
88
84
|
if (activeElement) {
|
89
|
-
$__default[
|
85
|
+
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
90
86
|
}
|
91
87
|
}
|
92
88
|
}
|
@@ -98,7 +94,7 @@
|
|
98
94
|
}
|
99
95
|
|
100
96
|
if (!this.shouldAvoidTriggerChange) {
|
101
|
-
$__default[
|
97
|
+
$__default["default"](input).trigger('change');
|
102
98
|
}
|
103
99
|
}
|
104
100
|
|
@@ -113,20 +109,20 @@
|
|
113
109
|
}
|
114
110
|
|
115
111
|
if (triggerChangeEvent) {
|
116
|
-
$__default[
|
112
|
+
$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE);
|
117
113
|
}
|
118
114
|
}
|
119
115
|
};
|
120
116
|
|
121
117
|
_proto.dispose = function dispose() {
|
122
|
-
$__default[
|
118
|
+
$__default["default"].removeData(this._element, DATA_KEY);
|
123
119
|
this._element = null;
|
124
120
|
} // Static
|
125
121
|
;
|
126
122
|
|
127
123
|
Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
|
128
124
|
return this.each(function () {
|
129
|
-
var $element = $__default[
|
125
|
+
var $element = $__default["default"](this);
|
130
126
|
var data = $element.data(DATA_KEY);
|
131
127
|
|
132
128
|
if (!data) {
|
@@ -152,18 +148,16 @@
|
|
152
148
|
return Button;
|
153
149
|
}();
|
154
150
|
/**
|
155
|
-
*
|
156
|
-
* Data Api implementation
|
157
|
-
* ------------------------------------------------------------------------
|
151
|
+
* Data API implementation
|
158
152
|
*/
|
159
153
|
|
160
154
|
|
161
|
-
$__default[
|
155
|
+
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
162
156
|
var button = event.target;
|
163
157
|
var initialButton = button;
|
164
158
|
|
165
|
-
if (!$__default[
|
166
|
-
button = $__default[
|
159
|
+
if (!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)) {
|
160
|
+
button = $__default["default"](button).closest(SELECTOR_BUTTON)[0];
|
167
161
|
}
|
168
162
|
|
169
163
|
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
|
@@ -178,14 +172,14 @@
|
|
178
172
|
}
|
179
173
|
|
180
174
|
if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
|
181
|
-
Button._jQueryInterface.call($__default[
|
175
|
+
Button._jQueryInterface.call($__default["default"](button), 'toggle', initialButton.tagName === 'INPUT');
|
182
176
|
}
|
183
177
|
}
|
184
178
|
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
185
|
-
var button = $__default[
|
186
|
-
$__default[
|
179
|
+
var button = $__default["default"](event.target).closest(SELECTOR_BUTTON)[0];
|
180
|
+
$__default["default"](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
187
181
|
});
|
188
|
-
$__default[
|
182
|
+
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
189
183
|
// ensure correct active class is set to match the controls' actual values/states
|
190
184
|
// find all checkboxes/readio buttons inside data-toggle groups
|
191
185
|
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
|
@@ -215,19 +209,17 @@
|
|
215
209
|
}
|
216
210
|
});
|
217
211
|
/**
|
218
|
-
* ------------------------------------------------------------------------
|
219
212
|
* jQuery
|
220
|
-
* ------------------------------------------------------------------------
|
221
213
|
*/
|
222
214
|
|
223
|
-
$__default[
|
224
|
-
$__default[
|
215
|
+
$__default["default"].fn[NAME] = Button._jQueryInterface;
|
216
|
+
$__default["default"].fn[NAME].Constructor = Button;
|
225
217
|
|
226
|
-
$__default[
|
227
|
-
$__default[
|
218
|
+
$__default["default"].fn[NAME].noConflict = function () {
|
219
|
+
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
228
220
|
return Button._jQueryInterface;
|
229
221
|
};
|
230
222
|
|
231
223
|
return Button;
|
232
224
|
|
233
|
-
}))
|
225
|
+
}));
|