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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap/alert.js +2 -2
  4. data/assets/javascripts/bootstrap/base-component.js +3 -3
  5. data/assets/javascripts/bootstrap/button.js +2 -2
  6. data/assets/javascripts/bootstrap/carousel.js +2 -2
  7. data/assets/javascripts/bootstrap/collapse.js +2 -2
  8. data/assets/javascripts/bootstrap/dom/data.js +2 -2
  9. data/assets/javascripts/bootstrap/dom/event-handler.js +2 -2
  10. data/assets/javascripts/bootstrap/dom/manipulator.js +2 -2
  11. data/assets/javascripts/bootstrap/dom/selector-engine.js +2 -2
  12. data/assets/javascripts/bootstrap/dropdown.js +4 -4
  13. data/assets/javascripts/bootstrap/modal.js +4 -4
  14. data/assets/javascripts/bootstrap/offcanvas.js +2 -2
  15. data/assets/javascripts/bootstrap/popover.js +2 -2
  16. data/assets/javascripts/bootstrap/scrollspy.js +2 -2
  17. data/assets/javascripts/bootstrap/tab.js +5 -5
  18. data/assets/javascripts/bootstrap/toast.js +10 -6
  19. data/assets/javascripts/bootstrap/tooltip.js +24 -34
  20. data/assets/javascripts/bootstrap/util/backdrop.js +2 -2
  21. data/assets/javascripts/bootstrap/util/component-functions.js +2 -2
  22. data/assets/javascripts/bootstrap/util/config.js +2 -2
  23. data/assets/javascripts/bootstrap/util/focustrap.js +2 -2
  24. data/assets/javascripts/bootstrap/util/index.js +2 -2
  25. data/assets/javascripts/bootstrap/util/sanitizer.js +2 -2
  26. data/assets/javascripts/bootstrap/util/scrollbar.js +2 -2
  27. data/assets/javascripts/bootstrap/util/swipe.js +2 -2
  28. data/assets/javascripts/bootstrap/util/template-factory.js +2 -2
  29. data/assets/javascripts/bootstrap-sprockets.js +10 -10
  30. data/assets/javascripts/bootstrap.js +66 -72
  31. data/assets/javascripts/bootstrap.min.js +2 -2
  32. data/assets/stylesheets/bootstrap/_buttons.scss +8 -2
  33. data/assets/stylesheets/bootstrap/_toasts.scss +2 -0
  34. data/assets/stylesheets/bootstrap/_variables.scss +1 -1
  35. data/assets/stylesheets/bootstrap/mixins/_banner.scss +1 -1
  36. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +2 -2
  37. data/lib/bootstrap/version.rb +2 -2
  38. data/tasks/updater.rb +2 -2
  39. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35584b903c24d5444ccbcc115e69da218717c9ba4203ddcb127a035e9eefe6b3
4
- data.tar.gz: fa22a6ec7eb6d3d3f96cffb07665efcdf33073e4c7bc7e1ea66ca285a5f228a4
3
+ metadata.gz: a293b6bb0f077b3634982eeed77c89bfc3631f890f3df2027ddc45ceab3b18a5
4
+ data.tar.gz: d8fd6730b835bbe608e62d26359b7530a52cbadbccbe7d3589b895ac37944f79
5
5
  SHA512:
6
- metadata.gz: 89f3ba0eae753449d28a1df745dd115a74f1be60369569810a51534ed7febf8ca606d2397904cd17d01010572670fc198417b9e3038e03363ec852b51bffb9ad
7
- data.tar.gz: 8b181219cb0f2758ad9e98bf5aa5980a41f215ec711d7f987416bd3dd035f3bc2ed7659016dab35a4099b5eef2bb744893723b4103320e9f730c1f748c6811ee
6
+ metadata.gz: 6fcbeba2892da722b611946a283a166fa57cc44f80e0ccb8096f903e0d0e9f5d5dd69fbead50e819ce35184a62cb9df29d7aceb59bc215b90e75c8020fde1516
7
+ data.tar.gz: 8931244575e0476fba2ea27f1d7524043755a2237035abfd6aa1af5fe9da64001f826350f0631d9a7b9164091c4d766b8c0aa80f6d85ee78b8384b03b6b141a8
data/README.md CHANGED
@@ -21,7 +21,7 @@ Please see the appropriate guide for your environment of choice:
21
21
  Add `bootstrap` to your Gemfile:
22
22
 
23
23
  ```ruby
24
- gem 'bootstrap', '~> 5.2.1'
24
+ gem 'bootstrap', '~> 5.2.2'
25
25
  ```
26
26
 
27
27
  Ensure that `sprockets-rails` is at least v2.3.2.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap alert.js v5.2.1 (https://getbootstrap.com/)
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.1): alert.js
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.1 (https://getbootstrap.com/)
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.1): base-component.js
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.1';
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.1 (https://getbootstrap.com/)
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.1): button.js
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.1 (https://getbootstrap.com/)
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.1): carousel.js
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.1 (https://getbootstrap.com/)
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.1): collapse.js
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.1 (https://getbootstrap.com/)
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.1): dom/data.js
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.1 (https://getbootstrap.com/)
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.1): dom/event-handler.js
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.1 (https://getbootstrap.com/)
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.1): dom/manipulator.js
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.1 (https://getbootstrap.com/)
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.1): dom/selector-engine.js
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.1 (https://getbootstrap.com/)
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.1): dropdown.js
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.1 (https://getbootstrap.com/)
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.1): modal.js
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
- // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
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.1 (https://getbootstrap.com/)
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.1): offcanvas.js
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.1 (https://getbootstrap.com/)
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.1): popover.js
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.1 (https://getbootstrap.com/)
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.1): scrollspy.js
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.1 (https://getbootstrap.com/)
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.1): tab.js
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.1 (https://getbootstrap.com/)
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.1): toast.js
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
- this._hasMouseInteraction = isInteracting;
171
- break;
170
+ {
171
+ this._hasMouseInteraction = isInteracting;
172
+ break;
173
+ }
172
174
 
173
175
  case 'focusin':
174
176
  case 'focusout':
175
- this._hasKeyboardInteraction = isInteracting;
176
- break;
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.1 (https://getbootstrap.com/)
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.1): tooltip.js
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(event) {
170
+ toggle() {
167
171
  if (!this._isEnabled) {
168
172
  return;
169
173
  }
170
174
 
171
- if (event) {
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._config.originalTitle) {
203
- this._element.setAttribute('title', this._config.originalTitle);
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._config.originalTitle;
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 => this.toggle(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._config.originalTitle;
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
- } // In the future can be replaced with:
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.1 (https://getbootstrap.com/)
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.1): util/backdrop.js
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.1 (https://getbootstrap.com/)
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.1): util/component-functions.js
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.1 (https://getbootstrap.com/)
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.1): util/config.js
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.1 (https://getbootstrap.com/)
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.1): util/focustrap.js
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.1 (https://getbootstrap.com/)
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.1): util/index.js
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.1 (https://getbootstrap.com/)
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.1): util/sanitizer.js
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.1 (https://getbootstrap.com/)
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.1): util/scrollBar.js
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
  */