bootstrap 5.2.1 → 5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/javascripts/bootstrap/alert.js +2 -2
- data/assets/javascripts/bootstrap/base-component.js +3 -3
- data/assets/javascripts/bootstrap/button.js +2 -2
- data/assets/javascripts/bootstrap/carousel.js +2 -2
- data/assets/javascripts/bootstrap/collapse.js +2 -2
- data/assets/javascripts/bootstrap/dom/data.js +2 -2
- data/assets/javascripts/bootstrap/dom/event-handler.js +2 -2
- data/assets/javascripts/bootstrap/dom/manipulator.js +2 -2
- data/assets/javascripts/bootstrap/dom/selector-engine.js +2 -2
- data/assets/javascripts/bootstrap/dropdown.js +4 -4
- data/assets/javascripts/bootstrap/modal.js +4 -4
- data/assets/javascripts/bootstrap/offcanvas.js +2 -2
- data/assets/javascripts/bootstrap/popover.js +2 -2
- data/assets/javascripts/bootstrap/scrollspy.js +2 -2
- data/assets/javascripts/bootstrap/tab.js +5 -5
- data/assets/javascripts/bootstrap/toast.js +10 -6
- data/assets/javascripts/bootstrap/tooltip.js +24 -34
- data/assets/javascripts/bootstrap/util/backdrop.js +2 -2
- data/assets/javascripts/bootstrap/util/component-functions.js +2 -2
- data/assets/javascripts/bootstrap/util/config.js +2 -2
- data/assets/javascripts/bootstrap/util/focustrap.js +2 -2
- data/assets/javascripts/bootstrap/util/index.js +2 -2
- data/assets/javascripts/bootstrap/util/sanitizer.js +2 -2
- data/assets/javascripts/bootstrap/util/scrollbar.js +2 -2
- data/assets/javascripts/bootstrap/util/swipe.js +2 -2
- data/assets/javascripts/bootstrap/util/template-factory.js +2 -2
- data/assets/javascripts/bootstrap-sprockets.js +10 -10
- data/assets/javascripts/bootstrap.js +66 -72
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/stylesheets/bootstrap/_buttons.scss +8 -2
- data/assets/stylesheets/bootstrap/_toasts.scss +2 -0
- data/assets/stylesheets/bootstrap/_variables.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_banner.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +2 -2
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater.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: a293b6bb0f077b3634982eeed77c89bfc3631f890f3df2027ddc45ceab3b18a5
|
4
|
+
data.tar.gz: d8fd6730b835bbe608e62d26359b7530a52cbadbccbe7d3589b895ac37944f79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fcbeba2892da722b611946a283a166fa57cc44f80e0ccb8096f903e0d0e9f5d5dd69fbead50e819ce35184a62cb9df29d7aceb59bc215b90e75c8020fde1516
|
7
|
+
data.tar.gz: 8931244575e0476fba2ea27f1d7524043755a2237035abfd6aa1af5fe9da64001f826350f0631d9a7b9164091c4d766b8c0aa80f6d85ee78b8384b03b6b141a8
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap alert.js v5.2.
|
2
|
+
* Bootstrap alert.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
/**
|
18
18
|
* --------------------------------------------------------------------------
|
19
|
-
* Bootstrap (v5.2.
|
19
|
+
* Bootstrap (v5.2.2): alert.js
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
21
21
|
* --------------------------------------------------------------------------
|
22
22
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap base-component.js v5.2.
|
2
|
+
* Bootstrap base-component.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
/**
|
19
19
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.2.
|
20
|
+
* Bootstrap (v5.2.2): base-component.js
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
22
|
* --------------------------------------------------------------------------
|
23
23
|
*/
|
@@ -25,7 +25,7 @@
|
|
25
25
|
* Constants
|
26
26
|
*/
|
27
27
|
|
28
|
-
const VERSION = '5.2.
|
28
|
+
const VERSION = '5.2.2';
|
29
29
|
/**
|
30
30
|
* Class definition
|
31
31
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap button.js v5.2.
|
2
|
+
* Bootstrap button.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
/**
|
18
18
|
* --------------------------------------------------------------------------
|
19
|
-
* Bootstrap (v5.2.
|
19
|
+
* Bootstrap (v5.2.2): button.js
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
21
21
|
* --------------------------------------------------------------------------
|
22
22
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap carousel.js v5.2.
|
2
|
+
* Bootstrap carousel.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
/**
|
21
21
|
* --------------------------------------------------------------------------
|
22
|
-
* Bootstrap (v5.2.
|
22
|
+
* Bootstrap (v5.2.2): carousel.js
|
23
23
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
24
24
|
* --------------------------------------------------------------------------
|
25
25
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap collapse.js v5.2.
|
2
|
+
* Bootstrap collapse.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
/**
|
19
19
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.2.
|
20
|
+
* Bootstrap (v5.2.2): collapse.js
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
22
|
* --------------------------------------------------------------------------
|
23
23
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap data.js v5.2.
|
2
|
+
* Bootstrap data.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): dom/data.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap event-handler.js v5.2.
|
2
|
+
* Bootstrap event-handler.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): dom/event-handler.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap manipulator.js v5.2.
|
2
|
+
* Bootstrap manipulator.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): dom/manipulator.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap selector-engine.js v5.2.
|
2
|
+
* Bootstrap selector-engine.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): dom/selector-engine.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap dropdown.js v5.2.
|
2
|
+
* Bootstrap dropdown.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -37,7 +37,7 @@
|
|
37
37
|
|
38
38
|
/**
|
39
39
|
* --------------------------------------------------------------------------
|
40
|
-
* Bootstrap (v5.2.
|
40
|
+
* Bootstrap (v5.2.2): dropdown.js
|
41
41
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
42
42
|
* --------------------------------------------------------------------------
|
43
43
|
*/
|
@@ -109,7 +109,7 @@
|
|
109
109
|
this._parent = this._element.parentNode; // dropdown wrapper
|
110
110
|
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
|
111
111
|
|
112
|
-
this._menu = SelectorEngine__default.default.next(this._element, SELECTOR_MENU)[0] || SelectorEngine__default.default.prev(this._element, SELECTOR_MENU)[0];
|
112
|
+
this._menu = SelectorEngine__default.default.next(this._element, SELECTOR_MENU)[0] || SelectorEngine__default.default.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine__default.default.findOne(SELECTOR_MENU, this._parent);
|
113
113
|
this._inNavbar = this._detectNavbar();
|
114
114
|
} // Getters
|
115
115
|
|
@@ -427,7 +427,7 @@
|
|
427
427
|
|
428
428
|
event.preventDefault(); // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
|
429
429
|
|
430
|
-
const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE) ? this : SelectorEngine__default.default.prev(this, SELECTOR_DATA_TOGGLE)[0] || SelectorEngine__default.default.next(this, SELECTOR_DATA_TOGGLE)[0];
|
430
|
+
const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE) ? this : SelectorEngine__default.default.prev(this, SELECTOR_DATA_TOGGLE)[0] || SelectorEngine__default.default.next(this, SELECTOR_DATA_TOGGLE)[0] || SelectorEngine__default.default.findOne(SELECTOR_DATA_TOGGLE, event.delegateTarget.parentNode);
|
431
431
|
const instance = Dropdown.getOrCreateInstance(getToggleButton);
|
432
432
|
|
433
433
|
if (isUpOrDownEvent) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap modal.js v5.2.
|
2
|
+
* Bootstrap modal.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
/**
|
22
22
|
* --------------------------------------------------------------------------
|
23
|
-
* Bootstrap (v5.2.
|
23
|
+
* Bootstrap (v5.2.2): modal.js
|
24
24
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
25
25
|
* --------------------------------------------------------------------------
|
26
26
|
*/
|
@@ -232,9 +232,9 @@
|
|
232
232
|
}
|
233
233
|
});
|
234
234
|
EventHandler__default.default.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
|
235
|
+
// a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
|
235
236
|
EventHandler__default.default.one(this._element, EVENT_CLICK_DISMISS, event2 => {
|
236
|
-
|
237
|
-
if (this._dialog.contains(event.target) || this._dialog.contains(event2.target)) {
|
237
|
+
if (this._element !== event.target || this._element !== event2.target) {
|
238
238
|
return;
|
239
239
|
}
|
240
240
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap offcanvas.js v5.2.
|
2
|
+
* Bootstrap offcanvas.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
/**
|
22
22
|
* --------------------------------------------------------------------------
|
23
|
-
* Bootstrap (v5.2.
|
23
|
+
* Bootstrap (v5.2.2): offcanvas.js
|
24
24
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
25
25
|
* --------------------------------------------------------------------------
|
26
26
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap popover.js v5.2.
|
2
|
+
* Bootstrap popover.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
/**
|
17
17
|
* --------------------------------------------------------------------------
|
18
|
-
* Bootstrap (v5.2.
|
18
|
+
* Bootstrap (v5.2.2): popover.js
|
19
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
20
20
|
* --------------------------------------------------------------------------
|
21
21
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap scrollspy.js v5.2.
|
2
|
+
* Bootstrap scrollspy.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
/**
|
19
19
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.2.
|
20
|
+
* Bootstrap (v5.2.2): scrollspy.js
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
22
|
* --------------------------------------------------------------------------
|
23
23
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap tab.js v5.2.
|
2
|
+
* Bootstrap tab.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
/**
|
19
19
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.2.
|
20
|
+
* Bootstrap (v5.2.2): tab.js
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
22
|
* --------------------------------------------------------------------------
|
23
23
|
*/
|
@@ -45,7 +45,6 @@
|
|
45
45
|
const CLASS_DROPDOWN = 'dropdown';
|
46
46
|
const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
47
47
|
const SELECTOR_DROPDOWN_MENU = '.dropdown-menu';
|
48
|
-
const SELECTOR_DROPDOWN_ITEM = '.dropdown-item';
|
49
48
|
const NOT_SELECTOR_DROPDOWN_TOGGLE = ':not(.dropdown-toggle)';
|
50
49
|
const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
|
51
50
|
const SELECTOR_OUTER = '.nav-item, .list-group-item';
|
@@ -124,7 +123,6 @@
|
|
124
123
|
return;
|
125
124
|
}
|
126
125
|
|
127
|
-
element.focus();
|
128
126
|
element.removeAttribute('tabindex');
|
129
127
|
element.setAttribute('aria-selected', true);
|
130
128
|
|
@@ -180,6 +178,9 @@
|
|
180
178
|
const nextActiveElement = index.getNextActiveElement(this._getChildren().filter(element => !index.isDisabled(element)), event.target, isNext, true);
|
181
179
|
|
182
180
|
if (nextActiveElement) {
|
181
|
+
nextActiveElement.focus({
|
182
|
+
preventScroll: true
|
183
|
+
});
|
183
184
|
Tab.getOrCreateInstance(nextActiveElement).show();
|
184
185
|
}
|
185
186
|
}
|
@@ -255,7 +256,6 @@
|
|
255
256
|
|
256
257
|
toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE);
|
257
258
|
toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW);
|
258
|
-
toggle(SELECTOR_DROPDOWN_ITEM, CLASS_NAME_ACTIVE);
|
259
259
|
outerElem.setAttribute('aria-expanded', open);
|
260
260
|
}
|
261
261
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap toast.js v5.2.
|
2
|
+
* Bootstrap toast.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
/**
|
18
18
|
* --------------------------------------------------------------------------
|
19
|
-
* Bootstrap (v5.2.
|
19
|
+
* Bootstrap (v5.2.2): toast.js
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
21
21
|
* --------------------------------------------------------------------------
|
22
22
|
*/
|
@@ -167,13 +167,17 @@
|
|
167
167
|
switch (event.type) {
|
168
168
|
case 'mouseover':
|
169
169
|
case 'mouseout':
|
170
|
-
|
171
|
-
|
170
|
+
{
|
171
|
+
this._hasMouseInteraction = isInteracting;
|
172
|
+
break;
|
173
|
+
}
|
172
174
|
|
173
175
|
case 'focusin':
|
174
176
|
case 'focusout':
|
175
|
-
|
176
|
-
|
177
|
+
{
|
178
|
+
this._hasKeyboardInteraction = isInteracting;
|
179
|
+
break;
|
180
|
+
}
|
177
181
|
}
|
178
182
|
|
179
183
|
if (isInteracting) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap tooltip.js v5.2.
|
2
|
+
* Bootstrap tooltip.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -37,7 +37,7 @@
|
|
37
37
|
|
38
38
|
/**
|
39
39
|
* --------------------------------------------------------------------------
|
40
|
-
* Bootstrap (v5.2.
|
40
|
+
* Bootstrap (v5.2.2): tooltip.js
|
41
41
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
42
42
|
* --------------------------------------------------------------------------
|
43
43
|
*/
|
@@ -135,6 +135,10 @@
|
|
135
135
|
this.tip = null;
|
136
136
|
|
137
137
|
this._setListeners();
|
138
|
+
|
139
|
+
if (!this._config.selector) {
|
140
|
+
this._fixTitle();
|
141
|
+
}
|
138
142
|
} // Getters
|
139
143
|
|
140
144
|
|
@@ -163,24 +167,12 @@
|
|
163
167
|
this._isEnabled = !this._isEnabled;
|
164
168
|
}
|
165
169
|
|
166
|
-
toggle(
|
170
|
+
toggle() {
|
167
171
|
if (!this._isEnabled) {
|
168
172
|
return;
|
169
173
|
}
|
170
174
|
|
171
|
-
|
172
|
-
const context = this._initializeOnDelegatedTarget(event);
|
173
|
-
|
174
|
-
context._activeTrigger.click = !context._activeTrigger.click;
|
175
|
-
|
176
|
-
if (context._isWithActiveTrigger()) {
|
177
|
-
context._enter();
|
178
|
-
} else {
|
179
|
-
context._leave();
|
180
|
-
}
|
181
|
-
|
182
|
-
return;
|
183
|
-
}
|
175
|
+
this._activeTrigger.click = !this._activeTrigger.click;
|
184
176
|
|
185
177
|
if (this._isShown()) {
|
186
178
|
this._leave();
|
@@ -199,8 +191,8 @@
|
|
199
191
|
this.tip.remove();
|
200
192
|
}
|
201
193
|
|
202
|
-
if (this.
|
203
|
-
this._element.setAttribute('title', this.
|
194
|
+
if (this._element.getAttribute('data-bs-original-title')) {
|
195
|
+
this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
|
204
196
|
}
|
205
197
|
|
206
198
|
this._disposePopper();
|
@@ -393,7 +385,7 @@
|
|
393
385
|
}
|
394
386
|
|
395
387
|
_getTitle() {
|
396
|
-
return this._resolvePossibleFunction(this._config.title) || this.
|
388
|
+
return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');
|
397
389
|
} // Private
|
398
390
|
|
399
391
|
|
@@ -479,7 +471,11 @@
|
|
479
471
|
|
480
472
|
for (const trigger of triggers) {
|
481
473
|
if (trigger === 'click') {
|
482
|
-
EventHandler__default.default.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, event =>
|
474
|
+
EventHandler__default.default.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, event => {
|
475
|
+
const context = this._initializeOnDelegatedTarget(event);
|
476
|
+
|
477
|
+
context.toggle();
|
478
|
+
});
|
483
479
|
} else if (trigger !== TRIGGER_MANUAL) {
|
484
480
|
const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN);
|
485
481
|
const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT);
|
@@ -507,19 +503,10 @@
|
|
507
503
|
};
|
508
504
|
|
509
505
|
EventHandler__default.default.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
|
510
|
-
|
511
|
-
if (this._config.selector) {
|
512
|
-
this._config = { ...this._config,
|
513
|
-
trigger: 'manual',
|
514
|
-
selector: ''
|
515
|
-
};
|
516
|
-
} else {
|
517
|
-
this._fixTitle();
|
518
|
-
}
|
519
506
|
}
|
520
507
|
|
521
508
|
_fixTitle() {
|
522
|
-
const title = this.
|
509
|
+
const title = this._element.getAttribute('title');
|
523
510
|
|
524
511
|
if (!title) {
|
525
512
|
return;
|
@@ -529,6 +516,9 @@
|
|
529
516
|
this._element.setAttribute('aria-label', title);
|
530
517
|
}
|
531
518
|
|
519
|
+
this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility
|
520
|
+
|
521
|
+
|
532
522
|
this._element.removeAttribute('title');
|
533
523
|
}
|
534
524
|
|
@@ -600,8 +590,6 @@
|
|
600
590
|
};
|
601
591
|
}
|
602
592
|
|
603
|
-
config.originalTitle = this._element.getAttribute('title') || '';
|
604
|
-
|
605
593
|
if (typeof config.title === 'number') {
|
606
594
|
config.title = config.title.toString();
|
607
595
|
}
|
@@ -620,11 +608,13 @@
|
|
620
608
|
if (this.constructor.Default[key] !== this._config[key]) {
|
621
609
|
config[key] = this._config[key];
|
622
610
|
}
|
623
|
-
}
|
611
|
+
}
|
612
|
+
|
613
|
+
config.selector = false;
|
614
|
+
config.trigger = 'manual'; // In the future can be replaced with:
|
624
615
|
// const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])
|
625
616
|
// `Object.fromEntries(keysWithDifferentValues)`
|
626
617
|
|
627
|
-
|
628
618
|
return config;
|
629
619
|
}
|
630
620
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap backdrop.js v5.2.
|
2
|
+
* Bootstrap backdrop.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
/**
|
18
18
|
* --------------------------------------------------------------------------
|
19
|
-
* Bootstrap (v5.2.
|
19
|
+
* Bootstrap (v5.2.2): util/backdrop.js
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
21
21
|
* --------------------------------------------------------------------------
|
22
22
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap component-functions.js v5.2.
|
2
|
+
* Bootstrap component-functions.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
/**
|
17
17
|
* --------------------------------------------------------------------------
|
18
|
-
* Bootstrap (v5.2.
|
18
|
+
* Bootstrap (v5.2.2): util/component-functions.js
|
19
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
20
20
|
* --------------------------------------------------------------------------
|
21
21
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap config.js v5.2.
|
2
|
+
* Bootstrap config.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
/**
|
17
17
|
* --------------------------------------------------------------------------
|
18
|
-
* Bootstrap (v5.2.
|
18
|
+
* Bootstrap (v5.2.2): util/config.js
|
19
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
20
20
|
* --------------------------------------------------------------------------
|
21
21
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap focustrap.js v5.2.
|
2
|
+
* Bootstrap focustrap.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
/**
|
19
19
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.2.
|
20
|
+
* Bootstrap (v5.2.2): util/focustrap.js
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
22
|
* --------------------------------------------------------------------------
|
23
23
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap index.js v5.2.
|
2
|
+
* Bootstrap index.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): util/index.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap sanitizer.js v5.2.
|
2
|
+
* Bootstrap sanitizer.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.2.
|
14
|
+
* Bootstrap (v5.2.2): util/sanitizer.js
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
16
|
* --------------------------------------------------------------------------
|
17
17
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap scrollbar.js v5.2.
|
2
|
+
* Bootstrap scrollbar.js v5.2.2 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2022 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
|
*/
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
/**
|
18
18
|
* --------------------------------------------------------------------------
|
19
|
-
* Bootstrap (v5.2.
|
19
|
+
* Bootstrap (v5.2.2): util/scrollBar.js
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
21
21
|
* --------------------------------------------------------------------------
|
22
22
|
*/
|