bootstrap 5.2.1 → 5.2.2
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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap swipe.js v5.2.
|
|
2
|
+
* Bootstrap swipe.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/swipe.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 template-factory.js v5.2.
|
|
2
|
+
* Bootstrap template-factory.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/template-factory.js
|
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
21
21
|
* --------------------------------------------------------------------------
|
|
22
22
|
*/
|
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
//= require ./bootstrap/base-component
|
|
8
8
|
//= require ./bootstrap/util/component-functions
|
|
9
9
|
//= require ./bootstrap/alert
|
|
10
|
-
//= require ./bootstrap/button
|
|
11
10
|
//= require ./bootstrap/dom/selector-engine
|
|
12
|
-
//= require ./bootstrap/util/swipe
|
|
13
|
-
//= require ./bootstrap/carousel
|
|
14
|
-
//= require ./bootstrap/collapse
|
|
15
|
-
//= require ./bootstrap/dropdown
|
|
16
|
-
//= require ./bootstrap/util/backdrop
|
|
17
11
|
//= require ./bootstrap/util/focustrap
|
|
18
|
-
//= require ./bootstrap/util/scrollbar
|
|
19
|
-
//= require ./bootstrap/modal
|
|
20
|
-
//= require ./bootstrap/offcanvas
|
|
21
12
|
//= require ./bootstrap/util/sanitizer
|
|
22
13
|
//= require ./bootstrap/util/template-factory
|
|
23
14
|
//= require ./bootstrap/tooltip
|
|
24
15
|
//= require ./bootstrap/popover
|
|
16
|
+
//= require ./bootstrap/util/scrollbar
|
|
17
|
+
//= require ./bootstrap/util/swipe
|
|
18
|
+
//= require ./bootstrap/util/backdrop
|
|
19
|
+
//= require ./bootstrap/button
|
|
20
|
+
//= require ./bootstrap/modal
|
|
21
|
+
//= require ./bootstrap/toast
|
|
22
|
+
//= require ./bootstrap/offcanvas
|
|
23
|
+
//= require ./bootstrap/collapse
|
|
25
24
|
//= require ./bootstrap/scrollspy
|
|
25
|
+
//= require ./bootstrap/carousel
|
|
26
26
|
//= require ./bootstrap/tab
|
|
27
|
-
//= require ./bootstrap/
|
|
27
|
+
//= require ./bootstrap/dropdown
|
|
28
28
|
//= require ./bootstrap-global-this-undefine
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap v5.2.
|
|
2
|
+
* Bootstrap 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
|
*/
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* --------------------------------------------------------------------------
|
|
34
|
-
* Bootstrap (v5.2.
|
|
34
|
+
* Bootstrap (v5.2.2): util/index.js
|
|
35
35
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
36
36
|
* --------------------------------------------------------------------------
|
|
37
37
|
*/
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
348
|
* --------------------------------------------------------------------------
|
|
349
|
-
* Bootstrap (v5.2.
|
|
349
|
+
* Bootstrap (v5.2.2): dom/event-handler.js
|
|
350
350
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
351
351
|
* --------------------------------------------------------------------------
|
|
352
352
|
*/
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* --------------------------------------------------------------------------
|
|
618
|
-
* Bootstrap (v5.2.
|
|
618
|
+
* Bootstrap (v5.2.2): dom/data.js
|
|
619
619
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
620
620
|
* --------------------------------------------------------------------------
|
|
621
621
|
*/
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
669
|
* --------------------------------------------------------------------------
|
|
670
|
-
* Bootstrap (v5.2.
|
|
670
|
+
* Bootstrap (v5.2.2): dom/manipulator.js
|
|
671
671
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
672
672
|
* --------------------------------------------------------------------------
|
|
673
673
|
*/
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
|
|
738
738
|
/**
|
|
739
739
|
* --------------------------------------------------------------------------
|
|
740
|
-
* Bootstrap (v5.2.
|
|
740
|
+
* Bootstrap (v5.2.2): util/config.js
|
|
741
741
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
742
742
|
* --------------------------------------------------------------------------
|
|
743
743
|
*/
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
|
|
799
799
|
/**
|
|
800
800
|
* --------------------------------------------------------------------------
|
|
801
|
-
* Bootstrap (v5.2.
|
|
801
|
+
* Bootstrap (v5.2.2): base-component.js
|
|
802
802
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
803
803
|
* --------------------------------------------------------------------------
|
|
804
804
|
*/
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
* Constants
|
|
807
807
|
*/
|
|
808
808
|
|
|
809
|
-
const VERSION = '5.2.
|
|
809
|
+
const VERSION = '5.2.2';
|
|
810
810
|
/**
|
|
811
811
|
* Class definition
|
|
812
812
|
*/
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
|
|
878
878
|
/**
|
|
879
879
|
* --------------------------------------------------------------------------
|
|
880
|
-
* Bootstrap (v5.2.
|
|
880
|
+
* Bootstrap (v5.2.2): util/component-functions.js
|
|
881
881
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
882
882
|
* --------------------------------------------------------------------------
|
|
883
883
|
*/
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
|
|
904
904
|
/**
|
|
905
905
|
* --------------------------------------------------------------------------
|
|
906
|
-
* Bootstrap (v5.2.
|
|
906
|
+
* Bootstrap (v5.2.2): alert.js
|
|
907
907
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
908
908
|
* --------------------------------------------------------------------------
|
|
909
909
|
*/
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
|
|
984
984
|
/**
|
|
985
985
|
* --------------------------------------------------------------------------
|
|
986
|
-
* Bootstrap (v5.2.
|
|
986
|
+
* Bootstrap (v5.2.2): button.js
|
|
987
987
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
988
988
|
* --------------------------------------------------------------------------
|
|
989
989
|
*/
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
|
|
1046
1046
|
/**
|
|
1047
1047
|
* --------------------------------------------------------------------------
|
|
1048
|
-
* Bootstrap (v5.2.
|
|
1048
|
+
* Bootstrap (v5.2.2): dom/selector-engine.js
|
|
1049
1049
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1050
1050
|
* --------------------------------------------------------------------------
|
|
1051
1051
|
*/
|
|
@@ -1116,7 +1116,7 @@
|
|
|
1116
1116
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* --------------------------------------------------------------------------
|
|
1119
|
-
* Bootstrap (v5.2.
|
|
1119
|
+
* Bootstrap (v5.2.2): util/swipe.js
|
|
1120
1120
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1121
1121
|
* --------------------------------------------------------------------------
|
|
1122
1122
|
*/
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
|
|
1253
1253
|
/**
|
|
1254
1254
|
* --------------------------------------------------------------------------
|
|
1255
|
-
* Bootstrap (v5.2.
|
|
1255
|
+
* Bootstrap (v5.2.2): carousel.js
|
|
1256
1256
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1257
1257
|
* --------------------------------------------------------------------------
|
|
1258
1258
|
*/
|
|
@@ -1700,7 +1700,7 @@
|
|
|
1700
1700
|
|
|
1701
1701
|
/**
|
|
1702
1702
|
* --------------------------------------------------------------------------
|
|
1703
|
-
* Bootstrap (v5.2.
|
|
1703
|
+
* Bootstrap (v5.2.2): collapse.js
|
|
1704
1704
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1705
1705
|
* --------------------------------------------------------------------------
|
|
1706
1706
|
*/
|
|
@@ -1990,7 +1990,7 @@
|
|
|
1990
1990
|
|
|
1991
1991
|
/**
|
|
1992
1992
|
* --------------------------------------------------------------------------
|
|
1993
|
-
* Bootstrap (v5.2.
|
|
1993
|
+
* Bootstrap (v5.2.2): dropdown.js
|
|
1994
1994
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1995
1995
|
* --------------------------------------------------------------------------
|
|
1996
1996
|
*/
|
|
@@ -2062,7 +2062,7 @@
|
|
|
2062
2062
|
this._parent = this._element.parentNode; // dropdown wrapper
|
|
2063
2063
|
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
|
|
2064
2064
|
|
|
2065
|
-
this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0];
|
|
2065
|
+
this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
|
|
2066
2066
|
this._inNavbar = this._detectNavbar();
|
|
2067
2067
|
} // Getters
|
|
2068
2068
|
|
|
@@ -2380,7 +2380,7 @@
|
|
|
2380
2380
|
|
|
2381
2381
|
event.preventDefault(); // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
|
|
2382
2382
|
|
|
2383
|
-
const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0];
|
|
2383
|
+
const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);
|
|
2384
2384
|
const instance = Dropdown.getOrCreateInstance(getToggleButton);
|
|
2385
2385
|
|
|
2386
2386
|
if (isUpOrDownEvent) {
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
|
|
2423
2423
|
/**
|
|
2424
2424
|
* --------------------------------------------------------------------------
|
|
2425
|
-
* Bootstrap (v5.2.
|
|
2425
|
+
* Bootstrap (v5.2.2): util/scrollBar.js
|
|
2426
2426
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2427
2427
|
* --------------------------------------------------------------------------
|
|
2428
2428
|
*/
|
|
@@ -2541,7 +2541,7 @@
|
|
|
2541
2541
|
|
|
2542
2542
|
/**
|
|
2543
2543
|
* --------------------------------------------------------------------------
|
|
2544
|
-
* Bootstrap (v5.2.
|
|
2544
|
+
* Bootstrap (v5.2.2): util/backdrop.js
|
|
2545
2545
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2546
2546
|
* --------------------------------------------------------------------------
|
|
2547
2547
|
*/
|
|
@@ -2687,7 +2687,7 @@
|
|
|
2687
2687
|
|
|
2688
2688
|
/**
|
|
2689
2689
|
* --------------------------------------------------------------------------
|
|
2690
|
-
* Bootstrap (v5.2.
|
|
2690
|
+
* Bootstrap (v5.2.2): util/focustrap.js
|
|
2691
2691
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2692
2692
|
* --------------------------------------------------------------------------
|
|
2693
2693
|
*/
|
|
@@ -2796,7 +2796,7 @@
|
|
|
2796
2796
|
|
|
2797
2797
|
/**
|
|
2798
2798
|
* --------------------------------------------------------------------------
|
|
2799
|
-
* Bootstrap (v5.2.
|
|
2799
|
+
* Bootstrap (v5.2.2): modal.js
|
|
2800
2800
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2801
2801
|
* --------------------------------------------------------------------------
|
|
2802
2802
|
*/
|
|
@@ -3008,9 +3008,9 @@
|
|
|
3008
3008
|
}
|
|
3009
3009
|
});
|
|
3010
3010
|
EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
|
|
3011
|
+
// a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
|
|
3011
3012
|
EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {
|
|
3012
|
-
|
|
3013
|
-
if (this._dialog.contains(event.target) || this._dialog.contains(event2.target)) {
|
|
3013
|
+
if (this._element !== event.target || this._element !== event2.target) {
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
3016
|
|
|
@@ -3172,7 +3172,7 @@
|
|
|
3172
3172
|
|
|
3173
3173
|
/**
|
|
3174
3174
|
* --------------------------------------------------------------------------
|
|
3175
|
-
* Bootstrap (v5.2.
|
|
3175
|
+
* Bootstrap (v5.2.2): offcanvas.js
|
|
3176
3176
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3177
3177
|
* --------------------------------------------------------------------------
|
|
3178
3178
|
*/
|
|
@@ -3446,7 +3446,7 @@
|
|
|
3446
3446
|
|
|
3447
3447
|
/**
|
|
3448
3448
|
* --------------------------------------------------------------------------
|
|
3449
|
-
* Bootstrap (v5.2.
|
|
3449
|
+
* Bootstrap (v5.2.2): util/sanitizer.js
|
|
3450
3450
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3451
3451
|
* --------------------------------------------------------------------------
|
|
3452
3452
|
*/
|
|
@@ -3551,7 +3551,7 @@
|
|
|
3551
3551
|
|
|
3552
3552
|
/**
|
|
3553
3553
|
* --------------------------------------------------------------------------
|
|
3554
|
-
* Bootstrap (v5.2.
|
|
3554
|
+
* Bootstrap (v5.2.2): util/template-factory.js
|
|
3555
3555
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3556
3556
|
* --------------------------------------------------------------------------
|
|
3557
3557
|
*/
|
|
@@ -3709,7 +3709,7 @@
|
|
|
3709
3709
|
|
|
3710
3710
|
/**
|
|
3711
3711
|
* --------------------------------------------------------------------------
|
|
3712
|
-
* Bootstrap (v5.2.
|
|
3712
|
+
* Bootstrap (v5.2.2): tooltip.js
|
|
3713
3713
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3714
3714
|
* --------------------------------------------------------------------------
|
|
3715
3715
|
*/
|
|
@@ -3807,6 +3807,10 @@
|
|
|
3807
3807
|
this.tip = null;
|
|
3808
3808
|
|
|
3809
3809
|
this._setListeners();
|
|
3810
|
+
|
|
3811
|
+
if (!this._config.selector) {
|
|
3812
|
+
this._fixTitle();
|
|
3813
|
+
}
|
|
3810
3814
|
} // Getters
|
|
3811
3815
|
|
|
3812
3816
|
|
|
@@ -3835,24 +3839,12 @@
|
|
|
3835
3839
|
this._isEnabled = !this._isEnabled;
|
|
3836
3840
|
}
|
|
3837
3841
|
|
|
3838
|
-
toggle(
|
|
3842
|
+
toggle() {
|
|
3839
3843
|
if (!this._isEnabled) {
|
|
3840
3844
|
return;
|
|
3841
3845
|
}
|
|
3842
3846
|
|
|
3843
|
-
|
|
3844
|
-
const context = this._initializeOnDelegatedTarget(event);
|
|
3845
|
-
|
|
3846
|
-
context._activeTrigger.click = !context._activeTrigger.click;
|
|
3847
|
-
|
|
3848
|
-
if (context._isWithActiveTrigger()) {
|
|
3849
|
-
context._enter();
|
|
3850
|
-
} else {
|
|
3851
|
-
context._leave();
|
|
3852
|
-
}
|
|
3853
|
-
|
|
3854
|
-
return;
|
|
3855
|
-
}
|
|
3847
|
+
this._activeTrigger.click = !this._activeTrigger.click;
|
|
3856
3848
|
|
|
3857
3849
|
if (this._isShown()) {
|
|
3858
3850
|
this._leave();
|
|
@@ -3871,8 +3863,8 @@
|
|
|
3871
3863
|
this.tip.remove();
|
|
3872
3864
|
}
|
|
3873
3865
|
|
|
3874
|
-
if (this.
|
|
3875
|
-
this._element.setAttribute('title', this.
|
|
3866
|
+
if (this._element.getAttribute('data-bs-original-title')) {
|
|
3867
|
+
this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
|
|
3876
3868
|
}
|
|
3877
3869
|
|
|
3878
3870
|
this._disposePopper();
|
|
@@ -4065,7 +4057,7 @@
|
|
|
4065
4057
|
}
|
|
4066
4058
|
|
|
4067
4059
|
_getTitle() {
|
|
4068
|
-
return this._resolvePossibleFunction(this._config.title) || this.
|
|
4060
|
+
return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');
|
|
4069
4061
|
} // Private
|
|
4070
4062
|
|
|
4071
4063
|
|
|
@@ -4151,7 +4143,11 @@
|
|
|
4151
4143
|
|
|
4152
4144
|
for (const trigger of triggers) {
|
|
4153
4145
|
if (trigger === 'click') {
|
|
4154
|
-
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event =>
|
|
4146
|
+
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {
|
|
4147
|
+
const context = this._initializeOnDelegatedTarget(event);
|
|
4148
|
+
|
|
4149
|
+
context.toggle();
|
|
4150
|
+
});
|
|
4155
4151
|
} else if (trigger !== TRIGGER_MANUAL) {
|
|
4156
4152
|
const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN$1);
|
|
4157
4153
|
const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT$1);
|
|
@@ -4179,19 +4175,10 @@
|
|
|
4179
4175
|
};
|
|
4180
4176
|
|
|
4181
4177
|
EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
|
|
4182
|
-
|
|
4183
|
-
if (this._config.selector) {
|
|
4184
|
-
this._config = { ...this._config,
|
|
4185
|
-
trigger: 'manual',
|
|
4186
|
-
selector: ''
|
|
4187
|
-
};
|
|
4188
|
-
} else {
|
|
4189
|
-
this._fixTitle();
|
|
4190
|
-
}
|
|
4191
4178
|
}
|
|
4192
4179
|
|
|
4193
4180
|
_fixTitle() {
|
|
4194
|
-
const title = this.
|
|
4181
|
+
const title = this._element.getAttribute('title');
|
|
4195
4182
|
|
|
4196
4183
|
if (!title) {
|
|
4197
4184
|
return;
|
|
@@ -4201,6 +4188,9 @@
|
|
|
4201
4188
|
this._element.setAttribute('aria-label', title);
|
|
4202
4189
|
}
|
|
4203
4190
|
|
|
4191
|
+
this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility
|
|
4192
|
+
|
|
4193
|
+
|
|
4204
4194
|
this._element.removeAttribute('title');
|
|
4205
4195
|
}
|
|
4206
4196
|
|
|
@@ -4272,8 +4262,6 @@
|
|
|
4272
4262
|
};
|
|
4273
4263
|
}
|
|
4274
4264
|
|
|
4275
|
-
config.originalTitle = this._element.getAttribute('title') || '';
|
|
4276
|
-
|
|
4277
4265
|
if (typeof config.title === 'number') {
|
|
4278
4266
|
config.title = config.title.toString();
|
|
4279
4267
|
}
|
|
@@ -4292,11 +4280,13 @@
|
|
|
4292
4280
|
if (this.constructor.Default[key] !== this._config[key]) {
|
|
4293
4281
|
config[key] = this._config[key];
|
|
4294
4282
|
}
|
|
4295
|
-
}
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
config.selector = false;
|
|
4286
|
+
config.trigger = 'manual'; // In the future can be replaced with:
|
|
4296
4287
|
// const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])
|
|
4297
4288
|
// `Object.fromEntries(keysWithDifferentValues)`
|
|
4298
4289
|
|
|
4299
|
-
|
|
4300
4290
|
return config;
|
|
4301
4291
|
}
|
|
4302
4292
|
|
|
@@ -4335,7 +4325,7 @@
|
|
|
4335
4325
|
|
|
4336
4326
|
/**
|
|
4337
4327
|
* --------------------------------------------------------------------------
|
|
4338
|
-
* Bootstrap (v5.2.
|
|
4328
|
+
* Bootstrap (v5.2.2): popover.js
|
|
4339
4329
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4340
4330
|
* --------------------------------------------------------------------------
|
|
4341
4331
|
*/
|
|
@@ -4418,7 +4408,7 @@
|
|
|
4418
4408
|
|
|
4419
4409
|
/**
|
|
4420
4410
|
* --------------------------------------------------------------------------
|
|
4421
|
-
* Bootstrap (v5.2.
|
|
4411
|
+
* Bootstrap (v5.2.2): scrollspy.js
|
|
4422
4412
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4423
4413
|
* --------------------------------------------------------------------------
|
|
4424
4414
|
*/
|
|
@@ -4709,7 +4699,7 @@
|
|
|
4709
4699
|
|
|
4710
4700
|
/**
|
|
4711
4701
|
* --------------------------------------------------------------------------
|
|
4712
|
-
* Bootstrap (v5.2.
|
|
4702
|
+
* Bootstrap (v5.2.2): tab.js
|
|
4713
4703
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4714
4704
|
* --------------------------------------------------------------------------
|
|
4715
4705
|
*/
|
|
@@ -4737,7 +4727,6 @@
|
|
|
4737
4727
|
const CLASS_DROPDOWN = 'dropdown';
|
|
4738
4728
|
const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
|
4739
4729
|
const SELECTOR_DROPDOWN_MENU = '.dropdown-menu';
|
|
4740
|
-
const SELECTOR_DROPDOWN_ITEM = '.dropdown-item';
|
|
4741
4730
|
const NOT_SELECTOR_DROPDOWN_TOGGLE = ':not(.dropdown-toggle)';
|
|
4742
4731
|
const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
|
|
4743
4732
|
const SELECTOR_OUTER = '.nav-item, .list-group-item';
|
|
@@ -4816,7 +4805,6 @@
|
|
|
4816
4805
|
return;
|
|
4817
4806
|
}
|
|
4818
4807
|
|
|
4819
|
-
element.focus();
|
|
4820
4808
|
element.removeAttribute('tabindex');
|
|
4821
4809
|
element.setAttribute('aria-selected', true);
|
|
4822
4810
|
|
|
@@ -4872,6 +4860,9 @@
|
|
|
4872
4860
|
const nextActiveElement = getNextActiveElement(this._getChildren().filter(element => !isDisabled(element)), event.target, isNext, true);
|
|
4873
4861
|
|
|
4874
4862
|
if (nextActiveElement) {
|
|
4863
|
+
nextActiveElement.focus({
|
|
4864
|
+
preventScroll: true
|
|
4865
|
+
});
|
|
4875
4866
|
Tab.getOrCreateInstance(nextActiveElement).show();
|
|
4876
4867
|
}
|
|
4877
4868
|
}
|
|
@@ -4947,7 +4938,6 @@
|
|
|
4947
4938
|
|
|
4948
4939
|
toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE);
|
|
4949
4940
|
toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW$1);
|
|
4950
|
-
toggle(SELECTOR_DROPDOWN_ITEM, CLASS_NAME_ACTIVE);
|
|
4951
4941
|
outerElem.setAttribute('aria-expanded', open);
|
|
4952
4942
|
}
|
|
4953
4943
|
|
|
@@ -5022,7 +5012,7 @@
|
|
|
5022
5012
|
|
|
5023
5013
|
/**
|
|
5024
5014
|
* --------------------------------------------------------------------------
|
|
5025
|
-
* Bootstrap (v5.2.
|
|
5015
|
+
* Bootstrap (v5.2.2): toast.js
|
|
5026
5016
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5027
5017
|
* --------------------------------------------------------------------------
|
|
5028
5018
|
*/
|
|
@@ -5173,13 +5163,17 @@
|
|
|
5173
5163
|
switch (event.type) {
|
|
5174
5164
|
case 'mouseover':
|
|
5175
5165
|
case 'mouseout':
|
|
5176
|
-
|
|
5177
|
-
|
|
5166
|
+
{
|
|
5167
|
+
this._hasMouseInteraction = isInteracting;
|
|
5168
|
+
break;
|
|
5169
|
+
}
|
|
5178
5170
|
|
|
5179
5171
|
case 'focusin':
|
|
5180
5172
|
case 'focusout':
|
|
5181
|
-
|
|
5182
|
-
|
|
5173
|
+
{
|
|
5174
|
+
this._hasKeyboardInteraction = isInteracting;
|
|
5175
|
+
break;
|
|
5176
|
+
}
|
|
5183
5177
|
}
|
|
5184
5178
|
|
|
5185
5179
|
if (isInteracting) {
|
|
@@ -5239,7 +5233,7 @@
|
|
|
5239
5233
|
|
|
5240
5234
|
/**
|
|
5241
5235
|
* --------------------------------------------------------------------------
|
|
5242
|
-
* Bootstrap (v5.2.
|
|
5236
|
+
* Bootstrap (v5.2.2): index.umd.js
|
|
5243
5237
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5244
5238
|
* --------------------------------------------------------------------------
|
|
5245
5239
|
*/
|