mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
parent
2bb42a9176
commit
e50c11b8c6
@ -46,11 +46,11 @@ Our default branch is for development of our upcoming Bootstrap 5 release. Head
|
|||||||
|
|
||||||
Several quick start options are available:
|
Several quick start options are available:
|
||||||
|
|
||||||
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip)
|
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.0.0-beta2.zip)
|
||||||
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
||||||
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
||||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
||||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-beta1`
|
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-beta2`
|
||||||
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
||||||
|
|
||||||
Read the [Getting started page](https://getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
Read the [Getting started page](https://getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
||||||
|
26
config.yml
26
config.yml
@ -47,8 +47,8 @@ params:
|
|||||||
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
||||||
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
||||||
|
|
||||||
current_version: "5.0.0-beta1"
|
current_version: "5.0.0-beta2"
|
||||||
current_ruby_version: "5.0.0.beta1"
|
current_ruby_version: "5.0.0.beta2"
|
||||||
docs_version: "5.0"
|
docs_version: "5.0"
|
||||||
rfs_version: "9.0.3"
|
rfs_version: "9.0.3"
|
||||||
github_org: "https://github.com/twbs"
|
github_org: "https://github.com/twbs"
|
||||||
@ -61,19 +61,19 @@ params:
|
|||||||
icons: "https://icons.getbootstrap.com/"
|
icons: "https://icons.getbootstrap.com/"
|
||||||
|
|
||||||
download:
|
download:
|
||||||
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip"
|
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-beta2.zip"
|
||||||
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-dist.zip"
|
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta2/bootstrap-5.0.0-beta2-dist.zip"
|
||||||
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-examples.zip"
|
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta2/bootstrap-5.0.0-beta2-examples.zip"
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
# See https://www.srihash.org for info on how to generate the hashes
|
# See https://www.srihash.org for info on how to generate the hashes
|
||||||
css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
|
css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
|
||||||
css_hash: "sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
|
css_hash: "sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
|
||||||
css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.rtl.min.css"
|
css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.rtl.min.css"
|
||||||
css_rtl_hash: "sha384-mUkCBeyHPdg0tqB6JDd+65Gpw5h/l8DKcCTV2D2UpaMMFd7Jo8A+mDAosaWgFBPl"
|
css_rtl_hash: "sha384-4dNpRvNX0c/TdYEbYup8qbjvjaMrgUPh+g4I03CnNtANuv+VAvPL6LqdwzZKV38G"
|
||||||
js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js"
|
js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js"
|
||||||
js_hash: "sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj"
|
js_hash: "sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG"
|
||||||
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
|
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
|
||||||
js_bundle_hash: "sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
|
js_bundle_hash: "sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
|
||||||
popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js"
|
popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js"
|
||||||
popper_hash: "sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
|
popper_hash: "sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
|
||||||
|
6
dist/css/bootstrap-grid.css
vendored
6
dist/css/bootstrap-grid.css
vendored
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
.container,
|
.container,
|
||||||
|
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
6
dist/css/bootstrap-grid.min.css
vendored
6
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
6
dist/css/bootstrap-grid.rtl.css
vendored
6
dist/css/bootstrap-grid.rtl.css
vendored
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
.container,
|
.container,
|
||||||
|
2
dist/css/bootstrap-grid.rtl.css.map
vendored
2
dist/css/bootstrap-grid.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
6
dist/css/bootstrap-grid.rtl.min.css
vendored
6
dist/css/bootstrap-grid.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.rtl.min.css.map
vendored
2
dist/css/bootstrap-grid.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
11
dist/css/bootstrap-reboot.css
vendored
11
dist/css/bootstrap-reboot.css
vendored
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/
|
*/
|
||||||
@ -282,9 +282,8 @@ button {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus {
|
button:focus:not(:focus-visible) {
|
||||||
outline: dotted 1px;
|
outline: 0;
|
||||||
outline: -webkit-focus-ring-color auto 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
|
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
8
dist/css/bootstrap-reboot.min.css
vendored
8
dist/css/bootstrap-reboot.min.css
vendored
@ -1,8 +1,8 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation 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:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-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:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):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;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus{outline:dotted 1px;outline:-webkit-focus-ring-color auto 5px}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}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}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation 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:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-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:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):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;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}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}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
File diff suppressed because one or more lines are too long
11
dist/css/bootstrap-reboot.rtl.css
vendored
11
dist/css/bootstrap-reboot.rtl.css
vendored
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/
|
*/
|
||||||
@ -282,9 +282,8 @@ button {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus {
|
button:focus:not(:focus-visible) {
|
||||||
outline: dotted 1px;
|
outline: 0;
|
||||||
outline: -webkit-focus-ring-color auto 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
|
2
dist/css/bootstrap-reboot.rtl.css.map
vendored
2
dist/css/bootstrap-reboot.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
8
dist/css/bootstrap-reboot.rtl.min.css
vendored
8
dist/css/bootstrap-reboot.rtl.min.css
vendored
@ -1,8 +1,8 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation 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:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-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-right: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-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):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;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus{outline:dotted 1px;outline:-webkit-focus-ring-color auto 5px}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}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}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation 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:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-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-right: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-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):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;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}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}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||||
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */
|
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */
|
2
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
2
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
241
dist/css/bootstrap-utilities.css
vendored
241
dist/css/bootstrap-utilities.css
vendored
@ -1,9 +1,196 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Utilities v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Utilities v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
.clearfix::after {
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-primary {
|
||||||
|
color: #0d6efd;
|
||||||
|
}
|
||||||
|
.link-primary:hover, .link-primary:focus {
|
||||||
|
color: #0a58ca;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-secondary {
|
||||||
|
color: #6c757d;
|
||||||
|
}
|
||||||
|
.link-secondary:hover, .link-secondary:focus {
|
||||||
|
color: #565e64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-success {
|
||||||
|
color: #198754;
|
||||||
|
}
|
||||||
|
.link-success:hover, .link-success:focus {
|
||||||
|
color: #146c43;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-info {
|
||||||
|
color: #0dcaf0;
|
||||||
|
}
|
||||||
|
.link-info:hover, .link-info:focus {
|
||||||
|
color: #3dd5f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-warning {
|
||||||
|
color: #ffc107;
|
||||||
|
}
|
||||||
|
.link-warning:hover, .link-warning:focus {
|
||||||
|
color: #ffcd39;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-danger {
|
||||||
|
color: #dc3545;
|
||||||
|
}
|
||||||
|
.link-danger:hover, .link-danger:focus {
|
||||||
|
color: #b02a37;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-light {
|
||||||
|
color: #f8f9fa;
|
||||||
|
}
|
||||||
|
.link-light:hover, .link-light:focus {
|
||||||
|
color: #f9fafb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-dark {
|
||||||
|
color: #212529;
|
||||||
|
}
|
||||||
|
.link-dark:hover, .link-dark:focus {
|
||||||
|
color: #1a1e21;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.ratio::before {
|
||||||
|
display: block;
|
||||||
|
padding-top: var(--bs-aspect-ratio);
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.ratio > * {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-1x1 {
|
||||||
|
--bs-aspect-ratio: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-4x3 {
|
||||||
|
--bs-aspect-ratio: calc(3 / 4 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-16x9 {
|
||||||
|
--bs-aspect-ratio: calc(9 / 16 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-21x9 {
|
||||||
|
--bs-aspect-ratio: calc(9 / 21 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-top {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1030;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-bottom {
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1030;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sticky-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 576px) {
|
||||||
|
.sticky-sm-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.sticky-md-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.sticky-lg-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.sticky-xl-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1400px) {
|
||||||
|
.sticky-xxl-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.visually-hidden,
|
||||||
|
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
||||||
|
position: absolute !important;
|
||||||
|
width: 1px !important;
|
||||||
|
height: 1px !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: -1px !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
clip: rect(0, 0, 0, 0) !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stretched-link::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-truncate {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.align-baseline {
|
.align-baseline {
|
||||||
vertical-align: baseline !important;
|
vertical-align: baseline !important;
|
||||||
}
|
}
|
||||||
@ -4523,54 +4710,6 @@
|
|||||||
.fs-4 {
|
.fs-4 {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-sm-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.d-print-inline {
|
.d-print-inline {
|
||||||
|
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
8
dist/css/bootstrap-utilities.min.css
vendored
8
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
241
dist/css/bootstrap-utilities.rtl.css
vendored
241
dist/css/bootstrap-utilities.rtl.css
vendored
@ -1,9 +1,196 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Utilities v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap Utilities v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
.clearfix::after {
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-primary {
|
||||||
|
color: #0d6efd;
|
||||||
|
}
|
||||||
|
.link-primary:hover, .link-primary:focus {
|
||||||
|
color: #0a58ca;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-secondary {
|
||||||
|
color: #6c757d;
|
||||||
|
}
|
||||||
|
.link-secondary:hover, .link-secondary:focus {
|
||||||
|
color: #565e64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-success {
|
||||||
|
color: #198754;
|
||||||
|
}
|
||||||
|
.link-success:hover, .link-success:focus {
|
||||||
|
color: #146c43;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-info {
|
||||||
|
color: #0dcaf0;
|
||||||
|
}
|
||||||
|
.link-info:hover, .link-info:focus {
|
||||||
|
color: #3dd5f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-warning {
|
||||||
|
color: #ffc107;
|
||||||
|
}
|
||||||
|
.link-warning:hover, .link-warning:focus {
|
||||||
|
color: #ffcd39;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-danger {
|
||||||
|
color: #dc3545;
|
||||||
|
}
|
||||||
|
.link-danger:hover, .link-danger:focus {
|
||||||
|
color: #b02a37;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-light {
|
||||||
|
color: #f8f9fa;
|
||||||
|
}
|
||||||
|
.link-light:hover, .link-light:focus {
|
||||||
|
color: #f9fafb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-dark {
|
||||||
|
color: #212529;
|
||||||
|
}
|
||||||
|
.link-dark:hover, .link-dark:focus {
|
||||||
|
color: #1a1e21;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.ratio::before {
|
||||||
|
display: block;
|
||||||
|
padding-top: var(--bs-aspect-ratio);
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.ratio > * {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-1x1 {
|
||||||
|
--bs-aspect-ratio: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-4x3 {
|
||||||
|
--bs-aspect-ratio: calc(3 / 4 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-16x9 {
|
||||||
|
--bs-aspect-ratio: calc(9 / 16 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ratio-21x9 {
|
||||||
|
--bs-aspect-ratio: calc(9 / 21 * 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-top {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 1030;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-bottom {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 1030;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sticky-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 576px) {
|
||||||
|
.sticky-sm-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.sticky-md-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.sticky-lg-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.sticky-xl-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1400px) {
|
||||||
|
.sticky-xxl-top {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1020;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.visually-hidden,
|
||||||
|
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
||||||
|
position: absolute !important;
|
||||||
|
width: 1px !important;
|
||||||
|
height: 1px !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: -1px !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
clip: rect(0, 0, 0, 0) !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stretched-link::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 1;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-truncate {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.align-baseline {
|
.align-baseline {
|
||||||
vertical-align: baseline !important;
|
vertical-align: baseline !important;
|
||||||
}
|
}
|
||||||
@ -4515,54 +4702,6 @@
|
|||||||
.fs-4 {
|
.fs-4 {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-sm-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.d-print-inline {
|
.d-print-inline {
|
||||||
|
2
dist/css/bootstrap-utilities.rtl.css.map
vendored
2
dist/css/bootstrap-utilities.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
8
dist/css/bootstrap-utilities.rtl.min.css
vendored
8
dist/css/bootstrap-utilities.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
2
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
:root {
|
:root {
|
||||||
@ -309,9 +309,8 @@ button {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus {
|
button:focus:not(:focus-visible) {
|
||||||
outline: dotted 1px;
|
outline: 0;
|
||||||
outline: -webkit-focus-ring-color auto 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
@ -1939,8 +1938,8 @@ progress {
|
|||||||
.table > :not(caption) > * > * {
|
.table > :not(caption) > * > * {
|
||||||
padding: 0.5rem 0.5rem;
|
padding: 0.5rem 0.5rem;
|
||||||
background-color: var(--bs-table-bg);
|
background-color: var(--bs-table-bg);
|
||||||
background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg));
|
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
|
box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
|
||||||
}
|
}
|
||||||
.table > tbody {
|
.table > tbody {
|
||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
@ -2334,12 +2333,11 @@ textarea.form-control-lg {
|
|||||||
.form-select {
|
.form-select {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
|
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
vertical-align: middle;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -2409,12 +2407,6 @@ textarea.form-control-lg {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-print-color-adjust: exact;
|
-webkit-print-color-adjust: exact;
|
||||||
color-adjust: exact;
|
color-adjust: exact;
|
||||||
transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
||||||
}
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
.form-check-input {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.form-check-input[type=checkbox] {
|
.form-check-input[type=checkbox] {
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
@ -2463,6 +2455,12 @@ textarea.form-control-lg {
|
|||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
|
||||||
background-position: left center;
|
background-position: left center;
|
||||||
border-radius: 2em;
|
border-radius: 2em;
|
||||||
|
transition: background-position 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.form-switch .form-check-input {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.form-switch .form-check-input:focus {
|
.form-switch .form-check-input:focus {
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
|
||||||
@ -2498,7 +2496,7 @@ textarea.form-control-lg {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
.form-range:focus {
|
.form-range:focus {
|
||||||
outline: none;
|
outline: 0;
|
||||||
}
|
}
|
||||||
.form-range:focus::-webkit-slider-thumb {
|
.form-range:focus::-webkit-slider-thumb {
|
||||||
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
||||||
@ -2703,7 +2701,7 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.input-group-lg > .form-select,
|
.input-group-lg > .form-select,
|
||||||
.input-group-sm > .form-select {
|
.input-group-sm > .form-select {
|
||||||
padding-right: 1.75rem;
|
padding-right: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
|
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
|
||||||
@ -2771,9 +2769,9 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.was-validated .form-select:valid, .form-select.is-valid {
|
.was-validated .form-select:valid, .form-select.is-valid {
|
||||||
border-color: #198754;
|
border-color: #198754;
|
||||||
padding-right: calc(0.75em + 2.3125rem);
|
padding-right: 4.125rem;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
||||||
background-position: right 0.75rem center, center right 1.75rem;
|
background-position: right 0.75rem center, center right 2.25rem;
|
||||||
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
}
|
}
|
||||||
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
|
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
|
||||||
@ -2847,9 +2845,9 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.was-validated .form-select:invalid, .form-select.is-invalid {
|
.was-validated .form-select:invalid, .form-select.is-invalid {
|
||||||
border-color: #dc3545;
|
border-color: #dc3545;
|
||||||
padding-right: calc(0.75em + 2.3125rem);
|
padding-right: 4.125rem;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%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-image: 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"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%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-position: right 0.75rem center, center right 1.75rem;
|
background-position: right 0.75rem center, center right 2.25rem;
|
||||||
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
}
|
}
|
||||||
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
|
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
|
||||||
@ -3428,12 +3426,11 @@ textarea.form-control-lg {
|
|||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
display: none;
|
display: none;
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
margin: 0.125rem 0 0;
|
margin: 0;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -3443,18 +3440,23 @@ textarea.form-control-lg {
|
|||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.dropdown-menu[style] {
|
.dropdown-menu[data-bs-popper] {
|
||||||
right: auto !important;
|
left: 0;
|
||||||
|
margin-top: 0.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-start {
|
.dropdown-menu-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-end {
|
.dropdown-menu-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3462,12 +3464,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.dropdown-menu-sm-start {
|
.dropdown-menu-sm-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-sm-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-sm-end {
|
.dropdown-menu-sm-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-sm-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3475,12 +3481,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.dropdown-menu-md-start {
|
.dropdown-menu-md-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-md-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-md-end {
|
.dropdown-menu-md-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-md-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3488,12 +3498,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.dropdown-menu-lg-start {
|
.dropdown-menu-lg-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-lg-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-lg-end {
|
.dropdown-menu-lg-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-lg-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3501,12 +3515,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.dropdown-menu-xl-start {
|
.dropdown-menu-xl-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xl-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xl-end {
|
.dropdown-menu-xl-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xl-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3514,12 +3532,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 1400px) {
|
@media (min-width: 1400px) {
|
||||||
.dropdown-menu-xxl-start {
|
.dropdown-menu-xxl-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xxl-start[data-bs-popper] {
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xxl-end {
|
.dropdown-menu-xxl-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xxl-end[data-bs-popper] {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
@ -3527,6 +3549,8 @@ textarea.form-control-lg {
|
|||||||
.dropup .dropdown-menu {
|
.dropup .dropdown-menu {
|
||||||
top: auto;
|
top: auto;
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
|
}
|
||||||
|
.dropup .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0.125rem;
|
margin-bottom: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3548,6 +3572,8 @@ textarea.form-control-lg {
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: auto;
|
right: auto;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
|
}
|
||||||
|
.dropend .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-left: 0.125rem;
|
margin-left: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3572,6 +3598,8 @@ textarea.form-control-lg {
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 100%;
|
right: 100%;
|
||||||
left: auto;
|
left: auto;
|
||||||
|
}
|
||||||
|
.dropstart .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-right: 0.125rem;
|
margin-right: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3622,7 +3650,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.dropdown-item:hover, .dropdown-item:focus {
|
.dropdown-item:hover, .dropdown-item:focus {
|
||||||
color: #1e2125;
|
color: #1e2125;
|
||||||
background-color: #f8f9fa;
|
background-color: #e9ecef;
|
||||||
}
|
}
|
||||||
.dropdown-item.active, .dropdown-item:active {
|
.dropdown-item.active, .dropdown-item:active {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -3630,7 +3658,7 @@ textarea.form-control-lg {
|
|||||||
background-color: #0d6efd;
|
background-color: #0d6efd;
|
||||||
}
|
}
|
||||||
.dropdown-item.disabled, .dropdown-item:disabled {
|
.dropdown-item.disabled, .dropdown-item:disabled {
|
||||||
color: #6c757d;
|
color: #adb5bd;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@ -3809,12 +3837,14 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.nav-tabs .nav-link {
|
.nav-tabs .nav-link {
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
|
background: none;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-top-left-radius: 0.25rem;
|
border-top-left-radius: 0.25rem;
|
||||||
border-top-right-radius: 0.25rem;
|
border-top-right-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
|
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
|
||||||
border-color: #e9ecef #e9ecef #dee2e6;
|
border-color: #e9ecef #e9ecef #dee2e6;
|
||||||
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
.nav-tabs .nav-link.disabled {
|
.nav-tabs .nav-link.disabled {
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
@ -3834,6 +3864,8 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav-pills .nav-link {
|
.nav-pills .nav-link {
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.nav-pills .nav-link.active,
|
.nav-pills .nav-link.active,
|
||||||
@ -3912,8 +3944,9 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-collapse {
|
.navbar-collapse {
|
||||||
|
flex-basis: 100%;
|
||||||
|
flex-grow: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-toggler {
|
.navbar-toggler {
|
||||||
@ -3949,6 +3982,11 @@ textarea.form-control-lg {
|
|||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-nav-scroll {
|
||||||
|
max-height: var(--bs-scroll-height, 75vh);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.navbar-expand-sm {
|
.navbar-expand-sm {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
@ -3964,8 +4002,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-sm .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-sm .navbar-collapse {
|
.navbar-expand-sm .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-sm .navbar-toggler {
|
.navbar-expand-sm .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -3986,8 +4028,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-md .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-md .navbar-collapse {
|
.navbar-expand-md .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-md .navbar-toggler {
|
.navbar-expand-md .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4008,8 +4054,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-lg .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-lg .navbar-collapse {
|
.navbar-expand-lg .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-lg .navbar-toggler {
|
.navbar-expand-lg .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4030,8 +4080,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-xl .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-xl .navbar-collapse {
|
.navbar-expand-xl .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-xl .navbar-toggler {
|
.navbar-expand-xl .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4052,8 +4106,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-xxl .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-xxl .navbar-collapse {
|
.navbar-expand-xxl .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-xxl .navbar-toggler {
|
.navbar-expand-xxl .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4073,8 +4131,12 @@ textarea.form-control-lg {
|
|||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand .navbar-collapse {
|
.navbar-expand .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand .navbar-toggler {
|
.navbar-expand .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4318,6 +4380,7 @@ textarea.form-control-lg {
|
|||||||
padding: 1rem 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
|
text-align: left;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.125);
|
border: 1px solid rgba(0, 0, 0, 0.125);
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
@ -5037,7 +5100,7 @@ textarea.form-control-lg {
|
|||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
.btn-close:focus {
|
.btn-close:focus {
|
||||||
outline: none;
|
outline: 0;
|
||||||
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
@ -5100,6 +5163,7 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.toast-body {
|
.toast-body {
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-open {
|
.modal-open {
|
||||||
@ -5532,7 +5596,6 @@ textarea.form-control-lg {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
height: 0.5rem;
|
height: 0.5rem;
|
||||||
margin: 0 0.3rem;
|
|
||||||
}
|
}
|
||||||
.popover .popover-arrow::before, .popover .popover-arrow::after {
|
.popover .popover-arrow::before, .popover .popover-arrow::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -5542,9 +5605,6 @@ textarea.form-control-lg {
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-top, .bs-popover-auto[data-popper-placement^=top] {
|
|
||||||
margin-bottom: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
||||||
bottom: calc(-0.5rem - 1px);
|
bottom: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
@ -5559,14 +5619,10 @@ textarea.form-control-lg {
|
|||||||
border-top-color: #fff;
|
border-top-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-end, .bs-popover-auto[data-popper-placement^=right] {
|
|
||||||
margin-left: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
||||||
left: calc(-0.5rem - 1px);
|
left: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -5579,9 +5635,6 @@ textarea.form-control-lg {
|
|||||||
border-right-color: #fff;
|
border-right-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-bottom, .bs-popover-auto[data-popper-placement^=bottom] {
|
|
||||||
margin-top: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
||||||
top: calc(-0.5rem - 1px);
|
top: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
@ -5606,14 +5659,10 @@ textarea.form-control-lg {
|
|||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-start, .bs-popover-auto[data-popper-placement^=left] {
|
|
||||||
margin-right: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
||||||
right: calc(-0.5rem - 1px);
|
right: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -5731,8 +5780,11 @@ textarea.form-control-lg {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 15%;
|
width: 15%;
|
||||||
|
padding: 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.15s ease;
|
transition: opacity 0.15s ease;
|
||||||
}
|
}
|
||||||
@ -5793,29 +5845,32 @@ textarea.form-control-lg {
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding-left: 0;
|
padding: 0;
|
||||||
margin-right: 15%;
|
margin-right: 15%;
|
||||||
|
margin-bottom: 1rem;
|
||||||
margin-left: 15%;
|
margin-left: 15%;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
.carousel-indicators li {
|
.carousel-indicators [data-bs-target] {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
|
padding: 0;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
text-indent: -999px;
|
text-indent: -999px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
|
border: 0;
|
||||||
border-top: 10px solid transparent;
|
border-top: 10px solid transparent;
|
||||||
border-bottom: 10px solid transparent;
|
border-bottom: 10px solid transparent;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.6s ease;
|
transition: opacity 0.6s ease;
|
||||||
}
|
}
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.carousel-indicators li {
|
.carousel-indicators [data-bs-target] {
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5838,7 +5893,7 @@ textarea.form-control-lg {
|
|||||||
.carousel-dark .carousel-control-next-icon {
|
.carousel-dark .carousel-control-next-icon {
|
||||||
filter: invert(1) grayscale(100);
|
filter: invert(1) grayscale(100);
|
||||||
}
|
}
|
||||||
.carousel-dark .carousel-indicators li {
|
.carousel-dark .carousel-indicators [data-bs-target] {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
.carousel-dark .carousel-caption {
|
.carousel-dark .carousel-caption {
|
||||||
@ -5985,7 +6040,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.ratio::before {
|
.ratio::before {
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: var(--aspect-ratio);
|
padding-top: var(--bs-aspect-ratio);
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
.ratio > * {
|
.ratio > * {
|
||||||
@ -5997,19 +6052,19 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ratio-1x1 {
|
.ratio-1x1 {
|
||||||
--aspect-ratio: 100%;
|
--bs-aspect-ratio: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-4x3 {
|
.ratio-4x3 {
|
||||||
--aspect-ratio: calc(3 / 4 * 100%);
|
--bs-aspect-ratio: calc(3 / 4 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-16x9 {
|
.ratio-16x9 {
|
||||||
--aspect-ratio: calc(9 / 16 * 100%);
|
--bs-aspect-ratio: calc(9 / 16 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-21x9 {
|
.ratio-21x9 {
|
||||||
--aspect-ratio: calc(9 / 21 * 100%);
|
--bs-aspect-ratio: calc(9 / 21 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed-top {
|
.fixed-top {
|
||||||
@ -6076,7 +6131,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.visually-hidden,
|
.visually-hidden,
|
||||||
.visually-hidden-focusable:not(:focus) {
|
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
width: 1px !important;
|
width: 1px !important;
|
||||||
height: 1px !important;
|
height: 1px !important;
|
||||||
@ -10623,54 +10678,6 @@ textarea.form-control-lg {
|
|||||||
.fs-4 {
|
.fs-4 {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-sm-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.d-print-inline {
|
.d-print-inline {
|
||||||
|
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
8
dist/css/bootstrap.min.css
vendored
8
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
211
dist/css/bootstrap.rtl.css
vendored
211
dist/css/bootstrap.rtl.css
vendored
@ -1,8 +1,8 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
:root {
|
:root {
|
||||||
@ -309,9 +309,8 @@ button {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus {
|
button:focus:not(:focus-visible) {
|
||||||
outline: dotted 1px;
|
outline: 0;
|
||||||
outline: -webkit-focus-ring-color auto 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
@ -1937,8 +1936,8 @@ progress {
|
|||||||
.table > :not(caption) > * > * {
|
.table > :not(caption) > * > * {
|
||||||
padding: 0.5rem 0.5rem;
|
padding: 0.5rem 0.5rem;
|
||||||
background-color: var(--bs-table-bg);
|
background-color: var(--bs-table-bg);
|
||||||
background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg));
|
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
|
box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
|
||||||
}
|
}
|
||||||
.table > tbody {
|
.table > tbody {
|
||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
@ -2332,12 +2331,11 @@ textarea.form-control-lg {
|
|||||||
.form-select {
|
.form-select {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.375rem 0.75rem 0.375rem 1.75rem;
|
padding: 0.375rem 0.75rem 0.375rem 2.25rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
vertical-align: middle;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -2407,12 +2405,6 @@ textarea.form-control-lg {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-print-color-adjust: exact;
|
-webkit-print-color-adjust: exact;
|
||||||
color-adjust: exact;
|
color-adjust: exact;
|
||||||
transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
||||||
}
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
.form-check-input {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.form-check-input[type=checkbox] {
|
.form-check-input[type=checkbox] {
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
@ -2461,6 +2453,12 @@ textarea.form-control-lg {
|
|||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
|
||||||
background-position: right center;
|
background-position: right center;
|
||||||
border-radius: 2em;
|
border-radius: 2em;
|
||||||
|
transition: background-position 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.form-switch .form-check-input {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.form-switch .form-check-input:focus {
|
.form-switch .form-check-input:focus {
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
|
||||||
@ -2496,7 +2494,7 @@ textarea.form-control-lg {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
.form-range:focus {
|
.form-range:focus {
|
||||||
outline: none;
|
outline: 0;
|
||||||
}
|
}
|
||||||
.form-range:focus::-webkit-slider-thumb {
|
.form-range:focus::-webkit-slider-thumb {
|
||||||
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
||||||
@ -2701,7 +2699,7 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.input-group-lg > .form-select,
|
.input-group-lg > .form-select,
|
||||||
.input-group-sm > .form-select {
|
.input-group-sm > .form-select {
|
||||||
padding-left: 1.75rem;
|
padding-left: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
|
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
|
||||||
@ -2769,9 +2767,9 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.was-validated .form-select:valid, .form-select.is-valid {
|
.was-validated .form-select:valid, .form-select.is-valid {
|
||||||
border-color: #198754;
|
border-color: #198754;
|
||||||
padding-left: calc(0.75em + 2.3125rem);
|
padding-left: 4.125rem;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
||||||
background-position: left 0.75rem center, center left 1.75rem;
|
background-position: left 0.75rem center, center left 2.25rem;
|
||||||
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
}
|
}
|
||||||
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
|
.was-validated .form-select:valid:focus, .form-select.is-valid:focus {
|
||||||
@ -2845,9 +2843,9 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.was-validated .form-select:invalid, .form-select.is-invalid {
|
.was-validated .form-select:invalid, .form-select.is-invalid {
|
||||||
border-color: #dc3545;
|
border-color: #dc3545;
|
||||||
padding-left: calc(0.75em + 2.3125rem);
|
padding-left: 4.125rem;
|
||||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%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-image: 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"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%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-position: left 0.75rem center, center left 1.75rem;
|
background-position: left 0.75rem center, center left 2.25rem;
|
||||||
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
}
|
}
|
||||||
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
|
.was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
|
||||||
@ -3426,12 +3424,11 @@ textarea.form-control-lg {
|
|||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
right: 0;
|
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
display: none;
|
display: none;
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
margin: 0.125rem 0 0;
|
margin: 0;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -3441,18 +3438,23 @@ textarea.form-control-lg {
|
|||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.dropdown-menu[style] {
|
.dropdown-menu[data-bs-popper] {
|
||||||
left: auto !important;
|
right: 0;
|
||||||
|
margin-top: 0.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-start {
|
.dropdown-menu-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-end {
|
.dropdown-menu-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3460,12 +3462,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.dropdown-menu-sm-start {
|
.dropdown-menu-sm-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-sm-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-sm-end {
|
.dropdown-menu-sm-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-sm-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3473,12 +3479,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.dropdown-menu-md-start {
|
.dropdown-menu-md-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-md-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-md-end {
|
.dropdown-menu-md-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-md-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3486,12 +3496,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.dropdown-menu-lg-start {
|
.dropdown-menu-lg-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-lg-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-lg-end {
|
.dropdown-menu-lg-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-lg-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3499,12 +3513,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.dropdown-menu-xl-start {
|
.dropdown-menu-xl-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xl-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xl-end {
|
.dropdown-menu-xl-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xl-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3512,12 +3530,16 @@ textarea.form-control-lg {
|
|||||||
@media (min-width: 1400px) {
|
@media (min-width: 1400px) {
|
||||||
.dropdown-menu-xxl-start {
|
.dropdown-menu-xxl-start {
|
||||||
--bs-position: start;
|
--bs-position: start;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xxl-start[data-bs-popper] {
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xxl-end {
|
.dropdown-menu-xxl-end {
|
||||||
--bs-position: end;
|
--bs-position: end;
|
||||||
|
}
|
||||||
|
.dropdown-menu-xxl-end[data-bs-popper] {
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
@ -3525,6 +3547,8 @@ textarea.form-control-lg {
|
|||||||
.dropup .dropdown-menu {
|
.dropup .dropdown-menu {
|
||||||
top: auto;
|
top: auto;
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
|
}
|
||||||
|
.dropup .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0.125rem;
|
margin-bottom: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3546,6 +3570,8 @@ textarea.form-control-lg {
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 100%;
|
right: 100%;
|
||||||
|
}
|
||||||
|
.dropend .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-right: 0.125rem;
|
margin-right: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3570,6 +3596,8 @@ textarea.form-control-lg {
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
right: auto;
|
right: auto;
|
||||||
|
}
|
||||||
|
.dropstart .dropdown-menu[data-bs-popper] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-left: 0.125rem;
|
margin-left: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -3620,7 +3648,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.dropdown-item:hover, .dropdown-item:focus {
|
.dropdown-item:hover, .dropdown-item:focus {
|
||||||
color: #1e2125;
|
color: #1e2125;
|
||||||
background-color: #f8f9fa;
|
background-color: #e9ecef;
|
||||||
}
|
}
|
||||||
.dropdown-item.active, .dropdown-item:active {
|
.dropdown-item.active, .dropdown-item:active {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -3628,7 +3656,7 @@ textarea.form-control-lg {
|
|||||||
background-color: #0d6efd;
|
background-color: #0d6efd;
|
||||||
}
|
}
|
||||||
.dropdown-item.disabled, .dropdown-item:disabled {
|
.dropdown-item.disabled, .dropdown-item:disabled {
|
||||||
color: #6c757d;
|
color: #adb5bd;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@ -3807,12 +3835,14 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.nav-tabs .nav-link {
|
.nav-tabs .nav-link {
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
|
background: none;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-top-right-radius: 0.25rem;
|
border-top-right-radius: 0.25rem;
|
||||||
border-top-left-radius: 0.25rem;
|
border-top-left-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
|
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
|
||||||
border-color: #e9ecef #e9ecef #dee2e6;
|
border-color: #e9ecef #e9ecef #dee2e6;
|
||||||
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
.nav-tabs .nav-link.disabled {
|
.nav-tabs .nav-link.disabled {
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
@ -3832,6 +3862,8 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav-pills .nav-link {
|
.nav-pills .nav-link {
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.nav-pills .nav-link.active,
|
.nav-pills .nav-link.active,
|
||||||
@ -3910,8 +3942,9 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-collapse {
|
.navbar-collapse {
|
||||||
|
flex-basis: 100%;
|
||||||
|
flex-grow: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-toggler {
|
.navbar-toggler {
|
||||||
@ -3947,6 +3980,11 @@ textarea.form-control-lg {
|
|||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-nav-scroll {
|
||||||
|
max-height: var(--bs-scroll-height, 75vh);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.navbar-expand-sm {
|
.navbar-expand-sm {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
@ -3962,8 +4000,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-sm .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-sm .navbar-collapse {
|
.navbar-expand-sm .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-sm .navbar-toggler {
|
.navbar-expand-sm .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -3984,8 +4026,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-md .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-md .navbar-collapse {
|
.navbar-expand-md .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-md .navbar-toggler {
|
.navbar-expand-md .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4006,8 +4052,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-lg .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-lg .navbar-collapse {
|
.navbar-expand-lg .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-lg .navbar-toggler {
|
.navbar-expand-lg .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4028,8 +4078,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-xl .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-xl .navbar-collapse {
|
.navbar-expand-xl .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-xl .navbar-toggler {
|
.navbar-expand-xl .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4050,8 +4104,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand-xxl .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand-xxl .navbar-collapse {
|
.navbar-expand-xxl .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand-xxl .navbar-toggler {
|
.navbar-expand-xxl .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4071,8 +4129,12 @@ textarea.form-control-lg {
|
|||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
.navbar-expand .navbar-nav-scroll {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.navbar-expand .navbar-collapse {
|
.navbar-expand .navbar-collapse {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
flex-basis: auto;
|
||||||
}
|
}
|
||||||
.navbar-expand .navbar-toggler {
|
.navbar-expand .navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
@ -4316,6 +4378,7 @@ textarea.form-control-lg {
|
|||||||
padding: 1rem 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
|
text-align: right;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.125);
|
border: 1px solid rgba(0, 0, 0, 0.125);
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
@ -5035,7 +5098,7 @@ textarea.form-control-lg {
|
|||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
.btn-close:focus {
|
.btn-close:focus {
|
||||||
outline: none;
|
outline: 0;
|
||||||
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
@ -5098,6 +5161,7 @@ textarea.form-control-lg {
|
|||||||
|
|
||||||
.toast-body {
|
.toast-body {
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-open {
|
.modal-open {
|
||||||
@ -5530,7 +5594,6 @@ textarea.form-control-lg {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
height: 0.5rem;
|
height: 0.5rem;
|
||||||
margin: 0 0.3rem;
|
|
||||||
}
|
}
|
||||||
.popover .popover-arrow::before, .popover .popover-arrow::after {
|
.popover .popover-arrow::before, .popover .popover-arrow::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -5540,9 +5603,6 @@ textarea.form-control-lg {
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-top, .bs-popover-auto[data-popper-placement^=top] {
|
|
||||||
margin-bottom: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
||||||
bottom: calc(-0.5rem - 1px);
|
bottom: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
@ -5557,14 +5617,10 @@ textarea.form-control-lg {
|
|||||||
border-top-color: #fff;
|
border-top-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-end, .bs-popover-auto[data-popper-placement^=right] {
|
|
||||||
margin-right: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
||||||
right: calc(-0.5rem - 1px);
|
right: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -5577,9 +5633,6 @@ textarea.form-control-lg {
|
|||||||
border-left-color: #fff;
|
border-left-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-bottom, .bs-popover-auto[data-popper-placement^=bottom] {
|
|
||||||
margin-top: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
||||||
top: calc(-0.5rem - 1px);
|
top: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
@ -5604,14 +5657,10 @@ textarea.form-control-lg {
|
|||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-start, .bs-popover-auto[data-popper-placement^=left] {
|
|
||||||
margin-left: 0.5rem !important;
|
|
||||||
}
|
|
||||||
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
||||||
left: calc(-0.5rem - 1px);
|
left: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -5725,8 +5774,11 @@ textarea.form-control-lg {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 15%;
|
width: 15%;
|
||||||
|
padding: 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.15s ease;
|
transition: opacity 0.15s ease;
|
||||||
}
|
}
|
||||||
@ -5778,29 +5830,32 @@ textarea.form-control-lg {
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding-right: 0;
|
padding: 0;
|
||||||
margin-left: 15%;
|
margin-left: 15%;
|
||||||
|
margin-bottom: 1rem;
|
||||||
margin-right: 15%;
|
margin-right: 15%;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
.carousel-indicators li {
|
.carousel-indicators [data-bs-target] {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
|
padding: 0;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
text-indent: -999px;
|
text-indent: -999px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
|
border: 0;
|
||||||
border-top: 10px solid transparent;
|
border-top: 10px solid transparent;
|
||||||
border-bottom: 10px solid transparent;
|
border-bottom: 10px solid transparent;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.6s ease;
|
transition: opacity 0.6s ease;
|
||||||
}
|
}
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.carousel-indicators li {
|
.carousel-indicators [data-bs-target] {
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5823,7 +5878,7 @@ textarea.form-control-lg {
|
|||||||
.carousel-dark .carousel-control-prev-icon {
|
.carousel-dark .carousel-control-prev-icon {
|
||||||
filter: invert(1) grayscale(100);
|
filter: invert(1) grayscale(100);
|
||||||
}
|
}
|
||||||
.carousel-dark .carousel-indicators li {
|
.carousel-dark .carousel-indicators [data-bs-target] {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
.carousel-dark .carousel-caption {
|
.carousel-dark .carousel-caption {
|
||||||
@ -5970,7 +6025,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
.ratio::before {
|
.ratio::before {
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: var(--aspect-ratio);
|
padding-top: var(--bs-aspect-ratio);
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
.ratio > * {
|
.ratio > * {
|
||||||
@ -5982,19 +6037,19 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ratio-1x1 {
|
.ratio-1x1 {
|
||||||
--aspect-ratio: 100%;
|
--bs-aspect-ratio: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-4x3 {
|
.ratio-4x3 {
|
||||||
--aspect-ratio: calc(3 / 4 * 100%);
|
--bs-aspect-ratio: calc(3 / 4 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-16x9 {
|
.ratio-16x9 {
|
||||||
--aspect-ratio: calc(9 / 16 * 100%);
|
--bs-aspect-ratio: calc(9 / 16 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratio-21x9 {
|
.ratio-21x9 {
|
||||||
--aspect-ratio: calc(9 / 21 * 100%);
|
--bs-aspect-ratio: calc(9 / 21 * 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed-top {
|
.fixed-top {
|
||||||
@ -6061,7 +6116,7 @@ textarea.form-control-lg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.visually-hidden,
|
.visually-hidden,
|
||||||
.visually-hidden-focusable:not(:focus) {
|
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
width: 1px !important;
|
width: 1px !important;
|
||||||
height: 1px !important;
|
height: 1px !important;
|
||||||
@ -10600,54 +10655,6 @@ textarea.form-control-lg {
|
|||||||
.fs-4 {
|
.fs-4 {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-sm-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-sm-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-md-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-1 {
|
|
||||||
font-size: 2.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-2 {
|
|
||||||
font-size: 2rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-3 {
|
|
||||||
font-size: 1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fs-lg-4 {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.d-print-inline {
|
.d-print-inline {
|
||||||
|
2
dist/css/bootstrap.rtl.css.map
vendored
2
dist/css/bootstrap.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
8
dist/css/bootstrap.rtl.min.css
vendored
8
dist/css/bootstrap.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.rtl.min.css.map
vendored
2
dist/css/bootstrap.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
869
dist/js/bootstrap.bundle.js
vendored
869
dist/js/bootstrap.bundle.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -46,12 +46,22 @@
|
|||||||
function _inheritsLoose(subClass, superClass) {
|
function _inheritsLoose(subClass, superClass) {
|
||||||
subClass.prototype = Object.create(superClass.prototype);
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
subClass.prototype.constructor = subClass;
|
subClass.prototype.constructor = subClass;
|
||||||
subClass.__proto__ = superClass;
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -85,7 +95,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +186,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -234,9 +257,27 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
|
if ($) {
|
||||||
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
|
$.fn[name].Constructor = plugin;
|
||||||
|
|
||||||
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
|
return plugin.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/data.js
|
* Bootstrap (v5.0.0-beta2): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -303,7 +344,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta2): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -363,6 +404,7 @@
|
|||||||
event.delegateTarget = target;
|
event.delegateTarget = target;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
|
// eslint-disable-next-line unicorn/consistent-destructuring
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -582,7 +624,7 @@
|
|||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
var VERSION = '5.0.0-beta2';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
@ -631,9 +673,9 @@
|
|||||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
var CLASSNAME_ALERT = 'alert';
|
var CLASS_NAME_ALERT = 'alert';
|
||||||
var CLASSNAME_FADE = 'fade';
|
var CLASS_NAME_FADE = 'fade';
|
||||||
var CLASSNAME_SHOW = 'show';
|
var CLASS_NAME_SHOW = 'show';
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -664,7 +706,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
_proto._getRootElement = function _getRootElement(element) {
|
_proto._getRootElement = function _getRootElement(element) {
|
||||||
return getElementFromSelector(element) || element.closest("." + CLASSNAME_ALERT);
|
return getElementFromSelector(element) || element.closest("." + CLASS_NAME_ALERT);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||||
@ -674,16 +716,16 @@
|
|||||||
_proto._removeElement = function _removeElement(element) {
|
_proto._removeElement = function _removeElement(element) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
element.classList.remove(CLASSNAME_SHOW);
|
element.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
if (!element.classList.contains(CLASSNAME_FADE)) {
|
if (!element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
this._destroyElement(element);
|
this._destroyElement(element);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(element);
|
var transitionDuration = getTransitionDurationFromElement(element);
|
||||||
EventHandler.one(element, TRANSITION_END, function () {
|
EventHandler.one(element, 'transitionend', function () {
|
||||||
return _this._destroyElement(element);
|
return _this._destroyElement(element);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(element, transitionDuration);
|
emulateTransitionEnd(element, transitionDuration);
|
||||||
@ -724,8 +766,8 @@
|
|||||||
|
|
||||||
_createClass(Alert, null, [{
|
_createClass(Alert, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -747,21 +789,7 @@
|
|||||||
* add .Alert to jQuery only if jQuery is present
|
* add .Alert to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Alert);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Alert.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Alert;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Alert.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -814,8 +842,8 @@
|
|||||||
|
|
||||||
_createClass(Button, null, [{
|
_createClass(Button, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$1;
|
return DATA_KEY$1;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -847,25 +875,11 @@
|
|||||||
* add .Button to jQuery only if jQuery is present
|
* add .Button to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$1, Button);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$1];
|
|
||||||
$.fn[NAME$1] = Button.jQueryInterface;
|
|
||||||
$.fn[NAME$1].Constructor = Button;
|
|
||||||
|
|
||||||
$.fn[NAME$1].noConflict = function () {
|
|
||||||
$.fn[NAME$1] = JQUERY_NO_CONFLICT;
|
|
||||||
return Button.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta2): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -937,7 +951,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta2): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -949,9 +963,6 @@
|
|||||||
*/
|
*/
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches(element, selector) {
|
|
||||||
return element.matches(selector);
|
|
||||||
},
|
|
||||||
find: function find(selector, element) {
|
find: function find(selector, element) {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -971,9 +982,7 @@
|
|||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
||||||
var children = (_ref2 = []).concat.apply(_ref2, element.children);
|
return (_ref2 = []).concat.apply(_ref2, element.children).filter(function (child) {
|
||||||
|
|
||||||
return children.filter(function (child) {
|
|
||||||
return child.matches(selector);
|
return child.matches(selector);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -982,7 +991,7 @@
|
|||||||
var ancestor = element.parentNode;
|
var ancestor = element.parentNode;
|
||||||
|
|
||||||
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
||||||
if (this.matches(ancestor, selector)) {
|
if (ancestor.matches(selector)) {
|
||||||
parents.push(ancestor);
|
parents.push(ancestor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1008,7 +1017,7 @@
|
|||||||
var next = element.nextElementSibling;
|
var next = element.nextElementSibling;
|
||||||
|
|
||||||
while (next) {
|
while (next) {
|
||||||
if (this.matches(next, selector)) {
|
if (next.matches(selector)) {
|
||||||
return [next];
|
return [next];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1081,12 +1090,11 @@
|
|||||||
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
||||||
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
||||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||||
|
var SELECTOR_INDICATOR = '[data-bs-target]';
|
||||||
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
||||||
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
||||||
var PointerType = {
|
var POINTER_TYPE_TOUCH = 'touch';
|
||||||
TOUCH: 'touch',
|
var POINTER_TYPE_PEN = 'pen';
|
||||||
PEN: 'pen'
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -1233,13 +1241,21 @@
|
|||||||
this.touchDeltaX = 0; // swipe left
|
this.touchDeltaX = 0; // swipe left
|
||||||
|
|
||||||
if (direction > 0) {
|
if (direction > 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.next();
|
||||||
|
} else {
|
||||||
this.prev();
|
this.prev();
|
||||||
|
}
|
||||||
} // swipe right
|
} // swipe right
|
||||||
|
|
||||||
|
|
||||||
if (direction < 0) {
|
if (direction < 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
this.next();
|
this.next();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
@ -1269,7 +1285,7 @@
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var start = function start(event) {
|
var start = function start(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchStartX = event.clientX;
|
_this4.touchStartX = event.clientX;
|
||||||
} else if (!_this4._pointerEvent) {
|
} else if (!_this4._pointerEvent) {
|
||||||
_this4.touchStartX = event.touches[0].clientX;
|
_this4.touchStartX = event.touches[0].clientX;
|
||||||
@ -1286,7 +1302,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var end = function end(event) {
|
var end = function end(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1345,16 +1361,22 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event.key) {
|
if (event.key === ARROW_LEFT_KEY) {
|
||||||
case ARROW_LEFT_KEY:
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.prev();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ARROW_RIGHT_KEY:
|
if (isRTL) {
|
||||||
event.preventDefault();
|
|
||||||
this.next();
|
this.next();
|
||||||
break;
|
} else {
|
||||||
|
this.prev();
|
||||||
|
}
|
||||||
|
} else if (event.key === ARROW_RIGHT_KEY) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1396,16 +1418,17 @@
|
|||||||
|
|
||||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||||
if (this._indicatorsElement) {
|
if (this._indicatorsElement) {
|
||||||
var indicators = SelectorEngine.find(SELECTOR_ACTIVE, this._indicatorsElement);
|
var activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);
|
||||||
|
activeIndicator.classList.remove(CLASS_NAME_ACTIVE$1);
|
||||||
|
activeIndicator.removeAttribute('aria-current');
|
||||||
|
var indicators = SelectorEngine.find(SELECTOR_INDICATOR, this._indicatorsElement);
|
||||||
|
|
||||||
for (var i = 0; i < indicators.length; i++) {
|
for (var i = 0; i < indicators.length; i++) {
|
||||||
indicators[i].classList.remove(CLASS_NAME_ACTIVE$1);
|
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
|
||||||
|
indicators[i].classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
|
indicators[i].setAttribute('aria-current', 'true');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
|
||||||
|
|
||||||
if (nextIndicator) {
|
|
||||||
nextIndicator.classList.add(CLASS_NAME_ACTIVE$1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1439,19 +1462,9 @@
|
|||||||
var nextElementIndex = this._getItemIndex(nextElement);
|
var nextElementIndex = this._getItemIndex(nextElement);
|
||||||
|
|
||||||
var isCycling = Boolean(this._interval);
|
var isCycling = Boolean(this._interval);
|
||||||
var directionalClassName;
|
var directionalClassName = direction === DIRECTION_NEXT ? CLASS_NAME_START : CLASS_NAME_END;
|
||||||
var orderClassName;
|
var orderClassName = direction === DIRECTION_NEXT ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
|
||||||
var eventDirectionName;
|
var eventDirectionName = direction === DIRECTION_NEXT ? DIRECTION_LEFT : DIRECTION_RIGHT;
|
||||||
|
|
||||||
if (direction === DIRECTION_NEXT) {
|
|
||||||
directionalClassName = CLASS_NAME_START;
|
|
||||||
orderClassName = CLASS_NAME_NEXT;
|
|
||||||
eventDirectionName = DIRECTION_LEFT;
|
|
||||||
} else {
|
|
||||||
directionalClassName = CLASS_NAME_END;
|
|
||||||
orderClassName = CLASS_NAME_PREV;
|
|
||||||
eventDirectionName = DIRECTION_RIGHT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
||||||
this._isSliding = false;
|
this._isSliding = false;
|
||||||
@ -1485,7 +1498,7 @@
|
|||||||
activeElement.classList.add(directionalClassName);
|
activeElement.classList.add(directionalClassName);
|
||||||
nextElement.classList.add(directionalClassName);
|
nextElement.classList.add(directionalClassName);
|
||||||
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
||||||
EventHandler.one(activeElement, TRANSITION_END, function () {
|
EventHandler.one(activeElement, 'transitionend', function () {
|
||||||
nextElement.classList.remove(directionalClassName, orderClassName);
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
||||||
@ -1613,21 +1626,7 @@
|
|||||||
* add .Carousel to jQuery only if jQuery is present
|
* add .Carousel to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$2, Carousel);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$2];
|
|
||||||
$.fn[NAME$2] = Carousel.jQueryInterface;
|
|
||||||
$.fn[NAME$2].Constructor = Carousel;
|
|
||||||
|
|
||||||
$.fn[NAME$2].noConflict = function () {
|
|
||||||
$.fn[NAME$2] = JQUERY_NO_CONFLICT;
|
|
||||||
return Carousel.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -1652,7 +1651,7 @@
|
|||||||
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
||||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
||||||
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
||||||
var CLASS_NAME_SHOW = 'show';
|
var CLASS_NAME_SHOW$1 = 'show';
|
||||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||||
@ -1710,7 +1709,7 @@
|
|||||||
|
|
||||||
// Public
|
// Public
|
||||||
_proto.toggle = function toggle() {
|
_proto.toggle = function toggle() {
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
this.show();
|
this.show();
|
||||||
@ -1720,7 +1719,7 @@
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1792,7 +1791,7 @@
|
|||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
_this2._element.style[dimension] = '';
|
_this2._element.style[dimension] = '';
|
||||||
|
|
||||||
@ -1804,7 +1803,7 @@
|
|||||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||||
var scrollSize = "scroll" + capitalizedDimension;
|
var scrollSize = "scroll" + capitalizedDimension;
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||||
};
|
};
|
||||||
@ -1812,7 +1811,7 @@
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1829,7 +1828,7 @@
|
|||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
var triggerArrayLength = this._triggerArray.length;
|
var triggerArrayLength = this._triggerArray.length;
|
||||||
|
|
||||||
@ -1838,7 +1837,7 @@
|
|||||||
var trigger = this._triggerArray[i];
|
var trigger = this._triggerArray[i];
|
||||||
var elem = getElementFromSelector(trigger);
|
var elem = getElementFromSelector(trigger);
|
||||||
|
|
||||||
if (elem && !elem.classList.contains(CLASS_NAME_SHOW)) {
|
if (elem && !elem.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
||||||
trigger.setAttribute('aria-expanded', false);
|
trigger.setAttribute('aria-expanded', false);
|
||||||
}
|
}
|
||||||
@ -1859,7 +1858,7 @@
|
|||||||
|
|
||||||
this._element.style[dimension] = '';
|
this._element.style[dimension] = '';
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1917,7 +1916,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isOpen = element.classList.contains(CLASS_NAME_SHOW);
|
var isOpen = element.classList.contains(CLASS_NAME_SHOW$1);
|
||||||
triggerArray.forEach(function (elem) {
|
triggerArray.forEach(function (elem) {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
||||||
@ -1981,7 +1980,7 @@
|
|||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||||
if (event.target.tagName === 'A') {
|
if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2014,21 +2013,7 @@
|
|||||||
* add .Collapse to jQuery only if jQuery is present
|
* add .Collapse to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$3, Collapse);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$3];
|
|
||||||
$.fn[NAME$3] = Collapse.jQueryInterface;
|
|
||||||
$.fn[NAME$3].Constructor = Collapse;
|
|
||||||
|
|
||||||
$.fn[NAME$3].noConflict = function () {
|
|
||||||
$.fn[NAME$3] = JQUERY_NO_CONFLICT;
|
|
||||||
return Collapse.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var top = 'top';
|
var top = 'top';
|
||||||
var bottom = 'bottom';
|
var bottom = 'bottom';
|
||||||
@ -2115,7 +2100,7 @@
|
|||||||
return;
|
return;
|
||||||
} // Flow doesn't support to extend this property, but it's the most
|
} // Flow doesn't support to extend this property, but it's the most
|
||||||
// effective way to apply styles to an HTMLElement
|
// effective way to apply styles to an HTMLElement
|
||||||
// $FlowFixMe
|
// $FlowFixMe[cannot-write]
|
||||||
|
|
||||||
|
|
||||||
Object.assign(element.style, style);
|
Object.assign(element.style, style);
|
||||||
@ -2164,10 +2149,7 @@
|
|||||||
|
|
||||||
if (!isHTMLElement(element) || !getNodeName(element)) {
|
if (!isHTMLElement(element) || !getNodeName(element)) {
|
||||||
return;
|
return;
|
||||||
} // Flow doesn't support to extend this property, but it's the most
|
}
|
||||||
// effective way to apply styles to an HTMLElement
|
|
||||||
// $FlowFixMe
|
|
||||||
|
|
||||||
|
|
||||||
Object.assign(element.style, style);
|
Object.assign(element.style, style);
|
||||||
Object.keys(attributes).forEach(function (attribute) {
|
Object.keys(attributes).forEach(function (attribute) {
|
||||||
@ -2214,7 +2196,7 @@
|
|||||||
do {
|
do {
|
||||||
if (next && parent.isSameNode(next)) {
|
if (next && parent.isSameNode(next)) {
|
||||||
return true;
|
return true;
|
||||||
} // $FlowFixMe: need a better way to handle this...
|
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
||||||
|
|
||||||
|
|
||||||
next = next.parentNode || next.host;
|
next = next.parentNode || next.host;
|
||||||
@ -2234,8 +2216,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getDocumentElement(element) {
|
function getDocumentElement(element) {
|
||||||
// $FlowFixMe: assume body is always available
|
// $FlowFixMe[incompatible-return]: assume body is always available
|
||||||
return ((isElement$1(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
return ((isElement$1(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
||||||
|
element.document) || window.document).documentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getParentNode(element) {
|
function getParentNode(element) {
|
||||||
@ -2243,12 +2226,14 @@
|
|||||||
return element;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
||||||
|
// $FlowFixMe[incompatible-return]
|
||||||
|
// $FlowFixMe[prop-missing]
|
||||||
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
||||||
element.parentNode || // DOM Element detected
|
element.parentNode || // DOM Element detected
|
||||||
// $FlowFixMe: need a better way to handle this...
|
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
||||||
element.host || // ShadowRoot detected
|
element.host || // ShadowRoot detected
|
||||||
// $FlowFixMe: HTMLElement is a Node
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
||||||
getDocumentElement(element) // fallback
|
getDocumentElement(element) // fallback
|
||||||
|
|
||||||
);
|
);
|
||||||
@ -2426,7 +2411,7 @@
|
|||||||
// Zooming can change the DPR, but it seems to report a value that will
|
// Zooming can change the DPR, but it seems to report a value that will
|
||||||
// cleanly divide the values into the appropriate subpixels.
|
// cleanly divide the values into the appropriate subpixels.
|
||||||
|
|
||||||
function roundOffsets(_ref) {
|
function roundOffsetsByDPR(_ref) {
|
||||||
var x = _ref.x,
|
var x = _ref.x,
|
||||||
y = _ref.y;
|
y = _ref.y;
|
||||||
var win = window;
|
var win = window;
|
||||||
@ -2446,11 +2431,14 @@
|
|||||||
offsets = _ref2.offsets,
|
offsets = _ref2.offsets,
|
||||||
position = _ref2.position,
|
position = _ref2.position,
|
||||||
gpuAcceleration = _ref2.gpuAcceleration,
|
gpuAcceleration = _ref2.gpuAcceleration,
|
||||||
adaptive = _ref2.adaptive;
|
adaptive = _ref2.adaptive,
|
||||||
|
roundOffsets = _ref2.roundOffsets;
|
||||||
|
|
||||||
var _roundOffsets = roundOffsets(offsets),
|
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
||||||
x = _roundOffsets.x,
|
_ref3$x = _ref3.x,
|
||||||
y = _roundOffsets.y;
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
||||||
|
_ref3$y = _ref3.y,
|
||||||
|
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
||||||
|
|
||||||
var hasX = offsets.hasOwnProperty('x');
|
var hasX = offsets.hasOwnProperty('x');
|
||||||
var hasY = offsets.hasOwnProperty('y');
|
var hasY = offsets.hasOwnProperty('y');
|
||||||
@ -2463,7 +2451,7 @@
|
|||||||
|
|
||||||
if (offsetParent === getWindow(popper)) {
|
if (offsetParent === getWindow(popper)) {
|
||||||
offsetParent = getDocumentElement(popper);
|
offsetParent = getDocumentElement(popper);
|
||||||
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
||||||
|
|
||||||
/*:: offsetParent = (offsetParent: Element); */
|
/*:: offsetParent = (offsetParent: Element); */
|
||||||
|
|
||||||
@ -2494,13 +2482,15 @@
|
|||||||
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function computeStyles(_ref3) {
|
function computeStyles(_ref4) {
|
||||||
var state = _ref3.state,
|
var state = _ref4.state,
|
||||||
options = _ref3.options;
|
options = _ref4.options;
|
||||||
var _options$gpuAccelerat = options.gpuAcceleration,
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
||||||
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
||||||
_options$adaptive = options.adaptive,
|
_options$adaptive = options.adaptive,
|
||||||
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
||||||
|
_options$roundOffsets = options.roundOffsets,
|
||||||
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
||||||
|
|
||||||
var commonStyles = {
|
var commonStyles = {
|
||||||
placement: getBasePlacement(state.placement),
|
placement: getBasePlacement(state.placement),
|
||||||
@ -2513,7 +2503,8 @@
|
|||||||
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
||||||
offsets: state.modifiersData.popperOffsets,
|
offsets: state.modifiersData.popperOffsets,
|
||||||
position: state.options.strategy,
|
position: state.options.strategy,
|
||||||
adaptive: adaptive
|
adaptive: adaptive,
|
||||||
|
roundOffsets: roundOffsets
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2521,7 +2512,8 @@
|
|||||||
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
||||||
offsets: state.modifiersData.arrow,
|
offsets: state.modifiersData.arrow,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
adaptive: false
|
adaptive: false,
|
||||||
|
roundOffsets: roundOffsets
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2717,7 +2709,7 @@
|
|||||||
|
|
||||||
function getScrollParent(node) {
|
function getScrollParent(node) {
|
||||||
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
||||||
// $FlowFixMe: assume body is always available
|
// $FlowFixMe[incompatible-return]: assume body is always available
|
||||||
return node.ownerDocument.body;
|
return node.ownerDocument.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2745,7 +2737,7 @@
|
|||||||
var win = getWindow(scrollParent);
|
var win = getWindow(scrollParent);
|
||||||
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
||||||
var updatedList = list.concat(target);
|
var updatedList = list.concat(target);
|
||||||
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
||||||
updatedList.concat(listScrollParents(getParentNode(target)));
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2785,7 +2777,7 @@
|
|||||||
|
|
||||||
if (!isElement$1(clipperElement)) {
|
if (!isElement$1(clipperElement)) {
|
||||||
return [];
|
return [];
|
||||||
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
||||||
|
|
||||||
|
|
||||||
return clippingParents.filter(function (clippingParent) {
|
return clippingParents.filter(function (clippingParent) {
|
||||||
@ -2871,11 +2863,11 @@
|
|||||||
|
|
||||||
switch (variation) {
|
switch (variation) {
|
||||||
case start:
|
case start:
|
||||||
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case end:
|
case end:
|
||||||
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2957,15 +2949,14 @@
|
|||||||
var variation = getVariation(placement);
|
var variation = getVariation(placement);
|
||||||
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
||||||
return getVariation(placement) === variation;
|
return getVariation(placement) === variation;
|
||||||
}) : basePlacements; // $FlowFixMe
|
}) : basePlacements;
|
||||||
|
|
||||||
var allowedPlacements = placements$1.filter(function (placement) {
|
var allowedPlacements = placements$1.filter(function (placement) {
|
||||||
return allowedAutoPlacements.indexOf(placement) >= 0;
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (allowedPlacements.length === 0) {
|
if (allowedPlacements.length === 0) {
|
||||||
allowedPlacements = placements$1;
|
allowedPlacements = placements$1;
|
||||||
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
||||||
|
|
||||||
|
|
||||||
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
||||||
@ -3772,7 +3763,7 @@
|
|||||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var CLASS_NAME_DISABLED = 'disabled';
|
var CLASS_NAME_DISABLED = 'disabled';
|
||||||
var CLASS_NAME_SHOW$1 = 'show';
|
var CLASS_NAME_SHOW$2 = 'show';
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
@ -3789,7 +3780,7 @@
|
|||||||
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
||||||
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default$2 = {
|
var Default$2 = {
|
||||||
offset: 0,
|
offset: [0, 2],
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
@ -3797,12 +3788,12 @@
|
|||||||
popperConfig: null
|
popperConfig: null
|
||||||
};
|
};
|
||||||
var DefaultType$2 = {
|
var DefaultType$2 = {
|
||||||
offset: '(number|string|function)',
|
offset: '(array|string|function)',
|
||||||
flip: 'boolean',
|
flip: 'boolean',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
reference: '(string|element)',
|
reference: '(string|element|object)',
|
||||||
display: 'string',
|
display: 'string',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -3836,7 +3827,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
|
|
||||||
@ -3848,7 +3839,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3863,7 +3854,9 @@
|
|||||||
} // Totally disable Popper for Dropdowns in Navbar
|
} // Totally disable Popper for Dropdowns in Navbar
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'none');
|
||||||
|
} else {
|
||||||
if (typeof Popper === 'undefined') {
|
if (typeof Popper === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
@ -3878,9 +3871,20 @@
|
|||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
|
} else if (typeof this._config.reference === 'object') {
|
||||||
|
referenceElement = this._config.reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = createPopper$2(referenceElement, this._menu, this._getPopperConfig());
|
var popperConfig = this._getPopperConfig();
|
||||||
|
|
||||||
|
var isDisplayStatic = popperConfig.modifiers.find(function (modifier) {
|
||||||
|
return modifier.name === 'applyStyles' && modifier.enabled === false;
|
||||||
|
});
|
||||||
|
this._popper = createPopper$2(referenceElement, this._menu, popperConfig);
|
||||||
|
|
||||||
|
if (isDisplayStatic) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'static');
|
||||||
|
}
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
@ -3899,23 +3903,22 @@
|
|||||||
|
|
||||||
this._element.setAttribute('aria-expanded', true);
|
this._element.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_SHOWN$1, relatedTarget);
|
EventHandler.trigger(this._element, EVENT_SHOWN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this._element);
|
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
@ -3925,11 +3928,12 @@
|
|||||||
this._popper.destroy();
|
this._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(this._menu, 'popper');
|
||||||
|
EventHandler.trigger(this._element, EVENT_HIDDEN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
@ -3968,6 +3972,12 @@
|
|||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
||||||
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||||
|
|
||||||
|
if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
|
||||||
|
// Popper virtual elements require a getBoundingClientRect method
|
||||||
|
throw new TypeError(NAME$4.toUpperCase() + ": Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.");
|
||||||
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -4000,26 +4010,51 @@
|
|||||||
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._getOffset = function _getOffset() {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
var offset = this._config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this3._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var defaultBsPopperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: [{
|
modifiers: [{
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
altBoundary: this._config.flip,
|
altBoundary: this._config.flip,
|
||||||
rootBoundary: this._config.boundary
|
boundary: this._config.boundary
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers = [{
|
defaultBsPopperConfig.modifiers = [{
|
||||||
name: 'applyStyles',
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -4055,7 +4090,6 @@
|
|||||||
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
||||||
|
|
||||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
|
||||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: toggles[i]
|
relatedTarget: toggles[i]
|
||||||
@ -4071,7 +4105,7 @@
|
|||||||
|
|
||||||
var dropdownMenu = context._menu;
|
var dropdownMenu = context._menu;
|
||||||
|
|
||||||
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$1)) {
|
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4079,7 +4113,7 @@
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(toggles[i], EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
continue;
|
continue;
|
||||||
@ -4101,9 +4135,10 @@
|
|||||||
context._popper.destroy();
|
context._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
dropdownMenu.classList.remove(CLASS_NAME_SHOW$1);
|
dropdownMenu.classList.remove(CLASS_NAME_SHOW$2);
|
||||||
toggles[i].classList.remove(CLASS_NAME_SHOW$1);
|
toggles[i].classList.remove(CLASS_NAME_SHOW$2);
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(dropdownMenu, 'popper');
|
||||||
|
EventHandler.trigger(toggles[i], EVENT_HIDDEN$1, relatedTarget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -4131,7 +4166,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this);
|
var parent = Dropdown.getParentFromElement(this);
|
||||||
var isActive = this.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
if (event.key === ESCAPE_KEY) {
|
if (event.key === ESCAPE_KEY) {
|
||||||
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
@ -4140,6 +4175,14 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isActive && (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY)) {
|
||||||
|
var _button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
|
|
||||||
|
_button.click();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isActive || event.key === SPACE_KEY) {
|
if (!isActive || event.key === SPACE_KEY) {
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
return;
|
return;
|
||||||
@ -4212,21 +4255,7 @@
|
|||||||
* add .Dropdown to jQuery only if jQuery is present
|
* add .Dropdown to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$4, Dropdown);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$4];
|
|
||||||
$.fn[NAME$4] = Dropdown.jQueryInterface;
|
|
||||||
$.fn[NAME$4].Constructor = Dropdown;
|
|
||||||
|
|
||||||
$.fn[NAME$4].noConflict = function () {
|
|
||||||
$.fn[NAME$4] = JQUERY_NO_CONFLICT;
|
|
||||||
return Dropdown.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4264,8 +4293,8 @@
|
|||||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||||
var CLASS_NAME_OPEN = 'modal-open';
|
var CLASS_NAME_OPEN = 'modal-open';
|
||||||
var CLASS_NAME_FADE = 'fade';
|
var CLASS_NAME_FADE$1 = 'fade';
|
||||||
var CLASS_NAME_SHOW$2 = 'show';
|
var CLASS_NAME_SHOW$3 = 'show';
|
||||||
var CLASS_NAME_STATIC = 'modal-static';
|
var CLASS_NAME_STATIC = 'modal-static';
|
||||||
var SELECTOR_DIALOG = '.modal-dialog';
|
var SELECTOR_DIALOG = '.modal-dialog';
|
||||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||||
@ -4312,7 +4341,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4371,7 +4400,7 @@
|
|||||||
|
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
@ -4383,14 +4412,14 @@
|
|||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN);
|
EventHandler.off(document, EVENT_FOCUSIN);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$2);
|
this._element.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
||||||
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, function (event) {
|
EventHandler.one(this._element, 'transitionend', function (event) {
|
||||||
return _this3._hideModal(event);
|
return _this3._hideModal(event);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
@ -4437,7 +4466,7 @@
|
|||||||
_proto._showElement = function _showElement(relatedTarget) {
|
_proto._showElement = function _showElement(relatedTarget) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
||||||
|
|
||||||
@ -4464,7 +4493,7 @@
|
|||||||
reflow(this._element);
|
reflow(this._element);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_SHOW$2);
|
this._element.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (this._config.focus) {
|
if (this._config.focus) {
|
||||||
this._enforceFocus();
|
this._enforceFocus();
|
||||||
@ -4483,7 +4512,7 @@
|
|||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.one(this._dialog, TRANSITION_END, transitionComplete);
|
EventHandler.one(this._dialog, 'transitionend', transitionComplete);
|
||||||
emulateTransitionEnd(this._dialog, transitionDuration);
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
transitionComplete();
|
transitionComplete();
|
||||||
@ -4565,7 +4594,7 @@
|
|||||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||||
var _this9 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
var animate = this._element.classList.contains(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
||||||
|
|
||||||
if (this._isShown && this._config.backdrop) {
|
if (this._isShown && this._config.backdrop) {
|
||||||
this._backdrop = document.createElement('div');
|
this._backdrop = document.createElement('div');
|
||||||
@ -4597,7 +4626,7 @@
|
|||||||
reflow(this._backdrop);
|
reflow(this._backdrop);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._backdrop.classList.add(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (!animate) {
|
if (!animate) {
|
||||||
callback();
|
callback();
|
||||||
@ -4605,10 +4634,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callback);
|
EventHandler.one(this._backdrop, 'transitionend', callback);
|
||||||
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
||||||
} else if (!this._isShown && this._backdrop) {
|
} else if (!this._isShown && this._backdrop) {
|
||||||
this._backdrop.classList.remove(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
var callbackRemove = function callbackRemove() {
|
var callbackRemove = function callbackRemove() {
|
||||||
_this9._removeBackdrop();
|
_this9._removeBackdrop();
|
||||||
@ -4616,10 +4645,10 @@
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
|
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callbackRemove);
|
EventHandler.one(this._backdrop, 'transitionend', callbackRemove);
|
||||||
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
||||||
} else {
|
} else {
|
||||||
callbackRemove();
|
callbackRemove();
|
||||||
@ -4647,12 +4676,12 @@
|
|||||||
this._element.classList.add(CLASS_NAME_STATIC);
|
this._element.classList.add(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.off(this._element, TRANSITION_END);
|
EventHandler.off(this._element, 'transitionend');
|
||||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
EventHandler.one(this._element, 'transitionend', function () {
|
||||||
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
if (!isModalOverflowing) {
|
if (!isModalOverflowing) {
|
||||||
EventHandler.one(_this10._element, TRANSITION_END, function () {
|
EventHandler.one(_this10._element, 'transitionend', function () {
|
||||||
_this10._element.style.overflowY = '';
|
_this10._element.style.overflowY = '';
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
||||||
@ -4693,60 +4722,50 @@
|
|||||||
var _this11 = this;
|
var _this11 = this;
|
||||||
|
|
||||||
if (this._isBodyOverflowing) {
|
if (this._isBodyOverflowing) {
|
||||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
this._setElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight', function (calculatedValue) {
|
||||||
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
// Adjust fixed content padding
|
});
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var actualPadding = element.style.paddingRight;
|
|
||||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
|
||||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
|
||||||
element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust sticky content margin
|
|
||||||
|
|
||||||
SelectorEngine.find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._setElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight', function (calculatedValue) {
|
||||||
var actualMargin = element.style.marginRight;
|
return calculatedValue - _this11._scrollbarWidth;
|
||||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
});
|
||||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
|
||||||
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust body padding
|
|
||||||
|
|
||||||
var actualPadding = document.body.style.paddingRight;
|
this._setElementAttributes('body', 'paddingRight', function (calculatedValue) {
|
||||||
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
Manipulator.setDataAttribute(document.body, 'padding-right', actualPadding);
|
});
|
||||||
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.add(CLASS_NAME_OPEN);
|
document.body.classList.add(CLASS_NAME_OPEN);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._setElementAttributes = function _setElementAttributes(selector, styleProp, callback) {
|
||||||
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
|
var actualValue = element.style[styleProp];
|
||||||
|
var calculatedValue = window.getComputedStyle(element)[styleProp];
|
||||||
|
Manipulator.setDataAttribute(element, styleProp, actualValue);
|
||||||
|
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
_proto._resetScrollbar = function _resetScrollbar() {
|
_proto._resetScrollbar = function _resetScrollbar() {
|
||||||
// Restore fixed content padding
|
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight');
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var padding = Manipulator.getDataAttribute(element, 'padding-right');
|
|
||||||
|
|
||||||
if (typeof padding !== 'undefined') {
|
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight');
|
||||||
Manipulator.removeDataAttribute(element, 'padding-right');
|
|
||||||
element.style.paddingRight = padding;
|
|
||||||
}
|
|
||||||
}); // Restore sticky content and navbar-toggler margin
|
|
||||||
|
|
||||||
SelectorEngine.find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._resetElementAttributes('body', 'paddingRight');
|
||||||
var margin = Manipulator.getDataAttribute(element, 'margin-right');
|
};
|
||||||
|
|
||||||
if (typeof margin !== 'undefined') {
|
_proto._resetElementAttributes = function _resetElementAttributes(selector, styleProp) {
|
||||||
Manipulator.removeDataAttribute(element, 'margin-right');
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
element.style.marginRight = margin;
|
var value = Manipulator.getDataAttribute(element, styleProp);
|
||||||
}
|
|
||||||
}); // Restore body padding
|
|
||||||
|
|
||||||
var padding = Manipulator.getDataAttribute(document.body, 'padding-right');
|
if (typeof value === 'undefined' && element === document.body) {
|
||||||
|
element.style[styleProp] = '';
|
||||||
if (typeof padding === 'undefined') {
|
|
||||||
document.body.style.paddingRight = '';
|
|
||||||
} else {
|
} else {
|
||||||
Manipulator.removeDataAttribute(document.body, 'padding-right');
|
Manipulator.removeDataAttribute(element, styleProp);
|
||||||
document.body.style.paddingRight = padding;
|
element.style[styleProp] = value;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
||||||
@ -4830,7 +4849,7 @@
|
|||||||
data = new Modal(target, config);
|
data = new Modal(target, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.show(this);
|
data.toggle(this);
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4839,25 +4858,11 @@
|
|||||||
* add .Modal to jQuery only if jQuery is present
|
* add .Modal to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$5, Modal);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$5];
|
|
||||||
$.fn[NAME$5] = Modal.jQueryInterface;
|
|
||||||
$.fn[NAME$5].Constructor = Modal;
|
|
||||||
|
|
||||||
$.fn[NAME$5].noConflict = function () {
|
|
||||||
$.fn[NAME$5] = JQUERY_NO_CONFLICT;
|
|
||||||
return Modal.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta2): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -4883,7 +4888,7 @@
|
|||||||
|
|
||||||
if (allowedAttributeList.includes(attrName)) {
|
if (allowedAttributeList.includes(attrName)) {
|
||||||
if (uriAttrs.has(attrName)) {
|
if (uriAttrs.has(attrName)) {
|
||||||
return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
|
return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -4894,7 +4899,7 @@
|
|||||||
}); // Check if a regular expression validates the attribute.
|
}); // Check if a regular expression validates the attribute.
|
||||||
|
|
||||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||||
if (attrName.match(regExp[i])) {
|
if (regExp[i].test(attrName)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5003,14 +5008,15 @@
|
|||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
|
offset: '(array|string|function)',
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacements: '(null|array)',
|
fallbackPlacements: 'array',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
sanitizeFn: '(null|function)',
|
sanitizeFn: '(null|function)',
|
||||||
allowList: 'object',
|
allowList: 'object',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
var AttachmentMap = {
|
var AttachmentMap = {
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
@ -5028,8 +5034,9 @@
|
|||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
|
offset: [0, 0],
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacements: null,
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
@ -5049,9 +5056,9 @@
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$1 = 'fade';
|
var CLASS_NAME_FADE$2 = 'fade';
|
||||||
var CLASS_NAME_MODAL = 'modal';
|
var CLASS_NAME_MODAL = 'modal';
|
||||||
var CLASS_NAME_SHOW$3 = 'show';
|
var CLASS_NAME_SHOW$4 = 'show';
|
||||||
var HOVER_STATE_SHOW = 'show';
|
var HOVER_STATE_SHOW = 'show';
|
||||||
var HOVER_STATE_OUT = 'out';
|
var HOVER_STATE_OUT = 'out';
|
||||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||||
@ -5113,13 +5120,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
var context = this._initializeOnDelegatedTarget(event);
|
||||||
var context = Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
context._activeTrigger.click = !context._activeTrigger.click;
|
context._activeTrigger.click = !context._activeTrigger.click;
|
||||||
|
|
||||||
@ -5129,7 +5130,7 @@
|
|||||||
context._leave(null, context);
|
context._leave(null, context);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)) {
|
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$4)) {
|
||||||
this._leave(null, this);
|
this._leave(null, this);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -5144,7 +5145,7 @@
|
|||||||
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip && this.tip.parentNode) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5171,7 +5172,10 @@
|
|||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (!(this.isWithContent() && this._isEnabled)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
||||||
var shadowRoot = findShadowRoot(this._element);
|
var shadowRoot = findShadowRoot(this._element);
|
||||||
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
||||||
@ -5189,7 +5193,7 @@
|
|||||||
this.setContent();
|
this.setContent();
|
||||||
|
|
||||||
if (this.config.animation) {
|
if (this.config.animation) {
|
||||||
tip.classList.add(CLASS_NAME_FADE$1);
|
tip.classList.add(CLASS_NAME_FADE$2);
|
||||||
}
|
}
|
||||||
|
|
||||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
||||||
@ -5208,7 +5212,7 @@
|
|||||||
|
|
||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = createPopper$2(this._element, tip, this._getPopperConfig(attachment));
|
this._popper = createPopper$2(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW$3);
|
tip.classList.add(CLASS_NAME_SHOW$4);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
if (customClass) {
|
if (customClass) {
|
||||||
@ -5239,14 +5243,13 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
||||||
EventHandler.one(this.tip, TRANSITION_END, complete);
|
EventHandler.one(this.tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this.tip, transitionDuration);
|
emulateTransitionEnd(this.tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
@ -5282,7 +5285,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra
|
tip.classList.remove(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
||||||
// empty mouseover listeners we added for iOS support
|
// empty mouseover listeners we added for iOS support
|
||||||
|
|
||||||
if ('ontouchstart' in document.documentElement) {
|
if ('ontouchstart' in document.documentElement) {
|
||||||
@ -5297,9 +5300,9 @@
|
|||||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(tip);
|
var transitionDuration = getTransitionDurationFromElement(tip);
|
||||||
EventHandler.one(tip, TRANSITION_END, complete);
|
EventHandler.one(tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(tip, transitionDuration);
|
emulateTransitionEnd(tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -5333,7 +5336,7 @@
|
|||||||
_proto.setContent = function setContent() {
|
_proto.setContent = function setContent() {
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
||||||
tip.classList.remove(CLASS_NAME_FADE$1, CLASS_NAME_SHOW$3);
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.setElementContent = function setElementContent(element, content) {
|
_proto.setElementContent = function setElementContent(element, content) {
|
||||||
@ -5393,26 +5396,58 @@
|
|||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._initializeOnDelegatedTarget = function _initializeOnDelegatedTarget(event, context) {
|
||||||
var _this4 = this;
|
var dataKey = this.constructor.DATA_KEY;
|
||||||
|
context = context || Data.getData(event.delegateTarget, dataKey);
|
||||||
|
|
||||||
var flipModifier = {
|
if (!context) {
|
||||||
name: 'flip',
|
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
||||||
options: {
|
Data.setData(event.delegateTarget, dataKey, context);
|
||||||
altBoundary: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return context;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.config.fallbackPlacements) {
|
_proto._getOffset = function _getOffset() {
|
||||||
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var offset = this.config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this4._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
|
var defaultBsPopperConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: [flipModifier, {
|
modifiers: [{
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true,
|
||||||
|
fallbackPlacements: this.config.fallbackPlacements
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
|
}
|
||||||
|
}, {
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
rootBoundary: this.config.boundary
|
boundary: this.config.boundary
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
name: 'arrow',
|
name: 'arrow',
|
||||||
@ -5424,16 +5459,16 @@
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
phase: 'afterWrite',
|
phase: 'afterWrite',
|
||||||
fn: function fn(data) {
|
fn: function fn(data) {
|
||||||
return _this4._handlePopperPlacementChange(data);
|
return _this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
onFirstUpdate: function onFirstUpdate(data) {
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
if (data.options.placement !== data.placement) {
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this.config.popperConfig === 'function' ? this.config.popperConfig(defaultBsPopperConfig) : this.config.popperConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||||
@ -5457,29 +5492,29 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
||||||
return _this5.toggle(event);
|
return _this6.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
||||||
EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
||||||
return _this5._enter(event);
|
return _this6._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
||||||
return _this5._leave(event);
|
return _this6._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this5._element) {
|
if (_this6._element) {
|
||||||
_this5.hide();
|
_this6.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5512,19 +5547,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._enter = function _enter(event, context) {
|
_proto._enter = function _enter(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) {
|
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
||||||
context._hoverState = HOVER_STATE_SHOW;
|
context._hoverState = HOVER_STATE_SHOW;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -5545,13 +5574,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._leave = function _leave(event, context) {
|
_proto._leave = function _leave(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
||||||
@ -5732,21 +5755,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$6, Tooltip);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$6];
|
|
||||||
$.fn[NAME$6] = Tooltip.jQueryInterface;
|
|
||||||
$.fn[NAME$6].Constructor = Tooltip;
|
|
||||||
|
|
||||||
$.fn[NAME$6].noConflict = function () {
|
|
||||||
$.fn[NAME$6] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tooltip.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -5762,6 +5771,7 @@
|
|||||||
|
|
||||||
var Default$5 = _extends({}, Tooltip.Default, {
|
var Default$5 = _extends({}, Tooltip.Default, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
|
offset: [0, 8],
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
content: '',
|
content: '',
|
||||||
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
||||||
@ -5783,8 +5793,8 @@
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$2 = 'fade';
|
var CLASS_NAME_FADE$3 = 'fade';
|
||||||
var CLASS_NAME_SHOW$4 = 'show';
|
var CLASS_NAME_SHOW$5 = 'show';
|
||||||
var SELECTOR_TITLE = '.popover-header';
|
var SELECTOR_TITLE = '.popover-header';
|
||||||
var SELECTOR_CONTENT = '.popover-body';
|
var SELECTOR_CONTENT = '.popover-body';
|
||||||
/**
|
/**
|
||||||
@ -5819,7 +5829,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
||||||
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
tip.classList.remove(CLASS_NAME_FADE$3, CLASS_NAME_SHOW$5);
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -5872,8 +5882,8 @@
|
|||||||
|
|
||||||
_createClass(Popover, null, [{
|
_createClass(Popover, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return Default$5;
|
return Default$5;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -5913,21 +5923,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$7, Popover);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$7];
|
|
||||||
$.fn[NAME$7] = Popover.jQueryInterface;
|
|
||||||
$.fn[NAME$7].Constructor = Popover;
|
|
||||||
|
|
||||||
$.fn[NAME$7].noConflict = function () {
|
|
||||||
$.fn[NAME$7] = JQUERY_NO_CONFLICT;
|
|
||||||
return Popover.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -5983,8 +5979,8 @@
|
|||||||
_this._targets = [];
|
_this._targets = [];
|
||||||
_this._activeTarget = null;
|
_this._activeTarget = null;
|
||||||
_this._scrollHeight = 0;
|
_this._scrollHeight = 0;
|
||||||
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function (event) {
|
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function () {
|
||||||
return _this._process(event);
|
return _this._process();
|
||||||
});
|
});
|
||||||
|
|
||||||
_this.refresh();
|
_this.refresh();
|
||||||
@ -6213,21 +6209,7 @@
|
|||||||
* add .ScrollSpy to jQuery only if jQuery is present
|
* add .ScrollSpy to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$8, ScrollSpy);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$8];
|
|
||||||
$.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
|
||||||
$.fn[NAME$8].Constructor = ScrollSpy;
|
|
||||||
|
|
||||||
$.fn[NAME$8].noConflict = function () {
|
|
||||||
$.fn[NAME$8] = JQUERY_NO_CONFLICT;
|
|
||||||
return ScrollSpy.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -6247,8 +6229,8 @@
|
|||||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||||
var CLASS_NAME_FADE$3 = 'fade';
|
var CLASS_NAME_FADE$4 = 'fade';
|
||||||
var CLASS_NAME_SHOW$5 = 'show';
|
var CLASS_NAME_SHOW$6 = 'show';
|
||||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||||
var SELECTOR_ACTIVE$1 = '.active';
|
var SELECTOR_ACTIVE$1 = '.active';
|
||||||
@ -6290,14 +6272,9 @@
|
|||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = null;
|
var hideEvent = previous ? EventHandler.trigger(previous, EVENT_HIDE$3, {
|
||||||
|
|
||||||
if (previous) {
|
|
||||||
hideEvent = EventHandler.trigger(previous, EVENT_HIDE$3, {
|
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
});
|
}) : null;
|
||||||
}
|
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
@ -6330,7 +6307,7 @@
|
|||||||
|
|
||||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
||||||
var active = activeElements[0];
|
var active = activeElements[0];
|
||||||
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$3);
|
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$4);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
return _this2._transitionComplete(element, active, callback);
|
return _this2._transitionComplete(element, active, callback);
|
||||||
@ -6338,8 +6315,8 @@
|
|||||||
|
|
||||||
if (active && isTransitioning) {
|
if (active && isTransitioning) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(active);
|
var transitionDuration = getTransitionDurationFromElement(active);
|
||||||
active.classList.remove(CLASS_NAME_SHOW$5);
|
active.classList.remove(CLASS_NAME_SHOW$6);
|
||||||
EventHandler.one(active, TRANSITION_END, complete);
|
EventHandler.one(active, 'transitionend', complete);
|
||||||
emulateTransitionEnd(active, transitionDuration);
|
emulateTransitionEnd(active, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -6368,8 +6345,8 @@
|
|||||||
|
|
||||||
reflow(element);
|
reflow(element);
|
||||||
|
|
||||||
if (element.classList.contains(CLASS_NAME_FADE$3)) {
|
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
||||||
element.classList.add(CLASS_NAME_SHOW$5);
|
element.classList.add(CLASS_NAME_SHOW$6);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
||||||
@ -6406,8 +6383,8 @@
|
|||||||
|
|
||||||
_createClass(Tab, null, [{
|
_createClass(Tab, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$9;
|
return DATA_KEY$9;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -6433,21 +6410,7 @@
|
|||||||
* add .Tab to jQuery only if jQuery is present
|
* add .Tab to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$9, Tab);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$9];
|
|
||||||
$.fn[NAME$9] = Tab.jQueryInterface;
|
|
||||||
$.fn[NAME$9].Constructor = Tab;
|
|
||||||
|
|
||||||
$.fn[NAME$9].noConflict = function () {
|
|
||||||
$.fn[NAME$9] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tab.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -6463,9 +6426,9 @@
|
|||||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
||||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
||||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
||||||
var CLASS_NAME_FADE$4 = 'fade';
|
var CLASS_NAME_FADE$5 = 'fade';
|
||||||
var CLASS_NAME_HIDE = 'hide';
|
var CLASS_NAME_HIDE = 'hide';
|
||||||
var CLASS_NAME_SHOW$6 = 'show';
|
var CLASS_NAME_SHOW$7 = 'show';
|
||||||
var CLASS_NAME_SHOWING = 'showing';
|
var CLASS_NAME_SHOWING = 'showing';
|
||||||
var DefaultType$7 = {
|
var DefaultType$7 = {
|
||||||
animation: 'boolean',
|
animation: 'boolean',
|
||||||
@ -6515,13 +6478,13 @@
|
|||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(CLASS_NAME_FADE$4);
|
this._element.classList.add(CLASS_NAME_FADE$5);
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_SHOW$6);
|
_this2._element.classList.add(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
||||||
|
|
||||||
@ -6540,7 +6503,7 @@
|
|||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -6550,7 +6513,7 @@
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (!this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6566,11 +6529,11 @@
|
|||||||
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -6580,8 +6543,8 @@
|
|||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
||||||
@ -6659,25 +6622,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$a, Toast);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$a];
|
|
||||||
$.fn[NAME$a] = Toast.jQueryInterface;
|
|
||||||
$.fn[NAME$a].Constructor = Toast;
|
|
||||||
|
|
||||||
$.fn[NAME$a].noConflict = function () {
|
|
||||||
$.fn[NAME$a] = JQUERY_NO_CONFLICT;
|
|
||||||
return Toast.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): index.umd.js
|
* Bootstrap (v5.0.0-beta2): index.umd.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
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
6
dist/js/bootstrap.bundle.min.js
vendored
6
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
799
dist/js/bootstrap.esm.js
vendored
799
dist/js/bootstrap.esm.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
import * as Popper from '@popperjs/core';
|
import * as Popper from '@popperjs/core';
|
||||||
@ -43,12 +43,22 @@ function _extends() {
|
|||||||
function _inheritsLoose(subClass, superClass) {
|
function _inheritsLoose(subClass, superClass) {
|
||||||
subClass.prototype = Object.create(superClass.prototype);
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
subClass.prototype.constructor = subClass;
|
subClass.prototype.constructor = subClass;
|
||||||
subClass.__proto__ = superClass;
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -82,7 +92,20 @@ var getSelector = function getSelector(element) {
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +183,7 @@ var typeCheckConfig = function typeCheckConfig(componentName, config, configType
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -231,9 +254,27 @@ var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
|
if ($) {
|
||||||
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
|
$.fn[name].Constructor = plugin;
|
||||||
|
|
||||||
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
|
return plugin.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/data.js
|
* Bootstrap (v5.0.0-beta2): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -300,7 +341,7 @@ var Data = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta2): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -360,6 +401,7 @@ function bootstrapDelegationHandler(element, selector, fn) {
|
|||||||
event.delegateTarget = target;
|
event.delegateTarget = target;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
|
// eslint-disable-next-line unicorn/consistent-destructuring
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -579,7 +621,7 @@ var EventHandler = {
|
|||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
var VERSION = '5.0.0-beta2';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
@ -628,9 +670,9 @@ var SELECTOR_DISMISS = '[data-bs-dismiss="alert"]';
|
|||||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
var CLASSNAME_ALERT = 'alert';
|
var CLASS_NAME_ALERT = 'alert';
|
||||||
var CLASSNAME_FADE = 'fade';
|
var CLASS_NAME_FADE = 'fade';
|
||||||
var CLASSNAME_SHOW = 'show';
|
var CLASS_NAME_SHOW = 'show';
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -661,7 +703,7 @@ var Alert = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
;
|
;
|
||||||
|
|
||||||
_proto._getRootElement = function _getRootElement(element) {
|
_proto._getRootElement = function _getRootElement(element) {
|
||||||
return getElementFromSelector(element) || element.closest("." + CLASSNAME_ALERT);
|
return getElementFromSelector(element) || element.closest("." + CLASS_NAME_ALERT);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||||
@ -671,16 +713,16 @@ var Alert = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto._removeElement = function _removeElement(element) {
|
_proto._removeElement = function _removeElement(element) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
element.classList.remove(CLASSNAME_SHOW);
|
element.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
if (!element.classList.contains(CLASSNAME_FADE)) {
|
if (!element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
this._destroyElement(element);
|
this._destroyElement(element);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(element);
|
var transitionDuration = getTransitionDurationFromElement(element);
|
||||||
EventHandler.one(element, TRANSITION_END, function () {
|
EventHandler.one(element, 'transitionend', function () {
|
||||||
return _this._destroyElement(element);
|
return _this._destroyElement(element);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(element, transitionDuration);
|
emulateTransitionEnd(element, transitionDuration);
|
||||||
@ -721,8 +763,8 @@ var Alert = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
_createClass(Alert, null, [{
|
_createClass(Alert, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -744,21 +786,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDi
|
|||||||
* add .Alert to jQuery only if jQuery is present
|
* add .Alert to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Alert);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Alert.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Alert;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Alert.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -811,8 +839,8 @@ var Button = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
_createClass(Button, null, [{
|
_createClass(Button, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$1;
|
return DATA_KEY$1;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -844,25 +872,11 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE, function
|
|||||||
* add .Button to jQuery only if jQuery is present
|
* add .Button to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$1, Button);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$1];
|
|
||||||
$.fn[NAME$1] = Button.jQueryInterface;
|
|
||||||
$.fn[NAME$1].Constructor = Button;
|
|
||||||
|
|
||||||
$.fn[NAME$1].noConflict = function () {
|
|
||||||
$.fn[NAME$1] = JQUERY_NO_CONFLICT;
|
|
||||||
return Button.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta2): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -934,7 +948,7 @@ var Manipulator = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta2): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -946,9 +960,6 @@ var Manipulator = {
|
|||||||
*/
|
*/
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches(element, selector) {
|
|
||||||
return element.matches(selector);
|
|
||||||
},
|
|
||||||
find: function find(selector, element) {
|
find: function find(selector, element) {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -968,9 +979,7 @@ var SelectorEngine = {
|
|||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
||||||
var children = (_ref2 = []).concat.apply(_ref2, element.children);
|
return (_ref2 = []).concat.apply(_ref2, element.children).filter(function (child) {
|
||||||
|
|
||||||
return children.filter(function (child) {
|
|
||||||
return child.matches(selector);
|
return child.matches(selector);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -979,7 +988,7 @@ var SelectorEngine = {
|
|||||||
var ancestor = element.parentNode;
|
var ancestor = element.parentNode;
|
||||||
|
|
||||||
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
||||||
if (this.matches(ancestor, selector)) {
|
if (ancestor.matches(selector)) {
|
||||||
parents.push(ancestor);
|
parents.push(ancestor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1005,7 +1014,7 @@ var SelectorEngine = {
|
|||||||
var next = element.nextElementSibling;
|
var next = element.nextElementSibling;
|
||||||
|
|
||||||
while (next) {
|
while (next) {
|
||||||
if (this.matches(next, selector)) {
|
if (next.matches(selector)) {
|
||||||
return [next];
|
return [next];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1078,12 +1087,11 @@ var SELECTOR_ITEM = '.carousel-item';
|
|||||||
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
||||||
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
||||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||||
|
var SELECTOR_INDICATOR = '[data-bs-target]';
|
||||||
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
||||||
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
||||||
var PointerType = {
|
var POINTER_TYPE_TOUCH = 'touch';
|
||||||
TOUCH: 'touch',
|
var POINTER_TYPE_PEN = 'pen';
|
||||||
PEN: 'pen'
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -1230,13 +1238,21 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this.touchDeltaX = 0; // swipe left
|
this.touchDeltaX = 0; // swipe left
|
||||||
|
|
||||||
if (direction > 0) {
|
if (direction > 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.next();
|
||||||
|
} else {
|
||||||
this.prev();
|
this.prev();
|
||||||
|
}
|
||||||
} // swipe right
|
} // swipe right
|
||||||
|
|
||||||
|
|
||||||
if (direction < 0) {
|
if (direction < 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
this.next();
|
this.next();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
@ -1266,7 +1282,7 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var start = function start(event) {
|
var start = function start(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchStartX = event.clientX;
|
_this4.touchStartX = event.clientX;
|
||||||
} else if (!_this4._pointerEvent) {
|
} else if (!_this4._pointerEvent) {
|
||||||
_this4.touchStartX = event.touches[0].clientX;
|
_this4.touchStartX = event.touches[0].clientX;
|
||||||
@ -1283,7 +1299,7 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var end = function end(event) {
|
var end = function end(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1342,16 +1358,22 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event.key) {
|
if (event.key === ARROW_LEFT_KEY) {
|
||||||
case ARROW_LEFT_KEY:
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.prev();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ARROW_RIGHT_KEY:
|
if (isRTL) {
|
||||||
event.preventDefault();
|
|
||||||
this.next();
|
this.next();
|
||||||
break;
|
} else {
|
||||||
|
this.prev();
|
||||||
|
}
|
||||||
|
} else if (event.key === ARROW_RIGHT_KEY) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1393,16 +1415,17 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||||
if (this._indicatorsElement) {
|
if (this._indicatorsElement) {
|
||||||
var indicators = SelectorEngine.find(SELECTOR_ACTIVE, this._indicatorsElement);
|
var activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);
|
||||||
|
activeIndicator.classList.remove(CLASS_NAME_ACTIVE$1);
|
||||||
|
activeIndicator.removeAttribute('aria-current');
|
||||||
|
var indicators = SelectorEngine.find(SELECTOR_INDICATOR, this._indicatorsElement);
|
||||||
|
|
||||||
for (var i = 0; i < indicators.length; i++) {
|
for (var i = 0; i < indicators.length; i++) {
|
||||||
indicators[i].classList.remove(CLASS_NAME_ACTIVE$1);
|
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
|
||||||
|
indicators[i].classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
|
indicators[i].setAttribute('aria-current', 'true');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
|
||||||
|
|
||||||
if (nextIndicator) {
|
|
||||||
nextIndicator.classList.add(CLASS_NAME_ACTIVE$1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1436,19 +1459,9 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var nextElementIndex = this._getItemIndex(nextElement);
|
var nextElementIndex = this._getItemIndex(nextElement);
|
||||||
|
|
||||||
var isCycling = Boolean(this._interval);
|
var isCycling = Boolean(this._interval);
|
||||||
var directionalClassName;
|
var directionalClassName = direction === DIRECTION_NEXT ? CLASS_NAME_START : CLASS_NAME_END;
|
||||||
var orderClassName;
|
var orderClassName = direction === DIRECTION_NEXT ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
|
||||||
var eventDirectionName;
|
var eventDirectionName = direction === DIRECTION_NEXT ? DIRECTION_LEFT : DIRECTION_RIGHT;
|
||||||
|
|
||||||
if (direction === DIRECTION_NEXT) {
|
|
||||||
directionalClassName = CLASS_NAME_START;
|
|
||||||
orderClassName = CLASS_NAME_NEXT;
|
|
||||||
eventDirectionName = DIRECTION_LEFT;
|
|
||||||
} else {
|
|
||||||
directionalClassName = CLASS_NAME_END;
|
|
||||||
orderClassName = CLASS_NAME_PREV;
|
|
||||||
eventDirectionName = DIRECTION_RIGHT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
||||||
this._isSliding = false;
|
this._isSliding = false;
|
||||||
@ -1482,7 +1495,7 @@ var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
activeElement.classList.add(directionalClassName);
|
activeElement.classList.add(directionalClassName);
|
||||||
nextElement.classList.add(directionalClassName);
|
nextElement.classList.add(directionalClassName);
|
||||||
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
||||||
EventHandler.one(activeElement, TRANSITION_END, function () {
|
EventHandler.one(activeElement, 'transitionend', function () {
|
||||||
nextElement.classList.remove(directionalClassName, orderClassName);
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
||||||
@ -1610,21 +1623,7 @@ EventHandler.on(window, EVENT_LOAD_DATA_API, function () {
|
|||||||
* add .Carousel to jQuery only if jQuery is present
|
* add .Carousel to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$2, Carousel);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$2];
|
|
||||||
$.fn[NAME$2] = Carousel.jQueryInterface;
|
|
||||||
$.fn[NAME$2].Constructor = Carousel;
|
|
||||||
|
|
||||||
$.fn[NAME$2].noConflict = function () {
|
|
||||||
$.fn[NAME$2] = JQUERY_NO_CONFLICT;
|
|
||||||
return Carousel.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -1649,7 +1648,7 @@ var EVENT_SHOWN = "shown" + EVENT_KEY$3;
|
|||||||
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
||||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
||||||
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
||||||
var CLASS_NAME_SHOW = 'show';
|
var CLASS_NAME_SHOW$1 = 'show';
|
||||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||||
@ -1707,7 +1706,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
// Public
|
// Public
|
||||||
_proto.toggle = function toggle() {
|
_proto.toggle = function toggle() {
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
this.show();
|
this.show();
|
||||||
@ -1717,7 +1716,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1789,7 +1788,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
_this2._element.style[dimension] = '';
|
_this2._element.style[dimension] = '';
|
||||||
|
|
||||||
@ -1801,7 +1800,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||||
var scrollSize = "scroll" + capitalizedDimension;
|
var scrollSize = "scroll" + capitalizedDimension;
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||||
};
|
};
|
||||||
@ -1809,7 +1808,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1826,7 +1825,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
var triggerArrayLength = this._triggerArray.length;
|
var triggerArrayLength = this._triggerArray.length;
|
||||||
|
|
||||||
@ -1835,7 +1834,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var trigger = this._triggerArray[i];
|
var trigger = this._triggerArray[i];
|
||||||
var elem = getElementFromSelector(trigger);
|
var elem = getElementFromSelector(trigger);
|
||||||
|
|
||||||
if (elem && !elem.classList.contains(CLASS_NAME_SHOW)) {
|
if (elem && !elem.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
||||||
trigger.setAttribute('aria-expanded', false);
|
trigger.setAttribute('aria-expanded', false);
|
||||||
}
|
}
|
||||||
@ -1856,7 +1855,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
this._element.style[dimension] = '';
|
this._element.style[dimension] = '';
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1914,7 +1913,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isOpen = element.classList.contains(CLASS_NAME_SHOW);
|
var isOpen = element.classList.contains(CLASS_NAME_SHOW$1);
|
||||||
triggerArray.forEach(function (elem) {
|
triggerArray.forEach(function (elem) {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
||||||
@ -1978,7 +1977,7 @@ var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||||
if (event.target.tagName === 'A') {
|
if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2011,21 +2010,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, functi
|
|||||||
* add .Collapse to jQuery only if jQuery is present
|
* add .Collapse to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$3, Collapse);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$3];
|
|
||||||
$.fn[NAME$3] = Collapse.jQueryInterface;
|
|
||||||
$.fn[NAME$3].Constructor = Collapse;
|
|
||||||
|
|
||||||
$.fn[NAME$3].noConflict = function () {
|
|
||||||
$.fn[NAME$3] = JQUERY_NO_CONFLICT;
|
|
||||||
return Collapse.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2054,7 +2039,7 @@ var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4;
|
|||||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var CLASS_NAME_DISABLED = 'disabled';
|
var CLASS_NAME_DISABLED = 'disabled';
|
||||||
var CLASS_NAME_SHOW$1 = 'show';
|
var CLASS_NAME_SHOW$2 = 'show';
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
@ -2071,7 +2056,7 @@ var PLACEMENT_BOTTOMEND = isRTL ? 'bottom-start' : 'bottom-end';
|
|||||||
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
||||||
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default$2 = {
|
var Default$2 = {
|
||||||
offset: 0,
|
offset: [0, 2],
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
@ -2079,12 +2064,12 @@ var Default$2 = {
|
|||||||
popperConfig: null
|
popperConfig: null
|
||||||
};
|
};
|
||||||
var DefaultType$2 = {
|
var DefaultType$2 = {
|
||||||
offset: '(number|string|function)',
|
offset: '(array|string|function)',
|
||||||
flip: 'boolean',
|
flip: 'boolean',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
reference: '(string|element)',
|
reference: '(string|element|object)',
|
||||||
display: 'string',
|
display: 'string',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2118,7 +2103,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
|
|
||||||
@ -2130,7 +2115,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2145,7 +2130,9 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
} // Totally disable Popper for Dropdowns in Navbar
|
} // Totally disable Popper for Dropdowns in Navbar
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'none');
|
||||||
|
} else {
|
||||||
if (typeof Popper === 'undefined') {
|
if (typeof Popper === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
@ -2160,9 +2147,20 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
|
} else if (typeof this._config.reference === 'object') {
|
||||||
|
referenceElement = this._config.reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = createPopper(referenceElement, this._menu, this._getPopperConfig());
|
var popperConfig = this._getPopperConfig();
|
||||||
|
|
||||||
|
var isDisplayStatic = popperConfig.modifiers.find(function (modifier) {
|
||||||
|
return modifier.name === 'applyStyles' && modifier.enabled === false;
|
||||||
|
});
|
||||||
|
this._popper = createPopper(referenceElement, this._menu, popperConfig);
|
||||||
|
|
||||||
|
if (isDisplayStatic) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'static');
|
||||||
|
}
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
@ -2181,23 +2179,22 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
this._element.setAttribute('aria-expanded', true);
|
this._element.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_SHOWN$1, relatedTarget);
|
EventHandler.trigger(this._element, EVENT_SHOWN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this._element);
|
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
@ -2207,11 +2204,12 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this._popper.destroy();
|
this._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(this._menu, 'popper');
|
||||||
|
EventHandler.trigger(this._element, EVENT_HIDDEN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
@ -2250,6 +2248,12 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
||||||
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||||
|
|
||||||
|
if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
|
||||||
|
// Popper virtual elements require a getBoundingClientRect method
|
||||||
|
throw new TypeError(NAME$4.toUpperCase() + ": Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.");
|
||||||
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2282,26 +2286,51 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._getOffset = function _getOffset() {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
var offset = this._config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this3._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var defaultBsPopperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: [{
|
modifiers: [{
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
altBoundary: this._config.flip,
|
altBoundary: this._config.flip,
|
||||||
rootBoundary: this._config.boundary
|
boundary: this._config.boundary
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers = [{
|
defaultBsPopperConfig.modifiers = [{
|
||||||
name: 'applyStyles',
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -2337,7 +2366,6 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
||||||
|
|
||||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
|
||||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: toggles[i]
|
relatedTarget: toggles[i]
|
||||||
@ -2353,7 +2381,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
var dropdownMenu = context._menu;
|
var dropdownMenu = context._menu;
|
||||||
|
|
||||||
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$1)) {
|
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2361,7 +2389,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(toggles[i], EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
continue;
|
continue;
|
||||||
@ -2383,9 +2411,10 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
context._popper.destroy();
|
context._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
dropdownMenu.classList.remove(CLASS_NAME_SHOW$1);
|
dropdownMenu.classList.remove(CLASS_NAME_SHOW$2);
|
||||||
toggles[i].classList.remove(CLASS_NAME_SHOW$1);
|
toggles[i].classList.remove(CLASS_NAME_SHOW$2);
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(dropdownMenu, 'popper');
|
||||||
|
EventHandler.trigger(toggles[i], EVENT_HIDDEN$1, relatedTarget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2413,7 +2442,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this);
|
var parent = Dropdown.getParentFromElement(this);
|
||||||
var isActive = this.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
if (event.key === ESCAPE_KEY) {
|
if (event.key === ESCAPE_KEY) {
|
||||||
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
@ -2422,6 +2451,14 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isActive && (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY)) {
|
||||||
|
var _button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
|
|
||||||
|
_button.click();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isActive || event.key === SPACE_KEY) {
|
if (!isActive || event.key === SPACE_KEY) {
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
return;
|
return;
|
||||||
@ -2494,21 +2531,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function
|
|||||||
* add .Dropdown to jQuery only if jQuery is present
|
* add .Dropdown to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$4, Dropdown);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$4];
|
|
||||||
$.fn[NAME$4] = Dropdown.jQueryInterface;
|
|
||||||
$.fn[NAME$4].Constructor = Dropdown;
|
|
||||||
|
|
||||||
$.fn[NAME$4].noConflict = function () {
|
|
||||||
$.fn[NAME$4] = JQUERY_NO_CONFLICT;
|
|
||||||
return Dropdown.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2546,8 +2569,8 @@ var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
|
|||||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||||
var CLASS_NAME_OPEN = 'modal-open';
|
var CLASS_NAME_OPEN = 'modal-open';
|
||||||
var CLASS_NAME_FADE = 'fade';
|
var CLASS_NAME_FADE$1 = 'fade';
|
||||||
var CLASS_NAME_SHOW$2 = 'show';
|
var CLASS_NAME_SHOW$3 = 'show';
|
||||||
var CLASS_NAME_STATIC = 'modal-static';
|
var CLASS_NAME_STATIC = 'modal-static';
|
||||||
var SELECTOR_DIALOG = '.modal-dialog';
|
var SELECTOR_DIALOG = '.modal-dialog';
|
||||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||||
@ -2594,7 +2617,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2653,7 +2676,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
@ -2665,14 +2688,14 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN);
|
EventHandler.off(document, EVENT_FOCUSIN);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$2);
|
this._element.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
||||||
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, function (event) {
|
EventHandler.one(this._element, 'transitionend', function (event) {
|
||||||
return _this3._hideModal(event);
|
return _this3._hideModal(event);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
@ -2719,7 +2742,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto._showElement = function _showElement(relatedTarget) {
|
_proto._showElement = function _showElement(relatedTarget) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
||||||
|
|
||||||
@ -2746,7 +2769,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
reflow(this._element);
|
reflow(this._element);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_SHOW$2);
|
this._element.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (this._config.focus) {
|
if (this._config.focus) {
|
||||||
this._enforceFocus();
|
this._enforceFocus();
|
||||||
@ -2765,7 +2788,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.one(this._dialog, TRANSITION_END, transitionComplete);
|
EventHandler.one(this._dialog, 'transitionend', transitionComplete);
|
||||||
emulateTransitionEnd(this._dialog, transitionDuration);
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
transitionComplete();
|
transitionComplete();
|
||||||
@ -2847,7 +2870,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||||
var _this9 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
var animate = this._element.classList.contains(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
||||||
|
|
||||||
if (this._isShown && this._config.backdrop) {
|
if (this._isShown && this._config.backdrop) {
|
||||||
this._backdrop = document.createElement('div');
|
this._backdrop = document.createElement('div');
|
||||||
@ -2879,7 +2902,7 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
reflow(this._backdrop);
|
reflow(this._backdrop);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._backdrop.classList.add(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (!animate) {
|
if (!animate) {
|
||||||
callback();
|
callback();
|
||||||
@ -2887,10 +2910,10 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callback);
|
EventHandler.one(this._backdrop, 'transitionend', callback);
|
||||||
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
||||||
} else if (!this._isShown && this._backdrop) {
|
} else if (!this._isShown && this._backdrop) {
|
||||||
this._backdrop.classList.remove(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
var callbackRemove = function callbackRemove() {
|
var callbackRemove = function callbackRemove() {
|
||||||
_this9._removeBackdrop();
|
_this9._removeBackdrop();
|
||||||
@ -2898,10 +2921,10 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
|
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callbackRemove);
|
EventHandler.one(this._backdrop, 'transitionend', callbackRemove);
|
||||||
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
||||||
} else {
|
} else {
|
||||||
callbackRemove();
|
callbackRemove();
|
||||||
@ -2929,12 +2952,12 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this._element.classList.add(CLASS_NAME_STATIC);
|
this._element.classList.add(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.off(this._element, TRANSITION_END);
|
EventHandler.off(this._element, 'transitionend');
|
||||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
EventHandler.one(this._element, 'transitionend', function () {
|
||||||
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
if (!isModalOverflowing) {
|
if (!isModalOverflowing) {
|
||||||
EventHandler.one(_this10._element, TRANSITION_END, function () {
|
EventHandler.one(_this10._element, 'transitionend', function () {
|
||||||
_this10._element.style.overflowY = '';
|
_this10._element.style.overflowY = '';
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
||||||
@ -2975,60 +2998,50 @@ var Modal = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
var _this11 = this;
|
var _this11 = this;
|
||||||
|
|
||||||
if (this._isBodyOverflowing) {
|
if (this._isBodyOverflowing) {
|
||||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
this._setElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight', function (calculatedValue) {
|
||||||
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
// Adjust fixed content padding
|
});
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var actualPadding = element.style.paddingRight;
|
|
||||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
|
||||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
|
||||||
element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust sticky content margin
|
|
||||||
|
|
||||||
SelectorEngine.find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._setElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight', function (calculatedValue) {
|
||||||
var actualMargin = element.style.marginRight;
|
return calculatedValue - _this11._scrollbarWidth;
|
||||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
});
|
||||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
|
||||||
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust body padding
|
|
||||||
|
|
||||||
var actualPadding = document.body.style.paddingRight;
|
this._setElementAttributes('body', 'paddingRight', function (calculatedValue) {
|
||||||
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
Manipulator.setDataAttribute(document.body, 'padding-right', actualPadding);
|
});
|
||||||
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.add(CLASS_NAME_OPEN);
|
document.body.classList.add(CLASS_NAME_OPEN);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._setElementAttributes = function _setElementAttributes(selector, styleProp, callback) {
|
||||||
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
|
var actualValue = element.style[styleProp];
|
||||||
|
var calculatedValue = window.getComputedStyle(element)[styleProp];
|
||||||
|
Manipulator.setDataAttribute(element, styleProp, actualValue);
|
||||||
|
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
_proto._resetScrollbar = function _resetScrollbar() {
|
_proto._resetScrollbar = function _resetScrollbar() {
|
||||||
// Restore fixed content padding
|
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight');
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var padding = Manipulator.getDataAttribute(element, 'padding-right');
|
|
||||||
|
|
||||||
if (typeof padding !== 'undefined') {
|
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight');
|
||||||
Manipulator.removeDataAttribute(element, 'padding-right');
|
|
||||||
element.style.paddingRight = padding;
|
|
||||||
}
|
|
||||||
}); // Restore sticky content and navbar-toggler margin
|
|
||||||
|
|
||||||
SelectorEngine.find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._resetElementAttributes('body', 'paddingRight');
|
||||||
var margin = Manipulator.getDataAttribute(element, 'margin-right');
|
};
|
||||||
|
|
||||||
if (typeof margin !== 'undefined') {
|
_proto._resetElementAttributes = function _resetElementAttributes(selector, styleProp) {
|
||||||
Manipulator.removeDataAttribute(element, 'margin-right');
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
element.style.marginRight = margin;
|
var value = Manipulator.getDataAttribute(element, styleProp);
|
||||||
}
|
|
||||||
}); // Restore body padding
|
|
||||||
|
|
||||||
var padding = Manipulator.getDataAttribute(document.body, 'padding-right');
|
if (typeof value === 'undefined' && element === document.body) {
|
||||||
|
element.style[styleProp] = '';
|
||||||
if (typeof padding === 'undefined') {
|
|
||||||
document.body.style.paddingRight = '';
|
|
||||||
} else {
|
} else {
|
||||||
Manipulator.removeDataAttribute(document.body, 'padding-right');
|
Manipulator.removeDataAttribute(element, styleProp);
|
||||||
document.body.style.paddingRight = padding;
|
element.style[styleProp] = value;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
||||||
@ -3112,7 +3125,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, functi
|
|||||||
data = new Modal(target, config);
|
data = new Modal(target, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.show(this);
|
data.toggle(this);
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -3121,25 +3134,11 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, functi
|
|||||||
* add .Modal to jQuery only if jQuery is present
|
* add .Modal to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$5, Modal);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$5];
|
|
||||||
$.fn[NAME$5] = Modal.jQueryInterface;
|
|
||||||
$.fn[NAME$5].Constructor = Modal;
|
|
||||||
|
|
||||||
$.fn[NAME$5].noConflict = function () {
|
|
||||||
$.fn[NAME$5] = JQUERY_NO_CONFLICT;
|
|
||||||
return Modal.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta2): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -3165,7 +3164,7 @@ var allowedAttribute = function allowedAttribute(attr, allowedAttributeList) {
|
|||||||
|
|
||||||
if (allowedAttributeList.includes(attrName)) {
|
if (allowedAttributeList.includes(attrName)) {
|
||||||
if (uriAttrs.has(attrName)) {
|
if (uriAttrs.has(attrName)) {
|
||||||
return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
|
return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -3176,7 +3175,7 @@ var allowedAttribute = function allowedAttribute(attr, allowedAttributeList) {
|
|||||||
}); // Check if a regular expression validates the attribute.
|
}); // Check if a regular expression validates the attribute.
|
||||||
|
|
||||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||||
if (attrName.match(regExp[i])) {
|
if (regExp[i].test(attrName)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3285,14 +3284,15 @@ var DefaultType$4 = {
|
|||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
|
offset: '(array|string|function)',
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacements: '(null|array)',
|
fallbackPlacements: 'array',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
sanitizeFn: '(null|function)',
|
sanitizeFn: '(null|function)',
|
||||||
allowList: 'object',
|
allowList: 'object',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
var AttachmentMap = {
|
var AttachmentMap = {
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
@ -3310,8 +3310,9 @@ var Default$4 = {
|
|||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
|
offset: [0, 0],
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacements: null,
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
@ -3331,9 +3332,9 @@ var Event$1 = {
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$1 = 'fade';
|
var CLASS_NAME_FADE$2 = 'fade';
|
||||||
var CLASS_NAME_MODAL = 'modal';
|
var CLASS_NAME_MODAL = 'modal';
|
||||||
var CLASS_NAME_SHOW$3 = 'show';
|
var CLASS_NAME_SHOW$4 = 'show';
|
||||||
var HOVER_STATE_SHOW = 'show';
|
var HOVER_STATE_SHOW = 'show';
|
||||||
var HOVER_STATE_OUT = 'out';
|
var HOVER_STATE_OUT = 'out';
|
||||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||||
@ -3395,13 +3396,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
var context = this._initializeOnDelegatedTarget(event);
|
||||||
var context = Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
context._activeTrigger.click = !context._activeTrigger.click;
|
context._activeTrigger.click = !context._activeTrigger.click;
|
||||||
|
|
||||||
@ -3411,7 +3406,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
context._leave(null, context);
|
context._leave(null, context);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)) {
|
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$4)) {
|
||||||
this._leave(null, this);
|
this._leave(null, this);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -3426,7 +3421,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip && this.tip.parentNode) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3453,7 +3448,10 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (!(this.isWithContent() && this._isEnabled)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
||||||
var shadowRoot = findShadowRoot(this._element);
|
var shadowRoot = findShadowRoot(this._element);
|
||||||
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
||||||
@ -3471,7 +3469,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this.setContent();
|
this.setContent();
|
||||||
|
|
||||||
if (this.config.animation) {
|
if (this.config.animation) {
|
||||||
tip.classList.add(CLASS_NAME_FADE$1);
|
tip.classList.add(CLASS_NAME_FADE$2);
|
||||||
}
|
}
|
||||||
|
|
||||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
||||||
@ -3490,7 +3488,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = createPopper(this._element, tip, this._getPopperConfig(attachment));
|
this._popper = createPopper(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW$3);
|
tip.classList.add(CLASS_NAME_SHOW$4);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
if (customClass) {
|
if (customClass) {
|
||||||
@ -3521,14 +3519,13 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
||||||
EventHandler.one(this.tip, TRANSITION_END, complete);
|
EventHandler.one(this.tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this.tip, transitionDuration);
|
emulateTransitionEnd(this.tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
@ -3564,7 +3561,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra
|
tip.classList.remove(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
||||||
// empty mouseover listeners we added for iOS support
|
// empty mouseover listeners we added for iOS support
|
||||||
|
|
||||||
if ('ontouchstart' in document.documentElement) {
|
if ('ontouchstart' in document.documentElement) {
|
||||||
@ -3579,9 +3576,9 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(tip);
|
var transitionDuration = getTransitionDurationFromElement(tip);
|
||||||
EventHandler.one(tip, TRANSITION_END, complete);
|
EventHandler.one(tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(tip, transitionDuration);
|
emulateTransitionEnd(tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -3615,7 +3612,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto.setContent = function setContent() {
|
_proto.setContent = function setContent() {
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
||||||
tip.classList.remove(CLASS_NAME_FADE$1, CLASS_NAME_SHOW$3);
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.setElementContent = function setElementContent(element, content) {
|
_proto.setElementContent = function setElementContent(element, content) {
|
||||||
@ -3675,26 +3672,58 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._initializeOnDelegatedTarget = function _initializeOnDelegatedTarget(event, context) {
|
||||||
var _this4 = this;
|
var dataKey = this.constructor.DATA_KEY;
|
||||||
|
context = context || Data.getData(event.delegateTarget, dataKey);
|
||||||
|
|
||||||
var flipModifier = {
|
if (!context) {
|
||||||
name: 'flip',
|
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
||||||
options: {
|
Data.setData(event.delegateTarget, dataKey, context);
|
||||||
altBoundary: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return context;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.config.fallbackPlacements) {
|
_proto._getOffset = function _getOffset() {
|
||||||
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var offset = this.config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this4._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
|
var defaultBsPopperConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: [flipModifier, {
|
modifiers: [{
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true,
|
||||||
|
fallbackPlacements: this.config.fallbackPlacements
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
|
}
|
||||||
|
}, {
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
rootBoundary: this.config.boundary
|
boundary: this.config.boundary
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
name: 'arrow',
|
name: 'arrow',
|
||||||
@ -3706,16 +3735,16 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
phase: 'afterWrite',
|
phase: 'afterWrite',
|
||||||
fn: function fn(data) {
|
fn: function fn(data) {
|
||||||
return _this4._handlePopperPlacementChange(data);
|
return _this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
onFirstUpdate: function onFirstUpdate(data) {
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
if (data.options.placement !== data.placement) {
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this.config.popperConfig === 'function' ? this.config.popperConfig(defaultBsPopperConfig) : this.config.popperConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||||
@ -3739,29 +3768,29 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
||||||
return _this5.toggle(event);
|
return _this6.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
||||||
EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
||||||
return _this5._enter(event);
|
return _this6._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
||||||
return _this5._leave(event);
|
return _this6._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this5._element) {
|
if (_this6._element) {
|
||||||
_this5.hide();
|
_this6.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3794,19 +3823,13 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._enter = function _enter(event, context) {
|
_proto._enter = function _enter(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) {
|
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
||||||
context._hoverState = HOVER_STATE_SHOW;
|
context._hoverState = HOVER_STATE_SHOW;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3827,13 +3850,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._leave = function _leave(event, context) {
|
_proto._leave = function _leave(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
||||||
@ -4014,21 +4031,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$6, Tooltip);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$6];
|
|
||||||
$.fn[NAME$6] = Tooltip.jQueryInterface;
|
|
||||||
$.fn[NAME$6].Constructor = Tooltip;
|
|
||||||
|
|
||||||
$.fn[NAME$6].noConflict = function () {
|
|
||||||
$.fn[NAME$6] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tooltip.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4044,6 +4047,7 @@ var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
|||||||
|
|
||||||
var Default$5 = _extends({}, Tooltip.Default, {
|
var Default$5 = _extends({}, Tooltip.Default, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
|
offset: [0, 8],
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
content: '',
|
content: '',
|
||||||
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
||||||
@ -4065,8 +4069,8 @@ var Event$2 = {
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$2 = 'fade';
|
var CLASS_NAME_FADE$3 = 'fade';
|
||||||
var CLASS_NAME_SHOW$4 = 'show';
|
var CLASS_NAME_SHOW$5 = 'show';
|
||||||
var SELECTOR_TITLE = '.popover-header';
|
var SELECTOR_TITLE = '.popover-header';
|
||||||
var SELECTOR_CONTENT = '.popover-body';
|
var SELECTOR_CONTENT = '.popover-body';
|
||||||
/**
|
/**
|
||||||
@ -4101,7 +4105,7 @@ var Popover = /*#__PURE__*/function (_Tooltip) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
||||||
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
tip.classList.remove(CLASS_NAME_FADE$3, CLASS_NAME_SHOW$5);
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -4154,8 +4158,8 @@ var Popover = /*#__PURE__*/function (_Tooltip) {
|
|||||||
|
|
||||||
_createClass(Popover, null, [{
|
_createClass(Popover, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return Default$5;
|
return Default$5;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -4195,21 +4199,7 @@ var Popover = /*#__PURE__*/function (_Tooltip) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$7, Popover);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$7];
|
|
||||||
$.fn[NAME$7] = Popover.jQueryInterface;
|
|
||||||
$.fn[NAME$7].Constructor = Popover;
|
|
||||||
|
|
||||||
$.fn[NAME$7].noConflict = function () {
|
|
||||||
$.fn[NAME$7] = JQUERY_NO_CONFLICT;
|
|
||||||
return Popover.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4265,8 +4255,8 @@ var ScrollSpy = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_this._targets = [];
|
_this._targets = [];
|
||||||
_this._activeTarget = null;
|
_this._activeTarget = null;
|
||||||
_this._scrollHeight = 0;
|
_this._scrollHeight = 0;
|
||||||
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function (event) {
|
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function () {
|
||||||
return _this._process(event);
|
return _this._process();
|
||||||
});
|
});
|
||||||
|
|
||||||
_this.refresh();
|
_this.refresh();
|
||||||
@ -4495,21 +4485,7 @@ EventHandler.on(window, EVENT_LOAD_DATA_API$1, function () {
|
|||||||
* add .ScrollSpy to jQuery only if jQuery is present
|
* add .ScrollSpy to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$8, ScrollSpy);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$8];
|
|
||||||
$.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
|
||||||
$.fn[NAME$8].Constructor = ScrollSpy;
|
|
||||||
|
|
||||||
$.fn[NAME$8].noConflict = function () {
|
|
||||||
$.fn[NAME$8] = JQUERY_NO_CONFLICT;
|
|
||||||
return ScrollSpy.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4529,8 +4505,8 @@ var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
|
|||||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||||
var CLASS_NAME_FADE$3 = 'fade';
|
var CLASS_NAME_FADE$4 = 'fade';
|
||||||
var CLASS_NAME_SHOW$5 = 'show';
|
var CLASS_NAME_SHOW$6 = 'show';
|
||||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||||
var SELECTOR_ACTIVE$1 = '.active';
|
var SELECTOR_ACTIVE$1 = '.active';
|
||||||
@ -4572,14 +4548,9 @@ var Tab = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = null;
|
var hideEvent = previous ? EventHandler.trigger(previous, EVENT_HIDE$3, {
|
||||||
|
|
||||||
if (previous) {
|
|
||||||
hideEvent = EventHandler.trigger(previous, EVENT_HIDE$3, {
|
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
});
|
}) : null;
|
||||||
}
|
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
@ -4612,7 +4583,7 @@ var Tab = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
||||||
var active = activeElements[0];
|
var active = activeElements[0];
|
||||||
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$3);
|
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$4);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
return _this2._transitionComplete(element, active, callback);
|
return _this2._transitionComplete(element, active, callback);
|
||||||
@ -4620,8 +4591,8 @@ var Tab = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
if (active && isTransitioning) {
|
if (active && isTransitioning) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(active);
|
var transitionDuration = getTransitionDurationFromElement(active);
|
||||||
active.classList.remove(CLASS_NAME_SHOW$5);
|
active.classList.remove(CLASS_NAME_SHOW$6);
|
||||||
EventHandler.one(active, TRANSITION_END, complete);
|
EventHandler.one(active, 'transitionend', complete);
|
||||||
emulateTransitionEnd(active, transitionDuration);
|
emulateTransitionEnd(active, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4650,8 +4621,8 @@ var Tab = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
reflow(element);
|
reflow(element);
|
||||||
|
|
||||||
if (element.classList.contains(CLASS_NAME_FADE$3)) {
|
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
||||||
element.classList.add(CLASS_NAME_SHOW$5);
|
element.classList.add(CLASS_NAME_SHOW$6);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
||||||
@ -4688,8 +4659,8 @@ var Tab = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
_createClass(Tab, null, [{
|
_createClass(Tab, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$9;
|
return DATA_KEY$9;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -4715,21 +4686,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, functi
|
|||||||
* add .Tab to jQuery only if jQuery is present
|
* add .Tab to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$9, Tab);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$9];
|
|
||||||
$.fn[NAME$9] = Tab.jQueryInterface;
|
|
||||||
$.fn[NAME$9].Constructor = Tab;
|
|
||||||
|
|
||||||
$.fn[NAME$9].noConflict = function () {
|
|
||||||
$.fn[NAME$9] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tab.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4745,9 +4702,9 @@ var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
|
|||||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
||||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
||||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
||||||
var CLASS_NAME_FADE$4 = 'fade';
|
var CLASS_NAME_FADE$5 = 'fade';
|
||||||
var CLASS_NAME_HIDE = 'hide';
|
var CLASS_NAME_HIDE = 'hide';
|
||||||
var CLASS_NAME_SHOW$6 = 'show';
|
var CLASS_NAME_SHOW$7 = 'show';
|
||||||
var CLASS_NAME_SHOWING = 'showing';
|
var CLASS_NAME_SHOWING = 'showing';
|
||||||
var DefaultType$7 = {
|
var DefaultType$7 = {
|
||||||
animation: 'boolean',
|
animation: 'boolean',
|
||||||
@ -4797,13 +4754,13 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(CLASS_NAME_FADE$4);
|
this._element.classList.add(CLASS_NAME_FADE$5);
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_SHOW$6);
|
_this2._element.classList.add(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
||||||
|
|
||||||
@ -4822,7 +4779,7 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4832,7 +4789,7 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (!this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4848,11 +4805,11 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4862,8 +4819,8 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
||||||
@ -4941,21 +4898,7 @@ var Toast = /*#__PURE__*/function (_BaseComponent) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$a, Toast);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$a];
|
|
||||||
$.fn[NAME$a] = Toast.jQueryInterface;
|
|
||||||
$.fn[NAME$a].Constructor = Toast;
|
|
||||||
|
|
||||||
$.fn[NAME$a].noConflict = function () {
|
|
||||||
$.fn[NAME$a] = JQUERY_NO_CONFLICT;
|
|
||||||
return Toast.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
export { Alert, Button, Carousel, Collapse, Dropdown, Modal, Popover, ScrollSpy, Tab, Toast, Tooltip };
|
export { Alert, Button, Carousel, Collapse, Dropdown, Modal, Popover, ScrollSpy, Tab, Toast, Tooltip };
|
||||||
//# sourceMappingURL=bootstrap.esm.js.map
|
//# sourceMappingURL=bootstrap.esm.js.map
|
||||||
|
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
6
dist/js/bootstrap.esm.min.js
vendored
6
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
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -68,12 +68,22 @@
|
|||||||
function _inheritsLoose(subClass, superClass) {
|
function _inheritsLoose(subClass, superClass) {
|
||||||
subClass.prototype = Object.create(superClass.prototype);
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
subClass.prototype.constructor = subClass;
|
subClass.prototype.constructor = subClass;
|
||||||
subClass.__proto__ = superClass;
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -107,7 +117,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,7 +208,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -256,9 +279,27 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
|
if ($) {
|
||||||
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
|
$.fn[name].Constructor = plugin;
|
||||||
|
|
||||||
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
|
return plugin.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/data.js
|
* Bootstrap (v5.0.0-beta2): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -325,7 +366,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta2): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -385,6 +426,7 @@
|
|||||||
event.delegateTarget = target;
|
event.delegateTarget = target;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
|
// eslint-disable-next-line unicorn/consistent-destructuring
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -604,7 +646,7 @@
|
|||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
var VERSION = '5.0.0-beta2';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
@ -653,9 +695,9 @@
|
|||||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
var CLASSNAME_ALERT = 'alert';
|
var CLASS_NAME_ALERT = 'alert';
|
||||||
var CLASSNAME_FADE = 'fade';
|
var CLASS_NAME_FADE = 'fade';
|
||||||
var CLASSNAME_SHOW = 'show';
|
var CLASS_NAME_SHOW = 'show';
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -686,7 +728,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
_proto._getRootElement = function _getRootElement(element) {
|
_proto._getRootElement = function _getRootElement(element) {
|
||||||
return getElementFromSelector(element) || element.closest("." + CLASSNAME_ALERT);
|
return getElementFromSelector(element) || element.closest("." + CLASS_NAME_ALERT);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||||
@ -696,16 +738,16 @@
|
|||||||
_proto._removeElement = function _removeElement(element) {
|
_proto._removeElement = function _removeElement(element) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
element.classList.remove(CLASSNAME_SHOW);
|
element.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
if (!element.classList.contains(CLASSNAME_FADE)) {
|
if (!element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
this._destroyElement(element);
|
this._destroyElement(element);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(element);
|
var transitionDuration = getTransitionDurationFromElement(element);
|
||||||
EventHandler.one(element, TRANSITION_END, function () {
|
EventHandler.one(element, 'transitionend', function () {
|
||||||
return _this._destroyElement(element);
|
return _this._destroyElement(element);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(element, transitionDuration);
|
emulateTransitionEnd(element, transitionDuration);
|
||||||
@ -746,8 +788,8 @@
|
|||||||
|
|
||||||
_createClass(Alert, null, [{
|
_createClass(Alert, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -769,21 +811,7 @@
|
|||||||
* add .Alert to jQuery only if jQuery is present
|
* add .Alert to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Alert);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Alert.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Alert;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Alert.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -836,8 +864,8 @@
|
|||||||
|
|
||||||
_createClass(Button, null, [{
|
_createClass(Button, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$1;
|
return DATA_KEY$1;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -869,25 +897,11 @@
|
|||||||
* add .Button to jQuery only if jQuery is present
|
* add .Button to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$1, Button);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$1];
|
|
||||||
$.fn[NAME$1] = Button.jQueryInterface;
|
|
||||||
$.fn[NAME$1].Constructor = Button;
|
|
||||||
|
|
||||||
$.fn[NAME$1].noConflict = function () {
|
|
||||||
$.fn[NAME$1] = JQUERY_NO_CONFLICT;
|
|
||||||
return Button.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta2): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -959,7 +973,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta2): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -971,9 +985,6 @@
|
|||||||
*/
|
*/
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches(element, selector) {
|
|
||||||
return element.matches(selector);
|
|
||||||
},
|
|
||||||
find: function find(selector, element) {
|
find: function find(selector, element) {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -993,9 +1004,7 @@
|
|||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
||||||
var children = (_ref2 = []).concat.apply(_ref2, element.children);
|
return (_ref2 = []).concat.apply(_ref2, element.children).filter(function (child) {
|
||||||
|
|
||||||
return children.filter(function (child) {
|
|
||||||
return child.matches(selector);
|
return child.matches(selector);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1004,7 +1013,7 @@
|
|||||||
var ancestor = element.parentNode;
|
var ancestor = element.parentNode;
|
||||||
|
|
||||||
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
||||||
if (this.matches(ancestor, selector)) {
|
if (ancestor.matches(selector)) {
|
||||||
parents.push(ancestor);
|
parents.push(ancestor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1030,7 +1039,7 @@
|
|||||||
var next = element.nextElementSibling;
|
var next = element.nextElementSibling;
|
||||||
|
|
||||||
while (next) {
|
while (next) {
|
||||||
if (this.matches(next, selector)) {
|
if (next.matches(selector)) {
|
||||||
return [next];
|
return [next];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1103,12 +1112,11 @@
|
|||||||
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
||||||
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
||||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||||
|
var SELECTOR_INDICATOR = '[data-bs-target]';
|
||||||
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
||||||
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
||||||
var PointerType = {
|
var POINTER_TYPE_TOUCH = 'touch';
|
||||||
TOUCH: 'touch',
|
var POINTER_TYPE_PEN = 'pen';
|
||||||
PEN: 'pen'
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -1255,13 +1263,21 @@
|
|||||||
this.touchDeltaX = 0; // swipe left
|
this.touchDeltaX = 0; // swipe left
|
||||||
|
|
||||||
if (direction > 0) {
|
if (direction > 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.next();
|
||||||
|
} else {
|
||||||
this.prev();
|
this.prev();
|
||||||
|
}
|
||||||
} // swipe right
|
} // swipe right
|
||||||
|
|
||||||
|
|
||||||
if (direction < 0) {
|
if (direction < 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
this.next();
|
this.next();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
@ -1291,7 +1307,7 @@
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var start = function start(event) {
|
var start = function start(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchStartX = event.clientX;
|
_this4.touchStartX = event.clientX;
|
||||||
} else if (!_this4._pointerEvent) {
|
} else if (!_this4._pointerEvent) {
|
||||||
_this4.touchStartX = event.touches[0].clientX;
|
_this4.touchStartX = event.touches[0].clientX;
|
||||||
@ -1308,7 +1324,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var end = function end(event) {
|
var end = function end(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1367,16 +1383,22 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event.key) {
|
if (event.key === ARROW_LEFT_KEY) {
|
||||||
case ARROW_LEFT_KEY:
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.prev();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ARROW_RIGHT_KEY:
|
if (isRTL) {
|
||||||
event.preventDefault();
|
|
||||||
this.next();
|
this.next();
|
||||||
break;
|
} else {
|
||||||
|
this.prev();
|
||||||
|
}
|
||||||
|
} else if (event.key === ARROW_RIGHT_KEY) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1418,16 +1440,17 @@
|
|||||||
|
|
||||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||||
if (this._indicatorsElement) {
|
if (this._indicatorsElement) {
|
||||||
var indicators = SelectorEngine.find(SELECTOR_ACTIVE, this._indicatorsElement);
|
var activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);
|
||||||
|
activeIndicator.classList.remove(CLASS_NAME_ACTIVE$1);
|
||||||
|
activeIndicator.removeAttribute('aria-current');
|
||||||
|
var indicators = SelectorEngine.find(SELECTOR_INDICATOR, this._indicatorsElement);
|
||||||
|
|
||||||
for (var i = 0; i < indicators.length; i++) {
|
for (var i = 0; i < indicators.length; i++) {
|
||||||
indicators[i].classList.remove(CLASS_NAME_ACTIVE$1);
|
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
|
||||||
|
indicators[i].classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
|
indicators[i].setAttribute('aria-current', 'true');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
|
||||||
|
|
||||||
if (nextIndicator) {
|
|
||||||
nextIndicator.classList.add(CLASS_NAME_ACTIVE$1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1461,19 +1484,9 @@
|
|||||||
var nextElementIndex = this._getItemIndex(nextElement);
|
var nextElementIndex = this._getItemIndex(nextElement);
|
||||||
|
|
||||||
var isCycling = Boolean(this._interval);
|
var isCycling = Boolean(this._interval);
|
||||||
var directionalClassName;
|
var directionalClassName = direction === DIRECTION_NEXT ? CLASS_NAME_START : CLASS_NAME_END;
|
||||||
var orderClassName;
|
var orderClassName = direction === DIRECTION_NEXT ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
|
||||||
var eventDirectionName;
|
var eventDirectionName = direction === DIRECTION_NEXT ? DIRECTION_LEFT : DIRECTION_RIGHT;
|
||||||
|
|
||||||
if (direction === DIRECTION_NEXT) {
|
|
||||||
directionalClassName = CLASS_NAME_START;
|
|
||||||
orderClassName = CLASS_NAME_NEXT;
|
|
||||||
eventDirectionName = DIRECTION_LEFT;
|
|
||||||
} else {
|
|
||||||
directionalClassName = CLASS_NAME_END;
|
|
||||||
orderClassName = CLASS_NAME_PREV;
|
|
||||||
eventDirectionName = DIRECTION_RIGHT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE$1)) {
|
||||||
this._isSliding = false;
|
this._isSliding = false;
|
||||||
@ -1507,7 +1520,7 @@
|
|||||||
activeElement.classList.add(directionalClassName);
|
activeElement.classList.add(directionalClassName);
|
||||||
nextElement.classList.add(directionalClassName);
|
nextElement.classList.add(directionalClassName);
|
||||||
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
||||||
EventHandler.one(activeElement, TRANSITION_END, function () {
|
EventHandler.one(activeElement, 'transitionend', function () {
|
||||||
nextElement.classList.remove(directionalClassName, orderClassName);
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
nextElement.classList.add(CLASS_NAME_ACTIVE$1);
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
|
||||||
@ -1635,21 +1648,7 @@
|
|||||||
* add .Carousel to jQuery only if jQuery is present
|
* add .Carousel to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$2, Carousel);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$2];
|
|
||||||
$.fn[NAME$2] = Carousel.jQueryInterface;
|
|
||||||
$.fn[NAME$2].Constructor = Carousel;
|
|
||||||
|
|
||||||
$.fn[NAME$2].noConflict = function () {
|
|
||||||
$.fn[NAME$2] = JQUERY_NO_CONFLICT;
|
|
||||||
return Carousel.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -1674,7 +1673,7 @@
|
|||||||
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
var EVENT_HIDE = "hide" + EVENT_KEY$3;
|
||||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
|
||||||
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
|
||||||
var CLASS_NAME_SHOW = 'show';
|
var CLASS_NAME_SHOW$1 = 'show';
|
||||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||||
@ -1732,7 +1731,7 @@
|
|||||||
|
|
||||||
// Public
|
// Public
|
||||||
_proto.toggle = function toggle() {
|
_proto.toggle = function toggle() {
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
this.show();
|
this.show();
|
||||||
@ -1742,7 +1741,7 @@
|
|||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1814,7 +1813,7 @@
|
|||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
_this2._element.style[dimension] = '';
|
_this2._element.style[dimension] = '';
|
||||||
|
|
||||||
@ -1826,7 +1825,7 @@
|
|||||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||||
var scrollSize = "scroll" + capitalizedDimension;
|
var scrollSize = "scroll" + capitalizedDimension;
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||||
};
|
};
|
||||||
@ -1834,7 +1833,7 @@
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1851,7 +1850,7 @@
|
|||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
this._element.classList.add(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$1);
|
||||||
|
|
||||||
var triggerArrayLength = this._triggerArray.length;
|
var triggerArrayLength = this._triggerArray.length;
|
||||||
|
|
||||||
@ -1860,7 +1859,7 @@
|
|||||||
var trigger = this._triggerArray[i];
|
var trigger = this._triggerArray[i];
|
||||||
var elem = getElementFromSelector(trigger);
|
var elem = getElementFromSelector(trigger);
|
||||||
|
|
||||||
if (elem && !elem.classList.contains(CLASS_NAME_SHOW)) {
|
if (elem && !elem.classList.contains(CLASS_NAME_SHOW$1)) {
|
||||||
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
trigger.classList.add(CLASS_NAME_COLLAPSED);
|
||||||
trigger.setAttribute('aria-expanded', false);
|
trigger.setAttribute('aria-expanded', false);
|
||||||
}
|
}
|
||||||
@ -1881,7 +1880,7 @@
|
|||||||
|
|
||||||
this._element.style[dimension] = '';
|
this._element.style[dimension] = '';
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1939,7 +1938,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isOpen = element.classList.contains(CLASS_NAME_SHOW);
|
var isOpen = element.classList.contains(CLASS_NAME_SHOW$1);
|
||||||
triggerArray.forEach(function (elem) {
|
triggerArray.forEach(function (elem) {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
||||||
@ -2003,7 +2002,7 @@
|
|||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||||
if (event.target.tagName === 'A') {
|
if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2036,21 +2035,7 @@
|
|||||||
* add .Collapse to jQuery only if jQuery is present
|
* add .Collapse to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$3, Collapse);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$3];
|
|
||||||
$.fn[NAME$3] = Collapse.jQueryInterface;
|
|
||||||
$.fn[NAME$3].Constructor = Collapse;
|
|
||||||
|
|
||||||
$.fn[NAME$3].noConflict = function () {
|
|
||||||
$.fn[NAME$3] = JQUERY_NO_CONFLICT;
|
|
||||||
return Collapse.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2079,7 +2064,7 @@
|
|||||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||||
var CLASS_NAME_DISABLED = 'disabled';
|
var CLASS_NAME_DISABLED = 'disabled';
|
||||||
var CLASS_NAME_SHOW$1 = 'show';
|
var CLASS_NAME_SHOW$2 = 'show';
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
@ -2096,7 +2081,7 @@
|
|||||||
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
||||||
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default$2 = {
|
var Default$2 = {
|
||||||
offset: 0,
|
offset: [0, 2],
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
@ -2104,12 +2089,12 @@
|
|||||||
popperConfig: null
|
popperConfig: null
|
||||||
};
|
};
|
||||||
var DefaultType$2 = {
|
var DefaultType$2 = {
|
||||||
offset: '(number|string|function)',
|
offset: '(array|string|function)',
|
||||||
flip: 'boolean',
|
flip: 'boolean',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
reference: '(string|element)',
|
reference: '(string|element|object)',
|
||||||
display: 'string',
|
display: 'string',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2143,7 +2128,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this._element.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
|
|
||||||
@ -2155,7 +2140,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2170,7 +2155,9 @@
|
|||||||
} // Totally disable Popper for Dropdowns in Navbar
|
} // Totally disable Popper for Dropdowns in Navbar
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'none');
|
||||||
|
} else {
|
||||||
if (typeof Popper__namespace === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
@ -2185,9 +2172,20 @@
|
|||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
|
} else if (typeof this._config.reference === 'object') {
|
||||||
|
referenceElement = this._config.reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
|
var popperConfig = this._getPopperConfig();
|
||||||
|
|
||||||
|
var isDisplayStatic = popperConfig.modifiers.find(function (modifier) {
|
||||||
|
return modifier.name === 'applyStyles' && modifier.enabled === false;
|
||||||
|
});
|
||||||
|
this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);
|
||||||
|
|
||||||
|
if (isDisplayStatic) {
|
||||||
|
Manipulator.setDataAttribute(this._menu, 'popper', 'static');
|
||||||
|
}
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
@ -2206,23 +2204,22 @@
|
|||||||
|
|
||||||
this._element.setAttribute('aria-expanded', true);
|
this._element.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_SHOWN$1, relatedTarget);
|
EventHandler.trigger(this._element, EVENT_SHOWN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$1)) {
|
if (this._element.disabled || this._element.classList.contains(CLASS_NAME_DISABLED) || !this._menu.classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this._element);
|
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
@ -2232,11 +2229,12 @@
|
|||||||
this._popper.destroy();
|
this._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW$1);
|
this._menu.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW$1);
|
this._element.classList.toggle(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(this._menu, 'popper');
|
||||||
|
EventHandler.trigger(this._element, EVENT_HIDDEN$1, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
@ -2275,6 +2273,12 @@
|
|||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
config = _extends({}, this.constructor.Default, Manipulator.getDataAttributes(this._element), config);
|
||||||
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||||
|
|
||||||
|
if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
|
||||||
|
// Popper virtual elements require a getBoundingClientRect method
|
||||||
|
throw new TypeError(NAME$4.toUpperCase() + ": Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.");
|
||||||
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2307,26 +2311,51 @@
|
|||||||
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._getOffset = function _getOffset() {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
var offset = this._config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this3._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var defaultBsPopperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: [{
|
modifiers: [{
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
altBoundary: this._config.flip,
|
altBoundary: this._config.flip,
|
||||||
rootBoundary: this._config.boundary
|
boundary: this._config.boundary
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers = [{
|
defaultBsPopperConfig.modifiers = [{
|
||||||
name: 'applyStyles',
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -2362,7 +2391,6 @@
|
|||||||
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE$2);
|
||||||
|
|
||||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
|
||||||
var context = Data.getData(toggles[i], DATA_KEY$4);
|
var context = Data.getData(toggles[i], DATA_KEY$4);
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: toggles[i]
|
relatedTarget: toggles[i]
|
||||||
@ -2378,7 +2406,7 @@
|
|||||||
|
|
||||||
var dropdownMenu = context._menu;
|
var dropdownMenu = context._menu;
|
||||||
|
|
||||||
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$1)) {
|
if (!toggles[i].classList.contains(CLASS_NAME_SHOW$2)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2386,7 +2414,7 @@
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE$1, relatedTarget);
|
var hideEvent = EventHandler.trigger(toggles[i], EVENT_HIDE$1, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
continue;
|
continue;
|
||||||
@ -2408,9 +2436,10 @@
|
|||||||
context._popper.destroy();
|
context._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
dropdownMenu.classList.remove(CLASS_NAME_SHOW$1);
|
dropdownMenu.classList.remove(CLASS_NAME_SHOW$2);
|
||||||
toggles[i].classList.remove(CLASS_NAME_SHOW$1);
|
toggles[i].classList.remove(CLASS_NAME_SHOW$2);
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN$1, relatedTarget);
|
Manipulator.removeDataAttribute(dropdownMenu, 'popper');
|
||||||
|
EventHandler.trigger(toggles[i], EVENT_HIDDEN$1, relatedTarget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2438,7 +2467,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this);
|
var parent = Dropdown.getParentFromElement(this);
|
||||||
var isActive = this.classList.contains(CLASS_NAME_SHOW$1);
|
var isActive = this.classList.contains(CLASS_NAME_SHOW$2);
|
||||||
|
|
||||||
if (event.key === ESCAPE_KEY) {
|
if (event.key === ESCAPE_KEY) {
|
||||||
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
var button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
@ -2447,6 +2476,14 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isActive && (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY)) {
|
||||||
|
var _button = this.matches(SELECTOR_DATA_TOGGLE$2) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$2)[0];
|
||||||
|
|
||||||
|
_button.click();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isActive || event.key === SPACE_KEY) {
|
if (!isActive || event.key === SPACE_KEY) {
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
return;
|
return;
|
||||||
@ -2519,21 +2556,7 @@
|
|||||||
* add .Dropdown to jQuery only if jQuery is present
|
* add .Dropdown to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$4, Dropdown);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$4];
|
|
||||||
$.fn[NAME$4] = Dropdown.jQueryInterface;
|
|
||||||
$.fn[NAME$4].Constructor = Dropdown;
|
|
||||||
|
|
||||||
$.fn[NAME$4].noConflict = function () {
|
|
||||||
$.fn[NAME$4] = JQUERY_NO_CONFLICT;
|
|
||||||
return Dropdown.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -2571,8 +2594,8 @@
|
|||||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||||
var CLASS_NAME_OPEN = 'modal-open';
|
var CLASS_NAME_OPEN = 'modal-open';
|
||||||
var CLASS_NAME_FADE = 'fade';
|
var CLASS_NAME_FADE$1 = 'fade';
|
||||||
var CLASS_NAME_SHOW$2 = 'show';
|
var CLASS_NAME_SHOW$3 = 'show';
|
||||||
var CLASS_NAME_STATIC = 'modal-static';
|
var CLASS_NAME_STATIC = 'modal-static';
|
||||||
var SELECTOR_DIALOG = '.modal-dialog';
|
var SELECTOR_DIALOG = '.modal-dialog';
|
||||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||||
@ -2619,7 +2642,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2678,7 +2701,7 @@
|
|||||||
|
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
@ -2690,14 +2713,14 @@
|
|||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN);
|
EventHandler.off(document, EVENT_FOCUSIN);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$2);
|
this._element.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
||||||
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, function (event) {
|
EventHandler.one(this._element, 'transitionend', function (event) {
|
||||||
return _this3._hideModal(event);
|
return _this3._hideModal(event);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
@ -2744,7 +2767,7 @@
|
|||||||
_proto._showElement = function _showElement(relatedTarget) {
|
_proto._showElement = function _showElement(relatedTarget) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE$1);
|
||||||
|
|
||||||
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
||||||
|
|
||||||
@ -2771,7 +2794,7 @@
|
|||||||
reflow(this._element);
|
reflow(this._element);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_SHOW$2);
|
this._element.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (this._config.focus) {
|
if (this._config.focus) {
|
||||||
this._enforceFocus();
|
this._enforceFocus();
|
||||||
@ -2790,7 +2813,7 @@
|
|||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.one(this._dialog, TRANSITION_END, transitionComplete);
|
EventHandler.one(this._dialog, 'transitionend', transitionComplete);
|
||||||
emulateTransitionEnd(this._dialog, transitionDuration);
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
transitionComplete();
|
transitionComplete();
|
||||||
@ -2872,7 +2895,7 @@
|
|||||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||||
var _this9 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
var animate = this._element.classList.contains(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
||||||
|
|
||||||
if (this._isShown && this._config.backdrop) {
|
if (this._isShown && this._config.backdrop) {
|
||||||
this._backdrop = document.createElement('div');
|
this._backdrop = document.createElement('div');
|
||||||
@ -2904,7 +2927,7 @@
|
|||||||
reflow(this._backdrop);
|
reflow(this._backdrop);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._backdrop.classList.add(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.add(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
if (!animate) {
|
if (!animate) {
|
||||||
callback();
|
callback();
|
||||||
@ -2912,10 +2935,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callback);
|
EventHandler.one(this._backdrop, 'transitionend', callback);
|
||||||
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
||||||
} else if (!this._isShown && this._backdrop) {
|
} else if (!this._isShown && this._backdrop) {
|
||||||
this._backdrop.classList.remove(CLASS_NAME_SHOW$2);
|
this._backdrop.classList.remove(CLASS_NAME_SHOW$3);
|
||||||
|
|
||||||
var callbackRemove = function callbackRemove() {
|
var callbackRemove = function callbackRemove() {
|
||||||
_this9._removeBackdrop();
|
_this9._removeBackdrop();
|
||||||
@ -2923,10 +2946,10 @@
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||||
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
|
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callbackRemove);
|
EventHandler.one(this._backdrop, 'transitionend', callbackRemove);
|
||||||
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
||||||
} else {
|
} else {
|
||||||
callbackRemove();
|
callbackRemove();
|
||||||
@ -2954,12 +2977,12 @@
|
|||||||
this._element.classList.add(CLASS_NAME_STATIC);
|
this._element.classList.add(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.off(this._element, TRANSITION_END);
|
EventHandler.off(this._element, 'transitionend');
|
||||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
EventHandler.one(this._element, 'transitionend', function () {
|
||||||
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
if (!isModalOverflowing) {
|
if (!isModalOverflowing) {
|
||||||
EventHandler.one(_this10._element, TRANSITION_END, function () {
|
EventHandler.one(_this10._element, 'transitionend', function () {
|
||||||
_this10._element.style.overflowY = '';
|
_this10._element.style.overflowY = '';
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
||||||
@ -3000,60 +3023,50 @@
|
|||||||
var _this11 = this;
|
var _this11 = this;
|
||||||
|
|
||||||
if (this._isBodyOverflowing) {
|
if (this._isBodyOverflowing) {
|
||||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
this._setElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight', function (calculatedValue) {
|
||||||
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
// Adjust fixed content padding
|
});
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var actualPadding = element.style.paddingRight;
|
|
||||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
|
||||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
|
||||||
element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust sticky content margin
|
|
||||||
|
|
||||||
SelectorEngine.find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._setElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight', function (calculatedValue) {
|
||||||
var actualMargin = element.style.marginRight;
|
return calculatedValue - _this11._scrollbarWidth;
|
||||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
});
|
||||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
|
||||||
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust body padding
|
|
||||||
|
|
||||||
var actualPadding = document.body.style.paddingRight;
|
this._setElementAttributes('body', 'paddingRight', function (calculatedValue) {
|
||||||
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
Manipulator.setDataAttribute(document.body, 'padding-right', actualPadding);
|
});
|
||||||
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.add(CLASS_NAME_OPEN);
|
document.body.classList.add(CLASS_NAME_OPEN);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._setElementAttributes = function _setElementAttributes(selector, styleProp, callback) {
|
||||||
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
|
var actualValue = element.style[styleProp];
|
||||||
|
var calculatedValue = window.getComputedStyle(element)[styleProp];
|
||||||
|
Manipulator.setDataAttribute(element, styleProp, actualValue);
|
||||||
|
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
_proto._resetScrollbar = function _resetScrollbar() {
|
_proto._resetScrollbar = function _resetScrollbar() {
|
||||||
// Restore fixed content padding
|
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight');
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var padding = Manipulator.getDataAttribute(element, 'padding-right');
|
|
||||||
|
|
||||||
if (typeof padding !== 'undefined') {
|
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight');
|
||||||
Manipulator.removeDataAttribute(element, 'padding-right');
|
|
||||||
element.style.paddingRight = padding;
|
|
||||||
}
|
|
||||||
}); // Restore sticky content and navbar-toggler margin
|
|
||||||
|
|
||||||
SelectorEngine.find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._resetElementAttributes('body', 'paddingRight');
|
||||||
var margin = Manipulator.getDataAttribute(element, 'margin-right');
|
};
|
||||||
|
|
||||||
if (typeof margin !== 'undefined') {
|
_proto._resetElementAttributes = function _resetElementAttributes(selector, styleProp) {
|
||||||
Manipulator.removeDataAttribute(element, 'margin-right');
|
SelectorEngine.find(selector).forEach(function (element) {
|
||||||
element.style.marginRight = margin;
|
var value = Manipulator.getDataAttribute(element, styleProp);
|
||||||
}
|
|
||||||
}); // Restore body padding
|
|
||||||
|
|
||||||
var padding = Manipulator.getDataAttribute(document.body, 'padding-right');
|
if (typeof value === 'undefined' && element === document.body) {
|
||||||
|
element.style[styleProp] = '';
|
||||||
if (typeof padding === 'undefined') {
|
|
||||||
document.body.style.paddingRight = '';
|
|
||||||
} else {
|
} else {
|
||||||
Manipulator.removeDataAttribute(document.body, 'padding-right');
|
Manipulator.removeDataAttribute(element, styleProp);
|
||||||
document.body.style.paddingRight = padding;
|
element.style[styleProp] = value;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
||||||
@ -3137,7 +3150,7 @@
|
|||||||
data = new Modal(target, config);
|
data = new Modal(target, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.show(this);
|
data.toggle(this);
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -3146,25 +3159,11 @@
|
|||||||
* add .Modal to jQuery only if jQuery is present
|
* add .Modal to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$5, Modal);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$5];
|
|
||||||
$.fn[NAME$5] = Modal.jQueryInterface;
|
|
||||||
$.fn[NAME$5].Constructor = Modal;
|
|
||||||
|
|
||||||
$.fn[NAME$5].noConflict = function () {
|
|
||||||
$.fn[NAME$5] = JQUERY_NO_CONFLICT;
|
|
||||||
return Modal.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta2): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -3190,7 +3189,7 @@
|
|||||||
|
|
||||||
if (allowedAttributeList.includes(attrName)) {
|
if (allowedAttributeList.includes(attrName)) {
|
||||||
if (uriAttrs.has(attrName)) {
|
if (uriAttrs.has(attrName)) {
|
||||||
return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
|
return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -3201,7 +3200,7 @@
|
|||||||
}); // Check if a regular expression validates the attribute.
|
}); // Check if a regular expression validates the attribute.
|
||||||
|
|
||||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||||
if (attrName.match(regExp[i])) {
|
if (regExp[i].test(attrName)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3310,14 +3309,15 @@
|
|||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
|
offset: '(array|string|function)',
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacements: '(null|array)',
|
fallbackPlacements: 'array',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
sanitizeFn: '(null|function)',
|
sanitizeFn: '(null|function)',
|
||||||
allowList: 'object',
|
allowList: 'object',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
var AttachmentMap = {
|
var AttachmentMap = {
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
@ -3335,8 +3335,9 @@
|
|||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
|
offset: [0, 0],
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacements: null,
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
@ -3356,9 +3357,9 @@
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$1 = 'fade';
|
var CLASS_NAME_FADE$2 = 'fade';
|
||||||
var CLASS_NAME_MODAL = 'modal';
|
var CLASS_NAME_MODAL = 'modal';
|
||||||
var CLASS_NAME_SHOW$3 = 'show';
|
var CLASS_NAME_SHOW$4 = 'show';
|
||||||
var HOVER_STATE_SHOW = 'show';
|
var HOVER_STATE_SHOW = 'show';
|
||||||
var HOVER_STATE_OUT = 'out';
|
var HOVER_STATE_OUT = 'out';
|
||||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||||
@ -3420,13 +3421,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
var context = this._initializeOnDelegatedTarget(event);
|
||||||
var context = Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
context._activeTrigger.click = !context._activeTrigger.click;
|
context._activeTrigger.click = !context._activeTrigger.click;
|
||||||
|
|
||||||
@ -3436,7 +3431,7 @@
|
|||||||
context._leave(null, context);
|
context._leave(null, context);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)) {
|
if (this.getTipElement().classList.contains(CLASS_NAME_SHOW$4)) {
|
||||||
this._leave(null, this);
|
this._leave(null, this);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -3451,7 +3446,7 @@
|
|||||||
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
EventHandler.off(this._element, this.constructor.EVENT_KEY);
|
||||||
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip && this.tip.parentNode) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3478,7 +3473,10 @@
|
|||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (!(this.isWithContent() && this._isEnabled)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
|
||||||
var shadowRoot = findShadowRoot(this._element);
|
var shadowRoot = findShadowRoot(this._element);
|
||||||
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
||||||
@ -3496,7 +3494,7 @@
|
|||||||
this.setContent();
|
this.setContent();
|
||||||
|
|
||||||
if (this.config.animation) {
|
if (this.config.animation) {
|
||||||
tip.classList.add(CLASS_NAME_FADE$1);
|
tip.classList.add(CLASS_NAME_FADE$2);
|
||||||
}
|
}
|
||||||
|
|
||||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
|
||||||
@ -3515,7 +3513,7 @@
|
|||||||
|
|
||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
|
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW$3);
|
tip.classList.add(CLASS_NAME_SHOW$4);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
if (customClass) {
|
if (customClass) {
|
||||||
@ -3546,14 +3544,13 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
||||||
EventHandler.one(this.tip, TRANSITION_END, complete);
|
EventHandler.one(this.tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this.tip, transitionDuration);
|
emulateTransitionEnd(this.tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
@ -3589,7 +3586,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra
|
tip.classList.remove(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
||||||
// empty mouseover listeners we added for iOS support
|
// empty mouseover listeners we added for iOS support
|
||||||
|
|
||||||
if ('ontouchstart' in document.documentElement) {
|
if ('ontouchstart' in document.documentElement) {
|
||||||
@ -3604,9 +3601,9 @@
|
|||||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE$1)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE$2)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(tip);
|
var transitionDuration = getTransitionDurationFromElement(tip);
|
||||||
EventHandler.one(tip, TRANSITION_END, complete);
|
EventHandler.one(tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(tip, transitionDuration);
|
emulateTransitionEnd(tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -3640,7 +3637,7 @@
|
|||||||
_proto.setContent = function setContent() {
|
_proto.setContent = function setContent() {
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle());
|
||||||
tip.classList.remove(CLASS_NAME_FADE$1, CLASS_NAME_SHOW$3);
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.setElementContent = function setElementContent(element, content) {
|
_proto.setElementContent = function setElementContent(element, content) {
|
||||||
@ -3700,26 +3697,58 @@
|
|||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._initializeOnDelegatedTarget = function _initializeOnDelegatedTarget(event, context) {
|
||||||
var _this4 = this;
|
var dataKey = this.constructor.DATA_KEY;
|
||||||
|
context = context || Data.getData(event.delegateTarget, dataKey);
|
||||||
|
|
||||||
var flipModifier = {
|
if (!context) {
|
||||||
name: 'flip',
|
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
||||||
options: {
|
Data.setData(event.delegateTarget, dataKey, context);
|
||||||
altBoundary: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return context;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.config.fallbackPlacements) {
|
_proto._getOffset = function _getOffset() {
|
||||||
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var offset = this.config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this4._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
|
var defaultBsPopperConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: [flipModifier, {
|
modifiers: [{
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true,
|
||||||
|
fallbackPlacements: this.config.fallbackPlacements
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
|
}
|
||||||
|
}, {
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
rootBoundary: this.config.boundary
|
boundary: this.config.boundary
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
name: 'arrow',
|
name: 'arrow',
|
||||||
@ -3731,16 +3760,16 @@
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
phase: 'afterWrite',
|
phase: 'afterWrite',
|
||||||
fn: function fn(data) {
|
fn: function fn(data) {
|
||||||
return _this4._handlePopperPlacementChange(data);
|
return _this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
onFirstUpdate: function onFirstUpdate(data) {
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
if (data.options.placement !== data.placement) {
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this.config.popperConfig === 'function' ? this.config.popperConfig(defaultBsPopperConfig) : this.config.popperConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||||
@ -3764,29 +3793,29 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
||||||
return _this5.toggle(event);
|
return _this6.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
||||||
EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
||||||
return _this5._enter(event);
|
return _this6._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
EventHandler.on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
||||||
return _this5._leave(event);
|
return _this6._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this5._element) {
|
if (_this6._element) {
|
||||||
_this5.hide();
|
_this6.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3819,19 +3848,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._enter = function _enter(event, context) {
|
_proto._enter = function _enter(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) {
|
if (context.getTipElement().classList.contains(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
||||||
context._hoverState = HOVER_STATE_SHOW;
|
context._hoverState = HOVER_STATE_SHOW;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3852,13 +3875,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._leave = function _leave(event, context) {
|
_proto._leave = function _leave(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data.getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data.setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
||||||
@ -4039,21 +4056,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$6, Tooltip);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$6];
|
|
||||||
$.fn[NAME$6] = Tooltip.jQueryInterface;
|
|
||||||
$.fn[NAME$6].Constructor = Tooltip;
|
|
||||||
|
|
||||||
$.fn[NAME$6].noConflict = function () {
|
|
||||||
$.fn[NAME$6] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tooltip.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4069,6 +4072,7 @@
|
|||||||
|
|
||||||
var Default$5 = _extends({}, Tooltip.Default, {
|
var Default$5 = _extends({}, Tooltip.Default, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
|
offset: [0, 8],
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
content: '',
|
content: '',
|
||||||
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
||||||
@ -4090,8 +4094,8 @@
|
|||||||
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
||||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
||||||
};
|
};
|
||||||
var CLASS_NAME_FADE$2 = 'fade';
|
var CLASS_NAME_FADE$3 = 'fade';
|
||||||
var CLASS_NAME_SHOW$4 = 'show';
|
var CLASS_NAME_SHOW$5 = 'show';
|
||||||
var SELECTOR_TITLE = '.popover-header';
|
var SELECTOR_TITLE = '.popover-header';
|
||||||
var SELECTOR_CONTENT = '.popover-body';
|
var SELECTOR_CONTENT = '.popover-body';
|
||||||
/**
|
/**
|
||||||
@ -4126,7 +4130,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
||||||
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$4);
|
tip.classList.remove(CLASS_NAME_FADE$3, CLASS_NAME_SHOW$5);
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -4179,8 +4183,8 @@
|
|||||||
|
|
||||||
_createClass(Popover, null, [{
|
_createClass(Popover, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return Default$5;
|
return Default$5;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -4220,21 +4224,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$7, Popover);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$7];
|
|
||||||
$.fn[NAME$7] = Popover.jQueryInterface;
|
|
||||||
$.fn[NAME$7].Constructor = Popover;
|
|
||||||
|
|
||||||
$.fn[NAME$7].noConflict = function () {
|
|
||||||
$.fn[NAME$7] = JQUERY_NO_CONFLICT;
|
|
||||||
return Popover.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4290,8 +4280,8 @@
|
|||||||
_this._targets = [];
|
_this._targets = [];
|
||||||
_this._activeTarget = null;
|
_this._activeTarget = null;
|
||||||
_this._scrollHeight = 0;
|
_this._scrollHeight = 0;
|
||||||
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function (event) {
|
EventHandler.on(_this._scrollElement, EVENT_SCROLL, function () {
|
||||||
return _this._process(event);
|
return _this._process();
|
||||||
});
|
});
|
||||||
|
|
||||||
_this.refresh();
|
_this.refresh();
|
||||||
@ -4520,21 +4510,7 @@
|
|||||||
* add .ScrollSpy to jQuery only if jQuery is present
|
* add .ScrollSpy to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$8, ScrollSpy);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$8];
|
|
||||||
$.fn[NAME$8] = ScrollSpy.jQueryInterface;
|
|
||||||
$.fn[NAME$8].Constructor = ScrollSpy;
|
|
||||||
|
|
||||||
$.fn[NAME$8].noConflict = function () {
|
|
||||||
$.fn[NAME$8] = JQUERY_NO_CONFLICT;
|
|
||||||
return ScrollSpy.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4554,8 +4530,8 @@
|
|||||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||||
var CLASS_NAME_FADE$3 = 'fade';
|
var CLASS_NAME_FADE$4 = 'fade';
|
||||||
var CLASS_NAME_SHOW$5 = 'show';
|
var CLASS_NAME_SHOW$6 = 'show';
|
||||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||||
var SELECTOR_ACTIVE$1 = '.active';
|
var SELECTOR_ACTIVE$1 = '.active';
|
||||||
@ -4597,14 +4573,9 @@
|
|||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = null;
|
var hideEvent = previous ? EventHandler.trigger(previous, EVENT_HIDE$3, {
|
||||||
|
|
||||||
if (previous) {
|
|
||||||
hideEvent = EventHandler.trigger(previous, EVENT_HIDE$3, {
|
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
});
|
}) : null;
|
||||||
}
|
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
@ -4637,7 +4608,7 @@
|
|||||||
|
|
||||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE$1);
|
||||||
var active = activeElements[0];
|
var active = activeElements[0];
|
||||||
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$3);
|
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE$4);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
return _this2._transitionComplete(element, active, callback);
|
return _this2._transitionComplete(element, active, callback);
|
||||||
@ -4645,8 +4616,8 @@
|
|||||||
|
|
||||||
if (active && isTransitioning) {
|
if (active && isTransitioning) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(active);
|
var transitionDuration = getTransitionDurationFromElement(active);
|
||||||
active.classList.remove(CLASS_NAME_SHOW$5);
|
active.classList.remove(CLASS_NAME_SHOW$6);
|
||||||
EventHandler.one(active, TRANSITION_END, complete);
|
EventHandler.one(active, 'transitionend', complete);
|
||||||
emulateTransitionEnd(active, transitionDuration);
|
emulateTransitionEnd(active, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4675,8 +4646,8 @@
|
|||||||
|
|
||||||
reflow(element);
|
reflow(element);
|
||||||
|
|
||||||
if (element.classList.contains(CLASS_NAME_FADE$3)) {
|
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
||||||
element.classList.add(CLASS_NAME_SHOW$5);
|
element.classList.add(CLASS_NAME_SHOW$6);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
||||||
@ -4713,8 +4684,8 @@
|
|||||||
|
|
||||||
_createClass(Tab, null, [{
|
_createClass(Tab, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY$9;
|
return DATA_KEY$9;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
@ -4740,21 +4711,7 @@
|
|||||||
* add .Tab to jQuery only if jQuery is present
|
* add .Tab to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$9, Tab);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$9];
|
|
||||||
$.fn[NAME$9] = Tab.jQueryInterface;
|
|
||||||
$.fn[NAME$9].Constructor = Tab;
|
|
||||||
|
|
||||||
$.fn[NAME$9].noConflict = function () {
|
|
||||||
$.fn[NAME$9] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tab.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -4770,9 +4727,9 @@
|
|||||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
||||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
||||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
||||||
var CLASS_NAME_FADE$4 = 'fade';
|
var CLASS_NAME_FADE$5 = 'fade';
|
||||||
var CLASS_NAME_HIDE = 'hide';
|
var CLASS_NAME_HIDE = 'hide';
|
||||||
var CLASS_NAME_SHOW$6 = 'show';
|
var CLASS_NAME_SHOW$7 = 'show';
|
||||||
var CLASS_NAME_SHOWING = 'showing';
|
var CLASS_NAME_SHOWING = 'showing';
|
||||||
var DefaultType$7 = {
|
var DefaultType$7 = {
|
||||||
animation: 'boolean',
|
animation: 'boolean',
|
||||||
@ -4822,13 +4779,13 @@
|
|||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
this._element.classList.add(CLASS_NAME_FADE$4);
|
this._element.classList.add(CLASS_NAME_FADE$5);
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
_this2._element.classList.remove(CLASS_NAME_SHOWING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_SHOW$6);
|
_this2._element.classList.add(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
|
||||||
|
|
||||||
@ -4847,7 +4804,7 @@
|
|||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4857,7 +4814,7 @@
|
|||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (!this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4873,11 +4830,11 @@
|
|||||||
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler.one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -4887,8 +4844,8 @@
|
|||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
this._clearTimeout();
|
this._clearTimeout();
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_SHOW$6)) {
|
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW$6);
|
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
|
||||||
@ -4966,25 +4923,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME$a, Toast);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME$a];
|
|
||||||
$.fn[NAME$a] = Toast.jQueryInterface;
|
|
||||||
$.fn[NAME$a].Constructor = Toast;
|
|
||||||
|
|
||||||
$.fn[NAME$a].noConflict = function () {
|
|
||||||
$.fn[NAME$a] = JQUERY_NO_CONFLICT;
|
|
||||||
return Toast.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): index.umd.js
|
* Bootstrap (v5.0.0-beta2): index.umd.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
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
6
dist/js/bootstrap.min.js
vendored
6
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
159
js/dist/alert.js
vendored
159
js/dist/alert.js
vendored
@ -1,22 +1,55 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap alert.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap alert.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Alert = factory(global.Data, global.EventHandler));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Alert = factory(global.Data, global.EventHandler, global.Base));
|
||||||
}(this, (function (Data, EventHandler) { 'use strict';
|
}(this, (function (Data, EventHandler, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -27,7 +60,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,57 +149,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -168,9 +183,9 @@
|
|||||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
var CLASSNAME_ALERT = 'alert';
|
var CLASS_NAME_ALERT = 'alert';
|
||||||
var CLASSNAME_FADE = 'fade';
|
var CLASS_NAME_FADE = 'fade';
|
||||||
var CLASSNAME_SHOW = 'show';
|
var CLASS_NAME_SHOW = 'show';
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -201,7 +216,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
_proto._getRootElement = function _getRootElement(element) {
|
_proto._getRootElement = function _getRootElement(element) {
|
||||||
return getElementFromSelector(element) || element.closest("." + CLASSNAME_ALERT);
|
return getElementFromSelector(element) || element.closest("." + CLASS_NAME_ALERT);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||||
@ -211,16 +226,16 @@
|
|||||||
_proto._removeElement = function _removeElement(element) {
|
_proto._removeElement = function _removeElement(element) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
element.classList.remove(CLASSNAME_SHOW);
|
element.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
if (!element.classList.contains(CLASSNAME_FADE)) {
|
if (!element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
this._destroyElement(element);
|
this._destroyElement(element);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(element);
|
var transitionDuration = getTransitionDurationFromElement(element);
|
||||||
EventHandler__default['default'].one(element, TRANSITION_END, function () {
|
EventHandler__default['default'].one(element, 'transitionend', function () {
|
||||||
return _this._destroyElement(element);
|
return _this._destroyElement(element);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(element, transitionDuration);
|
emulateTransitionEnd(element, transitionDuration);
|
||||||
@ -259,16 +274,16 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Alert, null, [{
|
_createClass(Alert, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Alert;
|
return Alert;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -284,21 +299,7 @@
|
|||||||
* add .Alert to jQuery only if jQuery is present
|
* add .Alert to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Alert);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Alert.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Alert;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Alert.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Alert;
|
return Alert;
|
||||||
|
|
||||||
|
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
76
js/dist/base-component.js
vendored
Normal file
76
js/dist/base-component.js
vendored
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap base-component.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/
|
||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['./dom/data'], factory) :
|
||||||
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Base = factory(global.Data));
|
||||||
|
}(this, (function (Data) { 'use strict';
|
||||||
|
|
||||||
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta2';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
|
||||||
|
})));
|
||||||
|
//# sourceMappingURL=base-component.js.map
|
1
js/dist/base-component.js.map
vendored
Normal file
1
js/dist/base-component.js.map
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"base-component.js","sources":["../src/base-component.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data'\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst VERSION = '5.0.0-beta2'\n\nclass BaseComponent {\n constructor(element) {\n if (!element) {\n return\n }\n\n this._element = element\n Data.setData(element, this.constructor.DATA_KEY, this)\n }\n\n dispose() {\n Data.removeData(this._element, this.constructor.DATA_KEY)\n this._element = null\n }\n\n /** Static */\n\n static getInstance(element) {\n return Data.getData(element, this.DATA_KEY)\n }\n\n static get VERSION() {\n return VERSION\n }\n}\n\nexport default BaseComponent\n"],"names":["VERSION","BaseComponent","element","_element","Data","setData","constructor","DATA_KEY","dispose","removeData","getInstance","getData"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASA;EACA;EACA;EACA;EACA;;EAEA,IAAMA,OAAO,GAAG,aAAhB;;MAEMC;EACJ,yBAAYC,OAAZ,EAAqB;EACnB,QAAI,CAACA,OAAL,EAAc;EACZ;EACD;;EAED,SAAKC,QAAL,GAAgBD,OAAhB;EACAE,IAAAA,wBAAI,CAACC,OAAL,CAAaH,OAAb,EAAsB,KAAKI,WAAL,CAAiBC,QAAvC,EAAiD,IAAjD;EACD;;;;WAEDC,UAAA,mBAAU;EACRJ,IAAAA,wBAAI,CAACK,UAAL,CAAgB,KAAKN,QAArB,EAA+B,KAAKG,WAAL,CAAiBC,QAAhD;EACA,SAAKJ,QAAL,GAAgB,IAAhB;EACD;EAED;;;kBAEOO,cAAP,qBAAmBR,OAAnB,EAA4B;EAC1B,WAAOE,wBAAI,CAACO,OAAL,CAAaT,OAAb,EAAsB,KAAKK,QAA3B,CAAP;EACD;;;;WAED,eAAqB;EACnB,aAAOP,OAAP;EACD;;;;;;;;;;;;"}
|
130
js/dist/button.js
vendored
130
js/dist/button.js
vendored
@ -1,22 +1,55 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap button.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap button.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Button = factory(global.Data, global.EventHandler));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Button = factory(global.Data, global.EventHandler, global.Base));
|
||||||
}(this, (function (Data, EventHandler) { 'use strict';
|
}(this, (function (Data, EventHandler, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -40,57 +73,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -140,16 +142,16 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Button, null, [{
|
_createClass(Button, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Button;
|
return Button;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -175,21 +177,7 @@
|
|||||||
* add .Button to jQuery only if jQuery is present
|
* add .Button to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Button);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Button.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Button;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Button.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Button;
|
return Button;
|
||||||
|
|
||||||
|
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
233
js/dist/carousel.js
vendored
233
js/dist/carousel.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap carousel.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap carousel.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Carousel = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Carousel = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -15,10 +15,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -37,7 +88,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +169,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -149,57 +213,24 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -262,12 +293,11 @@
|
|||||||
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
||||||
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
||||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||||
|
var SELECTOR_INDICATOR = '[data-bs-target]';
|
||||||
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
||||||
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
||||||
var PointerType = {
|
var POINTER_TYPE_TOUCH = 'touch';
|
||||||
TOUCH: 'touch',
|
var POINTER_TYPE_PEN = 'pen';
|
||||||
PEN: 'pen'
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
@ -414,13 +444,21 @@
|
|||||||
this.touchDeltaX = 0; // swipe left
|
this.touchDeltaX = 0; // swipe left
|
||||||
|
|
||||||
if (direction > 0) {
|
if (direction > 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.next();
|
||||||
|
} else {
|
||||||
this.prev();
|
this.prev();
|
||||||
|
}
|
||||||
} // swipe right
|
} // swipe right
|
||||||
|
|
||||||
|
|
||||||
if (direction < 0) {
|
if (direction < 0) {
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
this.next();
|
this.next();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
@ -450,7 +488,7 @@
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var start = function start(event) {
|
var start = function start(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchStartX = event.clientX;
|
_this4.touchStartX = event.clientX;
|
||||||
} else if (!_this4._pointerEvent) {
|
} else if (!_this4._pointerEvent) {
|
||||||
_this4.touchStartX = event.touches[0].clientX;
|
_this4.touchStartX = event.touches[0].clientX;
|
||||||
@ -467,7 +505,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var end = function end(event) {
|
var end = function end(event) {
|
||||||
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
|
||||||
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -526,16 +564,22 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event.key) {
|
if (event.key === ARROW_LEFT_KEY) {
|
||||||
case ARROW_LEFT_KEY:
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.prev();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ARROW_RIGHT_KEY:
|
if (isRTL) {
|
||||||
event.preventDefault();
|
|
||||||
this.next();
|
this.next();
|
||||||
break;
|
} else {
|
||||||
|
this.prev();
|
||||||
|
}
|
||||||
|
} else if (event.key === ARROW_RIGHT_KEY) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (isRTL) {
|
||||||
|
this.prev();
|
||||||
|
} else {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -577,16 +621,17 @@
|
|||||||
|
|
||||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||||
if (this._indicatorsElement) {
|
if (this._indicatorsElement) {
|
||||||
var indicators = SelectorEngine__default['default'].find(SELECTOR_ACTIVE, this._indicatorsElement);
|
var activeIndicator = SelectorEngine__default['default'].findOne(SELECTOR_ACTIVE, this._indicatorsElement);
|
||||||
|
activeIndicator.classList.remove(CLASS_NAME_ACTIVE);
|
||||||
|
activeIndicator.removeAttribute('aria-current');
|
||||||
|
var indicators = SelectorEngine__default['default'].find(SELECTOR_INDICATOR, this._indicatorsElement);
|
||||||
|
|
||||||
for (var i = 0; i < indicators.length; i++) {
|
for (var i = 0; i < indicators.length; i++) {
|
||||||
indicators[i].classList.remove(CLASS_NAME_ACTIVE);
|
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
|
||||||
|
indicators[i].classList.add(CLASS_NAME_ACTIVE);
|
||||||
|
indicators[i].setAttribute('aria-current', 'true');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
|
||||||
|
|
||||||
if (nextIndicator) {
|
|
||||||
nextIndicator.classList.add(CLASS_NAME_ACTIVE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -620,19 +665,9 @@
|
|||||||
var nextElementIndex = this._getItemIndex(nextElement);
|
var nextElementIndex = this._getItemIndex(nextElement);
|
||||||
|
|
||||||
var isCycling = Boolean(this._interval);
|
var isCycling = Boolean(this._interval);
|
||||||
var directionalClassName;
|
var directionalClassName = direction === DIRECTION_NEXT ? CLASS_NAME_START : CLASS_NAME_END;
|
||||||
var orderClassName;
|
var orderClassName = direction === DIRECTION_NEXT ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
|
||||||
var eventDirectionName;
|
var eventDirectionName = direction === DIRECTION_NEXT ? DIRECTION_LEFT : DIRECTION_RIGHT;
|
||||||
|
|
||||||
if (direction === DIRECTION_NEXT) {
|
|
||||||
directionalClassName = CLASS_NAME_START;
|
|
||||||
orderClassName = CLASS_NAME_NEXT;
|
|
||||||
eventDirectionName = DIRECTION_LEFT;
|
|
||||||
} else {
|
|
||||||
directionalClassName = CLASS_NAME_END;
|
|
||||||
orderClassName = CLASS_NAME_PREV;
|
|
||||||
eventDirectionName = DIRECTION_RIGHT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE)) {
|
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE)) {
|
||||||
this._isSliding = false;
|
this._isSliding = false;
|
||||||
@ -666,7 +701,7 @@
|
|||||||
activeElement.classList.add(directionalClassName);
|
activeElement.classList.add(directionalClassName);
|
||||||
nextElement.classList.add(directionalClassName);
|
nextElement.classList.add(directionalClassName);
|
||||||
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
||||||
EventHandler__default['default'].one(activeElement, TRANSITION_END, function () {
|
EventHandler__default['default'].one(activeElement, 'transitionend', function () {
|
||||||
nextElement.classList.remove(directionalClassName, orderClassName);
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName);
|
||||||
@ -758,7 +793,7 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Carousel, null, [{
|
_createClass(Carousel, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -771,7 +806,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Carousel;
|
return Carousel;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -794,21 +829,7 @@
|
|||||||
* add .Carousel to jQuery only if jQuery is present
|
* add .Carousel to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Carousel);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Carousel.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Carousel;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Carousel.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Carousel;
|
return Carousel;
|
||||||
|
|
||||||
|
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
169
js/dist/collapse.js
vendored
169
js/dist/collapse.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap collapse.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap collapse.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -15,10 +15,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -37,7 +88,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +179,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -143,59 +207,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -371,7 +402,7 @@
|
|||||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||||
var scrollSize = "scroll" + capitalizedDimension;
|
var scrollSize = "scroll" + capitalizedDimension;
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||||
};
|
};
|
||||||
@ -426,7 +457,7 @@
|
|||||||
|
|
||||||
this._element.style[dimension] = '';
|
this._element.style[dimension] = '';
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -525,7 +556,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Collapse, null, [{
|
_createClass(Collapse, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -538,7 +569,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Collapse;
|
return Collapse;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -548,7 +579,7 @@
|
|||||||
|
|
||||||
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||||
if (event.target.tagName === 'A') {
|
if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -581,21 +612,7 @@
|
|||||||
* add .Collapse to jQuery only if jQuery is present
|
* add .Collapse to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Collapse);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Collapse.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Collapse;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Collapse.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Collapse;
|
return Collapse;
|
||||||
|
|
||||||
|
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
6
js/dist/dom/data.js
vendored
6
js/dist/dom/data.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap data.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap data.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/data.js
|
* Bootstrap (v5.0.0-beta2): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
2
js/dist/dom/data.js.map
vendored
2
js/dist/dom/data.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.bsKey === 'undefined') {\n element.bsKey = {\n key,\n id\n }\n id++\n }\n\n storeData[element.bsKey.id] = data\n },\n get(element, key) {\n if (!element || typeof element.bsKey === 'undefined') {\n return null\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.bsKey === 'undefined') {\n return\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.bsKey\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","bsKey","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxCH,QAAAA,OAAO,CAACG,KAAR,GAAgB;EACdF,UAAAA,GAAG,EAAHA,GADc;EAEdH,UAAAA,EAAE,EAAFA;EAFc,SAAhB;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACG,KAAR,CAAcL,EAAf,CAAT,GAA8BI,IAA9B;EACD,KAXI;EAYLE,IAAAA,GAZK,eAYDJ,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACG,KAAf,KAAyB,WAAzC,EAAsD;EACpD,eAAO,IAAP;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLQ,IAAAA,MAxBK,mBAwBEN,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxC;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACG,KAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMI,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOR,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYU,QAAZ,EAAsBR,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXQ,EAAAA,OAJW,mBAIHD,QAJG,EAIOR,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACQ,GAAR,CAAYK,QAAZ,EAAsBR,GAAtB,CAAP;EACD,GANU;EAOXU,EAAAA,UAPW,sBAOAF,QAPA,EAOUR,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACU,MAAR,CAAeG,QAAf,EAAyBR,GAAzB;EACD;EATU;;;;;;;;"}
|
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.bsKey === 'undefined') {\n element.bsKey = {\n key,\n id\n }\n id++\n }\n\n storeData[element.bsKey.id] = data\n },\n get(element, key) {\n if (!element || typeof element.bsKey === 'undefined') {\n return null\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.bsKey === 'undefined') {\n return\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.bsKey\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","bsKey","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxCH,QAAAA,OAAO,CAACG,KAAR,GAAgB;EACdF,UAAAA,GAAG,EAAHA,GADc;EAEdH,UAAAA,EAAE,EAAFA;EAFc,SAAhB;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACG,KAAR,CAAcL,EAAf,CAAT,GAA8BI,IAA9B;EACD,KAXI;EAYLE,IAAAA,GAZK,eAYDJ,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACG,KAAf,KAAyB,WAAzC,EAAsD;EACpD,eAAO,IAAP;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLQ,IAAAA,MAxBK,mBAwBEN,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxC;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACG,KAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMI,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOR,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYU,QAAZ,EAAsBR,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXQ,EAAAA,OAJW,mBAIHD,QAJG,EAIOR,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACQ,GAAR,CAAYK,QAAZ,EAAsBR,GAAtB,CAAP;EACD,GANU;EAOXU,EAAAA,UAPW,sBAOAF,QAPA,EAOUR,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACU,MAAR,CAAeG,QAAf,EAAyBR,GAAzB;EACD;EATU;;;;;;;;"}
|
11
js/dist/dom/event-handler.js
vendored
11
js/dist/dom/event-handler.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap event-handler.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap event-handler.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -27,11 +27,11 @@
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta2): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -91,6 +91,7 @@
|
|||||||
event.delegateTarget = target;
|
event.delegateTarget = target;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
|
// eslint-disable-next-line unicorn/consistent-destructuring
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
6
js/dist/dom/manipulator.js
vendored
6
js/dist/dom/manipulator.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap manipulator.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap manipulator.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta2): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
2
js/dist/dom/manipulator.js.map
vendored
2
js/dist/dom/manipulator.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n\n Object.keys(element.dataset)\n .filter(key => key.startsWith('bs'))\n .forEach(key => {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n attributes[pureKey] = normalizeData(element.dataset[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","Object","keys","dataset","filter","startsWith","forEach","pureKey","charAt","slice","length","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,cAAgCT,gBAAgB,CAACC,GAAD,CAAhD,EAAyDO,KAAzD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,cAAmCX,gBAAgB,CAACC,GAAD,CAAnD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,GAAG,EAAnB;EAEAC,IAAAA,MAAM,CAACC,IAAP,CAAYR,OAAO,CAACS,OAApB,EACGC,MADH,CACU,UAAAhB,GAAG;EAAA,aAAIA,GAAG,CAACiB,UAAJ,CAAe,IAAf,CAAJ;EAAA,KADb,EAEGC,OAFH,CAEW,UAAAlB,GAAG,EAAI;EACd,UAAImB,OAAO,GAAGnB,GAAG,CAACC,OAAJ,CAAY,KAAZ,EAAmB,EAAnB,CAAd;EACAkB,MAAAA,OAAO,GAAGA,OAAO,CAACC,MAAR,CAAe,CAAf,EAAkBjB,WAAlB,KAAkCgB,OAAO,CAACE,KAAR,CAAc,CAAd,EAAiBF,OAAO,CAACG,MAAzB,CAA5C;EACAV,MAAAA,UAAU,CAACO,OAAD,CAAV,GAAsBxB,aAAa,CAACW,OAAO,CAACS,OAAR,CAAgBf,GAAhB,CAAD,CAAnC;EACD,KANH;EAQA,WAAOY,UAAP;EACD,GAzBiB;EA2BlBW,EAAAA,gBA3BkB,4BA2BDjB,OA3BC,EA2BQN,GA3BR,EA2Ba;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACkB,YAAR,cAAgCzB,gBAAgB,CAACC,GAAD,CAAhD,CAAD,CAApB;EACD,GA7BiB;EA+BlByB,EAAAA,MA/BkB,kBA+BXnB,OA/BW,EA+BF;EACd,QAAMoB,IAAI,GAAGpB,OAAO,CAACqB,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GAtCiB;EAwClBC,EAAAA,QAxCkB,oBAwCT5B,OAxCS,EAwCA;EAChB,WAAO;EACLsB,MAAAA,GAAG,EAAEtB,OAAO,CAAC6B,SADR;EAELH,MAAAA,IAAI,EAAE1B,OAAO,CAAC8B;EAFT,KAAP;EAID;EA7CiB;;;;;;;;"}
|
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n\n Object.keys(element.dataset)\n .filter(key => key.startsWith('bs'))\n .forEach(key => {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n attributes[pureKey] = normalizeData(element.dataset[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","Object","keys","dataset","filter","startsWith","forEach","pureKey","charAt","slice","length","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,cAAgCT,gBAAgB,CAACC,GAAD,CAAhD,EAAyDO,KAAzD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,cAAmCX,gBAAgB,CAACC,GAAD,CAAnD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,GAAG,EAAnB;EAEAC,IAAAA,MAAM,CAACC,IAAP,CAAYR,OAAO,CAACS,OAApB,EACGC,MADH,CACU,UAAAhB,GAAG;EAAA,aAAIA,GAAG,CAACiB,UAAJ,CAAe,IAAf,CAAJ;EAAA,KADb,EAEGC,OAFH,CAEW,UAAAlB,GAAG,EAAI;EACd,UAAImB,OAAO,GAAGnB,GAAG,CAACC,OAAJ,CAAY,KAAZ,EAAmB,EAAnB,CAAd;EACAkB,MAAAA,OAAO,GAAGA,OAAO,CAACC,MAAR,CAAe,CAAf,EAAkBjB,WAAlB,KAAkCgB,OAAO,CAACE,KAAR,CAAc,CAAd,EAAiBF,OAAO,CAACG,MAAzB,CAA5C;EACAV,MAAAA,UAAU,CAACO,OAAD,CAAV,GAAsBxB,aAAa,CAACW,OAAO,CAACS,OAAR,CAAgBf,GAAhB,CAAD,CAAnC;EACD,KANH;EAQA,WAAOY,UAAP;EACD,GAzBiB;EA2BlBW,EAAAA,gBA3BkB,4BA2BDjB,OA3BC,EA2BQN,GA3BR,EA2Ba;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACkB,YAAR,cAAgCzB,gBAAgB,CAACC,GAAD,CAAhD,CAAD,CAApB;EACD,GA7BiB;EA+BlByB,EAAAA,MA/BkB,kBA+BXnB,OA/BW,EA+BF;EACd,QAAMoB,IAAI,GAAGpB,OAAO,CAACqB,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GAtCiB;EAwClBC,EAAAA,QAxCkB,oBAwCT5B,OAxCS,EAwCA;EAChB,WAAO;EACLsB,MAAAA,GAAG,EAAEtB,OAAO,CAAC6B,SADR;EAELH,MAAAA,IAAI,EAAE1B,OAAO,CAAC8B;EAFT,KAAP;EAID;EA7CiB;;;;;;;;"}
|
17
js/dist/dom/selector-engine.js
vendored
17
js/dist/dom/selector-engine.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap selector-engine.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap selector-engine.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta2): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,6 @@
|
|||||||
*/
|
*/
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches(element, selector) {
|
|
||||||
return element.matches(selector);
|
|
||||||
},
|
|
||||||
find: function find(selector, element) {
|
find: function find(selector, element) {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -45,9 +42,7 @@
|
|||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
||||||
var children = (_ref2 = []).concat.apply(_ref2, element.children);
|
return (_ref2 = []).concat.apply(_ref2, element.children).filter(function (child) {
|
||||||
|
|
||||||
return children.filter(function (child) {
|
|
||||||
return child.matches(selector);
|
return child.matches(selector);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -56,7 +51,7 @@
|
|||||||
var ancestor = element.parentNode;
|
var ancestor = element.parentNode;
|
||||||
|
|
||||||
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
|
||||||
if (this.matches(ancestor, selector)) {
|
if (ancestor.matches(selector)) {
|
||||||
parents.push(ancestor);
|
parents.push(ancestor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +77,7 @@
|
|||||||
var next = element.nextElementSibling;
|
var next = element.nextElementSibling;
|
||||||
|
|
||||||
while (next) {
|
while (next) {
|
||||||
if (this.matches(next, selector)) {
|
if (next.matches(selector)) {
|
||||||
return [next];
|
return [next];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
js/dist/dom/selector-engine.js.map
vendored
2
js/dist/dom/selector-engine.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n matches(element, selector) {\n return element.matches(selector)\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n const children = [].concat(...element.children)\n\n return children.filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","matches","element","selector","find","document","documentElement","concat","Element","prototype","querySelectorAll","call","findOne","querySelector","children","filter","child","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,OADqB,mBACbC,OADa,EACJC,QADI,EACM;EACzB,WAAOD,OAAO,CAACD,OAAR,CAAgBE,QAAhB,CAAP;EACD,GAHoB;EAKrBC,EAAAA,IALqB,gBAKhBD,QALgB,EAKND,OALM,EAK8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,OAAO,CAACC,SAAR,CAAkBC,gBAAlB,CAAmCC,IAAnC,CAAwCT,OAAxC,EAAiDC,QAAjD,CAAb,CAAP;EACD,GAPoB;EASrBS,EAAAA,OATqB,mBASbT,QATa,EASHD,OATG,EASiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOE,OAAO,CAACC,SAAR,CAAkBI,aAAlB,CAAgCF,IAAhC,CAAqCT,OAArC,EAA8CC,QAA9C,CAAP;EACD,GAXoB;EAarBW,EAAAA,QAbqB,oBAaZZ,OAbY,EAaHC,QAbG,EAaO;EAAA;;EAC1B,QAAMW,QAAQ,GAAG,aAAGP,MAAH,cAAaL,OAAO,CAACY,QAArB,CAAjB;;EAEA,WAAOA,QAAQ,CAACC,MAAT,CAAgB,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACf,OAAN,CAAcE,QAAd,CAAJ;EAAA,KAArB,CAAP;EACD,GAjBoB;EAmBrBc,EAAAA,OAnBqB,mBAmBbf,OAnBa,EAmBJC,QAnBI,EAmBM;EACzB,QAAMc,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGhB,OAAO,CAACiB,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBrB,SAApF,EAA+F;EAC7F,UAAI,KAAKE,OAAL,CAAaiB,QAAb,EAAuBf,QAAvB,CAAJ,EAAsC;EACpCc,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GAjCoB;EAmCrBO,EAAAA,IAnCqB,gBAmChBtB,OAnCgB,EAmCPC,QAnCO,EAmCG;EACtB,QAAIsB,QAAQ,GAAGvB,OAAO,CAACwB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACxB,OAAT,CAAiBE,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACsB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA/CoB;EAiDrBC,EAAAA,IAjDqB,gBAiDhBzB,OAjDgB,EAiDPC,QAjDO,EAiDG;EACtB,QAAIwB,IAAI,GAAGzB,OAAO,CAAC0B,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAI,KAAK1B,OAAL,CAAa0B,IAAb,EAAmBxB,QAAnB,CAAJ,EAAkC;EAChC,eAAO,CAACwB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EA7DoB;;;;;;;;"}
|
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n return [].concat(...element.children)\n .filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (ancestor.matches(selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (next.matches(selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","find","selector","element","document","documentElement","concat","Element","prototype","querySelectorAll","call","findOne","querySelector","children","filter","child","matches","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,IADqB,gBAChBC,QADgB,EACNC,OADM,EAC8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BC,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,OAAO,CAACC,SAAR,CAAkBC,gBAAlB,CAAmCC,IAAnC,CAAwCP,OAAxC,EAAiDD,QAAjD,CAAb,CAAP;EACD,GAHoB;EAKrBS,EAAAA,OALqB,mBAKbT,QALa,EAKHC,OALG,EAKiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BC,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOE,OAAO,CAACC,SAAR,CAAkBI,aAAlB,CAAgCF,IAAhC,CAAqCP,OAArC,EAA8CD,QAA9C,CAAP;EACD,GAPoB;EASrBW,EAAAA,QATqB,oBASZV,OATY,EASHD,QATG,EASO;EAAA;;EAC1B,WAAO,aAAGI,MAAH,cAAaH,OAAO,CAACU,QAArB,EACJC,MADI,CACG,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACC,OAAN,CAAcd,QAAd,CAAJ;EAAA,KADR,CAAP;EAED,GAZoB;EAcrBe,EAAAA,OAdqB,mBAcbd,OAda,EAcJD,QAdI,EAcM;EACzB,QAAMe,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGf,OAAO,CAACgB,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBrB,SAApF,EAA+F;EAC7F,UAAImB,QAAQ,CAACF,OAAT,CAAiBd,QAAjB,CAAJ,EAAgC;EAC9Be,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GA5BoB;EA8BrBO,EAAAA,IA9BqB,gBA8BhBrB,OA9BgB,EA8BPD,QA9BO,EA8BG;EACtB,QAAIuB,QAAQ,GAAGtB,OAAO,CAACuB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACT,OAAT,CAAiBd,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACuB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA1CoB;EA4CrBC,EAAAA,IA5CqB,gBA4ChBxB,OA5CgB,EA4CPD,QA5CO,EA4CG;EACtB,QAAIyB,IAAI,GAAGxB,OAAO,CAACyB,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAIA,IAAI,CAACX,OAAL,CAAad,QAAb,CAAJ,EAA4B;EAC1B,eAAO,CAACyB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EAxDoB;;;;;;;;"}
|
247
js/dist/dropdown.js
vendored
247
js/dist/dropdown.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap dropdown.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap dropdown.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -36,10 +36,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -56,7 +107,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +143,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -123,57 +187,24 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -218,7 +249,7 @@
|
|||||||
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
||||||
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default = {
|
var Default = {
|
||||||
offset: 0,
|
offset: [0, 2],
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
@ -226,12 +257,12 @@
|
|||||||
popperConfig: null
|
popperConfig: null
|
||||||
};
|
};
|
||||||
var DefaultType = {
|
var DefaultType = {
|
||||||
offset: '(number|string|function)',
|
offset: '(array|string|function)',
|
||||||
flip: 'boolean',
|
flip: 'boolean',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
reference: '(string|element)',
|
reference: '(string|element|object)',
|
||||||
display: 'string',
|
display: 'string',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -292,7 +323,9 @@
|
|||||||
} // Totally disable Popper for Dropdowns in Navbar
|
} // Totally disable Popper for Dropdowns in Navbar
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (this._inNavbar) {
|
||||||
|
Manipulator__default['default'].setDataAttribute(this._menu, 'popper', 'none');
|
||||||
|
} else {
|
||||||
if (typeof Popper__namespace === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
@ -307,9 +340,20 @@
|
|||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
|
} else if (typeof this._config.reference === 'object') {
|
||||||
|
referenceElement = this._config.reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
|
var popperConfig = this._getPopperConfig();
|
||||||
|
|
||||||
|
var isDisplayStatic = popperConfig.modifiers.find(function (modifier) {
|
||||||
|
return modifier.name === 'applyStyles' && modifier.enabled === false;
|
||||||
|
});
|
||||||
|
this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);
|
||||||
|
|
||||||
|
if (isDisplayStatic) {
|
||||||
|
Manipulator__default['default'].setDataAttribute(this._menu, 'popper', 'static');
|
||||||
|
}
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
@ -332,7 +376,7 @@
|
|||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW);
|
this._element.classList.toggle(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
EventHandler__default['default'].trigger(parent, EVENT_SHOWN, relatedTarget);
|
EventHandler__default['default'].trigger(this._element, EVENT_SHOWN, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
@ -340,11 +384,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var parent = Dropdown.getParentFromElement(this._element);
|
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var hideEvent = EventHandler__default['default'].trigger(parent, EVENT_HIDE, relatedTarget);
|
var hideEvent = EventHandler__default['default'].trigger(this._element, EVENT_HIDE, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
@ -358,7 +401,8 @@
|
|||||||
|
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW);
|
this._element.classList.toggle(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
EventHandler__default['default'].trigger(parent, EVENT_HIDDEN, relatedTarget);
|
Manipulator__default['default'].removeDataAttribute(this._menu, 'popper');
|
||||||
|
EventHandler__default['default'].trigger(this._element, EVENT_HIDDEN, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
@ -397,6 +441,12 @@
|
|||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _extends({}, this.constructor.Default, Manipulator__default['default'].getDataAttributes(this._element), config);
|
config = _extends({}, this.constructor.Default, Manipulator__default['default'].getDataAttributes(this._element), config);
|
||||||
typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||||
|
|
||||||
|
if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
|
||||||
|
// Popper virtual elements require a getBoundingClientRect method
|
||||||
|
throw new TypeError(NAME.toUpperCase() + ": Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.");
|
||||||
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -429,26 +479,51 @@
|
|||||||
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._getOffset = function _getOffset() {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
var offset = this._config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this3._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var defaultBsPopperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: [{
|
modifiers: [{
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
altBoundary: this._config.flip,
|
altBoundary: this._config.flip,
|
||||||
rootBoundary: this._config.boundary
|
boundary: this._config.boundary
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers = [{
|
defaultBsPopperConfig.modifiers = [{
|
||||||
name: 'applyStyles',
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -484,7 +559,6 @@
|
|||||||
var toggles = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE);
|
var toggles = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE);
|
||||||
|
|
||||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
|
||||||
var context = Data__default['default'].getData(toggles[i], DATA_KEY);
|
var context = Data__default['default'].getData(toggles[i], DATA_KEY);
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: toggles[i]
|
relatedTarget: toggles[i]
|
||||||
@ -508,7 +582,7 @@
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler__default['default'].trigger(parent, EVENT_HIDE, relatedTarget);
|
var hideEvent = EventHandler__default['default'].trigger(toggles[i], EVENT_HIDE, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
continue;
|
continue;
|
||||||
@ -532,7 +606,8 @@
|
|||||||
|
|
||||||
dropdownMenu.classList.remove(CLASS_NAME_SHOW);
|
dropdownMenu.classList.remove(CLASS_NAME_SHOW);
|
||||||
toggles[i].classList.remove(CLASS_NAME_SHOW);
|
toggles[i].classList.remove(CLASS_NAME_SHOW);
|
||||||
EventHandler__default['default'].trigger(parent, EVENT_HIDDEN, relatedTarget);
|
Manipulator__default['default'].removeDataAttribute(dropdownMenu, 'popper');
|
||||||
|
EventHandler__default['default'].trigger(toggles[i], EVENT_HIDDEN, relatedTarget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -569,6 +644,14 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isActive && (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY)) {
|
||||||
|
var _button = this.matches(SELECTOR_DATA_TOGGLE) ? this : SelectorEngine__default['default'].prev(this, SELECTOR_DATA_TOGGLE)[0];
|
||||||
|
|
||||||
|
_button.click();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isActive || event.key === SPACE_KEY) {
|
if (!isActive || event.key === SPACE_KEY) {
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
return;
|
return;
|
||||||
@ -596,7 +679,7 @@
|
|||||||
items[index].focus();
|
items[index].focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Dropdown, null, [{
|
_createClass(Dropdown, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -614,7 +697,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Dropdown;
|
return Dropdown;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -641,21 +724,7 @@
|
|||||||
* add .Dropdown to jQuery only if jQuery is present
|
* add .Dropdown to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Dropdown);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Dropdown.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Dropdown;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Dropdown.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Dropdown;
|
return Dropdown;
|
||||||
|
|
||||||
|
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
247
js/dist/modal.js
vendored
247
js/dist/modal.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap modal.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap modal.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -15,10 +15,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -37,7 +88,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +169,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -149,57 +213,24 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -362,7 +393,7 @@
|
|||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, function (event) {
|
EventHandler__default['default'].one(this._element, 'transitionend', function (event) {
|
||||||
return _this3._hideModal(event);
|
return _this3._hideModal(event);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
@ -455,7 +486,7 @@
|
|||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler__default['default'].one(this._dialog, TRANSITION_END, transitionComplete);
|
EventHandler__default['default'].one(this._dialog, 'transitionend', transitionComplete);
|
||||||
emulateTransitionEnd(this._dialog, transitionDuration);
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
transitionComplete();
|
transitionComplete();
|
||||||
@ -577,7 +608,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
EventHandler__default['default'].one(this._backdrop, TRANSITION_END, callback);
|
EventHandler__default['default'].one(this._backdrop, 'transitionend', callback);
|
||||||
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
||||||
} else if (!this._isShown && this._backdrop) {
|
} else if (!this._isShown && this._backdrop) {
|
||||||
this._backdrop.classList.remove(CLASS_NAME_SHOW);
|
this._backdrop.classList.remove(CLASS_NAME_SHOW);
|
||||||
@ -591,7 +622,7 @@
|
|||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
|
|
||||||
EventHandler__default['default'].one(this._backdrop, TRANSITION_END, callbackRemove);
|
EventHandler__default['default'].one(this._backdrop, 'transitionend', callbackRemove);
|
||||||
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
||||||
} else {
|
} else {
|
||||||
callbackRemove();
|
callbackRemove();
|
||||||
@ -619,12 +650,12 @@
|
|||||||
this._element.classList.add(CLASS_NAME_STATIC);
|
this._element.classList.add(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler__default['default'].off(this._element, TRANSITION_END);
|
EventHandler__default['default'].off(this._element, 'transitionend');
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, function () {
|
EventHandler__default['default'].one(this._element, 'transitionend', function () {
|
||||||
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
if (!isModalOverflowing) {
|
if (!isModalOverflowing) {
|
||||||
EventHandler__default['default'].one(_this10._element, TRANSITION_END, function () {
|
EventHandler__default['default'].one(_this10._element, 'transitionend', function () {
|
||||||
_this10._element.style.overflowY = '';
|
_this10._element.style.overflowY = '';
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
||||||
@ -665,60 +696,50 @@
|
|||||||
var _this11 = this;
|
var _this11 = this;
|
||||||
|
|
||||||
if (this._isBodyOverflowing) {
|
if (this._isBodyOverflowing) {
|
||||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
this._setElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight', function (calculatedValue) {
|
||||||
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
// Adjust fixed content padding
|
});
|
||||||
SelectorEngine__default['default'].find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var actualPadding = element.style.paddingRight;
|
|
||||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
|
||||||
Manipulator__default['default'].setDataAttribute(element, 'padding-right', actualPadding);
|
|
||||||
element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust sticky content margin
|
|
||||||
|
|
||||||
SelectorEngine__default['default'].find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._setElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight', function (calculatedValue) {
|
||||||
var actualMargin = element.style.marginRight;
|
return calculatedValue - _this11._scrollbarWidth;
|
||||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
});
|
||||||
Manipulator__default['default'].setDataAttribute(element, 'margin-right', actualMargin);
|
|
||||||
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
|
||||||
}); // Adjust body padding
|
|
||||||
|
|
||||||
var actualPadding = document.body.style.paddingRight;
|
this._setElementAttributes('body', 'paddingRight', function (calculatedValue) {
|
||||||
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
return calculatedValue + _this11._scrollbarWidth;
|
||||||
Manipulator__default['default'].setDataAttribute(document.body, 'padding-right', actualPadding);
|
});
|
||||||
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.add(CLASS_NAME_OPEN);
|
document.body.classList.add(CLASS_NAME_OPEN);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_proto._setElementAttributes = function _setElementAttributes(selector, styleProp, callback) {
|
||||||
|
SelectorEngine__default['default'].find(selector).forEach(function (element) {
|
||||||
|
var actualValue = element.style[styleProp];
|
||||||
|
var calculatedValue = window.getComputedStyle(element)[styleProp];
|
||||||
|
Manipulator__default['default'].setDataAttribute(element, styleProp, actualValue);
|
||||||
|
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
_proto._resetScrollbar = function _resetScrollbar() {
|
_proto._resetScrollbar = function _resetScrollbar() {
|
||||||
// Restore fixed content padding
|
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, 'paddingRight');
|
||||||
SelectorEngine__default['default'].find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
|
||||||
var padding = Manipulator__default['default'].getDataAttribute(element, 'padding-right');
|
|
||||||
|
|
||||||
if (typeof padding !== 'undefined') {
|
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, 'marginRight');
|
||||||
Manipulator__default['default'].removeDataAttribute(element, 'padding-right');
|
|
||||||
element.style.paddingRight = padding;
|
|
||||||
}
|
|
||||||
}); // Restore sticky content and navbar-toggler margin
|
|
||||||
|
|
||||||
SelectorEngine__default['default'].find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
this._resetElementAttributes('body', 'paddingRight');
|
||||||
var margin = Manipulator__default['default'].getDataAttribute(element, 'margin-right');
|
};
|
||||||
|
|
||||||
if (typeof margin !== 'undefined') {
|
_proto._resetElementAttributes = function _resetElementAttributes(selector, styleProp) {
|
||||||
Manipulator__default['default'].removeDataAttribute(element, 'margin-right');
|
SelectorEngine__default['default'].find(selector).forEach(function (element) {
|
||||||
element.style.marginRight = margin;
|
var value = Manipulator__default['default'].getDataAttribute(element, styleProp);
|
||||||
}
|
|
||||||
}); // Restore body padding
|
|
||||||
|
|
||||||
var padding = Manipulator__default['default'].getDataAttribute(document.body, 'padding-right');
|
if (typeof value === 'undefined' && element === document.body) {
|
||||||
|
element.style[styleProp] = '';
|
||||||
if (typeof padding === 'undefined') {
|
|
||||||
document.body.style.paddingRight = '';
|
|
||||||
} else {
|
} else {
|
||||||
Manipulator__default['default'].removeDataAttribute(document.body, 'padding-right');
|
Manipulator__default['default'].removeDataAttribute(element, styleProp);
|
||||||
document.body.style.paddingRight = padding;
|
element.style[styleProp] = value;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
_proto._getScrollbarWidth = function _getScrollbarWidth() {
|
||||||
@ -752,7 +773,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Modal, null, [{
|
_createClass(Modal, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -765,7 +786,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Modal;
|
return Modal;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -802,7 +823,7 @@
|
|||||||
data = new Modal(target, config);
|
data = new Modal(target, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.show(this);
|
data.toggle(this);
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
@ -811,21 +832,7 @@
|
|||||||
* add .Modal to jQuery only if jQuery is present
|
* add .Modal to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Modal);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Modal.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Modal;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Modal.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Modal;
|
return Modal;
|
||||||
|
|
||||||
|
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
98
js/dist/popover.js
vendored
98
js/dist/popover.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap popover.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap popover.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -15,9 +15,59 @@
|
|||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -41,15 +91,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
|
$.fn[name].Constructor = plugin;
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
|
return plugin.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -64,6 +125,7 @@
|
|||||||
|
|
||||||
var Default = _extends({}, Tooltip__default['default'].Default, {
|
var Default = _extends({}, Tooltip__default['default'].Default, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
|
offset: [0, 8],
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
content: '',
|
content: '',
|
||||||
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
||||||
@ -174,8 +236,8 @@
|
|||||||
|
|
||||||
_createClass(Popover, null, [{
|
_createClass(Popover, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -215,21 +277,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Popover);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Popover.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Popover;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Popover.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Popover;
|
return Popover;
|
||||||
|
|
||||||
|
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
167
js/dist/scrollspy.js
vendored
167
js/dist/scrollspy.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap scrollspy.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap scrollspy.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -15,10 +15,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -50,7 +101,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +142,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -102,59 +166,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -209,8 +240,8 @@
|
|||||||
_this._targets = [];
|
_this._targets = [];
|
||||||
_this._activeTarget = null;
|
_this._activeTarget = null;
|
||||||
_this._scrollHeight = 0;
|
_this._scrollHeight = 0;
|
||||||
EventHandler__default['default'].on(_this._scrollElement, EVENT_SCROLL, function (event) {
|
EventHandler__default['default'].on(_this._scrollElement, EVENT_SCROLL, function () {
|
||||||
return _this._process(event);
|
return _this._process();
|
||||||
});
|
});
|
||||||
|
|
||||||
_this.refresh();
|
_this.refresh();
|
||||||
@ -406,7 +437,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(ScrollSpy, null, [{
|
_createClass(ScrollSpy, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -419,7 +450,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return ScrollSpy;
|
return ScrollSpy;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -439,21 +470,7 @@
|
|||||||
* add .ScrollSpy to jQuery only if jQuery is present
|
* add .ScrollSpy to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, ScrollSpy);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = ScrollSpy.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = ScrollSpy;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return ScrollSpy.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return ScrollSpy;
|
return ScrollSpy;
|
||||||
|
|
||||||
|
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
156
js/dist/tab.js
vendored
156
js/dist/tab.js
vendored
@ -1,23 +1,56 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap tab.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap tab.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Data, EventHandler, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -28,7 +61,20 @@
|
|||||||
var selector = element.getAttribute('data-bs-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href'); // The only valid content that could double as a selector are IDs or classes,
|
||||||
|
// so everything starting with `#` or `.`. If a "real" URL is used as the selector,
|
||||||
|
// `document.querySelector` will rightfully complain it is invalid.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/32273
|
||||||
|
|
||||||
|
if (!hrefAttr || !hrefAttr.includes('#') && !hrefAttr.startsWith('.')) {
|
||||||
|
return null;
|
||||||
|
} // Just in case some CMS puts out a full URL with the anchor appended
|
||||||
|
|
||||||
|
|
||||||
|
if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
|
||||||
|
hrefAttr = '#' + hrefAttr.split('#')[1];
|
||||||
|
}
|
||||||
|
|
||||||
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,57 +154,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -220,14 +235,9 @@
|
|||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = null;
|
var hideEvent = previous ? EventHandler__default['default'].trigger(previous, EVENT_HIDE, {
|
||||||
|
|
||||||
if (previous) {
|
|
||||||
hideEvent = EventHandler__default['default'].trigger(previous, EVENT_HIDE, {
|
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
});
|
}) : null;
|
||||||
}
|
|
||||||
|
|
||||||
var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, {
|
var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
@ -269,7 +279,7 @@
|
|||||||
if (active && isTransitioning) {
|
if (active && isTransitioning) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(active);
|
var transitionDuration = getTransitionDurationFromElement(active);
|
||||||
active.classList.remove(CLASS_NAME_SHOW);
|
active.classList.remove(CLASS_NAME_SHOW);
|
||||||
EventHandler__default['default'].one(active, TRANSITION_END, complete);
|
EventHandler__default['default'].one(active, 'transitionend', complete);
|
||||||
emulateTransitionEnd(active, transitionDuration);
|
emulateTransitionEnd(active, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -334,16 +344,16 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Tab, null, [{
|
_createClass(Tab, null, [{
|
||||||
key: "DATA_KEY",
|
key: "DATA_KEY",
|
||||||
// Getters
|
get: // Getters
|
||||||
get: function get() {
|
function get() {
|
||||||
return DATA_KEY;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Tab;
|
return Tab;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
@ -363,21 +373,7 @@
|
|||||||
* add .Tab to jQuery only if jQuery is present
|
* add .Tab to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Tab);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Tab.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Tab;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tab.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Tab;
|
return Tab;
|
||||||
|
|
||||||
|
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
152
js/dist/toast.js
vendored
152
js/dist/toast.js
vendored
@ -1,23 +1,74 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap toast.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap toast.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Toast = factory(global.Data, global.EventHandler, global.Manipulator));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Toast = factory(global.Data, global.EventHandler, global.Manipulator, global.Base));
|
||||||
}(this, (function (Data, EventHandler, Manipulator) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -88,7 +139,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -116,59 +167,26 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
if ($) {
|
||||||
/**
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
* ------------------------------------------------------------------------
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
* Constants
|
$.fn[name].Constructor = plugin;
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
return plugin.jQueryInterface;
|
||||||
function BaseComponent(element) {
|
};
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -260,7 +278,7 @@
|
|||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -290,7 +308,7 @@
|
|||||||
|
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -352,7 +370,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Toast, null, [{
|
_createClass(Toast, null, [{
|
||||||
key: "DefaultType",
|
key: "DefaultType",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return DefaultType;
|
return DefaultType;
|
||||||
@ -370,7 +388,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Toast;
|
return Toast;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
@ -379,21 +397,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Toast);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Toast.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Toast;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Toast.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Toast;
|
return Toast;
|
||||||
|
|
||||||
|
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
288
js/dist/tooltip.js
vendored
288
js/dist/tooltip.js
vendored
@ -1,13 +1,13 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap tooltip.js v5.0.0-beta1 (https://getbootstrap.com/)
|
* Bootstrap tooltip.js v5.0.0-beta2 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js'), require('./base-component.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine', './base-component'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine, global.Base));
|
||||||
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
@ -36,10 +36,61 @@
|
|||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
||||||
|
|
||||||
|
function _defineProperties(target, props) {
|
||||||
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
var descriptor = props[i];
|
||||||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||||||
|
descriptor.configurable = true;
|
||||||
|
if ("value" in descriptor) descriptor.writable = true;
|
||||||
|
Object.defineProperty(target, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
_extends = Object.assign || function (target) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
|
||||||
|
_setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) {
|
||||||
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||||
|
o.__proto__ = p;
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _setPrototypeOf(o, p);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -125,7 +176,7 @@
|
|||||||
var valueType = value && isElement(value) ? 'element' : toType(value);
|
var valueType = value && isElement(value) ? 'element' : toType(value);
|
||||||
|
|
||||||
if (!new RegExp(expectedTypes).test(valueType)) {
|
if (!new RegExp(expectedTypes).test(valueType)) {
|
||||||
throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
throw new TypeError(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -178,9 +229,27 @@
|
|||||||
|
|
||||||
var isRTL = document.documentElement.dir === 'rtl';
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
|
var defineJQueryPlugin = function defineJQueryPlugin(name, plugin) {
|
||||||
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
|
if ($) {
|
||||||
|
var JQUERY_NO_CONFLICT = $.fn[name];
|
||||||
|
$.fn[name] = plugin.jQueryInterface;
|
||||||
|
$.fn[name].Constructor = plugin;
|
||||||
|
|
||||||
|
$.fn[name].noConflict = function () {
|
||||||
|
$.fn[name] = JQUERY_NO_CONFLICT;
|
||||||
|
return plugin.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta2): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -206,7 +275,7 @@
|
|||||||
|
|
||||||
if (allowedAttributeList.includes(attrName)) {
|
if (allowedAttributeList.includes(attrName)) {
|
||||||
if (uriAttrs.has(attrName)) {
|
if (uriAttrs.has(attrName)) {
|
||||||
return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
|
return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -217,7 +286,7 @@
|
|||||||
}); // Check if a regular expression validates the attribute.
|
}); // Check if a regular expression validates the attribute.
|
||||||
|
|
||||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||||
if (attrName.match(regExp[i])) {
|
if (regExp[i].test(attrName)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -305,57 +374,6 @@
|
|||||||
return createdDocument.body.innerHTML;
|
return createdDocument.body.innerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
||||||
/**
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
* Constants
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
var VERSION = '5.0.0-beta1';
|
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
|
||||||
function BaseComponent(element) {
|
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._element = element;
|
|
||||||
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
var _proto = BaseComponent.prototype;
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
}
|
|
||||||
/** Static */
|
|
||||||
;
|
|
||||||
|
|
||||||
BaseComponent.getInstance = function getInstance(element) {
|
|
||||||
return Data__default['default'].getData(element, this.DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(BaseComponent, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
|
|
||||||
return BaseComponent;
|
|
||||||
}();
|
|
||||||
|
|
||||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
||||||
|
|
||||||
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
@ -377,14 +395,15 @@
|
|||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
|
offset: '(array|string|function)',
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacements: '(null|array)',
|
fallbackPlacements: 'array',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
sanitizeFn: '(null|function)',
|
sanitizeFn: '(null|function)',
|
||||||
allowList: 'object',
|
allowList: 'object',
|
||||||
popperConfig: '(null|object)'
|
popperConfig: '(null|object|function)'
|
||||||
};
|
};
|
||||||
var AttachmentMap = {
|
var AttachmentMap = {
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
@ -402,8 +421,9 @@
|
|||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
|
offset: [0, 0],
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacements: null,
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
||||||
boundary: 'clippingParents',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
@ -487,13 +507,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
var context = this._initializeOnDelegatedTarget(event);
|
||||||
var context = Data__default['default'].getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data__default['default'].setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
context._activeTrigger.click = !context._activeTrigger.click;
|
context._activeTrigger.click = !context._activeTrigger.click;
|
||||||
|
|
||||||
@ -518,7 +532,7 @@
|
|||||||
EventHandler__default['default'].off(this._element, this.constructor.EVENT_KEY);
|
EventHandler__default['default'].off(this._element, this.constructor.EVENT_KEY);
|
||||||
EventHandler__default['default'].off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
EventHandler__default['default'].off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip && this.tip.parentNode) {
|
||||||
this.tip.parentNode.removeChild(this.tip);
|
this.tip.parentNode.removeChild(this.tip);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -545,7 +559,10 @@
|
|||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (!(this.isWithContent() && this._isEnabled)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler__default['default'].trigger(this._element, this.constructor.Event.SHOW);
|
var showEvent = EventHandler__default['default'].trigger(this._element, this.constructor.Event.SHOW);
|
||||||
var shadowRoot = findShadowRoot(this._element);
|
var shadowRoot = findShadowRoot(this._element);
|
||||||
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
|
||||||
@ -615,12 +632,11 @@
|
|||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
var transitionDuration = getTransitionDurationFromElement(this.tip);
|
||||||
EventHandler__default['default'].one(this.tip, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this.tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(this.tip, transitionDuration);
|
emulateTransitionEnd(this.tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
@ -673,7 +689,7 @@
|
|||||||
|
|
||||||
if (this.tip.classList.contains(CLASS_NAME_FADE)) {
|
if (this.tip.classList.contains(CLASS_NAME_FADE)) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(tip);
|
var transitionDuration = getTransitionDurationFromElement(tip);
|
||||||
EventHandler__default['default'].one(tip, TRANSITION_END, complete);
|
EventHandler__default['default'].one(tip, 'transitionend', complete);
|
||||||
emulateTransitionEnd(tip, transitionDuration);
|
emulateTransitionEnd(tip, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
@ -767,26 +783,58 @@
|
|||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._initializeOnDelegatedTarget = function _initializeOnDelegatedTarget(event, context) {
|
||||||
var _this4 = this;
|
var dataKey = this.constructor.DATA_KEY;
|
||||||
|
context = context || Data__default['default'].getData(event.delegateTarget, dataKey);
|
||||||
|
|
||||||
var flipModifier = {
|
if (!context) {
|
||||||
name: 'flip',
|
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
||||||
options: {
|
Data__default['default'].setData(event.delegateTarget, dataKey, context);
|
||||||
altBoundary: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return context;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.config.fallbackPlacements) {
|
_proto._getOffset = function _getOffset() {
|
||||||
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var offset = this.config.offset;
|
||||||
|
|
||||||
|
if (typeof offset === 'string') {
|
||||||
|
return offset.split(',').map(function (val) {
|
||||||
|
return Number.parseInt(val, 10);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
if (typeof offset === 'function') {
|
||||||
|
return function (popperData) {
|
||||||
|
return offset(popperData, _this4._element);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return offset;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
|
var defaultBsPopperConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: [flipModifier, {
|
modifiers: [{
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true,
|
||||||
|
fallbackPlacements: this.config.fallbackPlacements
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'offset',
|
||||||
|
options: {
|
||||||
|
offset: this._getOffset()
|
||||||
|
}
|
||||||
|
}, {
|
||||||
name: 'preventOverflow',
|
name: 'preventOverflow',
|
||||||
options: {
|
options: {
|
||||||
rootBoundary: this.config.boundary
|
boundary: this.config.boundary
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
name: 'arrow',
|
name: 'arrow',
|
||||||
@ -798,16 +846,16 @@
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
phase: 'afterWrite',
|
phase: 'afterWrite',
|
||||||
fn: function fn(data) {
|
fn: function fn(data) {
|
||||||
return _this4._handlePopperPlacementChange(data);
|
return _this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
onFirstUpdate: function onFirstUpdate(data) {
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
if (data.options.placement !== data.placement) {
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this5._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsPopperConfig, typeof this.config.popperConfig === 'function' ? this.config.popperConfig(defaultBsPopperConfig) : this.config.popperConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||||
@ -831,29 +879,29 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler__default['default'].on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
EventHandler__default['default'].on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
||||||
return _this5.toggle(event);
|
return _this6.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
||||||
EventHandler__default['default'].on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
EventHandler__default['default'].on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
||||||
return _this5._enter(event);
|
return _this6._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler__default['default'].on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
EventHandler__default['default'].on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
||||||
return _this5._leave(event);
|
return _this6._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this5._element) {
|
if (_this6._element) {
|
||||||
_this5.hide();
|
_this6.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -886,13 +934,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._enter = function _enter(event, context) {
|
_proto._enter = function _enter(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data__default['default'].getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data__default['default'].setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||||
@ -919,13 +961,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_proto._leave = function _leave(event, context) {
|
_proto._leave = function _leave(event, context) {
|
||||||
var dataKey = this.constructor.DATA_KEY;
|
context = this._initializeOnDelegatedTarget(event, context);
|
||||||
context = context || Data__default['default'].getData(event.delegateTarget, dataKey);
|
|
||||||
|
|
||||||
if (!context) {
|
|
||||||
context = new this.constructor(event.delegateTarget, this._getDelegateConfig());
|
|
||||||
Data__default['default'].setData(event.delegateTarget, dataKey, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
|
||||||
@ -1064,7 +1100,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_createClass$1(Tooltip, null, [{
|
_createClass(Tooltip, null, [{
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
@ -1097,7 +1133,7 @@
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Tooltip;
|
return Tooltip;
|
||||||
}(BaseComponent);
|
}(BaseComponent__default['default']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
@ -1106,21 +1142,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onDOMContentLoaded(function () {
|
defineJQueryPlugin(NAME, Tooltip);
|
||||||
var $ = getjQuery();
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
|
||||||
$.fn[NAME] = Tooltip.jQueryInterface;
|
|
||||||
$.fn[NAME].Constructor = Tooltip;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
||||||
return Tooltip.jQueryInterface;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return Tooltip;
|
return Tooltip;
|
||||||
|
|
||||||
|
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
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): index.esm.js
|
* Bootstrap (v5.0.0-beta2): index.esm.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): index.umd.js
|
* Bootstrap (v5.0.0-beta2): index.umd.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): alert.js
|
* Bootstrap (v5.0.0-beta2): alert.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): base-component.js
|
* Bootstrap (v5.0.0-beta2): base-component.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -13,7 +13,7 @@ import Data from './dom/data'
|
|||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const VERSION = '5.0.0-beta1'
|
const VERSION = '5.0.0-beta2'
|
||||||
|
|
||||||
class BaseComponent {
|
class BaseComponent {
|
||||||
constructor(element) {
|
constructor(element) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): button.js
|
* Bootstrap (v5.0.0-beta2): button.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): carousel.js
|
* Bootstrap (v5.0.0-beta2): carousel.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): collapse.js
|
* Bootstrap (v5.0.0-beta2): collapse.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/data.js
|
* Bootstrap (v5.0.0-beta2): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta2): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta2): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta2): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): dropdown.js
|
* Bootstrap (v5.0.0-beta2): dropdown.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): modal.js
|
* Bootstrap (v5.0.0-beta2): modal.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): popover.js
|
* Bootstrap (v5.0.0-beta2): popover.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): scrollspy.js
|
* Bootstrap (v5.0.0-beta2): scrollspy.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): tab.js
|
* Bootstrap (v5.0.0-beta2): tab.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): toast.js
|
* Bootstrap (v5.0.0-beta2): toast.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): tooltip.js
|
* Bootstrap (v5.0.0-beta2): tooltip.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/index.js
|
* Bootstrap (v5.0.0-beta2): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta2): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bootstrap",
|
"name": "bootstrap",
|
||||||
"version": "5.0.0-beta1",
|
"version": "5.0.0-beta2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Package.describe({
|
Package.describe({
|
||||||
name: 'twbs:bootstrap', // https://atmospherejs.com/twbs/bootstrap
|
name: 'twbs:bootstrap', // https://atmospherejs.com/twbs/bootstrap
|
||||||
summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
|
summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
|
||||||
version: '5.0.0-beta1',
|
version: '5.0.0-beta2',
|
||||||
git: 'https://github.com/twbs/bootstrap.git'
|
git: 'https://github.com/twbs/bootstrap.git'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user