bootstrap 4.6.2 → 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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap/alert.js +148 -73
  4. data/assets/javascripts/bootstrap/button.js +71 -154
  5. data/assets/javascripts/bootstrap/carousel.js +315 -209
  6. data/assets/javascripts/bootstrap/collapse.js +307 -153
  7. data/assets/javascripts/bootstrap/dom/data.js +81 -0
  8. data/assets/javascripts/bootstrap/dom/event-handler.js +311 -0
  9. data/assets/javascripts/bootstrap/dom/manipulator.js +100 -0
  10. data/assets/javascripts/bootstrap/dom/polyfill.js +110 -0
  11. data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
  12. data/assets/javascripts/bootstrap/dropdown.js +257 -205
  13. data/assets/javascripts/bootstrap/modal.js +354 -250
  14. data/assets/javascripts/bootstrap/popover.js +85 -94
  15. data/assets/javascripts/bootstrap/scrollspy.js +179 -107
  16. data/assets/javascripts/bootstrap/tab.js +170 -99
  17. data/assets/javascripts/bootstrap/toast.js +181 -110
  18. data/assets/javascripts/bootstrap/tooltip.js +375 -226
  19. data/assets/javascripts/bootstrap-sprockets.js +5 -1
  20. data/assets/javascripts/bootstrap.js +2260 -1550
  21. data/assets/javascripts/bootstrap.min.js +3 -3
  22. data/assets/stylesheets/_bootstrap-grid.scss +53 -18
  23. data/assets/stylesheets/_bootstrap-reboot.scss +6 -3
  24. data/assets/stylesheets/_bootstrap.scss +16 -10
  25. data/assets/stylesheets/bootstrap/_alert.scss +3 -4
  26. data/assets/stylesheets/bootstrap/_badge.scss +2 -27
  27. data/assets/stylesheets/bootstrap/_breadcrumb.scss +5 -17
  28. data/assets/stylesheets/bootstrap/_button-group.scss +16 -38
  29. data/assets/stylesheets/bootstrap/_buttons.scss +27 -45
  30. data/assets/stylesheets/bootstrap/_card.scss +22 -68
  31. data/assets/stylesheets/bootstrap/_carousel.scss +15 -20
  32. data/assets/stylesheets/bootstrap/_close.scss +9 -13
  33. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  34. data/assets/stylesheets/bootstrap/_dropdown.scss +12 -9
  35. data/assets/stylesheets/bootstrap/_forms.scss +9 -347
  36. data/assets/stylesheets/bootstrap/_functions.scss +82 -69
  37. data/assets/stylesheets/bootstrap/_grid.scss +3 -54
  38. data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
  39. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  40. data/assets/stylesheets/bootstrap/_list-group.scss +7 -4
  41. data/assets/stylesheets/bootstrap/_mixins.scss +6 -12
  42. data/assets/stylesheets/bootstrap/_modal.scss +36 -41
  43. data/assets/stylesheets/bootstrap/_nav.scss +7 -9
  44. data/assets/stylesheets/bootstrap/_navbar.scss +42 -82
  45. data/assets/stylesheets/bootstrap/_pagination.scss +7 -20
  46. data/assets/stylesheets/bootstrap/_popover.scss +14 -14
  47. data/assets/stylesheets/bootstrap/_progress.scss +3 -5
  48. data/assets/stylesheets/bootstrap/_reboot.scss +304 -172
  49. data/assets/stylesheets/bootstrap/_root.scss +5 -8
  50. data/assets/stylesheets/bootstrap/_spinners.scss +8 -17
  51. data/assets/stylesheets/bootstrap/_tables.scss +80 -114
  52. data/assets/stylesheets/bootstrap/_toasts.scss +2 -4
  53. data/assets/stylesheets/bootstrap/_tooltip.scss +9 -9
  54. data/assets/stylesheets/bootstrap/_transitions.scss +0 -7
  55. data/assets/stylesheets/bootstrap/_type.scss +38 -59
  56. data/assets/stylesheets/bootstrap/_utilities.scss +503 -18
  57. data/assets/stylesheets/bootstrap/_variables.scss +548 -437
  58. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
  59. data/assets/stylesheets/bootstrap/forms/_form-check.scss +142 -0
  60. data/assets/stylesheets/bootstrap/forms/_form-control.scss +116 -0
  61. data/assets/stylesheets/bootstrap/forms/_form-file.scss +91 -0
  62. data/assets/stylesheets/bootstrap/forms/_form-range.scss +136 -0
  63. data/assets/stylesheets/bootstrap/forms/_form-select.scss +82 -0
  64. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  65. data/assets/stylesheets/bootstrap/forms/_input-group.scss +140 -0
  66. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  67. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  68. data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
  69. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
  70. data/assets/stylesheets/bootstrap/helpers/_embed.scss +31 -0
  71. data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
  72. data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +8 -0
  73. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  74. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  75. data/assets/stylesheets/bootstrap/mixins/_alert.scss +0 -4
  76. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
  77. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +11 -8
  78. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +62 -47
  79. data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
  80. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  81. data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
  82. data/assets/stylesheets/bootstrap/mixins/_forms.scss +23 -85
  83. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
  84. data/assets/stylesheets/bootstrap/mixins/_grid.scss +86 -34
  85. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  86. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -1
  87. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  88. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
  89. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +3 -3
  90. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +18 -24
  91. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
  92. data/assets/stylesheets/bootstrap/mixins/_transition.scss +2 -2
  93. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
  94. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  95. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +214 -130
  96. data/bootstrap.gemspec +1 -1
  97. data/lib/bootstrap/version.rb +2 -2
  98. data/tasks/updater/js.rb +6 -18
  99. data/tasks/updater/network.rb +1 -7
  100. metadata +34 -42
  101. data/assets/javascripts/bootstrap/util.js +0 -189
  102. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  103. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -526
  104. data/assets/stylesheets/bootstrap/_input-group.scss +0 -211
  105. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  106. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  107. data/assets/stylesheets/bootstrap/_print.scss +0 -132
  108. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
  109. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  110. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  111. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
  112. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  113. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  114. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  115. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  116. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  117. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  118. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  119. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  120. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  121. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  122. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  123. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  124. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  125. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  126. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
  127. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  128. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  129. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  130. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  131. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  132. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  133. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  134. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
  135. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
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
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: 2022-09-18 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,7 +26,7 @@ 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'
@@ -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/_code.scss
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,55 +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/_size.scss
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/_visibility.scss
329
- - assets/stylesheets/bootstrap/utilities/_align.scss
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/_interactions.scss
338
- - assets/stylesheets/bootstrap/utilities/_overflow.scss
339
- - assets/stylesheets/bootstrap/utilities/_position.scss
340
- - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
341
- - assets/stylesheets/bootstrap/utilities/_shadows.scss
342
- - assets/stylesheets/bootstrap/utilities/_sizing.scss
343
- - assets/stylesheets/bootstrap/utilities/_spacing.scss
344
- - assets/stylesheets/bootstrap/utilities/_stretched-link.scss
345
- - assets/stylesheets/bootstrap/utilities/_text.scss
346
- - assets/stylesheets/bootstrap/utilities/_visibility.scss
337
+ - assets/stylesheets/bootstrap/mixins/_utilities.scss
338
+ - assets/stylesheets/bootstrap/utilities/_api.scss
347
339
  - assets/stylesheets/bootstrap/vendor/_rfs.scss
348
340
  - bootstrap.gemspec
349
341
  - lib/bootstrap.rb
@@ -408,9 +400,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
408
400
  version: 2.3.3
409
401
  required_rubygems_version: !ruby/object:Gem::Requirement
410
402
  requirements:
411
- - - ">="
403
+ - - ">"
412
404
  - !ruby/object:Gem::Version
413
- version: '0'
405
+ version: 1.3.1
414
406
  requirements: []
415
407
  rubygems_version: 3.1.2
416
408
  signing_key:
@@ -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
- }