mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Dist (#29263)
This commit is contained in:
parent
cad3d1098a
commit
bf57274fb5
550
dist/css/bootstrap-grid.css
vendored
550
dist/css/bootstrap-grid.css
vendored
@ -55,25 +55,25 @@ html {
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.container-sm {
|
||||
.container, .container-sm {
|
||||
max-width: 540px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container-md {
|
||||
.container, .container-sm, .container-md {
|
||||
max-width: 720px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container-lg {
|
||||
.container, .container-sm, .container-md, .container-lg {
|
||||
max-width: 960px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container-xl {
|
||||
.container, .container-sm, .container-md, .container-lg, .container-xl {
|
||||
max-width: 1140px;
|
||||
}
|
||||
}
|
||||
@ -612,50 +612,6 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.align-baseline {
|
||||
vertical-align: baseline !important;
|
||||
}
|
||||
|
||||
.align-top {
|
||||
vertical-align: top !important;
|
||||
}
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom !important;
|
||||
}
|
||||
|
||||
.align-text-bottom {
|
||||
vertical-align: text-bottom !important;
|
||||
}
|
||||
|
||||
.align-text-top {
|
||||
vertical-align: text-top !important;
|
||||
}
|
||||
|
||||
.float-left {
|
||||
float: left !important;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right !important;
|
||||
}
|
||||
|
||||
.float-none {
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
.overflow-auto {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
.overflow-hidden {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.d-none {
|
||||
display: none !important;
|
||||
}
|
||||
@ -692,159 +648,6 @@ html {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
|
||||
.shadow-sm {
|
||||
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
|
||||
}
|
||||
|
||||
.shadow {
|
||||
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
|
||||
}
|
||||
|
||||
.shadow-lg {
|
||||
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
|
||||
}
|
||||
|
||||
.shadow-none {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.position-static {
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
.position-relative {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.position-absolute {
|
||||
position: absolute !important;
|
||||
}
|
||||
|
||||
.position-fixed {
|
||||
position: fixed !important;
|
||||
}
|
||||
|
||||
.position-sticky {
|
||||
position: -webkit-sticky !important;
|
||||
position: sticky !important;
|
||||
}
|
||||
|
||||
.border {
|
||||
border: 1px solid #dee2e6 !important;
|
||||
}
|
||||
|
||||
.border-0 {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #dee2e6 !important;
|
||||
}
|
||||
|
||||
.border-top-0 {
|
||||
border-top: 0 !important;
|
||||
}
|
||||
|
||||
.border-right {
|
||||
border-right: 1px solid #dee2e6 !important;
|
||||
}
|
||||
|
||||
.border-right-0 {
|
||||
border-right: 0 !important;
|
||||
}
|
||||
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #dee2e6 !important;
|
||||
}
|
||||
|
||||
.border-bottom-0 {
|
||||
border-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.border-left {
|
||||
border-left: 1px solid #dee2e6 !important;
|
||||
}
|
||||
|
||||
.border-left-0 {
|
||||
border-left: 0 !important;
|
||||
}
|
||||
|
||||
.border-primary {
|
||||
border-color: #007bff !important;
|
||||
}
|
||||
|
||||
.border-secondary {
|
||||
border-color: #6c757d !important;
|
||||
}
|
||||
|
||||
.border-success {
|
||||
border-color: #28a745 !important;
|
||||
}
|
||||
|
||||
.border-info {
|
||||
border-color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
.border-warning {
|
||||
border-color: #ffc107 !important;
|
||||
}
|
||||
|
||||
.border-danger {
|
||||
border-color: #dc3545 !important;
|
||||
}
|
||||
|
||||
.border-light {
|
||||
border-color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
.border-dark {
|
||||
border-color: #343a40 !important;
|
||||
}
|
||||
|
||||
.border-white {
|
||||
border-color: #fff !important;
|
||||
}
|
||||
|
||||
.w-25 {
|
||||
width: 25% !important;
|
||||
}
|
||||
|
||||
.w-50 {
|
||||
width: 50% !important;
|
||||
}
|
||||
|
||||
.w-75 {
|
||||
width: 75% !important;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.w-auto {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.h-25 {
|
||||
height: 25% !important;
|
||||
}
|
||||
|
||||
.h-50 {
|
||||
height: 50% !important;
|
||||
}
|
||||
|
||||
.h-75 {
|
||||
height: 75% !important;
|
||||
}
|
||||
|
||||
.h-100 {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.h-auto {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.flex-fill {
|
||||
flex: 1 1 auto !important;
|
||||
}
|
||||
@ -873,26 +676,6 @@ html {
|
||||
flex-grow: 1 !important;
|
||||
}
|
||||
|
||||
.flex-shrink-0 {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.flex-shrink-1 {
|
||||
flex-shrink: 1 !important;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
|
||||
.flex-nowrap {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
|
||||
.flex-wrap-reverse {
|
||||
flex-wrap: wrap-reverse !important;
|
||||
}
|
||||
|
||||
.justify-content-start {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
@ -1553,197 +1336,7 @@ html {
|
||||
padding-left: 3rem !important;
|
||||
}
|
||||
|
||||
.font-weight-light {
|
||||
font-weight: 300 !important;
|
||||
}
|
||||
|
||||
.font-weight-lighter {
|
||||
font-weight: lighter !important;
|
||||
}
|
||||
|
||||
.font-weight-normal {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.font-weight-bold {
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.font-weight-bolder {
|
||||
font-weight: bolder !important;
|
||||
}
|
||||
|
||||
.text-lowercase {
|
||||
text-transform: lowercase !important;
|
||||
}
|
||||
|
||||
.text-uppercase {
|
||||
text-transform: uppercase !important;
|
||||
}
|
||||
|
||||
.text-capitalize {
|
||||
text-transform: capitalize !important;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.text-justify {
|
||||
text-align: justify !important;
|
||||
}
|
||||
|
||||
.text-white {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.text-body {
|
||||
color: #212529 !important;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: #6c757d !important;
|
||||
}
|
||||
|
||||
.text-black-50 {
|
||||
color: rgba(0, 0, 0, 0.5) !important;
|
||||
}
|
||||
|
||||
.text-white-50 {
|
||||
color: rgba(255, 255, 255, 0.5) !important;
|
||||
}
|
||||
|
||||
.text-reset {
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
.bg-primary {
|
||||
background-color: #007bff !important;
|
||||
}
|
||||
|
||||
.bg-secondary {
|
||||
background-color: #6c757d !important;
|
||||
}
|
||||
|
||||
.bg-success {
|
||||
background-color: #28a745 !important;
|
||||
}
|
||||
|
||||
.bg-info {
|
||||
background-color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
.bg-warning {
|
||||
background-color: #ffc107 !important;
|
||||
}
|
||||
|
||||
.bg-danger {
|
||||
background-color: #dc3545 !important;
|
||||
}
|
||||
|
||||
.bg-light {
|
||||
background-color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
.bg-dark {
|
||||
background-color: #343a40 !important;
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.bg-transparent {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.text-wrap {
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.text-nowrap {
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.text-decoration-none {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.font-italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
|
||||
.text-break {
|
||||
overflow-wrap: break-word !important;
|
||||
word-break: break-word !important;
|
||||
}
|
||||
|
||||
.font-monospace {
|
||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.rounded-sm {
|
||||
border-radius: 0.2rem !important;
|
||||
}
|
||||
|
||||
.rounded-lg {
|
||||
border-radius: 0.3rem !important;
|
||||
}
|
||||
|
||||
.rounded-circle {
|
||||
border-radius: 50% !important;
|
||||
}
|
||||
|
||||
.rounded-pill {
|
||||
border-radius: 50rem !important;
|
||||
}
|
||||
|
||||
.rounded-0 {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
.rounded-top {
|
||||
border-top-left-radius: 0.25rem !important;
|
||||
border-top-right-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.rounded-right {
|
||||
border-top-right-radius: 0.25rem !important;
|
||||
border-bottom-right-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.rounded-bottom {
|
||||
border-bottom-right-radius: 0.25rem !important;
|
||||
border-bottom-left-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.rounded-left {
|
||||
border-bottom-left-radius: 0.25rem !important;
|
||||
border-top-left-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.float-sm-left {
|
||||
float: left !important;
|
||||
}
|
||||
.float-sm-right {
|
||||
float: right !important;
|
||||
}
|
||||
.float-sm-none {
|
||||
float: none !important;
|
||||
}
|
||||
.d-sm-none {
|
||||
display: none !important;
|
||||
}
|
||||
@ -1792,21 +1385,6 @@ html {
|
||||
.flex-sm-grow-1 {
|
||||
flex-grow: 1 !important;
|
||||
}
|
||||
.flex-sm-shrink-0 {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
.flex-sm-shrink-1 {
|
||||
flex-shrink: 1 !important;
|
||||
}
|
||||
.flex-sm-wrap {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
.flex-sm-nowrap {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
.flex-sm-wrap-reverse {
|
||||
flex-wrap: wrap-reverse !important;
|
||||
}
|
||||
.justify-content-sm-start {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
@ -2311,30 +1889,9 @@ html {
|
||||
.pl-sm-5 {
|
||||
padding-left: 3rem !important;
|
||||
}
|
||||
.text-sm-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
.text-sm-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.text-sm-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
.text-sm-justify {
|
||||
text-align: justify !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.float-md-left {
|
||||
float: left !important;
|
||||
}
|
||||
.float-md-right {
|
||||
float: right !important;
|
||||
}
|
||||
.float-md-none {
|
||||
float: none !important;
|
||||
}
|
||||
.d-md-none {
|
||||
display: none !important;
|
||||
}
|
||||
@ -2383,21 +1940,6 @@ html {
|
||||
.flex-md-grow-1 {
|
||||
flex-grow: 1 !important;
|
||||
}
|
||||
.flex-md-shrink-0 {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
.flex-md-shrink-1 {
|
||||
flex-shrink: 1 !important;
|
||||
}
|
||||
.flex-md-wrap {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
.flex-md-nowrap {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
.flex-md-wrap-reverse {
|
||||
flex-wrap: wrap-reverse !important;
|
||||
}
|
||||
.justify-content-md-start {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
@ -2902,30 +2444,9 @@ html {
|
||||
.pl-md-5 {
|
||||
padding-left: 3rem !important;
|
||||
}
|
||||
.text-md-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
.text-md-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.text-md-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
.text-md-justify {
|
||||
text-align: justify !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.float-lg-left {
|
||||
float: left !important;
|
||||
}
|
||||
.float-lg-right {
|
||||
float: right !important;
|
||||
}
|
||||
.float-lg-none {
|
||||
float: none !important;
|
||||
}
|
||||
.d-lg-none {
|
||||
display: none !important;
|
||||
}
|
||||
@ -2974,21 +2495,6 @@ html {
|
||||
.flex-lg-grow-1 {
|
||||
flex-grow: 1 !important;
|
||||
}
|
||||
.flex-lg-shrink-0 {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
.flex-lg-shrink-1 {
|
||||
flex-shrink: 1 !important;
|
||||
}
|
||||
.flex-lg-wrap {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
.flex-lg-nowrap {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
.flex-lg-wrap-reverse {
|
||||
flex-wrap: wrap-reverse !important;
|
||||
}
|
||||
.justify-content-lg-start {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
@ -3493,30 +2999,9 @@ html {
|
||||
.pl-lg-5 {
|
||||
padding-left: 3rem !important;
|
||||
}
|
||||
.text-lg-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
.text-lg-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.text-lg-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
.text-lg-justify {
|
||||
text-align: justify !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.float-xl-left {
|
||||
float: left !important;
|
||||
}
|
||||
.float-xl-right {
|
||||
float: right !important;
|
||||
}
|
||||
.float-xl-none {
|
||||
float: none !important;
|
||||
}
|
||||
.d-xl-none {
|
||||
display: none !important;
|
||||
}
|
||||
@ -3565,21 +3050,6 @@ html {
|
||||
.flex-xl-grow-1 {
|
||||
flex-grow: 1 !important;
|
||||
}
|
||||
.flex-xl-shrink-0 {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
.flex-xl-shrink-1 {
|
||||
flex-shrink: 1 !important;
|
||||
}
|
||||
.flex-xl-wrap {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
.flex-xl-nowrap {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
.flex-xl-wrap-reverse {
|
||||
flex-wrap: wrap-reverse !important;
|
||||
}
|
||||
.justify-content-xl-start {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
@ -4084,18 +3554,6 @@ html {
|
||||
.pl-xl-5 {
|
||||
padding-left: 3rem !important;
|
||||
}
|
||||
.text-xl-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
.text-xl-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
.text-xl-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
.text-xl-justify {
|
||||
text-align: justify !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
2
dist/css/bootstrap-grid.css.map
vendored
2
dist/css/bootstrap-grid.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css
vendored
2
dist/css/bootstrap-grid.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css.map
vendored
2
dist/css/bootstrap-grid.min.css.map
vendored
File diff suppressed because one or more lines are too long
83
dist/css/bootstrap-reboot.css
vendored
83
dist/css/bootstrap-reboot.css
vendored
@ -11,10 +11,6 @@
|
||||
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";
|
||||
@ -85,7 +81,6 @@ abbr[data-original-title] {
|
||||
-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;
|
||||
}
|
||||
@ -156,7 +151,6 @@ sup {
|
||||
a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
@ -164,10 +158,9 @@ a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
|
||||
a:not([href]), a:not([href]):hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
pre,
|
||||
@ -179,9 +172,41 @@ samp {
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
overflow: auto;
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 87.5%;
|
||||
color: #e83e8c;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
a > code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 87.5%;
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
figure {
|
||||
@ -190,7 +215,6 @@ figure {
|
||||
|
||||
img {
|
||||
vertical-align: middle;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
@ -253,6 +277,10 @@ select {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
[list]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
@ -267,30 +295,22 @@ button:not(:disabled),
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="date"],
|
||||
input[type="time"],
|
||||
input[type="datetime-local"],
|
||||
input[type="month"] {
|
||||
-webkit-appearance: listbox;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
resize: vertical;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
@ -301,11 +321,10 @@ fieldset {
|
||||
}
|
||||
|
||||
legend {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: .5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.5rem;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
@ -321,18 +340,22 @@ progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
::-webkit-datetime-edit {
|
||||
overflow: visible;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
[type="search"] {
|
||||
outline-offset: -2px;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
@ -353,6 +376,10 @@ template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.min.css
vendored
2
dist/css/bootstrap-reboot.min.css
vendored
@ -4,5 +4,5 @@
|
||||
* Copyright 2011-2019 Twitter, Inc.
|
||||
* 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;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}
|
||||
*/*,::after,::before{box-sizing:border-box}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;-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}a:hover{color:#0056b3;text-decoration:underline}a:not([href]),a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:87.5%}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}figure{margin:0 0 1rem}img{vertical-align:middle}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}[list]::-webkit-calendar-picker-indicator{display:none}[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}::-moz-focus-inner{padding:0;border-style:none}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:textfield}textarea{overflow:auto;resize:vertical;-webkit-appearance:textfield}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;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}::-webkit-datetime-edit{overflow:visible;line-height:0}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}main{display:block}[hidden]{display:none!important}
|
||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
File diff suppressed because one or more lines are too long
160
dist/css/bootstrap-utilities.css
vendored
160
dist/css/bootstrap-utilities.css
vendored
@ -217,6 +217,18 @@
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.mw-100 {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.vw-100 {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
.min-vw-100 {
|
||||
min-width: 100vw !important;
|
||||
}
|
||||
|
||||
.h-25 {
|
||||
height: 25% !important;
|
||||
}
|
||||
@ -237,6 +249,18 @@
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.mh-100 {
|
||||
max-height: 100% !important;
|
||||
}
|
||||
|
||||
.vh-100 {
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
.min-vh-100 {
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
.flex-fill {
|
||||
flex: 1 1 auto !important;
|
||||
}
|
||||
@ -993,6 +1017,38 @@
|
||||
text-align: justify !important;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #007bff !important;
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: #6c757d !important;
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: #28a745 !important;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: #ffc107 !important;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
color: #dc3545 !important;
|
||||
}
|
||||
|
||||
.text-light {
|
||||
color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: #343a40 !important;
|
||||
}
|
||||
|
||||
.text-white {
|
||||
color: #fff !important;
|
||||
}
|
||||
@ -1126,6 +1182,14 @@
|
||||
border-top-left-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.visible {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.float-sm-left {
|
||||
float: left !important;
|
||||
@ -3519,100 +3583,4 @@
|
||||
display: inline-flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mw-100 {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.mh-100 {
|
||||
max-height: 100% !important;
|
||||
}
|
||||
|
||||
.min-vw-100 {
|
||||
min-width: 100vw !important;
|
||||
}
|
||||
|
||||
.min-vh-100 {
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
.vw-100 {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
.vh-100 {
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #007bff !important;
|
||||
}
|
||||
|
||||
a.text-primary:hover, a.text-primary:focus {
|
||||
color: #0056b3 !important;
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: #6c757d !important;
|
||||
}
|
||||
|
||||
a.text-secondary:hover, a.text-secondary:focus {
|
||||
color: #494f54 !important;
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: #28a745 !important;
|
||||
}
|
||||
|
||||
a.text-success:hover, a.text-success:focus {
|
||||
color: #19692c !important;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
a.text-info:hover, a.text-info:focus {
|
||||
color: #0f6674 !important;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: #ffc107 !important;
|
||||
}
|
||||
|
||||
a.text-warning:hover, a.text-warning:focus {
|
||||
color: #ba8b00 !important;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
color: #dc3545 !important;
|
||||
}
|
||||
|
||||
a.text-danger:hover, a.text-danger:focus {
|
||||
color: #a71d2a !important;
|
||||
}
|
||||
|
||||
.text-light {
|
||||
color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
a.text-light:hover, a.text-light:focus {
|
||||
color: #cbd3da !important;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: #343a40 !important;
|
||||
}
|
||||
|
||||
a.text-dark:hover, a.text-dark:focus {
|
||||
color: #121416 !important;
|
||||
}
|
||||
|
||||
.visible {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-utilities.css.map */
|
2
dist/css/bootstrap-utilities.css.map
vendored
2
dist/css/bootstrap-utilities.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.min.css
vendored
2
dist/css/bootstrap-utilities.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.min.css.map
vendored
2
dist/css/bootstrap-utilities.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -36,10 +36,6 @@
|
||||
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";
|
||||
@ -110,7 +106,6 @@ abbr[data-original-title] {
|
||||
-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;
|
||||
}
|
||||
@ -181,7 +176,6 @@ sup {
|
||||
a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
@ -189,10 +183,9 @@ a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
|
||||
a:not([href]), a:not([href]):hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
pre,
|
||||
@ -204,9 +197,41 @@ samp {
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
overflow: auto;
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 87.5%;
|
||||
color: #e83e8c;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
a > code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 87.5%;
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
figure {
|
||||
@ -215,7 +240,6 @@ figure {
|
||||
|
||||
img {
|
||||
vertical-align: middle;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
@ -278,6 +302,10 @@ select {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
[list]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
@ -292,30 +320,22 @@ button:not(:disabled),
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="date"],
|
||||
input[type="time"],
|
||||
input[type="datetime-local"],
|
||||
input[type="month"] {
|
||||
-webkit-appearance: listbox;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
resize: vertical;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
@ -326,11 +346,10 @@ fieldset {
|
||||
}
|
||||
|
||||
legend {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: .5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.5rem;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
@ -346,18 +365,22 @@ progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
::-webkit-datetime-edit {
|
||||
overflow: visible;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
[type="search"] {
|
||||
outline-offset: -2px;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
@ -378,6 +401,10 @@ template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
@ -477,46 +504,6 @@ template {
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 87.5%;
|
||||
color: #e83e8c;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
a > code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 87.5%;
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.pre-scrollable {
|
||||
max-height: 340px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
padding-right: 15px;
|
||||
@ -558,25 +545,25 @@ pre code {
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.container-sm {
|
||||
.container, .container-sm {
|
||||
max-width: 540px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container-md {
|
||||
.container, .container-sm, .container-md {
|
||||
max-width: 720px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container-lg {
|
||||
.container, .container-sm, .container-md, .container-lg {
|
||||
max-width: 960px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container-xl {
|
||||
.container, .container-sm, .container-md, .container-lg, .container-xl {
|
||||
max-width: 1140px;
|
||||
}
|
||||
}
|
||||
@ -1491,7 +1478,7 @@ pre code {
|
||||
.form-control {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: calc(1.5em + 0.75rem + 2px);
|
||||
min-height: calc(1.5em + 0.75rem + 2px);
|
||||
padding: 0.375rem 0.75rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
@ -1571,7 +1558,7 @@ pre code {
|
||||
}
|
||||
|
||||
.form-control-sm {
|
||||
height: calc(1.5em + 0.5rem + 2px);
|
||||
min-height: calc(1.5em + 0.5rem + 2px);
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
@ -1579,15 +1566,24 @@ pre code {
|
||||
}
|
||||
|
||||
.form-control-lg {
|
||||
height: calc(1.5em + 1rem + 2px);
|
||||
min-height: calc(1.5em + 1rem + 2px);
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
height: auto;
|
||||
.form-control-color {
|
||||
max-width: 3rem;
|
||||
padding: 0.375rem;
|
||||
}
|
||||
|
||||
.form-control-color::-moz-color-swatch {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.form-control-color::-webkit-color-swatch {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.form-select {
|
||||
@ -2053,13 +2049,6 @@ textarea.form-control {
|
||||
margin-right: 0.25rem;
|
||||
margin-left: 0;
|
||||
}
|
||||
.form-inline .custom-control {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.form-inline .custom-control-label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.input-group {
|
||||
@ -2075,6 +2064,7 @@ textarea.form-control {
|
||||
.input-group > .form-file {
|
||||
position: relative;
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@ -2183,7 +2173,10 @@ textarea.form-control {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.input-group-lg > .form-control:not(textarea),
|
||||
.input-group-lg > .form-control {
|
||||
min-height: calc(1.5em + 1rem + 2px);
|
||||
}
|
||||
|
||||
.input-group-lg > .form-select {
|
||||
height: calc(1.5em + 1rem + 2px);
|
||||
}
|
||||
@ -2200,7 +2193,10 @@ textarea.form-control {
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.input-group-sm > .form-control:not(textarea),
|
||||
.input-group-sm > .form-control {
|
||||
min-height: calc(1.5em + 0.5rem + 2px);
|
||||
}
|
||||
|
||||
.input-group-sm > .form-select {
|
||||
height: calc(1.5em + 0.5rem + 2px);
|
||||
}
|
||||
@ -2380,7 +2376,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 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-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='.6' fill='%23dc3545' stroke='none'/%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);
|
||||
@ -2405,7 +2401,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,%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);
|
||||
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='.6' fill='%23dc3545' stroke='none'/%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 {
|
||||
@ -2472,6 +2468,7 @@ textarea.form-control {
|
||||
color: #212529;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
@ -3125,7 +3122,6 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
|
||||
.collapsing {
|
||||
position: relative;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
transition: height 0.35s ease;
|
||||
@ -3597,7 +3593,8 @@ fieldset:disabled a.btn {
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.navbar > [class^="container"] {
|
||||
.navbar .container,
|
||||
.navbar .container-fluid, .navbar .container-sm, .navbar .container-md, .navbar .container-lg, .navbar .container-xl {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
@ -3671,7 +3668,8 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.navbar-expand-sm > [class^="container"] {
|
||||
.navbar-expand-sm > .container,
|
||||
.navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -3692,7 +3690,8 @@ fieldset:disabled a.btn {
|
||||
padding-right: 0.5rem;
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.navbar-expand-sm > [class^="container"] {
|
||||
.navbar-expand-sm > .container,
|
||||
.navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.navbar-expand-sm .navbar-collapse {
|
||||
@ -3705,7 +3704,8 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.navbar-expand-md > [class^="container"] {
|
||||
.navbar-expand-md > .container,
|
||||
.navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -3726,7 +3726,8 @@ fieldset:disabled a.btn {
|
||||
padding-right: 0.5rem;
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.navbar-expand-md > [class^="container"] {
|
||||
.navbar-expand-md > .container,
|
||||
.navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.navbar-expand-md .navbar-collapse {
|
||||
@ -3739,7 +3740,8 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.navbar-expand-lg > [class^="container"] {
|
||||
.navbar-expand-lg > .container,
|
||||
.navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -3760,7 +3762,8 @@ fieldset:disabled a.btn {
|
||||
padding-right: 0.5rem;
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.navbar-expand-lg > [class^="container"] {
|
||||
.navbar-expand-lg > .container,
|
||||
.navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.navbar-expand-lg .navbar-collapse {
|
||||
@ -3773,7 +3776,8 @@ fieldset:disabled a.btn {
|
||||
}
|
||||
|
||||
@media (max-width: 1199.98px) {
|
||||
.navbar-expand-xl > [class^="container"] {
|
||||
.navbar-expand-xl > .container,
|
||||
.navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -3794,7 +3798,8 @@ fieldset:disabled a.btn {
|
||||
padding-right: 0.5rem;
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.navbar-expand-xl > [class^="container"] {
|
||||
.navbar-expand-xl > .container,
|
||||
.navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.navbar-expand-xl .navbar-collapse {
|
||||
@ -3811,7 +3816,8 @@ fieldset:disabled a.btn {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.navbar-expand > [class^="container"] {
|
||||
.navbar-expand > .container,
|
||||
.navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -3829,7 +3835,8 @@ fieldset:disabled a.btn {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
.navbar-expand > [class^="container"] {
|
||||
.navbar-expand > .container,
|
||||
.navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
@ -4193,9 +4200,6 @@ fieldset:disabled a.btn {
|
||||
.page-link {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 0.5rem 0.75rem;
|
||||
margin-left: -1px;
|
||||
line-height: 1.25;
|
||||
color: #007bff;
|
||||
background-color: #fff;
|
||||
border: 1px solid #dee2e6;
|
||||
@ -4215,15 +4219,8 @@ fieldset:disabled a.btn {
|
||||
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
||||
}
|
||||
|
||||
.page-item:first-child .page-link {
|
||||
margin-left: 0;
|
||||
border-top-left-radius: 0.25rem;
|
||||
border-bottom-left-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.page-item:last-child .page-link {
|
||||
border-top-right-radius: 0.25rem;
|
||||
border-bottom-right-radius: 0.25rem;
|
||||
.page-item:not(:first-child) .page-link {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.page-item.active .page-link {
|
||||
@ -4241,6 +4238,21 @@ fieldset:disabled a.btn {
|
||||
border-color: #dee2e6;
|
||||
}
|
||||
|
||||
.page-link {
|
||||
padding: 0.5rem 0.75rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.page-item:first-child .page-link {
|
||||
border-top-left-radius: 0.25rem;
|
||||
border-bottom-left-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.page-item:last-child .page-link {
|
||||
border-top-right-radius: 0.25rem;
|
||||
border-bottom-right-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.pagination-lg .page-link {
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1.25rem;
|
||||
@ -5016,20 +5028,17 @@ a.close.disabled {
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-top: 1px solid #dee2e6;
|
||||
border-bottom-right-radius: calc(0.3rem - 1px);
|
||||
border-bottom-left-radius: calc(0.3rem - 1px);
|
||||
}
|
||||
|
||||
.modal-footer > :not(:first-child) {
|
||||
margin-left: .25rem;
|
||||
}
|
||||
|
||||
.modal-footer > :not(:last-child) {
|
||||
margin-right: .25rem;
|
||||
.modal-footer > * {
|
||||
margin: 0.25rem;
|
||||
}
|
||||
|
||||
.modal-scrollbar-measure {
|
||||
@ -5417,7 +5426,7 @@ a.close.disabled {
|
||||
.carousel-fade .active.carousel-item-right {
|
||||
z-index: 0;
|
||||
opacity: 0;
|
||||
transition: 0s 0.6s opacity;
|
||||
transition: opacity 0s 0.6s;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
@ -5488,7 +5497,7 @@ a.close.disabled {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 15;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-left: 0;
|
||||
@ -5529,7 +5538,6 @@ a.close.disabled {
|
||||
right: 15%;
|
||||
bottom: 20px;
|
||||
left: 15%;
|
||||
z-index: 10;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
color: #fff;
|
||||
@ -5607,6 +5615,70 @@ a.close.disabled {
|
||||
content: "";
|
||||
}
|
||||
|
||||
.link-primary {
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
.link-primary:hover, .link-primary:focus {
|
||||
color: #0056b3;
|
||||
}
|
||||
|
||||
.link-secondary {
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.link-secondary:hover, .link-secondary:focus {
|
||||
color: #494f54;
|
||||
}
|
||||
|
||||
.link-success {
|
||||
color: #28a745;
|
||||
}
|
||||
|
||||
.link-success:hover, .link-success:focus {
|
||||
color: #19692c;
|
||||
}
|
||||
|
||||
.link-info {
|
||||
color: #17a2b8;
|
||||
}
|
||||
|
||||
.link-info:hover, .link-info:focus {
|
||||
color: #0f6674;
|
||||
}
|
||||
|
||||
.link-warning {
|
||||
color: #ffc107;
|
||||
}
|
||||
|
||||
.link-warning:hover, .link-warning:focus {
|
||||
color: #ba8b00;
|
||||
}
|
||||
|
||||
.link-danger {
|
||||
color: #dc3545;
|
||||
}
|
||||
|
||||
.link-danger:hover, .link-danger:focus {
|
||||
color: #a71d2a;
|
||||
}
|
||||
|
||||
.link-light {
|
||||
color: #f8f9fa;
|
||||
}
|
||||
|
||||
.link-light:hover, .link-light:focus {
|
||||
color: #cbd3da;
|
||||
}
|
||||
|
||||
.link-dark {
|
||||
color: #343a40;
|
||||
}
|
||||
|
||||
.link-dark:hover, .link-dark:focus {
|
||||
color: #121416;
|
||||
}
|
||||
|
||||
.embed-responsive {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@ -5913,6 +5985,18 @@ a.close.disabled {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.mw-100 {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.vw-100 {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
.min-vw-100 {
|
||||
min-width: 100vw !important;
|
||||
}
|
||||
|
||||
.h-25 {
|
||||
height: 25% !important;
|
||||
}
|
||||
@ -5933,6 +6017,18 @@ a.close.disabled {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.mh-100 {
|
||||
max-height: 100% !important;
|
||||
}
|
||||
|
||||
.vh-100 {
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
.min-vh-100 {
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
.flex-fill {
|
||||
flex: 1 1 auto !important;
|
||||
}
|
||||
@ -6689,6 +6785,38 @@ a.close.disabled {
|
||||
text-align: justify !important;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #007bff !important;
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: #6c757d !important;
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: #28a745 !important;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: #ffc107 !important;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
color: #dc3545 !important;
|
||||
}
|
||||
|
||||
.text-light {
|
||||
color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: #343a40 !important;
|
||||
}
|
||||
|
||||
.text-white {
|
||||
color: #fff !important;
|
||||
}
|
||||
@ -6822,6 +6950,14 @@ a.close.disabled {
|
||||
border-top-left-radius: 0.25rem !important;
|
||||
}
|
||||
|
||||
.visible {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.float-sm-left {
|
||||
float: left !important;
|
||||
@ -9215,100 +9351,4 @@ a.close.disabled {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mw-100 {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.mh-100 {
|
||||
max-height: 100% !important;
|
||||
}
|
||||
|
||||
.min-vw-100 {
|
||||
min-width: 100vw !important;
|
||||
}
|
||||
|
||||
.min-vh-100 {
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
.vw-100 {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
.vh-100 {
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #007bff !important;
|
||||
}
|
||||
|
||||
a.text-primary:hover, a.text-primary:focus {
|
||||
color: #0056b3 !important;
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: #6c757d !important;
|
||||
}
|
||||
|
||||
a.text-secondary:hover, a.text-secondary:focus {
|
||||
color: #494f54 !important;
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: #28a745 !important;
|
||||
}
|
||||
|
||||
a.text-success:hover, a.text-success:focus {
|
||||
color: #19692c !important;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
color: #17a2b8 !important;
|
||||
}
|
||||
|
||||
a.text-info:hover, a.text-info:focus {
|
||||
color: #0f6674 !important;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: #ffc107 !important;
|
||||
}
|
||||
|
||||
a.text-warning:hover, a.text-warning:focus {
|
||||
color: #ba8b00 !important;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
color: #dc3545 !important;
|
||||
}
|
||||
|
||||
a.text-danger:hover, a.text-danger:focus {
|
||||
color: #a71d2a !important;
|
||||
}
|
||||
|
||||
.text-light {
|
||||
color: #f8f9fa !important;
|
||||
}
|
||||
|
||||
a.text-light:hover, a.text-light:focus {
|
||||
color: #cbd3da !important;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: #343a40 !important;
|
||||
}
|
||||
|
||||
a.text-dark:hover, a.text-dark:focus {
|
||||
color: #121416 !important;
|
||||
}
|
||||
|
||||
.visible {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap.css.map */
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
547
dist/js/bootstrap.bundle.js
vendored
547
dist/js/bootstrap.bundle.js
vendored
@ -88,9 +88,7 @@
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -111,19 +109,30 @@
|
||||
return prefix;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var selector = getSelector(element);
|
||||
|
||||
if (selector) {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -241,6 +250,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.3.1): dom/data.js
|
||||
@ -459,6 +479,7 @@
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var $ = getjQuery();
|
||||
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
||||
var stripNameRegex = /\..*/;
|
||||
var keyEventRegex = /^key/;
|
||||
@ -686,9 +707,9 @@
|
||||
var defaultPrevented = false;
|
||||
var evt = null;
|
||||
|
||||
if (inNamespace && typeof jQuery !== 'undefined') {
|
||||
jQueryEvent = jQuery.Event(event, args);
|
||||
jQuery(element).trigger(jQueryEvent);
|
||||
if (inNamespace && $) {
|
||||
jQueryEvent = $.Event(event, args);
|
||||
$(element).trigger(jQueryEvent);
|
||||
bubbles = !jQueryEvent.isPropagationStopped();
|
||||
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
||||
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
||||
@ -880,12 +901,7 @@
|
||||
;
|
||||
|
||||
_proto._getRootElement = function _getRootElement(element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var parent = false;
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
var parent = getElementFromSelector(element);
|
||||
|
||||
if (!parent) {
|
||||
parent = SelectorEngine.closest(element, "." + ClassName.ALERT);
|
||||
@ -925,7 +941,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
Alert.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -939,7 +955,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Alert._handleDismiss = function _handleDismiss(alertInstance) {
|
||||
Alert.handleDismiss = function handleDismiss(alertInstance) {
|
||||
return function (event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
@ -949,7 +965,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
Alert._getInstance = function _getInstance(element) {
|
||||
Alert.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -969,7 +985,8 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert.handleDismiss(new Alert()));
|
||||
var $$1 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -979,14 +996,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Alert._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Alert;
|
||||
if ($$1) {
|
||||
var JQUERY_NO_CONFLICT = $$1.fn[NAME];
|
||||
$$1.fn[NAME] = Alert.jQueryInterface;
|
||||
$$1.fn[NAME].Constructor = Alert;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert._jQueryInterface;
|
||||
$$1.fn[NAME].noConflict = function () {
|
||||
$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1045,16 +1062,14 @@
|
||||
if (rootElement) {
|
||||
var input = SelectorEngine.findOne(Selector$1.INPUT, this._element);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
if (input && input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1087,7 +1102,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config) {
|
||||
Button.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$1);
|
||||
|
||||
@ -1101,7 +1116,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Button._getInstance = function _getInstance(element) {
|
||||
Button.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$1);
|
||||
};
|
||||
|
||||
@ -1151,6 +1166,7 @@
|
||||
button.classList.remove(ClassName$1.FOCUS);
|
||||
}
|
||||
});
|
||||
var $$2 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1160,14 +1176,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
|
||||
jQuery.fn[NAME$1] = Button._jQueryInterface;
|
||||
jQuery.fn[NAME$1].Constructor = Button;
|
||||
if ($$2) {
|
||||
var JQUERY_NO_CONFLICT$1 = $$2.fn[NAME$1];
|
||||
$$2.fn[NAME$1] = Button.jQueryInterface;
|
||||
$$2.fn[NAME$1].Constructor = Button;
|
||||
|
||||
jQuery.fn[NAME$1].noConflict = function () {
|
||||
jQuery.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button._jQueryInterface;
|
||||
$$2.fn[NAME$1].noConflict = function () {
|
||||
$$2.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1754,7 +1770,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Carousel._carouselInterface = function _carouselInterface(element, config) {
|
||||
Carousel.carouselInterface = function carouselInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$2);
|
||||
|
||||
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
|
||||
@ -1783,20 +1799,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
Carousel.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Carousel._carouselInterface(this, config);
|
||||
Carousel.carouselInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
|
||||
var selector = getSelectorFromElement(this);
|
||||
|
||||
if (!selector) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
Carousel.dataApiClickHandler = function dataApiClickHandler(event) {
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (!target || !target.classList.contains(ClassName$2.CAROUSEL)) {
|
||||
return;
|
||||
@ -1810,7 +1820,7 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._carouselInterface(target, config);
|
||||
Carousel.carouselInterface(target, config);
|
||||
|
||||
if (slideIndex) {
|
||||
Data.getData(target, DATA_KEY$2).to(slideIndex);
|
||||
@ -1819,7 +1829,7 @@
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
Carousel._getInstance = function _getInstance(element) {
|
||||
Carousel.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$2);
|
||||
};
|
||||
|
||||
@ -1844,14 +1854,15 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel.dataApiClickHandler);
|
||||
EventHandler.on(window, Event$3.LOAD_DATA_API, function () {
|
||||
var carousels = makeArray(SelectorEngine.find(Selector$2.DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
Carousel._carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
}
|
||||
});
|
||||
var $$3 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1861,14 +1872,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
|
||||
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
|
||||
jQuery.fn[NAME$2].Constructor = Carousel;
|
||||
if ($$3) {
|
||||
var JQUERY_NO_CONFLICT$2 = $$3.fn[NAME$2];
|
||||
$$3.fn[NAME$2] = Carousel.jQueryInterface;
|
||||
$$3.fn[NAME$2].Constructor = Carousel;
|
||||
|
||||
jQuery.fn[NAME$2].noConflict = function () {
|
||||
jQuery.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel._jQueryInterface;
|
||||
$$3.fn[NAME$2].noConflict = function () {
|
||||
$$3.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -2014,7 +2025,7 @@
|
||||
if (actives) {
|
||||
actives.forEach(function (elemActive) {
|
||||
if (container !== elemActive) {
|
||||
Collapse._collapseInterface(elemActive, 'hide');
|
||||
Collapse.collapseInterface(elemActive, 'hide');
|
||||
}
|
||||
|
||||
if (!activesData) {
|
||||
@ -2091,15 +2102,11 @@
|
||||
if (triggerArrayLength > 0) {
|
||||
for (var i = 0; i < triggerArrayLength; i++) {
|
||||
var trigger = this._triggerArray[i];
|
||||
var selector = getSelectorFromElement(trigger);
|
||||
var elem = getElementFromSelector(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var elem = SelectorEngine.findOne(selector);
|
||||
|
||||
if (!elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
if (elem && !elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2166,8 +2173,7 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
|
||||
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var selected = selector ? SelectorEngine.findOne(selector) : null;
|
||||
var selected = getElementFromSelector(element);
|
||||
|
||||
_this3._addAriaAndCollapsedClass(selected, [element]);
|
||||
});
|
||||
@ -2193,7 +2199,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Collapse._collapseInterface = function _collapseInterface(element, config) {
|
||||
Collapse.collapseInterface = function collapseInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$3);
|
||||
|
||||
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
|
||||
@ -2215,13 +2221,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
Collapse.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Collapse._collapseInterface(this, config);
|
||||
Collapse.collapseInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Collapse._getInstance = function _getInstance(element) {
|
||||
Collapse.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$3);
|
||||
};
|
||||
|
||||
@ -2271,9 +2277,10 @@
|
||||
config = triggerData;
|
||||
}
|
||||
|
||||
Collapse._collapseInterface(element, config);
|
||||
Collapse.collapseInterface(element, config);
|
||||
});
|
||||
});
|
||||
var $$4 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -2283,14 +2290,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
|
||||
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
|
||||
jQuery.fn[NAME$3].Constructor = Collapse;
|
||||
if ($$4) {
|
||||
var JQUERY_NO_CONFLICT$3 = $$4.fn[NAME$3];
|
||||
$$4.fn[NAME$3] = Collapse.jQueryInterface;
|
||||
$$4.fn[NAME$3].Constructor = Collapse;
|
||||
|
||||
jQuery.fn[NAME$3].noConflict = function () {
|
||||
jQuery.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse._jQueryInterface;
|
||||
$$4.fn[NAME$3].noConflict = function () {
|
||||
$$4.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4961,14 +4968,16 @@
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
reference: 'toggle',
|
||||
display: 'dynamic'
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType$2 = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
reference: '(string|element)',
|
||||
display: 'string'
|
||||
display: 'string',
|
||||
popperConfig: '(null|object)'
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
@ -5001,16 +5010,23 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var isActive = this._menu.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
Dropdown.clearMenus();
|
||||
|
||||
if (isActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.show();
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -5022,10 +5038,6 @@
|
||||
|
||||
|
||||
if (!this._inNavbar) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
|
||||
}
|
||||
@ -5071,34 +5083,12 @@
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = EventHandler.trigger(parent, Event$5.SHOW, relatedTarget);
|
||||
|
||||
if (showEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || !this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -5108,6 +5098,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
@ -5119,7 +5113,7 @@
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
|
||||
this._popper = null;
|
||||
@ -5129,7 +5123,7 @@
|
||||
_proto.update = function update() {
|
||||
this._inNavbar = this._detectNavbar();
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.scheduleUpdate();
|
||||
}
|
||||
} // Private
|
||||
@ -5153,8 +5147,7 @@
|
||||
};
|
||||
|
||||
_proto._getMenuElement = function _getMenuElement() {
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
return SelectorEngine.findOne(Selector$4.MENU, parent);
|
||||
};
|
||||
|
||||
@ -5221,11 +5214,11 @@
|
||||
};
|
||||
}
|
||||
|
||||
return popperConfig;
|
||||
return _objectSpread2({}, popperConfig, {}, this._config.popperConfig);
|
||||
} // Static
|
||||
;
|
||||
|
||||
Dropdown._dropdownInterface = function _dropdownInterface(element, config) {
|
||||
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$4);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
@ -5243,13 +5236,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
Dropdown.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Dropdown._dropdownInterface(this, config);
|
||||
Dropdown.dropdownInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Dropdown._clearMenus = function _clearMenus(event) {
|
||||
Dropdown.clearMenus = function clearMenus(event) {
|
||||
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
||||
return;
|
||||
}
|
||||
@ -5257,8 +5250,7 @@
|
||||
var toggles = makeArray(SelectorEngine.find(Selector$4.DATA_TOGGLE));
|
||||
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
@ -5297,24 +5289,22 @@
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
|
||||
if (context._popper) {
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
dropdownMenu.classList.remove(ClassName$4.SHOW);
|
||||
parent.classList.remove(ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
||||
var parent;
|
||||
var selector = getSelectorFromElement(element);
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
return parent || element.parentNode;
|
||||
Dropdown.getParentFromElement = function getParentFromElement(element) {
|
||||
return getElementFromSelector(element) || element.parentNode;
|
||||
};
|
||||
|
||||
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
||||
Dropdown.dataApiKeydownHandler = function dataApiKeydownHandler(event) {
|
||||
// If not input/textarea:
|
||||
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
||||
// If input/textarea:
|
||||
@ -5333,8 +5323,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this);
|
||||
var isActive = parent.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||
@ -5342,8 +5331,7 @@
|
||||
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||
}
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
Dropdown.clearMenus();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5372,7 +5360,7 @@
|
||||
items[index].focus();
|
||||
};
|
||||
|
||||
Dropdown._getInstance = function _getInstance(element) {
|
||||
Dropdown.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$4);
|
||||
};
|
||||
|
||||
@ -5402,19 +5390,19 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._dropdownInterface(this, 'toggle');
|
||||
Dropdown.dropdownInterface(this, 'toggle');
|
||||
});
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) {
|
||||
return e.stopPropagation();
|
||||
});
|
||||
var $$5 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -5424,14 +5412,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
|
||||
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
|
||||
jQuery.fn[NAME$4].Constructor = Dropdown;
|
||||
if ($$5) {
|
||||
var JQUERY_NO_CONFLICT$4 = $$5.fn[NAME$4];
|
||||
$$5.fn[NAME$4] = Dropdown.jQueryInterface;
|
||||
$$5.fn[NAME$4].Constructor = Dropdown;
|
||||
|
||||
jQuery.fn[NAME$4].noConflict = function () {
|
||||
jQuery.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown._jQueryInterface;
|
||||
$$5.fn[NAME$4].noConflict = function () {
|
||||
$$5.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -5653,6 +5641,8 @@
|
||||
|
||||
var transition = this._element.classList.contains(ClassName$5.FADE);
|
||||
|
||||
var modalBody = SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog);
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
// Don't move modal's DOM position
|
||||
document.body.appendChild(this._element);
|
||||
@ -5664,8 +5654,8 @@
|
||||
|
||||
this._element.setAttribute('aria-modal', true);
|
||||
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE)) {
|
||||
SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog).scrollTop = 0;
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
}
|
||||
@ -5932,7 +5922,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$5);
|
||||
|
||||
@ -5954,7 +5944,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Modal._getInstance = function _getInstance(element) {
|
||||
Modal.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$5);
|
||||
};
|
||||
|
||||
@ -5982,8 +5972,7 @@
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
|
||||
var selector = getSelectorFromElement(this);
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
@ -6011,6 +6000,7 @@
|
||||
|
||||
data.show(this);
|
||||
});
|
||||
var $$6 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -6020,14 +6010,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
|
||||
jQuery.fn[NAME$5] = Modal._jQueryInterface;
|
||||
jQuery.fn[NAME$5].Constructor = Modal;
|
||||
if ($$6) {
|
||||
var JQUERY_NO_CONFLICT$5 = $$6.fn[NAME$5];
|
||||
$$6.fn[NAME$5] = Modal.jQueryInterface;
|
||||
$$6.fn[NAME$5].Constructor = Modal;
|
||||
|
||||
jQuery.fn[NAME$5].noConflict = function () {
|
||||
jQuery.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal._jQueryInterface;
|
||||
$$6.fn[NAME$5].noConflict = function () {
|
||||
$$6.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -6180,7 +6170,8 @@
|
||||
boundary: '(string|element)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object'
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var AttachmentMap$1 = {
|
||||
AUTO: 'auto',
|
||||
@ -6204,7 +6195,8 @@
|
||||
boundary: 'scrollParent',
|
||||
sanitize: true,
|
||||
sanitizeFn: null,
|
||||
whiteList: DefaultWhitelist
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HoverState = {
|
||||
SHOW: 'show',
|
||||
@ -6246,10 +6238,6 @@
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Tooltip(element, config) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)');
|
||||
} // private
|
||||
@ -6333,7 +6321,7 @@
|
||||
this._hoverState = null;
|
||||
this._activeTrigger = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
@ -6384,29 +6372,7 @@
|
||||
}
|
||||
|
||||
EventHandler.trigger(this.element, this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper(this.element, tip, {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this._handlePopperPlacementChange(data);
|
||||
}
|
||||
});
|
||||
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
||||
tip.classList.add(ClassName$6.SHOW); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
@ -6565,18 +6531,47 @@
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||
var _this3 = this;
|
||||
|
||||
var defaultBsConfig = {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
};
|
||||
return _objectSpread2({}, defaultBsConfig, {}, this.config.popperConfig);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
var _this3 = this;
|
||||
var _this4 = this;
|
||||
|
||||
var offset = {};
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -6603,29 +6598,29 @@
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this4 = this;
|
||||
var _this5 = this;
|
||||
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
EventHandler.on(_this4.element, _this4.constructor.Event.CLICK, _this4.config.selector, function (event) {
|
||||
return _this4.toggle(event);
|
||||
EventHandler.on(_this5.element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== Trigger.MANUAL) {
|
||||
var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this4.element, eventIn, _this4.config.selector, function (event) {
|
||||
return _this4._enter(event);
|
||||
var eventIn = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this5.element, eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
});
|
||||
EventHandler.on(_this4.element, eventOut, _this4.config.selector, function (event) {
|
||||
return _this4._leave(event);
|
||||
EventHandler.on(_this5.element, eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this._hideModalHandler = function () {
|
||||
if (_this4.element) {
|
||||
_this4.hide();
|
||||
if (_this5.element) {
|
||||
_this5.hide();
|
||||
}
|
||||
};
|
||||
|
||||
@ -6815,7 +6810,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tooltip.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$6);
|
||||
|
||||
@ -6839,7 +6834,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tooltip._getInstance = function _getInstance(element) {
|
||||
Tooltip.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$6);
|
||||
};
|
||||
|
||||
@ -6882,6 +6877,8 @@
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
|
||||
var $$7 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -6891,15 +6888,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$7) {
|
||||
var JQUERY_NO_CONFLICT$6 = $$7.fn[NAME$6];
|
||||
$$7.fn[NAME$6] = Tooltip.jQueryInterface;
|
||||
$$7.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
|
||||
jQuery.fn[NAME$6] = Tooltip._jQueryInterface;
|
||||
jQuery.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
jQuery.fn[NAME$6].noConflict = function () {
|
||||
jQuery.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip._jQueryInterface;
|
||||
$$7.fn[NAME$6].noConflict = function () {
|
||||
$$7.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -6970,10 +6966,6 @@
|
||||
return this.getTitle() || this._getContent();
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
||||
|
||||
@ -6988,6 +6980,10 @@
|
||||
this.setElementContent(SelectorEngine.findOne(Selector$7.CONTENT, tip), content);
|
||||
tip.classList.remove(ClassName$7.FADE);
|
||||
tip.classList.remove(ClassName$7.SHOW);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -7009,7 +7005,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
Popover.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$7);
|
||||
|
||||
@ -7034,7 +7030,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Popover._getInstance = function _getInstance(element) {
|
||||
Popover.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$7);
|
||||
};
|
||||
|
||||
@ -7078,6 +7074,8 @@
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
|
||||
var $$8 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -7086,15 +7084,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$8) {
|
||||
var JQUERY_NO_CONFLICT$7 = $$8.fn[NAME$7];
|
||||
$$8.fn[NAME$7] = Popover.jQueryInterface;
|
||||
$$8.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
|
||||
jQuery.fn[NAME$7] = Popover._jQueryInterface;
|
||||
jQuery.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
jQuery.fn[NAME$7].noConflict = function () {
|
||||
jQuery.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover._jQueryInterface;
|
||||
$$8.fn[NAME$7].noConflict = function () {
|
||||
$$8.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -7344,7 +7341,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$8);
|
||||
|
||||
@ -7364,7 +7361,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
ScrollSpy._getInstance = function _getInstance(element) {
|
||||
ScrollSpy.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$8);
|
||||
};
|
||||
|
||||
@ -7394,6 +7391,7 @@
|
||||
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
||||
});
|
||||
});
|
||||
var $$9 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -7402,14 +7400,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$8 = jQuery.fn[NAME$8];
|
||||
jQuery.fn[NAME$8] = ScrollSpy._jQueryInterface;
|
||||
jQuery.fn[NAME$8].Constructor = ScrollSpy;
|
||||
if ($$9) {
|
||||
var JQUERY_NO_CONFLICT$8 = $$9.fn[NAME$8];
|
||||
$$9.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
||||
$$9.fn[NAME$8].Constructor = ScrollSpy;
|
||||
|
||||
jQuery.fn[NAME$8].noConflict = function () {
|
||||
jQuery.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
$$9.fn[NAME$8].noConflict = function () {
|
||||
$$9.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -7473,10 +7471,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var target = getElementFromSelector(this._element);
|
||||
var listElement = SelectorEngine.closest(this._element, Selector$9.NAV_LIST_GROUP);
|
||||
var selector = getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;
|
||||
@ -7500,10 +7497,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (selector) {
|
||||
target = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
@ -7593,7 +7586,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tab.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
|
||||
@ -7607,7 +7600,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tab._getInstance = function _getInstance(element) {
|
||||
Tab.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$9);
|
||||
};
|
||||
|
||||
@ -7632,6 +7625,7 @@
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
data.show();
|
||||
});
|
||||
var $$a = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -7641,14 +7635,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
|
||||
jQuery.fn[NAME$9] = Tab._jQueryInterface;
|
||||
jQuery.fn[NAME$9].Constructor = Tab;
|
||||
if ($$a) {
|
||||
var JQUERY_NO_CONFLICT$9 = $$a.fn[NAME$9];
|
||||
$$a.fn[NAME$9] = Tab.jQueryInterface;
|
||||
$$a.fn[NAME$9].Constructor = Tab;
|
||||
|
||||
jQuery.fn[NAME$9].noConflict = function () {
|
||||
jQuery.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab._jQueryInterface;
|
||||
$$a.fn[NAME$9].noConflict = function () {
|
||||
$$a.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -7814,7 +7808,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
Toast.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$a);
|
||||
|
||||
@ -7834,7 +7828,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Toast._getInstance = function _getInstance(element) {
|
||||
Toast.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$a);
|
||||
};
|
||||
|
||||
@ -7857,6 +7851,8 @@
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
|
||||
var $$b = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -7866,15 +7862,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$b) {
|
||||
var JQUERY_NO_CONFLICT$a = $$b.fn[NAME$a];
|
||||
$$b.fn[NAME$a] = Toast.jQueryInterface;
|
||||
$$b.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];
|
||||
jQuery.fn[NAME$a] = Toast._jQueryInterface;
|
||||
jQuery.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
jQuery.fn[NAME$a].noConflict = function () {
|
||||
jQuery.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast._jQueryInterface;
|
||||
$$b.fn[NAME$a].noConflict = function () {
|
||||
$$b.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
dist/js/bootstrap.bundle.js.map
vendored
2
dist/js/bootstrap.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js
vendored
2
dist/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js.map
vendored
2
dist/js/bootstrap.bundle.min.js.map
vendored
File diff suppressed because one or more lines are too long
547
dist/js/bootstrap.esm.js
vendored
547
dist/js/bootstrap.esm.js
vendored
@ -84,9 +84,7 @@ function _inheritsLoose(subClass, superClass) {
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -107,19 +105,30 @@ var getUID = function getUID(prefix) {
|
||||
return prefix;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var selector = getSelector(element);
|
||||
|
||||
if (selector) {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -237,6 +246,17 @@ var reflow = function reflow(element) {
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.3.1): dom/data.js
|
||||
@ -455,6 +475,7 @@ if (!supportScopeQuery) {
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var $ = getjQuery();
|
||||
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
||||
var stripNameRegex = /\..*/;
|
||||
var keyEventRegex = /^key/;
|
||||
@ -682,9 +703,9 @@ var EventHandler = {
|
||||
var defaultPrevented = false;
|
||||
var evt = null;
|
||||
|
||||
if (inNamespace && typeof jQuery !== 'undefined') {
|
||||
jQueryEvent = jQuery.Event(event, args);
|
||||
jQuery(element).trigger(jQueryEvent);
|
||||
if (inNamespace && $) {
|
||||
jQueryEvent = $.Event(event, args);
|
||||
$(element).trigger(jQueryEvent);
|
||||
bubbles = !jQueryEvent.isPropagationStopped();
|
||||
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
||||
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
||||
@ -876,12 +897,7 @@ function () {
|
||||
;
|
||||
|
||||
_proto._getRootElement = function _getRootElement(element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var parent = false;
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
var parent = getElementFromSelector(element);
|
||||
|
||||
if (!parent) {
|
||||
parent = SelectorEngine.closest(element, "." + ClassName.ALERT);
|
||||
@ -921,7 +937,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
Alert.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -935,7 +951,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Alert._handleDismiss = function _handleDismiss(alertInstance) {
|
||||
Alert.handleDismiss = function handleDismiss(alertInstance) {
|
||||
return function (event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
@ -945,7 +961,7 @@ function () {
|
||||
};
|
||||
};
|
||||
|
||||
Alert._getInstance = function _getInstance(element) {
|
||||
Alert.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -965,7 +981,8 @@ function () {
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert.handleDismiss(new Alert()));
|
||||
var $$1 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -975,14 +992,14 @@ EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handl
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Alert._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Alert;
|
||||
if ($$1) {
|
||||
var JQUERY_NO_CONFLICT = $$1.fn[NAME];
|
||||
$$1.fn[NAME] = Alert.jQueryInterface;
|
||||
$$1.fn[NAME].Constructor = Alert;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert._jQueryInterface;
|
||||
$$1.fn[NAME].noConflict = function () {
|
||||
$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1041,16 +1058,14 @@ function () {
|
||||
if (rootElement) {
|
||||
var input = SelectorEngine.findOne(Selector$1.INPUT, this._element);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
if (input && input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1083,7 +1098,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config) {
|
||||
Button.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$1);
|
||||
|
||||
@ -1097,7 +1112,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Button._getInstance = function _getInstance(element) {
|
||||
Button.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$1);
|
||||
};
|
||||
|
||||
@ -1147,6 +1162,7 @@ EventHandler.on(document, Event$2.BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT,
|
||||
button.classList.remove(ClassName$1.FOCUS);
|
||||
}
|
||||
});
|
||||
var $$2 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1156,14 +1172,14 @@ EventHandler.on(document, Event$2.BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT,
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
|
||||
jQuery.fn[NAME$1] = Button._jQueryInterface;
|
||||
jQuery.fn[NAME$1].Constructor = Button;
|
||||
if ($$2) {
|
||||
var JQUERY_NO_CONFLICT$1 = $$2.fn[NAME$1];
|
||||
$$2.fn[NAME$1] = Button.jQueryInterface;
|
||||
$$2.fn[NAME$1].Constructor = Button;
|
||||
|
||||
jQuery.fn[NAME$1].noConflict = function () {
|
||||
jQuery.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button._jQueryInterface;
|
||||
$$2.fn[NAME$1].noConflict = function () {
|
||||
$$2.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1750,7 +1766,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Carousel._carouselInterface = function _carouselInterface(element, config) {
|
||||
Carousel.carouselInterface = function carouselInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$2);
|
||||
|
||||
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
|
||||
@ -1779,20 +1795,14 @@ function () {
|
||||
}
|
||||
};
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
Carousel.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Carousel._carouselInterface(this, config);
|
||||
Carousel.carouselInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
|
||||
var selector = getSelectorFromElement(this);
|
||||
|
||||
if (!selector) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
Carousel.dataApiClickHandler = function dataApiClickHandler(event) {
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (!target || !target.classList.contains(ClassName$2.CAROUSEL)) {
|
||||
return;
|
||||
@ -1806,7 +1816,7 @@ function () {
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._carouselInterface(target, config);
|
||||
Carousel.carouselInterface(target, config);
|
||||
|
||||
if (slideIndex) {
|
||||
Data.getData(target, DATA_KEY$2).to(slideIndex);
|
||||
@ -1815,7 +1825,7 @@ function () {
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
Carousel._getInstance = function _getInstance(element) {
|
||||
Carousel.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$2);
|
||||
};
|
||||
|
||||
@ -1840,14 +1850,15 @@ function () {
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel.dataApiClickHandler);
|
||||
EventHandler.on(window, Event$3.LOAD_DATA_API, function () {
|
||||
var carousels = makeArray(SelectorEngine.find(Selector$2.DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
Carousel._carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
}
|
||||
});
|
||||
var $$3 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1857,14 +1868,14 @@ EventHandler.on(window, Event$3.LOAD_DATA_API, function () {
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
|
||||
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
|
||||
jQuery.fn[NAME$2].Constructor = Carousel;
|
||||
if ($$3) {
|
||||
var JQUERY_NO_CONFLICT$2 = $$3.fn[NAME$2];
|
||||
$$3.fn[NAME$2] = Carousel.jQueryInterface;
|
||||
$$3.fn[NAME$2].Constructor = Carousel;
|
||||
|
||||
jQuery.fn[NAME$2].noConflict = function () {
|
||||
jQuery.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel._jQueryInterface;
|
||||
$$3.fn[NAME$2].noConflict = function () {
|
||||
$$3.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -2010,7 +2021,7 @@ function () {
|
||||
if (actives) {
|
||||
actives.forEach(function (elemActive) {
|
||||
if (container !== elemActive) {
|
||||
Collapse._collapseInterface(elemActive, 'hide');
|
||||
Collapse.collapseInterface(elemActive, 'hide');
|
||||
}
|
||||
|
||||
if (!activesData) {
|
||||
@ -2087,15 +2098,11 @@ function () {
|
||||
if (triggerArrayLength > 0) {
|
||||
for (var i = 0; i < triggerArrayLength; i++) {
|
||||
var trigger = this._triggerArray[i];
|
||||
var selector = getSelectorFromElement(trigger);
|
||||
var elem = getElementFromSelector(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var elem = SelectorEngine.findOne(selector);
|
||||
|
||||
if (!elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
if (elem && !elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2162,8 +2169,7 @@ function () {
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
|
||||
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var selected = selector ? SelectorEngine.findOne(selector) : null;
|
||||
var selected = getElementFromSelector(element);
|
||||
|
||||
_this3._addAriaAndCollapsedClass(selected, [element]);
|
||||
});
|
||||
@ -2189,7 +2195,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Collapse._collapseInterface = function _collapseInterface(element, config) {
|
||||
Collapse.collapseInterface = function collapseInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$3);
|
||||
|
||||
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
|
||||
@ -2211,13 +2217,13 @@ function () {
|
||||
}
|
||||
};
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
Collapse.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Collapse._collapseInterface(this, config);
|
||||
Collapse.collapseInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Collapse._getInstance = function _getInstance(element) {
|
||||
Collapse.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$3);
|
||||
};
|
||||
|
||||
@ -2267,9 +2273,10 @@ EventHandler.on(document, Event$4.CLICK_DATA_API, Selector$3.DATA_TOGGLE, functi
|
||||
config = triggerData;
|
||||
}
|
||||
|
||||
Collapse._collapseInterface(element, config);
|
||||
Collapse.collapseInterface(element, config);
|
||||
});
|
||||
});
|
||||
var $$4 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -2279,14 +2286,14 @@ EventHandler.on(document, Event$4.CLICK_DATA_API, Selector$3.DATA_TOGGLE, functi
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
|
||||
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
|
||||
jQuery.fn[NAME$3].Constructor = Collapse;
|
||||
if ($$4) {
|
||||
var JQUERY_NO_CONFLICT$3 = $$4.fn[NAME$3];
|
||||
$$4.fn[NAME$3] = Collapse.jQueryInterface;
|
||||
$$4.fn[NAME$3].Constructor = Collapse;
|
||||
|
||||
jQuery.fn[NAME$3].noConflict = function () {
|
||||
jQuery.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse._jQueryInterface;
|
||||
$$4.fn[NAME$3].noConflict = function () {
|
||||
$$4.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -2355,14 +2362,16 @@ var Default$2 = {
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
reference: 'toggle',
|
||||
display: 'dynamic'
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType$2 = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
reference: '(string|element)',
|
||||
display: 'string'
|
||||
display: 'string',
|
||||
popperConfig: '(null|object)'
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
@ -2395,16 +2404,23 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var isActive = this._menu.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
Dropdown.clearMenus();
|
||||
|
||||
if (isActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.show();
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -2416,10 +2432,6 @@ function () {
|
||||
|
||||
|
||||
if (!this._inNavbar) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
|
||||
}
|
||||
@ -2465,34 +2477,12 @@ function () {
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = EventHandler.trigger(parent, Event$5.SHOW, relatedTarget);
|
||||
|
||||
if (showEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || !this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -2502,6 +2492,10 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
@ -2513,7 +2507,7 @@ function () {
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
|
||||
this._popper = null;
|
||||
@ -2523,7 +2517,7 @@ function () {
|
||||
_proto.update = function update() {
|
||||
this._inNavbar = this._detectNavbar();
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.scheduleUpdate();
|
||||
}
|
||||
} // Private
|
||||
@ -2547,8 +2541,7 @@ function () {
|
||||
};
|
||||
|
||||
_proto._getMenuElement = function _getMenuElement() {
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
return SelectorEngine.findOne(Selector$4.MENU, parent);
|
||||
};
|
||||
|
||||
@ -2615,11 +2608,11 @@ function () {
|
||||
};
|
||||
}
|
||||
|
||||
return popperConfig;
|
||||
return _objectSpread2({}, popperConfig, {}, this._config.popperConfig);
|
||||
} // Static
|
||||
;
|
||||
|
||||
Dropdown._dropdownInterface = function _dropdownInterface(element, config) {
|
||||
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$4);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
@ -2637,13 +2630,13 @@ function () {
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
Dropdown.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Dropdown._dropdownInterface(this, config);
|
||||
Dropdown.dropdownInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Dropdown._clearMenus = function _clearMenus(event) {
|
||||
Dropdown.clearMenus = function clearMenus(event) {
|
||||
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
||||
return;
|
||||
}
|
||||
@ -2651,8 +2644,7 @@ function () {
|
||||
var toggles = makeArray(SelectorEngine.find(Selector$4.DATA_TOGGLE));
|
||||
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
@ -2691,24 +2683,22 @@ function () {
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
|
||||
if (context._popper) {
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
dropdownMenu.classList.remove(ClassName$4.SHOW);
|
||||
parent.classList.remove(ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
||||
var parent;
|
||||
var selector = getSelectorFromElement(element);
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
return parent || element.parentNode;
|
||||
Dropdown.getParentFromElement = function getParentFromElement(element) {
|
||||
return getElementFromSelector(element) || element.parentNode;
|
||||
};
|
||||
|
||||
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
||||
Dropdown.dataApiKeydownHandler = function dataApiKeydownHandler(event) {
|
||||
// If not input/textarea:
|
||||
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
||||
// If input/textarea:
|
||||
@ -2727,8 +2717,7 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this);
|
||||
var isActive = parent.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||
@ -2736,8 +2725,7 @@ function () {
|
||||
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||
}
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
Dropdown.clearMenus();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2766,7 +2754,7 @@ function () {
|
||||
items[index].focus();
|
||||
};
|
||||
|
||||
Dropdown._getInstance = function _getInstance(element) {
|
||||
Dropdown.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$4);
|
||||
};
|
||||
|
||||
@ -2796,19 +2784,19 @@ function () {
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._dropdownInterface(this, 'toggle');
|
||||
Dropdown.dropdownInterface(this, 'toggle');
|
||||
});
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) {
|
||||
return e.stopPropagation();
|
||||
});
|
||||
var $$5 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -2818,14 +2806,14 @@ EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.FORM_CHILD, functio
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
|
||||
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
|
||||
jQuery.fn[NAME$4].Constructor = Dropdown;
|
||||
if ($$5) {
|
||||
var JQUERY_NO_CONFLICT$4 = $$5.fn[NAME$4];
|
||||
$$5.fn[NAME$4] = Dropdown.jQueryInterface;
|
||||
$$5.fn[NAME$4].Constructor = Dropdown;
|
||||
|
||||
jQuery.fn[NAME$4].noConflict = function () {
|
||||
jQuery.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown._jQueryInterface;
|
||||
$$5.fn[NAME$4].noConflict = function () {
|
||||
$$5.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -3047,6 +3035,8 @@ function () {
|
||||
|
||||
var transition = this._element.classList.contains(ClassName$5.FADE);
|
||||
|
||||
var modalBody = SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog);
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
// Don't move modal's DOM position
|
||||
document.body.appendChild(this._element);
|
||||
@ -3058,8 +3048,8 @@ function () {
|
||||
|
||||
this._element.setAttribute('aria-modal', true);
|
||||
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE)) {
|
||||
SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog).scrollTop = 0;
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
}
|
||||
@ -3326,7 +3316,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$5);
|
||||
|
||||
@ -3348,7 +3338,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Modal._getInstance = function _getInstance(element) {
|
||||
Modal.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$5);
|
||||
};
|
||||
|
||||
@ -3376,8 +3366,7 @@ function () {
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
|
||||
var selector = getSelectorFromElement(this);
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
@ -3405,6 +3394,7 @@ EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, functi
|
||||
|
||||
data.show(this);
|
||||
});
|
||||
var $$6 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -3414,14 +3404,14 @@ EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, functi
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
|
||||
jQuery.fn[NAME$5] = Modal._jQueryInterface;
|
||||
jQuery.fn[NAME$5].Constructor = Modal;
|
||||
if ($$6) {
|
||||
var JQUERY_NO_CONFLICT$5 = $$6.fn[NAME$5];
|
||||
$$6.fn[NAME$5] = Modal.jQueryInterface;
|
||||
$$6.fn[NAME$5].Constructor = Modal;
|
||||
|
||||
jQuery.fn[NAME$5].noConflict = function () {
|
||||
jQuery.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal._jQueryInterface;
|
||||
$$6.fn[NAME$5].noConflict = function () {
|
||||
$$6.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -3574,7 +3564,8 @@ var DefaultType$4 = {
|
||||
boundary: '(string|element)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object'
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var AttachmentMap$1 = {
|
||||
AUTO: 'auto',
|
||||
@ -3598,7 +3589,8 @@ var Default$4 = {
|
||||
boundary: 'scrollParent',
|
||||
sanitize: true,
|
||||
sanitizeFn: null,
|
||||
whiteList: DefaultWhitelist
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HoverState = {
|
||||
SHOW: 'show',
|
||||
@ -3640,10 +3632,6 @@ var Tooltip =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Tooltip(element, config) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)');
|
||||
} // private
|
||||
@ -3727,7 +3715,7 @@ function () {
|
||||
this._hoverState = null;
|
||||
this._activeTrigger = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
@ -3778,29 +3766,7 @@ function () {
|
||||
}
|
||||
|
||||
EventHandler.trigger(this.element, this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper(this.element, tip, {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this._handlePopperPlacementChange(data);
|
||||
}
|
||||
});
|
||||
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
||||
tip.classList.add(ClassName$6.SHOW); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
@ -3959,18 +3925,47 @@ function () {
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||
var _this3 = this;
|
||||
|
||||
var defaultBsConfig = {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
};
|
||||
return _objectSpread2({}, defaultBsConfig, {}, this.config.popperConfig);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
var _this3 = this;
|
||||
var _this4 = this;
|
||||
|
||||
var offset = {};
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -3997,29 +3992,29 @@ function () {
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this4 = this;
|
||||
var _this5 = this;
|
||||
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
EventHandler.on(_this4.element, _this4.constructor.Event.CLICK, _this4.config.selector, function (event) {
|
||||
return _this4.toggle(event);
|
||||
EventHandler.on(_this5.element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== Trigger.MANUAL) {
|
||||
var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this4.element, eventIn, _this4.config.selector, function (event) {
|
||||
return _this4._enter(event);
|
||||
var eventIn = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this5.element, eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
});
|
||||
EventHandler.on(_this4.element, eventOut, _this4.config.selector, function (event) {
|
||||
return _this4._leave(event);
|
||||
EventHandler.on(_this5.element, eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this._hideModalHandler = function () {
|
||||
if (_this4.element) {
|
||||
_this4.hide();
|
||||
if (_this5.element) {
|
||||
_this5.hide();
|
||||
}
|
||||
};
|
||||
|
||||
@ -4209,7 +4204,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tooltip.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$6);
|
||||
|
||||
@ -4233,7 +4228,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Tooltip._getInstance = function _getInstance(element) {
|
||||
Tooltip.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$6);
|
||||
};
|
||||
|
||||
@ -4276,6 +4271,8 @@ function () {
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
|
||||
var $$7 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4285,15 +4282,14 @@ function () {
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$7) {
|
||||
var JQUERY_NO_CONFLICT$6 = $$7.fn[NAME$6];
|
||||
$$7.fn[NAME$6] = Tooltip.jQueryInterface;
|
||||
$$7.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
|
||||
jQuery.fn[NAME$6] = Tooltip._jQueryInterface;
|
||||
jQuery.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
jQuery.fn[NAME$6].noConflict = function () {
|
||||
jQuery.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip._jQueryInterface;
|
||||
$$7.fn[NAME$6].noConflict = function () {
|
||||
$$7.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4364,10 +4360,6 @@ function (_Tooltip) {
|
||||
return this.getTitle() || this._getContent();
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
||||
|
||||
@ -4382,6 +4374,10 @@ function (_Tooltip) {
|
||||
this.setElementContent(SelectorEngine.findOne(Selector$7.CONTENT, tip), content);
|
||||
tip.classList.remove(ClassName$7.FADE);
|
||||
tip.classList.remove(ClassName$7.SHOW);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -4403,7 +4399,7 @@ function (_Tooltip) {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
Popover.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$7);
|
||||
|
||||
@ -4428,7 +4424,7 @@ function (_Tooltip) {
|
||||
});
|
||||
};
|
||||
|
||||
Popover._getInstance = function _getInstance(element) {
|
||||
Popover.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$7);
|
||||
};
|
||||
|
||||
@ -4472,6 +4468,8 @@ function (_Tooltip) {
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
|
||||
var $$8 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4480,15 +4478,14 @@ function (_Tooltip) {
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$8) {
|
||||
var JQUERY_NO_CONFLICT$7 = $$8.fn[NAME$7];
|
||||
$$8.fn[NAME$7] = Popover.jQueryInterface;
|
||||
$$8.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
|
||||
jQuery.fn[NAME$7] = Popover._jQueryInterface;
|
||||
jQuery.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
jQuery.fn[NAME$7].noConflict = function () {
|
||||
jQuery.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover._jQueryInterface;
|
||||
$$8.fn[NAME$7].noConflict = function () {
|
||||
$$8.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4738,7 +4735,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$8);
|
||||
|
||||
@ -4758,7 +4755,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
ScrollSpy._getInstance = function _getInstance(element) {
|
||||
ScrollSpy.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$8);
|
||||
};
|
||||
|
||||
@ -4788,6 +4785,7 @@ EventHandler.on(window, Event$9.LOAD_DATA_API, function () {
|
||||
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
||||
});
|
||||
});
|
||||
var $$9 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4796,14 +4794,14 @@ 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;
|
||||
jQuery.fn[NAME$8].Constructor = ScrollSpy;
|
||||
if ($$9) {
|
||||
var JQUERY_NO_CONFLICT$8 = $$9.fn[NAME$8];
|
||||
$$9.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
||||
$$9.fn[NAME$8].Constructor = ScrollSpy;
|
||||
|
||||
jQuery.fn[NAME$8].noConflict = function () {
|
||||
jQuery.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
$$9.fn[NAME$8].noConflict = function () {
|
||||
$$9.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4867,10 +4865,9 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var target = getElementFromSelector(this._element);
|
||||
var listElement = SelectorEngine.closest(this._element, Selector$9.NAV_LIST_GROUP);
|
||||
var selector = getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;
|
||||
@ -4894,10 +4891,6 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selector) {
|
||||
target = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
@ -4987,7 +4980,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tab.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
|
||||
@ -5001,7 +4994,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Tab._getInstance = function _getInstance(element) {
|
||||
Tab.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$9);
|
||||
};
|
||||
|
||||
@ -5026,6 +5019,7 @@ EventHandler.on(document, Event$a.CLICK_DATA_API, Selector$9.DATA_TOGGLE, functi
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
data.show();
|
||||
});
|
||||
var $$a = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -5035,14 +5029,14 @@ EventHandler.on(document, Event$a.CLICK_DATA_API, Selector$9.DATA_TOGGLE, functi
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
|
||||
jQuery.fn[NAME$9] = Tab._jQueryInterface;
|
||||
jQuery.fn[NAME$9].Constructor = Tab;
|
||||
if ($$a) {
|
||||
var JQUERY_NO_CONFLICT$9 = $$a.fn[NAME$9];
|
||||
$$a.fn[NAME$9] = Tab.jQueryInterface;
|
||||
$$a.fn[NAME$9].Constructor = Tab;
|
||||
|
||||
jQuery.fn[NAME$9].noConflict = function () {
|
||||
jQuery.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab._jQueryInterface;
|
||||
$$a.fn[NAME$9].noConflict = function () {
|
||||
$$a.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -5208,7 +5202,7 @@ function () {
|
||||
} // Static
|
||||
;
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
Toast.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$a);
|
||||
|
||||
@ -5228,7 +5222,7 @@ function () {
|
||||
});
|
||||
};
|
||||
|
||||
Toast._getInstance = function _getInstance(element) {
|
||||
Toast.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$a);
|
||||
};
|
||||
|
||||
@ -5251,6 +5245,8 @@ function () {
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
|
||||
var $$b = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -5260,15 +5256,14 @@ function () {
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$b) {
|
||||
var JQUERY_NO_CONFLICT$a = $$b.fn[NAME$a];
|
||||
$$b.fn[NAME$a] = Toast.jQueryInterface;
|
||||
$$b.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];
|
||||
jQuery.fn[NAME$a] = Toast._jQueryInterface;
|
||||
jQuery.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
jQuery.fn[NAME$a].noConflict = function () {
|
||||
jQuery.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast._jQueryInterface;
|
||||
$$b.fn[NAME$a].noConflict = function () {
|
||||
$$b.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
dist/js/bootstrap.esm.js.map
vendored
2
dist/js/bootstrap.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js
vendored
2
dist/js/bootstrap.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js.map
vendored
2
dist/js/bootstrap.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -90,9 +90,7 @@
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -113,19 +111,30 @@
|
||||
return prefix;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var selector = getSelector(element);
|
||||
|
||||
if (selector) {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -243,6 +252,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.3.1): dom/data.js
|
||||
@ -461,6 +481,7 @@
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var $ = getjQuery();
|
||||
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
||||
var stripNameRegex = /\..*/;
|
||||
var keyEventRegex = /^key/;
|
||||
@ -688,9 +709,9 @@
|
||||
var defaultPrevented = false;
|
||||
var evt = null;
|
||||
|
||||
if (inNamespace && typeof jQuery !== 'undefined') {
|
||||
jQueryEvent = jQuery.Event(event, args);
|
||||
jQuery(element).trigger(jQueryEvent);
|
||||
if (inNamespace && $) {
|
||||
jQueryEvent = $.Event(event, args);
|
||||
$(element).trigger(jQueryEvent);
|
||||
bubbles = !jQueryEvent.isPropagationStopped();
|
||||
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
||||
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
||||
@ -882,12 +903,7 @@
|
||||
;
|
||||
|
||||
_proto._getRootElement = function _getRootElement(element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var parent = false;
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
var parent = getElementFromSelector(element);
|
||||
|
||||
if (!parent) {
|
||||
parent = SelectorEngine.closest(element, "." + ClassName.ALERT);
|
||||
@ -927,7 +943,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
Alert.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -941,7 +957,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Alert._handleDismiss = function _handleDismiss(alertInstance) {
|
||||
Alert.handleDismiss = function handleDismiss(alertInstance) {
|
||||
return function (event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
@ -951,7 +967,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
Alert._getInstance = function _getInstance(element) {
|
||||
Alert.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -971,7 +987,8 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
|
||||
EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert.handleDismiss(new Alert()));
|
||||
var $$1 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -981,14 +998,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Alert._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Alert;
|
||||
if ($$1) {
|
||||
var JQUERY_NO_CONFLICT = $$1.fn[NAME];
|
||||
$$1.fn[NAME] = Alert.jQueryInterface;
|
||||
$$1.fn[NAME].Constructor = Alert;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert._jQueryInterface;
|
||||
$$1.fn[NAME].noConflict = function () {
|
||||
$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1047,16 +1064,14 @@
|
||||
if (rootElement) {
|
||||
var input = SelectorEngine.findOne(Selector$1.INPUT, this._element);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
if (input && input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector$1.ACTIVE, rootElement);
|
||||
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName$1.ACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1089,7 +1104,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config) {
|
||||
Button.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$1);
|
||||
|
||||
@ -1103,7 +1118,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Button._getInstance = function _getInstance(element) {
|
||||
Button.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$1);
|
||||
};
|
||||
|
||||
@ -1153,6 +1168,7 @@
|
||||
button.classList.remove(ClassName$1.FOCUS);
|
||||
}
|
||||
});
|
||||
var $$2 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1162,14 +1178,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$1 = jQuery.fn[NAME$1];
|
||||
jQuery.fn[NAME$1] = Button._jQueryInterface;
|
||||
jQuery.fn[NAME$1].Constructor = Button;
|
||||
if ($$2) {
|
||||
var JQUERY_NO_CONFLICT$1 = $$2.fn[NAME$1];
|
||||
$$2.fn[NAME$1] = Button.jQueryInterface;
|
||||
$$2.fn[NAME$1].Constructor = Button;
|
||||
|
||||
jQuery.fn[NAME$1].noConflict = function () {
|
||||
jQuery.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button._jQueryInterface;
|
||||
$$2.fn[NAME$1].noConflict = function () {
|
||||
$$2.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Button.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1756,7 +1772,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Carousel._carouselInterface = function _carouselInterface(element, config) {
|
||||
Carousel.carouselInterface = function carouselInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$2);
|
||||
|
||||
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
|
||||
@ -1785,20 +1801,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
Carousel.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Carousel._carouselInterface(this, config);
|
||||
Carousel.carouselInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
|
||||
var selector = getSelectorFromElement(this);
|
||||
|
||||
if (!selector) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
Carousel.dataApiClickHandler = function dataApiClickHandler(event) {
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (!target || !target.classList.contains(ClassName$2.CAROUSEL)) {
|
||||
return;
|
||||
@ -1812,7 +1822,7 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._carouselInterface(target, config);
|
||||
Carousel.carouselInterface(target, config);
|
||||
|
||||
if (slideIndex) {
|
||||
Data.getData(target, DATA_KEY$2).to(slideIndex);
|
||||
@ -1821,7 +1831,7 @@
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
Carousel._getInstance = function _getInstance(element) {
|
||||
Carousel.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$2);
|
||||
};
|
||||
|
||||
@ -1846,14 +1856,15 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
EventHandler.on(document, Event$3.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel.dataApiClickHandler);
|
||||
EventHandler.on(window, Event$3.LOAD_DATA_API, function () {
|
||||
var carousels = makeArray(SelectorEngine.find(Selector$2.DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
Carousel._carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY$2));
|
||||
}
|
||||
});
|
||||
var $$3 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1863,14 +1874,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$2 = jQuery.fn[NAME$2];
|
||||
jQuery.fn[NAME$2] = Carousel._jQueryInterface;
|
||||
jQuery.fn[NAME$2].Constructor = Carousel;
|
||||
if ($$3) {
|
||||
var JQUERY_NO_CONFLICT$2 = $$3.fn[NAME$2];
|
||||
$$3.fn[NAME$2] = Carousel.jQueryInterface;
|
||||
$$3.fn[NAME$2].Constructor = Carousel;
|
||||
|
||||
jQuery.fn[NAME$2].noConflict = function () {
|
||||
jQuery.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel._jQueryInterface;
|
||||
$$3.fn[NAME$2].noConflict = function () {
|
||||
$$3.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return Carousel.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -2016,7 +2027,7 @@
|
||||
if (actives) {
|
||||
actives.forEach(function (elemActive) {
|
||||
if (container !== elemActive) {
|
||||
Collapse._collapseInterface(elemActive, 'hide');
|
||||
Collapse.collapseInterface(elemActive, 'hide');
|
||||
}
|
||||
|
||||
if (!activesData) {
|
||||
@ -2093,15 +2104,11 @@
|
||||
if (triggerArrayLength > 0) {
|
||||
for (var i = 0; i < triggerArrayLength; i++) {
|
||||
var trigger = this._triggerArray[i];
|
||||
var selector = getSelectorFromElement(trigger);
|
||||
var elem = getElementFromSelector(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var elem = SelectorEngine.findOne(selector);
|
||||
|
||||
if (!elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
if (elem && !elem.classList.contains(ClassName$3.SHOW)) {
|
||||
trigger.classList.add(ClassName$3.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2168,8 +2175,7 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
|
||||
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var selected = selector ? SelectorEngine.findOne(selector) : null;
|
||||
var selected = getElementFromSelector(element);
|
||||
|
||||
_this3._addAriaAndCollapsedClass(selected, [element]);
|
||||
});
|
||||
@ -2195,7 +2201,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Collapse._collapseInterface = function _collapseInterface(element, config) {
|
||||
Collapse.collapseInterface = function collapseInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$3);
|
||||
|
||||
var _config = _objectSpread2({}, Default$1, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
|
||||
@ -2217,13 +2223,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
Collapse.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Collapse._collapseInterface(this, config);
|
||||
Collapse.collapseInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Collapse._getInstance = function _getInstance(element) {
|
||||
Collapse.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$3);
|
||||
};
|
||||
|
||||
@ -2273,9 +2279,10 @@
|
||||
config = triggerData;
|
||||
}
|
||||
|
||||
Collapse._collapseInterface(element, config);
|
||||
Collapse.collapseInterface(element, config);
|
||||
});
|
||||
});
|
||||
var $$4 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -2285,14 +2292,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$3 = jQuery.fn[NAME$3];
|
||||
jQuery.fn[NAME$3] = Collapse._jQueryInterface;
|
||||
jQuery.fn[NAME$3].Constructor = Collapse;
|
||||
if ($$4) {
|
||||
var JQUERY_NO_CONFLICT$3 = $$4.fn[NAME$3];
|
||||
$$4.fn[NAME$3] = Collapse.jQueryInterface;
|
||||
$$4.fn[NAME$3].Constructor = Collapse;
|
||||
|
||||
jQuery.fn[NAME$3].noConflict = function () {
|
||||
jQuery.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse._jQueryInterface;
|
||||
$$4.fn[NAME$3].noConflict = function () {
|
||||
$$4.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Collapse.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -2361,14 +2368,16 @@
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
reference: 'toggle',
|
||||
display: 'dynamic'
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType$2 = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
reference: '(string|element)',
|
||||
display: 'string'
|
||||
display: 'string',
|
||||
popperConfig: '(null|object)'
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
@ -2401,16 +2410,23 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var isActive = this._menu.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
Dropdown.clearMenus();
|
||||
|
||||
if (isActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.show();
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -2422,10 +2438,6 @@
|
||||
|
||||
|
||||
if (!this._inNavbar) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
|
||||
}
|
||||
@ -2471,34 +2483,12 @@
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = EventHandler.trigger(parent, Event$5.SHOW, relatedTarget);
|
||||
|
||||
if (showEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName$4.DISABLED) || !this._menu.classList.contains(ClassName$4.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -2508,6 +2498,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName$4.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
@ -2519,7 +2513,7 @@
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
|
||||
this._popper = null;
|
||||
@ -2529,7 +2523,7 @@
|
||||
_proto.update = function update() {
|
||||
this._inNavbar = this._detectNavbar();
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.scheduleUpdate();
|
||||
}
|
||||
} // Private
|
||||
@ -2553,8 +2547,7 @@
|
||||
};
|
||||
|
||||
_proto._getMenuElement = function _getMenuElement() {
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
return SelectorEngine.findOne(Selector$4.MENU, parent);
|
||||
};
|
||||
|
||||
@ -2621,11 +2614,11 @@
|
||||
};
|
||||
}
|
||||
|
||||
return popperConfig;
|
||||
return _objectSpread2({}, popperConfig, {}, this._config.popperConfig);
|
||||
} // Static
|
||||
;
|
||||
|
||||
Dropdown._dropdownInterface = function _dropdownInterface(element, config) {
|
||||
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY$4);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
@ -2643,13 +2636,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
Dropdown.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Dropdown._dropdownInterface(this, config);
|
||||
Dropdown.dropdownInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Dropdown._clearMenus = function _clearMenus(event) {
|
||||
Dropdown.clearMenus = function clearMenus(event) {
|
||||
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
||||
return;
|
||||
}
|
||||
@ -2657,8 +2650,7 @@
|
||||
var toggles = makeArray(SelectorEngine.find(Selector$4.DATA_TOGGLE));
|
||||
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
@ -2697,24 +2689,22 @@
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
|
||||
if (context._popper) {
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
dropdownMenu.classList.remove(ClassName$4.SHOW);
|
||||
parent.classList.remove(ClassName$4.SHOW);
|
||||
EventHandler.trigger(parent, Event$5.HIDDEN, relatedTarget);
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
||||
var parent;
|
||||
var selector = getSelectorFromElement(element);
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
return parent || element.parentNode;
|
||||
Dropdown.getParentFromElement = function getParentFromElement(element) {
|
||||
return getElementFromSelector(element) || element.parentNode;
|
||||
};
|
||||
|
||||
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
||||
Dropdown.dataApiKeydownHandler = function dataApiKeydownHandler(event) {
|
||||
// If not input/textarea:
|
||||
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
||||
// If input/textarea:
|
||||
@ -2733,8 +2723,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this);
|
||||
var isActive = parent.classList.contains(ClassName$4.SHOW);
|
||||
|
||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||
@ -2742,8 +2731,7 @@
|
||||
SelectorEngine.findOne(Selector$4.DATA_TOGGLE, parent).focus();
|
||||
}
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
Dropdown.clearMenus();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2772,7 +2760,7 @@
|
||||
items[index].focus();
|
||||
};
|
||||
|
||||
Dropdown._getInstance = function _getInstance(element) {
|
||||
Dropdown.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$4);
|
||||
};
|
||||
|
||||
@ -2802,19 +2790,19 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.KEYUP_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._dropdownInterface(this, 'toggle');
|
||||
Dropdown.dropdownInterface(this, 'toggle');
|
||||
});
|
||||
EventHandler.on(document, Event$5.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) {
|
||||
return e.stopPropagation();
|
||||
});
|
||||
var $$5 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -2824,14 +2812,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$4 = jQuery.fn[NAME$4];
|
||||
jQuery.fn[NAME$4] = Dropdown._jQueryInterface;
|
||||
jQuery.fn[NAME$4].Constructor = Dropdown;
|
||||
if ($$5) {
|
||||
var JQUERY_NO_CONFLICT$4 = $$5.fn[NAME$4];
|
||||
$$5.fn[NAME$4] = Dropdown.jQueryInterface;
|
||||
$$5.fn[NAME$4].Constructor = Dropdown;
|
||||
|
||||
jQuery.fn[NAME$4].noConflict = function () {
|
||||
jQuery.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown._jQueryInterface;
|
||||
$$5.fn[NAME$4].noConflict = function () {
|
||||
$$5.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Dropdown.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -3053,6 +3041,8 @@
|
||||
|
||||
var transition = this._element.classList.contains(ClassName$5.FADE);
|
||||
|
||||
var modalBody = SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog);
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
// Don't move modal's DOM position
|
||||
document.body.appendChild(this._element);
|
||||
@ -3064,8 +3054,8 @@
|
||||
|
||||
this._element.setAttribute('aria-modal', true);
|
||||
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE)) {
|
||||
SelectorEngine.findOne(Selector$5.MODAL_BODY, this._dialog).scrollTop = 0;
|
||||
if (this._dialog.classList.contains(ClassName$5.SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
}
|
||||
@ -3332,7 +3322,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$5);
|
||||
|
||||
@ -3354,7 +3344,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Modal._getInstance = function _getInstance(element) {
|
||||
Modal.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$5);
|
||||
};
|
||||
|
||||
@ -3382,8 +3372,7 @@
|
||||
EventHandler.on(document, Event$6.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
|
||||
var selector = getSelectorFromElement(this);
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
@ -3411,6 +3400,7 @@
|
||||
|
||||
data.show(this);
|
||||
});
|
||||
var $$6 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -3420,14 +3410,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$5 = jQuery.fn[NAME$5];
|
||||
jQuery.fn[NAME$5] = Modal._jQueryInterface;
|
||||
jQuery.fn[NAME$5].Constructor = Modal;
|
||||
if ($$6) {
|
||||
var JQUERY_NO_CONFLICT$5 = $$6.fn[NAME$5];
|
||||
$$6.fn[NAME$5] = Modal.jQueryInterface;
|
||||
$$6.fn[NAME$5].Constructor = Modal;
|
||||
|
||||
jQuery.fn[NAME$5].noConflict = function () {
|
||||
jQuery.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal._jQueryInterface;
|
||||
$$6.fn[NAME$5].noConflict = function () {
|
||||
$$6.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -3580,7 +3570,8 @@
|
||||
boundary: '(string|element)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object'
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var AttachmentMap$1 = {
|
||||
AUTO: 'auto',
|
||||
@ -3604,7 +3595,8 @@
|
||||
boundary: 'scrollParent',
|
||||
sanitize: true,
|
||||
sanitizeFn: null,
|
||||
whiteList: DefaultWhitelist
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HoverState = {
|
||||
SHOW: 'show',
|
||||
@ -3646,10 +3638,6 @@
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Tooltip(element, config) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)');
|
||||
} // private
|
||||
@ -3733,7 +3721,7 @@
|
||||
this._hoverState = null;
|
||||
this._activeTrigger = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
@ -3784,29 +3772,7 @@
|
||||
}
|
||||
|
||||
EventHandler.trigger(this.element, this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper(this.element, tip, {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this._handlePopperPlacementChange(data);
|
||||
}
|
||||
});
|
||||
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
||||
tip.classList.add(ClassName$6.SHOW); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
@ -3965,18 +3931,47 @@
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||
var _this3 = this;
|
||||
|
||||
var defaultBsConfig = {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
};
|
||||
return _objectSpread2({}, defaultBsConfig, {}, this.config.popperConfig);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
var _this3 = this;
|
||||
var _this4 = this;
|
||||
|
||||
var offset = {};
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -4003,29 +3998,29 @@
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this4 = this;
|
||||
var _this5 = this;
|
||||
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
EventHandler.on(_this4.element, _this4.constructor.Event.CLICK, _this4.config.selector, function (event) {
|
||||
return _this4.toggle(event);
|
||||
EventHandler.on(_this5.element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== Trigger.MANUAL) {
|
||||
var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this4.element, eventIn, _this4.config.selector, function (event) {
|
||||
return _this4._enter(event);
|
||||
var eventIn = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this5.element, eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
});
|
||||
EventHandler.on(_this4.element, eventOut, _this4.config.selector, function (event) {
|
||||
return _this4._leave(event);
|
||||
EventHandler.on(_this5.element, eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this._hideModalHandler = function () {
|
||||
if (_this4.element) {
|
||||
_this4.hide();
|
||||
if (_this5.element) {
|
||||
_this5.hide();
|
||||
}
|
||||
};
|
||||
|
||||
@ -4215,7 +4210,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tooltip.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$6);
|
||||
|
||||
@ -4239,7 +4234,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tooltip._getInstance = function _getInstance(element) {
|
||||
Tooltip.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$6);
|
||||
};
|
||||
|
||||
@ -4282,6 +4277,8 @@
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
|
||||
var $$7 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4291,15 +4288,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$7) {
|
||||
var JQUERY_NO_CONFLICT$6 = $$7.fn[NAME$6];
|
||||
$$7.fn[NAME$6] = Tooltip.jQueryInterface;
|
||||
$$7.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$6 = jQuery.fn[NAME$6];
|
||||
jQuery.fn[NAME$6] = Tooltip._jQueryInterface;
|
||||
jQuery.fn[NAME$6].Constructor = Tooltip;
|
||||
|
||||
jQuery.fn[NAME$6].noConflict = function () {
|
||||
jQuery.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip._jQueryInterface;
|
||||
$$7.fn[NAME$6].noConflict = function () {
|
||||
$$7.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Tooltip.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4370,10 +4366,6 @@
|
||||
return this.getTitle() || this._getContent();
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
||||
|
||||
@ -4388,6 +4380,10 @@
|
||||
this.setElementContent(SelectorEngine.findOne(Selector$7.CONTENT, tip), content);
|
||||
tip.classList.remove(ClassName$7.FADE);
|
||||
tip.classList.remove(ClassName$7.SHOW);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -4409,7 +4405,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
Popover.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$7);
|
||||
|
||||
@ -4434,7 +4430,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Popover._getInstance = function _getInstance(element) {
|
||||
Popover.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$7);
|
||||
};
|
||||
|
||||
@ -4478,6 +4474,8 @@
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
|
||||
var $$8 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4486,15 +4484,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$8) {
|
||||
var JQUERY_NO_CONFLICT$7 = $$8.fn[NAME$7];
|
||||
$$8.fn[NAME$7] = Popover.jQueryInterface;
|
||||
$$8.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$7 = jQuery.fn[NAME$7];
|
||||
jQuery.fn[NAME$7] = Popover._jQueryInterface;
|
||||
jQuery.fn[NAME$7].Constructor = Popover;
|
||||
|
||||
jQuery.fn[NAME$7].noConflict = function () {
|
||||
jQuery.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover._jQueryInterface;
|
||||
$$8.fn[NAME$7].noConflict = function () {
|
||||
$$8.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Popover.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4744,7 +4741,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$8);
|
||||
|
||||
@ -4764,7 +4761,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
ScrollSpy._getInstance = function _getInstance(element) {
|
||||
ScrollSpy.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$8);
|
||||
};
|
||||
|
||||
@ -4794,6 +4791,7 @@
|
||||
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
||||
});
|
||||
});
|
||||
var $$9 = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -4802,14 +4800,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$8 = jQuery.fn[NAME$8];
|
||||
jQuery.fn[NAME$8] = ScrollSpy._jQueryInterface;
|
||||
jQuery.fn[NAME$8].Constructor = ScrollSpy;
|
||||
if ($$9) {
|
||||
var JQUERY_NO_CONFLICT$8 = $$9.fn[NAME$8];
|
||||
$$9.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
||||
$$9.fn[NAME$8].Constructor = ScrollSpy;
|
||||
|
||||
jQuery.fn[NAME$8].noConflict = function () {
|
||||
jQuery.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
$$9.fn[NAME$8].noConflict = function () {
|
||||
$$9.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return ScrollSpy.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -4873,10 +4871,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var target = getElementFromSelector(this._element);
|
||||
var listElement = SelectorEngine.closest(this._element, Selector$9.NAV_LIST_GROUP);
|
||||
var selector = getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;
|
||||
@ -4900,10 +4897,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (selector) {
|
||||
target = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
@ -4993,7 +4986,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tab.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
|
||||
@ -5007,7 +5000,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tab._getInstance = function _getInstance(element) {
|
||||
Tab.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$9);
|
||||
};
|
||||
|
||||
@ -5032,6 +5025,7 @@
|
||||
var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
|
||||
data.show();
|
||||
});
|
||||
var $$a = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -5041,14 +5035,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$9 = jQuery.fn[NAME$9];
|
||||
jQuery.fn[NAME$9] = Tab._jQueryInterface;
|
||||
jQuery.fn[NAME$9].Constructor = Tab;
|
||||
if ($$a) {
|
||||
var JQUERY_NO_CONFLICT$9 = $$a.fn[NAME$9];
|
||||
$$a.fn[NAME$9] = Tab.jQueryInterface;
|
||||
$$a.fn[NAME$9].Constructor = Tab;
|
||||
|
||||
jQuery.fn[NAME$9].noConflict = function () {
|
||||
jQuery.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab._jQueryInterface;
|
||||
$$a.fn[NAME$9].noConflict = function () {
|
||||
$$a.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Tab.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
@ -5214,7 +5208,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
Toast.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY$a);
|
||||
|
||||
@ -5234,7 +5228,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Toast._getInstance = function _getInstance(element) {
|
||||
Toast.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY$a);
|
||||
};
|
||||
|
||||
@ -5257,6 +5251,8 @@
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
|
||||
var $$b = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -5266,15 +5262,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($$b) {
|
||||
var JQUERY_NO_CONFLICT$a = $$b.fn[NAME$a];
|
||||
$$b.fn[NAME$a] = Toast.jQueryInterface;
|
||||
$$b.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT$a = jQuery.fn[NAME$a];
|
||||
jQuery.fn[NAME$a] = Toast._jQueryInterface;
|
||||
jQuery.fn[NAME$a].Constructor = Toast;
|
||||
|
||||
jQuery.fn[NAME$a].noConflict = function () {
|
||||
jQuery.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast._jQueryInterface;
|
||||
$$b.fn[NAME$a].noConflict = function () {
|
||||
$$b.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Toast.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
dist/js/bootstrap.js.map
vendored
2
dist/js/bootstrap.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js.map
vendored
2
dist/js/bootstrap.min.js.map
vendored
File diff suppressed because one or more lines are too long
60
js/dist/alert.js
vendored
60
js/dist/alert.js
vendored
@ -36,23 +36,22 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -102,6 +101,17 @@
|
||||
}, emulatedDuration);
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -171,12 +181,7 @@
|
||||
;
|
||||
|
||||
_proto._getRootElement = function _getRootElement(element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var parent = false;
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
var parent = getElementFromSelector(element);
|
||||
|
||||
if (!parent) {
|
||||
parent = SelectorEngine.closest(element, "." + ClassName.ALERT);
|
||||
@ -216,7 +221,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
Alert.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -230,7 +235,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Alert._handleDismiss = function _handleDismiss(alertInstance) {
|
||||
Alert.handleDismiss = function handleDismiss(alertInstance) {
|
||||
return function (event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
@ -240,7 +245,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
Alert._getInstance = function _getInstance(element) {
|
||||
Alert.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -260,7 +265,8 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DISMISS, Alert.handleDismiss(new Alert()));
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -270,14 +276,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Alert._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Alert;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Alert.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Alert;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/alert.js.map
vendored
2
js/dist/alert.js.map
vendored
File diff suppressed because one or more lines are too long
48
js/dist/button.js
vendored
48
js/dist/button.js
vendored
@ -35,8 +35,17 @@
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
@ -93,16 +102,14 @@
|
||||
if (rootElement) {
|
||||
var input = SelectorEngine.findOne(Selector.INPUT, this._element);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector.ACTIVE, rootElement);
|
||||
if (input && input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(ClassName.ACTIVE)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = SelectorEngine.findOne(Selector.ACTIVE, rootElement);
|
||||
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName.ACTIVE);
|
||||
}
|
||||
if (activeElement) {
|
||||
activeElement.classList.remove(ClassName.ACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,7 +142,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config) {
|
||||
Button.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -149,7 +156,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Button._getInstance = function _getInstance(element) {
|
||||
Button.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -199,6 +206,7 @@
|
||||
button.classList.remove(ClassName.FOCUS);
|
||||
}
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -208,14 +216,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Button._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Button;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Button.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Button;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Button._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Button.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/button.js.map
vendored
2
js/dist/button.js.map
vendored
File diff suppressed because one or more lines are too long
69
js/dist/carousel.js
vendored
69
js/dist/carousel.js
vendored
@ -86,27 +86,26 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -196,6 +195,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -699,7 +709,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Carousel._carouselInterface = function _carouselInterface(element, config) {
|
||||
Carousel.carouselInterface = function carouselInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY);
|
||||
|
||||
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element));
|
||||
@ -728,20 +738,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
Carousel.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Carousel._carouselInterface(this, config);
|
||||
Carousel.carouselInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
|
||||
var selector = getSelectorFromElement(this);
|
||||
|
||||
if (!selector) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
Carousel.dataApiClickHandler = function dataApiClickHandler(event) {
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (!target || !target.classList.contains(ClassName.CAROUSEL)) {
|
||||
return;
|
||||
@ -755,7 +759,7 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._carouselInterface(target, config);
|
||||
Carousel.carouselInterface(target, config);
|
||||
|
||||
if (slideIndex) {
|
||||
Data.getData(target, DATA_KEY).to(slideIndex);
|
||||
@ -764,7 +768,7 @@
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
Carousel._getInstance = function _getInstance(element) {
|
||||
Carousel.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -789,14 +793,15 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel.dataApiClickHandler);
|
||||
EventHandler.on(window, Event.LOAD_DATA_API, function () {
|
||||
var carousels = makeArray(SelectorEngine.find(Selector.DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
Carousel._carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY));
|
||||
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY));
|
||||
}
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -806,14 +811,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Carousel._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Carousel;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Carousel.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Carousel;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Carousel._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Carousel.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/carousel.js.map
vendored
2
js/dist/carousel.js.map
vendored
File diff suppressed because one or more lines are too long
78
js/dist/collapse.js
vendored
78
js/dist/collapse.js
vendored
@ -86,27 +86,36 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var selector = getSelector(element);
|
||||
|
||||
if (selector) {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -184,6 +193,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -326,7 +346,7 @@
|
||||
if (actives) {
|
||||
actives.forEach(function (elemActive) {
|
||||
if (container !== elemActive) {
|
||||
Collapse._collapseInterface(elemActive, 'hide');
|
||||
Collapse.collapseInterface(elemActive, 'hide');
|
||||
}
|
||||
|
||||
if (!activesData) {
|
||||
@ -403,15 +423,11 @@
|
||||
if (triggerArrayLength > 0) {
|
||||
for (var i = 0; i < triggerArrayLength; i++) {
|
||||
var trigger = this._triggerArray[i];
|
||||
var selector = getSelectorFromElement(trigger);
|
||||
var elem = getElementFromSelector(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var elem = SelectorEngine.findOne(selector);
|
||||
|
||||
if (!elem.classList.contains(ClassName.SHOW)) {
|
||||
trigger.classList.add(ClassName.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
if (elem && !elem.classList.contains(ClassName.SHOW)) {
|
||||
trigger.classList.add(ClassName.COLLAPSED);
|
||||
trigger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -478,8 +494,7 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + parent + "\"]";
|
||||
makeArray(SelectorEngine.find(selector, parent)).forEach(function (element) {
|
||||
var selector = getSelectorFromElement(element);
|
||||
var selected = selector ? SelectorEngine.findOne(selector) : null;
|
||||
var selected = getElementFromSelector(element);
|
||||
|
||||
_this3._addAriaAndCollapsedClass(selected, [element]);
|
||||
});
|
||||
@ -505,7 +520,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Collapse._collapseInterface = function _collapseInterface(element, config) {
|
||||
Collapse.collapseInterface = function collapseInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY);
|
||||
|
||||
var _config = _objectSpread2({}, Default, {}, Manipulator.getDataAttributes(element), {}, typeof config === 'object' && config ? config : {});
|
||||
@ -527,13 +542,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
Collapse.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Collapse._collapseInterface(this, config);
|
||||
Collapse.collapseInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Collapse._getInstance = function _getInstance(element) {
|
||||
Collapse.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -583,9 +598,10 @@
|
||||
config = triggerData;
|
||||
}
|
||||
|
||||
Collapse._collapseInterface(element, config);
|
||||
Collapse.collapseInterface(element, config);
|
||||
});
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -595,14 +611,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Collapse._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Collapse;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Collapse.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Collapse;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Collapse._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Collapse.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/collapse.js.map
vendored
2
js/dist/collapse.js.map
vendored
File diff suppressed because one or more lines are too long
20
js/dist/dom/event-handler.js
vendored
20
js/dist/dom/event-handler.js
vendored
@ -15,8 +15,17 @@
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
@ -30,6 +39,7 @@
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var $ = getjQuery();
|
||||
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
||||
var stripNameRegex = /\..*/;
|
||||
var keyEventRegex = /^key/;
|
||||
@ -257,9 +267,9 @@
|
||||
var defaultPrevented = false;
|
||||
var evt = null;
|
||||
|
||||
if (inNamespace && typeof jQuery !== 'undefined') {
|
||||
jQueryEvent = jQuery.Event(event, args);
|
||||
jQuery(element).trigger(jQueryEvent);
|
||||
if (inNamespace && $) {
|
||||
jQueryEvent = $.Event(event, args);
|
||||
$(element).trigger(jQueryEvent);
|
||||
bubbles = !jQueryEvent.isPropagationStopped();
|
||||
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
||||
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
||||
|
2
js/dist/dom/event-handler.js.map
vendored
2
js/dist/dom/event-handler.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/dom/polyfill.js
vendored
2
js/dist/dom/polyfill.js
vendored
@ -16,8 +16,6 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util Api
|
||||
|
2
js/dist/dom/polyfill.js.map
vendored
2
js/dist/dom/polyfill.js.map
vendored
File diff suppressed because one or more lines are too long
2
js/dist/dom/selector-engine.js
vendored
2
js/dist/dom/selector-engine.js
vendored
@ -15,8 +15,6 @@
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var makeArray = function makeArray(nodeList) {
|
||||
if (!nodeList) {
|
||||
|
2
js/dist/dom/selector-engine.js.map
vendored
2
js/dist/dom/selector-engine.js.map
vendored
File diff suppressed because one or more lines are too long
151
js/dist/dropdown.js
vendored
151
js/dist/dropdown.js
vendored
@ -86,26 +86,25 @@
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var isElement = function isElement(obj) {
|
||||
@ -137,6 +136,17 @@
|
||||
return function () {};
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -202,14 +212,16 @@
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
reference: 'toggle',
|
||||
display: 'dynamic'
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
reference: '(string|element)',
|
||||
display: 'string'
|
||||
display: 'string',
|
||||
popperConfig: '(null|object)'
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
@ -242,16 +254,23 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var isActive = this._menu.classList.contains(ClassName.SHOW);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
Dropdown.clearMenus();
|
||||
|
||||
if (isActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.show();
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName.DISABLED) || this._menu.classList.contains(ClassName.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -263,10 +282,6 @@
|
||||
|
||||
|
||||
if (!this._inNavbar) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
|
||||
}
|
||||
@ -312,34 +327,12 @@
|
||||
EventHandler.trigger(parent, Event.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.show = function show() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName.DISABLED) || this._menu.classList.contains(ClassName.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = EventHandler.trigger(parent, Event.SHOW, relatedTarget);
|
||||
|
||||
if (showEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName.SHOW);
|
||||
EventHandler.trigger(parent, Event.SHOWN, relatedTarget);
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || this._element.classList.contains(ClassName.DISABLED) || !this._menu.classList.contains(ClassName.SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
@ -349,6 +342,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
Manipulator.toggleClass(this._menu, ClassName.SHOW);
|
||||
Manipulator.toggleClass(parent, ClassName.SHOW);
|
||||
EventHandler.trigger(parent, Event.HIDDEN, relatedTarget);
|
||||
@ -360,7 +357,7 @@
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
|
||||
this._popper = null;
|
||||
@ -370,7 +367,7 @@
|
||||
_proto.update = function update() {
|
||||
this._inNavbar = this._detectNavbar();
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.scheduleUpdate();
|
||||
}
|
||||
} // Private
|
||||
@ -394,8 +391,7 @@
|
||||
};
|
||||
|
||||
_proto._getMenuElement = function _getMenuElement() {
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this._element);
|
||||
return SelectorEngine.findOne(Selector.MENU, parent);
|
||||
};
|
||||
|
||||
@ -462,11 +458,11 @@
|
||||
};
|
||||
}
|
||||
|
||||
return popperConfig;
|
||||
return _objectSpread2({}, popperConfig, {}, this._config.popperConfig);
|
||||
} // Static
|
||||
;
|
||||
|
||||
Dropdown._dropdownInterface = function _dropdownInterface(element, config) {
|
||||
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
||||
var data = Data.getData(element, DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
@ -484,13 +480,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
Dropdown.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
Dropdown._dropdownInterface(this, config);
|
||||
Dropdown.dropdownInterface(this, config);
|
||||
});
|
||||
};
|
||||
|
||||
Dropdown._clearMenus = function _clearMenus(event) {
|
||||
Dropdown.clearMenus = function clearMenus(event) {
|
||||
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
||||
return;
|
||||
}
|
||||
@ -498,8 +494,7 @@
|
||||
var toggles = makeArray(SelectorEngine.find(Selector.DATA_TOGGLE));
|
||||
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
||||
var context = Data.getData(toggles[i], DATA_KEY);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
@ -538,24 +533,22 @@
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
|
||||
if (context._popper) {
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
dropdownMenu.classList.remove(ClassName.SHOW);
|
||||
parent.classList.remove(ClassName.SHOW);
|
||||
EventHandler.trigger(parent, Event.HIDDEN, relatedTarget);
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
||||
var parent;
|
||||
var selector = getSelectorFromElement(element);
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
return parent || element.parentNode;
|
||||
Dropdown.getParentFromElement = function getParentFromElement(element) {
|
||||
return getElementFromSelector(element) || element.parentNode;
|
||||
};
|
||||
|
||||
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
||||
Dropdown.dataApiKeydownHandler = function dataApiKeydownHandler(event) {
|
||||
// If not input/textarea:
|
||||
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
||||
// If input/textarea:
|
||||
@ -574,8 +567,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var parent = Dropdown.getParentFromElement(this);
|
||||
var isActive = parent.classList.contains(ClassName.SHOW);
|
||||
|
||||
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
||||
@ -583,8 +575,7 @@
|
||||
SelectorEngine.findOne(Selector.DATA_TOGGLE, parent).focus();
|
||||
}
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
Dropdown.clearMenus();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -613,7 +604,7 @@
|
||||
items[index].focus();
|
||||
};
|
||||
|
||||
Dropdown._getInstance = function _getInstance(element) {
|
||||
Dropdown.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -643,19 +634,19 @@
|
||||
*/
|
||||
|
||||
|
||||
EventHandler.on(document, Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event.KEYUP_DATA_API, Dropdown._clearMenus);
|
||||
EventHandler.on(document, Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown.dataApiKeydownHandler);
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event.KEYUP_DATA_API, Dropdown.clearMenus);
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._dropdownInterface(this, 'toggle');
|
||||
Dropdown.dropdownInterface(this, 'toggle');
|
||||
});
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
|
||||
return e.stopPropagation();
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -665,14 +656,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Dropdown._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Dropdown;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Dropdown.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Dropdown;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Dropdown._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Dropdown.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/dropdown.js.map
vendored
2
js/dist/dropdown.js.map
vendored
File diff suppressed because one or more lines are too long
58
js/dist/modal.js
vendored
58
js/dist/modal.js
vendored
@ -86,27 +86,26 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -196,6 +195,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -414,6 +424,8 @@
|
||||
|
||||
var transition = this._element.classList.contains(ClassName.FADE);
|
||||
|
||||
var modalBody = SelectorEngine.findOne(Selector.MODAL_BODY, this._dialog);
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
// Don't move modal's DOM position
|
||||
document.body.appendChild(this._element);
|
||||
@ -425,8 +437,8 @@
|
||||
|
||||
this._element.setAttribute('aria-modal', true);
|
||||
|
||||
if (this._dialog.classList.contains(ClassName.SCROLLABLE)) {
|
||||
SelectorEngine.findOne(Selector.MODAL_BODY, this._dialog).scrollTop = 0;
|
||||
if (this._dialog.classList.contains(ClassName.SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
}
|
||||
@ -693,7 +705,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -715,7 +727,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Modal._getInstance = function _getInstance(element) {
|
||||
Modal.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -743,8 +755,7 @@
|
||||
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
||||
var _this10 = this;
|
||||
|
||||
var selector = getSelectorFromElement(this);
|
||||
var target = SelectorEngine.findOne(selector);
|
||||
var target = getElementFromSelector(this);
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
@ -772,6 +783,7 @@
|
||||
|
||||
data.show(this);
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -781,14 +793,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Modal._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Modal;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Modal.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Modal;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Modal._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Modal.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/modal.js.map
vendored
2
js/dist/modal.js.map
vendored
File diff suppressed because one or more lines are too long
42
js/dist/popover.js
vendored
42
js/dist/popover.js
vendored
@ -90,8 +90,17 @@
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
@ -160,10 +169,6 @@
|
||||
return this.getTitle() || this._getContent();
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
||||
|
||||
@ -178,6 +183,10 @@
|
||||
this.setElementContent(SelectorEngine.findOne(Selector.CONTENT, tip), content);
|
||||
tip.classList.remove(ClassName.FADE);
|
||||
tip.classList.remove(ClassName.SHOW);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -199,7 +208,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
Popover.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -224,7 +233,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Popover._getInstance = function _getInstance(element) {
|
||||
Popover.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -268,6 +277,8 @@
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -276,15 +287,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Popover.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Popover;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Popover._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Popover;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Popover._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Popover.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/popover.js.map
vendored
2
js/dist/popover.js.map
vendored
File diff suppressed because one or more lines are too long
48
js/dist/scrollspy.js
vendored
48
js/dist/scrollspy.js
vendored
@ -86,8 +86,6 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -108,19 +106,25 @@
|
||||
return prefix;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var selector = getSelector(element);
|
||||
|
||||
if (selector) {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var isElement = function isElement(obj) {
|
||||
@ -147,6 +151,17 @@
|
||||
return [].slice.call(nodeList);
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -393,7 +408,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -413,7 +428,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
ScrollSpy._getInstance = function _getInstance(element) {
|
||||
ScrollSpy.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -443,6 +458,7 @@
|
||||
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
||||
});
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -451,14 +467,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = ScrollSpy._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = ScrollSpy;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = ScrollSpy.jQueryInterface;
|
||||
$.fn[NAME].Constructor = ScrollSpy;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return ScrollSpy.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/scrollspy.js.map
vendored
2
js/dist/scrollspy.js.map
vendored
File diff suppressed because one or more lines are too long
56
js/dist/tab.js
vendored
56
js/dist/tab.js
vendored
@ -36,23 +36,22 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var getSelectorFromElement = function getSelectorFromElement(element) {
|
||||
var getSelector = function getSelector(element) {
|
||||
var selector = element.getAttribute('data-target');
|
||||
|
||||
if (!selector || selector === '#') {
|
||||
var hrefAttr = element.getAttribute('href');
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
|
||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||
}
|
||||
|
||||
try {
|
||||
return document.querySelector(selector) ? selector : null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return selector;
|
||||
};
|
||||
|
||||
var getElementFromSelector = function getElementFromSelector(element) {
|
||||
var selector = getSelector(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
var getTransitionDurationFromElement = function getTransitionDurationFromElement(element) {
|
||||
@ -114,6 +113,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -174,10 +184,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var target = getElementFromSelector(this._element);
|
||||
var listElement = SelectorEngine.closest(this._element, Selector.NAV_LIST_GROUP);
|
||||
var selector = getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
|
||||
@ -201,10 +210,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (selector) {
|
||||
target = SelectorEngine.findOne(selector);
|
||||
}
|
||||
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
@ -294,7 +299,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tab.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY) || new Tab(this);
|
||||
|
||||
@ -308,7 +313,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tab._getInstance = function _getInstance(element) {
|
||||
Tab.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -333,6 +338,7 @@
|
||||
var data = Data.getData(this, DATA_KEY) || new Tab(this);
|
||||
data.show();
|
||||
});
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -342,14 +348,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Tab._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Tab;
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Tab.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Tab;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tab._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tab.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/tab.js.map
vendored
2
js/dist/tab.js.map
vendored
File diff suppressed because one or more lines are too long
36
js/dist/toast.js
vendored
36
js/dist/toast.js
vendored
@ -85,9 +85,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -160,6 +158,17 @@
|
||||
return element.offsetHeight;
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
@ -322,7 +331,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
Toast.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -342,7 +351,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Toast._getInstance = function _getInstance(element) {
|
||||
Toast.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -365,6 +374,8 @@
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -374,15 +385,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Toast.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Toast;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Toast._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Toast;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Toast._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Toast.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/toast.js.map
vendored
2
js/dist/toast.js.map
vendored
File diff suppressed because one or more lines are too long
127
js/dist/tooltip.js
vendored
127
js/dist/tooltip.js
vendored
@ -88,9 +88,7 @@
|
||||
*/
|
||||
var MAX_UID = 1000000;
|
||||
var MILLISECONDS_MULTIPLIER = 1000;
|
||||
var TRANSITION_END = 'transitionend';
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||
|
||||
var toType = function toType(obj) {
|
||||
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
|
||||
@ -210,6 +208,17 @@
|
||||
return function () {};
|
||||
};
|
||||
|
||||
var getjQuery = function getjQuery() {
|
||||
var _window = window,
|
||||
jQuery = _window.jQuery;
|
||||
|
||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.3.1): util/sanitizer.js
|
||||
@ -359,7 +368,8 @@
|
||||
boundary: '(string|element)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object'
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var AttachmentMap = {
|
||||
AUTO: 'auto',
|
||||
@ -383,7 +393,8 @@
|
||||
boundary: 'scrollParent',
|
||||
sanitize: true,
|
||||
sanitizeFn: null,
|
||||
whiteList: DefaultWhitelist
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HoverState = {
|
||||
SHOW: 'show',
|
||||
@ -425,10 +436,6 @@
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Tooltip(element, config) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)');
|
||||
} // private
|
||||
@ -512,7 +519,7 @@
|
||||
this._hoverState = null;
|
||||
this._activeTrigger = null;
|
||||
|
||||
if (this._popper !== null) {
|
||||
if (this._popper) {
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
@ -563,29 +570,7 @@
|
||||
}
|
||||
|
||||
EventHandler.trigger(this.element, this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper(this.element, tip, {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this._handlePopperPlacementChange(data);
|
||||
}
|
||||
});
|
||||
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
||||
tip.classList.add(ClassName.SHOW); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
@ -744,18 +729,47 @@
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||
var _this3 = this;
|
||||
|
||||
var defaultBsConfig = {
|
||||
placement: attachment,
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
flip: {
|
||||
behavior: this.config.fallbackPlacement
|
||||
},
|
||||
arrow: {
|
||||
element: "." + this.constructor.NAME + "-arrow"
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: this.config.boundary
|
||||
}
|
||||
},
|
||||
onCreate: function onCreate(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
_this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
},
|
||||
onUpdate: function onUpdate(data) {
|
||||
return _this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
};
|
||||
return _objectSpread2({}, defaultBsConfig, {}, this.config.popperConfig);
|
||||
};
|
||||
|
||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
var _this3 = this;
|
||||
var _this4 = this;
|
||||
|
||||
var offset = {};
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this3.config.offset(data.offsets, _this3.element) || {});
|
||||
data.offsets = _objectSpread2({}, data.offsets, {}, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -782,29 +796,29 @@
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this4 = this;
|
||||
var _this5 = this;
|
||||
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
EventHandler.on(_this4.element, _this4.constructor.Event.CLICK, _this4.config.selector, function (event) {
|
||||
return _this4.toggle(event);
|
||||
EventHandler.on(_this5.element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== Trigger.MANUAL) {
|
||||
var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this4.element, eventIn, _this4.config.selector, function (event) {
|
||||
return _this4._enter(event);
|
||||
var eventIn = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === Trigger.HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
EventHandler.on(_this5.element, eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
});
|
||||
EventHandler.on(_this4.element, eventOut, _this4.config.selector, function (event) {
|
||||
return _this4._leave(event);
|
||||
EventHandler.on(_this5.element, eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this._hideModalHandler = function () {
|
||||
if (_this4.element) {
|
||||
_this4.hide();
|
||||
if (_this5.element) {
|
||||
_this5.hide();
|
||||
}
|
||||
};
|
||||
|
||||
@ -994,7 +1008,7 @@
|
||||
} // Static
|
||||
;
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
Tooltip.jQueryInterface = function jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = Data.getData(this, DATA_KEY);
|
||||
|
||||
@ -1018,7 +1032,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
Tooltip._getInstance = function _getInstance(element) {
|
||||
Tooltip.getInstance = function getInstance(element) {
|
||||
return Data.getData(element, DATA_KEY);
|
||||
};
|
||||
|
||||
@ -1061,6 +1075,8 @@
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
|
||||
var $ = getjQuery();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
@ -1070,15 +1086,14 @@
|
||||
|
||||
/* istanbul ignore if */
|
||||
|
||||
if ($) {
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
$.fn[NAME] = Tooltip.jQueryInterface;
|
||||
$.fn[NAME].Constructor = Tooltip;
|
||||
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
var JQUERY_NO_CONFLICT = jQuery.fn[NAME];
|
||||
jQuery.fn[NAME] = Tooltip._jQueryInterface;
|
||||
jQuery.fn[NAME].Constructor = Tooltip;
|
||||
|
||||
jQuery.fn[NAME].noConflict = function () {
|
||||
jQuery.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tooltip._jQueryInterface;
|
||||
$.fn[NAME].noConflict = function () {
|
||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tooltip.jQueryInterface;
|
||||
};
|
||||
}
|
||||
|
||||
|
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
2
site/static/docs/4.3/assets/css/docs.min.css
vendored
2
site/static/docs/4.3/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
12
site/static/docs/4.3/assets/js/docs.min.js
vendored
12
site/static/docs/4.3/assets/js/docs.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user