Rebuild the dist to pickup new utilities file (#29105)

Dist after adding new utils file
This commit is contained in:
Mark Otto 2019-07-23 23:13:50 -07:00 committed by XhmikosR
parent e101ba4989
commit 114a0ee193
58 changed files with 4335 additions and 636 deletions

View file

@ -46,7 +46,7 @@ html {
}
}
.container-fluid {
.container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
width: 100%;
padding-right: 15px;
padding-left: 15px;
@ -54,6 +54,30 @@ html {
margin-left: auto;
}
@media (min-width: 576px) {
.container-sm {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container-md {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container-lg {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container-xl {
max-width: 1140px;
}
}
.row {
display: flex;
flex-wrap: wrap;

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -22,7 +22,6 @@ body {
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
@ -99,7 +98,6 @@ address {
ol,
ul {
padding-right: 2rem;
padding-left: 2rem;
}

Binary file not shown.

View file

@ -4,5 +4,5 @@
* Copyright 2011-2019 Twitter, Inc.
* 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)
*/*,::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}
*/*,::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;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-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 */

Binary file not shown.

3618
dist/css/bootstrap-utilities.css vendored Normal file

File diff suppressed because it is too large Load diff

BIN
dist/css/bootstrap-utilities.css.map vendored Normal file

Binary file not shown.

7
dist/css/bootstrap-utilities.min.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/css/bootstrap-utilities.min.css.map vendored Normal file

Binary file not shown.

View file

@ -26,11 +26,6 @@
--danger: #dc3545;
--light: #f8f9fa;
--dark: #343a40;
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
--font-family-sans-serif: -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-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@ -52,7 +47,6 @@ body {
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
@ -129,7 +123,6 @@ address {
ol,
ul {
padding-right: 2rem;
padding-left: 2rem;
}
@ -487,7 +480,7 @@ template {
code {
font-size: 87.5%;
color: #e83e8c;
word-break: break-word;
word-wrap: break-word;
}
a > code {
@ -556,7 +549,7 @@ pre code {
}
}
.container-fluid {
.container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
width: 100%;
padding-right: 15px;
padding-left: 15px;
@ -564,6 +557,30 @@ pre code {
margin-left: auto;
}
@media (min-width: 576px) {
.container-sm {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container-md {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container-lg {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container-xl {
max-width: 1140px;
}
}
.row {
display: flex;
flex-wrap: wrap;
@ -1102,15 +1119,19 @@ pre code {
width: 100%;
margin-bottom: 1rem;
color: #212529;
vertical-align: top;
}
.table th,
.table td {
padding: 0.5rem;
vertical-align: top;
border-bottom: 1px solid #dee2e6;
}
.table tbody {
vertical-align: inherit;
}
.table td {
border-bottom: 1px solid #dee2e6;
}
@ -1579,8 +1600,7 @@ textarea.form-control {
line-height: 1.5;
color: #495057;
vertical-align: middle;
background: url('data:image/svg+xml;utf8,<svg viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="%23343a40" stroke-width="2px" d="M2 5l6 6 6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 0.75rem center/16px 12px;
background-color: #fff;
background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px;
border: 1px solid #ced4da;
border-radius: 0.25rem;
-webkit-appearance: none;
@ -1678,7 +1698,7 @@ textarea.form-control {
}
.form-check-input:checked[type="checkbox"] {
background-image: url('data:image/svg+xml;utf8,<svg viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="%23fff" stroke-width="3" d="M4 8.5L6.5 11l6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>');
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5L6.5 11l6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type="radio"] {
@ -1687,7 +1707,7 @@ textarea.form-control {
.form-check-input[type="checkbox"]:indeterminate {
background-color: #007bff;
background-image: url('data:image/svg+xml;utf8,<svg viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5 8h6" stroke="%23fff" stroke-width="3" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>');
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 8h6'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: center center;
background-size: 1em;
@ -1759,7 +1779,12 @@ textarea.form-control {
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-file-input[disabled] ~ .form-file-label {
.form-file-input:focus-within ~ .form-file-label {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-file-input[disabled] ~ .form-file-label .form-file-text {
background-color: #e9ecef;
}
@ -2268,7 +2293,7 @@ textarea.form-control {
.was-validated .form-select:valid, .form-select.is-valid {
border-color: #28a745;
padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
background: url('data:image/svg+xml;utf8,<svg viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="%23343a40" stroke-width="2px" d="M2 5l6 6 6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
@ -2355,7 +2380,7 @@ textarea.form-control {
.was-validated .form-control:invalid, .form-control.is-invalid {
border-color: #dc3545;
padding-right: calc(1.5em + 0.75rem);
background-image: url("data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg' stroke='%23dc3545' fill='none'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z' stroke-linejoin='round'/%3e%3ccircle cx='6' cy='8.2' r='.1'/%3e%3c/svg%3e");
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.1'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
@ -2380,7 +2405,7 @@ textarea.form-control {
.was-validated .form-select:invalid, .form-select.is-invalid {
border-color: #dc3545;
padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
background: url('data:image/svg+xml;utf8,<svg viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="%23343a40" stroke-width="2px" d="M2 5l6 6 6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg' stroke='%23dc3545' fill='none'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z' stroke-linejoin='round'/%3e%3ccircle cx='6' cy='8.2' r='.1'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.1'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
@ -3572,8 +3597,7 @@ fieldset:disabled a.btn {
padding: 0.5rem 1rem;
}
.navbar > .container,
.navbar > .container-fluid {
.navbar > [class^="container"] {
display: flex;
flex-wrap: wrap;
align-items: center;
@ -3647,8 +3671,7 @@ fieldset:disabled a.btn {
}
@media (max-width: 575.98px) {
.navbar-expand-sm > .container,
.navbar-expand-sm > .container-fluid {
.navbar-expand-sm > [class^="container"] {
padding-right: 0;
padding-left: 0;
}
@ -3669,8 +3692,7 @@ fieldset:disabled a.btn {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-sm > .container,
.navbar-expand-sm > .container-fluid {
.navbar-expand-sm > [class^="container"] {
flex-wrap: nowrap;
}
.navbar-expand-sm .navbar-collapse {
@ -3683,8 +3705,7 @@ fieldset:disabled a.btn {
}
@media (max-width: 767.98px) {
.navbar-expand-md > .container,
.navbar-expand-md > .container-fluid {
.navbar-expand-md > [class^="container"] {
padding-right: 0;
padding-left: 0;
}
@ -3705,8 +3726,7 @@ fieldset:disabled a.btn {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-md > .container,
.navbar-expand-md > .container-fluid {
.navbar-expand-md > [class^="container"] {
flex-wrap: nowrap;
}
.navbar-expand-md .navbar-collapse {
@ -3719,8 +3739,7 @@ fieldset:disabled a.btn {
}
@media (max-width: 991.98px) {
.navbar-expand-lg > .container,
.navbar-expand-lg > .container-fluid {
.navbar-expand-lg > [class^="container"] {
padding-right: 0;
padding-left: 0;
}
@ -3741,8 +3760,7 @@ fieldset:disabled a.btn {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-lg > .container,
.navbar-expand-lg > .container-fluid {
.navbar-expand-lg > [class^="container"] {
flex-wrap: nowrap;
}
.navbar-expand-lg .navbar-collapse {
@ -3755,8 +3773,7 @@ fieldset:disabled a.btn {
}
@media (max-width: 1199.98px) {
.navbar-expand-xl > .container,
.navbar-expand-xl > .container-fluid {
.navbar-expand-xl > [class^="container"] {
padding-right: 0;
padding-left: 0;
}
@ -3777,8 +3794,7 @@ fieldset:disabled a.btn {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-xl > .container,
.navbar-expand-xl > .container-fluid {
.navbar-expand-xl > [class^="container"] {
flex-wrap: nowrap;
}
.navbar-expand-xl .navbar-collapse {
@ -3795,8 +3811,7 @@ fieldset:disabled a.btn {
justify-content: flex-start;
}
.navbar-expand > .container,
.navbar-expand > .container-fluid {
.navbar-expand > [class^="container"] {
padding-right: 0;
padding-left: 0;
}
@ -3814,8 +3829,7 @@ fieldset:disabled a.btn {
padding-left: 0.5rem;
}
.navbar-expand > .container,
.navbar-expand > .container-fluid {
.navbar-expand > [class^="container"] {
flex-wrap: nowrap;
}
@ -3861,7 +3875,7 @@ fieldset:disabled a.btn {
}
.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-light .navbar-text {
@ -3907,7 +3921,7 @@ fieldset:disabled a.btn {
}
.navbar-dark .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-text {
@ -4109,25 +4123,6 @@ fieldset:disabled a.btn {
}
}
.card-columns .card {
margin-bottom: 0.75rem;
}
@media (min-width: 576px) {
.card-columns {
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 1.25rem;
column-gap: 1.25rem;
orphans: 1;
widows: 1;
}
.card-columns .card {
display: inline-block;
width: 100%;
}
}
.accordion > .card {
overflow: hidden;
}
@ -4836,7 +4831,7 @@ a.close.disabled {
background-color: rgba(255, 255, 255, 0.85);
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
opacity: 0;
@ -5481,11 +5476,11 @@ a.close.disabled {
}
.carousel-control-prev-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}
.carousel-indicators {

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -40,20 +40,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -746,10 +761,6 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return find.call(element, selector);
},
findOne: function findOne$1(selector, element) {
@ -757,29 +768,17 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return findOne.call(element, selector);
},
children: function children(element, selector) {
var _this = this;
if (typeof selector !== 'string') {
return null;
}
var children = makeArray(element.children);
return children.filter(function (child) {
return _this.matches(child, selector);
});
},
parents: function parents(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var parents = [];
var ancestor = element.parentNode;
@ -794,17 +793,9 @@
return parents;
},
closest: function closest$1(element, selector) {
if (typeof selector !== 'string') {
return null;
}
return closest.call(element, selector);
},
prev: function prev(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var siblings = [];
var previous = element.previousSibling;
@ -919,8 +910,8 @@
}
var transitionDuration = getTransitionDurationFromElement(element);
EventHandler.one(element, TRANSITION_END, function (event) {
return _this._destroyElement(element, event);
EventHandler.one(element, TRANSITION_END, function () {
return _this._destroyElement(element);
});
emulateTransitionEnd(element, transitionDuration);
};
@ -986,6 +977,8 @@
* add .alert to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Alert._jQueryInterface;
@ -1140,7 +1133,6 @@
if (!data) {
data = new Button(button);
Data.setData(button, DATA_KEY$1, data);
}
data.toggle();
@ -1166,6 +1158,8 @@
* add .button to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
jQuery.fn[NAME$1] = Button._jQueryInterface;
@ -1221,7 +1215,7 @@
return {};
}
var attributes = _objectSpread({}, element.dataset);
var attributes = _objectSpread2({}, element.dataset);
Object.keys(attributes).forEach(function (key) {
attributes[key] = normalizeData(attributes[key]);
@ -1464,7 +1458,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
typeCheckConfig(NAME$2, config, DefaultType);
return config;
};
@ -1507,7 +1501,7 @@
});
}
if (this._config.touch) {
if (this._config.touch && this._touchSupported) {
this._addTouchEventListeners();
}
};
@ -1515,10 +1509,6 @@
_proto._addTouchEventListeners = function _addTouchEventListeners() {
var _this3 = this;
if (!this._touchSupported) {
return;
}
var start = function start(event) {
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
_this3.touchStartX = event.clientX;
@ -1767,10 +1757,10 @@
Carousel._carouselInterface = function _carouselInterface(element, config) {
var data = Data.getData(element, DATA_KEY$2);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(element));
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
if (typeof config === 'object') {
_config = _objectSpread({}, _config, config);
_config = _objectSpread2({}, _config, {}, config);
}
var action = typeof config === 'string' ? config : _config.slide;
@ -1812,7 +1802,7 @@
return;
}
var config = _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
var slideIndex = this.getAttribute('data-slide-to');
@ -1869,6 +1859,8 @@
* add .carousel to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
@ -2145,7 +2137,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$1, config);
config = _objectSpread2({}, Default$1, {}, config);
config.toggle = Boolean(config.toggle); // Coerce string values
typeCheckConfig(NAME$3, config, DefaultType$1);
@ -2174,7 +2166,10 @@
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
var selector = getSelectorFromElement(element);
var selected = selector ? SelectorEngine.findOne(selector) : null;
_this3._addAriaAndCollapsedClass(selected, [element]);
});
return parent;
};
@ -2198,15 +2193,10 @@
} // Static
;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = getSelectorFromElement(element);
return selector ? SelectorEngine.findOne(selector) : null;
};
Collapse._collapseInterface = function _collapseInterface(element, config) {
var data = Data.getData(element, DATA_KEY$3);
var _config = _objectSpread({}, Default$1, Manipulator.getDataAttributes(element), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false;
@ -2291,6 +2281,8 @@
* add .collapse to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
@ -5155,21 +5147,15 @@
};
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
config = _objectSpread2({}, this.constructor.Default, {}, Manipulator.getDataAttributes(this._element), {}, config);
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
return config;
};
_proto._getMenuElement = function _getMenuElement() {
if (!this._menu) {
var parent = Dropdown._getParentFromElement(this._element);
var parent = Dropdown._getParentFromElement(this._element);
if (parent) {
this._menu = SelectorEngine.findOne(Selector$4.MENU, parent);
}
}
return this._menu;
return SelectorEngine.findOne(Selector$4.MENU, parent);
};
_proto._getPlacement = function _getPlacement() {
@ -5204,7 +5190,7 @@
if (typeof this._config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this2._config.offset(data.offsets, _this2._element) || {});
return data;
};
} else {
@ -5436,6 +5422,8 @@
* add .dropdown to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
@ -5592,7 +5580,7 @@
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE);
if (!this._isShown || hideEvent.defaultPrevented) {
if (hideEvent.defaultPrevented) {
return;
}
@ -5655,7 +5643,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$3, config);
config = _objectSpread2({}, Default$3, {}, config);
typeCheckConfig(NAME$5, config, DefaultType$3);
return config;
};
@ -5735,7 +5723,7 @@
_this5.hide();
}
});
} else if (!this._isShown) {
} else {
EventHandler.off(this._element, Event$6.KEYDOWN_DISMISS);
}
};
@ -5744,8 +5732,8 @@
var _this6 = this;
if (this._isShown) {
EventHandler.on(window, Event$6.RESIZE, function (event) {
return _this6.handleUpdate(event);
EventHandler.on(window, Event$6.RESIZE, function () {
return _this6._adjustDialog();
});
} else {
EventHandler.off(window, Event$6.RESIZE);
@ -5775,11 +5763,9 @@
};
_proto._removeBackdrop = function _removeBackdrop() {
if (this._backdrop) {
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop = null;
}
this._backdrop = null;
};
_proto._showBackdrop = function _showBackdrop(callback) {
@ -5819,10 +5805,6 @@
this._backdrop.classList.add(ClassName$5.SHOW);
if (!callback) {
return;
}
if (!animate) {
callback();
return;
@ -5837,9 +5819,7 @@
var callbackRemove = function callbackRemove() {
_this8._removeBackdrop();
if (callback) {
callback();
}
callback();
};
if (this._element.classList.contains(ClassName$5.FADE)) {
@ -5850,7 +5830,7 @@
} else {
callbackRemove();
}
} else if (callback) {
} else {
callback();
}
} // ----------------------------------------------------------------------
@ -5956,7 +5936,7 @@
return this.each(function () {
var data = Data.getData(this, DATA_KEY$5);
var _config = _objectSpread({}, Default$3, Manipulator.getDataAttributes(this), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$3, {}, Manipulator.getDataAttributes(this), {}, typeof config === 'object' && config ? config : {});
if (!data) {
data = new Modal(this, _config);
@ -6002,14 +5982,8 @@
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
var _this10 = this;
var target;
var selector = getSelectorFromElement(this);
if (selector) {
target = SelectorEngine.findOne(selector);
}
var config = Data.getData(target, DATA_KEY$5) ? 'toggle' : _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var target = SelectorEngine.findOne(selector);
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();
@ -6030,6 +6004,8 @@
var data = Data.getData(target, DATA_KEY$5);
if (!data) {
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
data = new Modal(target, config);
}
@ -6039,8 +6015,11 @@
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .modal to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
jQuery.fn[NAME$5] = Modal._jQueryInterface;
@ -6165,7 +6144,7 @@
};
for (var i = 0, len = elements.length; i < len; i++) {
var _ret = _loop(i, len);
var _ret = _loop(i);
if (_ret === "continue") continue;
}
@ -6394,7 +6373,7 @@
var attachment = this._getAttachment(placement);
this.addAttachmentClass(attachment);
this._addAttachmentClass(attachment);
var container = this._getContainer();
@ -6463,7 +6442,7 @@
}
};
_proto.hide = function hide(callback) {
_proto.hide = function hide() {
var _this2 = this;
var tip = this.getTipElement();
@ -6479,13 +6458,7 @@
EventHandler.trigger(_this2.element, _this2.constructor.Event.HIDDEN);
if (_this2._popper !== null) {
_this2._popper.destroy();
}
if (callback) {
callback();
}
_this2._popper.destroy();
};
var hideEvent = EventHandler.trigger(this.element, this.constructor.Event.HIDE);
@ -6529,10 +6502,6 @@
return Boolean(this.getTitle());
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
if (this.tip) {
return this.tip;
@ -6556,7 +6525,7 @@
return;
}
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
if (typeof content === 'object' && isElement(content)) {
if (content.jquery) {
content = content[0];
} // content is a DOM node or a jQuery
@ -6596,6 +6565,10 @@
} // Private
;
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto._getOffset = function _getOffset() {
var _this3 = this;
@ -6603,7 +6576,7 @@
if (typeof this.config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
return data;
};
} else {
@ -6659,7 +6632,7 @@
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _objectSpread({}, this.config, {
this.config = _objectSpread2({}, this.config, {
trigger: 'manual',
selector: ''
});
@ -6764,7 +6737,7 @@
config.container = config.container[0];
}
config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, this.constructor.Default, {}, dataAttributes, {}, typeof config === 'object' && config ? config : {});
if (typeof config.delay === 'number') {
config.delay = {
@ -6823,7 +6796,7 @@
this._cleanTipClass();
this.addAttachmentClass(this._getAttachment(popperData.placement));
this._addAttachmentClass(this._getAttachment(popperData.placement));
};
_proto._fixTransition = function _fixTransition() {
@ -6916,6 +6889,8 @@
* add .tooltip to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
@ -6941,14 +6916,14 @@
var CLASS_PREFIX$1 = 'bs-popover';
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
var Default$5 = _objectSpread({}, Tooltip.Default, {
var Default$5 = _objectSpread2({}, Tooltip.Default, {
placement: 'right',
trigger: 'click',
content: '',
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
});
var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, {
var DefaultType$5 = _objectSpread2({}, Tooltip.DefaultType, {
content: '(string|element|function)'
});
@ -7109,6 +7084,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
@ -7252,7 +7229,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$6, {}, typeof config === 'object' && config ? config : {});
if (typeof config.target !== 'string') {
var id = config.target.id;
@ -7423,6 +7400,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$8 = jQuery.fn[NAME$8];
jQuery.fn[NAME$8] = ScrollSpy._jQueryInterface;
@ -7660,6 +7639,8 @@
* add .tab to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
jQuery.fn[NAME$9] = Tab._jQueryInterface;
@ -7760,6 +7741,8 @@
this._element.classList.remove(ClassName$a.HIDE);
reflow(this._element);
this._element.classList.add(ClassName$a.SHOWING);
if (this._config.animation) {
@ -7817,7 +7800,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$7, Manipulator.getDataAttributes(this._element), typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$7, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
return config;
};
@ -7881,6 +7864,8 @@
* add .toast to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -36,20 +36,35 @@ function _defineProperty(obj, key, value) {
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -742,10 +757,6 @@ var SelectorEngine = {
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return find.call(element, selector);
},
findOne: function findOne$1(selector, element) {
@ -753,29 +764,17 @@ var SelectorEngine = {
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return findOne.call(element, selector);
},
children: function children(element, selector) {
var _this = this;
if (typeof selector !== 'string') {
return null;
}
var children = makeArray(element.children);
return children.filter(function (child) {
return _this.matches(child, selector);
});
},
parents: function parents(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var parents = [];
var ancestor = element.parentNode;
@ -790,17 +789,9 @@ var SelectorEngine = {
return parents;
},
closest: function closest$1(element, selector) {
if (typeof selector !== 'string') {
return null;
}
return closest.call(element, selector);
},
prev: function prev(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var siblings = [];
var previous = element.previousSibling;
@ -915,8 +906,8 @@ function () {
}
var transitionDuration = getTransitionDurationFromElement(element);
EventHandler.one(element, TRANSITION_END, function (event) {
return _this._destroyElement(element, event);
EventHandler.one(element, TRANSITION_END, function () {
return _this._destroyElement(element);
});
emulateTransitionEnd(element, transitionDuration);
};
@ -982,6 +973,8 @@ EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handl
* add .alert to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Alert._jQueryInterface;
@ -1136,7 +1129,6 @@ EventHandler.on(document, Event$2.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT,
if (!data) {
data = new Button(button);
Data.setData(button, DATA_KEY$1, data);
}
data.toggle();
@ -1162,6 +1154,8 @@ EventHandler.on(document, Event$2.BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT,
* add .button to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
jQuery.fn[NAME$1] = Button._jQueryInterface;
@ -1217,7 +1211,7 @@ var Manipulator = {
return {};
}
var attributes = _objectSpread({}, element.dataset);
var attributes = _objectSpread2({}, element.dataset);
Object.keys(attributes).forEach(function (key) {
attributes[key] = normalizeData(attributes[key]);
@ -1460,7 +1454,7 @@ function () {
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
typeCheckConfig(NAME$2, config, DefaultType);
return config;
};
@ -1503,7 +1497,7 @@ function () {
});
}
if (this._config.touch) {
if (this._config.touch && this._touchSupported) {
this._addTouchEventListeners();
}
};
@ -1511,10 +1505,6 @@ function () {
_proto._addTouchEventListeners = function _addTouchEventListeners() {
var _this3 = this;
if (!this._touchSupported) {
return;
}
var start = function start(event) {
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
_this3.touchStartX = event.clientX;
@ -1763,10 +1753,10 @@ function () {
Carousel._carouselInterface = function _carouselInterface(element, config) {
var data = Data.getData(element, DATA_KEY$2);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(element));
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
if (typeof config === 'object') {
_config = _objectSpread({}, _config, config);
_config = _objectSpread2({}, _config, {}, config);
}
var action = typeof config === 'string' ? config : _config.slide;
@ -1808,7 +1798,7 @@ function () {
return;
}
var config = _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
var slideIndex = this.getAttribute('data-slide-to');
@ -1865,6 +1855,8 @@ EventHandler.on(window, Event$3.LOAD_DATA_API, function () {
* add .carousel to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
@ -2141,7 +2133,7 @@ function () {
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$1, config);
config = _objectSpread2({}, Default$1, {}, config);
config.toggle = Boolean(config.toggle); // Coerce string values
typeCheckConfig(NAME$3, config, DefaultType$1);
@ -2170,7 +2162,10 @@ function () {
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
var selector = getSelectorFromElement(element);
var selected = selector ? SelectorEngine.findOne(selector) : null;
_this3._addAriaAndCollapsedClass(selected, [element]);
});
return parent;
};
@ -2194,15 +2189,10 @@ function () {
} // Static
;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = getSelectorFromElement(element);
return selector ? SelectorEngine.findOne(selector) : null;
};
Collapse._collapseInterface = function _collapseInterface(element, config) {
var data = Data.getData(element, DATA_KEY$3);
var _config = _objectSpread({}, Default$1, Manipulator.getDataAttributes(element), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false;
@ -2287,6 +2277,8 @@ EventHandler.on(document, Event$4.CLICK_DATA_API, Selector$3.DATA_TOGGLE, functi
* add .collapse to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
@ -2549,21 +2541,15 @@ function () {
};
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
config = _objectSpread2({}, this.constructor.Default, {}, Manipulator.getDataAttributes(this._element), {}, config);
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
return config;
};
_proto._getMenuElement = function _getMenuElement() {
if (!this._menu) {
var parent = Dropdown._getParentFromElement(this._element);
var parent = Dropdown._getParentFromElement(this._element);
if (parent) {
this._menu = SelectorEngine.findOne(Selector$4.MENU, parent);
}
}
return this._menu;
return SelectorEngine.findOne(Selector$4.MENU, parent);
};
_proto._getPlacement = function _getPlacement() {
@ -2598,7 +2584,7 @@ function () {
if (typeof this._config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this2._config.offset(data.offsets, _this2._element) || {});
return data;
};
} else {
@ -2830,6 +2816,8 @@ EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.FORM_CHILD, functio
* add .dropdown to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
@ -2986,7 +2974,7 @@ function () {
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE);
if (!this._isShown || hideEvent.defaultPrevented) {
if (hideEvent.defaultPrevented) {
return;
}
@ -3049,7 +3037,7 @@ function () {
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$3, config);
config = _objectSpread2({}, Default$3, {}, config);
typeCheckConfig(NAME$5, config, DefaultType$3);
return config;
};
@ -3129,7 +3117,7 @@ function () {
_this5.hide();
}
});
} else if (!this._isShown) {
} else {
EventHandler.off(this._element, Event$6.KEYDOWN_DISMISS);
}
};
@ -3138,8 +3126,8 @@ function () {
var _this6 = this;
if (this._isShown) {
EventHandler.on(window, Event$6.RESIZE, function (event) {
return _this6.handleUpdate(event);
EventHandler.on(window, Event$6.RESIZE, function () {
return _this6._adjustDialog();
});
} else {
EventHandler.off(window, Event$6.RESIZE);
@ -3169,11 +3157,9 @@ function () {
};
_proto._removeBackdrop = function _removeBackdrop() {
if (this._backdrop) {
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop = null;
}
this._backdrop = null;
};
_proto._showBackdrop = function _showBackdrop(callback) {
@ -3213,10 +3199,6 @@ function () {
this._backdrop.classList.add(ClassName$5.SHOW);
if (!callback) {
return;
}
if (!animate) {
callback();
return;
@ -3231,9 +3213,7 @@ function () {
var callbackRemove = function callbackRemove() {
_this8._removeBackdrop();
if (callback) {
callback();
}
callback();
};
if (this._element.classList.contains(ClassName$5.FADE)) {
@ -3244,7 +3224,7 @@ function () {
} else {
callbackRemove();
}
} else if (callback) {
} else {
callback();
}
} // ----------------------------------------------------------------------
@ -3350,7 +3330,7 @@ function () {
return this.each(function () {
var data = Data.getData(this, DATA_KEY$5);
var _config = _objectSpread({}, Default$3, Manipulator.getDataAttributes(this), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$3, {}, Manipulator.getDataAttributes(this), {}, typeof config === 'object' && config ? config : {});
if (!data) {
data = new Modal(this, _config);
@ -3396,14 +3376,8 @@ function () {
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
var _this10 = this;
var target;
var selector = getSelectorFromElement(this);
if (selector) {
target = SelectorEngine.findOne(selector);
}
var config = Data.getData(target, DATA_KEY$5) ? 'toggle' : _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var target = SelectorEngine.findOne(selector);
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();
@ -3424,6 +3398,8 @@ EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, functi
var data = Data.getData(target, DATA_KEY$5);
if (!data) {
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
data = new Modal(target, config);
}
@ -3433,8 +3409,11 @@ EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, functi
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .modal to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
jQuery.fn[NAME$5] = Modal._jQueryInterface;
@ -3559,7 +3538,7 @@ function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
};
for (var i = 0, len = elements.length; i < len; i++) {
var _ret = _loop(i, len);
var _ret = _loop(i);
if (_ret === "continue") continue;
}
@ -3788,7 +3767,7 @@ function () {
var attachment = this._getAttachment(placement);
this.addAttachmentClass(attachment);
this._addAttachmentClass(attachment);
var container = this._getContainer();
@ -3857,7 +3836,7 @@ function () {
}
};
_proto.hide = function hide(callback) {
_proto.hide = function hide() {
var _this2 = this;
var tip = this.getTipElement();
@ -3873,13 +3852,7 @@ function () {
EventHandler.trigger(_this2.element, _this2.constructor.Event.HIDDEN);
if (_this2._popper !== null) {
_this2._popper.destroy();
}
if (callback) {
callback();
}
_this2._popper.destroy();
};
var hideEvent = EventHandler.trigger(this.element, this.constructor.Event.HIDE);
@ -3923,10 +3896,6 @@ function () {
return Boolean(this.getTitle());
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
if (this.tip) {
return this.tip;
@ -3950,7 +3919,7 @@ function () {
return;
}
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
if (typeof content === 'object' && isElement(content)) {
if (content.jquery) {
content = content[0];
} // content is a DOM node or a jQuery
@ -3990,6 +3959,10 @@ function () {
} // Private
;
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto._getOffset = function _getOffset() {
var _this3 = this;
@ -3997,7 +3970,7 @@ function () {
if (typeof this.config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
return data;
};
} else {
@ -4053,7 +4026,7 @@ function () {
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _objectSpread({}, this.config, {
this.config = _objectSpread2({}, this.config, {
trigger: 'manual',
selector: ''
});
@ -4158,7 +4131,7 @@ function () {
config.container = config.container[0];
}
config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, this.constructor.Default, {}, dataAttributes, {}, typeof config === 'object' && config ? config : {});
if (typeof config.delay === 'number') {
config.delay = {
@ -4217,7 +4190,7 @@ function () {
this._cleanTipClass();
this.addAttachmentClass(this._getAttachment(popperData.placement));
this._addAttachmentClass(this._getAttachment(popperData.placement));
};
_proto._fixTransition = function _fixTransition() {
@ -4310,6 +4283,8 @@ function () {
* add .tooltip to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
@ -4335,14 +4310,14 @@ var EVENT_KEY$7 = "." + DATA_KEY$7;
var CLASS_PREFIX$1 = 'bs-popover';
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
var Default$5 = _objectSpread({}, Tooltip.Default, {
var Default$5 = _objectSpread2({}, Tooltip.Default, {
placement: 'right',
trigger: 'click',
content: '',
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
});
var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, {
var DefaultType$5 = _objectSpread2({}, Tooltip.DefaultType, {
content: '(string|element|function)'
});
@ -4503,6 +4478,8 @@ function (_Tooltip) {
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
@ -4646,7 +4623,7 @@ function () {
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$6, {}, typeof config === 'object' && config ? config : {});
if (typeof config.target !== 'string') {
var id = config.target.id;
@ -4817,6 +4794,8 @@ EventHandler.on(window, Event$9.LOAD_DATA_API, function () {
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$8 = jQuery.fn[NAME$8];
jQuery.fn[NAME$8] = ScrollSpy._jQueryInterface;
@ -5054,6 +5033,8 @@ EventHandler.on(document, Event$a.CLICK_DATA_API, Selector$9.DATA_TOGGLE, functi
* add .tab to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
jQuery.fn[NAME$9] = Tab._jQueryInterface;
@ -5154,6 +5135,8 @@ function () {
this._element.classList.remove(ClassName$a.HIDE);
reflow(this._element);
this._element.classList.add(ClassName$a.SHOWING);
if (this._config.animation) {
@ -5211,7 +5194,7 @@ function () {
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$7, Manipulator.getDataAttributes(this._element), typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$7, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
return config;
};
@ -5275,6 +5258,8 @@ function () {
* add .toast to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];
@ -5287,12 +5272,5 @@ if (typeof jQuery !== 'undefined') {
};
}
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.3.1): index.esm.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
export { Alert, Button, Carousel, Collapse, Dropdown, Modal, Popover, ScrollSpy, Tab, Toast, Tooltip };
//# sourceMappingURL=bootstrap.esm.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -42,20 +42,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -748,10 +763,6 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return find.call(element, selector);
},
findOne: function findOne$1(selector, element) {
@ -759,29 +770,17 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return findOne.call(element, selector);
},
children: function children(element, selector) {
var _this = this;
if (typeof selector !== 'string') {
return null;
}
var children = makeArray(element.children);
return children.filter(function (child) {
return _this.matches(child, selector);
});
},
parents: function parents(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var parents = [];
var ancestor = element.parentNode;
@ -796,17 +795,9 @@
return parents;
},
closest: function closest$1(element, selector) {
if (typeof selector !== 'string') {
return null;
}
return closest.call(element, selector);
},
prev: function prev(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var siblings = [];
var previous = element.previousSibling;
@ -921,8 +912,8 @@
}
var transitionDuration = getTransitionDurationFromElement(element);
EventHandler.one(element, TRANSITION_END, function (event) {
return _this._destroyElement(element, event);
EventHandler.one(element, TRANSITION_END, function () {
return _this._destroyElement(element);
});
emulateTransitionEnd(element, transitionDuration);
};
@ -988,6 +979,8 @@
* add .alert to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Alert._jQueryInterface;
@ -1142,7 +1135,6 @@
if (!data) {
data = new Button(button);
Data.setData(button, DATA_KEY$1, data);
}
data.toggle();
@ -1168,6 +1160,8 @@
* add .button to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
jQuery.fn[NAME$1] = Button._jQueryInterface;
@ -1223,7 +1217,7 @@
return {};
}
var attributes = _objectSpread({}, element.dataset);
var attributes = _objectSpread2({}, element.dataset);
Object.keys(attributes).forEach(function (key) {
attributes[key] = normalizeData(attributes[key]);
@ -1466,7 +1460,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
typeCheckConfig(NAME$2, config, DefaultType);
return config;
};
@ -1509,7 +1503,7 @@
});
}
if (this._config.touch) {
if (this._config.touch && this._touchSupported) {
this._addTouchEventListeners();
}
};
@ -1517,10 +1511,6 @@
_proto._addTouchEventListeners = function _addTouchEventListeners() {
var _this3 = this;
if (!this._touchSupported) {
return;
}
var start = function start(event) {
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
_this3.touchStartX = event.clientX;
@ -1769,10 +1759,10 @@
Carousel._carouselInterface = function _carouselInterface(element, config) {
var data = Data.getData(element, DATA_KEY$2);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(element));
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
if (typeof config === 'object') {
_config = _objectSpread({}, _config, config);
_config = _objectSpread2({}, _config, {}, config);
}
var action = typeof config === 'string' ? config : _config.slide;
@ -1814,7 +1804,7 @@
return;
}
var config = _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
var slideIndex = this.getAttribute('data-slide-to');
@ -1871,6 +1861,8 @@
* add .carousel to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
@ -2147,7 +2139,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$1, config);
config = _objectSpread2({}, Default$1, {}, config);
config.toggle = Boolean(config.toggle); // Coerce string values
typeCheckConfig(NAME$3, config, DefaultType$1);
@ -2176,7 +2168,10 @@
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
var selector = getSelectorFromElement(element);
var selected = selector ? SelectorEngine.findOne(selector) : null;
_this3._addAriaAndCollapsedClass(selected, [element]);
});
return parent;
};
@ -2200,15 +2195,10 @@
} // Static
;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = getSelectorFromElement(element);
return selector ? SelectorEngine.findOne(selector) : null;
};
Collapse._collapseInterface = function _collapseInterface(element, config) {
var data = Data.getData(element, DATA_KEY$3);
var _config = _objectSpread({}, Default$1, Manipulator.getDataAttributes(element), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false;
@ -2293,6 +2283,8 @@
* add .collapse to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
@ -2555,21 +2547,15 @@
};
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
config = _objectSpread2({}, this.constructor.Default, {}, Manipulator.getDataAttributes(this._element), {}, config);
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
return config;
};
_proto._getMenuElement = function _getMenuElement() {
if (!this._menu) {
var parent = Dropdown._getParentFromElement(this._element);
var parent = Dropdown._getParentFromElement(this._element);
if (parent) {
this._menu = SelectorEngine.findOne(Selector$4.MENU, parent);
}
}
return this._menu;
return SelectorEngine.findOne(Selector$4.MENU, parent);
};
_proto._getPlacement = function _getPlacement() {
@ -2604,7 +2590,7 @@
if (typeof this._config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this2._config.offset(data.offsets, _this2._element) || {});
return data;
};
} else {
@ -2836,6 +2822,8 @@
* add .dropdown to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
@ -2992,7 +2980,7 @@
var hideEvent = EventHandler.trigger(this._element, Event$6.HIDE);
if (!this._isShown || hideEvent.defaultPrevented) {
if (hideEvent.defaultPrevented) {
return;
}
@ -3055,7 +3043,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$3, config);
config = _objectSpread2({}, Default$3, {}, config);
typeCheckConfig(NAME$5, config, DefaultType$3);
return config;
};
@ -3135,7 +3123,7 @@
_this5.hide();
}
});
} else if (!this._isShown) {
} else {
EventHandler.off(this._element, Event$6.KEYDOWN_DISMISS);
}
};
@ -3144,8 +3132,8 @@
var _this6 = this;
if (this._isShown) {
EventHandler.on(window, Event$6.RESIZE, function (event) {
return _this6.handleUpdate(event);
EventHandler.on(window, Event$6.RESIZE, function () {
return _this6._adjustDialog();
});
} else {
EventHandler.off(window, Event$6.RESIZE);
@ -3175,11 +3163,9 @@
};
_proto._removeBackdrop = function _removeBackdrop() {
if (this._backdrop) {
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop = null;
}
this._backdrop = null;
};
_proto._showBackdrop = function _showBackdrop(callback) {
@ -3219,10 +3205,6 @@
this._backdrop.classList.add(ClassName$5.SHOW);
if (!callback) {
return;
}
if (!animate) {
callback();
return;
@ -3237,9 +3219,7 @@
var callbackRemove = function callbackRemove() {
_this8._removeBackdrop();
if (callback) {
callback();
}
callback();
};
if (this._element.classList.contains(ClassName$5.FADE)) {
@ -3250,7 +3230,7 @@
} else {
callbackRemove();
}
} else if (callback) {
} else {
callback();
}
} // ----------------------------------------------------------------------
@ -3356,7 +3336,7 @@
return this.each(function () {
var data = Data.getData(this, DATA_KEY$5);
var _config = _objectSpread({}, Default$3, Manipulator.getDataAttributes(this), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default$3, {}, Manipulator.getDataAttributes(this), {}, typeof config === 'object' && config ? config : {});
if (!data) {
data = new Modal(this, _config);
@ -3402,14 +3382,8 @@
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
var _this10 = this;
var target;
var selector = getSelectorFromElement(this);
if (selector) {
target = SelectorEngine.findOne(selector);
}
var config = Data.getData(target, DATA_KEY$5) ? 'toggle' : _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var target = SelectorEngine.findOne(selector);
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();
@ -3430,6 +3404,8 @@
var data = Data.getData(target, DATA_KEY$5);
if (!data) {
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
data = new Modal(target, config);
}
@ -3439,8 +3415,11 @@
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .modal to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
jQuery.fn[NAME$5] = Modal._jQueryInterface;
@ -3565,7 +3544,7 @@
};
for (var i = 0, len = elements.length; i < len; i++) {
var _ret = _loop(i, len);
var _ret = _loop(i);
if (_ret === "continue") continue;
}
@ -3794,7 +3773,7 @@
var attachment = this._getAttachment(placement);
this.addAttachmentClass(attachment);
this._addAttachmentClass(attachment);
var container = this._getContainer();
@ -3863,7 +3842,7 @@
}
};
_proto.hide = function hide(callback) {
_proto.hide = function hide() {
var _this2 = this;
var tip = this.getTipElement();
@ -3879,13 +3858,7 @@
EventHandler.trigger(_this2.element, _this2.constructor.Event.HIDDEN);
if (_this2._popper !== null) {
_this2._popper.destroy();
}
if (callback) {
callback();
}
_this2._popper.destroy();
};
var hideEvent = EventHandler.trigger(this.element, this.constructor.Event.HIDE);
@ -3929,10 +3902,6 @@
return Boolean(this.getTitle());
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
if (this.tip) {
return this.tip;
@ -3956,7 +3925,7 @@
return;
}
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
if (typeof content === 'object' && isElement(content)) {
if (content.jquery) {
content = content[0];
} // content is a DOM node or a jQuery
@ -3996,6 +3965,10 @@
} // Private
;
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto._getOffset = function _getOffset() {
var _this3 = this;
@ -4003,7 +3976,7 @@
if (typeof this.config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
return data;
};
} else {
@ -4059,7 +4032,7 @@
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _objectSpread({}, this.config, {
this.config = _objectSpread2({}, this.config, {
trigger: 'manual',
selector: ''
});
@ -4164,7 +4137,7 @@
config.container = config.container[0];
}
config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, this.constructor.Default, {}, dataAttributes, {}, typeof config === 'object' && config ? config : {});
if (typeof config.delay === 'number') {
config.delay = {
@ -4223,7 +4196,7 @@
this._cleanTipClass();
this.addAttachmentClass(this._getAttachment(popperData.placement));
this._addAttachmentClass(this._getAttachment(popperData.placement));
};
_proto._fixTransition = function _fixTransition() {
@ -4316,6 +4289,8 @@
* add .tooltip to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
@ -4341,14 +4316,14 @@
var CLASS_PREFIX$1 = 'bs-popover';
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
var Default$5 = _objectSpread({}, Tooltip.Default, {
var Default$5 = _objectSpread2({}, Tooltip.Default, {
placement: 'right',
trigger: 'click',
content: '',
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
});
var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, {
var DefaultType$5 = _objectSpread2({}, Tooltip.DefaultType, {
content: '(string|element|function)'
});
@ -4509,6 +4484,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
@ -4652,7 +4629,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$6, {}, typeof config === 'object' && config ? config : {});
if (typeof config.target !== 'string') {
var id = config.target.id;
@ -4823,6 +4800,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$8 = jQuery.fn[NAME$8];
jQuery.fn[NAME$8] = ScrollSpy._jQueryInterface;
@ -5060,6 +5039,8 @@
* add .tab to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
jQuery.fn[NAME$9] = Tab._jQueryInterface;
@ -5160,6 +5141,8 @@
this._element.classList.remove(ClassName$a.HIDE);
reflow(this._element);
this._element.classList.add(ClassName$a.SHOWING);
if (this._config.animation) {
@ -5217,7 +5200,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$7, Manipulator.getDataAttributes(this._element), typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default$7, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
return config;
};
@ -5281,6 +5264,8 @@
* add .toast to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

10
js/dist/alert.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/selector-engine.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Alert = factory(global.Data, global.EventHandler, global.SelectorEngine));
}(this, function (Data, EventHandler, SelectorEngine) { 'use strict';
@ -201,8 +201,8 @@
}
var transitionDuration = getTransitionDurationFromElement(element);
EventHandler.one(element, TRANSITION_END, function (event) {
return _this._destroyElement(element, event);
EventHandler.one(element, TRANSITION_END, function () {
return _this._destroyElement(element);
});
emulateTransitionEnd(element, transitionDuration);
};
@ -268,6 +268,8 @@
* add .alert to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Alert._jQueryInterface;

BIN
js/dist/alert.js.map vendored

Binary file not shown.

7
js/dist/button.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/selector-engine.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Button = factory(global.Data, global.EventHandler, global.SelectorEngine));
}(this, function (Data, EventHandler, SelectorEngine) { 'use strict';
@ -181,7 +181,6 @@
if (!data) {
data = new Button(button);
Data.setData(button, DATA_KEY, data);
}
data.toggle();
@ -207,6 +206,8 @@
* add .button to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Button._jQueryInterface;

BIN
js/dist/button.js.map vendored

Binary file not shown.

55
js/dist/carousel.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
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')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
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')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Carousel = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
@ -45,20 +45,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -388,7 +403,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
typeCheckConfig(NAME, config, DefaultType);
return config;
};
@ -431,7 +446,7 @@
});
}
if (this._config.touch) {
if (this._config.touch && this._touchSupported) {
this._addTouchEventListeners();
}
};
@ -439,10 +454,6 @@
_proto._addTouchEventListeners = function _addTouchEventListeners() {
var _this3 = this;
if (!this._touchSupported) {
return;
}
var start = function start(event) {
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
_this3.touchStartX = event.clientX;
@ -691,10 +702,10 @@
Carousel._carouselInterface = function _carouselInterface(element, config) {
var data = Data.getData(element, DATA_KEY);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(element));
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
if (typeof config === 'object') {
_config = _objectSpread({}, _config, config);
_config = _objectSpread2({}, _config, {}, config);
}
var action = typeof config === 'string' ? config : _config.slide;
@ -736,7 +747,7 @@
return;
}
var config = _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
var slideIndex = this.getAttribute('data-slide-to');
@ -793,6 +804,8 @@
* add .carousel to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Carousel._jQueryInterface;

Binary file not shown.

55
js/dist/collapse.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
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')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
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')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
@ -45,20 +45,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -434,7 +449,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
config.toggle = Boolean(config.toggle); // Coerce string values
typeCheckConfig(NAME, config, DefaultType);
@ -463,7 +478,10 @@
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
var selector = getSelectorFromElement(element);
var selected = selector ? SelectorEngine.findOne(selector) : null;
_this3._addAriaAndCollapsedClass(selected, [element]);
});
return parent;
};
@ -487,15 +505,10 @@
} // Static
;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = getSelectorFromElement(element);
return selector ? SelectorEngine.findOne(selector) : null;
};
Collapse._collapseInterface = function _collapseInterface(element, config) {
var data = Data.getData(element, DATA_KEY);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(element), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false;
@ -580,6 +593,8 @@
* add .collapse to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Collapse._jQueryInterface;

Binary file not shown.

Binary file not shown.

View file

@ -24,20 +24,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -87,7 +102,7 @@
return {};
}
var attributes = _objectSpread({}, element.dataset);
var attributes = _objectSpread2({}, element.dataset);
Object.keys(attributes).forEach(function (key) {
attributes[key] = normalizeData(attributes[key]);

Binary file not shown.

View file

@ -48,10 +48,6 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return polyfill_js.find.call(element, selector);
},
findOne: function findOne(selector, element) {
@ -59,29 +55,17 @@
element = document.documentElement;
}
if (typeof selector !== 'string') {
return null;
}
return polyfill_js.findOne.call(element, selector);
},
children: function children(element, selector) {
var _this = this;
if (typeof selector !== 'string') {
return null;
}
var children = makeArray(element.children);
return children.filter(function (child) {
return _this.matches(child, selector);
});
},
parents: function parents(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var parents = [];
var ancestor = element.parentNode;
@ -96,17 +80,9 @@
return parents;
},
closest: function closest(element, selector) {
if (typeof selector !== 'string') {
return null;
}
return polyfill_js.closest.call(element, selector);
},
prev: function prev(element, selector) {
if (typeof selector !== 'string') {
return null;
}
var siblings = [];
var previous = element.previousSibling;

Binary file not shown.

55
js/dist/dropdown.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('popper.js'), require('./dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', 'popper.js', './dom/selector-engine.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/manipulator.js'), require('popper.js'), require('../dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', 'popper.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Dropdown = factory(global.Data, global.EventHandler, global.Manipulator, global.Popper, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, Popper, SelectorEngine) { 'use strict';
@ -46,20 +46,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -373,21 +388,15 @@
};
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
config = _objectSpread2({}, this.constructor.Default, {}, Manipulator.getDataAttributes(this._element), {}, config);
typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config;
};
_proto._getMenuElement = function _getMenuElement() {
if (!this._menu) {
var parent = Dropdown._getParentFromElement(this._element);
var parent = Dropdown._getParentFromElement(this._element);
if (parent) {
this._menu = SelectorEngine.findOne(Selector.MENU, parent);
}
}
return this._menu;
return SelectorEngine.findOne(Selector.MENU, parent);
};
_proto._getPlacement = function _getPlacement() {
@ -422,7 +431,7 @@
if (typeof this._config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this2._config.offset(data.offsets, _this2._element) || {});
return data;
};
} else {
@ -654,6 +663,8 @@
* add .dropdown to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Dropdown._jQueryInterface;

Binary file not shown.

80
js/dist/modal.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
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')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
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')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
@ -45,20 +45,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -326,7 +341,7 @@
var hideEvent = EventHandler.trigger(this._element, Event.HIDE);
if (!this._isShown || hideEvent.defaultPrevented) {
if (hideEvent.defaultPrevented) {
return;
}
@ -389,7 +404,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
config = _objectSpread2({}, Default, {}, config);
typeCheckConfig(NAME, config, DefaultType);
return config;
};
@ -469,7 +484,7 @@
_this5.hide();
}
});
} else if (!this._isShown) {
} else {
EventHandler.off(this._element, Event.KEYDOWN_DISMISS);
}
};
@ -478,8 +493,8 @@
var _this6 = this;
if (this._isShown) {
EventHandler.on(window, Event.RESIZE, function (event) {
return _this6.handleUpdate(event);
EventHandler.on(window, Event.RESIZE, function () {
return _this6._adjustDialog();
});
} else {
EventHandler.off(window, Event.RESIZE);
@ -509,11 +524,9 @@
};
_proto._removeBackdrop = function _removeBackdrop() {
if (this._backdrop) {
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop.parentNode.removeChild(this._backdrop);
this._backdrop = null;
}
this._backdrop = null;
};
_proto._showBackdrop = function _showBackdrop(callback) {
@ -553,10 +566,6 @@
this._backdrop.classList.add(ClassName.SHOW);
if (!callback) {
return;
}
if (!animate) {
callback();
return;
@ -571,9 +580,7 @@
var callbackRemove = function callbackRemove() {
_this8._removeBackdrop();
if (callback) {
callback();
}
callback();
};
if (this._element.classList.contains(ClassName.FADE)) {
@ -584,7 +591,7 @@
} else {
callbackRemove();
}
} else if (callback) {
} else {
callback();
}
} // ----------------------------------------------------------------------
@ -690,7 +697,7 @@
return this.each(function () {
var data = Data.getData(this, DATA_KEY);
var _config = _objectSpread({}, Default, Manipulator.getDataAttributes(this), typeof config === 'object' && config ? config : {});
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(this), {}, typeof config === 'object' && config ? config : {});
if (!data) {
data = new Modal(this, _config);
@ -736,14 +743,8 @@
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
var _this10 = this;
var target;
var selector = getSelectorFromElement(this);
if (selector) {
target = SelectorEngine.findOne(selector);
}
var config = Data.getData(target, DATA_KEY) ? 'toggle' : _objectSpread({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
var target = SelectorEngine.findOne(selector);
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();
@ -764,6 +765,8 @@
var data = Data.getData(target, DATA_KEY);
if (!data) {
var config = _objectSpread2({}, Manipulator.getDataAttributes(target), {}, Manipulator.getDataAttributes(this));
data = new Modal(target, config);
}
@ -773,8 +776,11 @@
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .modal to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Modal._jQueryInterface;

BIN
js/dist/modal.js.map vendored

Binary file not shown.

45
js/dist/popover.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/selector-engine.js'), require('./tooltip.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/selector-engine.js', './tooltip.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/selector-engine.js'), require('../tooltip/tooltip.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/selector-engine.js', '../tooltip/tooltip.js'], factory) :
(global = global || self, global.Popover = factory(global.Data, global.SelectorEngine, global.Tooltip));
}(this, function (Data, SelectorEngine, Tooltip) { 'use strict';
@ -44,20 +44,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -91,14 +106,14 @@
var CLASS_PREFIX = 'bs-popover';
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
var Default = _objectSpread({}, Tooltip.Default, {
var Default = _objectSpread2({}, Tooltip.Default, {
placement: 'right',
trigger: 'click',
content: '',
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
});
var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
var DefaultType = _objectSpread2({}, Tooltip.DefaultType, {
content: '(string|element|function)'
});
@ -259,6 +274,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];

BIN
js/dist/popover.js.map vendored

Binary file not shown.

43
js/dist/scrollspy.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
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')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
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')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
@ -45,20 +45,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -263,7 +278,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default, {}, typeof config === 'object' && config ? config : {});
if (typeof config.target !== 'string') {
var id = config.target.id;
@ -434,6 +449,8 @@
* ------------------------------------------------------------------------
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = ScrollSpy._jQueryInterface;

Binary file not shown.

6
js/dist/tab.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/selector-engine.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
}(this, function (Data, EventHandler, SelectorEngine) { 'use strict';
@ -340,6 +340,8 @@
* add .tab to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
jQuery.fn[NAME] = Tab._jQueryInterface;

BIN
js/dist/tab.js.map vendored

Binary file not shown.

49
js/dist/toast.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/manipulator.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js'], factory) :
(global = global || self, global.Toast = factory(global.Data, global.EventHandler, global.Manipulator));
}(this, function (Data, EventHandler, Manipulator) { 'use strict';
@ -44,20 +44,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -141,6 +156,10 @@
});
};
var reflow = function reflow(element) {
return element.offsetHeight;
};
/**
* ------------------------------------------------------------------------
* Constants
@ -230,6 +249,8 @@
this._element.classList.remove(ClassName.HIDE);
reflow(this._element);
this._element.classList.add(ClassName.SHOWING);
if (this._config.animation) {
@ -287,7 +308,7 @@
;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, Manipulator.getDataAttributes(this._element), typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config;
};
@ -351,6 +372,8 @@
* add .toast to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];

BIN
js/dist/toast.js.map vendored

Binary file not shown.

73
js/dist/tooltip.js vendored
View file

@ -4,8 +4,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('popper.js'), require('./dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', 'popper.js', './dom/selector-engine.js'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../dom/data.js'), require('../dom/event-handler.js'), require('../dom/manipulator.js'), require('popper.js'), require('../dom/selector-engine.js')) :
typeof define === 'function' && define.amd ? define(['../dom/data.js', '../dom/event-handler.js', '../dom/manipulator.js', 'popper.js', '../dom/selector-engine.js'], factory) :
(global = global || self, global.Tooltip = factory(global.Data, global.EventHandler, global.Manipulator, global.Popper, global.SelectorEngine));
}(this, function (Data, EventHandler, Manipulator, Popper, SelectorEngine) { 'use strict';
@ -46,20 +46,35 @@
return obj;
}
function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
@ -308,7 +323,7 @@
};
for (var i = 0, len = elements.length; i < len; i++) {
var _ret = _loop(i, len);
var _ret = _loop(i);
if (_ret === "continue") continue;
}
@ -537,7 +552,7 @@
var attachment = this._getAttachment(placement);
this.addAttachmentClass(attachment);
this._addAttachmentClass(attachment);
var container = this._getContainer();
@ -606,7 +621,7 @@
}
};
_proto.hide = function hide(callback) {
_proto.hide = function hide() {
var _this2 = this;
var tip = this.getTipElement();
@ -622,13 +637,7 @@
EventHandler.trigger(_this2.element, _this2.constructor.Event.HIDDEN);
if (_this2._popper !== null) {
_this2._popper.destroy();
}
if (callback) {
callback();
}
_this2._popper.destroy();
};
var hideEvent = EventHandler.trigger(this.element, this.constructor.Event.HIDE);
@ -672,10 +681,6 @@
return Boolean(this.getTitle());
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
if (this.tip) {
return this.tip;
@ -699,7 +704,7 @@
return;
}
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
if (typeof content === 'object' && isElement(content)) {
if (content.jquery) {
content = content[0];
} // content is a DOM node or a jQuery
@ -739,6 +744,10 @@
} // Private
;
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
};
_proto._getOffset = function _getOffset() {
var _this3 = this;
@ -746,7 +755,7 @@
if (typeof this.config.offset === 'function') {
offset.fn = function (data) {
data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {});
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
return data;
};
} else {
@ -802,7 +811,7 @@
EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _objectSpread({}, this.config, {
this.config = _objectSpread2({}, this.config, {
trigger: 'manual',
selector: ''
});
@ -907,7 +916,7 @@
config.container = config.container[0];
}
config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
config = _objectSpread2({}, this.constructor.Default, {}, dataAttributes, {}, typeof config === 'object' && config ? config : {});
if (typeof config.delay === 'number') {
config.delay = {
@ -966,7 +975,7 @@
this._cleanTipClass();
this.addAttachmentClass(this._getAttachment(popperData.placement));
this._addAttachmentClass(this._getAttachment(popperData.placement));
};
_proto._fixTransition = function _fixTransition() {
@ -1059,6 +1068,8 @@
* add .tooltip to jQuery only if jQuery is present
*/
/* istanbul ignore if */
if (typeof jQuery !== 'undefined') {
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];

BIN
js/dist/tooltip.js.map vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -19,4 +19,4 @@
* Licensed under the Creative Commons Attribution 3.0 Unported License.
* For details, see https://creativecommons.org/licenses/by/3.0/.
*/
(function(){"use strict";function e(e){return[].slice.call(e)}var t=document.querySelectorAll(".js-sidenav-group");var n;var o;t.forEach(e=>{n=Boolean(e.querySelector("li"));o=e.querySelector("a");if(n){o.addEventListener("click",function(e){e.preventDefault();e.target.parentNode.classList.toggle("active")},true)}});e(document.querySelectorAll(".tooltip-demo")).forEach(function(e){new bootstrap.Tooltip(e,{selector:'[data-toggle="tooltip"]'})});e(document.querySelectorAll('[data-toggle="popover"]')).forEach(function(e){new bootstrap.Popover(e)});e(document.querySelectorAll(".toast")).forEach(function(e){var t=new bootstrap.Toast(e,{autohide:false});t.show()});e(document.querySelectorAll(".tooltip-test")).forEach(function(e){new bootstrap.Tooltip(e)});e(document.querySelectorAll(".popover-test")).forEach(function(e){new bootstrap.Popover(e)});e(document.querySelectorAll('.bd-example-indeterminate [type="checkbox"]')).forEach(function(e){e.indeterminate=true});e(document.querySelectorAll('.bd-content [href="#"]')).forEach(function(e){e.addEventListener("click",function(e){e.preventDefault()})});var r=document.getElementById("exampleModal");if(r){r.addEventListener("show.bs.modal",function(e){var t=e.relatedTarget;var n=t.getAttribute("data-whatever");var o=r.querySelector(".modal-title");var i=r.querySelector(".modal-body input");o.innerHTML="New message to "+n;i.value=n})}var i=document.getElementById("btnToggleAnimatedProgress");if(i){i.addEventListener("click",function(){i.parentNode.querySelector(".progress-bar-striped").classList.toggle("progress-bar-animated")})}var A='<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>';e(document.querySelectorAll("figure.highlight, div.highlight")).forEach(function(e){e.insertAdjacentHTML("beforebegin",A)});e(document.querySelectorAll(".btn-clipboard")).forEach(function(e){var t=new bootstrap.Tooltip(e);e.addEventListener("mouseleave",function(){t.hide()})});var a=new ClipboardJS(".btn-clipboard",{target:function(e){return e.parentNode.nextElementSibling}});a.on("success",function(e){var t=bootstrap.Tooltip._getInstance(e.trigger);e.trigger.setAttribute("title","Copied!");t._fixTitle();t.show();e.trigger.setAttribute("title","Copy to clipboard");t._fixTitle();e.clearSelection()});a.on("error",function(e){var t=/Mac/i.test(navigator.userAgent)?"⌘":"Ctrl-";var n="Press "+t+"C to copy";var o=bootstrap.Tooltip._getInstance(e.trigger);e.trigger.setAttribute("title",n);o._fixTitle();o.show();e.trigger.setAttribute("title","Copy to clipboard");o._fixTitle()});anchors.options={icon:"#"};anchors.add(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5");e(document.querySelectorAll(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5")).forEach(function(e){e.innerHTML='<span class="bd-content-title">'+e.innerHTML+"</span>"});bsCustomFileInput.init()})();(function(){"use strict";if(!window.docsearch){return}var e=document.getElementById("search-input");var t=e.getAttribute("data-docs-version");function n(){var e=window.location;var t=e.origin;if(!t){var n=e.port?":"+e.port:"";t=e.protocol+"//"+e.hostname+n}return t}window.docsearch({apiKey:"5990ad008512000bba2cf951ccf0332f",indexName:"bootstrap",inputSelector:"#search-input",algoliaOptions:{facetFilters:["version:"+t]},transformData:function(e){return e.map(function(e){var t=n();var o="https://getbootstrap.com";e.url=t.indexOf(o)!==-1?e.url:e.url.replace(o,"");if(e.anchor==="content"){e.url=e.url.replace(/#content$/,"");e.anchor=null}return e})},debug:false})})();
(function(){"use strict";function e(e){return[].slice.call(e)}(function(){var e=document.getElementById("flexCheckIndeterminate");if(!e){return}e.indeterminate=true})();e(document.querySelectorAll(".js-sidenav-group")).forEach(function(e){var t=Boolean(e.querySelector("li"));var n=e.querySelector("a");if(t){n.addEventListener("click",function(e){e.preventDefault();e.target.parentNode.classList.toggle("active")},true)}});e(document.querySelectorAll(".tooltip-demo")).forEach(function(e){new bootstrap.Tooltip(e,{selector:'[data-toggle="tooltip"]'})});e(document.querySelectorAll('[data-toggle="popover"]')).forEach(function(e){new bootstrap.Popover(e)});e(document.querySelectorAll(".toast")).forEach(function(e){var t=new bootstrap.Toast(e,{autohide:false});t.show()});e(document.querySelectorAll(".tooltip-test")).forEach(function(e){new bootstrap.Tooltip(e)});e(document.querySelectorAll(".popover-test")).forEach(function(e){new bootstrap.Popover(e)});e(document.querySelectorAll('.bd-example-indeterminate [type="checkbox"]')).forEach(function(e){e.indeterminate=true});e(document.querySelectorAll('.bd-content [href="#"]')).forEach(function(e){e.addEventListener("click",function(e){e.preventDefault()})});var t=document.getElementById("exampleModal");if(t){t.addEventListener("show.bs.modal",function(e){var n=e.relatedTarget;var o=n.getAttribute("data-whatever");var r=t.querySelector(".modal-title");var i=t.querySelector(".modal-body input");r.innerHTML="New message to "+o;i.value=o})}var n=document.getElementById("btnToggleAnimatedProgress");if(n){n.addEventListener("click",function(){n.parentNode.querySelector(".progress-bar-striped").classList.toggle("progress-bar-animated")})}var o='<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>';e(document.querySelectorAll("figure.highlight, div.highlight")).forEach(function(e){e.insertAdjacentHTML("beforebegin",o)});e(document.querySelectorAll(".btn-clipboard")).forEach(function(e){var t=new bootstrap.Tooltip(e);e.addEventListener("mouseleave",function(){t.hide()})});var r=new ClipboardJS(".btn-clipboard",{target:function(e){return e.parentNode.nextElementSibling}});r.on("success",function(e){var t=bootstrap.Tooltip._getInstance(e.trigger);e.trigger.setAttribute("data-original-title","Copied!");t.show();e.trigger.setAttribute("data-original-title","Copy to clipboard");e.clearSelection()});r.on("error",function(e){var t=/Mac/i.test(navigator.userAgent)?"⌘":"Ctrl-";var n="Press "+t+"C to copy";var o=bootstrap.Tooltip._getInstance(e.trigger);e.trigger.setAttribute("title",n);o._fixTitle();o.show();e.trigger.setAttribute("title","Copy to clipboard");o._fixTitle()});anchors.options={icon:"#"};anchors.add(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5");e(document.querySelectorAll(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5")).forEach(function(e){e.innerHTML='<span class="bd-content-title">'+e.innerHTML+"</span>"});bsCustomFileInput.init()})();(function(){"use strict";if(!window.docsearch){return}var e=document.getElementById("search-input");var t=e.getAttribute("data-docs-version");function n(){var e=window.location;var t=e.origin;if(!t){var n=e.port?":"+e.port:"";t=e.protocol+"//"+e.hostname+n}return t}window.docsearch({apiKey:"5990ad008512000bba2cf951ccf0332f",indexName:"bootstrap",inputSelector:"#search-input",algoliaOptions:{facetFilters:["version:"+t]},transformData:function(e){return e.map(function(e){var t=n();var o="https://getbootstrap.com";e.url=t.indexOf(o)!==-1?e.url:e.url.replace(o,"");if(e.anchor==="content"){e.url=e.url.replace(/#content$/,"");e.anchor=null}return e})},debug:false})})();