bootstrap 4.6.2.1 → 5.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +0 -4
  3. data/README.md +1 -7
  4. data/Rakefile +4 -16
  5. data/assets/javascripts/bootstrap/alert.js +148 -73
  6. data/assets/javascripts/bootstrap/button.js +71 -154
  7. data/assets/javascripts/bootstrap/carousel.js +315 -209
  8. data/assets/javascripts/bootstrap/collapse.js +307 -153
  9. data/assets/javascripts/bootstrap/dom/data.js +81 -0
  10. data/assets/javascripts/bootstrap/dom/event-handler.js +311 -0
  11. data/assets/javascripts/bootstrap/dom/manipulator.js +100 -0
  12. data/assets/javascripts/bootstrap/dom/polyfill.js +110 -0
  13. data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
  14. data/assets/javascripts/bootstrap/dropdown.js +257 -205
  15. data/assets/javascripts/bootstrap/modal.js +354 -250
  16. data/assets/javascripts/bootstrap/popover.js +85 -94
  17. data/assets/javascripts/bootstrap/scrollspy.js +179 -107
  18. data/assets/javascripts/bootstrap/tab.js +170 -99
  19. data/assets/javascripts/bootstrap/toast.js +181 -110
  20. data/assets/javascripts/bootstrap/tooltip.js +375 -226
  21. data/assets/javascripts/bootstrap-sprockets.js +5 -1
  22. data/assets/javascripts/bootstrap.js +2260 -1550
  23. data/assets/javascripts/bootstrap.min.js +3 -3
  24. data/assets/stylesheets/_bootstrap-grid.scss +53 -18
  25. data/assets/stylesheets/_bootstrap-reboot.scss +6 -3
  26. data/assets/stylesheets/_bootstrap.scss +16 -10
  27. data/assets/stylesheets/bootstrap/_alert.scss +3 -4
  28. data/assets/stylesheets/bootstrap/_badge.scss +2 -27
  29. data/assets/stylesheets/bootstrap/_breadcrumb.scss +5 -17
  30. data/assets/stylesheets/bootstrap/_button-group.scss +16 -38
  31. data/assets/stylesheets/bootstrap/_buttons.scss +27 -45
  32. data/assets/stylesheets/bootstrap/_card.scss +22 -68
  33. data/assets/stylesheets/bootstrap/_carousel.scss +15 -20
  34. data/assets/stylesheets/bootstrap/_close.scss +9 -13
  35. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  36. data/assets/stylesheets/bootstrap/_dropdown.scss +12 -9
  37. data/assets/stylesheets/bootstrap/_forms.scss +9 -347
  38. data/assets/stylesheets/bootstrap/_functions.scss +82 -69
  39. data/assets/stylesheets/bootstrap/_grid.scss +3 -54
  40. data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
  41. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  42. data/assets/stylesheets/bootstrap/_list-group.scss +7 -4
  43. data/assets/stylesheets/bootstrap/_mixins.scss +6 -12
  44. data/assets/stylesheets/bootstrap/_modal.scss +36 -41
  45. data/assets/stylesheets/bootstrap/_nav.scss +7 -9
  46. data/assets/stylesheets/bootstrap/_navbar.scss +42 -82
  47. data/assets/stylesheets/bootstrap/_pagination.scss +7 -20
  48. data/assets/stylesheets/bootstrap/_popover.scss +14 -14
  49. data/assets/stylesheets/bootstrap/_progress.scss +3 -5
  50. data/assets/stylesheets/bootstrap/_reboot.scss +304 -172
  51. data/assets/stylesheets/bootstrap/_root.scss +5 -8
  52. data/assets/stylesheets/bootstrap/_spinners.scss +8 -17
  53. data/assets/stylesheets/bootstrap/_tables.scss +80 -114
  54. data/assets/stylesheets/bootstrap/_toasts.scss +2 -4
  55. data/assets/stylesheets/bootstrap/_tooltip.scss +9 -9
  56. data/assets/stylesheets/bootstrap/_transitions.scss +0 -7
  57. data/assets/stylesheets/bootstrap/_type.scss +38 -59
  58. data/assets/stylesheets/bootstrap/_utilities.scss +503 -18
  59. data/assets/stylesheets/bootstrap/_variables.scss +548 -437
  60. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
  61. data/assets/stylesheets/bootstrap/forms/_form-check.scss +142 -0
  62. data/assets/stylesheets/bootstrap/forms/_form-control.scss +116 -0
  63. data/assets/stylesheets/bootstrap/forms/_form-file.scss +91 -0
  64. data/assets/stylesheets/bootstrap/forms/_form-range.scss +136 -0
  65. data/assets/stylesheets/bootstrap/forms/_form-select.scss +82 -0
  66. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  67. data/assets/stylesheets/bootstrap/forms/_input-group.scss +140 -0
  68. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  69. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  70. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
  71. data/assets/stylesheets/bootstrap/helpers/_embed.scss +31 -0
  72. data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
  73. data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +8 -0
  74. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  75. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  76. data/assets/stylesheets/bootstrap/mixins/_alert.scss +0 -4
  77. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
  78. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +11 -8
  79. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +62 -47
  80. data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
  81. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  82. data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
  83. data/assets/stylesheets/bootstrap/mixins/_forms.scss +23 -85
  84. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
  85. data/assets/stylesheets/bootstrap/mixins/_grid.scss +86 -34
  86. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  87. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -1
  88. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  89. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
  90. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +3 -3
  91. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +18 -24
  92. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
  93. data/assets/stylesheets/bootstrap/mixins/_transition.scss +2 -2
  94. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
  95. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  96. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +214 -130
  97. data/bootstrap.gemspec +3 -1
  98. data/lib/bootstrap/engine.rb +1 -17
  99. data/lib/bootstrap/version.rb +2 -2
  100. data/tasks/updater/js.rb +6 -18
  101. data/tasks/updater/network.rb +1 -7
  102. metadata +49 -47
  103. data/assets/javascripts/bootstrap/util.js +0 -189
  104. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  105. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -526
  106. data/assets/stylesheets/bootstrap/_input-group.scss +0 -211
  107. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  108. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  109. data/assets/stylesheets/bootstrap/_print.scss +0 -132
  110. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
  111. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  112. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  113. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
  114. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  115. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  116. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  117. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  118. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  119. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  120. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  121. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  122. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  123. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  124. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  125. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  126. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  127. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  128. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
  129. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  130. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  131. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  132. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  133. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  134. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  135. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  136. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
  137. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
  138. data/test/gemfiles/rails_7_0_dartsass.gemfile +0 -8
  139. data/test/gemfiles/rails_7_0_sassc.gemfile +0 -8
  140. /data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
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.6.2.1
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: 2024-08-24 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.16.1
19
+ version: 1.14.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2'
@@ -26,10 +26,24 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.16.1
29
+ version: 1.14.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: sassc-rails
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.0.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: autoprefixer-rails
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -233,6 +247,11 @@ files:
233
247
  - assets/javascripts/bootstrap/button.js
