bootstrap 5.0.0.alpha2 → 5.0.0.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/assets/javascripts/bootstrap-sprockets.js +6 -7
- data/assets/javascripts/bootstrap.js +220 -267
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +25 -15
- data/assets/javascripts/bootstrap/button.js +25 -15
- data/assets/javascripts/bootstrap/carousel.js +46 -24
- data/assets/javascripts/bootstrap/collapse.js +25 -15
- data/assets/javascripts/bootstrap/dom/data.js +2 -2
- data/assets/javascripts/bootstrap/dom/event-handler.js +8 -16
- data/assets/javascripts/bootstrap/dom/manipulator.js +2 -13
- data/assets/javascripts/bootstrap/dom/selector-engine.js +9 -9
- data/assets/javascripts/bootstrap/dropdown.js +34 -24
- data/assets/javascripts/bootstrap/modal.js +25 -15
- data/assets/javascripts/bootstrap/popover.js +26 -15
- data/assets/javascripts/bootstrap/scrollspy.js +25 -14
- data/assets/javascripts/bootstrap/tab.js +25 -15
- data/assets/javascripts/bootstrap/toast.js +26 -16
- data/assets/javascripts/bootstrap/tooltip.js +27 -17
- data/assets/stylesheets/_bootstrap-grid.scss +1 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +2 -1
- data/assets/stylesheets/bootstrap/_accordion.scss +125 -0
- data/assets/stylesheets/bootstrap/_alert.scss +10 -3
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -3
- data/assets/stylesheets/bootstrap/_button-group.scss +0 -2
- data/assets/stylesheets/bootstrap/_buttons.scss +0 -15
- data/assets/stylesheets/bootstrap/_card.scss +0 -27
- data/assets/stylesheets/bootstrap/_close.scss +1 -2
- data/assets/stylesheets/bootstrap/_forms.scss +1 -1
- data/assets/stylesheets/bootstrap/_functions.scss +12 -12
- data/assets/stylesheets/bootstrap/_list-group.scss +8 -2
- data/assets/stylesheets/bootstrap/_popover.scss +1 -1
- data/assets/stylesheets/bootstrap/_progress.scss +1 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +19 -17
- data/assets/stylesheets/bootstrap/_root.scss +5 -5
- data/assets/stylesheets/bootstrap/_spinners.scss +11 -2
- data/assets/stylesheets/bootstrap/_tables.scss +16 -16
- data/assets/stylesheets/bootstrap/_utilities.scss +27 -13
- data/assets/stylesheets/bootstrap/_variables.scss +183 -160
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +15 -6
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +115 -8
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +0 -45
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +0 -14
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +20 -39
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -16
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +10 -10
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +7 -7
- data/lib/bootstrap/version.rb +2 -2
- metadata +4 -4
- data/assets/javascripts/bootstrap/dom/polyfill.js +0 -110
- data/assets/stylesheets/bootstrap/forms/_form-file.scss +0 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f3fea0a726387fe3d7a6db94f1e735521ddea80c4a2ed5cf10dbd82457760b2
|
4
|
+
data.tar.gz: '0057235198c95f45c36e023fab29e7018e39e659fa838081463d08a27dc6aba6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d93c14d625eaf504b3dcccd5e20e9ce6915facfabe30d8d99d6728006164df9b930652057e8f2aabaf3ad4d84420b5f4f2bb5daa09048e9e992c71edb6685f
|
7
|
+
data.tar.gz: 6a11dcab3fbc251a13ed8a3214de29d9612242007a441bcc4fadb153c15f6174eafda2c8dbf92a3661ba827f9f76f0415010b9e4cd7e3a8e8d6556dda37eb38b
|
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Bootstrap Ruby Gem [![Build Status](https://travis-ci.org/twbs/bootstrap-rubygem.svg?branch=master)](https://travis-ci.org/twbs/bootstrap-rubygem) [![Gem](https://img.shields.io/gem/v/bootstrap.svg)](https://rubygems.org/gems/bootstrap)
|
2
2
|
|
3
|
-
[Bootstrap 4][bootstrap-home] ruby gem for Ruby on Rails (Sprockets) and Hanami (formerly Lotus).
|
3
|
+
[Bootstrap 4][bootstrap-home] ruby gem for Ruby on Rails (*Sprockets*) and Hanami (formerly Lotus).
|
4
4
|
|
5
5
|
For Sass versions of Bootstrap 3 and 2 see [bootstrap-sass](https://github.com/twbs/bootstrap-sass) instead.
|
6
6
|
|
7
|
+
**Ruby on Rails 6 Note:**:
|
8
|
+
With the release of Rails 6 there have been some minor changes made to the default configuration for The Asset Pipeline. In specific, by default _Sprockets no longer processes JavaScript_ and instead Webpack is set as the default. The `twbs/bootstrap-rubygem` is for use with Sprockets not Webpack.
|
9
|
+
|
7
10
|
## Installation
|
8
11
|
|
9
12
|
Please see the appropriate guide for your environment of choice:
|
@@ -17,7 +20,7 @@ Please see the appropriate guide for your environment of choice:
|
|
17
20
|
Add `bootstrap` to your Gemfile:
|
18
21
|
|
19
22
|
```ruby
|
20
|
-
gem 'bootstrap', '~> 5.0.0.
|
23
|
+
gem 'bootstrap', '~> 5.0.0.alpha3'
|
21
24
|
```
|
22
25
|
|
23
26
|
Ensure that `sprockets-rails` is at least v2.3.2.
|
@@ -1,16 +1,15 @@
|
|
1
1
|
//= require ./bootstrap/dom/data
|
2
2
|
//= require ./bootstrap/dom/event-handler
|
3
3
|
//= require ./bootstrap/dom/manipulator
|
4
|
+
//= require ./bootstrap/toast
|
4
5
|
//= require ./bootstrap/dom/selector-engine
|
5
|
-
//= require ./bootstrap/collapse
|
6
|
-
//= require ./bootstrap/dom/polyfill
|
7
|
-
//= require ./bootstrap/modal
|
8
|
-
//= require ./bootstrap/alert
|
9
6
|
//= require ./bootstrap/dropdown
|
7
|
+
//= require ./bootstrap/alert
|
10
8
|
//= require ./bootstrap/tooltip
|
11
|
-
//= require ./bootstrap/
|
9
|
+
//= require ./bootstrap/collapse
|
10
|
+
//= require ./bootstrap/modal
|
11
|
+
//= require ./bootstrap/tab
|
12
12
|
//= require ./bootstrap/scrollspy
|
13
13
|
//= require ./bootstrap/button
|
14
|
-
//= require ./bootstrap/popover
|
15
|
-
//= require ./bootstrap/tab
|
16
14
|
//= require ./bootstrap/carousel
|
15
|
+
//= require ./bootstrap/popover
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v5.0.0-
|
2
|
+
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2020 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
|
*/
|
@@ -55,7 +55,7 @@
|
|
55
55
|
|
56
56
|
/**
|
57
57
|
* --------------------------------------------------------------------------
|
58
|
-
* Bootstrap (v5.0.0-
|
58
|
+
* Bootstrap (v5.0.0-alpha3): util/index.js
|
59
59
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
60
60
|
* --------------------------------------------------------------------------
|
61
61
|
*/
|
@@ -228,9 +228,17 @@
|
|
228
228
|
return null;
|
229
229
|
};
|
230
230
|
|
231
|
+
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
232
|
+
if (document.readyState === 'loading') {
|
233
|
+
document.addEventListener('DOMContentLoaded', callback);
|
234
|
+
} else {
|
235
|
+
callback();
|
236
|
+
}
|
237
|
+
};
|
238
|
+
|
231
239
|
/**
|
232
240
|
* --------------------------------------------------------------------------
|
233
|
-
* Bootstrap (v5.0.0-
|
241
|
+
* Bootstrap (v5.0.0-alpha3): dom/data.js
|
234
242
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
235
243
|
* --------------------------------------------------------------------------
|
236
244
|
*/
|
@@ -295,81 +303,9 @@
|
|
295
303
|
}
|
296
304
|
};
|
297
305
|
|
298
|
-
/* istanbul ignore file */
|
299
|
-
var find = Element.prototype.querySelectorAll;
|
300
|
-
var findOne = Element.prototype.querySelector; // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
301
|
-
|
302
|
-
var defaultPreventedPreservedOnDispatch = function () {
|
303
|
-
var e = new CustomEvent('Bootstrap', {
|
304
|
-
cancelable: true
|
305
|
-
});
|
306
|
-
var element = document.createElement('div');
|
307
|
-
element.addEventListener('Bootstrap', function () {
|
308
|
-
return null;
|
309
|
-
});
|
310
|
-
e.preventDefault();
|
311
|
-
element.dispatchEvent(e);
|
312
|
-
return e.defaultPrevented;
|
313
|
-
}();
|
314
|
-
|
315
|
-
var scopeSelectorRegex = /:scope\b/;
|
316
|
-
|
317
|
-
var supportScopeQuery = function () {
|
318
|
-
var element = document.createElement('div');
|
319
|
-
|
320
|
-
try {
|
321
|
-
element.querySelectorAll(':scope *');
|
322
|
-
} catch (_) {
|
323
|
-
return false;
|
324
|
-
}
|
325
|
-
|
326
|
-
return true;
|
327
|
-
}();
|
328
|
-
|
329
|
-
if (!supportScopeQuery) {
|
330
|
-
find = function find(selector) {
|
331
|
-
if (!scopeSelectorRegex.test(selector)) {
|
332
|
-
return this.querySelectorAll(selector);
|
333
|
-
}
|
334
|
-
|
335
|
-
var hasId = Boolean(this.id);
|
336
|
-
|
337
|
-
if (!hasId) {
|
338
|
-
this.id = getUID('scope');
|
339
|
-
}
|
340
|
-
|
341
|
-
var nodeList = null;
|
342
|
-
|
343
|
-
try {
|
344
|
-
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
345
|
-
nodeList = this.querySelectorAll(selector);
|
346
|
-
} finally {
|
347
|
-
if (!hasId) {
|
348
|
-
this.removeAttribute('id');
|
349
|
-
}
|
350
|
-
}
|
351
|
-
|
352
|
-
return nodeList;
|
353
|
-
};
|
354
|
-
|
355
|
-
findOne = function findOne(selector) {
|
356
|
-
if (!scopeSelectorRegex.test(selector)) {
|
357
|
-
return this.querySelector(selector);
|
358
|
-
}
|
359
|
-
|
360
|
-
var matches = find.call(this, selector);
|
361
|
-
|
362
|
-
if (typeof matches[0] !== 'undefined') {
|
363
|
-
return matches[0];
|
364
|
-
}
|
365
|
-
|
366
|
-
return null;
|
367
|
-
};
|
368
|
-
}
|
369
|
-
|
370
306
|
/**
|
371
307
|
* --------------------------------------------------------------------------
|
372
|
-
* Bootstrap (v5.0.0-
|
308
|
+
* Bootstrap (v5.0.0-alpha3): dom/event-handler.js
|
373
309
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
374
310
|
* --------------------------------------------------------------------------
|
375
311
|
*/
|
@@ -379,7 +315,6 @@
|
|
379
315
|
* ------------------------------------------------------------------------
|
380
316
|
*/
|
381
317
|
|
382
|
-
var $ = getjQuery();
|
383
318
|
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
384
319
|
var stripNameRegex = /\..*/;
|
385
320
|
var stripUidRegex = /::\d+$/;
|
@@ -588,6 +523,7 @@
|
|
588
523
|
return null;
|
589
524
|
}
|
590
525
|
|
526
|
+
var $ = getjQuery();
|
591
527
|
var typeEvent = event.replace(stripNameRegex, '');
|
592
528
|
var inNamespace = event !== typeEvent;
|
593
529
|
var isNative = nativeEvents.indexOf(typeEvent) > -1;
|
@@ -628,14 +564,6 @@
|
|
628
564
|
|
629
565
|
if (defaultPrevented) {
|
630
566
|
evt.preventDefault();
|
631
|
-
|
632
|
-
if (!defaultPreventedPreservedOnDispatch) {
|
633
|
-
Object.defineProperty(evt, 'defaultPrevented', {
|
634
|
-
get: function get() {
|
635
|
-
return true;
|
636
|
-
}
|
637
|
-
});
|
638
|
-
}
|
639
567
|
}
|
640
568
|
|
641
569
|
if (nativeDispatch) {
|
@@ -657,7 +585,7 @@
|
|
657
585
|
*/
|
658
586
|
|
659
587
|
var NAME = 'alert';
|
660
|
-
var VERSION = '5.0.0-
|
588
|
+
var VERSION = '5.0.0-alpha3';
|
661
589
|
var DATA_KEY = 'bs.alert';
|
662
590
|
var EVENT_KEY = "." + DATA_KEY;
|
663
591
|
var DATA_API_KEY = '.data-api';
|
@@ -785,26 +713,28 @@
|
|
785
713
|
|
786
714
|
|
787
715
|
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDismiss(new Alert()));
|
788
|
-
var $$1 = getjQuery();
|
789
716
|
/**
|
790
717
|
* ------------------------------------------------------------------------
|
791
718
|
* jQuery
|
792
719
|
* ------------------------------------------------------------------------
|
793
|
-
* add .
|
720
|
+
* add .Alert to jQuery only if jQuery is present
|
794
721
|
*/
|
795
722
|
|
796
|
-
|
723
|
+
onDOMContentLoaded(function () {
|
724
|
+
var $ = getjQuery();
|
725
|
+
/* istanbul ignore if */
|
797
726
|
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
727
|
+
if ($) {
|
728
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
729
|
+
$.fn[NAME] = Alert.jQueryInterface;
|
730
|
+
$.fn[NAME].Constructor = Alert;
|
802
731
|
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
732
|
+
$.fn[NAME].noConflict = function () {
|
733
|
+
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
734
|
+
return Alert.jQueryInterface;
|
735
|
+
};
|
736
|
+
}
|
737
|
+
});
|
808
738
|
|
809
739
|
/**
|
810
740
|
* ------------------------------------------------------------------------
|
@@ -813,7 +743,7 @@
|
|
813
743
|
*/
|
814
744
|
|
815
745
|
var NAME$1 = 'button';
|
816
|
-
var VERSION$1 = '5.0.0-
|
746
|
+
var VERSION$1 = '5.0.0-alpha3';
|
817
747
|
var DATA_KEY$1 = 'bs.button';
|
818
748
|
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
819
749
|
var DATA_API_KEY$1 = '.data-api';
|
@@ -892,30 +822,32 @@
|
|
892
822
|
|
893
823
|
data.toggle();
|
894
824
|
});
|
895
|
-
var $$2 = getjQuery();
|
896
825
|
/**
|
897
826
|
* ------------------------------------------------------------------------
|
898
827
|
* jQuery
|
899
828
|
* ------------------------------------------------------------------------
|
900
|
-
* add .
|
829
|
+
* add .Button to jQuery only if jQuery is present
|
901
830
|
*/
|
902
831
|
|
903
|
-
|
832
|
+
onDOMContentLoaded(function () {
|
833
|
+
var $ = getjQuery();
|
834
|
+
/* istanbul ignore if */
|
904
835
|
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
836
|
+
if ($) {
|
837
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$1];
|
838
|
+
$.fn[NAME$1] = Button.jQueryInterface;
|
839
|
+
$.fn[NAME$1].Constructor = Button;
|
909
840
|
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
841
|
+
$.fn[NAME$1].noConflict = function () {
|
842
|
+
$.fn[NAME$1] = JQUERY_NO_CONFLICT;
|
843
|
+
return Button.jQueryInterface;
|
844
|
+
};
|
845
|
+
}
|
846
|
+
});
|
915
847
|
|
916
848
|
/**
|
917
849
|
* --------------------------------------------------------------------------
|
918
|
-
* Bootstrap (v5.0.0-
|
850
|
+
* Bootstrap (v5.0.0-alpha3): dom/manipulator.js
|
919
851
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
920
852
|
* --------------------------------------------------------------------------
|
921
853
|
*/
|
@@ -979,52 +911,41 @@
|
|
979
911
|
top: element.offsetTop,
|
980
912
|
left: element.offsetLeft
|
981
913
|
};
|
982
|
-
},
|
983
|
-
toggleClass: function toggleClass(element, className) {
|
984
|
-
if (!element) {
|
985
|
-
return;
|
986
|
-
}
|
987
|
-
|
988
|
-
if (element.classList.contains(className)) {
|
989
|
-
element.classList.remove(className);
|
990
|
-
} else {
|
991
|
-
element.classList.add(className);
|
992
|
-
}
|
993
914
|
}
|
994
915
|
};
|
995
916
|
|
996
917
|
/**
|
997
918
|
* --------------------------------------------------------------------------
|
998
|
-
* Bootstrap (v5.0.0-
|
919
|
+
* Bootstrap (v5.0.0-alpha3): dom/selector-engine.js
|
999
920
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
1000
921
|
* --------------------------------------------------------------------------
|
1001
922
|
*/
|
923
|
+
|
1002
924
|
/**
|
1003
925
|
* ------------------------------------------------------------------------
|
1004
926
|
* Constants
|
1005
927
|
* ------------------------------------------------------------------------
|
1006
928
|
*/
|
1007
|
-
|
1008
929
|
var NODE_TEXT = 3;
|
1009
930
|
var SelectorEngine = {
|
1010
931
|
matches: function matches(element, selector) {
|
1011
932
|
return element.matches(selector);
|
1012
933
|
},
|
1013
|
-
find: function find
|
934
|
+
find: function find(selector, element) {
|
1014
935
|
var _ref;
|
1015
936
|
|
1016
937
|
if (element === void 0) {
|
1017
938
|
element = document.documentElement;
|
1018
939
|
}
|
1019
940
|
|
1020
|
-
return (_ref = []).concat.apply(_ref,
|
941
|
+
return (_ref = []).concat.apply(_ref, Element.prototype.querySelectorAll.call(element, selector));
|
1021
942
|
},
|
1022
|
-
findOne: function findOne
|
943
|
+
findOne: function findOne(selector, element) {
|
1023
944
|
if (element === void 0) {
|
1024
945
|
element = document.documentElement;
|
1025
946
|
}
|
1026
947
|
|
1027
|
-
return
|
948
|
+
return Element.prototype.querySelector.call(element, selector);
|
1028
949
|
},
|
1029
950
|
children: function children(element, selector) {
|
1030
951
|
var _ref2;
|
@@ -1084,7 +1005,7 @@
|
|
1084
1005
|
*/
|
1085
1006
|
|
1086
1007
|
var NAME$2 = 'carousel';
|
1087
|
-
var VERSION$2 = '5.0.0-
|
1008
|
+
var VERSION$2 = '5.0.0-alpha3';
|
1088
1009
|
var DATA_KEY$2 = 'bs.carousel';
|
1089
1010
|
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
1090
1011
|
var DATA_API_KEY$2 = '.data-api';
|
@@ -1222,6 +1143,8 @@
|
|
1222
1143
|
}
|
1223
1144
|
|
1224
1145
|
if (this._config && this._config.interval && !this._isPaused) {
|
1146
|
+
this._updateInterval();
|
1147
|
+
|
1225
1148
|
this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
|
1226
1149
|
}
|
1227
1150
|
};
|
@@ -1463,6 +1386,23 @@
|
|
1463
1386
|
}
|
1464
1387
|
};
|
1465
1388
|
|
1389
|
+
_proto._updateInterval = function _updateInterval() {
|
1390
|
+
var element = this._activeElement || SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
1391
|
+
|
1392
|
+
if (!element) {
|
1393
|
+
return;
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
var elementInterval = parseInt(element.getAttribute('data-interval'), 10);
|
1397
|
+
|
1398
|
+
if (elementInterval) {
|
1399
|
+
this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
|
1400
|
+
this._config.interval = elementInterval;
|
1401
|
+
} else {
|
1402
|
+
this._config.interval = this._config.defaultInterval || this._config.interval;
|
1403
|
+
}
|
1404
|
+
};
|
1405
|
+
|
1466
1406
|
_proto._slide = function _slide(direction, element) {
|
1467
1407
|
var _this4 = this;
|
1468
1408
|
|
@@ -1513,20 +1453,13 @@
|
|
1513
1453
|
|
1514
1454
|
this._setActiveIndicatorElement(nextElement);
|
1515
1455
|
|
1456
|
+
this._activeElement = nextElement;
|
1457
|
+
|
1516
1458
|
if (this._element.classList.contains(CLASS_NAME_SLIDE)) {
|
1517
1459
|
nextElement.classList.add(orderClassName);
|
1518
1460
|
reflow(nextElement);
|
1519
1461
|
activeElement.classList.add(directionalClassName);
|
1520
1462
|
nextElement.classList.add(directionalClassName);
|
1521
|
-
var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
|
1522
|
-
|
1523
|
-
if (nextElementInterval) {
|
1524
|
-
this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
|
1525
|
-
this._config.interval = nextElementInterval;
|
1526
|
-
} else {
|
1527
|
-
this._config.interval = this._config.defaultInterval || this._config.interval;
|
1528
|
-
}
|
1529
|
-
|
1530
1463
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
1531
1464
|
EventHandler.one(activeElement, TRANSITION_END, function () {
|
1532
1465
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
@@ -1653,26 +1586,28 @@
|
|
1653
1586
|
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
1654
1587
|
}
|
1655
1588
|
});
|
1656
|
-
var $$3 = getjQuery();
|
1657
1589
|
/**
|
1658
1590
|
* ------------------------------------------------------------------------
|
1659
1591
|
* jQuery
|
1660
1592
|
* ------------------------------------------------------------------------
|
1661
|
-
* add .
|
1593
|
+
* add .Carousel to jQuery only if jQuery is present
|
1662
1594
|
*/
|
1663
1595
|
|
1664
|
-
|
1596
|
+
onDOMContentLoaded(function () {
|
1597
|
+
var $ = getjQuery();
|
1598
|
+
/* istanbul ignore if */
|
1665
1599
|
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1600
|
+
if ($) {
|
1601
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$2];
|
1602
|
+
$.fn[NAME$2] = Carousel.jQueryInterface;
|
1603
|
+
$.fn[NAME$2].Constructor = Carousel;
|
1670
1604
|
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1605
|
+
$.fn[NAME$2].noConflict = function () {
|
1606
|
+
$.fn[NAME$2] = JQUERY_NO_CONFLICT;
|
1607
|
+
return Carousel.jQueryInterface;
|
1608
|
+
};
|
1609
|
+
}
|
1610
|
+
});
|
1676
1611
|
|
1677
1612
|
/**
|
1678
1613
|
* ------------------------------------------------------------------------
|
@@ -1681,7 +1616,7 @@
|
|
1681
1616
|
*/
|
1682
1617
|
|
1683
1618
|
var NAME$3 = 'collapse';
|
1684
|
-
var VERSION$3 = '5.0.0-
|
1619
|
+
var VERSION$3 = '5.0.0-alpha3';
|
1685
1620
|
var DATA_KEY$3 = 'bs.collapse';
|
1686
1621
|
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
1687
1622
|
var DATA_API_KEY$3 = '.data-api';
|
@@ -2053,26 +1988,28 @@
|
|
2053
1988
|
Collapse.collapseInterface(element, config);
|
2054
1989
|
});
|
2055
1990
|
});
|
2056
|
-
var $$4 = getjQuery();
|
2057
1991
|
/**
|
2058
1992
|
* ------------------------------------------------------------------------
|
2059
1993
|
* jQuery
|
2060
1994
|
* ------------------------------------------------------------------------
|
2061
|
-
* add .
|
1995
|
+
* add .Collapse to jQuery only if jQuery is present
|
2062
1996
|
*/
|
2063
1997
|
|
2064
|
-
|
1998
|
+
onDOMContentLoaded(function () {
|
1999
|
+
var $ = getjQuery();
|
2000
|
+
/* istanbul ignore if */
|
2065
2001
|
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2002
|
+
if ($) {
|
2003
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$3];
|
2004
|
+
$.fn[NAME$3] = Collapse.jQueryInterface;
|
2005
|
+
$.fn[NAME$3].Constructor = Collapse;
|
2070
2006
|
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2007
|
+
$.fn[NAME$3].noConflict = function () {
|
2008
|
+
$.fn[NAME$3] = JQUERY_NO_CONFLICT;
|
2009
|
+
return Collapse.jQueryInterface;
|
2010
|
+
};
|
2011
|
+
}
|
2012
|
+
});
|
2076
2013
|
|
2077
2014
|
/**
|
2078
2015
|
* ------------------------------------------------------------------------
|
@@ -2081,7 +2018,7 @@
|
|
2081
2018
|
*/
|
2082
2019
|
|
2083
2020
|
var NAME$4 = 'dropdown';
|
2084
|
-
var VERSION$4 = '5.0.0-
|
2021
|
+
var VERSION$4 = '5.0.0-alpha3';
|
2085
2022
|
var DATA_KEY$4 = 'bs.dropdown';
|
2086
2023
|
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
2087
2024
|
var DATA_API_KEY$4 = '.data-api';
|
@@ -2234,8 +2171,10 @@
|
|
2234
2171
|
|
2235
2172
|
this._element.setAttribute('aria-expanded', true);
|
2236
2173
|
|
2237
|
-
|
2238
|
-
|
2174
|
+
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
2175
|
+
|
2176
|
+
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
2177
|
+
|
2239
2178
|
EventHandler.trigger(parent, EVENT_SHOWN$1, relatedTarget);
|
2240
2179
|
};
|
2241
2180
|
|
@@ -2258,8 +2197,10 @@
|
|
2258
2197
|
this._popper.destroy();
|
2259
2198
|
}
|
2260
2199
|
|
2261
|
-
|
2262
|
-
|
2200
|
+
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
2201
|
+
|
2202
|
+
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
2203
|
+
|
2263
2204
|
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
2264
2205
|
};
|
2265
2206
|
|
@@ -2311,11 +2252,7 @@
|
|
2311
2252
|
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
2312
2253
|
|
2313
2254
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
2314
|
-
placement = PLACEMENT_TOP;
|
2315
|
-
|
2316
|
-
if (this._menu.classList.contains(CLASS_NAME_MENURIGHT)) {
|
2317
|
-
placement = PLACEMENT_TOPEND;
|
2318
|
-
}
|
2255
|
+
placement = this._menu.classList.contains(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
2319
2256
|
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPRIGHT)) {
|
2320
2257
|
placement = PLACEMENT_RIGHT;
|
2321
2258
|
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPLEFT)) {
|
@@ -2559,26 +2496,28 @@
|
|
2559
2496
|
EventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
|
2560
2497
|
return e.stopPropagation();
|
2561
2498
|
});
|
2562
|
-
var $$5 = getjQuery();
|
2563
2499
|
/**
|
2564
2500
|
* ------------------------------------------------------------------------
|
2565
2501
|
* jQuery
|
2566
2502
|
* ------------------------------------------------------------------------
|
2567
|
-
* add .
|
2503
|
+
* add .Dropdown to jQuery only if jQuery is present
|
2568
2504
|
*/
|
2569
2505
|
|
2570
|
-
|
2506
|
+
onDOMContentLoaded(function () {
|
2507
|
+
var $ = getjQuery();
|
2508
|
+
/* istanbul ignore if */
|
2571
2509
|
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2510
|
+
if ($) {
|
2511
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$4];
|
2512
|
+
$.fn[NAME$4] = Dropdown.jQueryInterface;
|
2513
|
+
$.fn[NAME$4].Constructor = Dropdown;
|
2576
2514
|
|
2577
|
-
|
2578
|
-
|
2579
|
-
|
2580
|
-
|
2581
|
-
|
2515
|
+
$.fn[NAME$4].noConflict = function () {
|
2516
|
+
$.fn[NAME$4] = JQUERY_NO_CONFLICT;
|
2517
|
+
return Dropdown.jQueryInterface;
|
2518
|
+
};
|
2519
|
+
}
|
2520
|
+
});
|
2582
2521
|
|
2583
2522
|
/**
|
2584
2523
|
* ------------------------------------------------------------------------
|
@@ -2587,7 +2526,7 @@
|
|
2587
2526
|
*/
|
2588
2527
|
|
2589
2528
|
var NAME$5 = 'modal';
|
2590
|
-
var VERSION$5 = '5.0.0-
|
2529
|
+
var VERSION$5 = '5.0.0-alpha3';
|
2591
2530
|
var DATA_KEY$5 = 'bs.modal';
|
2592
2531
|
var EVENT_KEY$5 = "." + DATA_KEY$5;
|
2593
2532
|
var DATA_API_KEY$5 = '.data-api';
|
@@ -3188,30 +3127,32 @@
|
|
3188
3127
|
|
3189
3128
|
data.show(this);
|
3190
3129
|
});
|
3191
|
-
var $$6 = getjQuery();
|
3192
3130
|
/**
|
3193
3131
|
* ------------------------------------------------------------------------
|
3194
3132
|
* jQuery
|
3195
3133
|
* ------------------------------------------------------------------------
|
3196
|
-
* add .
|
3134
|
+
* add .Modal to jQuery only if jQuery is present
|
3197
3135
|
*/
|
3198
3136
|
|
3199
|
-
|
3137
|
+
onDOMContentLoaded(function () {
|
3138
|
+
var $ = getjQuery();
|
3139
|
+
/* istanbul ignore if */
|
3200
3140
|
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3141
|
+
if ($) {
|
3142
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$5];
|
3143
|
+
$.fn[NAME$5] = Modal.jQueryInterface;
|
3144
|
+
$.fn[NAME$5].Constructor = Modal;
|
3205
3145
|
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3146
|
+
$.fn[NAME$5].noConflict = function () {
|
3147
|
+
$.fn[NAME$5] = JQUERY_NO_CONFLICT;
|
3148
|
+
return Modal.jQueryInterface;
|
3149
|
+
};
|
3150
|
+
}
|
3151
|
+
});
|
3211
3152
|
|
3212
3153
|
/**
|
3213
3154
|
* --------------------------------------------------------------------------
|
3214
|
-
* Bootstrap (v5.0.0-
|
3155
|
+
* Bootstrap (v5.0.0-alpha3): util/sanitizer.js
|
3215
3156
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
3216
3157
|
* --------------------------------------------------------------------------
|
3217
3158
|
*/
|
@@ -3343,7 +3284,7 @@
|
|
3343
3284
|
*/
|
3344
3285
|
|
3345
3286
|
var NAME$6 = 'tooltip';
|
3346
|
-
var VERSION$6 = '5.0.0-
|
3287
|
+
var VERSION$6 = '5.0.0-alpha3';
|
3347
3288
|
var DATA_KEY$6 = 'bs.tooltip';
|
3348
3289
|
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
3349
3290
|
var CLASS_PREFIX = 'bs-tooltip';
|
@@ -4067,27 +4008,29 @@
|
|
4067
4008
|
|
4068
4009
|
return Tooltip;
|
4069
4010
|
}();
|
4070
|
-
|
4071
|
-
var $$7 = getjQuery();
|
4072
4011
|
/**
|
4073
4012
|
* ------------------------------------------------------------------------
|
4074
4013
|
* jQuery
|
4075
4014
|
* ------------------------------------------------------------------------
|
4076
|
-
* add .
|
4015
|
+
* add .Tooltip to jQuery only if jQuery is present
|
4077
4016
|
*/
|
4078
4017
|
|
4079
|
-
/* istanbul ignore if */
|
4080
4018
|
|
4081
|
-
|
4082
|
-
var
|
4083
|
-
|
4084
|
-
$$7.fn[NAME$6].Constructor = Tooltip;
|
4019
|
+
onDOMContentLoaded(function () {
|
4020
|
+
var $ = getjQuery();
|
4021
|
+
/* istanbul ignore if */
|
4085
4022
|
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4023
|
+
if ($) {
|
4024
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$6];
|
4025
|
+
$.fn[NAME$6] = Tooltip.jQueryInterface;
|
4026
|
+
$.fn[NAME$6].Constructor = Tooltip;
|
4027
|
+
|
4028
|
+
$.fn[NAME$6].noConflict = function () {
|
4029
|
+
$.fn[NAME$6] = JQUERY_NO_CONFLICT;
|
4030
|
+
return Tooltip.jQueryInterface;
|
4031
|
+
};
|
4032
|
+
}
|
4033
|
+
});
|
4091
4034
|
|
4092
4035
|
/**
|
4093
4036
|
* ------------------------------------------------------------------------
|
@@ -4096,7 +4039,7 @@
|
|
4096
4039
|
*/
|
4097
4040
|
|
4098
4041
|
var NAME$7 = 'popover';
|
4099
|
-
var VERSION$7 = '5.0.0-
|
4042
|
+
var VERSION$7 = '5.0.0-alpha3';
|
4100
4043
|
var DATA_KEY$7 = 'bs.popover';
|
4101
4044
|
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
4102
4045
|
var CLASS_PREFIX$1 = 'bs-popover';
|
@@ -4256,26 +4199,29 @@
|
|
4256
4199
|
|
4257
4200
|
return Popover;
|
4258
4201
|
}(Tooltip);
|
4259
|
-
|
4260
|
-
var $$8 = getjQuery();
|
4261
4202
|
/**
|
4262
4203
|
* ------------------------------------------------------------------------
|
4263
4204
|
* jQuery
|
4264
4205
|
* ------------------------------------------------------------------------
|
4206
|
+
* add .Popover to jQuery only if jQuery is present
|
4265
4207
|
*/
|
4266
4208
|
|
4267
|
-
/* istanbul ignore if */
|
4268
4209
|
|
4269
|
-
|
4270
|
-
var
|
4271
|
-
|
4272
|
-
$$8.fn[NAME$7].Constructor = Popover;
|
4210
|
+
onDOMContentLoaded(function () {
|
4211
|
+
var $ = getjQuery();
|
4212
|
+
/* istanbul ignore if */
|
4273
4213
|
|
4274
|
-
|
4275
|
-
|
4276
|
-
|
4277
|
-
|
4278
|
-
|
4214
|
+
if ($) {
|
4215
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$7];
|
4216
|
+
$.fn[NAME$7] = Popover.jQueryInterface;
|
4217
|
+
$.fn[NAME$7].Constructor = Popover;
|
4218
|
+
|
4219
|
+
$.fn[NAME$7].noConflict = function () {
|
4220
|
+
$.fn[NAME$7] = JQUERY_NO_CONFLICT;
|
4221
|
+
return Popover.jQueryInterface;
|
4222
|
+
};
|
4223
|
+
}
|
4224
|
+
});
|
4279
4225
|
|
4280
4226
|
/**
|
4281
4227
|
* ------------------------------------------------------------------------
|
@@ -4284,7 +4230,7 @@
|
|
4284
4230
|
*/
|
4285
4231
|
|
4286
4232
|
var NAME$8 = 'scrollspy';
|
4287
|
-
var VERSION$8 = '5.0.0-
|
4233
|
+
var VERSION$8 = '5.0.0-alpha3';
|
4288
4234
|
var DATA_KEY$8 = 'bs.scrollspy';
|
4289
4235
|
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
4290
4236
|
var DATA_API_KEY$6 = '.data-api';
|
@@ -4556,25 +4502,28 @@
|
|
4556
4502
|
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
4557
4503
|
});
|
4558
4504
|
});
|
4559
|
-
var $$9 = getjQuery();
|
4560
4505
|
/**
|
4561
4506
|
* ------------------------------------------------------------------------
|
4562
4507
|
* jQuery
|
4563
4508
|
* ------------------------------------------------------------------------
|
4509
|
+
* add .ScrollSpy to jQuery only if jQuery is present
|
4564
4510
|
*/
|
4565
4511
|
|
4566
|
-
|
4512
|
+
onDOMContentLoaded(function () {
|
4513
|
+
var $ = getjQuery();
|
4514
|
+
/* istanbul ignore if */
|
4567
4515
|
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4516
|
+
if ($) {
|
4517
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$8];
|
4518
|
+
$.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
4519
|
+
$.fn[NAME$8].Constructor = ScrollSpy;
|
4572
4520
|
|
4573
|
-
|
4574
|
-
|
4575
|
-
|
4576
|
-
|
4577
|
-
|
4521
|
+
$.fn[NAME$8].noConflict = function () {
|
4522
|
+
$.fn[NAME$8] = JQUERY_NO_CONFLICT;
|
4523
|
+
return ScrollSpy.jQueryInterface;
|
4524
|
+
};
|
4525
|
+
}
|
4526
|
+
});
|
4578
4527
|
|
4579
4528
|
/**
|
4580
4529
|
* ------------------------------------------------------------------------
|
@@ -4583,7 +4532,7 @@
|
|
4583
4532
|
*/
|
4584
4533
|
|
4585
4534
|
var NAME$9 = 'tab';
|
4586
|
-
var VERSION$9 = '5.0.0-
|
4535
|
+
var VERSION$9 = '5.0.0-alpha3';
|
4587
4536
|
var DATA_KEY$9 = 'bs.tab';
|
4588
4537
|
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
4589
4538
|
var DATA_API_KEY$7 = '.data-api';
|
@@ -4782,26 +4731,28 @@
|
|
4782
4731
|
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
4783
4732
|
data.show();
|
4784
4733
|
});
|
4785
|
-
var $$a = getjQuery();
|
4786
4734
|
/**
|
4787
4735
|
* ------------------------------------------------------------------------
|
4788
4736
|
* jQuery
|
4789
4737
|
* ------------------------------------------------------------------------
|
4790
|
-
* add .
|
4738
|
+
* add .Tab to jQuery only if jQuery is present
|
4791
4739
|
*/
|
4792
4740
|
|
4793
|
-
|
4741
|
+
onDOMContentLoaded(function () {
|
4742
|
+
var $ = getjQuery();
|
4743
|
+
/* istanbul ignore if */
|
4794
4744
|
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4745
|
+
if ($) {
|
4746
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$9];
|
4747
|
+
$.fn[NAME$9] = Tab.jQueryInterface;
|
4748
|
+
$.fn[NAME$9].Constructor = Tab;
|
4799
4749
|
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4750
|
+
$.fn[NAME$9].noConflict = function () {
|
4751
|
+
$.fn[NAME$9] = JQUERY_NO_CONFLICT;
|
4752
|
+
return Tab.jQueryInterface;
|
4753
|
+
};
|
4754
|
+
}
|
4755
|
+
});
|
4805
4756
|
|
4806
4757
|
/**
|
4807
4758
|
* ------------------------------------------------------------------------
|
@@ -4810,7 +4761,7 @@
|
|
4810
4761
|
*/
|
4811
4762
|
|
4812
4763
|
var NAME$a = 'toast';
|
4813
|
-
var VERSION$a = '5.0.0-
|
4764
|
+
var VERSION$a = '5.0.0-alpha3';
|
4814
4765
|
var DATA_KEY$a = 'bs.toast';
|
4815
4766
|
var EVENT_KEY$a = "." + DATA_KEY$a;
|
4816
4767
|
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
|
@@ -5005,31 +4956,33 @@
|
|
5005
4956
|
|
5006
4957
|
return Toast;
|
5007
4958
|
}();
|
5008
|
-
|
5009
|
-
var $$b = getjQuery();
|
5010
4959
|
/**
|
5011
4960
|
* ------------------------------------------------------------------------
|
5012
4961
|
* jQuery
|
5013
4962
|
* ------------------------------------------------------------------------
|
5014
|
-
*
|
4963
|
+
* add .Toast to jQuery only if jQuery is present
|
5015
4964
|
*/
|
5016
4965
|
|
5017
|
-
/* istanbul ignore if */
|
5018
4966
|
|
5019
|
-
|
5020
|
-
var
|
5021
|
-
|
5022
|
-
$$b.fn[NAME$a].Constructor = Toast;
|
4967
|
+
onDOMContentLoaded(function () {
|
4968
|
+
var $ = getjQuery();
|
4969
|
+
/* istanbul ignore if */
|
5023
4970
|
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
4971
|
+
if ($) {
|
4972
|
+
var JQUERY_NO_CONFLICT = $.fn[NAME$a];
|
4973
|
+
$.fn[NAME$a] = Toast.jQueryInterface;
|
4974
|
+
$.fn[NAME$a].Constructor = Toast;
|
4975
|
+
|
4976
|
+
$.fn[NAME$a].noConflict = function () {
|
4977
|
+
$.fn[NAME$a] = JQUERY_NO_CONFLICT;
|
4978
|
+
return Toast.jQueryInterface;
|
4979
|
+
};
|
4980
|
+
}
|
4981
|
+
});
|
5029
4982
|
|
5030
4983
|
/**
|
5031
4984
|
* --------------------------------------------------------------------------
|
5032
|
-
* Bootstrap (v5.0.0-
|
4985
|
+
* Bootstrap (v5.0.0-alpha3): index.umd.js
|
5033
4986
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
5034
4987
|
* --------------------------------------------------------------------------
|
5035
4988
|
*/
|