bootstrap 5.3.2 → 5.3.4
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/CHANGELOG.md +9 -0
- data/README.md +7 -10
- data/Rakefile +12 -10
- 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 +3 -3
- data/assets/javascripts/bootstrap/dom/selector-engine.js +4 -4
- data/assets/javascripts/bootstrap/dropdown.js +4 -4
- data/assets/javascripts/bootstrap/modal.js +2 -2
- 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 +2 -2
- data/assets/javascripts/bootstrap/toast.js +2 -2
- data/assets/javascripts/bootstrap/tooltip.js +5 -6
- data/assets/javascripts/bootstrap/util/backdrop.js +2 -3
- 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 -3
- data/assets/javascripts/bootstrap/util/index.js +4 -5
- data/assets/javascripts/bootstrap/util/sanitizer.js +5 -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 +3 -3
- data/assets/javascripts/bootstrap-sprockets.js +9 -9
- data/assets/javascripts/bootstrap.js +17 -18
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/stylesheets/bootstrap/_accordion.scss +10 -15
- data/assets/stylesheets/bootstrap/_button-group.scss +8 -3
- data/assets/stylesheets/bootstrap/_buttons.scss +9 -0
- data/assets/stylesheets/bootstrap/_card.scss +1 -2
- data/assets/stylesheets/bootstrap/_carousel.scss +17 -35
- data/assets/stylesheets/bootstrap/_close.scss +9 -6
- data/assets/stylesheets/bootstrap/_functions.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +27 -25
- data/assets/stylesheets/bootstrap/_modal.scss +6 -3
- data/assets/stylesheets/bootstrap/_nav.scss +1 -1
- data/assets/stylesheets/bootstrap/_navbar.scss +1 -1
- data/assets/stylesheets/bootstrap/_offcanvas.scss +2 -1
- data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
- data/assets/stylesheets/bootstrap/_progress.scss +1 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +1 -1
- data/assets/stylesheets/bootstrap/_tables.scss +1 -1
- data/assets/stylesheets/bootstrap/_type.scss +1 -1
- data/assets/stylesheets/bootstrap/_variables-dark.scss +17 -2
- data/assets/stylesheets/bootstrap/_variables.scss +21 -15
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +18 -16
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +1 -1
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_banner.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +12 -2
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +1 -1
- data/bootstrap.gemspec +0 -1
- data/lib/bootstrap/engine.rb +13 -4
- data/lib/bootstrap/version.rb +2 -2
- data/test/dummy_rails/config/application.rb +0 -2
- data/test/dummy_rails/public/favicon.ico +0 -0
- data/test/gemfiles/rails_4_2.gemfile +1 -0
- data/test/gemfiles/rails_5_0.gemfile +0 -1
- data/test/gemfiles/rails_5_1.gemfile +0 -1
- data/test/gemfiles/rails_5_2.gemfile +0 -1
- data/test/gemfiles/rails_6_0.gemfile +0 -1
- data/test/gemfiles/rails_6_1.gemfile +0 -1
- data/test/gemfiles/rails_7_0_dartsass.gemfile +0 -1
- data/test/gemfiles/rails_7_0_sassc.gemfile +0 -1
- data/test/rails_test.rb +0 -5
- data/test/test_helper.rb +2 -2
- metadata +5 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08ff56e2eb43cfee48174942e7bfad683b471d95020efb8038400faecb12e2e5'
|
4
|
+
data.tar.gz: 630e11e1656379ba22bda47f1d93c67d60a91b8c4c6ba13cc738469acc2904cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d8b99d95b107da58b08cf007927d8ca563e59639b758ae63d06963944f3a32b28fadada66b65b26f5920f88dd05c237f9e3d6713c49dcd6631f022e9f1d5e9c
|
7
|
+
data.tar.gz: 543bd7314c292ce9bc17c3fbb662a6ec0a5c922b474e5fa1d7f5dc7bce036584ec874adbe7ecb4d3b9c8fb0dcbc845fdd104ea3f38cb6e3b3a718496f9aa47aa
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,15 @@ The changelog only includes changes specific to the RubyGem.
|
|
6
6
|
The Bootstrap framework changes can be found in [the Releases section of twbs/bootstrap](https://github.com/twbs/bootstrap/releases).
|
7
7
|
Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release of Bootstrap.
|
8
8
|
|
9
|
+
# 5.3.4
|
10
|
+
|
11
|
+
* Autoprefixer is now optional.
|
12
|
+
[#283](https://github.com/twbs/bootstrap-rubygem/pull/283)
|
13
|
+
|
14
|
+
# 5.3.3
|
15
|
+
|
16
|
+
* Adds support for other Sass engines: dartsass-sprockets, dartsass-rails, and cssbundling-rails.
|
17
|
+
|
9
18
|
# 4.2.1
|
10
19
|
|
11
20
|
* Bootstrap rubygem now depends on SassC instead of Sass.
|
data/README.md
CHANGED
@@ -21,15 +21,20 @@ 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.3.
|
24
|
+
gem 'bootstrap', '~> 5.3.3'
|
25
25
|
```
|
26
26
|
|
27
|
-
This gem requires a Sass engine, so make sure you have **one** of these
|
27
|
+
This gem requires a Sass engine, so make sure you have **one** of these gems in your Gemfile:
|
28
28
|
- [`dartsass-sprockets`](https://github.com/tablecheck/dartsass-sprockets): Dart Sass engine, recommended but only works for Ruby 2.6+ and Rails 5+
|
29
|
+
- [`dartsass-rails`](https://github.com/rails/dartsass-rails): Dart Sass engine, recommended for Rails projects that use Propshaft
|
30
|
+
- [`cssbundling-rails`](https://github.com/rails/cssbundling-rails): External Sass engine
|
29
31
|
- [`sassc-rails`](https://github.com/sass/sassc-rails): SassC engine, deprecated but compatible with Ruby 2.3+ and Rails 4
|
30
32
|
|
31
33
|
Also ensure that `sprockets-rails` is at least v2.3.2.
|
32
34
|
|
35
|
+
For wider browser compatibility, use [Autoprefixer][autoprefixer].
|
36
|
+
If you are using Rails, add the `autoprefixer-rails` gem to your app and ensure you have a JavaScript runtime (e.g. NodeJS).
|
37
|
+
|
33
38
|
`bundle install` and restart your server to make the files available through the pipeline.
|
34
39
|
|
35
40
|
Import Bootstrap styles in `app/assets/stylesheets/application.scss`:
|
@@ -111,14 +116,6 @@ Refer to your framework's documentation on the subject.
|
|
111
116
|
|
112
117
|
## Configuration
|
113
118
|
|
114
|
-
### Sass: Autoprefixer
|
115
|
-
|
116
|
-
Bootstrap requires the use of [Autoprefixer][autoprefixer].
|
117
|
-
[Autoprefixer][autoprefixer] adds vendor prefixes to CSS rules using values from [Can I Use](http://caniuse.com/).
|
118
|
-
|
119
|
-
If you are using bootstrap with Rails, autoprefixer is set up for you automatically.
|
120
|
-
Otherwise, please consult the [Autoprefixer documentation][autoprefixer].
|
121
|
-
|
122
119
|
### Sass: Individual components
|
123
120
|
|
124
121
|
By default all of Bootstrap is imported.
|
data/Rakefile
CHANGED
@@ -47,23 +47,25 @@ end
|
|
47
47
|
desc 'Dumps output to a CSS file for testing'
|
48
48
|
task :debug do
|
49
49
|
begin
|
50
|
-
require '
|
50
|
+
require 'sass-embedded'
|
51
51
|
rescue LoadError
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
begin
|
53
|
+
require 'sassc'
|
54
|
+
rescue LoadError
|
55
|
+
raise LoadError.new("bootstrap-rubygem requires a Sass engine. Please add dartsass-sprockets or sassc-rails to your dependencies.")
|
56
|
+
end
|
55
57
|
end
|
56
58
|
require './lib/bootstrap'
|
57
59
|
require 'term/ansicolor'
|
58
|
-
require 'autoprefixer-rails'
|
59
60
|
path = Bootstrap.stylesheets_path
|
60
61
|
%w(_bootstrap _bootstrap-reboot _bootstrap-grid).each do |file|
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
filename = "#{path}/#{file}.scss"
|
63
|
+
css = if defined?(SassC::Engine)
|
64
|
+
SassC::Engine.new(File.read(filename), filename: filename, syntax: :scss).render
|
65
|
+
else
|
66
|
+
Sass.compile(filename).css
|
67
|
+
end
|
64
68
|
out = File.join('tmp', "#{file[1..-1]}.css")
|
65
|
-
css = engine.render
|
66
|
-
css = AutoprefixerRails.process(css)
|
67
69
|
File.write(out, css)
|
68
70
|
$stderr.puts Term::ANSIColor.green "Compiled #{out}"
|
69
71
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap alert.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap alert.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap base-component.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap base-component.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -21,7 +21,7 @@
|
|
21
21
|
* Constants
|
22
22
|
*/
|
23
23
|
|
24
|
-
const VERSION = '5.3.
|
24
|
+
const VERSION = '5.3.4';
|
25
25
|
|
26
26
|
/**
|
27
27
|
* Class definition
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap button.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap button.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap carousel.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap carousel.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap collapse.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap collapse.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap data.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap data.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap event-handler.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap event-handler.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap manipulator.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap manipulator.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -56,7 +56,7 @@
|
|
56
56
|
const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
|
57
57
|
for (const key of bsKeys) {
|
58
58
|
let pureKey = key.replace(/^bs/, '');
|
59
|
-
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1
|
59
|
+
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1);
|
60
60
|
attributes[pureKey] = normalizeData(element.dataset[key]);
|
61
61
|
}
|
62
62
|
return attributes;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap selector-engine.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap selector-engine.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -33,9 +33,9 @@
|
|
33
33
|
if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {
|
34
34
|
hrefAttribute = `#${hrefAttribute.split('#')[1]}`;
|
35
35
|
}
|
36
|
-
selector = hrefAttribute && hrefAttribute !== '#' ?
|
36
|
+
selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null;
|
37
37
|
}
|
38
|
-
return selector;
|
38
|
+
return selector ? selector.split(',').map(sel => index_js.parseSelector(sel)).join(',') : null;
|
39
39
|
};
|
40
40
|
const SelectorEngine = {
|
41
41
|
find(selector, element = document.documentElement) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap dropdown.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap dropdown.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -206,7 +206,7 @@
|
|
206
206
|
}
|
207
207
|
_createPopper() {
|
208
208
|
if (typeof Popper__namespace === 'undefined') {
|
209
|
-
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
209
|
+
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)');
|
210
210
|
}
|
211
211
|
let referenceElement = this._element;
|
212
212
|
if (this._config.reference === 'parent') {
|
@@ -285,7 +285,7 @@
|
|
285
285
|
}
|
286
286
|
return {
|
287
287
|
...defaultBsPopperConfig,
|
288
|
-
...index_js.execute(this._config.popperConfig, [defaultBsPopperConfig])
|
288
|
+
...index_js.execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
289
289
|
};
|
290
290
|
}
|
291
291
|
_selectMenuItem({
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap modal.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap modal.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap offcanvas.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap offcanvas.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap popover.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap popover.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap scrollspy.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap scrollspy.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap tab.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap tab.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap toast.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap toast.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap tooltip.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap tooltip.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -115,7 +115,7 @@
|
|
115
115
|
class Tooltip extends BaseComponent {
|
116
116
|
constructor(element, config) {
|
117
117
|
if (typeof Popper__namespace === 'undefined') {
|
118
|
-
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
118
|
+
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)');
|
119
119
|
}
|
120
120
|
super(element, config);
|
121
121
|
|
@@ -161,7 +161,6 @@
|
|
161
161
|
if (!this._isEnabled) {
|
162
162
|
return;
|
163
163
|
}
|
164
|
-
this._activeTrigger.click = !this._activeTrigger.click;
|
165
164
|
if (this._isShown()) {
|
166
165
|
this._leave();
|
167
166
|
return;
|
@@ -349,7 +348,7 @@
|
|
349
348
|
return offset;
|
350
349
|
}
|
351
350
|
_resolvePossibleFunction(arg) {
|
352
|
-
return index_js.execute(arg, [this._element]);
|
351
|
+
return index_js.execute(arg, [this._element, this._element]);
|
353
352
|
}
|
354
353
|
_getPopperConfig(attachment) {
|
355
354
|
const defaultBsPopperConfig = {
|
@@ -387,7 +386,7 @@
|
|
387
386
|
};
|
388
387
|
return {
|
389
388
|
...defaultBsPopperConfig,
|
390
|
-
...index_js.execute(this._config.popperConfig, [defaultBsPopperConfig])
|
389
|
+
...index_js.execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
391
390
|
};
|
392
391
|
}
|
393
392
|
_setListeners() {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap backdrop.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap backdrop.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -33,7 +33,6 @@
|
|
33
33
|
// if false, we use the backdrop helper without adding any element to the dom
|
34
34
|
rootElement: 'body' // give the choice to place backdrop under different elements
|
35
35
|
};
|
36
|
-
|
37
36
|
const DefaultType = {
|
38
37
|
className: 'string',
|
39
38
|
clickCallback: '(function|null)',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap component-functions.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap component-functions.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap config.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap config.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap focustrap.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap focustrap.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -33,7 +33,6 @@
|
|
33
33
|
autofocus: true,
|
34
34
|
trapElement: null // The element to trap focus inside of
|
35
35
|
};
|
36
|
-
|
37
36
|
const DefaultType = {
|
38
37
|
autofocus: 'boolean',
|
39
38
|
trapElement: 'element'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap index.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap index.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -157,12 +157,11 @@
|
|
157
157
|
* @param {HTMLElement} element
|
158
158
|
* @return void
|
159
159
|
*
|
160
|
-
* @see https://www.
|
160
|
+
* @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
|
161
161
|
*/
|
162
162
|
const reflow = element => {
|
163
163
|
element.offsetHeight; // eslint-disable-line no-unused-expressions
|
164
164
|
};
|
165
|
-
|
166
165
|
const getjQuery = () => {
|
167
166
|
if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
168
167
|
return window.jQuery;
|
@@ -203,7 +202,7 @@
|
|
203
202
|
});
|
204
203
|
};
|
205
204
|
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
|
206
|
-
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
|
205
|
+
return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue;
|
207
206
|
};
|
208
207
|
const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
|
209
208
|
if (!waitForTransition) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap sanitizer.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap sanitizer.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -27,7 +27,10 @@
|
|
27
27
|
br: [],
|
28
28
|
col: [],
|
29
29
|
code: [],
|
30
|
+
dd: [],
|
30
31
|
div: [],
|
32
|
+
dl: [],
|
33
|
+
dt: [],
|
31
34
|
em: [],
|
32
35
|
hr: [],
|
33
36
|
h1: [],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap scrollbar.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap scrollbar.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap swipe.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap swipe.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap template-factory.js v5.3.
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap template-factory.js v5.3.4 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2025 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
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -133,7 +133,7 @@
|
|
133
133
|
return this._config.sanitize ? sanitizer_js.sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
|
134
134
|
}
|
135
135
|
_resolvePossibleFunction(arg) {
|
136
|
-
return index_js.execute(arg, [this]);
|
136
|
+
return index_js.execute(arg, [undefined, this]);
|
137
137
|
}
|
138
138
|
_putElementInTemplate(element, templateElement) {
|
139
139
|
if (this._config.html) {
|
@@ -6,23 +6,23 @@
|
|
6
6
|
//= require ./bootstrap/util/config
|
7
7
|
//= require ./bootstrap/base-component
|
8
8
|
//= require ./bootstrap/dom/selector-engine
|
9
|
-
//= require ./bootstrap/collapse
|
10
|
-
//= require ./bootstrap/util/sanitizer
|
11
9
|
//= require ./bootstrap/util/backdrop
|
12
|
-
//= require ./bootstrap/util/scrollbar
|
13
10
|
//= require ./bootstrap/util/component-functions
|
14
11
|
//= require ./bootstrap/util/focustrap
|
12
|
+
//= require ./bootstrap/util/scrollbar
|
15
13
|
//= require ./bootstrap/modal
|
14
|
+
//= require ./bootstrap/scrollspy
|
15
|
+
//= require ./bootstrap/button
|
16
|
+
//= require ./bootstrap/alert
|
17
|
+
//= require ./bootstrap/util/sanitizer
|
16
18
|
//= require ./bootstrap/util/template-factory
|
17
19
|
//= require ./bootstrap/tooltip
|
20
|
+
//= require ./bootstrap/popover
|
21
|
+
//= require ./bootstrap/collapse
|
18
22
|
//= require ./bootstrap/offcanvas
|
23
|
+
//= require ./bootstrap/dropdown
|
19
24
|
//= require ./bootstrap/util/swipe
|
25
|
+
//= require ./bootstrap/carousel
|
20
26
|
//= require ./bootstrap/toast
|
21
|
-
//= require ./bootstrap/button
|
22
|
-
//= require ./bootstrap/alert
|
23
|
-
//= require ./bootstrap/popover
|
24
|
-
//= require ./bootstrap/scrollspy
|
25
|
-
//= require ./bootstrap/dropdown
|
26
27
|
//= require ./bootstrap/tab
|
27
|
-
//= require ./bootstrap/carousel
|
28
28
|
//= require ./bootstrap-global-this-undefine
|