234
248
  - assets/javascripts/bootstrap/carousel.js
235
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
236
255
  - assets/javascripts/bootstrap/dropdown.js
237
256
  - assets/javascripts/bootstrap/modal.js
238
257
  - assets/javascripts/bootstrap/popover.js
@@ -240,7 +259,6 @@ files:
240
259
  - assets/javascripts/bootstrap/tab.js
241
260
  - assets/javascripts/bootstrap/toast.js
242
261
  - assets/javascripts/bootstrap/tooltip.js
243
- - assets/javascripts/bootstrap/util.js
244
262
  - assets/stylesheets/_bootstrap-grid.scss
245
263
  - assets/stylesheets/_bootstrap-reboot.scss
246
264
  - assets/stylesheets/_bootstrap.scss
@@ -252,24 +270,20 @@ files:
252
270
  - assets/stylesheets/bootstrap/_card.scss
253
271
  - assets/stylesheets/bootstrap/_carousel.scss
254
272
  - assets/stylesheets/bootstrap/_close.scss
255
- - assets/stylesheets/bootstrap/_code.scss
256
- - assets/stylesheets/bootstrap/_custom-forms.scss
273
+ - assets/stylesheets/bootstrap/_containers.scss
257
274
  - assets/stylesheets/bootstrap/_dropdown.scss
258
275
  - assets/stylesheets/bootstrap/_forms.scss
259
276
  - assets/stylesheets/bootstrap/_functions.scss
260
277
  - assets/stylesheets/bootstrap/_grid.scss
278
+ - assets/stylesheets/bootstrap/_helpers.scss
261
279
  - assets/stylesheets/bootstrap/_images.scss
262
- - assets/stylesheets/bootstrap/_input-group.scss
263
- - assets/stylesheets/bootstrap/_jumbotron.scss
264
280
  - assets/stylesheets/bootstrap/_list-group.scss
