bootstrap 5.1.0 → 5.1.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/README.md +1 -1
- data/assets/javascripts/bootstrap/alert.js +4 -4
- data/assets/javascripts/bootstrap/base-component.js +4 -4
- data/assets/javascripts/bootstrap/button.js +3 -3
- data/assets/javascripts/bootstrap/carousel.js +9 -5
- data/assets/javascripts/bootstrap/collapse.js +4 -4
- data/assets/javascripts/bootstrap/dom/data.js +2 -2
- data/assets/javascripts/bootstrap/dom/event-handler.js +3 -4
- data/assets/javascripts/bootstrap/dom/manipulator.js +2 -2
- data/assets/javascripts/bootstrap/dom/selector-engine.js +3 -3
- data/assets/javascripts/bootstrap/dropdown.js +3 -3
- data/assets/javascripts/bootstrap/modal.js +16 -8
- data/assets/javascripts/bootstrap/offcanvas.js +7 -7
- data/assets/javascripts/bootstrap/popover.js +3 -3
- data/assets/javascripts/bootstrap/scrollspy.js +3 -3
- data/assets/javascripts/bootstrap/tab.js +3 -3
- data/assets/javascripts/bootstrap/toast.js +4 -4
- data/assets/javascripts/bootstrap/tooltip.js +23 -12
- data/assets/javascripts/bootstrap-sprockets.js +6 -6
- data/assets/javascripts/bootstrap.js +61 -39
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/stylesheets/_bootstrap-grid.scss +3 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +2 -4
- data/assets/stylesheets/_bootstrap.scss +1 -1
- data/assets/stylesheets/bootstrap/_functions.scss +8 -2
- data/assets/stylesheets/bootstrap/_reboot.scss +1 -1
- data/assets/stylesheets/bootstrap/_root.scss +2 -1
- data/assets/stylesheets/bootstrap/_variables.scss +19 -9
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
- 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: b01026d318b10329a0807b13b6468916ce5222500fca7d405495ce2de3455b8d
|
|
4
|
+
data.tar.gz: 194572fec23701c2836ede69479cb76eef1d4360da970c4f14a85a324d69c6d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acfaf27f3e1c37ffb46653dfe31ccc4118b3af7333697144e8caf09eb1d547fb38964d84ac81267c66002d0e7e4331a6c8050d6badcf49e110bfe2c81809ffce
|
|
7
|
+
data.tar.gz: d16647e78c6c10f02ea79b6f4c9b9da567ca67f7d5d9944d60df37b7230a1c0d2232e8d02d2c098f8fabe935909d2ed4de709d8fbe23ed8a7dd8d51e90e23eb2
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap alert.js v5.1.
|
|
2
|
+
* Bootstrap alert.js v5.1.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
|
*/
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* --------------------------------------------------------------------------
|
|
19
|
-
* Bootstrap (v5.1.
|
|
19
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
21
21
|
* --------------------------------------------------------------------------
|
|
22
22
|
*/
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* --------------------------------------------------------------------------
|
|
119
|
-
* Bootstrap (v5.1.
|
|
119
|
+
* Bootstrap (v5.1.1): util/component-functions.js
|
|
120
120
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
121
121
|
* --------------------------------------------------------------------------
|
|
122
122
|
*/
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* --------------------------------------------------------------------------
|
|
145
|
-
* Bootstrap (v5.1.
|
|
145
|
+
* Bootstrap (v5.1.1): alert.js
|
|
146
146
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
147
147
|
* --------------------------------------------------------------------------
|
|
148
148
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap base-component.js v5.1.
|
|
2
|
+
* Bootstrap base-component.js v5.1.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
|
*/
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* --------------------------------------------------------------------------
|
|
19
|
-
* Bootstrap (v5.1.
|
|
19
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
21
21
|
* --------------------------------------------------------------------------
|
|
22
22
|
*/
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* --------------------------------------------------------------------------
|
|
116
|
-
* Bootstrap (v5.1.
|
|
116
|
+
* Bootstrap (v5.1.1): base-component.js
|
|
117
117
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
118
118
|
* --------------------------------------------------------------------------
|
|
119
119
|
*/
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
* ------------------------------------------------------------------------
|
|
124
124
|
*/
|
|
125
125
|
|
|
126
|
-
const VERSION = '5.1.
|
|
126
|
+
const VERSION = '5.1.1';
|
|
127
127
|
|
|
128
128
|
class BaseComponent {
|
|
129
129
|
constructor(element) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap button.js v5.1.
|
|
2
|
+
* Bootstrap button.js v5.1.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
|
*/
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* --------------------------------------------------------------------------
|
|
19
|
-
* Bootstrap (v5.1.
|
|
19
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
20
20
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
21
21
|
* --------------------------------------------------------------------------
|
|
22
22
|
*/
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* --------------------------------------------------------------------------
|
|
74
|
-
* Bootstrap (v5.1.
|
|
74
|
+
* Bootstrap (v5.1.1): button.js
|
|
75
75
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
76
76
|
* --------------------------------------------------------------------------
|
|
77
77
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap carousel.js v5.1.
|
|
2
|
+
* Bootstrap carousel.js v5.1.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
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* --------------------------------------------------------------------------
|
|
21
|
-
* Bootstrap (v5.1.
|
|
21
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
22
22
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
23
23
|
* --------------------------------------------------------------------------
|
|
24
24
|
*/
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* --------------------------------------------------------------------------
|
|
193
|
-
* Bootstrap (v5.1.
|
|
193
|
+
* Bootstrap (v5.1.1): carousel.js
|
|
194
194
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
195
195
|
* --------------------------------------------------------------------------
|
|
196
196
|
*/
|
|
@@ -415,8 +415,12 @@
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
_addTouchEventListeners() {
|
|
418
|
+
const hasPointerPenTouch = event => {
|
|
419
|
+
return this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH);
|
|
420
|
+
};
|
|
421
|
+
|
|
418
422
|
const start = event => {
|
|
419
|
-
if (
|
|
423
|
+
if (hasPointerPenTouch(event)) {
|
|
420
424
|
this.touchStartX = event.clientX;
|
|
421
425
|
} else if (!this._pointerEvent) {
|
|
422
426
|
this.touchStartX = event.touches[0].clientX;
|
|
@@ -429,7 +433,7 @@
|
|
|
429
433
|
};
|
|
430
434
|
|
|
431
435
|
const end = event => {
|
|
432
|
-
if (
|
|
436
|
+
if (hasPointerPenTouch(event)) {
|
|
433
437
|
this.touchDeltaX = event.clientX - this.touchStartX;
|
|
434
438
|
}
|
|
435
439
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap collapse.js v5.1.
|
|
2
|
+
* Bootstrap collapse.js v5.1.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
|
*/
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* --------------------------------------------------------------------------
|
|
22
|
-
* Bootstrap (v5.1.
|
|
22
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
23
23
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
24
24
|
* --------------------------------------------------------------------------
|
|
25
25
|
*/
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* --------------------------------------------------------------------------
|
|
175
|
-
* Bootstrap (v5.1.
|
|
175
|
+
* Bootstrap (v5.1.1): collapse.js
|
|
176
176
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
177
177
|
* --------------------------------------------------------------------------
|
|
178
178
|
*/
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
const CLASS_NAME_HORIZONTAL = 'collapse-horizontal';
|
|
207
207
|
const WIDTH = 'width';
|
|
208
208
|
const HEIGHT = 'height';
|
|
209
|
-
const SELECTOR_ACTIVES = '.show, .collapsing';
|
|
209
|
+
const SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';
|
|
210
210
|
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="collapse"]';
|
|
211
211
|
/**
|
|
212
212
|
* ------------------------------------------------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap data.js v5.1.
|
|
2
|
+
* Bootstrap data.js v5.1.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
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* --------------------------------------------------------------------------
|
|
14
|
-
* Bootstrap (v5.1.
|
|
14
|
+
* Bootstrap (v5.1.1): 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.1.
|
|
2
|
+
* Bootstrap event-handler.js v5.1.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
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* --------------------------------------------------------------------------
|
|
14
|
-
* Bootstrap (v5.1.
|
|
14
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
16
16
|
* --------------------------------------------------------------------------
|
|
17
17
|
*/
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* --------------------------------------------------------------------------
|
|
33
|
-
* Bootstrap (v5.1.
|
|
33
|
+
* Bootstrap (v5.1.1): dom/event-handler.js
|
|
34
34
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
35
35
|
* --------------------------------------------------------------------------
|
|
36
36
|
*/
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
event.delegateTarget = target;
|
|
94
94
|
|
|
95
95
|
if (handler.oneOff) {
|
|
96
|
-
// eslint-disable-next-line unicorn/consistent-destructuring
|
|
97
96
|
EventHandler.off(element, event.type, selector, fn);
|
|
98
97
|
}
|
|
99
98
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap manipulator.js v5.1.
|
|
2
|
+
* Bootstrap manipulator.js v5.1.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
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* --------------------------------------------------------------------------
|
|
14
|
-
* Bootstrap (v5.1.
|
|
14
|
+
* Bootstrap (v5.1.1): 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.1.
|
|
2
|
+
* Bootstrap selector-engine.js v5.1.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
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* --------------------------------------------------------------------------
|
|
14
|
-
* Bootstrap (v5.1.
|
|
14
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
15
15
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
16
16
|
* --------------------------------------------------------------------------
|
|
17
17
|
*/
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* --------------------------------------------------------------------------
|
|
57
|
-
* Bootstrap (v5.1.
|
|
57
|
+
* Bootstrap (v5.1.1): dom/selector-engine.js
|
|
58
58
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
59
59
|
* --------------------------------------------------------------------------
|
|
60
60
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap dropdown.js v5.1.
|
|
2
|
+
* Bootstrap dropdown.js v5.1.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
|
*/
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* --------------------------------------------------------------------------
|
|
42
|
-
* Bootstrap (v5.1.
|
|
42
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
43
43
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
44
44
|
* --------------------------------------------------------------------------
|
|
45
45
|
*/
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* --------------------------------------------------------------------------
|
|
226
|
-
* Bootstrap (v5.1.
|
|
226
|
+
* Bootstrap (v5.1.1): dropdown.js
|
|
227
227
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
228
228
|
* --------------------------------------------------------------------------
|
|
229
229
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap modal.js v5.1.
|
|
2
|
+
* Bootstrap modal.js v5.1.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
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* --------------------------------------------------------------------------
|
|
21
|
-
* Bootstrap (v5.1.
|
|
21
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
22
22
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
23
23
|
* --------------------------------------------------------------------------
|
|
24
24
|
*/
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* --------------------------------------------------------------------------
|
|
255
|
-
* Bootstrap (v5.1.
|
|
255
|
+
* Bootstrap (v5.1.1): util/scrollBar.js
|
|
256
256
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
257
257
|
* --------------------------------------------------------------------------
|
|
258
258
|
*/
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* --------------------------------------------------------------------------
|
|
359
|
-
* Bootstrap (v5.1.
|
|
359
|
+
* Bootstrap (v5.1.1): util/backdrop.js
|
|
360
360
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
361
361
|
* --------------------------------------------------------------------------
|
|
362
362
|
*/
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
|
|
481
481
|
/**
|
|
482
482
|
* --------------------------------------------------------------------------
|
|
483
|
-
* Bootstrap (v5.1.
|
|
483
|
+
* Bootstrap (v5.1.1): util/focustrap.js
|
|
484
484
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
485
485
|
* --------------------------------------------------------------------------
|
|
486
486
|
*/
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* --------------------------------------------------------------------------
|
|
586
|
-
* Bootstrap (v5.1.
|
|
586
|
+
* Bootstrap (v5.1.1): util/component-functions.js
|
|
587
587
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
588
588
|
* --------------------------------------------------------------------------
|
|
589
589
|
*/
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
|
|
610
610
|
/**
|
|
611
611
|
* --------------------------------------------------------------------------
|
|
612
|
-
* Bootstrap (v5.1.
|
|
612
|
+
* Bootstrap (v5.1.1): modal.js
|
|
613
613
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
614
614
|
* --------------------------------------------------------------------------
|
|
615
615
|
*/
|
|
@@ -649,6 +649,7 @@
|
|
|
649
649
|
const CLASS_NAME_FADE = 'fade';
|
|
650
650
|
const CLASS_NAME_SHOW = 'show';
|
|
651
651
|
const CLASS_NAME_STATIC = 'modal-static';
|
|
652
|
+
const OPEN_SELECTOR = '.modal.show';
|
|
652
653
|
const SELECTOR_DIALOG = '.modal-dialog';
|
|
653
654
|
const SELECTOR_MODAL_BODY = '.modal-body';
|
|
654
655
|
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="modal"]';
|
|
@@ -1014,7 +1015,14 @@
|
|
|
1014
1015
|
this.focus();
|
|
1015
1016
|
}
|
|
1016
1017
|
});
|
|
1017
|
-
});
|
|
1018
|
+
}); // avoid conflict when clicking moddal toggler while another one is open
|
|
1019
|
+
|
|
1020
|
+
const allReadyOpen = SelectorEngine__default['default'].findOne(OPEN_SELECTOR);
|
|
1021
|
+
|
|
1022
|
+
if (allReadyOpen) {
|
|
1023
|
+
Modal.getInstance(allReadyOpen).hide();
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1018
1026
|
const data = Modal.getOrCreateInstance(target);
|
|
1019
1027
|
data.toggle(this);
|
|
1020
1028
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap offcanvas.js v5.1.
|
|
2
|
+
* Bootstrap offcanvas.js v5.1.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
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* --------------------------------------------------------------------------
|
|
21
|
-
* Bootstrap (v5.1.
|
|
21
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
22
22
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
23
23
|
* --------------------------------------------------------------------------
|
|
24
24
|
*/
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* --------------------------------------------------------------------------
|
|
253
|
-
* Bootstrap (v5.1.
|
|
253
|
+
* Bootstrap (v5.1.1): util/scrollBar.js
|
|
254
254
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
255
255
|
* --------------------------------------------------------------------------
|
|
256
256
|
*/
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
|
|
355
355
|
/**
|
|
356
356
|
* --------------------------------------------------------------------------
|
|
357
|
-
* Bootstrap (v5.1.
|
|
357
|
+
* Bootstrap (v5.1.1): util/backdrop.js
|
|
358
358
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
359
359
|
* --------------------------------------------------------------------------
|
|
360
360
|
*/
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* --------------------------------------------------------------------------
|
|
481
|
-
* Bootstrap (v5.1.
|
|
481
|
+
* Bootstrap (v5.1.1): util/focustrap.js
|
|
482
482
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
483
483
|
* --------------------------------------------------------------------------
|
|
484
484
|
*/
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* --------------------------------------------------------------------------
|
|
584
|
-
* Bootstrap (v5.1.
|
|
584
|
+
* Bootstrap (v5.1.1): util/component-functions.js
|
|
585
585
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
586
586
|
* --------------------------------------------------------------------------
|
|
587
587
|
*/
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
|
|
608
608
|
/**
|
|
609
609
|
* --------------------------------------------------------------------------
|
|
610
|
-
* Bootstrap (v5.1.
|
|
610
|
+
* Bootstrap (v5.1.1): offcanvas.js
|
|
611
611
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
612
612
|
* --------------------------------------------------------------------------
|
|
613
613
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap popover.js v5.1.
|
|
2
|
+
* Bootstrap popover.js v5.1.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
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* --------------------------------------------------------------------------
|
|
18
|
-
* Bootstrap (v5.1.
|
|
18
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
19
19
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
20
20
|
* --------------------------------------------------------------------------
|
|
21
21
|
*/
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* --------------------------------------------------------------------------
|
|
73
|
-
* Bootstrap (v5.1.
|
|
73
|
+
* Bootstrap (v5.1.1): popover.js
|
|
74
74
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
75
75
|
* --------------------------------------------------------------------------
|
|
76
76
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap scrollspy.js v5.1.
|
|
2
|
+
* Bootstrap scrollspy.js v5.1.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
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* --------------------------------------------------------------------------
|
|
21
|
-
* Bootstrap (v5.1.
|
|
21
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
22
22
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
23
23
|
* --------------------------------------------------------------------------
|
|
24
24
|
*/
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* --------------------------------------------------------------------------
|
|
155
|
-
* Bootstrap (v5.1.
|
|
155
|
+
* Bootstrap (v5.1.1): scrollspy.js
|
|
156
156
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
157
157
|
* --------------------------------------------------------------------------
|
|
158
158
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap tab.js v5.1.
|
|
2
|
+
* Bootstrap tab.js v5.1.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
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* --------------------------------------------------------------------------
|
|
20
|
-
* Bootstrap (v5.1.
|
|
20
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
22
22
|
* --------------------------------------------------------------------------
|
|
23
23
|
*/
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* --------------------------------------------------------------------------
|
|
134
|
-
* Bootstrap (v5.1.
|
|
134
|
+
* Bootstrap (v5.1.1): tab.js
|
|
135
135
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
136
136
|
* --------------------------------------------------------------------------
|
|
137
137
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap toast.js v5.1.
|
|
2
|
+
* Bootstrap toast.js v5.1.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
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* --------------------------------------------------------------------------
|
|
20
|
-
* Bootstrap (v5.1.
|
|
20
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
21
21
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
22
22
|
* --------------------------------------------------------------------------
|
|
23
23
|
*/
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* --------------------------------------------------------------------------
|
|
166
|
-
* Bootstrap (v5.1.
|
|
166
|
+
* Bootstrap (v5.1.1): util/component-functions.js
|
|
167
167
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
168
168
|
* --------------------------------------------------------------------------
|
|
169
169
|
*/
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* --------------------------------------------------------------------------
|
|
192
|
-
* Bootstrap (v5.1.
|
|
192
|
+
* Bootstrap (v5.1.1): toast.js
|
|
193
193
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
194
194
|
* --------------------------------------------------------------------------
|
|
195
195
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap tooltip.js v5.1.
|
|
2
|
+
* Bootstrap tooltip.js v5.1.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
|
*/
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* --------------------------------------------------------------------------
|
|
43
|
-
* Bootstrap (v5.1.
|
|
43
|
+
* Bootstrap (v5.1.1): util/index.js
|
|
44
44
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
45
45
|
* --------------------------------------------------------------------------
|
|
46
46
|
*/
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* --------------------------------------------------------------------------
|
|
185
|
-
* Bootstrap (v5.1.
|
|
185
|
+
* Bootstrap (v5.1.1): util/sanitizer.js
|
|
186
186
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
187
187
|
* --------------------------------------------------------------------------
|
|
188
188
|
*/
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* --------------------------------------------------------------------------
|
|
298
|
-
* Bootstrap (v5.1.
|
|
298
|
+
* Bootstrap (v5.1.1): tooltip.js
|
|
299
299
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
300
300
|
* --------------------------------------------------------------------------
|
|
301
301
|
*/
|
|
@@ -469,9 +469,7 @@
|
|
|
469
469
|
this.tip.remove();
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
|
|
473
|
-
this._popper.destroy();
|
|
474
|
-
}
|
|
472
|
+
this._disposePopper();
|
|
475
473
|
|
|
476
474
|
super.dispose();
|
|
477
475
|
}
|
|
@@ -491,6 +489,15 @@
|
|
|
491
489
|
|
|
492
490
|
if (showEvent.defaultPrevented || !isInTheDom) {
|
|
493
491
|
return;
|
|
492
|
+
} // A trick to recreate a tooltip in case a new title is given by using the NOT documented `data-bs-original-title`
|
|
493
|
+
// This will be removed later in favor of a `setContent` method
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
if (this.constructor.NAME === 'tooltip' && this.tip && this.getTitle() !== this.tip.querySelector(SELECTOR_TOOLTIP_INNER).innerHTML) {
|
|
497
|
+
this._disposePopper();
|
|
498
|
+
|
|
499
|
+
this.tip.remove();
|
|
500
|
+
this.tip = null;
|
|
494
501
|
}
|
|
495
502
|
|
|
496
503
|
const tip = this.getTipElement();
|
|
@@ -580,11 +587,7 @@
|
|
|
580
587
|
|
|
581
588
|
EventHandler__default['default'].trigger(this._element, this.constructor.Event.HIDDEN);
|
|
582
589
|
|
|
583
|
-
|
|
584
|
-
this._popper.destroy();
|
|
585
|
-
|
|
586
|
-
this._popper = null;
|
|
587
|
-
}
|
|
590
|
+
this._disposePopper();
|
|
588
591
|
};
|
|
589
592
|
|
|
590
593
|
const hideEvent = EventHandler__default['default'].trigger(this._element, this.constructor.Event.HIDE);
|
|
@@ -964,6 +967,14 @@
|
|
|
964
967
|
this._cleanTipClass();
|
|
965
968
|
|
|
966
969
|
this._addAttachmentClass(this._getAttachment(state.placement));
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
_disposePopper() {
|
|
973
|
+
if (this._popper) {
|
|
974
|
+
this._popper.destroy();
|
|
975
|
+
|
|
976
|
+
this._popper = null;
|
|
977
|
+
}
|
|
967
978
|
} // Static
|
|
968
979
|
|
|
969
980
|
|