mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 00:39:54 +00:00
dist v5
This commit is contained in:
parent
aaf03bdc9e
commit
39c4ca3970
5063
dist/css/bootstrap-grid.css
vendored
5063
dist/css/bootstrap-grid.css
vendored
File diff suppressed because it is too large
Load Diff
2
dist/css/bootstrap-grid.css.map
vendored
2
dist/css/bootstrap-grid.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css
vendored
2
dist/css/bootstrap-grid.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css.map
vendored
2
dist/css/bootstrap-grid.min.css.map
vendored
File diff suppressed because one or more lines are too long
74
dist/css/bootstrap-reboot.css
vendored
74
dist/css/bootstrap-reboot.css
vendored
@ -11,14 +11,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
main {
|
||||||
font-family: sans-serif;
|
|
||||||
line-height: 1.15;
|
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
|
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,6 +24,8 @@ body {
|
|||||||
color: #212529;
|
color: #212529;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
[tabindex="-1"]:focus:not(:focus-visible) {
|
[tabindex="-1"]:focus:not(:focus-visible) {
|
||||||
@ -38,14 +33,46 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
box-sizing: content-box;
|
margin: 1rem 0;
|
||||||
height: 0;
|
color: inherit;
|
||||||
overflow: visible;
|
background-color: currentColor;
|
||||||
|
border: 0;
|
||||||
|
opacity: 0.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr:not([size]) {
|
||||||
|
height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@ -70,6 +97,12 @@ address {
|
|||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ol,
|
||||||
|
ul {
|
||||||
|
padding-right: 2rem;
|
||||||
|
padding-left: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
ol,
|
ol,
|
||||||
ul,
|
ul,
|
||||||
dl {
|
dl {
|
||||||
@ -133,17 +166,9 @@ a:hover {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:not([href]):not([tabindex]) {
|
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([tabindex]):focus {
|
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,8 +205,8 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
caption {
|
caption {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.5rem;
|
||||||
padding-bottom: 0.75rem;
|
padding-bottom: 0.5rem;
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
caption-side: bottom;
|
caption-side: bottom;
|
||||||
@ -289,6 +314,11 @@ legend {
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mark {
|
||||||
|
padding: 0.2em;
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
}
|
||||||
|
|
||||||
progress {
|
progress {
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.min.css
vendored
2
dist/css/bootstrap-reboot.min.css
vendored
@ -4,5 +4,5 @@
|
|||||||
* Copyright 2011-2019 Twitter, Inc.
|
* Copyright 2011-2019 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
|
*/*,::after,::before{box-sizing:border-box}main{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-right:2rem;padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none;outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}mark{padding:.2em;background-color:#fcf8e3}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
|
||||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
39
dist/js/bootstrap.bundle.js
vendored
39
dist/js/bootstrap.bundle.js
vendored
@ -522,12 +522,13 @@
|
|||||||
delegationSelector = null;
|
delegationSelector = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _i = 0, _Object$keys = Object.keys(events); _i < _Object$keys.length; _i++) {
|
var uidEventList = Object.keys(events);
|
||||||
var uid = _Object$keys[_i];
|
|
||||||
var event = events[uid];
|
for (var i = 0, len = uidEventList.length; i < len; i++) {
|
||||||
|
var event = events[uidEventList[i]];
|
||||||
|
|
||||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||||
return events[uid];
|
return event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -591,7 +592,7 @@
|
|||||||
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
||||||
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
||||||
|
|
||||||
if (fn === null) {
|
if (!fn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5352,7 +5353,7 @@
|
|||||||
|
|
||||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||||
if (event.which === ESCAPE_KEYCODE) {
|
if (event.which === ESCAPE_KEYCODE) {
|
||||||
EventHandler.trigger(SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent), 'focus');
|
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dropdown._clearMenus();
|
Dropdown._clearMenus();
|
||||||
@ -6247,8 +6248,7 @@
|
|||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
};
|
};
|
||||||
var Selector$6 = {
|
var Selector$6 = {
|
||||||
TOOLTIP_INNER: '.tooltip-inner',
|
TOOLTIP_INNER: '.tooltip-inner'
|
||||||
TOOLTIP_ARROW: '.tooltip-arrow'
|
|
||||||
};
|
};
|
||||||
var Trigger = {
|
var Trigger = {
|
||||||
HOVER: 'hover',
|
HOVER: 'hover',
|
||||||
@ -6343,7 +6343,7 @@
|
|||||||
clearTimeout(this._timeout);
|
clearTimeout(this._timeout);
|
||||||
Data.removeData(this.element, this.constructor.DATA_KEY);
|
Data.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal');
|
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
@ -6413,7 +6413,7 @@
|
|||||||
behavior: this.config.fallbackPlacement
|
behavior: this.config.fallbackPlacement
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
element: Selector$6.TOOLTIP_ARROW
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
},
|
},
|
||||||
preventOverflow: {
|
preventOverflow: {
|
||||||
boundariesElement: this.config.boundary
|
boundariesElement: this.config.boundary
|
||||||
@ -6649,11 +6649,14 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', function () {
|
|
||||||
|
this._hideModalHandler = function () {
|
||||||
if (_this4.element) {
|
if (_this4.element) {
|
||||||
_this4.hide();
|
_this4.hide();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
this.config = _objectSpread({}, this.config, {
|
this.config = _objectSpread({}, this.config, {
|
||||||
@ -7731,7 +7734,11 @@
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.SHOW);
|
var showEvent = EventHandler.trigger(this._element, Event$b.SHOW);
|
||||||
|
|
||||||
|
if (showEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(ClassName$a.FADE);
|
this._element.classList.add(ClassName$a.FADE);
|
||||||
@ -7771,7 +7778,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, Event$b.HIDE);
|
||||||
|
|
||||||
|
if (hideEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.add(ClassName$a.HIDE);
|
_this2._element.classList.add(ClassName$a.HIDE);
|
||||||
|
2
dist/js/bootstrap.bundle.js.map
vendored
2
dist/js/bootstrap.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js
vendored
2
dist/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js.map
vendored
2
dist/js/bootstrap.bundle.min.js.map
vendored
File diff suppressed because one or more lines are too long
39
dist/js/bootstrap.esm.js
vendored
39
dist/js/bootstrap.esm.js
vendored
@ -518,12 +518,13 @@ function findHandler(events, handler, delegationSelector) {
|
|||||||
delegationSelector = null;
|
delegationSelector = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _i = 0, _Object$keys = Object.keys(events); _i < _Object$keys.length; _i++) {
|
var uidEventList = Object.keys(events);
|
||||||
var uid = _Object$keys[_i];
|
|
||||||
var event = events[uid];
|
for (var i = 0, len = uidEventList.length; i < len; i++) {
|
||||||
|
var event = events[uidEventList[i]];
|
||||||
|
|
||||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||||
return events[uid];
|
return event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,7 +588,7 @@ function addHandler(element, originalTypeEvent, handler, delegationFn, oneOff) {
|
|||||||
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
||||||
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
||||||
|
|
||||||
if (fn === null) {
|
if (!fn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2746,7 +2747,7 @@ function () {
|
|||||||
|
|
||||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||||
if (event.which === ESCAPE_KEYCODE) {
|
if (event.which === ESCAPE_KEYCODE) {
|
||||||
EventHandler.trigger(SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent), 'focus');
|
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dropdown._clearMenus();
|
Dropdown._clearMenus();
|
||||||
@ -3641,8 +3642,7 @@ var ClassName$6 = {
|
|||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
};
|
};
|
||||||
var Selector$6 = {
|
var Selector$6 = {
|
||||||
TOOLTIP_INNER: '.tooltip-inner',
|
TOOLTIP_INNER: '.tooltip-inner'
|
||||||
TOOLTIP_ARROW: '.tooltip-arrow'
|
|
||||||
};
|
};
|
||||||
var Trigger = {
|
var Trigger = {
|
||||||
HOVER: 'hover',
|
HOVER: 'hover',
|
||||||
@ -3737,7 +3737,7 @@ function () {
|
|||||||
clearTimeout(this._timeout);
|
clearTimeout(this._timeout);
|
||||||
Data.removeData(this.element, this.constructor.DATA_KEY);
|
Data.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal');
|
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
@ -3807,7 +3807,7 @@ function () {
|
|||||||
behavior: this.config.fallbackPlacement
|
behavior: this.config.fallbackPlacement
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
element: Selector$6.TOOLTIP_ARROW
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
},
|
},
|
||||||
preventOverflow: {
|
preventOverflow: {
|
||||||
boundariesElement: this.config.boundary
|
boundariesElement: this.config.boundary
|
||||||
@ -4043,11 +4043,14 @@ function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', function () {
|
|
||||||
|
this._hideModalHandler = function () {
|
||||||
if (_this4.element) {
|
if (_this4.element) {
|
||||||
_this4.hide();
|
_this4.hide();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
this.config = _objectSpread({}, this.config, {
|
this.config = _objectSpread({}, this.config, {
|
||||||
@ -5125,7 +5128,11 @@ function () {
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.SHOW);
|
var showEvent = EventHandler.trigger(this._element, Event$b.SHOW);
|
||||||
|
|
||||||
|
if (showEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(ClassName$a.FADE);
|
this._element.classList.add(ClassName$a.FADE);
|
||||||
@ -5165,7 +5172,11 @@ function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, Event$b.HIDE);
|
||||||
|
|
||||||
|
if (hideEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.add(ClassName$a.HIDE);
|
_this2._element.classList.add(ClassName$a.HIDE);
|
||||||
|
2
dist/js/bootstrap.esm.js.map
vendored
2
dist/js/bootstrap.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js
vendored
2
dist/js/bootstrap.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js.map
vendored
2
dist/js/bootstrap.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -524,12 +524,13 @@
|
|||||||
delegationSelector = null;
|
delegationSelector = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _i = 0, _Object$keys = Object.keys(events); _i < _Object$keys.length; _i++) {
|
var uidEventList = Object.keys(events);
|
||||||
var uid = _Object$keys[_i];
|
|
||||||
var event = events[uid];
|
for (var i = 0, len = uidEventList.length; i < len; i++) {
|
||||||
|
var event = events[uidEventList[i]];
|
||||||
|
|
||||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||||
return events[uid];
|
return event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -593,7 +594,7 @@
|
|||||||
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
||||||
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
||||||
|
|
||||||
if (fn === null) {
|
if (!fn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2752,7 +2753,7 @@
|
|||||||
|
|
||||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||||
if (event.which === ESCAPE_KEYCODE) {
|
if (event.which === ESCAPE_KEYCODE) {
|
||||||
EventHandler.trigger(SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent), 'focus');
|
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dropdown._clearMenus();
|
Dropdown._clearMenus();
|
||||||
@ -3647,8 +3648,7 @@
|
|||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
};
|
};
|
||||||
var Selector$6 = {
|
var Selector$6 = {
|
||||||
TOOLTIP_INNER: '.tooltip-inner',
|
TOOLTIP_INNER: '.tooltip-inner'
|
||||||
TOOLTIP_ARROW: '.tooltip-arrow'
|
|
||||||
};
|
};
|
||||||
var Trigger = {
|
var Trigger = {
|
||||||
HOVER: 'hover',
|
HOVER: 'hover',
|
||||||
@ -3743,7 +3743,7 @@
|
|||||||
clearTimeout(this._timeout);
|
clearTimeout(this._timeout);
|
||||||
Data.removeData(this.element, this.constructor.DATA_KEY);
|
Data.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal');
|
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
@ -3813,7 +3813,7 @@
|
|||||||
behavior: this.config.fallbackPlacement
|
behavior: this.config.fallbackPlacement
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
element: Selector$6.TOOLTIP_ARROW
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
},
|
},
|
||||||
preventOverflow: {
|
preventOverflow: {
|
||||||
boundariesElement: this.config.boundary
|
boundariesElement: this.config.boundary
|
||||||
@ -4049,11 +4049,14 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', function () {
|
|
||||||
|
this._hideModalHandler = function () {
|
||||||
if (_this4.element) {
|
if (_this4.element) {
|
||||||
_this4.hide();
|
_this4.hide();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
this.config = _objectSpread({}, this.config, {
|
this.config = _objectSpread({}, this.config, {
|
||||||
@ -5131,7 +5134,11 @@
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.SHOW);
|
var showEvent = EventHandler.trigger(this._element, Event$b.SHOW);
|
||||||
|
|
||||||
|
if (showEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(ClassName$a.FADE);
|
this._element.classList.add(ClassName$a.FADE);
|
||||||
@ -5171,7 +5178,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event$b.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, Event$b.HIDE);
|
||||||
|
|
||||||
|
if (hideEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.add(ClassName$a.HIDE);
|
_this2._element.classList.add(ClassName$a.HIDE);
|
||||||
|
2
dist/js/bootstrap.js.map
vendored
2
dist/js/bootstrap.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js.map
vendored
2
dist/js/bootstrap.min.js.map
vendored
File diff suppressed because one or more lines are too long
178
js/dist/dom/event-handler.js
vendored
178
js/dist/dom/event-handler.js
vendored
@ -4,10 +4,10 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./polyfill.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) :
|
||||||
(global = global || self, global.EventHandler = factory());
|
(global = global || self, global.EventHandler = factory(global.Polyfill));
|
||||||
}(this, function () { 'use strict';
|
}(this, function (polyfill_js) { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
@ -15,163 +15,8 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
var MAX_UID = 1000000;
|
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||||
/**
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
* Public Util Api
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
var getUID = function getUID(prefix) {
|
|
||||||
do {
|
|
||||||
// eslint-disable-next-line no-bitwise
|
|
||||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
|
||||||
} while (document.getElementById(prefix));
|
|
||||||
|
|
||||||
return prefix;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* istanbul ignore file */
|
|
||||||
var _Element$prototype = Element.prototype,
|
|
||||||
matches = _Element$prototype.matches,
|
|
||||||
closest = _Element$prototype.closest;
|
|
||||||
var find = Element.prototype.querySelectorAll;
|
|
||||||
var findOne = Element.prototype.querySelector;
|
|
||||||
|
|
||||||
var createCustomEvent = function createCustomEvent(eventName, params) {
|
|
||||||
var cEvent = new CustomEvent(eventName, params);
|
|
||||||
return cEvent;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (typeof window.CustomEvent !== 'function') {
|
|
||||||
createCustomEvent = function createCustomEvent(eventName, params) {
|
|
||||||
params = params || {
|
|
||||||
bubbles: false,
|
|
||||||
cancelable: false,
|
|
||||||
detail: null
|
|
||||||
};
|
|
||||||
var evt = document.createEvent('CustomEvent');
|
|
||||||
evt.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail);
|
|
||||||
return evt;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var workingDefaultPrevented = function () {
|
|
||||||
var e = document.createEvent('CustomEvent');
|
|
||||||
e.initEvent('Bootstrap', true, true);
|
|
||||||
e.preventDefault();
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!workingDefaultPrevented) {
|
|
||||||
var origPreventDefault = Event.prototype.preventDefault;
|
|
||||||
|
|
||||||
Event.prototype.preventDefault = function () {
|
|
||||||
if (!this.cancelable) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
origPreventDefault.call(this);
|
|
||||||
Object.defineProperty(this, 'defaultPrevented', {
|
|
||||||
get: function get() {
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
configurable: true
|
|
||||||
});
|
|
||||||
};
|
|
||||||
} // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
|
||||||
|
|
||||||
|
|
||||||
var defaultPreventedPreservedOnDispatch = function () {
|
|
||||||
var e = createCustomEvent('Bootstrap', {
|
|
||||||
cancelable: true
|
|
||||||
});
|
|
||||||
var element = document.createElement('div');
|
|
||||||
element.addEventListener('Bootstrap', function () {
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
|
||||||
element.dispatchEvent(e);
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!matches) {
|
|
||||||
matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!closest) {
|
|
||||||
closest = function closest(selector) {
|
|
||||||
var element = this;
|
|
||||||
|
|
||||||
do {
|
|
||||||
if (matches.call(element, selector)) {
|
|
||||||
return element;
|
|
||||||
}
|
|
||||||
|
|
||||||
element = element.parentElement || element.parentNode;
|
|
||||||
} while (element !== null && element.nodeType === 1);
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var scopeSelectorRegex = /:scope\b/;
|
|
||||||
|
|
||||||
var supportScopeQuery = function () {
|
|
||||||
var element = document.createElement('div');
|
|
||||||
|
|
||||||
try {
|
|
||||||
element.querySelectorAll(':scope *');
|
|
||||||
} catch (error) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!supportScopeQuery) {
|
|
||||||
find = function find(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelectorAll(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasId = Boolean(this.id);
|
|
||||||
|
|
||||||
if (!hasId) {
|
|
||||||
this.id = getUID('scope');
|
|
||||||
}
|
|
||||||
|
|
||||||
var nodeList = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
|
||||||
nodeList = this.querySelectorAll(selector);
|
|
||||||
} finally {
|
|
||||||
if (!hasId) {
|
|
||||||
this.removeAttribute('id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nodeList;
|
|
||||||
};
|
|
||||||
|
|
||||||
findOne = function findOne(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelector(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var matches = find.call(this, selector);
|
|
||||||
|
|
||||||
if (typeof matches[0] !== 'undefined') {
|
|
||||||
return matches[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
@ -263,12 +108,13 @@
|
|||||||
delegationSelector = null;
|
delegationSelector = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _i = 0, _Object$keys = Object.keys(events); _i < _Object$keys.length; _i++) {
|
var uidEventList = Object.keys(events);
|
||||||
var uid = _Object$keys[_i];
|
|
||||||
var event = events[uid];
|
for (var i = 0, len = uidEventList.length; i < len; i++) {
|
||||||
|
var event = events[uidEventList[i]];
|
||||||
|
|
||||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||||
return events[uid];
|
return event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,7 +178,7 @@
|
|||||||
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
function removeHandler(element, events, typeEvent, handler, delegationSelector) {
|
||||||
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
var fn = findHandler(events[typeEvent], handler, delegationSelector);
|
||||||
|
|
||||||
if (fn === null) {
|
if (!fn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -423,7 +269,7 @@
|
|||||||
evt = document.createEvent('HTMLEvents');
|
evt = document.createEvent('HTMLEvents');
|
||||||
evt.initEvent(typeEvent, bubbles, true);
|
evt.initEvent(typeEvent, bubbles, true);
|
||||||
} else {
|
} else {
|
||||||
evt = createCustomEvent(event, {
|
evt = polyfill_js.createCustomEvent(event, {
|
||||||
bubbles: bubbles,
|
bubbles: bubbles,
|
||||||
cancelable: true
|
cancelable: true
|
||||||
});
|
});
|
||||||
@ -443,7 +289,7 @@
|
|||||||
if (defaultPrevented) {
|
if (defaultPrevented) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
if (!defaultPreventedPreservedOnDispatch) {
|
if (!polyfill_js.defaultPreventedPreservedOnDispatch) {
|
||||||
Object.defineProperty(evt, 'defaultPrevented', {
|
Object.defineProperty(evt, 'defaultPrevented', {
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return true;
|
return true;
|
||||||
|
2
js/dist/dom/event-handler.js.map
vendored
2
js/dist/dom/event-handler.js.map
vendored
File diff suppressed because one or more lines are too long
226
js/dist/dom/polyfill.js
vendored
226
js/dist/dom/polyfill.js
vendored
@ -4,10 +4,10 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||||
(global = global || self, global.Polyfill = factory());
|
(global = global || self, factory(global.Polyfill = {}));
|
||||||
}(this, function () { 'use strict';
|
}(this, function (exports) { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
@ -34,94 +34,148 @@
|
|||||||
return prefix;
|
return prefix;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/* istanbul ignore file */
|
||||||
* --------------------------------------------------------------------------
|
var _Element$prototype = Element.prototype;
|
||||||
* Bootstrap (v4.3.1): dom/polyfill.js
|
exports.matches = _Element$prototype.matches;
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
exports.closest = _Element$prototype.closest;
|
||||||
* --------------------------------------------------------------------------
|
exports.find = Element.prototype.querySelectorAll;
|
||||||
*/
|
exports.findOne = Element.prototype.querySelector;
|
||||||
/* istanbul ignore next */
|
|
||||||
|
|
||||||
var Polyfill = function () {
|
exports.createCustomEvent = function createCustomEvent(eventName, params) {
|
||||||
// MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
var cEvent = new CustomEvent(eventName, params);
|
||||||
var defaultPreventedPreservedOnDispatch = function () {
|
return cEvent;
|
||||||
var e = new CustomEvent('Bootstrap', {
|
};
|
||||||
cancelable: true
|
|
||||||
});
|
|
||||||
var element = document.createElement('div');
|
|
||||||
element.addEventListener('Bootstrap', function () {
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
|
||||||
element.dispatchEvent(e);
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
var find = Element.prototype.querySelectorAll;
|
if (typeof window.CustomEvent !== 'function') {
|
||||||
var findOne = Element.prototype.querySelector;
|
exports.createCustomEvent = function createCustomEvent(eventName, params) {
|
||||||
var scopeSelectorRegex = /:scope\b/;
|
params = params || {
|
||||||
|
bubbles: false,
|
||||||
var supportScopeQuery = function () {
|
cancelable: false,
|
||||||
var element = document.createElement('div');
|
detail: null
|
||||||
|
|
||||||
try {
|
|
||||||
element.querySelectorAll(':scope *');
|
|
||||||
} catch (error) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!supportScopeQuery) {
|
|
||||||
find = function find(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelectorAll(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasId = Boolean(this.id);
|
|
||||||
|
|
||||||
if (!hasId) {
|
|
||||||
this.id = getUID('scope');
|
|
||||||
}
|
|
||||||
|
|
||||||
var nodeList = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
|
||||||
nodeList = this.querySelectorAll(selector);
|
|
||||||
} finally {
|
|
||||||
if (!hasId) {
|
|
||||||
this.removeAttribute('id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nodeList;
|
|
||||||
};
|
};
|
||||||
|
var evt = document.createEvent('CustomEvent');
|
||||||
findOne = function findOne(selector) {
|
evt.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail);
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
return evt;
|
||||||
return this.querySelector(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var matches = find.call(this, selector);
|
|
||||||
|
|
||||||
if (typeof matches[0] !== 'undefined') {
|
|
||||||
return matches[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
defaultPreventedPreservedOnDispatch: defaultPreventedPreservedOnDispatch,
|
|
||||||
find: find,
|
|
||||||
findOne: findOne
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var workingDefaultPrevented = function () {
|
||||||
|
var e = document.createEvent('CustomEvent');
|
||||||
|
e.initEvent('Bootstrap', true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
return Polyfill;
|
if (!workingDefaultPrevented) {
|
||||||
|
var origPreventDefault = Event.prototype.preventDefault;
|
||||||
|
|
||||||
|
Event.prototype.preventDefault = function () {
|
||||||
|
if (!this.cancelable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
origPreventDefault.call(this);
|
||||||
|
Object.defineProperty(this, 'defaultPrevented', {
|
||||||
|
get: function get() {
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
};
|
||||||
|
} // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
||||||
|
|
||||||
|
|
||||||
|
var defaultPreventedPreservedOnDispatch = function () {
|
||||||
|
var e = exports.createCustomEvent('Bootstrap', {
|
||||||
|
cancelable: true
|
||||||
|
});
|
||||||
|
var element = document.createElement('div');
|
||||||
|
element.addEventListener('Bootstrap', function () {
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
e.preventDefault();
|
||||||
|
element.dispatchEvent(e);
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
|
||||||
|
if (!exports.matches) {
|
||||||
|
exports.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!exports.closest) {
|
||||||
|
exports.closest = function closest(selector) {
|
||||||
|
var element = this;
|
||||||
|
|
||||||
|
do {
|
||||||
|
if (exports.matches.call(element, selector)) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
element = element.parentElement || element.parentNode;
|
||||||
|
} while (element !== null && element.nodeType === 1);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var scopeSelectorRegex = /:scope\b/;
|
||||||
|
|
||||||
|
var supportScopeQuery = function () {
|
||||||
|
var element = document.createElement('div');
|
||||||
|
|
||||||
|
try {
|
||||||
|
element.querySelectorAll(':scope *');
|
||||||
|
} catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}();
|
||||||
|
|
||||||
|
if (!supportScopeQuery) {
|
||||||
|
exports.find = function find(selector) {
|
||||||
|
if (!scopeSelectorRegex.test(selector)) {
|
||||||
|
return this.querySelectorAll(selector);
|
||||||
|
}
|
||||||
|
|
||||||
|
var hasId = Boolean(this.id);
|
||||||
|
|
||||||
|
if (!hasId) {
|
||||||
|
this.id = getUID('scope');
|
||||||
|
}
|
||||||
|
|
||||||
|
var nodeList = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
||||||
|
nodeList = this.querySelectorAll(selector);
|
||||||
|
} finally {
|
||||||
|
if (!hasId) {
|
||||||
|
this.removeAttribute('id');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nodeList;
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.findOne = function findOne(selector) {
|
||||||
|
if (!scopeSelectorRegex.test(selector)) {
|
||||||
|
return this.querySelector(selector);
|
||||||
|
}
|
||||||
|
|
||||||
|
var matches = exports.find.call(this, selector);
|
||||||
|
|
||||||
|
if (typeof matches[0] !== 'undefined') {
|
||||||
|
return matches[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.defaultPreventedPreservedOnDispatch = defaultPreventedPreservedOnDispatch;
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
}));
|
}));
|
||||||
//# sourceMappingURL=polyfill.js.map
|
//# sourceMappingURL=polyfill.js.map
|
||||||
|
2
js/dist/dom/polyfill.js.map
vendored
2
js/dist/dom/polyfill.js.map
vendored
File diff suppressed because one or more lines are too long
179
js/dist/dom/selector-engine.js
vendored
179
js/dist/dom/selector-engine.js
vendored
@ -4,10 +4,10 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./polyfill.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) :
|
||||||
(global = global || self, global.SelectorEngine = factory());
|
(global = global || self, global.SelectorEngine = factory(global.Polyfill));
|
||||||
}(this, function () { 'use strict';
|
}(this, function (polyfill_js) { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
@ -15,24 +15,8 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
var MAX_UID = 1000000;
|
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||||
/**
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
* Public Util Api
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
var getUID = function getUID(prefix) {
|
|
||||||
do {
|
|
||||||
// eslint-disable-next-line no-bitwise
|
|
||||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
|
||||||
} while (document.getElementById(prefix));
|
|
||||||
|
|
||||||
return prefix;
|
|
||||||
};
|
|
||||||
|
|
||||||
var makeArray = function makeArray(nodeList) {
|
var makeArray = function makeArray(nodeList) {
|
||||||
if (!nodeList) {
|
if (!nodeList) {
|
||||||
@ -42,145 +26,6 @@
|
|||||||
return [].slice.call(nodeList);
|
return [].slice.call(nodeList);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* istanbul ignore file */
|
|
||||||
var _Element$prototype = Element.prototype,
|
|
||||||
matches = _Element$prototype.matches,
|
|
||||||
closest = _Element$prototype.closest;
|
|
||||||
var find = Element.prototype.querySelectorAll;
|
|
||||||
var findOne = Element.prototype.querySelector;
|
|
||||||
|
|
||||||
var createCustomEvent = function createCustomEvent(eventName, params) {
|
|
||||||
var cEvent = new CustomEvent(eventName, params);
|
|
||||||
return cEvent;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (typeof window.CustomEvent !== 'function') {
|
|
||||||
createCustomEvent = function createCustomEvent(eventName, params) {
|
|
||||||
params = params || {
|
|
||||||
bubbles: false,
|
|
||||||
cancelable: false,
|
|
||||||
detail: null
|
|
||||||
};
|
|
||||||
var evt = document.createEvent('CustomEvent');
|
|
||||||
evt.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail);
|
|
||||||
return evt;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var workingDefaultPrevented = function () {
|
|
||||||
var e = document.createEvent('CustomEvent');
|
|
||||||
e.initEvent('Bootstrap', true, true);
|
|
||||||
e.preventDefault();
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!workingDefaultPrevented) {
|
|
||||||
var origPreventDefault = Event.prototype.preventDefault;
|
|
||||||
|
|
||||||
Event.prototype.preventDefault = function () {
|
|
||||||
if (!this.cancelable) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
origPreventDefault.call(this);
|
|
||||||
Object.defineProperty(this, 'defaultPrevented', {
|
|
||||||
get: function get() {
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
configurable: true
|
|
||||||
});
|
|
||||||
};
|
|
||||||
} // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
|
||||||
|
|
||||||
|
|
||||||
var defaultPreventedPreservedOnDispatch = function () {
|
|
||||||
var e = createCustomEvent('Bootstrap', {
|
|
||||||
cancelable: true
|
|
||||||
});
|
|
||||||
var element = document.createElement('div');
|
|
||||||
element.addEventListener('Bootstrap', function () {
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
|
||||||
element.dispatchEvent(e);
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!matches) {
|
|
||||||
matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!closest) {
|
|
||||||
closest = function closest(selector) {
|
|
||||||
var element = this;
|
|
||||||
|
|
||||||
do {
|
|
||||||
if (matches.call(element, selector)) {
|
|
||||||
return element;
|
|
||||||
}
|
|
||||||
|
|
||||||
element = element.parentElement || element.parentNode;
|
|
||||||
} while (element !== null && element.nodeType === 1);
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var scopeSelectorRegex = /:scope\b/;
|
|
||||||
|
|
||||||
var supportScopeQuery = function () {
|
|
||||||
var element = document.createElement('div');
|
|
||||||
|
|
||||||
try {
|
|
||||||
element.querySelectorAll(':scope *');
|
|
||||||
} catch (error) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!supportScopeQuery) {
|
|
||||||
find = function find(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelectorAll(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasId = Boolean(this.id);
|
|
||||||
|
|
||||||
if (!hasId) {
|
|
||||||
this.id = getUID('scope');
|
|
||||||
}
|
|
||||||
|
|
||||||
var nodeList = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
|
||||||
nodeList = this.querySelectorAll(selector);
|
|
||||||
} finally {
|
|
||||||
if (!hasId) {
|
|
||||||
this.removeAttribute('id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nodeList;
|
|
||||||
};
|
|
||||||
|
|
||||||
findOne = function findOne(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelector(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var matches = find.call(this, selector);
|
|
||||||
|
|
||||||
if (typeof matches[0] !== 'undefined') {
|
|
||||||
return matches[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v4.3.1): dom/selector-engine.js
|
* Bootstrap (v4.3.1): dom/selector-engine.js
|
||||||
@ -195,10 +40,10 @@
|
|||||||
|
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches$1(element, selector) {
|
matches: function matches(element, selector) {
|
||||||
return matches.call(element, selector);
|
return polyfill_js.matches.call(element, selector);
|
||||||
},
|
},
|
||||||
find: function find$1(selector, element) {
|
find: function find(selector, element) {
|
||||||
if (element === void 0) {
|
if (element === void 0) {
|
||||||
element = document.documentElement;
|
element = document.documentElement;
|
||||||
}
|
}
|
||||||
@ -207,9 +52,9 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return find.call(element, selector);
|
return polyfill_js.find.call(element, selector);
|
||||||
},
|
},
|
||||||
findOne: function findOne$1(selector, element) {
|
findOne: function findOne(selector, element) {
|
||||||
if (element === void 0) {
|
if (element === void 0) {
|
||||||
element = document.documentElement;
|
element = document.documentElement;
|
||||||
}
|
}
|
||||||
@ -218,7 +63,7 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return findOne.call(element, selector);
|
return polyfill_js.findOne.call(element, selector);
|
||||||
},
|
},
|
||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
@ -250,12 +95,12 @@
|
|||||||
|
|
||||||
return parents;
|
return parents;
|
||||||
},
|
},
|
||||||
closest: function closest$1(element, selector) {
|
closest: function closest(element, selector) {
|
||||||
if (typeof selector !== 'string') {
|
if (typeof selector !== 'string') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return closest.call(element, selector);
|
return polyfill_js.closest.call(element, selector);
|
||||||
},
|
},
|
||||||
prev: function prev(element, selector) {
|
prev: function prev(element, selector) {
|
||||||
if (typeof selector !== 'string') {
|
if (typeof selector !== 'string') {
|
||||||
|
2
js/dist/dom/selector-engine.js.map
vendored
2
js/dist/dom/selector-engine.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/dropdown.js
vendored
2
js/dist/dropdown.js
vendored
@ -571,7 +571,7 @@
|
|||||||
|
|
||||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||||
if (event.which === ESCAPE_KEYCODE) {
|
if (event.which === ESCAPE_KEYCODE) {
|
||||||
EventHandler.trigger(SelectorEngine.findOne(Selector.DATA_TOGGLE, parent), 'focus');
|
SelectorEngine.findOne(Selector.DATA_TOGGLE, parent).focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dropdown._clearMenus();
|
Dropdown._clearMenus();
|
||||||
|
2
js/dist/dropdown.js.map
vendored
2
js/dist/dropdown.js.map
vendored
File diff suppressed because one or more lines are too long
12
js/dist/toast.js
vendored
12
js/dist/toast.js
vendored
@ -204,7 +204,11 @@
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event.SHOW);
|
var showEvent = EventHandler.trigger(this._element, Event.SHOW);
|
||||||
|
|
||||||
|
if (showEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(ClassName.FADE);
|
this._element.classList.add(ClassName.FADE);
|
||||||
@ -244,7 +248,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, Event.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, Event.HIDE);
|
||||||
|
|
||||||
|
if (hideEvent.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.add(ClassName.HIDE);
|
_this2._element.classList.add(ClassName.HIDE);
|
||||||
|
2
js/dist/toast.js.map
vendored
2
js/dist/toast.js.map
vendored
File diff suppressed because one or more lines are too long
14
js/dist/tooltip.js
vendored
14
js/dist/tooltip.js
vendored
@ -391,8 +391,7 @@
|
|||||||
SHOW: 'show'
|
SHOW: 'show'
|
||||||
};
|
};
|
||||||
var Selector = {
|
var Selector = {
|
||||||
TOOLTIP_INNER: '.tooltip-inner',
|
TOOLTIP_INNER: '.tooltip-inner'
|
||||||
TOOLTIP_ARROW: '.tooltip-arrow'
|
|
||||||
};
|
};
|
||||||
var Trigger = {
|
var Trigger = {
|
||||||
HOVER: 'hover',
|
HOVER: 'hover',
|
||||||
@ -487,7 +486,7 @@
|
|||||||
clearTimeout(this._timeout);
|
clearTimeout(this._timeout);
|
||||||
Data.removeData(this.element, this.constructor.DATA_KEY);
|
Data.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
EventHandler.off(this.element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal');
|
EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
@ -557,7 +556,7 @@
|
|||||||
behavior: this.config.fallbackPlacement
|
behavior: this.config.fallbackPlacement
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
element: Selector.TOOLTIP_ARROW
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
},
|
},
|
||||||
preventOverflow: {
|
preventOverflow: {
|
||||||
boundariesElement: this.config.boundary
|
boundariesElement: this.config.boundary
|
||||||
@ -793,11 +792,14 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', function () {
|
|
||||||
|
this._hideModalHandler = function () {
|
||||||
if (_this4.element) {
|
if (_this4.element) {
|
||||||
_this4.hide();
|
_this4.hide();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
this.config = _objectSpread({}, this.config, {
|
this.config = _objectSpread({}, this.config, {
|
||||||
|
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
@ -19,13 +19,10 @@ body {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
background-color: #343a40;
|
background-color: #343a40;
|
||||||
transition: visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
|
|
||||||
transition: transform .3s ease-in-out, visibility .3s ease-in-out;
|
transition: transform .3s ease-in-out, visibility .3s ease-in-out;
|
||||||
transition: transform .3s ease-in-out, visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
|
|
||||||
}
|
}
|
||||||
.offcanvas-collapse.open {
|
.offcanvas-collapse.open {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
-webkit-transform: translateX(-100%);
|
|
||||||
transform: translateX(-100%);
|
transform: translateX(-100%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
height: 540px;
|
height: 540px;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
border-radius: 21px;
|
border-radius: 21px;
|
||||||
-webkit-transform: rotate(30deg);
|
|
||||||
transform: rotate(30deg);
|
transform: rotate(30deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
site/static/docs/4.3/assets/css/docs.min.css
vendored
2
site/static/docs/4.3/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
site/static/docs/4.3/assets/js/docs.min.js
vendored
8
site/static/docs/4.3/assets/js/docs.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user