265
- - assets/stylesheets/bootstrap/_media.scss
266
281
  - assets/stylesheets/bootstrap/_mixins.scss
267
282
  - assets/stylesheets/bootstrap/_modal.scss
268
283
  - assets/stylesheets/bootstrap/_nav.scss
269
284
  - assets/stylesheets/bootstrap/_navbar.scss
270
285
  - assets/stylesheets/bootstrap/_pagination.scss
271
286
  - assets/stylesheets/bootstrap/_popover.scss
272
- - assets/stylesheets/bootstrap/_print.scss
273
287
  - assets/stylesheets/bootstrap/_progress.scss
274
288
  - assets/stylesheets/bootstrap/_reboot.scss
275
289
  - assets/stylesheets/bootstrap/_root.scss
@@ -281,55 +295,47 @@ files:
281
295
  - assets/stylesheets/bootstrap/_type.scss
282
296
  - assets/stylesheets/bootstrap/_utilities.scss
283
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
284
315
  - assets/stylesheets/bootstrap/mixins/_alert.scss
285
- - assets/stylesheets/bootstrap/mixins/_background-variant.scss
286
- - assets/stylesheets/bootstrap/mixins/_badge.scss
287
316
  - assets/stylesheets/bootstrap/mixins/_border-radius.scss
288
317
  - assets/stylesheets/bootstrap/mixins/_box-shadow.scss
289
318
  - assets/stylesheets/bootstrap/mixins/_breakpoints.scss
290
319
  - assets/stylesheets/bootstrap/mixins/_buttons.scss
291
320
  - assets/stylesheets/bootstrap/mixins/_caret.scss
292
321
  - assets/stylesheets/bootstrap/mixins/_clearfix.scss
322
+ - assets/stylesheets/bootstrap/mixins/_container.scss
293
323
  - assets/stylesheets/bootstrap/mixins/_deprecate.scss
294
- - assets/stylesheets/bootstrap/mixins/_float.scss
295
324
  - assets/stylesheets/bootstrap/mixins/_forms.scss
296
325
  - assets/stylesheets/bootstrap/mixins/_gradients.scss
297
- - assets/stylesheets/bootstrap/mixins/_grid-framework.scss
298
326
  - assets/stylesheets/bootstrap/mixins/_grid.scss
299
- - assets/stylesheets/bootstrap/mixins/_hover.scss
300
327
  - assets/stylesheets/bootstrap/mixins/_image.scss
301
328
  - assets/stylesheets/bootstrap/mixins/_list-group.scss
302
329
  - assets/stylesheets/bootstrap/mixins/_lists.scss
303
- - assets/stylesheets/bootstrap/mixins/_nav-divider.scss
304
330
  - assets/stylesheets/bootstrap/mixins/_pagination.scss
305
331
  - assets/stylesheets/bootstrap/mixins/_reset-text.scss
306
332
  - assets/stylesheets/bootstrap/mixins/_resize.scss
307
333
  - assets/stylesheets/bootstrap/mixins/_screen-reader.scss
308
- - assets/stylesheets/bootstrap/mixins/_size.scss
309
- - assets/stylesheets/bootstrap/mixins/_table-row.scss
310
- - assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
311
- - assets/stylesheets/bootstrap/mixins/_text-hide.scss
334
+ - assets/stylesheets/bootstrap/mixins/_table-variants.scss
312
335
  - assets/stylesheets/bootstrap/mixins/_text-truncate.scss
313
336
  - assets/stylesheets/bootstrap/mixins/_transition.scss
314
- - assets/stylesheets/bootstrap/mixins/_visibility.scss
315
- - assets/stylesheets/bootstrap/utilities/_align.scss
316
- - assets/stylesheets/bootstrap/utilities/_background.scss
317
- - assets/stylesheets/bootstrap/utilities/_borders.scss
318
- - assets/stylesheets/bootstrap/utilities/_clearfix.scss
319
- - assets/stylesheets/bootstrap/utilities/_display.scss
320
- - assets/stylesheets/bootstrap/utilities/_embed.scss
321
- - assets/stylesheets/bootstrap/utilities/_flex.scss
322
- - assets/stylesheets/bootstrap/utilities/_float.scss
323
- - assets/stylesheets/bootstrap/utilities/_interactions.scss
324
- - assets/stylesheets/bootstrap/utilities/_overflow.scss
325
- - assets/stylesheets/bootstrap/utilities/_position.scss
326
- - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
327
- - assets/stylesheets/bootstrap/utilities/_shadows.scss
328
- - assets/stylesheets/bootstrap/utilities/_sizing.scss
329
- - assets/stylesheets/bootstrap/utilities/_spacing.scss
330
- - assets/stylesheets/bootstrap/utilities/_stretched-link.scss
331
- - assets/stylesheets/bootstrap/utilities/_text.scss
332
- - assets/stylesheets/bootstrap/utilities/_visibility.scss
337
+ - assets/stylesheets/bootstrap/mixins/_utilities.scss
338
+ - assets/stylesheets/bootstrap/utilities/_api.scss
333
339
  - assets/stylesheets/bootstrap/vendor/_rfs.scss
