bootstrap 5.0.0.beta1 → 5.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +3 -3
- data/assets/javascripts/bootstrap-global-this-define.js +6 -0
- data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
- data/assets/javascripts/bootstrap-sprockets.js +3 -0
- data/assets/javascripts/bootstrap.js +429 -486
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/javascripts/bootstrap/alert.js +81 -80
- data/assets/javascripts/bootstrap/base-component.js +75 -0
- data/assets/javascripts/bootstrap/button.js +60 -72
- data/assets/javascripts/bootstrap/carousel.js +131 -110
- data/assets/javascripts/bootstrap/collapse.js +94 -77
- data/assets/javascripts/bootstrap/dom/data.js +3 -3
- data/assets/javascripts/bootstrap/dom/event-handler.js +6 -5
- data/assets/javascripts/bootstrap/dom/manipulator.js +3 -3
- data/assets/javascripts/bootstrap/dom/selector-engine.js +6 -11
- data/assets/javascripts/bootstrap/dropdown.js +159 -90
- data/assets/javascripts/bootstrap/modal.js +132 -125
- data/assets/javascripts/bootstrap/popover.js +73 -25
- data/assets/javascripts/bootstrap/scrollspy.js +93 -76
- data/assets/javascripts/bootstrap/tab.js +78 -82
- data/assets/javascripts/bootstrap/toast.js +79 -75
- data/assets/javascripts/bootstrap/tooltip.js +207 -185
- data/assets/stylesheets/_bootstrap-grid.scss +3 -3
- data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
- data/assets/stylesheets/_bootstrap.scss +3 -3
- data/assets/stylesheets/bootstrap/_accordion.scss +1 -0
- data/assets/stylesheets/bootstrap/_alert.scss +6 -6
- data/assets/stylesheets/bootstrap/_carousel.scss +12 -6
- data/assets/stylesheets/bootstrap/_close.scss +1 -1
- data/assets/stylesheets/bootstrap/_dropdown.scss +29 -15
- data/assets/stylesheets/bootstrap/_list-group.scss +5 -5
- data/assets/stylesheets/bootstrap/_nav.scss +5 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +12 -1
- data/assets/stylesheets/bootstrap/_pagination.scss +2 -2
- data/assets/stylesheets/bootstrap/_popover.scss +0 -15
- data/assets/stylesheets/bootstrap/_reboot.scss +6 -6
- data/assets/stylesheets/bootstrap/_tables.scss +1 -1
- data/assets/stylesheets/bootstrap/_toasts.scss +1 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +6 -0
- data/assets/stylesheets/bootstrap/_variables.scss +30 -7
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +5 -5
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +1 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +1 -1
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +1 -2
- data/assets/stylesheets/bootstrap/forms/_validation.scss +1 -1
- data/assets/stylesheets/bootstrap/helpers/_ratio.scss +2 -2
- data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +13 -6
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +4 -0
- data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +3 -2
- data/assets/stylesheets/bootstrap/utilities/_api.scss +1 -1
- data/bootstrap.gemspec +1 -3
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +15 -2
- data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
- data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
- data/test/dummy_rails/app/views/pages/root.html +89 -0
- data/test/dummy_rails/config/application.rb +0 -3
- data/test/gemfiles/rails_6_1.gemfile +7 -0
- metadata +13 -36
- data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
@@ -1,13 +1,13 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap modal.js v5.0.0-
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap modal.js v5.0.0-beta2 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
5
5
|
*/
|
6
6
|
(function (global, factory) {
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
8
|
-
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
10
|
-
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
10
|
+
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
11
11
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
13
13
|
|
@@ -15,10 +15,61 @@
|
|
15
15
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
16
16
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
17
17
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
18
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
19
|
+
|
20
|
+
function _defineProperties(target, props) {
|
21
|
+
for (var i = 0; i < props.length; i++) {
|
22
|
+
var descriptor = props[i];
|
23
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
24
|
+
descriptor.configurable = true;
|
25
|
+
if ("value" in descriptor) descriptor.writable = true;
|
26
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
31
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
32
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
33
|
+
return Constructor;
|
34
|
+
}
|
35
|
+
|
36
|
+
function _extends() {
|
37
|
+
_extends = Object.assign || function (target) {
|
38
|
+
for (var i = 1; i < arguments.length; i++) {
|
39
|
+
var source = arguments[i];
|
40
|
+
|
41
|
+
for (var key in source) {
|
42
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
43
|
+
target[key] = source[key];
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
return target;
|
49
|
+
};
|
50
|
+
|
51
|
+
return _extends.apply(this, arguments);
|
52
|
+
}
|
53
|
+
|
54
|
+
function _inheritsLoose(subClass, superClass) {
|
55
|
+
subClass.prototype = Object.create(superClass.prototype);
|
56
|
+
subClass.prototype.constructor = subClass;
|
57
|
+
|
58
|
+
_setPrototypeOf(subClass, superClass);
|
59
|
+
}
|
60
|
+
|
61
|
+
function _setPrototypeOf(o, p) {
|
62
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
63
|
+
o.__proto__ = p;
|
64
|
+
return o;
|
65
|
+
};
|
66
|
+
|
67
|
+
return _setPrototypeOf(o, p);
|
68
|
+
}
|
18
69
|
|
19
70
|
/**
|
20
71
|
* --------------------------------------------------------------------------
|
21
|
-
* Bootstrap (v5.0.0-
|
72
|
+
* Bootstrap (v5.0.0-beta2): util/index.js
|
22
73
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
23
74
|
* --------------------------------------------------------------------------
|
24
75
|
*/
|
@@ -37,7 +88,20 @@
|
|
37
88
|
var selector = element.getAttribute('data-bs-target');
|
38
89
|
|
39
90
|
if (!selector || selector === '#') {
|
40
|
-
var hrefAttr = element.getAttribute('href');
|
91
|
+
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
92
|
+
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
93
|
+
// `document.querySelector` will rightfully complain it is invalid.
|
94
|
+
// See https://github.com/twbs/bootstrap/issues/32273
|
95
|
+
|
96
|
+
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
97
|
+
return null;
|
98
|
+
} // Just in case some CMS puts out a full URL with the anchor appended
|
99
|
+
|
100
|
+
|
101
|
+
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
102
|
+
hrefAttr = '#' + hrefAttr.split('#')[1];
|
103
|
+
}
|
104
|
+
|
41
105
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
42
106
|
}
|
43
107
|
|
@@ -105,7 +169,7 @@
|
|
105
169
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
106
170
|
|
107
171
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
108
|
-
throw new
|
172
|
+
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
109
173
|
}
|
110
174
|
});
|
111
175
|
};
|
@@ -149,57 +213,24 @@
|
|
149
213
|
|
150
214
|
var isRTL = document.documentElement.dir === 'rtl';
|
151
215
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
* ------------------------------------------------------------------------
|
157
|
-
* Constants
|
158
|
-
* ------------------------------------------------------------------------
|
159
|
-
*/
|
160
|
-
|
161
|
-
var VERSION = '5.0.0-beta1';
|
162
|
-
|
163
|
-
var BaseComponent = /*#__PURE__*/function () {
|
164
|
-
function BaseComponent(element) {
|
165
|
-
if (!element) {
|
166
|
-
return;
|
167
|
-
}
|
168
|
-
|
169
|
-
this._element = element;
|
170
|
-
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
171
|
-
}
|
172
|
-
|
173
|
-
var _proto = BaseComponent.prototype;
|
174
|
-
|
175
|
-
_proto.dispose = function dispose() {
|
176
|
-
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
177
|
-
this._element = null;
|
178
|
-
}
|
179
|
-
/** Static */
|
180
|
-
;
|
216
|
+
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
217
|
+
onDOMContentLoaded(function () {
|
218
|
+
var $ = getjQuery();
|
219
|
+
/* istanbul ignore if */
|
181
220
|
|
182
|
-
|
183
|
-
|
184
|
-
|
221
|
+
if ($) {
|
222
|
+
var JQUERY_NO_CONFLICT = $.fn[name];
|
223
|
+
$.fn[name] = plugin.jQueryInterface;
|
224
|
+
$.fn[name].Constructor = plugin;
|
185
225
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
226
|
+
$.fn[name].noConflict = function () {
|
227
|
+
$.fn[name] = JQUERY_NO_CONFLICT;
|
228
|
+
return plugin.jQueryInterface;
|
229
|
+
};
|
190
230
|
}
|
191
|
-
}
|
192
|
-
|
193
|
-
return BaseComponent;
|
194
|
-
}();
|
195
|
-
|
196
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
197
|
-
|
198
|
-
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
199
|
-
|
200
|
-
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
231
|
+
});
|
232
|
+
};
|
201
233
|
|
202
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
203
234
|
/**
|
204
235
|
* ------------------------------------------------------------------------
|
205
236
|
* Constants
|
@@ -362,7 +393,7 @@
|
|
362
393
|
|
363
394
|
if (transition) {
|
364
395
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
365
|
-
EventHandler__default['default'].one(this._element,
|
396
|
+
EventHandler__default['default'].one(this._element, 'transitionend', function (event) {
|
366
397
|
return _this3._hideModal(event);
|
367
398
|
});
|
368
399
|
emulateTransitionEnd(this._element, transitionDuration);
|
@@ -455,7 +486,7 @@
|
|
455
486
|
|
456
487
|
if (transition) {
|
457
488
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
458
|
-
EventHandler__default['default'].one(this._dialog,
|
489
|
+
EventHandler__default['default'].one(this._dialog, 'transitionend', transitionComplete);
|
459
490
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
460
491
|
} else {
|
461
492
|
transitionComplete();
|
@@ -577,7 +608,7 @@
|
|
577
608
|
}
|
578
609
|
|
579
610
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
580
|
-
EventHandler__default['default'].one(this._backdrop,
|
611
|
+
EventHandler__default['default'].one(this._backdrop, 'transitionend', callback);
|
581
612
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
582
613
|
} else if (!this._isShown && this._backdrop) {
|
583
614
|
this._backdrop.classList.remove(CLASS_NAME_SHOW);
|
@@ -591,7 +622,7 @@
|
|
591
622
|
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
592
623
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
593
624
|
|
594
|
-
EventHandler__default['default'].one(this._backdrop,
|
625
|
+
EventHandler__default['default'].one(this._backdrop, 'transitionend', callbackRemove);
|
595
626
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
596
627
|
} else {
|
597
628
|
callbackRemove();
|
@@ -619,12 +650,12 @@
|
|
619
650
|
this._element.classList.add(CLASS_NAME_STATIC);
|
620
651
|
|
621
652
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
622
|
-
EventHandler__default['default'].off(this._element,
|
623
|
-
EventHandler__default['default'].one(this._element,
|
653
|
+
EventHandler__default['default'].off(this._element, 'transitionend');
|
654
|
+
EventHandler__default['default'].one(this._element, 'transitionend', function () {
|
624
655
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
625
656
|
|
626
657
|
if (!isModalOverflowing) {
|
627
|
-
EventHandler__default['default'].one(_this10._element,
|
658
|
+
EventHandler__default['default'].one(_this10._element, 'transitionend', function () {
|
628
659
|
_this10._element.style.overflowY = '';
|
629
660
|
});
|
630
661
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
@@ -665,60 +696,50 @@
|
|
665
696
|
var _this11 = this;
|
666
697
|
|
667
698
|
if (this._isBodyOverflowing) {
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
var actualMargin = element.style.marginRight;
|
680
|
-
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
681
|
-
Manipulator__default['default'].setDataAttribute(element, 'margin-right', actualMargin);
|
682
|
-
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
683
|
-
}); // Adjust body padding
|
684
|
-
|
685
|
-
var actualPadding = document.body.style.paddingRight;
|
686
|
-
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
687
|
-
Manipulator__default['default'].setDataAttribute(document.body, 'padding-right', actualPadding);
|
688
|
-
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
699
|
+
this._setElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight', function (calculatedValue) {
|
700
|
+
return calculatedValue + _this11._scrollbarWidth;
|
701
|
+
});
|
702
|
+
|
703
|
+
this._setElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight', function (calculatedValue) {
|
704
|
+
return calculatedValue - _this11._scrollbarWidth;
|
705
|
+
});
|
706
|
+
|
707
|
+
this._setElementAttributes('body', 'paddingRight', function (calculatedValue) {
|
708
|
+
return calculatedValue + _this11._scrollbarWidth;
|
709
|
+
});
|
689
710
|
}
|
690
711
|
|
691
712
|
document.body.classList.add(CLASS_NAME_OPEN);
|
692
713
|
};
|
693
714
|
|
694
|
-
_proto.
|
695
|
-
|
696
|
-
|
697
|
-
var
|
715
|
+
_proto._setElementAttributes = function _setElementAttributes(selector, styleProp, callback) {
|
716
|
+
SelectorEngine__default['default'].find(selector).forEach(function (element) {
|
717
|
+
var actualValue = element.style[styleProp];
|
718
|
+
var calculatedValue = window.getComputedStyle(element)[styleProp];
|
719
|
+
Manipulator__default['default'].setDataAttribute(element, styleProp, actualValue);
|
720
|
+
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px';
|
721
|
+
});
|
722
|
+
};
|
698
723
|
|
699
|
-
|
700
|
-
|
701
|
-
element.style.paddingRight = padding;
|
702
|
-
}
|
703
|
-
}); // Restore sticky content and navbar-toggler margin
|
724
|
+
_proto._resetScrollbar = function _resetScrollbar() {
|
725
|
+
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight');
|
704
726
|
|
705
|
-
|
706
|
-
var margin = Manipulator__default['default'].getDataAttribute(element, 'margin-right');
|
727
|
+
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight');
|
707
728
|
|
708
|
-
|
709
|
-
|
710
|
-
element.style.marginRight = margin;
|
711
|
-
}
|
712
|
-
}); // Restore body padding
|
729
|
+
this._resetElementAttributes('body', 'paddingRight');
|
730
|
+
};
|
713
731
|
|
714
|
-
|
732
|
+
_proto._resetElementAttributes = function _resetElementAttributes(selector, styleProp) {
|
733
|
+
SelectorEngine__default['default'].find(selector).forEach(function (element) {
|
734
|
+
var value = Manipulator__default['default'].getDataAttribute(element, styleProp);
|
715
735
|
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
736
|
+
if (typeof value === 'undefined' && element === document.body) {
|
737
|
+
element.style[styleProp] = '';
|
738
|
+
} else {
|
739
|
+
Manipulator__default['default'].removeDataAttribute(element, styleProp);
|
740
|
+
element.style[styleProp] = value;
|
741
|
+
}
|
742
|
+
});
|
722
743
|
};
|
723
744
|
|
724
745
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
@@ -752,7 +773,7 @@
|
|
752
773
|
});
|
753
774
|
};
|
754
775
|
|
755
|
-
_createClass
|
776
|
+
_createClass(Modal, null, [{
|
756
777
|
key: "Default",
|
757
778
|
get: function get() {
|
758
779
|
return Default;
|
@@ -765,7 +786,7 @@
|
|
765
786
|
}]);
|
766
787
|
|
767
788
|
return Modal;
|
768
|
-
}(
|
789
|
+
}(BaseComponent__default['default']);
|
769
790
|
/**
|
770
791
|
* ------------------------------------------------------------------------
|
771
792
|
* Data Api implementation
|
@@ -802,7 +823,7 @@
|
|
802
823
|
data = new Modal(target, config);
|
803
824
|
}
|
804
825
|
|
805
|
-
data.
|
826
|
+
data.toggle(this);
|
806
827
|
});
|
807
828
|
/**
|
808
829
|
* ------------------------------------------------------------------------
|
@@ -811,21 +832,7 @@
|
|
811
832
|
* add .Modal to jQuery only if jQuery is present
|
812
833
|
*/
|
813
834
|
|
814
|
-
|
815
|
-
var $ = getjQuery();
|
816
|
-
/* istanbul ignore if */
|
817
|
-
|
818
|
-
if ($) {
|
819
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
820
|
-
$.fn[NAME] = Modal.jQueryInterface;
|
821
|
-
$.fn[NAME].Constructor = Modal;
|
822
|
-
|
823
|
-
$.fn[NAME].noConflict = function () {
|
824
|
-
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
825
|
-
return Modal.jQueryInterface;
|
826
|
-
};
|
827
|
-
}
|
828
|
-
});
|
835
|
+
defineJQueryPlugin(NAME, Modal);
|
829
836
|
|
830
837
|
return Modal;
|
831
838
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap popover.js v5.0.0-
|
3
|
-
* Copyright 2011-
|
2
|
+
* Bootstrap popover.js v5.0.0-beta2 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
4
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
5
5
|
*/
|
6
6
|
(function (global, factory) {
|
@@ -15,9 +15,59 @@
|
|
15
15
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
16
16
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
17
17
|
|
18
|
+
function _defineProperties(target, props) {
|
19
|
+
for (var i = 0; i < props.length; i++) {
|
20
|
+
var descriptor = props[i];
|
21
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
22
|
+
descriptor.configurable = true;
|
23
|
+
if ("value" in descriptor) descriptor.writable = true;
|
24
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
29
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
30
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
31
|
+
return Constructor;
|
32
|
+
}
|
33
|
+
|
34
|
+
function _extends() {
|
35
|
+
_extends = Object.assign || function (target) {
|
36
|
+
for (var i = 1; i < arguments.length; i++) {
|
37
|
+
var source = arguments[i];
|
38
|
+
|
39
|
+
for (var key in source) {
|
40
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
41
|
+
target[key] = source[key];
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
return target;
|
47
|
+
};
|
48
|
+
|
49
|
+
return _extends.apply(this, arguments);
|
50
|
+
}
|
51
|
+
|
52
|
+
function _inheritsLoose(subClass, superClass) {
|
53
|
+
subClass.prototype = Object.create(superClass.prototype);
|
54
|
+
subClass.prototype.constructor = subClass;
|
55
|
+
|
56
|
+
_setPrototypeOf(subClass, superClass);
|
57
|
+
}
|
58
|
+
|
59
|
+
function _setPrototypeOf(o, p) {
|
60
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
61
|
+
o.__proto__ = p;
|
62
|
+
return o;
|
63
|
+
};
|
64
|
+
|
65
|
+
return _setPrototypeOf(o, p);
|
66
|
+
}
|
67
|
+
|
18
68
|
/**
|
19
69
|
* --------------------------------------------------------------------------
|
20
|
-
* Bootstrap (v5.0.0-
|
70
|
+
* Bootstrap (v5.0.0-beta2): util/index.js
|
21
71
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
22
72
|
* --------------------------------------------------------------------------
|
23
73
|
*/
|
@@ -41,15 +91,26 @@
|
|
41
91
|
}
|
42
92
|
};
|
43
93
|
|
44
|
-
|
94
|
+
document.documentElement.dir === 'rtl';
|
45
95
|
|
46
|
-
|
96
|
+
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
97
|
+
onDOMContentLoaded(function () {
|
98
|
+
var $ = getjQuery();
|
99
|
+
/* istanbul ignore if */
|
47
100
|
|
48
|
-
|
101
|
+
if ($) {
|
102
|
+
var JQUERY_NO_CONFLICT = $.fn[name];
|
103
|
+
$.fn[name] = plugin.jQueryInterface;
|
104
|
+
$.fn[name].Constructor = plugin;
|
49
105
|
|
50
|
-
|
106
|
+
$.fn[name].noConflict = function () {
|
107
|
+
$.fn[name] = JQUERY_NO_CONFLICT;
|
108
|
+
return plugin.jQueryInterface;
|
109
|
+
};
|
110
|
+
}
|
111
|
+
});
|
112
|
+
};
|
51
113
|
|
52
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
53
114
|
/**
|
54
115
|
* ------------------------------------------------------------------------
|
55
116
|
* Constants
|
@@ -64,6 +125,7 @@
|
|
64
125
|
|
65
126
|
var Default = _extends({}, Tooltip__default['default'].Default, {
|
66
127
|
placement: 'right',
|
128
|
+
offset: [0, 8],
|
67
129
|
trigger: 'click',
|
68
130
|
content: '',
|
69
131
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
@@ -174,8 +236,8 @@
|
|
174
236
|
|
175
237
|
_createClass(Popover, null, [{
|
176
238
|
key: "Default",
|
177
|
-
// Getters
|
178
|
-
|
239
|
+
get: // Getters
|
240
|
+
function get() {
|
179
241
|
return Default;
|
180
242
|
}
|
181
243
|
}, {
|
@@ -215,21 +277,7 @@
|
|
215
277
|
*/
|
216
278
|
|
217
279
|
|
218
|
-
|
219
|
-
var $ = getjQuery();
|
220
|
-
/* istanbul ignore if */
|
221
|
-
|
222
|
-
if ($) {
|
223
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
224
|
-
$.fn[NAME] = Popover.jQueryInterface;
|
225
|
-
$.fn[NAME].Constructor = Popover;
|
226
|
-
|
227
|
-
$.fn[NAME].noConflict = function () {
|
228
|
-
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
229
|
-
return Popover.jQueryInterface;
|
230
|
-
};
|
231
|
-
}
|
232
|
-
});
|
280
|
+
defineJQueryPlugin(NAME, Popover);
|
233
281
|
|
234
282
|
return Popover;
|
235
283
|
|