bootstrap 4.3.0 → 5.0.0.alpha1
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/.travis.yml +15 -1
- data/CHANGELOG.md +2 -14
- data/README.md +1 -1
- data/assets/javascripts/bootstrap-sprockets.js +5 -1
- data/assets/javascripts/bootstrap.js +2292 -1514
- data/assets/javascripts/bootstrap.min.js +4 -4
- data/assets/javascripts/bootstrap/alert.js +148 -85
- data/assets/javascripts/bootstrap/button.js +69 -110
- data/assets/javascripts/bootstrap/carousel.js +320 -239
- data/assets/javascripts/bootstrap/collapse.js +300 -177
- data/assets/javascripts/bootstrap/dom/data.js +81 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +311 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +100 -0
- data/assets/javascripts/bootstrap/dom/polyfill.js +110 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
- data/assets/javascripts/bootstrap/dropdown.js +282 -265
- data/assets/javascripts/bootstrap/modal.js +348 -231
- data/assets/javascripts/bootstrap/popover.js +80 -105
- data/assets/javascripts/bootstrap/scrollspy.js +173 -138
- data/assets/javascripts/bootstrap/tab.js +180 -115
- data/assets/javascripts/bootstrap/toast.js +188 -132
- data/assets/javascripts/bootstrap/tooltip.js +508 -230
- data/assets/stylesheets/_bootstrap-grid.scss +54 -18
- data/assets/stylesheets/_bootstrap-reboot.scss +7 -4
- data/assets/stylesheets/_bootstrap.scss +17 -11
- data/assets/stylesheets/bootstrap/_alert.scss +3 -3
- data/assets/stylesheets/bootstrap/_badge.scss +2 -27
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +7 -18
- data/assets/stylesheets/bootstrap/_button-group.scss +16 -38
- data/assets/stylesheets/bootstrap/_buttons.scss +26 -39
- data/assets/stylesheets/bootstrap/_card.scss +48 -97
- data/assets/stylesheets/bootstrap/_carousel.scss +16 -18
- data/assets/stylesheets/bootstrap/_close.scss +9 -14
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +13 -9
- data/assets/stylesheets/bootstrap/_forms.scss +9 -330
- data/assets/stylesheets/bootstrap/_functions.scss +141 -24
- data/assets/stylesheets/bootstrap/_grid.scss +4 -34
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_images.scss +2 -2
- data/assets/stylesheets/bootstrap/_list-group.scss +41 -33
- data/assets/stylesheets/bootstrap/_mixins.scss +9 -15
- data/assets/stylesheets/bootstrap/_modal.scss +54 -48
- data/assets/stylesheets/bootstrap/_nav.scss +12 -9
- data/assets/stylesheets/bootstrap/_navbar.scss +54 -56
- data/assets/stylesheets/bootstrap/_pagination.scss +10 -22
- data/assets/stylesheets/bootstrap/_popover.scss +13 -14
- data/assets/stylesheets/bootstrap/_progress.scss +6 -4
- data/assets/stylesheets/bootstrap/_reboot.scss +318 -185
- data/assets/stylesheets/bootstrap/_root.scss +5 -8
- data/assets/stylesheets/bootstrap/_spinners.scss +3 -2
- data/assets/stylesheets/bootstrap/_tables.scss +80 -114
- data/assets/stylesheets/bootstrap/_tooltip.scss +5 -5
- data/assets/stylesheets/bootstrap/_transitions.scss +0 -1
- data/assets/stylesheets/bootstrap/_type.scss +40 -61
- data/assets/stylesheets/bootstrap/_utilities.scss +503 -17
- data/assets/stylesheets/bootstrap/_variables.scss +567 -430
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +142 -0
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +116 -0
- data/assets/stylesheets/bootstrap/forms/_form-file.scss +91 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +136 -0
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +82 -0
- data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +140 -0
- data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
- data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
- data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_embed.scss +31 -0
- data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
- data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +8 -0
- data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
- data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +0 -4
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +26 -13
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +11 -8
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +68 -50
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +47 -106
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +99 -29
- data/assets/stylesheets/bootstrap/mixins/_image.scss +0 -20
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +14 -19
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +17 -7
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
- data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +230 -130
- data/bootstrap.gemspec +1 -1
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +3 -3
- data/tasks/updater/network.rb +2 -2
- data/test/dummy_rails/app/assets/config/manifest.js +3 -0
- data/test/dummy_rails/app/assets/stylesheets/.browserslistrc +1 -0
- data/test/gemfiles/rails_6_0.gemfile +7 -0
- data/test/support/dummy_rails_integration.rb +3 -1
- data/test/test_helper.rb +18 -13
- metadata +40 -42
- data/assets/javascripts/bootstrap/util.js +0 -171
- data/assets/stylesheets/bootstrap/_code.scss +0 -48
- data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -507
- data/assets/stylesheets/bootstrap/_input-group.scss +0 -193
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -141
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -21
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -66
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
- data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -16
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
- data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
- data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
- data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
data/tasks/updater/js.rb
CHANGED
|
@@ -29,13 +29,13 @@ class Updater
|
|
|
29
29
|
|
|
30
30
|
def bootstrap_js_files
|
|
31
31
|
@bootstrap_js_files ||= begin
|
|
32
|
-
src_files = get_paths_by_type('js/src', /\.js$/) - %w[index.js]
|
|
32
|
+
src_files = get_paths_by_type('js/src', /\.js$/) - %w[util/index.js util/sanitizer.js]
|
|
33
33
|
imports = Deps.new
|
|
34
34
|
# Get the imports from the ES6 files to order requires correctly.
|
|
35
35
|
read_files('js/src', src_files).each do |name, content|
|
|
36
36
|
imports.add name,
|
|
37
|
-
*content.scan(%r{import [a-zA-Z]* from '\./(\w+)})
|
|
38
|
-
.flatten(1).map { |f| "#{f}.js" }
|
|
37
|
+
*content.scan(%r{import [a-zA-Z]* from '\./([\w/-]+)})
|
|
38
|
+
.flatten(1).map { |f| "#{f}.js" }.uniq
|
|
39
39
|
end
|
|
40
40
|
imports.tsort
|
|
41
41
|
end
|
data/tasks/updater/network.rb
CHANGED
|
@@ -25,7 +25,7 @@ class Updater
|
|
|
25
25
|
log_http_get_files files, path_url, false
|
|
26
26
|
files.map do |name|
|
|
27
27
|
Thread.start {
|
|
28
|
-
contents[name] = open("#{path_url}/#{name}").read
|
|
28
|
+
contents[name] = URI.open("#{path_url}/#{name}").read
|
|
29
29
|
WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] }
|
|
30
30
|
}
|
|
31
31
|
end.each(&:join)
|
|
@@ -62,7 +62,7 @@ class Updater
|
|
|
62
62
|
File.read(cache_path, mode: 'rb')
|
|
63
63
|
else
|
|
64
64
|
log_http_get_file url, false
|
|
65
|
-
content = open(url).read
|
|
65
|
+
content = URI.open(url).read
|
|
66
66
|
File.open(cache_path, 'wb') { |f| f.write content }
|
|
67
67
|
content
|
|
68
68
|
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Chrome >= 25
|
|
@@ -17,7 +17,9 @@ module DummyRailsIntegration
|
|
|
17
17
|
|
|
18
18
|
def screenshot!
|
|
19
19
|
path = "tmp/#{name}.png"
|
|
20
|
-
|
|
20
|
+
full_path = File.join(GEM_PATH, path)
|
|
21
|
+
FileUtils.mkdir_p(File.dirname(full_path))
|
|
22
|
+
page.driver.render(full_path, full: true)
|
|
21
23
|
STDERR.puts "Screenshot saved to #{path}"
|
|
22
24
|
end
|
|
23
25
|
|
data/test/test_helper.rb
CHANGED
|
@@ -12,24 +12,29 @@ end
|
|
|
12
12
|
|
|
13
13
|
GEM_PATH = File.expand_path('../', File.dirname(__FILE__))
|
|
14
14
|
|
|
15
|
-
#= Capybara
|
|
16
|
-
require 'capybara/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
#= Capybara
|
|
16
|
+
require 'capybara/cuprite'
|
|
17
|
+
|
|
18
|
+
browser_path = ENV['CHROMIUM_BIN'] || %w[
|
|
19
|
+
/usr/bin/chromium-browser
|
|
20
|
+
/snap/bin/chromium
|
|
21
|
+
/Applications/Chromium.app/Contents/MacOS/Chromium
|
|
22
|
+
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
|
|
23
|
+
].find { |path| File.executable?(path) }
|
|
24
|
+
|
|
25
|
+
Capybara.register_driver :cuprite do |app|
|
|
26
|
+
options = {
|
|
27
|
+
window_size: [1280, 1024]
|
|
28
|
+
}
|
|
29
|
+
options[:browser_path] = browser_path if browser_path
|
|
30
|
+
Capybara::Cuprite::Driver.new(app, options)
|
|
26
31
|
end
|
|
27
32
|
|
|
28
33
|
Capybara.configure do |config|
|
|
29
34
|
config.server = :webrick
|
|
30
35
|
config.app_host = 'http://localhost:7000'
|
|
31
|
-
config.default_driver = :
|
|
32
|
-
config.javascript_driver = :
|
|
36
|
+
config.default_driver = :cuprite
|
|
37
|
+
config.javascript_driver = :cuprite
|
|
33
38
|
config.server_port = 7000
|
|
34
39
|
config.default_max_wait_time = 10
|
|
35
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.0.alpha1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twitter, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: popper_js
|
|
@@ -115,7 +115,7 @@ dependencies:
|
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
116
|
version: 2.6.0
|
|
117
117
|
- !ruby/object:Gem::Dependency
|
|
118
|
-
name:
|
|
118
|
+
name: cuprite
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
121
|
- - ">="
|
|
@@ -247,6 +247,11 @@ files:
|
|
|
247
247
|
- assets/javascripts/bootstrap/button.js
|
|
248
248
|
- assets/javascripts/bootstrap/carousel.js
|
|
249
249
|
- assets/javascripts/bootstrap/collapse.js
|
|
250
|
+
- assets/javascripts/bootstrap/dom/data.js
|
|
251
|
+
- assets/javascripts/bootstrap/dom/event-handler.js
|
|
252
|
+
- assets/javascripts/bootstrap/dom/manipulator.js
|
|
253
|
+
- assets/javascripts/bootstrap/dom/polyfill.js
|
|
254
|
+
- assets/javascripts/bootstrap/dom/selector-engine.js
|
|
250
255
|
- assets/javascripts/bootstrap/dropdown.js
|
|
251
256
|
- assets/javascripts/bootstrap/modal.js
|
|
252
257
|
- assets/javascripts/bootstrap/popover.js
|
|
@@ -254,7 +259,6 @@ files:
|
|
|
254
259
|
- assets/javascripts/bootstrap/tab.js
|
|
255
260
|
- assets/javascripts/bootstrap/toast.js
|
|
256
261
|
- assets/javascripts/bootstrap/tooltip.js
|
|
257
|
-
- assets/javascripts/bootstrap/util.js
|
|
258
262
|
- assets/stylesheets/_bootstrap-grid.scss
|
|
259
263
|
- assets/stylesheets/_bootstrap-reboot.scss
|
|
260
264
|
- assets/stylesheets/_bootstrap.scss
|
|
@@ -266,24 +270,20 @@ files:
|
|
|
266
270
|
- assets/stylesheets/bootstrap/_card.scss
|
|
267
271
|
- assets/stylesheets/bootstrap/_carousel.scss
|
|
268
272
|
- assets/stylesheets/bootstrap/_close.scss
|
|
269
|
-
- assets/stylesheets/bootstrap/
|
|
270
|
-
- assets/stylesheets/bootstrap/_custom-forms.scss
|
|
273
|
+
- assets/stylesheets/bootstrap/_containers.scss
|
|
271
274
|
- assets/stylesheets/bootstrap/_dropdown.scss
|
|
272
275
|
- assets/stylesheets/bootstrap/_forms.scss
|
|
273
276
|
- assets/stylesheets/bootstrap/_functions.scss
|
|
274
277
|
- assets/stylesheets/bootstrap/_grid.scss
|
|
278
|
+
- assets/stylesheets/bootstrap/_helpers.scss
|
|
275
279
|
- assets/stylesheets/bootstrap/_images.scss
|
|
276
|
-
- assets/stylesheets/bootstrap/_input-group.scss
|
|
277
|
-
- assets/stylesheets/bootstrap/_jumbotron.scss
|
|
278
280
|
- assets/stylesheets/bootstrap/_list-group.scss
|
|
279
|
-
- assets/stylesheets/bootstrap/_media.scss
|
|
280
281
|
- assets/stylesheets/bootstrap/_mixins.scss
|
|
281
282
|
- assets/stylesheets/bootstrap/_modal.scss
|
|
282
283
|
- assets/stylesheets/bootstrap/_nav.scss
|
|
283
284
|
- assets/stylesheets/bootstrap/_navbar.scss
|
|
284
285
|
- assets/stylesheets/bootstrap/_pagination.scss
|
|
285
286
|
- assets/stylesheets/bootstrap/_popover.scss
|
|
286
|
-
- assets/stylesheets/bootstrap/_print.scss
|
|
287
287
|
- assets/stylesheets/bootstrap/_progress.scss
|
|
288
288
|
- assets/stylesheets/bootstrap/_reboot.scss
|
|
289
289
|
- assets/stylesheets/bootstrap/_root.scss
|
|
@@ -295,54 +295,47 @@ files:
|
|
|
295
295
|
- assets/stylesheets/bootstrap/_type.scss
|
|
296
296
|
- assets/stylesheets/bootstrap/_utilities.scss
|
|
297
297
|
- assets/stylesheets/bootstrap/_variables.scss
|
|
298
|
+
- assets/stylesheets/bootstrap/bootstrap-utilities.scss
|
|
299
|
+
- assets/stylesheets/bootstrap/forms/_form-check.scss
|
|
300
|
+
- assets/stylesheets/bootstrap/forms/_form-control.scss
|
|
301
|
+
- assets/stylesheets/bootstrap/forms/_form-file.scss
|
|
302
|
+
- assets/stylesheets/bootstrap/forms/_form-range.scss
|
|
303
|
+
- assets/stylesheets/bootstrap/forms/_form-select.scss
|
|
304
|
+
- assets/stylesheets/bootstrap/forms/_form-text.scss
|
|
305
|
+
- assets/stylesheets/bootstrap/forms/_input-group.scss
|
|
306
|
+
- assets/stylesheets/bootstrap/forms/_labels.scss
|
|
307
|
+
- assets/stylesheets/bootstrap/forms/_validation.scss
|
|
308
|
+
- assets/stylesheets/bootstrap/helpers/_clearfix.scss
|
|
309
|
+
- assets/stylesheets/bootstrap/helpers/_colored-links.scss
|
|
310
|
+
- assets/stylesheets/bootstrap/helpers/_embed.scss
|
|
311
|
+
- assets/stylesheets/bootstrap/helpers/_position.scss
|
|
312
|
+
- assets/stylesheets/bootstrap/helpers/_screenreaders.scss
|
|
313
|
+
- assets/stylesheets/bootstrap/helpers/_stretched-link.scss
|
|
314
|
+
- assets/stylesheets/bootstrap/helpers/_text-truncation.scss
|
|
298
315
|
- assets/stylesheets/bootstrap/mixins/_alert.scss
|
|
299
|
-
- assets/stylesheets/bootstrap/mixins/_background-variant.scss
|
|
300
|
-
- assets/stylesheets/bootstrap/mixins/_badge.scss
|
|
301
316
|
- assets/stylesheets/bootstrap/mixins/_border-radius.scss
|
|
302
317
|
- assets/stylesheets/bootstrap/mixins/_box-shadow.scss
|
|
303
318
|
- assets/stylesheets/bootstrap/mixins/_breakpoints.scss
|
|
304
319
|
- assets/stylesheets/bootstrap/mixins/_buttons.scss
|
|
305
320
|
- assets/stylesheets/bootstrap/mixins/_caret.scss
|
|
306
321
|
- assets/stylesheets/bootstrap/mixins/_clearfix.scss
|
|
322
|
+
- assets/stylesheets/bootstrap/mixins/_container.scss
|
|
307
323
|
- assets/stylesheets/bootstrap/mixins/_deprecate.scss
|
|
308
|
-
- assets/stylesheets/bootstrap/mixins/_float.scss
|
|
309
324
|
- assets/stylesheets/bootstrap/mixins/_forms.scss
|
|
310
325
|
- assets/stylesheets/bootstrap/mixins/_gradients.scss
|
|
311
|
-
- assets/stylesheets/bootstrap/mixins/_grid-framework.scss
|
|
312
326
|
- assets/stylesheets/bootstrap/mixins/_grid.scss
|
|
313
|
-
- assets/stylesheets/bootstrap/mixins/_hover.scss
|
|
314
327
|
- assets/stylesheets/bootstrap/mixins/_image.scss
|
|
315
328
|
- assets/stylesheets/bootstrap/mixins/_list-group.scss
|
|
316
329
|
- assets/stylesheets/bootstrap/mixins/_lists.scss
|
|
317
|
-
- assets/stylesheets/bootstrap/mixins/_nav-divider.scss
|
|
318
330
|
- assets/stylesheets/bootstrap/mixins/_pagination.scss
|
|
319
331
|
- assets/stylesheets/bootstrap/mixins/_reset-text.scss
|
|
320
332
|
- assets/stylesheets/bootstrap/mixins/_resize.scss
|
|
321
333
|
- assets/stylesheets/bootstrap/mixins/_screen-reader.scss
|
|
322
|
-
- assets/stylesheets/bootstrap/mixins/
|
|
323
|
-
- assets/stylesheets/bootstrap/mixins/_table-row.scss
|
|
324
|
-
- assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
|
|
325
|
-
- assets/stylesheets/bootstrap/mixins/_text-hide.scss
|
|
334
|
+
- assets/stylesheets/bootstrap/mixins/_table-variants.scss
|
|
326
335
|
- assets/stylesheets/bootstrap/mixins/_text-truncate.scss
|
|
327
336
|
- assets/stylesheets/bootstrap/mixins/_transition.scss
|
|
328
|
-
- assets/stylesheets/bootstrap/mixins/
|
|
329
|
-
- assets/stylesheets/bootstrap/utilities/
|
|
330
|
-
- assets/stylesheets/bootstrap/utilities/_background.scss
|
|
331
|
-
- assets/stylesheets/bootstrap/utilities/_borders.scss
|
|
332
|
-
- assets/stylesheets/bootstrap/utilities/_clearfix.scss
|
|
333
|
-
- assets/stylesheets/bootstrap/utilities/_display.scss
|
|
334
|
-
- assets/stylesheets/bootstrap/utilities/_embed.scss
|
|
335
|
-
- assets/stylesheets/bootstrap/utilities/_flex.scss
|
|
336
|
-
- assets/stylesheets/bootstrap/utilities/_float.scss
|
|
337
|
-
- assets/stylesheets/bootstrap/utilities/_overflow.scss
|
|
338
|
-
- assets/stylesheets/bootstrap/utilities/_position.scss
|
|
339
|
-
- assets/stylesheets/bootstrap/utilities/_screenreaders.scss
|
|
340
|
-
- assets/stylesheets/bootstrap/utilities/_shadows.scss
|
|
341
|
-
- assets/stylesheets/bootstrap/utilities/_sizing.scss
|
|
342
|
-
- assets/stylesheets/bootstrap/utilities/_spacing.scss
|
|
343
|
-
- assets/stylesheets/bootstrap/utilities/_stretched-link.scss
|
|
344
|
-
- assets/stylesheets/bootstrap/utilities/_text.scss
|
|
345
|
-
- assets/stylesheets/bootstrap/utilities/_visibility.scss
|
|
337
|
+
- assets/stylesheets/bootstrap/mixins/_utilities.scss
|
|
338
|
+
- assets/stylesheets/bootstrap/utilities/_api.scss
|
|
346
339
|
- assets/stylesheets/bootstrap/vendor/_rfs.scss
|
|
347
340
|
- bootstrap.gemspec
|
|
348
341
|
- lib/bootstrap.rb
|
|
@@ -355,8 +348,10 @@ files:
|
|
|
355
348
|
- tasks/updater/scss.rb
|
|
356
349
|
- test/dummy_rails/README.rdoc
|
|
357
350
|
- test/dummy_rails/Rakefile
|
|
351
|
+
- test/dummy_rails/app/assets/config/manifest.js
|
|
358
352
|
- test/dummy_rails/app/assets/images/.keep
|
|
359
353
|
- test/dummy_rails/app/assets/javascripts/application.js
|
|
354
|
+
- test/dummy_rails/app/assets/stylesheets/.browserslistrc
|
|
360
355
|
- test/dummy_rails/app/assets/stylesheets/application.sass
|
|
361
356
|
- test/dummy_rails/app/controllers/application_controller.rb
|
|
362
357
|
- test/dummy_rails/app/controllers/pages_controller.rb
|
|
@@ -384,6 +379,7 @@ files:
|
|
|
384
379
|
- test/gemfiles/rails_4_2.gemfile
|
|
385
380
|
- test/gemfiles/rails_5_0.gemfile
|
|
386
381
|
- test/gemfiles/rails_5_1.gemfile
|
|
382
|
+
- test/gemfiles/rails_6_0.gemfile
|
|
387
383
|
- test/rails_test.rb
|
|
388
384
|
- test/support/dummy_rails_integration.rb
|
|
389
385
|
- test/support/reporting.rb
|
|
@@ -404,12 +400,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
404
400
|
version: 2.3.3
|
|
405
401
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
406
402
|
requirements:
|
|
407
|
-
- - "
|
|
403
|
+
- - ">"
|
|
408
404
|
- !ruby/object:Gem::Version
|
|
409
|
-
version:
|
|
405
|
+
version: 1.3.1
|
|
410
406
|
requirements: []
|
|
411
|
-
|
|
412
|
-
rubygems_version: 2.7.8
|
|
407
|
+
rubygems_version: 3.1.2
|
|
413
408
|
signing_key:
|
|
414
409
|
specification_version: 4
|
|
415
410
|
summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
|
|
@@ -417,8 +412,10 @@ summary: The most popular HTML, CSS, and JavaScript framework for developing res
|
|
|
417
412
|
test_files:
|
|
418
413
|
- test/dummy_rails/README.rdoc
|
|
419
414
|
- test/dummy_rails/Rakefile
|
|
415
|
+
- test/dummy_rails/app/assets/config/manifest.js
|
|
420
416
|
- test/dummy_rails/app/assets/images/.keep
|
|
421
417
|
- test/dummy_rails/app/assets/javascripts/application.js
|
|
418
|
+
- test/dummy_rails/app/assets/stylesheets/.browserslistrc
|
|
422
419
|
- test/dummy_rails/app/assets/stylesheets/application.sass
|
|
423
420
|
- test/dummy_rails/app/controllers/application_controller.rb
|
|
424
421
|
- test/dummy_rails/app/controllers/pages_controller.rb
|
|
@@ -446,6 +443,7 @@ test_files:
|
|
|
446
443
|
- test/gemfiles/rails_4_2.gemfile
|
|
447
444
|
- test/gemfiles/rails_5_0.gemfile
|
|
448
445
|
- test/gemfiles/rails_5_1.gemfile
|
|
446
|
+
- test/gemfiles/rails_6_0.gemfile
|
|
449
447
|
- test/rails_test.rb
|
|
450
448
|
- test/support/dummy_rails_integration.rb
|
|
451
449
|
- test/support/reporting.rb
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Bootstrap util.js v4.3.0 (https://getbootstrap.com/)
|
|
3
|
-
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
4
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
5
|
-
*/
|
|
6
|
-
(function (global, factory) {
|
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
|
|
8
|
-
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
|
9
|
-
(global = global || self, global.Util = factory(global.jQuery));
|
|
10
|
-
}(this, function ($) { 'use strict';
|
|
11
|
-
|
|
12
|
-
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* --------------------------------------------------------------------------
|
|
16
|
-
* Bootstrap (v4.3.0): util.js
|
|
17
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
18
|
-
* --------------------------------------------------------------------------
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* ------------------------------------------------------------------------
|
|
22
|
-
* Private TransitionEnd Helpers
|
|
23
|
-
* ------------------------------------------------------------------------
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
var TRANSITION_END = 'transitionend';
|
|
27
|
-
var MAX_UID = 1000000;
|
|
28
|
-
var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
|
29
|
-
|
|
30
|
-
function toType(obj) {
|
|
31
|
-
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function getSpecialTransitionEndEvent() {
|
|
35
|
-
return {
|
|
36
|
-
bindType: TRANSITION_END,
|
|
37
|
-
delegateType: TRANSITION_END,
|
|
38
|
-
handle: function handle(event) {
|
|
39
|
-
if ($(event.target).is(this)) {
|
|
40
|
-
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return undefined; // eslint-disable-line no-undefined
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function transitionEndEmulator(duration) {
|
|
49
|
-
var _this = this;
|
|
50
|
-
|
|
51
|
-
var called = false;
|
|
52
|
-
$(this).one(Util.TRANSITION_END, function () {
|
|
53
|
-
called = true;
|
|
54
|
-
});
|
|
55
|
-
setTimeout(function () {
|
|
56
|
-
if (!called) {
|
|
57
|
-
Util.triggerTransitionEnd(_this);
|
|
58
|
-
}
|
|
59
|
-
}, duration);
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function setTransitionEndSupport() {
|
|
64
|
-
$.fn.emulateTransitionEnd = transitionEndEmulator;
|
|
65
|
-
$.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* --------------------------------------------------------------------------
|
|
69
|
-
* Public Util Api
|
|
70
|
-
* --------------------------------------------------------------------------
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var Util = {
|
|
75
|
-
TRANSITION_END: 'bsTransitionEnd',
|
|
76
|
-
getUID: function getUID(prefix) {
|
|
77
|
-
do {
|
|
78
|
-
// eslint-disable-next-line no-bitwise
|
|
79
|
-
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
|
80
|
-
} while (document.getElementById(prefix));
|
|
81
|
-
|
|
82
|
-
return prefix;
|
|
83
|
-
},
|
|
84
|
-
getSelectorFromElement: function getSelectorFromElement(element) {
|
|
85
|
-
var selector = element.getAttribute('data-target');
|
|
86
|
-
|
|
87
|
-
if (!selector || selector === '#') {
|
|
88
|
-
var hrefAttr = element.getAttribute('href');
|
|
89
|
-
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
try {
|
|
93
|
-
return document.querySelector(selector) ? selector : null;
|
|
94
|
-
} catch (err) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
|
|
99
|
-
if (!element) {
|
|
100
|
-
return 0;
|
|
101
|
-
} // Get transition-duration of the element
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
var transitionDuration = $(element).css('transition-duration');
|
|
105
|
-
var transitionDelay = $(element).css('transition-delay');
|
|
106
|
-
var floatTransitionDuration = parseFloat(transitionDuration);
|
|
107
|
-
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
|
108
|
-
|
|
109
|
-
if (!floatTransitionDuration && !floatTransitionDelay) {
|
|
110
|
-
return 0;
|
|
111
|
-
} // If multiple durations are defined, take the first
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
transitionDuration = transitionDuration.split(',')[0];
|
|
115
|
-
transitionDelay = transitionDelay.split(',')[0];
|
|
116
|
-
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
|
117
|
-
},
|
|
118
|
-
reflow: function reflow(element) {
|
|
119
|
-
return element.offsetHeight;
|
|
120
|
-
},
|
|
121
|
-
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
|
122
|
-
$(element).trigger(TRANSITION_END);
|
|
123
|
-
},
|
|
124
|
-
// TODO: Remove in v5
|
|
125
|
-
supportsTransitionEnd: function supportsTransitionEnd() {
|
|
126
|
-
return Boolean(TRANSITION_END);
|
|
127
|
-
},
|
|
128
|
-
isElement: function isElement(obj) {
|
|
129
|
-
return (obj[0] || obj).nodeType;
|
|
130
|
-
},
|
|
131
|
-
typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
|
|
132
|
-
for (var property in configTypes) {
|
|
133
|
-
if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
|
|
134
|
-
var expectedTypes = configTypes[property];
|
|
135
|
-
var value = config[property];
|
|
136
|
-
var valueType = value && Util.isElement(value) ? 'element' : toType(value);
|
|
137
|
-
|
|
138
|
-
if (!new RegExp(expectedTypes).test(valueType)) {
|
|
139
|
-
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
findShadowRoot: function findShadowRoot(element) {
|
|
145
|
-
if (!document.documentElement.attachShadow) {
|
|
146
|
-
return null;
|
|
147
|
-
} // Can find the shadow root otherwise it'll return the document
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (typeof element.getRootNode === 'function') {
|
|
151
|
-
var root = element.getRootNode();
|
|
152
|
-
return root instanceof ShadowRoot ? root : null;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (element instanceof ShadowRoot) {
|
|
156
|
-
return element;
|
|
157
|
-
} // when we don't find a shadow root
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
if (!element.parentNode) {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return Util.findShadowRoot(element.parentNode);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
setTransitionEndSupport();
|
|
168
|
-
|
|
169
|
-
return Util;
|
|
170
|
-
|
|
171
|
-
}));
|