334
340
  - bootstrap.gemspec
335
341
  - lib/bootstrap.rb
@@ -374,8 +380,6 @@ files:
374
380
  - test/gemfiles/rails_5_0.gemfile
375
381
  - test/gemfiles/rails_5_1.gemfile
376
382
  - test/gemfiles/rails_6_0.gemfile
377
- - test/gemfiles/rails_7_0_dartsass.gemfile
378
- - test/gemfiles/rails_7_0_sassc.gemfile
379
383
  - test/rails_test.rb
380
384
  - test/support/dummy_rails_integration.rb
381
385
  - test/support/reporting.rb
@@ -396,11 +400,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
396
400
  version: 2.3.3
397
401
  required_rubygems_version: !ruby/object:Gem::Requirement
398
402
  requirements:
399
- - - ">="
403
+ - - ">"
400
404
  - !ruby/object:Gem::Version
401
- version: '0'
405
+ version: 1.3.1
402
406
  requirements: []
403
- rubygems_version: 3.4.20
407
+ rubygems_version: 3.1.2
404
408
  signing_key:
405
409
  specification_version: 4
406
410
  summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
@@ -440,8 +444,6 @@ test_files:
440
444
  - test/gemfiles/rails_5_0.gemfile
441
445
  - test/gemfiles/rails_5_1.gemfile
442
446
  - test/gemfiles/rails_6_0.gemfile
443
- - test/gemfiles/rails_7_0_dartsass.gemfile
444
- - test/gemfiles/rails_7_0_sassc.gemfile
445
447
  - test/rails_test.rb
446
448
  - test/support/dummy_rails_integration.rb
447
449
  - test/support/reporting.rb
@@ -1,189 +0,0 @@
1
- /*!
2
- * Bootstrap util.js v4.6.2 (https://getbootstrap.com/)
3
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/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 = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
10
- })(this, (function ($) { 'use strict';
11
-
12
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
-
14
- var $__default = /*#__PURE__*/_interopDefaultLegacy($);
15
-
16
- /**
17
- * --------------------------------------------------------------------------
18
- * Bootstrap (v4.6.2): util.js
19
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
20
- * --------------------------------------------------------------------------
21
- */
22
- /**
23
- * Private TransitionEnd Helpers
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
- if (obj === null || typeof obj === 'undefined') {
32
- return "" + obj;
33
- }
34
-
35
- return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
36
- }
37
-
38
- function getSpecialTransitionEndEvent() {
39
- return {
40
- bindType: TRANSITION_END,
41
- delegateType: TRANSITION_END,
42
- handle: function handle(event) {
43
- if ($__default["default"](event.target).is(this)) {
44
- return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
45
- }
46
-
47
- return undefined;
48
- }
49
- };
50
- }
51
-
52
- function transitionEndEmulator(duration) {
53
- var _this = this;
54
-
55
- var called = false;
56
- $__default["default"](this).one(Util.TRANSITION_END, function () {
57
- called = true;
58
- });
59
- setTimeout(function () {
60
- if (!called) {
61
- Util.triggerTransitionEnd(_this);
62
- }
63
- }, duration);
64
- return this;
65
- }
66
-
67
- function setTransitionEndSupport() {
68
- $__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
69
- $__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
70
- }
71
- /**
72
- * Public Util API
73
- */
74
-
75
-
76
- var Util = {
77
- TRANSITION_END: 'bsTransitionEnd',
78
- getUID: function getUID(prefix) {
79
- do {
80
- // eslint-disable-next-line no-bitwise
81
- prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
82
- } while (document.getElementById(prefix));
83
-
84
- return prefix;
85
- },
86
- getSelectorFromElement: function getSelectorFromElement(element) {
87
- var selector = element.getAttribute('data-target');
88
-
89
- if (!selector || selector === '#') {
90
- var hrefAttr = element.getAttribute('href');
91
- selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
92
- }
93
-
94
- try {
95
- return document.querySelector(selector) ? selector : null;
96
- } catch (_) {
97
- return null;
98
- }
99
- },
100
- getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
101
- if (!element) {
102
- return 0;
103
- } // Get transition-duration of the element
104
-
105
-
106
- var transitionDuration = $__default["default"](element).css('transition-duration');
107
- var transitionDelay = $__default["default"](element).css('transition-delay');
108
- var floatTransitionDuration = parseFloat(transitionDuration);
109
- var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
110
-
111
- if (!floatTransitionDuration && !floatTransitionDelay) {
112
- return 0;
113
- } // If multiple durations are defined, take the first
114
-
115
-
116
- transitionDuration = transitionDuration.split(',')[0];
117
- transitionDelay = transitionDelay.split(',')[0];
118
- return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
119
- },
120
- reflow: function reflow(element) {
121
- return element.offsetHeight;
122
- },
123
- triggerTransitionEnd: function triggerTransitionEnd(element) {
124
- $__default["default"](element).trigger(TRANSITION_END);
125
- },
126
- supportsTransitionEnd: function supportsTransitionEnd() {
127
- return Boolean(TRANSITION_END);
128
- },
129
- isElement: function isElement(obj) {
130
- return (obj[0] || obj).nodeType;
131
- },
132
- typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
133
- for (var property in configTypes) {
134
- if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
135
- var expectedTypes = configTypes[property];
136
- var value = config[property];
137
- var valueType = value && Util.isElement(value) ? 'element' : toType(value);
138
-
139
- if (!new RegExp(expectedTypes).test(valueType)) {
140
- throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
141
- }
142
- }
143
- }
144
- },
145
- findShadowRoot: function findShadowRoot(element) {
146
- if (!document.documentElement.attachShadow) {
147
- return null;
148
- } // Can find the shadow root otherwise it'll return the document
149
-
150
-
151
- if (typeof element.getRootNode === 'function') {
152
- var root = element.getRootNode();
153
- return root instanceof ShadowRoot ? root : null;
154
- }
155
-
156
- if (element instanceof ShadowRoot) {
157
- return element;
158
- } // when we don't find a shadow root
159
-
160
-
161
- if (!element.parentNode) {
162
- return null;
163
- }
164
-
165
- return Util.findShadowRoot(element.parentNode);
166
- },
167
- jQueryDetection: function jQueryDetection() {
168
- if (typeof $__default["default"] === 'undefined') {
169
- throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
170
- }
171
-
172
- var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
173
- var minMajor = 1;
174
- var ltMajor = 2;
175
- var minMinor = 9;
176
- var minPatch = 1;
177
- var maxMajor = 4;
178
-
179
- if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
180
- throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
181
- }
182
- }
183
- };
184
- Util.jQueryDetection();
185
- setTransitionEndSupport();
186
-
187
- return Util;
188
-
189
- }));
@@ -1,48 +0,0 @@
1
- // Inline code
2
- code {
3
- @include font-size($code-font-size);
4
- color: $code-color;
5
- word-wrap: break-word;
6
-
7
- // Streamline the style when inside anchors to avoid broken underline and more
8
- a > & {
9
- color: inherit;
10
- }
11
- }
12
-
13
- // User input typically entered via keyboard
14
- kbd {
15
- padding: $kbd-padding-y $kbd-padding-x;
16
- @include font-size($kbd-font-size);
17
- color: $kbd-color;
18
- background-color: $kbd-bg;
19
- @include border-radius($border-radius-sm);
20
- @include box-shadow($kbd-box-shadow);
21
-
22
- kbd {
23
- padding: 0;
24
- @include font-size(100%);
25
- font-weight: $nested-kbd-font-weight;
26
- @include box-shadow(none);
27
- }
28
- }
29
-
30
- // Blocks of code
31
- pre {
32
- display: block;
33
- @include font-size($code-font-size);
34
- color: $pre-color;
35
-
36
- // Account for some code outputs that place code tags in pre tags
37
- code {
38
- @include font-size(inherit);
39
- color: inherit;
40
- word-break: normal;
41
- }
42
- }
43
-
44
- // Enable scrollable blocks of code
45
- .pre-scrollable {
46
- max-height: $pre-scrollable-max-height;
47
- overflow-y: scroll;
48
- }