mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
parent
ef6a418535
commit
043a03c95a
@ -41,11 +41,11 @@
|
||||
|
||||
Several quick start options are available:
|
||||
|
||||
- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v4.6.0.zip)
|
||||
- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v4.6.1.zip)
|
||||
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
||||
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap`
|
||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@4.6.0`
|
||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:4.6.0`
|
||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@4.6.1`
|
||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:4.6.1`
|
||||
- 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/4.6/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
||||
|
22
config.yml
22
config.yml
@ -47,8 +47,8 @@ params:
|
||||
social_image_path: /docs/4.6/assets/brand/bootstrap-social.png
|
||||
social_logo_path: /docs/4.6/assets/brand/bootstrap-social-logo.png
|
||||
|
||||
current_version: "4.6.0"
|
||||
current_ruby_version: "4.6.0"
|
||||
current_version: "4.6.1"
|
||||
current_ruby_version: "4.6.1"
|
||||
docs_version: "4.6"
|
||||
rfs_version: "v8.1.0"
|
||||
github_org: "https://github.com/twbs"
|
||||
@ -62,18 +62,18 @@ params:
|
||||
icons: "https://icons.getbootstrap.com/"
|
||||
|
||||
download:
|
||||
source: "https://github.com/twbs/bootstrap/archive/v4.6.0.zip"
|
||||
dist: "https://github.com/twbs/bootstrap/releases/download/v4.6.0/bootstrap-4.6.0-dist.zip"
|
||||
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v4.6.0/bootstrap-4.6.0-examples.zip"
|
||||
source: "https://github.com/twbs/bootstrap/archive/v4.6.1.zip"
|
||||
dist: "https://github.com/twbs/bootstrap/releases/download/v4.6.1/bootstrap-4.6.1-dist.zip"
|
||||
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v4.6.1/bootstrap-4.6.1-examples.zip"
|
||||
|
||||
cdn:
|
||||
# See https://www.srihash.org for info on how to generate the hashes
|
||||
css: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
|
||||
css_hash: "sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
|
||||
js: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js"
|
||||
js_hash: "sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF"
|
||||
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
|
||||
js_bundle_hash: "sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
|
||||
css: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
|
||||
css_hash: "sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
|
||||
js: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js"
|
||||
js_hash: "sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2"
|
||||
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"
|
||||
js_bundle_hash: "sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
|
||||
jquery: "https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
|
||||
jquery_hash: "sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
popper: "https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
|
||||
|
2
dist/css/bootstrap-grid.css
vendored
2
dist/css/bootstrap-grid.css
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Grid v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Grid v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
2
dist/css/bootstrap-grid.css.map
vendored
2
dist/css/bootstrap-grid.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css
vendored
2
dist/css/bootstrap-grid.min.css
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Grid v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Grid v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
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
2
dist/css/bootstrap-reboot.css
vendored
2
dist/css/bootstrap-reboot.css
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Reboot v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.min.css
vendored
2
dist/css/bootstrap-reboot.min.css
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Reboot v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
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
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
@ -2028,11 +2028,6 @@ pre code {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.form-control:-moz-focusring {
|
||||
color: transparent;
|
||||
text-shadow: 0 0 0 #495057;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
@ -2080,6 +2075,11 @@ input[type="month"].form-control {
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
select.form-control:-moz-focusring {
|
||||
color: transparent;
|
||||
text-shadow: 0 0 0 #495057;
|
||||
}
|
||||
|
||||
select.form-control:focus::-ms-value {
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
@ -2254,7 +2254,7 @@ textarea.form-control {
|
||||
|
||||
.was-validated .form-control:valid, .form-control.is-valid {
|
||||
border-color: #28a745;
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
padding-right: calc(1.5em + 0.75rem) !important;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right calc(0.375em + 0.1875rem) center;
|
||||
@ -2266,6 +2266,11 @@ textarea.form-control {
|
||||
box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
|
||||
}
|
||||
|
||||
.was-validated select.form-control:valid, select.form-control.is-valid {
|
||||
padding-right: 3rem !important;
|
||||
background-position: right 1.5rem center;
|
||||
}
|
||||
|
||||
.was-validated textarea.form-control:valid, textarea.form-control.is-valid {
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
|
||||
@ -2273,7 +2278,7 @@ textarea.form-control {
|
||||
|
||||
.was-validated .custom-select:valid, .custom-select.is-valid {
|
||||
border-color: #28a745;
|
||||
padding-right: calc(0.75em + 2.3125rem);
|
||||
padding-right: calc(0.75em + 2.3125rem) !important;
|
||||
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat, #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat;
|
||||
}
|
||||
|
||||
@ -2360,7 +2365,7 @@ textarea.form-control {
|
||||
|
||||
.was-validated .form-control:invalid, .form-control.is-invalid {
|
||||
border-color: #dc3545;
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
padding-right: calc(1.5em + 0.75rem) !important;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right calc(0.375em + 0.1875rem) center;
|
||||
@ -2372,6 +2377,11 @@ textarea.form-control {
|
||||
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
|
||||
}
|
||||
|
||||
.was-validated select.form-control:invalid, select.form-control.is-invalid {
|
||||
padding-right: 3rem !important;
|
||||
background-position: right 1.5rem center;
|
||||
}
|
||||
|
||||
.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
|
||||
@ -2379,7 +2389,7 @@ textarea.form-control {
|
||||
|
||||
.was-validated .custom-select:invalid, .custom-select.is-invalid {
|
||||
border-color: #dc3545;
|
||||
padding-right: calc(0.75em + 2.3125rem);
|
||||
padding-right: calc(0.75em + 2.3125rem) !important;
|
||||
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat, #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat;
|
||||
}
|
||||
|
||||
@ -3620,6 +3630,11 @@ input[type="button"].btn-block {
|
||||
}
|
||||
|
||||
.input-group > .custom-file:not(:last-child) .custom-file-label,
|
||||
.input-group > .custom-file:not(:last-child) .custom-file-label::after {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.input-group > .custom-file:not(:first-child) .custom-file-label {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
@ -3627,6 +3642,7 @@ input[type="button"].btn-block {
|
||||
|
||||
.input-group:not(.has-validation) > .form-control:not(:last-child),
|
||||
.input-group:not(.has-validation) > .custom-select:not(:last-child),
|
||||
.input-group:not(.has-validation) > .custom-file:not(:last-child) .custom-file-label,
|
||||
.input-group:not(.has-validation) > .custom-file:not(:last-child) .custom-file-label::after {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
@ -3634,6 +3650,7 @@ input[type="button"].btn-block {
|
||||
|
||||
.input-group.has-validation > .form-control:nth-last-child(n + 3),
|
||||
.input-group.has-validation > .custom-select:nth-last-child(n + 3),
|
||||
.input-group.has-validation > .custom-file:nth-last-child(n + 3) .custom-file-label,
|
||||
.input-group.has-validation > .custom-file:nth-last-child(n + 3) .custom-file-label::after {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
@ -6539,8 +6556,11 @@ a.close.disabled {
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
width: 15%;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
background: none;
|
||||
border: 0;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
@ -6659,7 +6679,7 @@ a.close.disabled {
|
||||
display: inline-block;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
vertical-align: text-bottom;
|
||||
vertical-align: -0.125em;
|
||||
border: 0.25em solid currentColor;
|
||||
border-right-color: transparent;
|
||||
border-radius: 50%;
|
||||
@ -6701,7 +6721,7 @@ a.close.disabled {
|
||||
display: inline-block;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
vertical-align: text-bottom;
|
||||
vertical-align: -0.125em;
|
||||
background-color: currentColor;
|
||||
border-radius: 50%;
|
||||
opacity: 0;
|
||||
@ -10238,9 +10258,6 @@ a.text-dark:hover, a.text-dark:focus {
|
||||
border: 1px solid #adb5bd;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tr,
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
|
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
4
dist/css/bootstrap.min.css
vendored
4
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
1693
dist/js/bootstrap.bundle.js
vendored
1693
dist/js/bootstrap.bundle.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bootstrap = {}, global.jQuery));
|
||||
}(this, (function (exports, $) { 'use strict';
|
||||
})(this, (function (exports, $) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -29,8 +29,8 @@
|
||||
return Constructor;
|
||||
}
|
||||
|
||||
function _extends() {
|
||||
_extends = Object.assign || function (target) {
|
||||
function _extends$1() {
|
||||
_extends$1 = Object.assign || function (target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i];
|
||||
|
||||
@ -44,25 +44,33 @@
|
||||
return target;
|
||||
};
|
||||
|
||||
return _extends.apply(this, arguments);
|
||||
return _extends$1.apply(this, arguments);
|
||||
}
|
||||
|
||||
function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
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 (v4.6.0): util.js
|
||||
* Bootstrap (v4.6.1): util.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Private TransitionEnd Helpers
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var TRANSITION_END = 'transitionend';
|
||||
@ -82,7 +90,7 @@
|
||||
bindType: TRANSITION_END,
|
||||
delegateType: TRANSITION_END,
|
||||
handle: function handle(event) {
|
||||
if ($__default['default'](event.target).is(this)) {
|
||||
if ($__default["default"](event.target).is(this)) {
|
||||
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
||||
}
|
||||
|
||||
@ -95,7 +103,7 @@
|
||||
var _this = this;
|
||||
|
||||
var called = false;
|
||||
$__default['default'](this).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](this).one(Util.TRANSITION_END, function () {
|
||||
called = true;
|
||||
});
|
||||
setTimeout(function () {
|
||||
@ -107,13 +115,11 @@
|
||||
}
|
||||
|
||||
function setTransitionEndSupport() {
|
||||
$__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
$__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
}
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util Api
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util API
|
||||
*/
|
||||
|
||||
|
||||
@ -121,6 +127,7 @@
|
||||
TRANSITION_END: 'bsTransitionEnd',
|
||||
getUID: function getUID(prefix) {
|
||||
do {
|
||||
// eslint-disable-next-line no-bitwise
|
||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||
} while (document.getElementById(prefix));
|
||||
|
||||
@ -146,8 +153,8 @@
|
||||
} // Get transition-duration of the element
|
||||
|
||||
|
||||
var transitionDuration = $__default['default'](element).css('transition-duration');
|
||||
var transitionDelay = $__default['default'](element).css('transition-delay');
|
||||
var transitionDuration = $__default["default"](element).css('transition-duration');
|
||||
var transitionDelay = $__default["default"](element).css('transition-delay');
|
||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||
|
||||
@ -164,7 +171,7 @@
|
||||
return element.offsetHeight;
|
||||
},
|
||||
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
||||
$__default['default'](element).trigger(TRANSITION_END);
|
||||
$__default["default"](element).trigger(TRANSITION_END);
|
||||
},
|
||||
supportsTransitionEnd: function supportsTransitionEnd() {
|
||||
return Boolean(TRANSITION_END);
|
||||
@ -208,11 +215,11 @@
|
||||
return Util.findShadowRoot(element.parentNode);
|
||||
},
|
||||
jQueryDetection: function jQueryDetection() {
|
||||
if (typeof $__default['default'] === 'undefined') {
|
||||
if (typeof $__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
||||
}
|
||||
|
||||
var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
|
||||
var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
|
||||
var minMajor = 1;
|
||||
var ltMajor = 2;
|
||||
var minMinor = 9;
|
||||
@ -228,28 +235,24 @@
|
||||
setTransitionEndSupport();
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'alert';
|
||||
var VERSION = '4.6.0';
|
||||
var DATA_KEY = 'bs.alert';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var NAME$a = 'alert';
|
||||
var VERSION$a = '4.6.1';
|
||||
var DATA_KEY$a = 'bs.alert';
|
||||
var EVENT_KEY$a = "." + DATA_KEY$a;
|
||||
var DATA_API_KEY$7 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a];
|
||||
var CLASS_NAME_ALERT = 'alert';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_FADE$5 = 'fade';
|
||||
var CLASS_NAME_SHOW$7 = 'show';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY$a;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY$a;
|
||||
var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$a + DATA_API_KEY$7;
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Alert = /*#__PURE__*/function () {
|
||||
@ -278,7 +281,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$a);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
@ -292,48 +295,48 @@
|
||||
}
|
||||
|
||||
if (!parent) {
|
||||
parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
parent = $__default["default"](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
}
|
||||
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||
var closeEvent = $__default['default'].Event(EVENT_CLOSE);
|
||||
$__default['default'](element).trigger(closeEvent);
|
||||
var closeEvent = $__default["default"].Event(EVENT_CLOSE);
|
||||
$__default["default"](element).trigger(closeEvent);
|
||||
return closeEvent;
|
||||
};
|
||||
|
||||
_proto._removeElement = function _removeElement(element) {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](element).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](element).removeClass(CLASS_NAME_SHOW$7);
|
||||
|
||||
if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) {
|
||||
if (!$__default["default"](element).hasClass(CLASS_NAME_FADE$5)) {
|
||||
this._destroyElement(element);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(element);
|
||||
$__default['default'](element).one(Util.TRANSITION_END, function (event) {
|
||||
$__default["default"](element).one(Util.TRANSITION_END, function (event) {
|
||||
return _this._destroyElement(element, event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto._destroyElement = function _destroyElement(element) {
|
||||
$__default['default'](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
$__default["default"](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$a);
|
||||
|
||||
if (!data) {
|
||||
data = new Alert(this);
|
||||
$element.data(DATA_KEY, data);
|
||||
$element.data(DATA_KEY$a, data);
|
||||
}
|
||||
|
||||
if (config === 'close') {
|
||||
@ -355,63 +358,55 @@
|
||||
_createClass(Alert, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION;
|
||||
return VERSION$a;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Alert;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Alert._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Alert;
|
||||
$__default["default"].fn[NAME$a] = Alert._jQueryInterface;
|
||||
$__default["default"].fn[NAME$a].Constructor = Alert;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME$a].noConflict = function () {
|
||||
$__default["default"].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Alert._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$1 = 'button';
|
||||
var VERSION$1 = '4.6.0';
|
||||
var DATA_KEY$1 = 'bs.button';
|
||||
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
||||
var DATA_API_KEY$1 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$1 = $__default['default'].fn[NAME$1];
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var NAME$9 = 'button';
|
||||
var VERSION$9 = '4.6.1';
|
||||
var DATA_KEY$9 = 'bs.button';
|
||||
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
||||
var DATA_API_KEY$6 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9];
|
||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||
var CLASS_NAME_BUTTON = 'btn';
|
||||
var CLASS_NAME_FOCUS = 'focus';
|
||||
var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$9 + DATA_API_KEY$6;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$9 + DATA_API_KEY$6 + " " + ("blur" + EVENT_KEY$9 + DATA_API_KEY$6);
|
||||
var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$9 + DATA_API_KEY$6;
|
||||
var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
|
||||
var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
||||
var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="button"]';
|
||||
var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
|
||||
var SELECTOR_INPUT = 'input:not([type="hidden"])';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_ACTIVE$2 = '.active';
|
||||
var SELECTOR_BUTTON = '.btn';
|
||||
var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Button = /*#__PURE__*/function () {
|
||||
@ -427,20 +422,20 @@
|
||||
_proto.toggle = function toggle() {
|
||||
var triggerChangeEvent = true;
|
||||
var addAriaPressed = true;
|
||||
var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
var rootElement = $__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
|
||||
if (rootElement) {
|
||||
var input = this._element.querySelector(SELECTOR_INPUT);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
|
||||
if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE$3)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
|
||||
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE$2);
|
||||
|
||||
if (activeElement) {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -448,11 +443,11 @@
|
||||
if (triggerChangeEvent) {
|
||||
// if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
|
||||
if (input.type === 'checkbox' || input.type === 'radio') {
|
||||
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
|
||||
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
|
||||
if (!this.shouldAvoidTriggerChange) {
|
||||
$__default['default'](input).trigger('change');
|
||||
$__default["default"](input).trigger('change');
|
||||
}
|
||||
}
|
||||
|
||||
@ -463,29 +458,29 @@
|
||||
|
||||
if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
|
||||
if (addAriaPressed) {
|
||||
this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
|
||||
this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE$3));
|
||||
}
|
||||
|
||||
if (triggerChangeEvent) {
|
||||
$__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$1);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$9);
|
||||
this._element = null;
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$1);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$9);
|
||||
|
||||
if (!data) {
|
||||
data = new Button(this);
|
||||
$element.data(DATA_KEY$1, data);
|
||||
$element.data(DATA_KEY$9, data);
|
||||
}
|
||||
|
||||
data.shouldAvoidTriggerChange = avoidTriggerChange;
|
||||
@ -499,25 +494,23 @@
|
||||
_createClass(Button, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$1;
|
||||
return VERSION$9;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Button;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = event.target;
|
||||
var initialButton = button;
|
||||
|
||||
if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default['default'](button).closest(SELECTOR_BUTTON)[0];
|
||||
if (!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default["default"](button).closest(SELECTOR_BUTTON)[0];
|
||||
}
|
||||
|
||||
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
|
||||
@ -532,14 +525,14 @@
|
||||
}
|
||||
|
||||
if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
|
||||
Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
Button._jQueryInterface.call($__default["default"](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
}
|
||||
}
|
||||
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
var button = $__default["default"](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default["default"](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
});
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API$2, function () {
|
||||
// ensure correct active class is set to match the controls' actual values/states
|
||||
// find all checkboxes/readio buttons inside data-toggle groups
|
||||
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
|
||||
@ -549,51 +542,47 @@
|
||||
var input = button.querySelector(SELECTOR_INPUT);
|
||||
|
||||
if (input.checked || input.hasAttribute('checked')) {
|
||||
button.classList.add(CLASS_NAME_ACTIVE);
|
||||
button.classList.add(CLASS_NAME_ACTIVE$3);
|
||||
} else {
|
||||
button.classList.remove(CLASS_NAME_ACTIVE);
|
||||
button.classList.remove(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
} // find all button toggles
|
||||
|
||||
|
||||
buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
|
||||
buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$4));
|
||||
|
||||
for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
|
||||
var _button = buttons[_i];
|
||||
|
||||
if (_button.getAttribute('aria-pressed') === 'true') {
|
||||
_button.classList.add(CLASS_NAME_ACTIVE);
|
||||
_button.classList.add(CLASS_NAME_ACTIVE$3);
|
||||
} else {
|
||||
_button.classList.remove(CLASS_NAME_ACTIVE);
|
||||
_button.classList.remove(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$1] = Button._jQueryInterface;
|
||||
$__default['default'].fn[NAME$1].Constructor = Button;
|
||||
$__default["default"].fn[NAME$9] = Button._jQueryInterface;
|
||||
$__default["default"].fn[NAME$9].Constructor = Button;
|
||||
|
||||
$__default['default'].fn[NAME$1].noConflict = function () {
|
||||
$__default['default'].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
$__default["default"].fn[NAME$9].noConflict = function () {
|
||||
$__default["default"].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Button._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$2 = 'carousel';
|
||||
var VERSION$2 = '4.6.0';
|
||||
var DATA_KEY$2 = 'bs.carousel';
|
||||
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
||||
var DATA_API_KEY$2 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$2 = $__default['default'].fn[NAME$2];
|
||||
var NAME$8 = 'carousel';
|
||||
var VERSION$8 = '4.6.1';
|
||||
var DATA_KEY$8 = 'bs.carousel';
|
||||
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
||||
var DATA_API_KEY$5 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8];
|
||||
var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
|
||||
|
||||
var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
|
||||
@ -601,47 +590,31 @@
|
||||
var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
|
||||
|
||||
var SWIPE_THRESHOLD = 40;
|
||||
var Default = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var DIRECTION_NEXT = 'next';
|
||||
var DIRECTION_PREV = 'prev';
|
||||
var DIRECTION_LEFT = 'left';
|
||||
var DIRECTION_RIGHT = 'right';
|
||||
var EVENT_SLIDE = "slide" + EVENT_KEY$2;
|
||||
var EVENT_SLID = "slid" + EVENT_KEY$2;
|
||||
var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
|
||||
var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
|
||||
var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
|
||||
var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
|
||||
var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
|
||||
var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
|
||||
var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
|
||||
var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
|
||||
var CLASS_NAME_CAROUSEL = 'carousel';
|
||||
var CLASS_NAME_ACTIVE$1 = 'active';
|
||||
var CLASS_NAME_ACTIVE$2 = 'active';
|
||||
var CLASS_NAME_SLIDE = 'slide';
|
||||
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
||||
var CLASS_NAME_LEFT = 'carousel-item-left';
|
||||
var CLASS_NAME_NEXT = 'carousel-item-next';
|
||||
var CLASS_NAME_PREV = 'carousel-item-prev';
|
||||
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
||||
var DIRECTION_NEXT = 'next';
|
||||
var DIRECTION_PREV = 'prev';
|
||||
var DIRECTION_LEFT = 'left';
|
||||
var DIRECTION_RIGHT = 'right';
|
||||
var EVENT_SLIDE = "slide" + EVENT_KEY$8;
|
||||
var EVENT_SLID = "slid" + EVENT_KEY$8;
|
||||
var EVENT_KEYDOWN = "keydown" + EVENT_KEY$8;
|
||||
var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$8;
|
||||
var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHEND = "touchend" + EVENT_KEY$8;
|
||||
var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$8;
|
||||
var EVENT_POINTERUP = "pointerup" + EVENT_KEY$8;
|
||||
var EVENT_DRAG_START = "dragstart" + EVENT_KEY$8;
|
||||
var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$8 + DATA_API_KEY$5;
|
||||
var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$8 + DATA_API_KEY$5;
|
||||
var SELECTOR_ACTIVE$1 = '.active';
|
||||
var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
|
||||
var SELECTOR_ITEM = '.carousel-item';
|
||||
@ -650,14 +623,28 @@
|
||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||
var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
|
||||
var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
|
||||
var Default$7 = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType$7 = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var PointerType = {
|
||||
TOUCH: 'touch',
|
||||
PEN: 'pen'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Carousel = /*#__PURE__*/function () {
|
||||
@ -690,7 +677,7 @@
|
||||
};
|
||||
|
||||
_proto.nextWhenVisible = function nextWhenVisible() {
|
||||
var $element = $__default['default'](this._element); // Don't call next when the page isn't visible
|
||||
var $element = $__default["default"](this._element); // Don't call next when the page isn't visible
|
||||
// or the carousel or its parent isn't visible
|
||||
|
||||
if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') {
|
||||
@ -747,7 +734,7 @@
|
||||
}
|
||||
|
||||
if (this._isSliding) {
|
||||
$__default['default'](this._element).one(EVENT_SLID, function () {
|
||||
$__default["default"](this._element).one(EVENT_SLID, function () {
|
||||
return _this.to(index);
|
||||
});
|
||||
return;
|
||||
@ -765,8 +752,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'](this._element).off(EVENT_KEY$2);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$2);
|
||||
$__default["default"](this._element).off(EVENT_KEY$8);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$8);
|
||||
this._items = null;
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
@ -779,8 +766,8 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, config);
|
||||
Util.typeCheckConfig(NAME$2, config, DefaultType);
|
||||
config = _extends$1({}, Default$7, config);
|
||||
Util.typeCheckConfig(NAME$8, config, DefaultType$7);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -808,13 +795,13 @@
|
||||
var _this2 = this;
|
||||
|
||||
if (this._config.keyboard) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
return _this2._keydown(event);
|
||||
});
|
||||
}
|
||||
|
||||
if (this._config.pause === 'hover') {
|
||||
$__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
return _this2.pause(event);
|
||||
}).on(EVENT_MOUSELEAVE, function (event) {
|
||||
return _this2.cycle(event);
|
||||
@ -843,11 +830,7 @@
|
||||
|
||||
var move = function move(event) {
|
||||
// ensure swiping with one touch and not pinching
|
||||
if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
|
||||
_this3.touchDeltaX = 0;
|
||||
} else {
|
||||
_this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
}
|
||||
_this3.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ? 0 : event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
};
|
||||
|
||||
var end = function end(event) {
|
||||
@ -877,27 +860,27 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
$__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
return e.preventDefault();
|
||||
});
|
||||
|
||||
if (this._pointerEvent) {
|
||||
$__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
|
||||
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
||||
} else {
|
||||
$__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
return move(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
}
|
||||
@ -949,25 +932,25 @@
|
||||
|
||||
var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
|
||||
|
||||
var slideEvent = $__default['default'].Event(EVENT_SLIDE, {
|
||||
var slideEvent = $__default["default"].Event(EVENT_SLIDE, {
|
||||
relatedTarget: relatedTarget,
|
||||
direction: eventDirectionName,
|
||||
from: fromIndex,
|
||||
to: targetIndex
|
||||
});
|
||||
$__default['default'](this._element).trigger(slideEvent);
|
||||
$__default["default"](this._element).trigger(slideEvent);
|
||||
return slideEvent;
|
||||
};
|
||||
|
||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||
if (this._indicatorsElement) {
|
||||
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
|
||||
$__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE$2);
|
||||
|
||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
||||
|
||||
if (nextIndicator) {
|
||||
$__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE$2);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -1015,7 +998,7 @@
|
||||
eventDirectionName = DIRECTION_RIGHT;
|
||||
}
|
||||
|
||||
if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
|
||||
if (nextElement && $__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE$2)) {
|
||||
this._isSliding = false;
|
||||
return;
|
||||
}
|
||||
@ -1040,32 +1023,32 @@
|
||||
this._setActiveIndicatorElement(nextElement);
|
||||
|
||||
this._activeElement = nextElement;
|
||||
var slidEvent = $__default['default'].Event(EVENT_SLID, {
|
||||
var slidEvent = $__default["default"].Event(EVENT_SLID, {
|
||||
relatedTarget: nextElement,
|
||||
direction: eventDirectionName,
|
||||
from: activeElementIndex,
|
||||
to: nextElementIndex
|
||||
});
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default['default'](nextElement).addClass(orderClassName);
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default["default"](nextElement).addClass(orderClassName);
|
||||
Util.reflow(nextElement);
|
||||
$__default['default'](activeElement).addClass(directionalClassName);
|
||||
$__default['default'](nextElement).addClass(directionalClassName);
|
||||
$__default["default"](activeElement).addClass(directionalClassName);
|
||||
$__default["default"](nextElement).addClass(directionalClassName);
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
|
||||
$__default['default'](activeElement).one(Util.TRANSITION_END, function () {
|
||||
$__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
|
||||
$__default["default"](activeElement).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2 + " " + orderClassName + " " + directionalClassName);
|
||||
_this4._isSliding = false;
|
||||
setTimeout(function () {
|
||||
return $__default['default'](_this4._element).trigger(slidEvent);
|
||||
return $__default["default"](_this4._element).trigger(slidEvent);
|
||||
}, 0);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2);
|
||||
$__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE$2);
|
||||
this._isSliding = false;
|
||||
$__default['default'](this._element).trigger(slidEvent);
|
||||
$__default["default"](this._element).trigger(slidEvent);
|
||||
}
|
||||
|
||||
if (isCycling) {
|
||||
@ -1076,19 +1059,19 @@
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$2);
|
||||
var data = $__default["default"](this).data(DATA_KEY$8);
|
||||
|
||||
var _config = _extends({}, Default, $__default['default'](this).data());
|
||||
var _config = _extends$1({}, Default$7, $__default["default"](this).data());
|
||||
|
||||
if (typeof config === 'object') {
|
||||
_config = _extends({}, _config, config);
|
||||
_config = _extends$1({}, _config, config);
|
||||
}
|
||||
|
||||
var action = typeof config === 'string' ? config : _config.slide;
|
||||
|
||||
if (!data) {
|
||||
data = new Carousel(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$2, data);
|
||||
$__default["default"](this).data(DATA_KEY$8, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'number') {
|
||||
@ -1113,13 +1096,13 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var target = $__default['default'](selector)[0];
|
||||
var target = $__default["default"](selector)[0];
|
||||
|
||||
if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
if (!target || !$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = _extends$1({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
var slideIndex = this.getAttribute('data-slide-to');
|
||||
|
||||
@ -1127,10 +1110,10 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._jQueryInterface.call($__default['default'](target), config);
|
||||
Carousel._jQueryInterface.call($__default["default"](target), config);
|
||||
|
||||
if (slideIndex) {
|
||||
$__default['default'](target).data(DATA_KEY$2).to(slideIndex);
|
||||
$__default["default"](target).data(DATA_KEY$8).to(slideIndex);
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
@ -1139,85 +1122,77 @@
|
||||
_createClass(Carousel, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$2;
|
||||
return VERSION$8;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default;
|
||||
return Default$7;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Carousel;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API$1, function () {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API$1, function () {
|
||||
var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
var $carousel = $__default['default'](carousels[i]);
|
||||
var $carousel = $__default["default"](carousels[i]);
|
||||
|
||||
Carousel._jQueryInterface.call($carousel, $carousel.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$2] = Carousel._jQueryInterface;
|
||||
$__default['default'].fn[NAME$2].Constructor = Carousel;
|
||||
$__default["default"].fn[NAME$8] = Carousel._jQueryInterface;
|
||||
$__default["default"].fn[NAME$8].Constructor = Carousel;
|
||||
|
||||
$__default['default'].fn[NAME$2].noConflict = function () {
|
||||
$__default['default'].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
$__default["default"].fn[NAME$8].noConflict = function () {
|
||||
$__default["default"].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return Carousel._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$3 = 'collapse';
|
||||
var VERSION$3 = '4.6.0';
|
||||
var DATA_KEY$3 = 'bs.collapse';
|
||||
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
||||
var DATA_API_KEY$3 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$3 = $__default['default'].fn[NAME$3];
|
||||
var Default$1 = {
|
||||
toggle: true,
|
||||
parent: ''
|
||||
};
|
||||
var DefaultType$1 = {
|
||||
toggle: 'boolean',
|
||||
parent: '(string|element)'
|
||||
};
|
||||
var EVENT_SHOW = "show" + EVENT_KEY$3;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY$3;
|
||||
var EVENT_HIDE = "hide" + 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 CLASS_NAME_SHOW$1 = 'show';
|
||||
var NAME$7 = 'collapse';
|
||||
var VERSION$7 = '4.6.1';
|
||||
var DATA_KEY$7 = 'bs.collapse';
|
||||
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
||||
var DATA_API_KEY$4 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7];
|
||||
var CLASS_NAME_SHOW$6 = 'show';
|
||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||
var DIMENSION_WIDTH = 'width';
|
||||
var DIMENSION_HEIGHT = 'height';
|
||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$7;
|
||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$7;
|
||||
var EVENT_HIDE$4 = "hide" + EVENT_KEY$7;
|
||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$7;
|
||||
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$7 + DATA_API_KEY$4;
|
||||
var SELECTOR_ACTIVES = '.show, .collapsing';
|
||||
var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
|
||||
var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="collapse"]';
|
||||
var Default$6 = {
|
||||
toggle: true,
|
||||
parent: ''
|
||||
};
|
||||
var DefaultType$6 = {
|
||||
toggle: 'boolean',
|
||||
parent: '(string|element)'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Collapse = /*#__PURE__*/function () {
|
||||
@ -1226,7 +1201,7 @@
|
||||
this._element = element;
|
||||
this._config = this._getConfig(config);
|
||||
this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
|
||||
var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
|
||||
var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$3));
|
||||
|
||||
for (var i = 0, len = toggleList.length; i < len; i++) {
|
||||
var elem = toggleList[i];
|
||||
@ -1258,7 +1233,7 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
@ -1268,7 +1243,7 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if (this._isTransitioning || $__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1290,64 +1265,64 @@
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY$3);
|
||||
activesData = $__default["default"](actives).not(this._selector).data(DATA_KEY$7);
|
||||
|
||||
if (activesData && activesData._isTransitioning) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_SHOW);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_SHOW$4);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide');
|
||||
Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector), 'hide');
|
||||
|
||||
if (!activesData) {
|
||||
$__default['default'](actives).data(DATA_KEY$3, null);
|
||||
$__default["default"](actives).data(DATA_KEY$7, null);
|
||||
}
|
||||
}
|
||||
|
||||
var dimension = this._getDimension();
|
||||
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
this._element.style[dimension] = 0;
|
||||
|
||||
if (this._triggerArray.length) {
|
||||
$__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
$__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
}
|
||||
|
||||
this.setTransitioning(true);
|
||||
|
||||
var complete = function complete() {
|
||||
$__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
||||
$__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6);
|
||||
_this._element.style[dimension] = '';
|
||||
|
||||
_this.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN$4);
|
||||
};
|
||||
|
||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||
var scrollSize = "scroll" + capitalizedDimension;
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
var _this2 = this;
|
||||
|
||||
if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if (this._isTransitioning || !$__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_HIDE);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_HIDE$4);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -1357,7 +1332,7 @@
|
||||
|
||||
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
|
||||
Util.reflow(this._element);
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6);
|
||||
var triggerArrayLength = this._triggerArray.length;
|
||||
|
||||
if (triggerArrayLength > 0) {
|
||||
@ -1366,10 +1341,10 @@
|
||||
var selector = Util.getSelectorFromElement(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector)));
|
||||
var $elem = $__default["default"]([].slice.call(document.querySelectorAll(selector)));
|
||||
|
||||
if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
|
||||
$__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
if (!$elem.hasClass(CLASS_NAME_SHOW$6)) {
|
||||
$__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1380,12 +1355,12 @@
|
||||
var complete = function complete() {
|
||||
_this2.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
|
||||
$__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN$4);
|
||||
};
|
||||
|
||||
this._element.style[dimension] = '';
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto.setTransitioning = function setTransitioning(isTransitioning) {
|
||||
@ -1393,7 +1368,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$3);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$7);
|
||||
this._config = null;
|
||||
this._parent = null;
|
||||
this._element = null;
|
||||
@ -1403,15 +1378,15 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$1, config);
|
||||
config = _extends$1({}, Default$6, config);
|
||||
config.toggle = Boolean(config.toggle); // Coerce string values
|
||||
|
||||
Util.typeCheckConfig(NAME$3, config, DefaultType$1);
|
||||
Util.typeCheckConfig(NAME$7, config, DefaultType$6);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._getDimension = function _getDimension() {
|
||||
var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH);
|
||||
var hasWidth = $__default["default"](this._element).hasClass(DIMENSION_WIDTH);
|
||||
return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
|
||||
};
|
||||
|
||||
@ -1432,17 +1407,17 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
|
||||
var children = [].slice.call(parent.querySelectorAll(selector));
|
||||
$__default['default'](children).each(function (i, element) {
|
||||
$__default["default"](children).each(function (i, element) {
|
||||
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
|
||||
});
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
||||
var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW$1);
|
||||
var isOpen = $__default["default"](element).hasClass(CLASS_NAME_SHOW$6);
|
||||
|
||||
if (triggerArray.length) {
|
||||
$__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
$__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
}
|
||||
} // Static
|
||||
;
|
||||
@ -1454,10 +1429,10 @@
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$3);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$7);
|
||||
|
||||
var _config = _extends({}, Default$1, $element.data(), typeof config === 'object' && config ? config : {});
|
||||
var _config = _extends$1({}, Default$6, $element.data(), typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
|
||||
_config.toggle = false;
|
||||
@ -1465,7 +1440,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Collapse(this, _config);
|
||||
$element.data(DATA_KEY$3, data);
|
||||
$element.data(DATA_KEY$7, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -1481,52 +1456,48 @@
|
||||
_createClass(Collapse, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$3;
|
||||
return VERSION$7;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$1;
|
||||
return Default$6;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Collapse;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {
|
||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||
if (event.currentTarget.tagName === 'A') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $trigger = $__default['default'](this);
|
||||
var $trigger = $__default["default"](this);
|
||||
var selector = Util.getSelectorFromElement(this);
|
||||
var selectors = [].slice.call(document.querySelectorAll(selector));
|
||||
$__default['default'](selectors).each(function () {
|
||||
var $target = $__default['default'](this);
|
||||
var data = $target.data(DATA_KEY$3);
|
||||
$__default["default"](selectors).each(function () {
|
||||
var $target = $__default["default"](this);
|
||||
var data = $target.data(DATA_KEY$7);
|
||||
var config = data ? 'toggle' : $trigger.data();
|
||||
|
||||
Collapse._jQueryInterface.call($target, config);
|
||||
});
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$3] = Collapse._jQueryInterface;
|
||||
$__default['default'].fn[NAME$3].Constructor = Collapse;
|
||||
$__default["default"].fn[NAME$7] = Collapse._jQueryInterface;
|
||||
$__default["default"].fn[NAME$7].Constructor = Collapse;
|
||||
|
||||
$__default['default'].fn[NAME$3].noConflict = function () {
|
||||
$__default['default'].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
$__default["default"].fn[NAME$7].noConflict = function () {
|
||||
$__default["default"].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Collapse._jQueryInterface;
|
||||
};
|
||||
|
||||
@ -1939,7 +1910,7 @@
|
||||
return obj;
|
||||
};
|
||||
|
||||
var _extends$1 = Object.assign || function (target) {
|
||||
var _extends = Object.assign || function (target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i];
|
||||
|
||||
@ -1961,7 +1932,7 @@
|
||||
* @returns {Object} ClientRect like output
|
||||
*/
|
||||
function getClientRect(offsets) {
|
||||
return _extends$1({}, offsets, {
|
||||
return _extends({}, offsets, {
|
||||
right: offsets.left + offsets.width,
|
||||
bottom: offsets.top + offsets.height
|
||||
});
|
||||
@ -2249,7 +2220,7 @@
|
||||
};
|
||||
|
||||
var sortedAreas = Object.keys(rects).map(function (key) {
|
||||
return _extends$1({
|
||||
return _extends({
|
||||
key: key
|
||||
}, rects[key], {
|
||||
area: getArea(rects[key])
|
||||
@ -2891,9 +2862,9 @@
|
||||
};
|
||||
|
||||
// Update `data` attributes, styles and arrowStyles
|
||||
data.attributes = _extends$1({}, attributes, data.attributes);
|
||||
data.styles = _extends$1({}, styles, data.styles);
|
||||
data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
|
||||
data.attributes = _extends({}, attributes, data.attributes);
|
||||
data.styles = _extends({}, styles, data.styles);
|
||||
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
|
||||
|
||||
return data;
|
||||
}
|
||||
@ -3173,7 +3144,7 @@
|
||||
|
||||
// this object contains `position`, we want to preserve it along with
|
||||
// any additional property we may add in the future
|
||||
data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
||||
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
||||
|
||||
data = runModifiers(data.instance.modifiers, data, 'flip');
|
||||
}
|
||||
@ -3447,7 +3418,7 @@
|
||||
|
||||
order.forEach(function (placement) {
|
||||
var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
|
||||
popper = _extends$1({}, popper, check[side](placement));
|
||||
popper = _extends({}, popper, check[side](placement));
|
||||
});
|
||||
|
||||
data.offsets.popper = popper;
|
||||
@ -3482,7 +3453,7 @@
|
||||
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
|
||||
};
|
||||
|
||||
data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
|
||||
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
|
||||
}
|
||||
|
||||
return data;
|
||||
@ -4014,7 +3985,7 @@
|
||||
this.update = debounce(this.update.bind(this));
|
||||
|
||||
// with {} we create a new object with the options inside it
|
||||
this.options = _extends$1({}, Popper.Defaults, options);
|
||||
this.options = _extends({}, Popper.Defaults, options);
|
||||
|
||||
// init state
|
||||
this.state = {
|
||||
@ -4029,13 +4000,13 @@
|
||||
|
||||
// Deep merge modifiers options
|
||||
this.options.modifiers = {};
|
||||
Object.keys(_extends$1({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
|
||||
_this.options.modifiers[name] = _extends$1({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
|
||||
Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
|
||||
_this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
|
||||
});
|
||||
|
||||
// Refactoring modifiers' list (Object => Array)
|
||||
this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
|
||||
return _extends$1({
|
||||
return _extends({
|
||||
name: name
|
||||
}, _this.options.modifiers[name]);
|
||||
})
|
||||
@ -4144,19 +4115,19 @@
|
||||
Popper.placements = placements;
|
||||
Popper.Defaults = Defaults;
|
||||
|
||||
var Popper$1 = Popper;
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$4 = 'dropdown';
|
||||
var VERSION$4 = '4.6.0';
|
||||
var DATA_KEY$4 = 'bs.dropdown';
|
||||
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
||||
var DATA_API_KEY$4 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$4 = $__default['default'].fn[NAME$4];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
var NAME$6 = 'dropdown';
|
||||
var VERSION$6 = '4.6.1';
|
||||
var DATA_KEY$6 = 'bs.dropdown';
|
||||
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
||||
var DATA_API_KEY$3 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6];
|
||||
var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
||||
|
||||
@ -4168,22 +4139,22 @@
|
||||
|
||||
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
||||
|
||||
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
||||
var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
|
||||
var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
|
||||
var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
|
||||
var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
|
||||
var EVENT_CLICK = "click" + EVENT_KEY$4;
|
||||
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_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_SHOW$2 = 'show';
|
||||
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE$1);
|
||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||
var CLASS_NAME_SHOW$5 = 'show';
|
||||
var CLASS_NAME_DROPUP = 'dropup';
|
||||
var CLASS_NAME_DROPRIGHT = 'dropright';
|
||||
var CLASS_NAME_DROPLEFT = 'dropleft';
|
||||
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
||||
var EVENT_HIDE$3 = "hide" + EVENT_KEY$6;
|
||||
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$6;
|
||||
var EVENT_SHOW$3 = "show" + EVENT_KEY$6;
|
||||
var EVENT_SHOWN$3 = "shown" + EVENT_KEY$6;
|
||||
var EVENT_CLICK = "click" + EVENT_KEY$6;
|
||||
var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
|
||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||
var SELECTOR_MENU = '.dropdown-menu';
|
||||
@ -4195,7 +4166,7 @@
|
||||
var PLACEMENT_BOTTOMEND = 'bottom-end';
|
||||
var PLACEMENT_RIGHT = 'right-start';
|
||||
var PLACEMENT_LEFT = 'left-start';
|
||||
var Default$2 = {
|
||||
var Default$5 = {
|
||||
offset: 0,
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
@ -4203,7 +4174,7 @@
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType$2 = {
|
||||
var DefaultType$5 = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
@ -4212,9 +4183,7 @@
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Dropdown = /*#__PURE__*/function () {
|
||||
@ -4233,11 +4202,11 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2);
|
||||
var isActive = $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
@ -4253,18 +4222,18 @@
|
||||
usePopper = false;
|
||||
}
|
||||
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$1, relatedTarget);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$3, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(showEvent);
|
||||
$__default["default"](parent).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4272,11 +4241,8 @@
|
||||
|
||||
|
||||
if (!this._inNavbar && usePopper) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper === 'undefined') {
|
||||
// Check for Popper dependency
|
||||
if (typeof Popper$1 === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||
}
|
||||
|
||||
@ -4296,41 +4262,41 @@
|
||||
|
||||
|
||||
if (this._config.boundary !== 'scrollParent') {
|
||||
$__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
$__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
}
|
||||
|
||||
this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
|
||||
this._popper = new Popper$1(referenceElement, this._menu, this._getPopperConfig());
|
||||
} // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
if ('ontouchstart' in document.documentElement && $__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._element.focus();
|
||||
|
||||
this._element.setAttribute('aria-expanded', true);
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_SHOWN$1, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_SHOWN$3, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || !$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4340,13 +4306,13 @@
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$4);
|
||||
$__default['default'](this._element).off(EVENT_KEY$4);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$6);
|
||||
$__default["default"](this._element).off(EVENT_KEY$6);
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
@ -4369,7 +4335,7 @@
|
||||
_proto._addEventListeners = function _addEventListeners() {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
@ -4378,8 +4344,8 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config);
|
||||
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||
config = _extends$1({}, this.constructor.Default, $__default["default"](this._element).data(), config);
|
||||
Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -4396,16 +4362,16 @@
|
||||
};
|
||||
|
||||
_proto._getPlacement = function _getPlacement() {
|
||||
var $parentDropdown = $__default['default'](this._element.parentNode);
|
||||
var $parentDropdown = $__default["default"](this._element.parentNode);
|
||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
||||
|
||||
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
||||
placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
placement = $__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
||||
placement = PLACEMENT_RIGHT;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
||||
placement = PLACEMENT_LEFT;
|
||||
} else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
} else if ($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
placement = PLACEMENT_BOTTOMEND;
|
||||
}
|
||||
|
||||
@ -4413,7 +4379,7 @@
|
||||
};
|
||||
|
||||
_proto._detectNavbar = function _detectNavbar() {
|
||||
return $__default['default'](this._element).closest('.navbar').length > 0;
|
||||
return $__default["default"](this._element).closest('.navbar').length > 0;
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
@ -4423,7 +4389,7 @@
|
||||
|
||||
if (typeof this._config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
|
||||
data.offsets = _extends$1({}, data.offsets, _this2._config.offset(data.offsets, _this2._element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -4453,19 +4419,19 @@
|
||||
};
|
||||
}
|
||||
|
||||
return _extends({}, popperConfig, this._config.popperConfig);
|
||||
return _extends$1({}, popperConfig, this._config.popperConfig);
|
||||
} // Static
|
||||
;
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$4);
|
||||
var data = $__default["default"](this).data(DATA_KEY$6);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
if (!data) {
|
||||
data = new Dropdown(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$4, data);
|
||||
$__default["default"](this).data(DATA_KEY$6, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -4488,7 +4454,7 @@
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var context = $__default['default'](toggles[i]).data(DATA_KEY$4);
|
||||
var context = $__default["default"](toggles[i]).data(DATA_KEY$6);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
};
|
||||
@ -4503,16 +4469,16 @@
|
||||
|
||||
var dropdownMenu = context._menu;
|
||||
|
||||
if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (!$__default["default"](parent).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) {
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default["default"].contains(parent, event.target)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
continue;
|
||||
@ -4521,7 +4487,7 @@
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
@ -4530,8 +4496,8 @@
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
|
||||
$__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).removeClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget));
|
||||
}
|
||||
};
|
||||
|
||||
@ -4555,36 +4521,36 @@
|
||||
// - If key is other than escape
|
||||
// - If key is not up or down => not a dropdown command
|
||||
// - If trigger inside the menu => not a dropdown command
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE$1 && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default["default"](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this.disabled || $__default["default"](this).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW$2);
|
||||
var isActive = $__default["default"](parent).hasClass(CLASS_NAME_SHOW$5);
|
||||
|
||||
if (!isActive && event.which === ESCAPE_KEYCODE) {
|
||||
if (!isActive && event.which === ESCAPE_KEYCODE$1) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {
|
||||
if (event.which === ESCAPE_KEYCODE) {
|
||||
$__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
|
||||
if (!isActive || event.which === ESCAPE_KEYCODE$1 || event.which === SPACE_KEYCODE) {
|
||||
if (event.which === ESCAPE_KEYCODE$1) {
|
||||
$__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
|
||||
}
|
||||
|
||||
$__default['default'](this).trigger('click');
|
||||
$__default["default"](this).trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
|
||||
return $__default['default'](item).is(':visible');
|
||||
return $__default["default"](item).is(':visible');
|
||||
});
|
||||
|
||||
if (items.length === 0) {
|
||||
@ -4613,77 +4579,66 @@
|
||||
_createClass(Dropdown, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$4;
|
||||
return VERSION$6;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$2;
|
||||
return Default$5;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$2;
|
||||
return DefaultType$5;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Dropdown;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
|
||||
$__default["default"](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$2 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._jQueryInterface.call($__default['default'](this), 'toggle');
|
||||
}).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
|
||||
Dropdown._jQueryInterface.call($__default["default"](this), 'toggle');
|
||||
}).on(EVENT_CLICK_DATA_API$2, SELECTOR_FORM_CHILD, function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$4] = Dropdown._jQueryInterface;
|
||||
$__default['default'].fn[NAME$4].Constructor = Dropdown;
|
||||
$__default["default"].fn[NAME$6] = Dropdown._jQueryInterface;
|
||||
$__default["default"].fn[NAME$6].Constructor = Dropdown;
|
||||
|
||||
$__default['default'].fn[NAME$4].noConflict = function () {
|
||||
$__default['default'].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
$__default["default"].fn[NAME$6].noConflict = function () {
|
||||
$__default["default"].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Dropdown._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$5 = 'modal';
|
||||
var VERSION$5 = '4.6.0';
|
||||
var VERSION$5 = '4.6.1';
|
||||
var DATA_KEY$5 = 'bs.modal';
|
||||
var EVENT_KEY$5 = "." + DATA_KEY$5;
|
||||
var DATA_API_KEY$5 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$5 = $__default['default'].fn[NAME$5];
|
||||
var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
var DATA_API_KEY$2 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var Default$3 = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType$3 = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE$4 = 'fade';
|
||||
var CLASS_NAME_SHOW$4 = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
|
||||
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
|
||||
var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
|
||||
@ -4691,28 +4646,31 @@
|
||||
var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
|
||||
var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
|
||||
var EVENT_RESIZE = "resize" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE$1 = 'fade';
|
||||
var CLASS_NAME_SHOW$3 = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$5 + DATA_API_KEY$2;
|
||||
var SELECTOR_DIALOG = '.modal-dialog';
|
||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||
var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
|
||||
var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="modal"]';
|
||||
var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="modal"]';
|
||||
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
||||
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
||||
var Default$4 = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType$4 = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Modal = /*#__PURE__*/function () {
|
||||
@ -4743,21 +4701,21 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$2, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$2, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (this._isShown || showEvent.isDefaultPrevented()) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = true;
|
||||
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
this._checkScrollbar();
|
||||
|
||||
this._setScrollbar();
|
||||
@ -4768,12 +4726,12 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function (event) {
|
||||
return _this.hide(event);
|
||||
});
|
||||
$__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default['default'](event.target).is(_this._element)) {
|
||||
$__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default["default"](event.target).is(_this._element)) {
|
||||
_this._ignoreBackdropClick = true;
|
||||
}
|
||||
});
|
||||
@ -4795,15 +4753,15 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$2);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$2);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = false;
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4);
|
||||
|
||||
if (transition) {
|
||||
this._isTransitioning = true;
|
||||
@ -4813,14 +4771,14 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_SHOW$3);
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_SHOW$4);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS$1);
|
||||
$__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, function (event) {
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, function (event) {
|
||||
return _this2._hideModal(event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
@ -4830,7 +4788,7 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
[window, this._element, this._dialog].forEach(function (htmlElement) {
|
||||
return $__default['default'](htmlElement).off(EVENT_KEY$5);
|
||||
return $__default["default"](htmlElement).off(EVENT_KEY$5);
|
||||
});
|
||||
/**
|
||||
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
||||
@ -4838,8 +4796,8 @@
|
||||
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
||||
*/
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$5);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$5);
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
this._dialog = null;
|
||||
@ -4857,16 +4815,16 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$3, config);
|
||||
Util.typeCheckConfig(NAME$5, config, DefaultType$3);
|
||||
config = _extends$1({}, Default$4, config);
|
||||
Util.typeCheckConfig(NAME$5, config, DefaultType$4);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this3 = this;
|
||||
|
||||
var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default['default'](this._element).trigger(hideEventPrevented);
|
||||
var hideEventPrevented = $__default["default"].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default["default"](this._element).trigger(hideEventPrevented);
|
||||
|
||||
if (hideEventPrevented.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4881,12 +4839,12 @@
|
||||
this._element.classList.add(CLASS_NAME_STATIC);
|
||||
|
||||
var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._element).off(Util.TRANSITION_END);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](this._element).off(Util.TRANSITION_END);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, function () {
|
||||
_this3._element.classList.remove(CLASS_NAME_STATIC);
|
||||
|
||||
if (!isModalOverflowing) {
|
||||
$__default['default'](_this3._element).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](_this3._element).one(Util.TRANSITION_END, function () {
|
||||
_this3._element.style.overflowY = '';
|
||||
}).emulateTransitionEnd(_this3._element, modalTransitionDuration);
|
||||
}
|
||||
@ -4898,7 +4856,7 @@
|
||||
_proto._showElement = function _showElement(relatedTarget) {
|
||||
var _this4 = this;
|
||||
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4);
|
||||
var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
@ -4914,7 +4872,7 @@
|
||||
|
||||
this._element.setAttribute('role', 'dialog');
|
||||
|
||||
if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
if ($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
@ -4924,13 +4882,13 @@
|
||||
Util.reflow(this._element);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
if (this._config.focus) {
|
||||
this._enforceFocus();
|
||||
}
|
||||
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN$2, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN$2, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
|
||||
@ -4940,12 +4898,12 @@
|
||||
}
|
||||
|
||||
_this4._isTransitioning = false;
|
||||
$__default['default'](_this4._element).trigger(shownEvent);
|
||||
$__default["default"](_this4._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
transitionComplete();
|
||||
}
|
||||
@ -4954,9 +4912,9 @@
|
||||
_proto._enforceFocus = function _enforceFocus() {
|
||||
var _this5 = this;
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
$__default["default"](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
.on(EVENT_FOCUSIN, function (event) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default["default"](_this5._element).has(event.target).length === 0) {
|
||||
_this5._element.focus();
|
||||
}
|
||||
});
|
||||
@ -4966,17 +4924,17 @@
|
||||
var _this6 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
|
||||
event.preventDefault();
|
||||
|
||||
_this6.hide();
|
||||
} else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
||||
} else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
|
||||
_this6._triggerBackdropTransition();
|
||||
}
|
||||
});
|
||||
} else if (!this._isShown) {
|
||||
$__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
$__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
}
|
||||
};
|
||||
|
||||
@ -4984,11 +4942,11 @@
|
||||
var _this7 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](window).on(EVENT_RESIZE, function (event) {
|
||||
$__default["default"](window).on(EVENT_RESIZE, function (event) {
|
||||
return _this7.handleUpdate(event);
|
||||
});
|
||||
} else {
|
||||
$__default['default'](window).off(EVENT_RESIZE);
|
||||
$__default["default"](window).off(EVENT_RESIZE);
|
||||
}
|
||||
};
|
||||
|
||||
@ -5006,19 +4964,19 @@
|
||||
this._isTransitioning = false;
|
||||
|
||||
this._showBackdrop(function () {
|
||||
$__default['default'](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
|
||||
_this8._resetAdjustments();
|
||||
|
||||
_this8._resetScrollbar();
|
||||
|
||||
$__default['default'](_this8._element).trigger(EVENT_HIDDEN$2);
|
||||
$__default["default"](_this8._element).trigger(EVENT_HIDDEN$2);
|
||||
});
|
||||
};
|
||||
|
||||
_proto._removeBackdrop = function _removeBackdrop() {
|
||||
if (this._backdrop) {
|
||||
$__default['default'](this._backdrop).remove();
|
||||
$__default["default"](this._backdrop).remove();
|
||||
this._backdrop = null;
|
||||
}
|
||||
};
|
||||
@ -5026,7 +4984,7 @@
|
||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||
var _this9 = this;
|
||||
|
||||
var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
||||
var animate = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4) ? CLASS_NAME_FADE$4 : '';
|
||||
|
||||
if (this._isShown && this._config.backdrop) {
|
||||
this._backdrop = document.createElement('div');
|
||||
@ -5036,8 +4994,8 @@
|
||||
this._backdrop.classList.add(animate);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).appendTo(document.body);
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) {
|
||||
$__default["default"](this._backdrop).appendTo(document.body);
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, function (event) {
|
||||
if (_this9._ignoreBackdropClick) {
|
||||
_this9._ignoreBackdropClick = false;
|
||||
return;
|
||||
@ -5058,7 +5016,7 @@
|
||||
Util.reflow(this._backdrop);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
if (!callback) {
|
||||
return;
|
||||
@ -5070,9 +5028,9 @@
|
||||
}
|
||||
|
||||
var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
||||
$__default['default'](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
$__default["default"](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
} else if (!this._isShown && this._backdrop) {
|
||||
$__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
var callbackRemove = function callbackRemove() {
|
||||
_this9._removeBackdrop();
|
||||
@ -5082,10 +5040,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) {
|
||||
var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
||||
|
||||
$__default['default'](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
$__default["default"](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
} else {
|
||||
callbackRemove();
|
||||
}
|
||||
@ -5130,46 +5088,46 @@
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
|
||||
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](element).css('padding-right');
|
||||
$__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](element).css('padding-right');
|
||||
$__default["default"](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
$__default['default'](stickyContent).each(function (index, element) {
|
||||
$__default["default"](stickyContent).each(function (index, element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = $__default['default'](element).css('margin-right');
|
||||
$__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
var calculatedMargin = $__default["default"](element).css('margin-right');
|
||||
$__default["default"](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](document.body).css('padding-right');
|
||||
$__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](document.body).css('padding-right');
|
||||
$__default["default"](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
}
|
||||
|
||||
$__default['default'](document.body).addClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).addClass(CLASS_NAME_OPEN);
|
||||
};
|
||||
|
||||
_proto._resetScrollbar = function _resetScrollbar() {
|
||||
// Restore fixed content padding
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
var padding = $__default['default'](element).data('padding-right');
|
||||
$__default['default'](element).removeData('padding-right');
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var padding = $__default["default"](element).data('padding-right');
|
||||
$__default["default"](element).removeData('padding-right');
|
||||
element.style.paddingRight = padding ? padding : '';
|
||||
}); // Restore sticky content
|
||||
|
||||
var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
|
||||
$__default['default'](elements).each(function (index, element) {
|
||||
var margin = $__default['default'](element).data('margin-right');
|
||||
$__default["default"](elements).each(function (index, element) {
|
||||
var margin = $__default["default"](element).data('margin-right');
|
||||
|
||||
if (typeof margin !== 'undefined') {
|
||||
$__default['default'](element).css('margin-right', margin).removeData('margin-right');
|
||||
$__default["default"](element).css('margin-right', margin).removeData('margin-right');
|
||||
}
|
||||
}); // Restore body padding
|
||||
|
||||
var padding = $__default['default'](document.body).data('padding-right');
|
||||
$__default['default'](document.body).removeData('padding-right');
|
||||
var padding = $__default["default"](document.body).data('padding-right');
|
||||
$__default["default"](document.body).removeData('padding-right');
|
||||
document.body.style.paddingRight = padding ? padding : '';
|
||||
};
|
||||
|
||||
@ -5186,13 +5144,13 @@
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$5);
|
||||
var data = $__default["default"](this).data(DATA_KEY$5);
|
||||
|
||||
var _config = _extends({}, Default$3, $__default['default'](this).data(), typeof config === 'object' && config ? config : {});
|
||||
var _config = _extends$1({}, Default$4, $__default["default"](this).data(), typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (!data) {
|
||||
data = new Modal(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$5, data);
|
||||
$__default["default"](this).data(DATA_KEY$5, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -5215,20 +5173,18 @@
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$3;
|
||||
return Default$4;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Modal;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||
var _this11 = this;
|
||||
|
||||
var target;
|
||||
@ -5238,44 +5194,42 @@
|
||||
target = document.querySelector(selector);
|
||||
}
|
||||
|
||||
var config = $__default['default'](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = $__default["default"](target).data(DATA_KEY$5) ? 'toggle' : _extends$1({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $target = $__default['default'](target).one(EVENT_SHOW$2, function (showEvent) {
|
||||
var $target = $__default["default"](target).one(EVENT_SHOW$2, function (showEvent) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
// Only register focus restorer if modal will actually get shown
|
||||
return;
|
||||
}
|
||||
|
||||
$target.one(EVENT_HIDDEN$2, function () {
|
||||
if ($__default['default'](_this11).is(':visible')) {
|
||||
if ($__default["default"](_this11).is(':visible')) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Modal._jQueryInterface.call($__default['default'](target), config, this);
|
||||
Modal._jQueryInterface.call($__default["default"](target), config, this);
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$5] = Modal._jQueryInterface;
|
||||
$__default['default'].fn[NAME$5].Constructor = Modal;
|
||||
$__default["default"].fn[NAME$5] = Modal._jQueryInterface;
|
||||
$__default["default"].fn[NAME$5].Constructor = Modal;
|
||||
|
||||
$__default['default'].fn[NAME$5].noConflict = function () {
|
||||
$__default['default'].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
$__default["default"].fn[NAME$5].noConflict = function () {
|
||||
$__default["default"].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tools/sanitizer.js
|
||||
* Bootstrap (v4.6.1): tools/sanitizer.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -5317,14 +5271,14 @@
|
||||
/**
|
||||
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
|
||||
/**
|
||||
* A pattern that matches safe data URLs. Only matches image, video and audio types.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
|
||||
@ -5334,7 +5288,7 @@
|
||||
|
||||
if (allowedAttributeList.indexOf(attrName) !== -1) {
|
||||
if (uriAttrs.indexOf(attrName) !== -1) {
|
||||
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;
|
||||
@ -5345,7 +5299,7 @@
|
||||
}); // Check if a regular expression validates the attribute.
|
||||
|
||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||
if (attrName.match(regExp[i])) {
|
||||
if (regExp[i].test(attrName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -5376,7 +5330,8 @@
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var attributeList = [].slice.call(el.attributes);
|
||||
var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
|
||||
|
||||
var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
|
||||
attributeList.forEach(function (attr) {
|
||||
if (!allowedAttribute(attr, whitelistedAttributes)) {
|
||||
@ -5395,38 +5350,27 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$6 = 'tooltip';
|
||||
var VERSION$6 = '4.6.0';
|
||||
var DATA_KEY$6 = 'bs.tooltip';
|
||||
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
||||
var JQUERY_NO_CONFLICT$6 = $__default['default'].fn[NAME$6];
|
||||
var CLASS_PREFIX = 'bs-tooltip';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var NAME$4 = 'tooltip';
|
||||
var VERSION$4 = '4.6.1';
|
||||
var DATA_KEY$4 = 'bs.tooltip';
|
||||
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
||||
var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4];
|
||||
var CLASS_PREFIX$1 = 'bs-tooltip';
|
||||
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
||||
var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
|
||||
var DefaultType$4 = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var CLASS_NAME_FADE$3 = 'fade';
|
||||
var CLASS_NAME_SHOW$3 = 'show';
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
var AttachmentMap = {
|
||||
AUTO: 'auto',
|
||||
TOP: 'top',
|
||||
@ -5434,7 +5378,7 @@
|
||||
BOTTOM: 'bottom',
|
||||
LEFT: 'left'
|
||||
};
|
||||
var Default$4 = {
|
||||
var Default$3 = {
|
||||
animation: true,
|
||||
template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
|
||||
trigger: 'hover focus',
|
||||
@ -5453,39 +5397,46 @@
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY$6,
|
||||
HIDDEN: "hidden" + EVENT_KEY$6,
|
||||
SHOW: "show" + EVENT_KEY$6,
|
||||
SHOWN: "shown" + EVENT_KEY$6,
|
||||
INSERTED: "inserted" + EVENT_KEY$6,
|
||||
CLICK: "click" + EVENT_KEY$6,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$6,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$6,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
||||
var DefaultType$3 = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var Event$1 = {
|
||||
HIDE: "hide" + EVENT_KEY$4,
|
||||
HIDDEN: "hidden" + EVENT_KEY$4,
|
||||
SHOW: "show" + EVENT_KEY$4,
|
||||
SHOWN: "shown" + EVENT_KEY$4,
|
||||
INSERTED: "inserted" + EVENT_KEY$4,
|
||||
CLICK: "click" + EVENT_KEY$4,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$4,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$4,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$4,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$4
|
||||
};
|
||||
var CLASS_NAME_FADE$2 = 'fade';
|
||||
var CLASS_NAME_SHOW$4 = 'show';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tooltip = /*#__PURE__*/function () {
|
||||
function Tooltip(element, config) {
|
||||
if (typeof Popper === 'undefined') {
|
||||
if (typeof Popper$1 === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
||||
} // private
|
||||
} // Private
|
||||
|
||||
|
||||
this._isEnabled = true;
|
||||
@ -5524,11 +5475,11 @@
|
||||
|
||||
if (event) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
var context = $__default['default'](event.currentTarget).data(dataKey);
|
||||
var context = $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
context._activeTrigger.click = !context._activeTrigger.click;
|
||||
@ -5539,7 +5490,7 @@
|
||||
context._leave(null, context);
|
||||
}
|
||||
} else {
|
||||
if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
|
||||
if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW$3)) {
|
||||
this._leave(null, this);
|
||||
|
||||
return;
|
||||
@ -5551,12 +5502,12 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
clearTimeout(this._timeout);
|
||||
$__default['default'].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default['default'](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default["default"](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.tip) {
|
||||
$__default['default'](this.tip).remove();
|
||||
$__default["default"](this.tip).remove();
|
||||
}
|
||||
|
||||
this._isEnabled = null;
|
||||
@ -5577,16 +5528,16 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if ($__default['default'](this.element).css('display') === 'none') {
|
||||
if ($__default["default"](this.element).css('display') === 'none') {
|
||||
throw new Error('Please use show on visible elements');
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(this.constructor.Event.SHOW);
|
||||
var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
|
||||
|
||||
if (this.isWithContent() && this._isEnabled) {
|
||||
$__default['default'](this.element).trigger(showEvent);
|
||||
$__default["default"](this.element).trigger(showEvent);
|
||||
var shadowRoot = Util.findShadowRoot(this.element);
|
||||
var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
||||
return;
|
||||
@ -5599,7 +5550,7 @@
|
||||
this.setContent();
|
||||
|
||||
if (this.config.animation) {
|
||||
$__default['default'](tip).addClass(CLASS_NAME_FADE$2);
|
||||
$__default["default"](tip).addClass(CLASS_NAME_FADE$3);
|
||||
}
|
||||
|
||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
||||
@ -5610,22 +5561,22 @@
|
||||
|
||||
var container = this._getContainer();
|
||||
|
||||
$__default['default'](tip).data(this.constructor.DATA_KEY, this);
|
||||
$__default["default"](tip).data(this.constructor.DATA_KEY, this);
|
||||
|
||||
if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default['default'](tip).appendTo(container);
|
||||
if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default["default"](tip).appendTo(container);
|
||||
}
|
||||
|
||||
$__default['default'](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default['default'](tip).addClass(CLASS_NAME_SHOW$4);
|
||||
$__default['default'](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
$__default["default"](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper$1(this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default["default"](tip).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
var complete = function complete() {
|
||||
@ -5635,16 +5586,16 @@
|
||||
|
||||
var prevHoverState = _this._hoverState;
|
||||
_this._hoverState = null;
|
||||
$__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
|
||||
if (prevHoverState === HOVER_STATE_OUT) {
|
||||
_this._leave(null, _this);
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
|
||||
$__default['default'](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -5655,7 +5606,7 @@
|
||||
var _this2 = this;
|
||||
|
||||
var tip = this.getTipElement();
|
||||
var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE);
|
||||
var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
|
||||
|
||||
var complete = function complete() {
|
||||
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
|
||||
@ -5666,7 +5617,7 @@
|
||||
|
||||
_this2.element.removeAttribute('aria-describedby');
|
||||
|
||||
$__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
|
||||
if (_this2._popper !== null) {
|
||||
_this2._popper.destroy();
|
||||
@ -5677,26 +5628,26 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).trigger(hideEvent);
|
||||
$__default["default"](this.element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra
|
||||
// empty mouseover listeners we added for iOS support
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._activeTrigger[TRIGGER_CLICK] = false;
|
||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(tip);
|
||||
$__default['default'](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -5716,29 +5667,29 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement();
|
||||
this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
|
||||
this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$3);
|
||||
};
|
||||
|
||||
_proto.setElementContent = function setElementContent($element, content) {
|
||||
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
||||
// Content is a DOM node or a jQuery
|
||||
if (this.config.html) {
|
||||
if (!$__default['default'](content).parent().is($element)) {
|
||||
if (!$__default["default"](content).parent().is($element)) {
|
||||
$element.empty().append(content);
|
||||
}
|
||||
} else {
|
||||
$element.text($__default['default'](content).text());
|
||||
$element.text($__default["default"](content).text());
|
||||
}
|
||||
|
||||
return;
|
||||
@ -5792,7 +5743,7 @@
|
||||
return _this3._handlePopperPlacementChange(data);
|
||||
}
|
||||
};
|
||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
||||
return _extends$1({}, defaultBsConfig, this.config.popperConfig);
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
@ -5802,7 +5753,7 @@
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
data.offsets = _extends$1({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -5818,10 +5769,10 @@
|
||||
}
|
||||
|
||||
if (Util.isElement(this.config.container)) {
|
||||
return $__default['default'](this.config.container);
|
||||
return $__default["default"](this.config.container);
|
||||
}
|
||||
|
||||
return $__default['default'](document).find(this.config.container);
|
||||
return $__default["default"](document).find(this.config.container);
|
||||
};
|
||||
|
||||
_proto._getAttachment = function _getAttachment(placement) {
|
||||
@ -5834,13 +5785,13 @@
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
$__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== TRIGGER_MANUAL) {
|
||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
$__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
}).on(eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
@ -5854,10 +5805,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.config.selector) {
|
||||
this.config = _extends({}, this.config, {
|
||||
this.config = _extends$1({}, this.config, {
|
||||
trigger: 'manual',
|
||||
selector: ''
|
||||
});
|
||||
@ -5877,18 +5828,18 @@
|
||||
|
||||
_proto._enter = function _enter(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||
}
|
||||
|
||||
if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
context._hoverState = HOVER_STATE_SHOW;
|
||||
return;
|
||||
}
|
||||
@ -5910,11 +5861,11 @@
|
||||
|
||||
_proto._leave = function _leave(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
@ -5951,13 +5902,13 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
var dataAttributes = $__default['default'](this.element).data();
|
||||
var dataAttributes = $__default["default"](this.element).data();
|
||||
Object.keys(dataAttributes).forEach(function (dataAttr) {
|
||||
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
|
||||
delete dataAttributes[dataAttr];
|
||||
}
|
||||
});
|
||||
config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
|
||||
config = _extends$1({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (typeof config.delay === 'number') {
|
||||
config.delay = {
|
||||
@ -5974,7 +5925,7 @@
|
||||
config.content = config.content.toString();
|
||||
}
|
||||
|
||||
Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
|
||||
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||
|
||||
if (config.sanitize) {
|
||||
config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
|
||||
@ -5998,8 +5949,8 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
|
||||
|
||||
if (tabClass !== null && tabClass.length) {
|
||||
$tip.removeClass(tabClass.join(''));
|
||||
@ -6022,7 +5973,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE$2);
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE$3);
|
||||
this.config.animation = false;
|
||||
this.hide();
|
||||
this.show();
|
||||
@ -6032,8 +5983,8 @@
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$6);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$4);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
@ -6043,7 +5994,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Tooltip(this, _config);
|
||||
$element.data(DATA_KEY$6, data);
|
||||
$element.data(DATA_KEY$4, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -6059,102 +6010,96 @@
|
||||
_createClass(Tooltip, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$6;
|
||||
return VERSION$4;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$4;
|
||||
return Default$3;
|
||||
}
|
||||
}, {
|
||||
key: "NAME",
|
||||
get: function get() {
|
||||
return NAME$6;
|
||||
return NAME$4;
|
||||
}
|
||||
}, {
|
||||
key: "DATA_KEY",
|
||||
get: function get() {
|
||||
return DATA_KEY$6;
|
||||
return DATA_KEY$4;
|
||||
}
|
||||
}, {
|
||||
key: "Event",
|
||||
get: function get() {
|
||||
return Event;
|
||||
return Event$1;
|
||||
}
|
||||
}, {
|
||||
key: "EVENT_KEY",
|
||||
get: function get() {
|
||||
return EVENT_KEY$6;
|
||||
return EVENT_KEY$4;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$4;
|
||||
return DefaultType$3;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$6] = Tooltip._jQueryInterface;
|
||||
$__default['default'].fn[NAME$6].Constructor = Tooltip;
|
||||
$__default["default"].fn[NAME$4] = Tooltip._jQueryInterface;
|
||||
$__default["default"].fn[NAME$4].Constructor = Tooltip;
|
||||
|
||||
$__default['default'].fn[NAME$6].noConflict = function () {
|
||||
$__default['default'].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
$__default["default"].fn[NAME$4].noConflict = function () {
|
||||
$__default["default"].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Tooltip._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$7 = 'popover';
|
||||
var VERSION$7 = '4.6.0';
|
||||
var DATA_KEY$7 = 'bs.popover';
|
||||
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
||||
var JQUERY_NO_CONFLICT$7 = $__default['default'].fn[NAME$7];
|
||||
var CLASS_PREFIX$1 = 'bs-popover';
|
||||
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
||||
var NAME$3 = 'popover';
|
||||
var VERSION$3 = '4.6.1';
|
||||
var DATA_KEY$3 = 'bs.popover';
|
||||
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
||||
var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3];
|
||||
var CLASS_PREFIX = 'bs-popover';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var CLASS_NAME_FADE$2 = 'fade';
|
||||
var CLASS_NAME_SHOW$2 = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
|
||||
var Default$5 = _extends({}, Tooltip.Default, {
|
||||
var Default$2 = _extends$1({}, Tooltip.Default, {
|
||||
placement: 'right',
|
||||
trigger: 'click',
|
||||
content: '',
|
||||
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
||||
});
|
||||
|
||||
var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
|
||||
var DefaultType$2 = _extends$1({}, Tooltip.DefaultType, {
|
||||
content: '(string|element|function)'
|
||||
});
|
||||
|
||||
var CLASS_NAME_FADE$3 = 'fade';
|
||||
var CLASS_NAME_SHOW$5 = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
var Event$1 = {
|
||||
HIDE: "hide" + EVENT_KEY$7,
|
||||
HIDDEN: "hidden" + EVENT_KEY$7,
|
||||
SHOW: "show" + EVENT_KEY$7,
|
||||
SHOWN: "shown" + EVENT_KEY$7,
|
||||
INSERTED: "inserted" + EVENT_KEY$7,
|
||||
CLICK: "click" + EVENT_KEY$7,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$7,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$7,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY$3,
|
||||
HIDDEN: "hidden" + EVENT_KEY$3,
|
||||
SHOW: "show" + EVENT_KEY$3,
|
||||
SHOWN: "shown" + EVENT_KEY$3,
|
||||
INSERTED: "inserted" + EVENT_KEY$3,
|
||||
CLICK: "click" + EVENT_KEY$3,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$3,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$3,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$3,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$3
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Popover = /*#__PURE__*/function (_Tooltip) {
|
||||
@ -6172,16 +6117,16 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
var $tip = $__default["default"](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
|
||||
this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
|
||||
|
||||
@ -6192,7 +6137,7 @@
|
||||
}
|
||||
|
||||
this.setElementContent($tip.find(SELECTOR_CONTENT), content);
|
||||
$tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
|
||||
$tip.removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$2);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -6201,8 +6146,8 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
|
||||
if (tabClass !== null && tabClass.length > 0) {
|
||||
$tip.removeClass(tabClass.join(''));
|
||||
@ -6212,7 +6157,7 @@
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$7);
|
||||
var data = $__default["default"](this).data(DATA_KEY$3);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
@ -6222,7 +6167,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Popover(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$7, data);
|
||||
$__default["default"](this).data(DATA_KEY$3, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -6237,100 +6182,94 @@
|
||||
|
||||
_createClass(Popover, null, [{
|
||||
key: "VERSION",
|
||||
// Getters
|
||||
get: function get() {
|
||||
return VERSION$7;
|
||||
get: // Getters
|
||||
function get() {
|
||||
return VERSION$3;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$5;
|
||||
return Default$2;
|
||||
}
|
||||
}, {
|
||||
key: "NAME",
|
||||
get: function get() {
|
||||
return NAME$7;
|
||||
return NAME$3;
|
||||
}
|
||||
}, {
|
||||
key: "DATA_KEY",
|
||||
get: function get() {
|
||||
return DATA_KEY$7;
|
||||
return DATA_KEY$3;
|
||||
}
|
||||
}, {
|
||||
key: "Event",
|
||||
get: function get() {
|
||||
return Event$1;
|
||||
return Event;
|
||||
}
|
||||
}, {
|
||||
key: "EVENT_KEY",
|
||||
get: function get() {
|
||||
return EVENT_KEY$7;
|
||||
return EVENT_KEY$3;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$5;
|
||||
return DefaultType$2;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$7] = Popover._jQueryInterface;
|
||||
$__default['default'].fn[NAME$7].Constructor = Popover;
|
||||
$__default["default"].fn[NAME$3] = Popover._jQueryInterface;
|
||||
$__default["default"].fn[NAME$3].Constructor = Popover;
|
||||
|
||||
$__default['default'].fn[NAME$7].noConflict = function () {
|
||||
$__default['default'].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
$__default["default"].fn[NAME$3].noConflict = function () {
|
||||
$__default["default"].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Popover._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$8 = 'scrollspy';
|
||||
var VERSION$8 = '4.6.0';
|
||||
var DATA_KEY$8 = 'bs.scrollspy';
|
||||
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
||||
var DATA_API_KEY$6 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$8 = $__default['default'].fn[NAME$8];
|
||||
var Default$6 = {
|
||||
var NAME$2 = 'scrollspy';
|
||||
var VERSION$2 = '4.6.1';
|
||||
var DATA_KEY$2 = 'bs.scrollspy';
|
||||
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
||||
var DATA_API_KEY$1 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2];
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE$1 = 'active';
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY$2;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY$2;
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$2 + DATA_API_KEY$1;
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
|
||||
var Default$1 = {
|
||||
offset: 10,
|
||||
method: 'auto',
|
||||
target: ''
|
||||
};
|
||||
var DefaultType$6 = {
|
||||
var DefaultType$1 = {
|
||||
offset: 'number',
|
||||
method: 'string',
|
||||
target: '(string|element)'
|
||||
};
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
|
||||
var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE$2 = 'active';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var ScrollSpy = /*#__PURE__*/function () {
|
||||
@ -6345,7 +6284,7 @@
|
||||
this._targets = [];
|
||||
this._activeTarget = null;
|
||||
this._scrollHeight = 0;
|
||||
$__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
$__default["default"](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
return _this._process(event);
|
||||
});
|
||||
this.refresh();
|
||||
@ -6380,7 +6319,7 @@
|
||||
|
||||
if (targetBCR.width || targetBCR.height) {
|
||||
// TODO (fat): remove sketch reliance on jQuery position/offset
|
||||
return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
return [$__default["default"](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
}
|
||||
}
|
||||
|
||||
@ -6397,8 +6336,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$8);
|
||||
$__default['default'](this._scrollElement).off(EVENT_KEY$8);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$2);
|
||||
$__default["default"](this._scrollElement).off(EVENT_KEY$2);
|
||||
this._element = null;
|
||||
this._scrollElement = null;
|
||||
this._config = null;
|
||||
@ -6411,20 +6350,20 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
|
||||
config = _extends$1({}, Default$1, typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (typeof config.target !== 'string' && Util.isElement(config.target)) {
|
||||
var id = $__default['default'](config.target).attr('id');
|
||||
var id = $__default["default"](config.target).attr('id');
|
||||
|
||||
if (!id) {
|
||||
id = Util.getUID(NAME$8);
|
||||
$__default['default'](config.target).attr('id', id);
|
||||
id = Util.getUID(NAME$2);
|
||||
$__default["default"](config.target).attr('id', id);
|
||||
}
|
||||
|
||||
config.target = "#" + id;
|
||||
}
|
||||
|
||||
Util.typeCheckConfig(NAME$8, config, DefaultType$6);
|
||||
Util.typeCheckConfig(NAME$2, config, DefaultType$1);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -6487,44 +6426,44 @@
|
||||
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
|
||||
});
|
||||
|
||||
var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
var $link = $__default["default"]([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
|
||||
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
|
||||
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.closest(SELECTOR_DROPDOWN$1).find(SELECTOR_DROPDOWN_TOGGLE$1).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$link.addClass(CLASS_NAME_ACTIVE$1);
|
||||
} else {
|
||||
// Set triggered link as active
|
||||
$link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
|
||||
$link.addClass(CLASS_NAME_ACTIVE$1); // Set triggered links parents as active
|
||||
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
||||
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$1); // Handle special case when .nav-link is inside .nav-item
|
||||
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$1);
|
||||
}
|
||||
|
||||
$__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
$__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
relatedTarget: target
|
||||
});
|
||||
};
|
||||
|
||||
_proto._clear = function _clear() {
|
||||
[].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
|
||||
return node.classList.contains(CLASS_NAME_ACTIVE$2);
|
||||
return node.classList.contains(CLASS_NAME_ACTIVE$1);
|
||||
}).forEach(function (node) {
|
||||
return node.classList.remove(CLASS_NAME_ACTIVE$2);
|
||||
return node.classList.remove(CLASS_NAME_ACTIVE$1);
|
||||
});
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$8);
|
||||
var data = $__default["default"](this).data(DATA_KEY$2);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
if (!data) {
|
||||
data = new ScrollSpy(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$8, data);
|
||||
$__default["default"](this).data(DATA_KEY$2, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -6540,81 +6479,73 @@
|
||||
_createClass(ScrollSpy, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$8;
|
||||
return VERSION$2;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$6;
|
||||
return Default$1;
|
||||
}
|
||||
}]);
|
||||
|
||||
return ScrollSpy;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API$2, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
|
||||
var scrollSpysLength = scrollSpys.length;
|
||||
|
||||
for (var i = scrollSpysLength; i--;) {
|
||||
var $spy = $__default['default'](scrollSpys[i]);
|
||||
var $spy = $__default["default"](scrollSpys[i]);
|
||||
|
||||
ScrollSpy._jQueryInterface.call($spy, $spy.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$8] = ScrollSpy._jQueryInterface;
|
||||
$__default['default'].fn[NAME$8].Constructor = ScrollSpy;
|
||||
$__default["default"].fn[NAME$2] = ScrollSpy._jQueryInterface;
|
||||
$__default["default"].fn[NAME$2].Constructor = ScrollSpy;
|
||||
|
||||
$__default['default'].fn[NAME$8].noConflict = function () {
|
||||
$__default['default'].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
$__default["default"].fn[NAME$2].noConflict = function () {
|
||||
$__default["default"].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$9 = 'tab';
|
||||
var VERSION$9 = '4.6.0';
|
||||
var DATA_KEY$9 = 'bs.tab';
|
||||
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
||||
var DATA_API_KEY$7 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$9 = $__default['default'].fn[NAME$9];
|
||||
var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
|
||||
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
|
||||
var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
|
||||
var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
|
||||
var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
|
||||
var NAME$1 = 'tab';
|
||||
var VERSION$1 = '4.6.1';
|
||||
var DATA_KEY$1 = 'bs.tab';
|
||||
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1];
|
||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||
var CLASS_NAME_FADE$4 = 'fade';
|
||||
var CLASS_NAME_SHOW$6 = 'show';
|
||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||
var SELECTOR_ACTIVE$2 = '.active';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_FADE$1 = 'fade';
|
||||
var CLASS_NAME_SHOW$1 = 'show';
|
||||
var EVENT_HIDE$1 = "hide" + EVENT_KEY$1;
|
||||
var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$1;
|
||||
var EVENT_SHOW$1 = "show" + EVENT_KEY$1;
|
||||
var EVENT_SHOWN$1 = "shown" + EVENT_KEY$1;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY$1 + DATA_API_KEY;
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_ACTIVE_UL = '> li > .active';
|
||||
var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
||||
var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tab = /*#__PURE__*/function () {
|
||||
@ -6629,33 +6560,33 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE$3) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
|
||||
var listElement = $__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0];
|
||||
var selector = Util.getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
|
||||
previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector));
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
|
||||
previous = $__default["default"].makeArray($__default["default"](listElement).find(itemSelector));
|
||||
previous = previous[previous.length - 1];
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$3, {
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$1, {
|
||||
relatedTarget: this._element
|
||||
});
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$3, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$1, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
|
||||
if (previous) {
|
||||
$__default['default'](previous).trigger(hideEvent);
|
||||
$__default["default"](previous).trigger(hideEvent);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -6668,14 +6599,14 @@
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN$3, {
|
||||
var hiddenEvent = $__default["default"].Event(EVENT_HIDDEN$1, {
|
||||
relatedTarget: _this._element
|
||||
});
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN$3, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN$1, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
$__default['default'](previous).trigger(hiddenEvent);
|
||||
$__default['default'](_this._element).trigger(shownEvent);
|
||||
$__default["default"](previous).trigger(hiddenEvent);
|
||||
$__default["default"](_this._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (target) {
|
||||
@ -6686,7 +6617,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$9);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$1);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
@ -6694,9 +6625,9 @@
|
||||
_proto._activate = function _activate(element, container, callback) {
|
||||
var _this2 = this;
|
||||
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE$2);
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default["default"](container).find(SELECTOR_ACTIVE_UL) : $__default["default"](container).children(SELECTOR_ACTIVE);
|
||||
var active = activeElements[0];
|
||||
var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE$4);
|
||||
var isTransitioning = callback && active && $__default["default"](active).hasClass(CLASS_NAME_FADE$1);
|
||||
|
||||
var complete = function complete() {
|
||||
return _this2._transitionComplete(element, active, callback);
|
||||
@ -6704,7 +6635,7 @@
|
||||
|
||||
if (active && isTransitioning) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(active);
|
||||
$__default['default'](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](active).removeClass(CLASS_NAME_SHOW$1).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -6712,11 +6643,11 @@
|
||||
|
||||
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
||||
if (active) {
|
||||
$__default['default'](active).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
$__default["default"](active).removeClass(CLASS_NAME_ACTIVE);
|
||||
var dropdownChild = $__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
|
||||
if (dropdownChild) {
|
||||
$__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
$__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
if (active.getAttribute('role') === 'tab') {
|
||||
@ -6724,7 +6655,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$__default['default'](element).addClass(CLASS_NAME_ACTIVE$3);
|
||||
$__default["default"](element).addClass(CLASS_NAME_ACTIVE);
|
||||
|
||||
if (element.getAttribute('role') === 'tab') {
|
||||
element.setAttribute('aria-selected', true);
|
||||
@ -6732,16 +6663,22 @@
|
||||
|
||||
Util.reflow(element);
|
||||
|
||||
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
||||
element.classList.add(CLASS_NAME_SHOW$6);
|
||||
if (element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||
element.classList.add(CLASS_NAME_SHOW$1);
|
||||
}
|
||||
|
||||
if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN$1)[0];
|
||||
var parent = element.parentNode;
|
||||
|
||||
if (parent && parent.nodeName === 'LI') {
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
|
||||
if (parent && $__default["default"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default["default"](element).closest(SELECTOR_DROPDOWN)[0];
|
||||
|
||||
if (dropdownElement) {
|
||||
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
|
||||
$__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
|
||||
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE));
|
||||
$__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
element.setAttribute('aria-expanded', true);
|
||||
@ -6755,12 +6692,12 @@
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $this = $__default['default'](this);
|
||||
var data = $this.data(DATA_KEY$9);
|
||||
var $this = $__default["default"](this);
|
||||
var data = $this.data(DATA_KEY$1);
|
||||
|
||||
if (!data) {
|
||||
data = new Tab(this);
|
||||
$this.data(DATA_KEY$9, data);
|
||||
$this.data(DATA_KEY$1, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -6776,73 +6713,65 @@
|
||||
_createClass(Tab, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$9;
|
||||
return VERSION$1;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Tab;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
Tab._jQueryInterface.call($__default['default'](this), 'show');
|
||||
Tab._jQueryInterface.call($__default["default"](this), 'show');
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$9] = Tab._jQueryInterface;
|
||||
$__default['default'].fn[NAME$9].Constructor = Tab;
|
||||
$__default["default"].fn[NAME$1] = Tab._jQueryInterface;
|
||||
$__default["default"].fn[NAME$1].Constructor = Tab;
|
||||
|
||||
$__default['default'].fn[NAME$9].noConflict = function () {
|
||||
$__default['default'].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
$__default["default"].fn[NAME$1].noConflict = function () {
|
||||
$__default["default"].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Tab._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$a = 'toast';
|
||||
var VERSION$a = '4.6.0';
|
||||
var DATA_KEY$a = 'bs.toast';
|
||||
var EVENT_KEY$a = "." + DATA_KEY$a;
|
||||
var JQUERY_NO_CONFLICT$a = $__default['default'].fn[NAME$a];
|
||||
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
|
||||
var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
|
||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
||||
var CLASS_NAME_FADE$5 = 'fade';
|
||||
var NAME = 'toast';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.toast';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_HIDE = 'hide';
|
||||
var CLASS_NAME_SHOW$7 = 'show';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_SHOWING = 'showing';
|
||||
var DefaultType$7 = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
var Default$7 = {
|
||||
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY;
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]';
|
||||
var Default = {
|
||||
animation: true,
|
||||
autohide: true,
|
||||
delay: 500
|
||||
};
|
||||
var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Toast = /*#__PURE__*/function () {
|
||||
@ -6861,8 +6790,8 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$4);
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -6871,15 +6800,15 @@
|
||||
this._clearTimeout();
|
||||
|
||||
if (this._config.animation) {
|
||||
this._element.classList.add(CLASS_NAME_FADE$5);
|
||||
this._element.classList.add(CLASS_NAME_FADE);
|
||||
}
|
||||
|
||||
var complete = function complete() {
|
||||
_this._element.classList.remove(CLASS_NAME_SHOWING);
|
||||
|
||||
_this._element.classList.add(CLASS_NAME_SHOW$7);
|
||||
_this._element.classList.add(CLASS_NAME_SHOW);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN$4);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN);
|
||||
|
||||
if (_this._config.autohide) {
|
||||
_this._timeout = setTimeout(function () {
|
||||
@ -6896,19 +6825,19 @@
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||
if (!this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$4);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -6920,27 +6849,27 @@
|
||||
_proto.dispose = function dispose() {
|
||||
this._clearTimeout();
|
||||
|
||||
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||
if (this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS$1);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$a);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
this._config = null;
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$7, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
|
||||
config = _extends$1({}, Default, $__default["default"](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this2 = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
|
||||
return _this2.hide();
|
||||
});
|
||||
};
|
||||
@ -6951,14 +6880,14 @@
|
||||
var complete = function complete() {
|
||||
_this3._element.classList.add(CLASS_NAME_HIDE);
|
||||
|
||||
$__default['default'](_this3._element).trigger(EVENT_HIDDEN$4);
|
||||
$__default["default"](_this3._element).trigger(EVENT_HIDDEN);
|
||||
};
|
||||
|
||||
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -6972,14 +6901,14 @@
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$a);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
if (!data) {
|
||||
data = new Toast(this, _config);
|
||||
$element.data(DATA_KEY$a, data);
|
||||
$element.data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -6995,34 +6924,32 @@
|
||||
_createClass(Toast, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$a;
|
||||
return VERSION;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$7;
|
||||
return DefaultType;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$7;
|
||||
return Default;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$a] = Toast._jQueryInterface;
|
||||
$__default['default'].fn[NAME$a].Constructor = Toast;
|
||||
$__default["default"].fn[NAME] = Toast._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Toast;
|
||||
|
||||
$__default['default'].fn[NAME$a].noConflict = function () {
|
||||
$__default['default'].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Toast._jQueryInterface;
|
||||
};
|
||||
|
||||
@ -7041,5 +6968,5 @@
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=bootstrap.bundle.js.map
|
||||
|
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
4
dist/js/bootstrap.bundle.min.js
vendored
4
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
1649
dist/js/bootstrap.js
1649
dist/js/bootstrap.js
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
|
||||
}(this, (function (exports, $, Popper) { 'use strict';
|
||||
})(this, (function (exports, $, Popper) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -51,19 +51,27 @@
|
||||
function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
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 (v4.6.0): util.js
|
||||
* Bootstrap (v4.6.1): util.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Private TransitionEnd Helpers
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var TRANSITION_END = 'transitionend';
|
||||
@ -83,7 +91,7 @@
|
||||
bindType: TRANSITION_END,
|
||||
delegateType: TRANSITION_END,
|
||||
handle: function handle(event) {
|
||||
if ($__default['default'](event.target).is(this)) {
|
||||
if ($__default["default"](event.target).is(this)) {
|
||||
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
||||
}
|
||||
|
||||
@ -96,7 +104,7 @@
|
||||
var _this = this;
|
||||
|
||||
var called = false;
|
||||
$__default['default'](this).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](this).one(Util.TRANSITION_END, function () {
|
||||
called = true;
|
||||
});
|
||||
setTimeout(function () {
|
||||
@ -108,13 +116,11 @@
|
||||
}
|
||||
|
||||
function setTransitionEndSupport() {
|
||||
$__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
$__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
}
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util Api
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util API
|
||||
*/
|
||||
|
||||
|
||||
@ -122,6 +128,7 @@
|
||||
TRANSITION_END: 'bsTransitionEnd',
|
||||
getUID: function getUID(prefix) {
|
||||
do {
|
||||
// eslint-disable-next-line no-bitwise
|
||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||
} while (document.getElementById(prefix));
|
||||
|
||||
@ -147,8 +154,8 @@
|
||||
} // Get transition-duration of the element
|
||||
|
||||
|
||||
var transitionDuration = $__default['default'](element).css('transition-duration');
|
||||
var transitionDelay = $__default['default'](element).css('transition-delay');
|
||||
var transitionDuration = $__default["default"](element).css('transition-duration');
|
||||
var transitionDelay = $__default["default"](element).css('transition-delay');
|
||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||
|
||||
@ -165,7 +172,7 @@
|
||||
return element.offsetHeight;
|
||||
},
|
||||
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
||||
$__default['default'](element).trigger(TRANSITION_END);
|
||||
$__default["default"](element).trigger(TRANSITION_END);
|
||||
},
|
||||
supportsTransitionEnd: function supportsTransitionEnd() {
|
||||
return Boolean(TRANSITION_END);
|
||||
@ -209,11 +216,11 @@
|
||||
return Util.findShadowRoot(element.parentNode);
|
||||
},
|
||||
jQueryDetection: function jQueryDetection() {
|
||||
if (typeof $__default['default'] === 'undefined') {
|
||||
if (typeof $__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
||||
}
|
||||
|
||||
var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
|
||||
var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
|
||||
var minMajor = 1;
|
||||
var ltMajor = 2;
|
||||
var minMinor = 9;
|
||||
@ -229,28 +236,24 @@
|
||||
setTransitionEndSupport();
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'alert';
|
||||
var VERSION = '4.6.0';
|
||||
var DATA_KEY = 'bs.alert';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var NAME$a = 'alert';
|
||||
var VERSION$a = '4.6.1';
|
||||
var DATA_KEY$a = 'bs.alert';
|
||||
var EVENT_KEY$a = "." + DATA_KEY$a;
|
||||
var DATA_API_KEY$7 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a];
|
||||
var CLASS_NAME_ALERT = 'alert';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_FADE$5 = 'fade';
|
||||
var CLASS_NAME_SHOW$7 = 'show';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY$a;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY$a;
|
||||
var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$a + DATA_API_KEY$7;
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Alert = /*#__PURE__*/function () {
|
||||
@ -279,7 +282,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$a);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
@ -293,48 +296,48 @@
|
||||
}
|
||||
|
||||
if (!parent) {
|
||||
parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
parent = $__default["default"](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
}
|
||||
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||
var closeEvent = $__default['default'].Event(EVENT_CLOSE);
|
||||
$__default['default'](element).trigger(closeEvent);
|
||||
var closeEvent = $__default["default"].Event(EVENT_CLOSE);
|
||||
$__default["default"](element).trigger(closeEvent);
|
||||
return closeEvent;
|
||||
};
|
||||
|
||||
_proto._removeElement = function _removeElement(element) {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](element).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](element).removeClass(CLASS_NAME_SHOW$7);
|
||||
|
||||
if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) {
|
||||
if (!$__default["default"](element).hasClass(CLASS_NAME_FADE$5)) {
|
||||
this._destroyElement(element);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(element);
|
||||
$__default['default'](element).one(Util.TRANSITION_END, function (event) {
|
||||
$__default["default"](element).one(Util.TRANSITION_END, function (event) {
|
||||
return _this._destroyElement(element, event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto._destroyElement = function _destroyElement(element) {
|
||||
$__default['default'](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
$__default["default"](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$a);
|
||||
|
||||
if (!data) {
|
||||
data = new Alert(this);
|
||||
$element.data(DATA_KEY, data);
|
||||
$element.data(DATA_KEY$a, data);
|
||||
}
|
||||
|
||||
if (config === 'close') {
|
||||
@ -356,63 +359,55 @@
|
||||
_createClass(Alert, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION;
|
||||
return VERSION$a;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Alert;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Alert._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Alert;
|
||||
$__default["default"].fn[NAME$a] = Alert._jQueryInterface;
|
||||
$__default["default"].fn[NAME$a].Constructor = Alert;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME$a].noConflict = function () {
|
||||
$__default["default"].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
return Alert._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$1 = 'button';
|
||||
var VERSION$1 = '4.6.0';
|
||||
var DATA_KEY$1 = 'bs.button';
|
||||
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
||||
var DATA_API_KEY$1 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$1 = $__default['default'].fn[NAME$1];
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var NAME$9 = 'button';
|
||||
var VERSION$9 = '4.6.1';
|
||||
var DATA_KEY$9 = 'bs.button';
|
||||
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
||||
var DATA_API_KEY$6 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9];
|
||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||
var CLASS_NAME_BUTTON = 'btn';
|
||||
var CLASS_NAME_FOCUS = 'focus';
|
||||
var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$9 + DATA_API_KEY$6;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$9 + DATA_API_KEY$6 + " " + ("blur" + EVENT_KEY$9 + DATA_API_KEY$6);
|
||||
var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$9 + DATA_API_KEY$6;
|
||||
var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
|
||||
var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
||||
var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="button"]';
|
||||
var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
|
||||
var SELECTOR_INPUT = 'input:not([type="hidden"])';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_ACTIVE$2 = '.active';
|
||||
var SELECTOR_BUTTON = '.btn';
|
||||
var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Button = /*#__PURE__*/function () {
|
||||
@ -428,20 +423,20 @@
|
||||
_proto.toggle = function toggle() {
|
||||
var triggerChangeEvent = true;
|
||||
var addAriaPressed = true;
|
||||
var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
var rootElement = $__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
|
||||
if (rootElement) {
|
||||
var input = this._element.querySelector(SELECTOR_INPUT);
|
||||
|
||||
if (input) {
|
||||
if (input.type === 'radio') {
|
||||
if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
|
||||
if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE$3)) {
|
||||
triggerChangeEvent = false;
|
||||
} else {
|
||||
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
|
||||
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE$2);
|
||||
|
||||
if (activeElement) {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -449,11 +444,11 @@
|
||||
if (triggerChangeEvent) {
|
||||
// if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
|
||||
if (input.type === 'checkbox' || input.type === 'radio') {
|
||||
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
|
||||
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
|
||||
if (!this.shouldAvoidTriggerChange) {
|
||||
$__default['default'](input).trigger('change');
|
||||
$__default["default"](input).trigger('change');
|
||||
}
|
||||
}
|
||||
|
||||
@ -464,29 +459,29 @@
|
||||
|
||||
if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
|
||||
if (addAriaPressed) {
|
||||
this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
|
||||
this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE$3));
|
||||
}
|
||||
|
||||
if (triggerChangeEvent) {
|
||||
$__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$1);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$9);
|
||||
this._element = null;
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$1);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$9);
|
||||
|
||||
if (!data) {
|
||||
data = new Button(this);
|
||||
$element.data(DATA_KEY$1, data);
|
||||
$element.data(DATA_KEY$9, data);
|
||||
}
|
||||
|
||||
data.shouldAvoidTriggerChange = avoidTriggerChange;
|
||||
@ -500,25 +495,23 @@
|
||||
_createClass(Button, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$1;
|
||||
return VERSION$9;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Button;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = event.target;
|
||||
var initialButton = button;
|
||||
|
||||
if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default['default'](button).closest(SELECTOR_BUTTON)[0];
|
||||
if (!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default["default"](button).closest(SELECTOR_BUTTON)[0];
|
||||
}
|
||||
|
||||
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
|
||||
@ -533,14 +526,14 @@
|
||||
}
|
||||
|
||||
if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
|
||||
Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
Button._jQueryInterface.call($__default["default"](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
}
|
||||
}
|
||||
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
var button = $__default["default"](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default["default"](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
});
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API$2, function () {
|
||||
// ensure correct active class is set to match the controls' actual values/states
|
||||
// find all checkboxes/readio buttons inside data-toggle groups
|
||||
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
|
||||
@ -550,51 +543,47 @@
|
||||
var input = button.querySelector(SELECTOR_INPUT);
|
||||
|
||||
if (input.checked || input.hasAttribute('checked')) {
|
||||
button.classList.add(CLASS_NAME_ACTIVE);
|
||||
button.classList.add(CLASS_NAME_ACTIVE$3);
|
||||
} else {
|
||||
button.classList.remove(CLASS_NAME_ACTIVE);
|
||||
button.classList.remove(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
} // find all button toggles
|
||||
|
||||
|
||||
buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
|
||||
buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$4));
|
||||
|
||||
for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
|
||||
var _button = buttons[_i];
|
||||
|
||||
if (_button.getAttribute('aria-pressed') === 'true') {
|
||||
_button.classList.add(CLASS_NAME_ACTIVE);
|
||||
_button.classList.add(CLASS_NAME_ACTIVE$3);
|
||||
} else {
|
||||
_button.classList.remove(CLASS_NAME_ACTIVE);
|
||||
_button.classList.remove(CLASS_NAME_ACTIVE$3);
|
||||
}
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$1] = Button._jQueryInterface;
|
||||
$__default['default'].fn[NAME$1].Constructor = Button;
|
||||
$__default["default"].fn[NAME$9] = Button._jQueryInterface;
|
||||
$__default["default"].fn[NAME$9].Constructor = Button;
|
||||
|
||||
$__default['default'].fn[NAME$1].noConflict = function () {
|
||||
$__default['default'].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
$__default["default"].fn[NAME$9].noConflict = function () {
|
||||
$__default["default"].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
return Button._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$2 = 'carousel';
|
||||
var VERSION$2 = '4.6.0';
|
||||
var DATA_KEY$2 = 'bs.carousel';
|
||||
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
||||
var DATA_API_KEY$2 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$2 = $__default['default'].fn[NAME$2];
|
||||
var NAME$8 = 'carousel';
|
||||
var VERSION$8 = '4.6.1';
|
||||
var DATA_KEY$8 = 'bs.carousel';
|
||||
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
||||
var DATA_API_KEY$5 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8];
|
||||
var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
|
||||
|
||||
var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
|
||||
@ -602,47 +591,31 @@
|
||||
var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
|
||||
|
||||
var SWIPE_THRESHOLD = 40;
|
||||
var Default = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var DIRECTION_NEXT = 'next';
|
||||
var DIRECTION_PREV = 'prev';
|
||||
var DIRECTION_LEFT = 'left';
|
||||
var DIRECTION_RIGHT = 'right';
|
||||
var EVENT_SLIDE = "slide" + EVENT_KEY$2;
|
||||
var EVENT_SLID = "slid" + EVENT_KEY$2;
|
||||
var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
|
||||
var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
|
||||
var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
|
||||
var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
|
||||
var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
|
||||
var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
|
||||
var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
|
||||
var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
|
||||
var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
|
||||
var CLASS_NAME_CAROUSEL = 'carousel';
|
||||
var CLASS_NAME_ACTIVE$1 = 'active';
|
||||
var CLASS_NAME_ACTIVE$2 = 'active';
|
||||
var CLASS_NAME_SLIDE = 'slide';
|
||||
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
||||
var CLASS_NAME_LEFT = 'carousel-item-left';
|
||||
var CLASS_NAME_NEXT = 'carousel-item-next';
|
||||
var CLASS_NAME_PREV = 'carousel-item-prev';
|
||||
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
||||
var DIRECTION_NEXT = 'next';
|
||||
var DIRECTION_PREV = 'prev';
|
||||
var DIRECTION_LEFT = 'left';
|
||||
var DIRECTION_RIGHT = 'right';
|
||||
var EVENT_SLIDE = "slide" + EVENT_KEY$8;
|
||||
var EVENT_SLID = "slid" + EVENT_KEY$8;
|
||||
var EVENT_KEYDOWN = "keydown" + EVENT_KEY$8;
|
||||
var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$8;
|
||||
var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$8;
|
||||
var EVENT_TOUCHEND = "touchend" + EVENT_KEY$8;
|
||||
var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$8;
|
||||
var EVENT_POINTERUP = "pointerup" + EVENT_KEY$8;
|
||||
var EVENT_DRAG_START = "dragstart" + EVENT_KEY$8;
|
||||
var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$8 + DATA_API_KEY$5;
|
||||
var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$8 + DATA_API_KEY$5;
|
||||
var SELECTOR_ACTIVE$1 = '.active';
|
||||
var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
|
||||
var SELECTOR_ITEM = '.carousel-item';
|
||||
@ -651,14 +624,28 @@
|
||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||
var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
|
||||
var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
|
||||
var Default$7 = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType$7 = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var PointerType = {
|
||||
TOUCH: 'touch',
|
||||
PEN: 'pen'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Carousel = /*#__PURE__*/function () {
|
||||
@ -691,7 +678,7 @@
|
||||
};
|
||||
|
||||
_proto.nextWhenVisible = function nextWhenVisible() {
|
||||
var $element = $__default['default'](this._element); // Don't call next when the page isn't visible
|
||||
var $element = $__default["default"](this._element); // Don't call next when the page isn't visible
|
||||
// or the carousel or its parent isn't visible
|
||||
|
||||
if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') {
|
||||
@ -748,7 +735,7 @@
|
||||
}
|
||||
|
||||
if (this._isSliding) {
|
||||
$__default['default'](this._element).one(EVENT_SLID, function () {
|
||||
$__default["default"](this._element).one(EVENT_SLID, function () {
|
||||
return _this.to(index);
|
||||
});
|
||||
return;
|
||||
@ -766,8 +753,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'](this._element).off(EVENT_KEY$2);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$2);
|
||||
$__default["default"](this._element).off(EVENT_KEY$8);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$8);
|
||||
this._items = null;
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
@ -780,8 +767,8 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, config);
|
||||
Util.typeCheckConfig(NAME$2, config, DefaultType);
|
||||
config = _extends({}, Default$7, config);
|
||||
Util.typeCheckConfig(NAME$8, config, DefaultType$7);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -809,13 +796,13 @@
|
||||
var _this2 = this;
|
||||
|
||||
if (this._config.keyboard) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
return _this2._keydown(event);
|
||||
});
|
||||
}
|
||||
|
||||
if (this._config.pause === 'hover') {
|
||||
$__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
return _this2.pause(event);
|
||||
}).on(EVENT_MOUSELEAVE, function (event) {
|
||||
return _this2.cycle(event);
|
||||
@ -844,11 +831,7 @@
|
||||
|
||||
var move = function move(event) {
|
||||
// ensure swiping with one touch and not pinching
|
||||
if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
|
||||
_this3.touchDeltaX = 0;
|
||||
} else {
|
||||
_this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
}
|
||||
_this3.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ? 0 : event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
};
|
||||
|
||||
var end = function end(event) {
|
||||
@ -878,27 +861,27 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
$__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
return e.preventDefault();
|
||||
});
|
||||
|
||||
if (this._pointerEvent) {
|
||||
$__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
|
||||
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
||||
} else {
|
||||
$__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
return move(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
}
|
||||
@ -950,25 +933,25 @@
|
||||
|
||||
var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
|
||||
|
||||
var slideEvent = $__default['default'].Event(EVENT_SLIDE, {
|
||||
var slideEvent = $__default["default"].Event(EVENT_SLIDE, {
|
||||
relatedTarget: relatedTarget,
|
||||
direction: eventDirectionName,
|
||||
from: fromIndex,
|
||||
to: targetIndex
|
||||
});
|
||||
$__default['default'](this._element).trigger(slideEvent);
|
||||
$__default["default"](this._element).trigger(slideEvent);
|
||||
return slideEvent;
|
||||
};
|
||||
|
||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||
if (this._indicatorsElement) {
|
||||
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
|
||||
$__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE$2);
|
||||
|
||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
||||
|
||||
if (nextIndicator) {
|
||||
$__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE$2);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -1016,7 +999,7 @@
|
||||
eventDirectionName = DIRECTION_RIGHT;
|
||||
}
|
||||
|
||||
if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
|
||||
if (nextElement && $__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE$2)) {
|
||||
this._isSliding = false;
|
||||
return;
|
||||
}
|
||||
@ -1041,32 +1024,32 @@
|
||||
this._setActiveIndicatorElement(nextElement);
|
||||
|
||||
this._activeElement = nextElement;
|
||||
var slidEvent = $__default['default'].Event(EVENT_SLID, {
|
||||
var slidEvent = $__default["default"].Event(EVENT_SLID, {
|
||||
relatedTarget: nextElement,
|
||||
direction: eventDirectionName,
|
||||
from: activeElementIndex,
|
||||
to: nextElementIndex
|
||||
});
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default['default'](nextElement).addClass(orderClassName);
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default["default"](nextElement).addClass(orderClassName);
|
||||
Util.reflow(nextElement);
|
||||
$__default['default'](activeElement).addClass(directionalClassName);
|
||||
$__default['default'](nextElement).addClass(directionalClassName);
|
||||
$__default["default"](activeElement).addClass(directionalClassName);
|
||||
$__default["default"](nextElement).addClass(directionalClassName);
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
|
||||
$__default['default'](activeElement).one(Util.TRANSITION_END, function () {
|
||||
$__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
|
||||
$__default["default"](activeElement).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2 + " " + orderClassName + " " + directionalClassName);
|
||||
_this4._isSliding = false;
|
||||
setTimeout(function () {
|
||||
return $__default['default'](_this4._element).trigger(slidEvent);
|
||||
return $__default["default"](_this4._element).trigger(slidEvent);
|
||||
}, 0);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$2);
|
||||
$__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE$2);
|
||||
this._isSliding = false;
|
||||
$__default['default'](this._element).trigger(slidEvent);
|
||||
$__default["default"](this._element).trigger(slidEvent);
|
||||
}
|
||||
|
||||
if (isCycling) {
|
||||
@ -1077,9 +1060,9 @@
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$2);
|
||||
var data = $__default["default"](this).data(DATA_KEY$8);
|
||||
|
||||
var _config = _extends({}, Default, $__default['default'](this).data());
|
||||
var _config = _extends({}, Default$7, $__default["default"](this).data());
|
||||
|
||||
if (typeof config === 'object') {
|
||||
_config = _extends({}, _config, config);
|
||||
@ -1089,7 +1072,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Carousel(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$2, data);
|
||||
$__default["default"](this).data(DATA_KEY$8, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'number') {
|
||||
@ -1114,13 +1097,13 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var target = $__default['default'](selector)[0];
|
||||
var target = $__default["default"](selector)[0];
|
||||
|
||||
if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
if (!target || !$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = _extends({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
var slideIndex = this.getAttribute('data-slide-to');
|
||||
|
||||
@ -1128,10 +1111,10 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._jQueryInterface.call($__default['default'](target), config);
|
||||
Carousel._jQueryInterface.call($__default["default"](target), config);
|
||||
|
||||
if (slideIndex) {
|
||||
$__default['default'](target).data(DATA_KEY$2).to(slideIndex);
|
||||
$__default["default"](target).data(DATA_KEY$8).to(slideIndex);
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
@ -1140,85 +1123,77 @@
|
||||
_createClass(Carousel, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$2;
|
||||
return VERSION$8;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default;
|
||||
return Default$7;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Carousel;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API$1, function () {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API$1, function () {
|
||||
var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
var $carousel = $__default['default'](carousels[i]);
|
||||
var $carousel = $__default["default"](carousels[i]);
|
||||
|
||||
Carousel._jQueryInterface.call($carousel, $carousel.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$2] = Carousel._jQueryInterface;
|
||||
$__default['default'].fn[NAME$2].Constructor = Carousel;
|
||||
$__default["default"].fn[NAME$8] = Carousel._jQueryInterface;
|
||||
$__default["default"].fn[NAME$8].Constructor = Carousel;
|
||||
|
||||
$__default['default'].fn[NAME$2].noConflict = function () {
|
||||
$__default['default'].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
$__default["default"].fn[NAME$8].noConflict = function () {
|
||||
$__default["default"].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
return Carousel._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$3 = 'collapse';
|
||||
var VERSION$3 = '4.6.0';
|
||||
var DATA_KEY$3 = 'bs.collapse';
|
||||
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
||||
var DATA_API_KEY$3 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$3 = $__default['default'].fn[NAME$3];
|
||||
var Default$1 = {
|
||||
toggle: true,
|
||||
parent: ''
|
||||
};
|
||||
var DefaultType$1 = {
|
||||
toggle: 'boolean',
|
||||
parent: '(string|element)'
|
||||
};
|
||||
var EVENT_SHOW = "show" + EVENT_KEY$3;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY$3;
|
||||
var EVENT_HIDE = "hide" + 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 CLASS_NAME_SHOW$1 = 'show';
|
||||
var NAME$7 = 'collapse';
|
||||
var VERSION$7 = '4.6.1';
|
||||
var DATA_KEY$7 = 'bs.collapse';
|
||||
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
||||
var DATA_API_KEY$4 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7];
|
||||
var CLASS_NAME_SHOW$6 = 'show';
|
||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||
var DIMENSION_WIDTH = 'width';
|
||||
var DIMENSION_HEIGHT = 'height';
|
||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$7;
|
||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$7;
|
||||
var EVENT_HIDE$4 = "hide" + EVENT_KEY$7;
|
||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$7;
|
||||
var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$7 + DATA_API_KEY$4;
|
||||
var SELECTOR_ACTIVES = '.show, .collapsing';
|
||||
var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
|
||||
var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="collapse"]';
|
||||
var Default$6 = {
|
||||
toggle: true,
|
||||
parent: ''
|
||||
};
|
||||
var DefaultType$6 = {
|
||||
toggle: 'boolean',
|
||||
parent: '(string|element)'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Collapse = /*#__PURE__*/function () {
|
||||
@ -1227,7 +1202,7 @@
|
||||
this._element = element;
|
||||
this._config = this._getConfig(config);
|
||||
this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
|
||||
var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
|
||||
var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$3));
|
||||
|
||||
for (var i = 0, len = toggleList.length; i < len; i++) {
|
||||
var elem = toggleList[i];
|
||||
@ -1259,7 +1234,7 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
@ -1269,7 +1244,7 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if (this._isTransitioning || $__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1291,64 +1266,64 @@
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY$3);
|
||||
activesData = $__default["default"](actives).not(this._selector).data(DATA_KEY$7);
|
||||
|
||||
if (activesData && activesData._isTransitioning) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_SHOW);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_SHOW$4);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide');
|
||||
Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector), 'hide');
|
||||
|
||||
if (!activesData) {
|
||||
$__default['default'](actives).data(DATA_KEY$3, null);
|
||||
$__default["default"](actives).data(DATA_KEY$7, null);
|
||||
}
|
||||
}
|
||||
|
||||
var dimension = this._getDimension();
|
||||
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
this._element.style[dimension] = 0;
|
||||
|
||||
if (this._triggerArray.length) {
|
||||
$__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
$__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
}
|
||||
|
||||
this.setTransitioning(true);
|
||||
|
||||
var complete = function complete() {
|
||||
$__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
||||
$__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6);
|
||||
_this._element.style[dimension] = '';
|
||||
|
||||
_this.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN$4);
|
||||
};
|
||||
|
||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||
var scrollSize = "scroll" + capitalizedDimension;
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
var _this2 = this;
|
||||
|
||||
if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
|
||||
if (this._isTransitioning || !$__default["default"](this._element).hasClass(CLASS_NAME_SHOW$6)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_HIDE);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_HIDE$4);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -1358,7 +1333,7 @@
|
||||
|
||||
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
|
||||
Util.reflow(this._element);
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$6);
|
||||
var triggerArrayLength = this._triggerArray.length;
|
||||
|
||||
if (triggerArrayLength > 0) {
|
||||
@ -1367,10 +1342,10 @@
|
||||
var selector = Util.getSelectorFromElement(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector)));
|
||||
var $elem = $__default["default"]([].slice.call(document.querySelectorAll(selector)));
|
||||
|
||||
if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
|
||||
$__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
if (!$elem.hasClass(CLASS_NAME_SHOW$6)) {
|
||||
$__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1381,12 +1356,12 @@
|
||||
var complete = function complete() {
|
||||
_this2.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
|
||||
$__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN$4);
|
||||
};
|
||||
|
||||
this._element.style[dimension] = '';
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto.setTransitioning = function setTransitioning(isTransitioning) {
|
||||
@ -1394,7 +1369,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$3);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$7);
|
||||
this._config = null;
|
||||
this._parent = null;
|
||||
this._element = null;
|
||||
@ -1404,15 +1379,15 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$1, config);
|
||||
config = _extends({}, Default$6, config);
|
||||
config.toggle = Boolean(config.toggle); // Coerce string values
|
||||
|
||||
Util.typeCheckConfig(NAME$3, config, DefaultType$1);
|
||||
Util.typeCheckConfig(NAME$7, config, DefaultType$6);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._getDimension = function _getDimension() {
|
||||
var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH);
|
||||
var hasWidth = $__default["default"](this._element).hasClass(DIMENSION_WIDTH);
|
||||
return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
|
||||
};
|
||||
|
||||
@ -1433,17 +1408,17 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
|
||||
var children = [].slice.call(parent.querySelectorAll(selector));
|
||||
$__default['default'](children).each(function (i, element) {
|
||||
$__default["default"](children).each(function (i, element) {
|
||||
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
|
||||
});
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
||||
var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW$1);
|
||||
var isOpen = $__default["default"](element).hasClass(CLASS_NAME_SHOW$6);
|
||||
|
||||
if (triggerArray.length) {
|
||||
$__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
$__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
}
|
||||
} // Static
|
||||
;
|
||||
@ -1455,10 +1430,10 @@
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$3);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$7);
|
||||
|
||||
var _config = _extends({}, Default$1, $element.data(), typeof config === 'object' && config ? config : {});
|
||||
var _config = _extends({}, Default$6, $element.data(), typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
|
||||
_config.toggle = false;
|
||||
@ -1466,7 +1441,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Collapse(this, _config);
|
||||
$element.data(DATA_KEY$3, data);
|
||||
$element.data(DATA_KEY$7, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -1482,68 +1457,62 @@
|
||||
_createClass(Collapse, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$3;
|
||||
return VERSION$7;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$1;
|
||||
return Default$6;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Collapse;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {
|
||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||
if (event.currentTarget.tagName === 'A') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $trigger = $__default['default'](this);
|
||||
var $trigger = $__default["default"](this);
|
||||
var selector = Util.getSelectorFromElement(this);
|
||||
var selectors = [].slice.call(document.querySelectorAll(selector));
|
||||
$__default['default'](selectors).each(function () {
|
||||
var $target = $__default['default'](this);
|
||||
var data = $target.data(DATA_KEY$3);
|
||||
$__default["default"](selectors).each(function () {
|
||||
var $target = $__default["default"](this);
|
||||
var data = $target.data(DATA_KEY$7);
|
||||
var config = data ? 'toggle' : $trigger.data();
|
||||
|
||||
Collapse._jQueryInterface.call($target, config);
|
||||
});
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$3] = Collapse._jQueryInterface;
|
||||
$__default['default'].fn[NAME$3].Constructor = Collapse;
|
||||
$__default["default"].fn[NAME$7] = Collapse._jQueryInterface;
|
||||
$__default["default"].fn[NAME$7].Constructor = Collapse;
|
||||
|
||||
$__default['default'].fn[NAME$3].noConflict = function () {
|
||||
$__default['default'].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
$__default["default"].fn[NAME$7].noConflict = function () {
|
||||
$__default["default"].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
return Collapse._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$4 = 'dropdown';
|
||||
var VERSION$4 = '4.6.0';
|
||||
var DATA_KEY$4 = 'bs.dropdown';
|
||||
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
||||
var DATA_API_KEY$4 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$4 = $__default['default'].fn[NAME$4];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
var NAME$6 = 'dropdown';
|
||||
var VERSION$6 = '4.6.1';
|
||||
var DATA_KEY$6 = 'bs.dropdown';
|
||||
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
||||
var DATA_API_KEY$3 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6];
|
||||
var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
||||
|
||||
@ -1555,22 +1524,22 @@
|
||||
|
||||
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
||||
|
||||
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
||||
var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
|
||||
var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
|
||||
var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
|
||||
var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
|
||||
var EVENT_CLICK = "click" + EVENT_KEY$4;
|
||||
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_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_SHOW$2 = 'show';
|
||||
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE$1);
|
||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||
var CLASS_NAME_SHOW$5 = 'show';
|
||||
var CLASS_NAME_DROPUP = 'dropup';
|
||||
var CLASS_NAME_DROPRIGHT = 'dropright';
|
||||
var CLASS_NAME_DROPLEFT = 'dropleft';
|
||||
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
||||
var EVENT_HIDE$3 = "hide" + EVENT_KEY$6;
|
||||
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$6;
|
||||
var EVENT_SHOW$3 = "show" + EVENT_KEY$6;
|
||||
var EVENT_SHOWN$3 = "shown" + EVENT_KEY$6;
|
||||
var EVENT_CLICK = "click" + EVENT_KEY$6;
|
||||
var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$6 + DATA_API_KEY$3;
|
||||
var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
|
||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||
var SELECTOR_MENU = '.dropdown-menu';
|
||||
@ -1582,7 +1551,7 @@
|
||||
var PLACEMENT_BOTTOMEND = 'bottom-end';
|
||||
var PLACEMENT_RIGHT = 'right-start';
|
||||
var PLACEMENT_LEFT = 'left-start';
|
||||
var Default$2 = {
|
||||
var Default$5 = {
|
||||
offset: 0,
|
||||
flip: true,
|
||||
boundary: 'scrollParent',
|
||||
@ -1590,7 +1559,7 @@
|
||||
display: 'dynamic',
|
||||
popperConfig: null
|
||||
};
|
||||
var DefaultType$2 = {
|
||||
var DefaultType$5 = {
|
||||
offset: '(number|string|function)',
|
||||
flip: 'boolean',
|
||||
boundary: '(string|element)',
|
||||
@ -1599,9 +1568,7 @@
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Dropdown = /*#__PURE__*/function () {
|
||||
@ -1620,11 +1587,11 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2);
|
||||
var isActive = $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
@ -1640,18 +1607,18 @@
|
||||
usePopper = false;
|
||||
}
|
||||
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$1, relatedTarget);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$3, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(showEvent);
|
||||
$__default["default"](parent).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -1659,11 +1626,8 @@
|
||||
|
||||
|
||||
if (!this._inNavbar && usePopper) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper__default['default'] === 'undefined') {
|
||||
// Check for Popper dependency
|
||||
if (typeof Popper__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||
}
|
||||
|
||||
@ -1683,41 +1647,41 @@
|
||||
|
||||
|
||||
if (this._config.boundary !== 'scrollParent') {
|
||||
$__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
$__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
}
|
||||
|
||||
this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
|
||||
this._popper = new Popper__default["default"](referenceElement, this._menu, this._getPopperConfig());
|
||||
} // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
if ('ontouchstart' in document.documentElement && $__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._element.focus();
|
||||
|
||||
this._element.setAttribute('aria-expanded', true);
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_SHOWN$1, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_SHOWN$3, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1) || !$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -1727,13 +1691,13 @@
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$4);
|
||||
$__default['default'](this._element).off(EVENT_KEY$4);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$6);
|
||||
$__default["default"](this._element).off(EVENT_KEY$6);
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
@ -1756,7 +1720,7 @@
|
||||
_proto._addEventListeners = function _addEventListeners() {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
@ -1765,8 +1729,8 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config);
|
||||
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||
config = _extends({}, this.constructor.Default, $__default["default"](this._element).data(), config);
|
||||
Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -1783,16 +1747,16 @@
|
||||
};
|
||||
|
||||
_proto._getPlacement = function _getPlacement() {
|
||||
var $parentDropdown = $__default['default'](this._element.parentNode);
|
||||
var $parentDropdown = $__default["default"](this._element.parentNode);
|
||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
||||
|
||||
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
||||
placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
placement = $__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
||||
placement = PLACEMENT_RIGHT;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
||||
placement = PLACEMENT_LEFT;
|
||||
} else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
} else if ($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
placement = PLACEMENT_BOTTOMEND;
|
||||
}
|
||||
|
||||
@ -1800,7 +1764,7 @@
|
||||
};
|
||||
|
||||
_proto._detectNavbar = function _detectNavbar() {
|
||||
return $__default['default'](this._element).closest('.navbar').length > 0;
|
||||
return $__default["default"](this._element).closest('.navbar').length > 0;
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
@ -1810,7 +1774,7 @@
|
||||
|
||||
if (typeof this._config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
|
||||
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -1846,13 +1810,13 @@
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$4);
|
||||
var data = $__default["default"](this).data(DATA_KEY$6);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
if (!data) {
|
||||
data = new Dropdown(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$4, data);
|
||||
$__default["default"](this).data(DATA_KEY$6, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -1875,7 +1839,7 @@
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var context = $__default['default'](toggles[i]).data(DATA_KEY$4);
|
||||
var context = $__default["default"](toggles[i]).data(DATA_KEY$6);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
};
|
||||
@ -1890,16 +1854,16 @@
|
||||
|
||||
var dropdownMenu = context._menu;
|
||||
|
||||
if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW$2)) {
|
||||
if (!$__default["default"](parent).hasClass(CLASS_NAME_SHOW$5)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) {
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default["default"].contains(parent, event.target)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$3, relatedTarget);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
continue;
|
||||
@ -1908,7 +1872,7 @@
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
@ -1917,8 +1881,8 @@
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
|
||||
$__default['default'](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
|
||||
$__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW$5);
|
||||
$__default["default"](parent).removeClass(CLASS_NAME_SHOW$5).trigger($__default["default"].Event(EVENT_HIDDEN$3, relatedTarget));
|
||||
}
|
||||
};
|
||||
|
||||
@ -1942,36 +1906,36 @@
|
||||
// - If key is other than escape
|
||||
// - If key is not up or down => not a dropdown command
|
||||
// - If trigger inside the menu => not a dropdown command
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE$1 && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default["default"](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this.disabled || $__default["default"](this).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW$2);
|
||||
var isActive = $__default["default"](parent).hasClass(CLASS_NAME_SHOW$5);
|
||||
|
||||
if (!isActive && event.which === ESCAPE_KEYCODE) {
|
||||
if (!isActive && event.which === ESCAPE_KEYCODE$1) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {
|
||||
if (event.which === ESCAPE_KEYCODE) {
|
||||
$__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
|
||||
if (!isActive || event.which === ESCAPE_KEYCODE$1 || event.which === SPACE_KEYCODE) {
|
||||
if (event.which === ESCAPE_KEYCODE$1) {
|
||||
$__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
|
||||
}
|
||||
|
||||
$__default['default'](this).trigger('click');
|
||||
$__default["default"](this).trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
|
||||
return $__default['default'](item).is(':visible');
|
||||
return $__default["default"](item).is(':visible');
|
||||
});
|
||||
|
||||
if (items.length === 0) {
|
||||
@ -2000,77 +1964,66 @@
|
||||
_createClass(Dropdown, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$4;
|
||||
return VERSION$6;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$2;
|
||||
return Default$5;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$2;
|
||||
return DefaultType$5;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Dropdown;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
|
||||
$__default["default"](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$2 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._jQueryInterface.call($__default['default'](this), 'toggle');
|
||||
}).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
|
||||
Dropdown._jQueryInterface.call($__default["default"](this), 'toggle');
|
||||
}).on(EVENT_CLICK_DATA_API$2, SELECTOR_FORM_CHILD, function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$4] = Dropdown._jQueryInterface;
|
||||
$__default['default'].fn[NAME$4].Constructor = Dropdown;
|
||||
$__default["default"].fn[NAME$6] = Dropdown._jQueryInterface;
|
||||
$__default["default"].fn[NAME$6].Constructor = Dropdown;
|
||||
|
||||
$__default['default'].fn[NAME$4].noConflict = function () {
|
||||
$__default['default'].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
$__default["default"].fn[NAME$6].noConflict = function () {
|
||||
$__default["default"].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
return Dropdown._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$5 = 'modal';
|
||||
var VERSION$5 = '4.6.0';
|
||||
var VERSION$5 = '4.6.1';
|
||||
var DATA_KEY$5 = 'bs.modal';
|
||||
var EVENT_KEY$5 = "." + DATA_KEY$5;
|
||||
var DATA_API_KEY$5 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$5 = $__default['default'].fn[NAME$5];
|
||||
var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
var DATA_API_KEY$2 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var Default$3 = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType$3 = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE$4 = 'fade';
|
||||
var CLASS_NAME_SHOW$4 = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
|
||||
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
|
||||
var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
|
||||
@ -2078,28 +2031,31 @@
|
||||
var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
|
||||
var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
|
||||
var EVENT_RESIZE = "resize" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
|
||||
var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE$1 = 'fade';
|
||||
var CLASS_NAME_SHOW$3 = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$5 + DATA_API_KEY$2;
|
||||
var SELECTOR_DIALOG = '.modal-dialog';
|
||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||
var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
|
||||
var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="modal"]';
|
||||
var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="modal"]';
|
||||
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
||||
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
||||
var Default$4 = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType$4 = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Modal = /*#__PURE__*/function () {
|
||||
@ -2130,21 +2086,21 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$2, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$2, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (this._isShown || showEvent.isDefaultPrevented()) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = true;
|
||||
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
this._checkScrollbar();
|
||||
|
||||
this._setScrollbar();
|
||||
@ -2155,12 +2111,12 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function (event) {
|
||||
return _this.hide(event);
|
||||
});
|
||||
$__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default['default'](event.target).is(_this._element)) {
|
||||
$__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default["default"](event.target).is(_this._element)) {
|
||||
_this._ignoreBackdropClick = true;
|
||||
}
|
||||
});
|
||||
@ -2182,15 +2138,15 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$2);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$2);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = false;
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4);
|
||||
|
||||
if (transition) {
|
||||
this._isTransitioning = true;
|
||||
@ -2200,14 +2156,14 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_SHOW$3);
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_SHOW$4);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS$1);
|
||||
$__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, function (event) {
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, function (event) {
|
||||
return _this2._hideModal(event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
@ -2217,7 +2173,7 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
[window, this._element, this._dialog].forEach(function (htmlElement) {
|
||||
return $__default['default'](htmlElement).off(EVENT_KEY$5);
|
||||
return $__default["default"](htmlElement).off(EVENT_KEY$5);
|
||||
});
|
||||
/**
|
||||
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
||||
@ -2225,8 +2181,8 @@
|
||||
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
||||
*/
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$5);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$5);
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
this._dialog = null;
|
||||
@ -2244,16 +2200,16 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$3, config);
|
||||
Util.typeCheckConfig(NAME$5, config, DefaultType$3);
|
||||
config = _extends({}, Default$4, config);
|
||||
Util.typeCheckConfig(NAME$5, config, DefaultType$4);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this3 = this;
|
||||
|
||||
var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default['default'](this._element).trigger(hideEventPrevented);
|
||||
var hideEventPrevented = $__default["default"].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default["default"](this._element).trigger(hideEventPrevented);
|
||||
|
||||
if (hideEventPrevented.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -2268,12 +2224,12 @@
|
||||
this._element.classList.add(CLASS_NAME_STATIC);
|
||||
|
||||
var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._element).off(Util.TRANSITION_END);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](this._element).off(Util.TRANSITION_END);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, function () {
|
||||
_this3._element.classList.remove(CLASS_NAME_STATIC);
|
||||
|
||||
if (!isModalOverflowing) {
|
||||
$__default['default'](_this3._element).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](_this3._element).one(Util.TRANSITION_END, function () {
|
||||
_this3._element.style.overflowY = '';
|
||||
}).emulateTransitionEnd(_this3._element, modalTransitionDuration);
|
||||
}
|
||||
@ -2285,7 +2241,7 @@
|
||||
_proto._showElement = function _showElement(relatedTarget) {
|
||||
var _this4 = this;
|
||||
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4);
|
||||
var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
@ -2301,7 +2257,7 @@
|
||||
|
||||
this._element.setAttribute('role', 'dialog');
|
||||
|
||||
if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
if ($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
@ -2311,13 +2267,13 @@
|
||||
Util.reflow(this._element);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
if (this._config.focus) {
|
||||
this._enforceFocus();
|
||||
}
|
||||
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN$2, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN$2, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
|
||||
@ -2327,12 +2283,12 @@
|
||||
}
|
||||
|
||||
_this4._isTransitioning = false;
|
||||
$__default['default'](_this4._element).trigger(shownEvent);
|
||||
$__default["default"](_this4._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
transitionComplete();
|
||||
}
|
||||
@ -2341,9 +2297,9 @@
|
||||
_proto._enforceFocus = function _enforceFocus() {
|
||||
var _this5 = this;
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
$__default["default"](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
.on(EVENT_FOCUSIN, function (event) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default["default"](_this5._element).has(event.target).length === 0) {
|
||||
_this5._element.focus();
|
||||
}
|
||||
});
|
||||
@ -2353,17 +2309,17 @@
|
||||
var _this6 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
|
||||
event.preventDefault();
|
||||
|
||||
_this6.hide();
|
||||
} else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
|
||||
} else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
|
||||
_this6._triggerBackdropTransition();
|
||||
}
|
||||
});
|
||||
} else if (!this._isShown) {
|
||||
$__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
$__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
}
|
||||
};
|
||||
|
||||
@ -2371,11 +2327,11 @@
|
||||
var _this7 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](window).on(EVENT_RESIZE, function (event) {
|
||||
$__default["default"](window).on(EVENT_RESIZE, function (event) {
|
||||
return _this7.handleUpdate(event);
|
||||
});
|
||||
} else {
|
||||
$__default['default'](window).off(EVENT_RESIZE);
|
||||
$__default["default"](window).off(EVENT_RESIZE);
|
||||
}
|
||||
};
|
||||
|
||||
@ -2393,19 +2349,19 @@
|
||||
this._isTransitioning = false;
|
||||
|
||||
this._showBackdrop(function () {
|
||||
$__default['default'](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
|
||||
_this8._resetAdjustments();
|
||||
|
||||
_this8._resetScrollbar();
|
||||
|
||||
$__default['default'](_this8._element).trigger(EVENT_HIDDEN$2);
|
||||
$__default["default"](_this8._element).trigger(EVENT_HIDDEN$2);
|
||||
});
|
||||
};
|
||||
|
||||
_proto._removeBackdrop = function _removeBackdrop() {
|
||||
if (this._backdrop) {
|
||||
$__default['default'](this._backdrop).remove();
|
||||
$__default["default"](this._backdrop).remove();
|
||||
this._backdrop = null;
|
||||
}
|
||||
};
|
||||
@ -2413,7 +2369,7 @@
|
||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||
var _this9 = this;
|
||||
|
||||
var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
|
||||
var animate = $__default["default"](this._element).hasClass(CLASS_NAME_FADE$4) ? CLASS_NAME_FADE$4 : '';
|
||||
|
||||
if (this._isShown && this._config.backdrop) {
|
||||
this._backdrop = document.createElement('div');
|
||||
@ -2423,8 +2379,8 @@
|
||||
this._backdrop.classList.add(animate);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).appendTo(document.body);
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) {
|
||||
$__default["default"](this._backdrop).appendTo(document.body);
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS$1, function (event) {
|
||||
if (_this9._ignoreBackdropClick) {
|
||||
_this9._ignoreBackdropClick = false;
|
||||
return;
|
||||
@ -2445,7 +2401,7 @@
|
||||
Util.reflow(this._backdrop);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
if (!callback) {
|
||||
return;
|
||||
@ -2457,9 +2413,9 @@
|
||||
}
|
||||
|
||||
var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
||||
$__default['default'](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
$__default["default"](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
} else if (!this._isShown && this._backdrop) {
|
||||
$__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW$4);
|
||||
|
||||
var callbackRemove = function callbackRemove() {
|
||||
_this9._removeBackdrop();
|
||||
@ -2469,10 +2425,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE$4)) {
|
||||
var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
|
||||
|
||||
$__default['default'](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
$__default["default"](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
} else {
|
||||
callbackRemove();
|
||||
}
|
||||
@ -2517,46 +2473,46 @@
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
|
||||
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](element).css('padding-right');
|
||||
$__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](element).css('padding-right');
|
||||
$__default["default"](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
$__default['default'](stickyContent).each(function (index, element) {
|
||||
$__default["default"](stickyContent).each(function (index, element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = $__default['default'](element).css('margin-right');
|
||||
$__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
var calculatedMargin = $__default["default"](element).css('margin-right');
|
||||
$__default["default"](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](document.body).css('padding-right');
|
||||
$__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](document.body).css('padding-right');
|
||||
$__default["default"](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
}
|
||||
|
||||
$__default['default'](document.body).addClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).addClass(CLASS_NAME_OPEN);
|
||||
};
|
||||
|
||||
_proto._resetScrollbar = function _resetScrollbar() {
|
||||
// Restore fixed content padding
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
var padding = $__default['default'](element).data('padding-right');
|
||||
$__default['default'](element).removeData('padding-right');
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var padding = $__default["default"](element).data('padding-right');
|
||||
$__default["default"](element).removeData('padding-right');
|
||||
element.style.paddingRight = padding ? padding : '';
|
||||
}); // Restore sticky content
|
||||
|
||||
var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
|
||||
$__default['default'](elements).each(function (index, element) {
|
||||
var margin = $__default['default'](element).data('margin-right');
|
||||
$__default["default"](elements).each(function (index, element) {
|
||||
var margin = $__default["default"](element).data('margin-right');
|
||||
|
||||
if (typeof margin !== 'undefined') {
|
||||
$__default['default'](element).css('margin-right', margin).removeData('margin-right');
|
||||
$__default["default"](element).css('margin-right', margin).removeData('margin-right');
|
||||
}
|
||||
}); // Restore body padding
|
||||
|
||||
var padding = $__default['default'](document.body).data('padding-right');
|
||||
$__default['default'](document.body).removeData('padding-right');
|
||||
var padding = $__default["default"](document.body).data('padding-right');
|
||||
$__default["default"](document.body).removeData('padding-right');
|
||||
document.body.style.paddingRight = padding ? padding : '';
|
||||
};
|
||||
|
||||
@ -2573,13 +2529,13 @@
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$5);
|
||||
var data = $__default["default"](this).data(DATA_KEY$5);
|
||||
|
||||
var _config = _extends({}, Default$3, $__default['default'](this).data(), typeof config === 'object' && config ? config : {});
|
||||
var _config = _extends({}, Default$4, $__default["default"](this).data(), typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (!data) {
|
||||
data = new Modal(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$5, data);
|
||||
$__default["default"](this).data(DATA_KEY$5, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -2602,20 +2558,18 @@
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$3;
|
||||
return Default$4;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Modal;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {
|
||||
var _this11 = this;
|
||||
|
||||
var target;
|
||||
@ -2625,44 +2579,42 @@
|
||||
target = document.querySelector(selector);
|
||||
}
|
||||
|
||||
var config = $__default['default'](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = $__default["default"](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $target = $__default['default'](target).one(EVENT_SHOW$2, function (showEvent) {
|
||||
var $target = $__default["default"](target).one(EVENT_SHOW$2, function (showEvent) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
// Only register focus restorer if modal will actually get shown
|
||||
return;
|
||||
}
|
||||
|
||||
$target.one(EVENT_HIDDEN$2, function () {
|
||||
if ($__default['default'](_this11).is(':visible')) {
|
||||
if ($__default["default"](_this11).is(':visible')) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Modal._jQueryInterface.call($__default['default'](target), config, this);
|
||||
Modal._jQueryInterface.call($__default["default"](target), config, this);
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$5] = Modal._jQueryInterface;
|
||||
$__default['default'].fn[NAME$5].Constructor = Modal;
|
||||
$__default["default"].fn[NAME$5] = Modal._jQueryInterface;
|
||||
$__default["default"].fn[NAME$5].Constructor = Modal;
|
||||
|
||||
$__default['default'].fn[NAME$5].noConflict = function () {
|
||||
$__default['default'].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
$__default["default"].fn[NAME$5].noConflict = function () {
|
||||
$__default["default"].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
|
||||
return Modal._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tools/sanitizer.js
|
||||
* Bootstrap (v4.6.1): tools/sanitizer.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2704,14 +2656,14 @@
|
||||
/**
|
||||
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
|
||||
/**
|
||||
* A pattern that matches safe data URLs. Only matches image, video and audio types.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
|
||||
@ -2721,7 +2673,7 @@
|
||||
|
||||
if (allowedAttributeList.indexOf(attrName) !== -1) {
|
||||
if (uriAttrs.indexOf(attrName) !== -1) {
|
||||
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;
|
||||
@ -2732,7 +2684,7 @@
|
||||
}); // Check if a regular expression validates the attribute.
|
||||
|
||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||
if (attrName.match(regExp[i])) {
|
||||
if (regExp[i].test(attrName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -2763,7 +2715,8 @@
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var attributeList = [].slice.call(el.attributes);
|
||||
var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
|
||||
|
||||
var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
|
||||
attributeList.forEach(function (attr) {
|
||||
if (!allowedAttribute(attr, whitelistedAttributes)) {
|
||||
@ -2782,38 +2735,27 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$6 = 'tooltip';
|
||||
var VERSION$6 = '4.6.0';
|
||||
var DATA_KEY$6 = 'bs.tooltip';
|
||||
var EVENT_KEY$6 = "." + DATA_KEY$6;
|
||||
var JQUERY_NO_CONFLICT$6 = $__default['default'].fn[NAME$6];
|
||||
var CLASS_PREFIX = 'bs-tooltip';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var NAME$4 = 'tooltip';
|
||||
var VERSION$4 = '4.6.1';
|
||||
var DATA_KEY$4 = 'bs.tooltip';
|
||||
var EVENT_KEY$4 = "." + DATA_KEY$4;
|
||||
var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4];
|
||||
var CLASS_PREFIX$1 = 'bs-tooltip';
|
||||
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
||||
var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
|
||||
var DefaultType$4 = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var CLASS_NAME_FADE$3 = 'fade';
|
||||
var CLASS_NAME_SHOW$3 = 'show';
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
var AttachmentMap = {
|
||||
AUTO: 'auto',
|
||||
TOP: 'top',
|
||||
@ -2821,7 +2763,7 @@
|
||||
BOTTOM: 'bottom',
|
||||
LEFT: 'left'
|
||||
};
|
||||
var Default$4 = {
|
||||
var Default$3 = {
|
||||
animation: true,
|
||||
template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
|
||||
trigger: 'hover focus',
|
||||
@ -2840,39 +2782,46 @@
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY$6,
|
||||
HIDDEN: "hidden" + EVENT_KEY$6,
|
||||
SHOW: "show" + EVENT_KEY$6,
|
||||
SHOWN: "shown" + EVENT_KEY$6,
|
||||
INSERTED: "inserted" + EVENT_KEY$6,
|
||||
CLICK: "click" + EVENT_KEY$6,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$6,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$6,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$6,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$6
|
||||
var DefaultType$3 = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var Event$1 = {
|
||||
HIDE: "hide" + EVENT_KEY$4,
|
||||
HIDDEN: "hidden" + EVENT_KEY$4,
|
||||
SHOW: "show" + EVENT_KEY$4,
|
||||
SHOWN: "shown" + EVENT_KEY$4,
|
||||
INSERTED: "inserted" + EVENT_KEY$4,
|
||||
CLICK: "click" + EVENT_KEY$4,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$4,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$4,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$4,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$4
|
||||
};
|
||||
var CLASS_NAME_FADE$2 = 'fade';
|
||||
var CLASS_NAME_SHOW$4 = 'show';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tooltip = /*#__PURE__*/function () {
|
||||
function Tooltip(element, config) {
|
||||
if (typeof Popper__default['default'] === 'undefined') {
|
||||
if (typeof Popper__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
||||
} // private
|
||||
} // Private
|
||||
|
||||
|
||||
this._isEnabled = true;
|
||||
@ -2911,11 +2860,11 @@
|
||||
|
||||
if (event) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
var context = $__default['default'](event.currentTarget).data(dataKey);
|
||||
var context = $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
context._activeTrigger.click = !context._activeTrigger.click;
|
||||
@ -2926,7 +2875,7 @@
|
||||
context._leave(null, context);
|
||||
}
|
||||
} else {
|
||||
if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
|
||||
if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW$3)) {
|
||||
this._leave(null, this);
|
||||
|
||||
return;
|
||||
@ -2938,12 +2887,12 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
clearTimeout(this._timeout);
|
||||
$__default['default'].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default['default'](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default["default"](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.tip) {
|
||||
$__default['default'](this.tip).remove();
|
||||
$__default["default"](this.tip).remove();
|
||||
}
|
||||
|
||||
this._isEnabled = null;
|
||||
@ -2964,16 +2913,16 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if ($__default['default'](this.element).css('display') === 'none') {
|
||||
if ($__default["default"](this.element).css('display') === 'none') {
|
||||
throw new Error('Please use show on visible elements');
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(this.constructor.Event.SHOW);
|
||||
var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
|
||||
|
||||
if (this.isWithContent() && this._isEnabled) {
|
||||
$__default['default'](this.element).trigger(showEvent);
|
||||
$__default["default"](this.element).trigger(showEvent);
|
||||
var shadowRoot = Util.findShadowRoot(this.element);
|
||||
var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
||||
return;
|
||||
@ -2986,7 +2935,7 @@
|
||||
this.setContent();
|
||||
|
||||
if (this.config.animation) {
|
||||
$__default['default'](tip).addClass(CLASS_NAME_FADE$2);
|
||||
$__default["default"](tip).addClass(CLASS_NAME_FADE$3);
|
||||
}
|
||||
|
||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
||||
@ -2997,22 +2946,22 @@
|
||||
|
||||
var container = this._getContainer();
|
||||
|
||||
$__default['default'](tip).data(this.constructor.DATA_KEY, this);
|
||||
$__default["default"](tip).data(this.constructor.DATA_KEY, this);
|
||||
|
||||
if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default['default'](tip).appendTo(container);
|
||||
if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default["default"](tip).appendTo(container);
|
||||
}
|
||||
|
||||
$__default['default'](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default['default'](tip).addClass(CLASS_NAME_SHOW$4);
|
||||
$__default['default'](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
$__default["default"](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper__default["default"](this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default["default"](tip).addClass(CLASS_NAME_SHOW$3);
|
||||
$__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
var complete = function complete() {
|
||||
@ -3022,16 +2971,16 @@
|
||||
|
||||
var prevHoverState = _this._hoverState;
|
||||
_this._hoverState = null;
|
||||
$__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
|
||||
if (prevHoverState === HOVER_STATE_OUT) {
|
||||
_this._leave(null, _this);
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
|
||||
$__default['default'](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -3042,7 +2991,7 @@
|
||||
var _this2 = this;
|
||||
|
||||
var tip = this.getTipElement();
|
||||
var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE);
|
||||
var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
|
||||
|
||||
var complete = function complete() {
|
||||
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
|
||||
@ -3053,7 +3002,7 @@
|
||||
|
||||
_this2.element.removeAttribute('aria-describedby');
|
||||
|
||||
$__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
|
||||
if (_this2._popper !== null) {
|
||||
_this2._popper.destroy();
|
||||
@ -3064,26 +3013,26 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).trigger(hideEvent);
|
||||
$__default["default"](this.element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we remove the extra
|
||||
// empty mouseover listeners we added for iOS support
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._activeTrigger[TRIGGER_CLICK] = false;
|
||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$3)) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(tip);
|
||||
$__default['default'](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -3103,29 +3052,29 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement();
|
||||
this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
|
||||
this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$3);
|
||||
};
|
||||
|
||||
_proto.setElementContent = function setElementContent($element, content) {
|
||||
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
||||
// Content is a DOM node or a jQuery
|
||||
if (this.config.html) {
|
||||
if (!$__default['default'](content).parent().is($element)) {
|
||||
if (!$__default["default"](content).parent().is($element)) {
|
||||
$element.empty().append(content);
|
||||
}
|
||||
} else {
|
||||
$element.text($__default['default'](content).text());
|
||||
$element.text($__default["default"](content).text());
|
||||
}
|
||||
|
||||
return;
|
||||
@ -3189,7 +3138,7 @@
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -3205,10 +3154,10 @@
|
||||
}
|
||||
|
||||
if (Util.isElement(this.config.container)) {
|
||||
return $__default['default'](this.config.container);
|
||||
return $__default["default"](this.config.container);
|
||||
}
|
||||
|
||||
return $__default['default'](document).find(this.config.container);
|
||||
return $__default["default"](document).find(this.config.container);
|
||||
};
|
||||
|
||||
_proto._getAttachment = function _getAttachment(placement) {
|
||||
@ -3221,13 +3170,13 @@
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
$__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== TRIGGER_MANUAL) {
|
||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
$__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
}).on(eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
@ -3241,7 +3190,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.config.selector) {
|
||||
this.config = _extends({}, this.config, {
|
||||
@ -3264,18 +3213,18 @@
|
||||
|
||||
_proto._enter = function _enter(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||
}
|
||||
|
||||
if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW$3) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
context._hoverState = HOVER_STATE_SHOW;
|
||||
return;
|
||||
}
|
||||
@ -3297,11 +3246,11 @@
|
||||
|
||||
_proto._leave = function _leave(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
@ -3338,7 +3287,7 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
var dataAttributes = $__default['default'](this.element).data();
|
||||
var dataAttributes = $__default["default"](this.element).data();
|
||||
Object.keys(dataAttributes).forEach(function (dataAttr) {
|
||||
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
|
||||
delete dataAttributes[dataAttr];
|
||||
@ -3361,7 +3310,7 @@
|
||||
config.content = config.content.toString();
|
||||
}
|
||||
|
||||
Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
|
||||
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
|
||||
|
||||
if (config.sanitize) {
|
||||
config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
|
||||
@ -3385,8 +3334,8 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
|
||||
|
||||
if (tabClass !== null && tabClass.length) {
|
||||
$tip.removeClass(tabClass.join(''));
|
||||
@ -3409,7 +3358,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE$2);
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE$3);
|
||||
this.config.animation = false;
|
||||
this.hide();
|
||||
this.show();
|
||||
@ -3419,8 +3368,8 @@
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$6);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY$4);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
@ -3430,7 +3379,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Tooltip(this, _config);
|
||||
$element.data(DATA_KEY$6, data);
|
||||
$element.data(DATA_KEY$4, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -3446,102 +3395,96 @@
|
||||
_createClass(Tooltip, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$6;
|
||||
return VERSION$4;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$4;
|
||||
return Default$3;
|
||||
}
|
||||
}, {
|
||||
key: "NAME",
|
||||
get: function get() {
|
||||
return NAME$6;
|
||||
return NAME$4;
|
||||
}
|
||||
}, {
|
||||
key: "DATA_KEY",
|
||||
get: function get() {
|
||||
return DATA_KEY$6;
|
||||
return DATA_KEY$4;
|
||||
}
|
||||
}, {
|
||||
key: "Event",
|
||||
get: function get() {
|
||||
return Event;
|
||||
return Event$1;
|
||||
}
|
||||
}, {
|
||||
key: "EVENT_KEY",
|
||||
get: function get() {
|
||||
return EVENT_KEY$6;
|
||||
return EVENT_KEY$4;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$4;
|
||||
return DefaultType$3;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Tooltip;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$6] = Tooltip._jQueryInterface;
|
||||
$__default['default'].fn[NAME$6].Constructor = Tooltip;
|
||||
$__default["default"].fn[NAME$4] = Tooltip._jQueryInterface;
|
||||
$__default["default"].fn[NAME$4].Constructor = Tooltip;
|
||||
|
||||
$__default['default'].fn[NAME$6].noConflict = function () {
|
||||
$__default['default'].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
|
||||
$__default["default"].fn[NAME$4].noConflict = function () {
|
||||
$__default["default"].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
|
||||
return Tooltip._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$7 = 'popover';
|
||||
var VERSION$7 = '4.6.0';
|
||||
var DATA_KEY$7 = 'bs.popover';
|
||||
var EVENT_KEY$7 = "." + DATA_KEY$7;
|
||||
var JQUERY_NO_CONFLICT$7 = $__default['default'].fn[NAME$7];
|
||||
var CLASS_PREFIX$1 = 'bs-popover';
|
||||
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
|
||||
var NAME$3 = 'popover';
|
||||
var VERSION$3 = '4.6.1';
|
||||
var DATA_KEY$3 = 'bs.popover';
|
||||
var EVENT_KEY$3 = "." + DATA_KEY$3;
|
||||
var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3];
|
||||
var CLASS_PREFIX = 'bs-popover';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var CLASS_NAME_FADE$2 = 'fade';
|
||||
var CLASS_NAME_SHOW$2 = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
|
||||
var Default$5 = _extends({}, Tooltip.Default, {
|
||||
var Default$2 = _extends({}, Tooltip.Default, {
|
||||
placement: 'right',
|
||||
trigger: 'click',
|
||||
content: '',
|
||||
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
||||
});
|
||||
|
||||
var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
|
||||
var DefaultType$2 = _extends({}, Tooltip.DefaultType, {
|
||||
content: '(string|element|function)'
|
||||
});
|
||||
|
||||
var CLASS_NAME_FADE$3 = 'fade';
|
||||
var CLASS_NAME_SHOW$5 = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
var Event$1 = {
|
||||
HIDE: "hide" + EVENT_KEY$7,
|
||||
HIDDEN: "hidden" + EVENT_KEY$7,
|
||||
SHOW: "show" + EVENT_KEY$7,
|
||||
SHOWN: "shown" + EVENT_KEY$7,
|
||||
INSERTED: "inserted" + EVENT_KEY$7,
|
||||
CLICK: "click" + EVENT_KEY$7,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$7,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$7,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$7,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$7
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY$3,
|
||||
HIDDEN: "hidden" + EVENT_KEY$3,
|
||||
SHOW: "show" + EVENT_KEY$3,
|
||||
SHOWN: "shown" + EVENT_KEY$3,
|
||||
INSERTED: "inserted" + EVENT_KEY$3,
|
||||
CLICK: "click" + EVENT_KEY$3,
|
||||
FOCUSIN: "focusin" + EVENT_KEY$3,
|
||||
FOCUSOUT: "focusout" + EVENT_KEY$3,
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY$3,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY$3
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Popover = /*#__PURE__*/function (_Tooltip) {
|
||||
@ -3559,16 +3502,16 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
var $tip = $__default["default"](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
|
||||
this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
|
||||
|
||||
@ -3579,7 +3522,7 @@
|
||||
}
|
||||
|
||||
this.setElementContent($tip.find(SELECTOR_CONTENT), content);
|
||||
$tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
|
||||
$tip.removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$2);
|
||||
} // Private
|
||||
;
|
||||
|
||||
@ -3588,8 +3531,8 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
|
||||
if (tabClass !== null && tabClass.length > 0) {
|
||||
$tip.removeClass(tabClass.join(''));
|
||||
@ -3599,7 +3542,7 @@
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$7);
|
||||
var data = $__default["default"](this).data(DATA_KEY$3);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
@ -3609,7 +3552,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Popover(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$7, data);
|
||||
$__default["default"](this).data(DATA_KEY$3, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -3624,100 +3567,94 @@
|
||||
|
||||
_createClass(Popover, null, [{
|
||||
key: "VERSION",
|
||||
// Getters
|
||||
get: function get() {
|
||||
return VERSION$7;
|
||||
get: // Getters
|
||||
function get() {
|
||||
return VERSION$3;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$5;
|
||||
return Default$2;
|
||||
}
|
||||
}, {
|
||||
key: "NAME",
|
||||
get: function get() {
|
||||
return NAME$7;
|
||||
return NAME$3;
|
||||
}
|
||||
}, {
|
||||
key: "DATA_KEY",
|
||||
get: function get() {
|
||||
return DATA_KEY$7;
|
||||
return DATA_KEY$3;
|
||||
}
|
||||
}, {
|
||||
key: "Event",
|
||||
get: function get() {
|
||||
return Event$1;
|
||||
return Event;
|
||||
}
|
||||
}, {
|
||||
key: "EVENT_KEY",
|
||||
get: function get() {
|
||||
return EVENT_KEY$7;
|
||||
return EVENT_KEY$3;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$5;
|
||||
return DefaultType$2;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Popover;
|
||||
}(Tooltip);
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$7] = Popover._jQueryInterface;
|
||||
$__default['default'].fn[NAME$7].Constructor = Popover;
|
||||
$__default["default"].fn[NAME$3] = Popover._jQueryInterface;
|
||||
$__default["default"].fn[NAME$3].Constructor = Popover;
|
||||
|
||||
$__default['default'].fn[NAME$7].noConflict = function () {
|
||||
$__default['default'].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
|
||||
$__default["default"].fn[NAME$3].noConflict = function () {
|
||||
$__default["default"].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
|
||||
return Popover._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$8 = 'scrollspy';
|
||||
var VERSION$8 = '4.6.0';
|
||||
var DATA_KEY$8 = 'bs.scrollspy';
|
||||
var EVENT_KEY$8 = "." + DATA_KEY$8;
|
||||
var DATA_API_KEY$6 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$8 = $__default['default'].fn[NAME$8];
|
||||
var Default$6 = {
|
||||
var NAME$2 = 'scrollspy';
|
||||
var VERSION$2 = '4.6.1';
|
||||
var DATA_KEY$2 = 'bs.scrollspy';
|
||||
var EVENT_KEY$2 = "." + DATA_KEY$2;
|
||||
var DATA_API_KEY$1 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2];
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE$1 = 'active';
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY$2;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY$2;
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$2 + DATA_API_KEY$1;
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
|
||||
var Default$1 = {
|
||||
offset: 10,
|
||||
method: 'auto',
|
||||
target: ''
|
||||
};
|
||||
var DefaultType$6 = {
|
||||
var DefaultType$1 = {
|
||||
offset: 'number',
|
||||
method: 'string',
|
||||
target: '(string|element)'
|
||||
};
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
|
||||
var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE$2 = 'active';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var ScrollSpy = /*#__PURE__*/function () {
|
||||
@ -3732,7 +3669,7 @@
|
||||
this._targets = [];
|
||||
this._activeTarget = null;
|
||||
this._scrollHeight = 0;
|
||||
$__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
$__default["default"](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
return _this._process(event);
|
||||
});
|
||||
this.refresh();
|
||||
@ -3767,7 +3704,7 @@
|
||||
|
||||
if (targetBCR.width || targetBCR.height) {
|
||||
// TODO (fat): remove sketch reliance on jQuery position/offset
|
||||
return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
return [$__default["default"](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
}
|
||||
}
|
||||
|
||||
@ -3784,8 +3721,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$8);
|
||||
$__default['default'](this._scrollElement).off(EVENT_KEY$8);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$2);
|
||||
$__default["default"](this._scrollElement).off(EVENT_KEY$2);
|
||||
this._element = null;
|
||||
this._scrollElement = null;
|
||||
this._config = null;
|
||||
@ -3798,20 +3735,20 @@
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
|
||||
config = _extends({}, Default$1, typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (typeof config.target !== 'string' && Util.isElement(config.target)) {
|
||||
var id = $__default['default'](config.target).attr('id');
|
||||
var id = $__default["default"](config.target).attr('id');
|
||||
|
||||
if (!id) {
|
||||
id = Util.getUID(NAME$8);
|
||||
$__default['default'](config.target).attr('id', id);
|
||||
id = Util.getUID(NAME$2);
|
||||
$__default["default"](config.target).attr('id', id);
|
||||
}
|
||||
|
||||
config.target = "#" + id;
|
||||
}
|
||||
|
||||
Util.typeCheckConfig(NAME$8, config, DefaultType$6);
|
||||
Util.typeCheckConfig(NAME$2, config, DefaultType$1);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -3874,44 +3811,44 @@
|
||||
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
|
||||
});
|
||||
|
||||
var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
var $link = $__default["default"]([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
|
||||
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
|
||||
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.closest(SELECTOR_DROPDOWN$1).find(SELECTOR_DROPDOWN_TOGGLE$1).addClass(CLASS_NAME_ACTIVE$1);
|
||||
$link.addClass(CLASS_NAME_ACTIVE$1);
|
||||
} else {
|
||||
// Set triggered link as active
|
||||
$link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
|
||||
$link.addClass(CLASS_NAME_ACTIVE$1); // Set triggered links parents as active
|
||||
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
||||
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$1); // Handle special case when .nav-link is inside .nav-item
|
||||
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP$1).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$1);
|
||||
}
|
||||
|
||||
$__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
$__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
relatedTarget: target
|
||||
});
|
||||
};
|
||||
|
||||
_proto._clear = function _clear() {
|
||||
[].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
|
||||
return node.classList.contains(CLASS_NAME_ACTIVE$2);
|
||||
return node.classList.contains(CLASS_NAME_ACTIVE$1);
|
||||
}).forEach(function (node) {
|
||||
return node.classList.remove(CLASS_NAME_ACTIVE$2);
|
||||
return node.classList.remove(CLASS_NAME_ACTIVE$1);
|
||||
});
|
||||
} // Static
|
||||
;
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY$8);
|
||||
var data = $__default["default"](this).data(DATA_KEY$2);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
if (!data) {
|
||||
data = new ScrollSpy(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY$8, data);
|
||||
$__default["default"](this).data(DATA_KEY$2, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -3927,81 +3864,73 @@
|
||||
_createClass(ScrollSpy, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$8;
|
||||
return VERSION$2;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$6;
|
||||
return Default$1;
|
||||
}
|
||||
}]);
|
||||
|
||||
return ScrollSpy;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API$2, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
|
||||
var scrollSpysLength = scrollSpys.length;
|
||||
|
||||
for (var i = scrollSpysLength; i--;) {
|
||||
var $spy = $__default['default'](scrollSpys[i]);
|
||||
var $spy = $__default["default"](scrollSpys[i]);
|
||||
|
||||
ScrollSpy._jQueryInterface.call($spy, $spy.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$8] = ScrollSpy._jQueryInterface;
|
||||
$__default['default'].fn[NAME$8].Constructor = ScrollSpy;
|
||||
$__default["default"].fn[NAME$2] = ScrollSpy._jQueryInterface;
|
||||
$__default["default"].fn[NAME$2].Constructor = ScrollSpy;
|
||||
|
||||
$__default['default'].fn[NAME$8].noConflict = function () {
|
||||
$__default['default'].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
|
||||
$__default["default"].fn[NAME$2].noConflict = function () {
|
||||
$__default["default"].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$9 = 'tab';
|
||||
var VERSION$9 = '4.6.0';
|
||||
var DATA_KEY$9 = 'bs.tab';
|
||||
var EVENT_KEY$9 = "." + DATA_KEY$9;
|
||||
var DATA_API_KEY$7 = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$9 = $__default['default'].fn[NAME$9];
|
||||
var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
|
||||
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
|
||||
var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
|
||||
var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
|
||||
var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
|
||||
var NAME$1 = 'tab';
|
||||
var VERSION$1 = '4.6.1';
|
||||
var DATA_KEY$1 = 'bs.tab';
|
||||
var EVENT_KEY$1 = "." + DATA_KEY$1;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1];
|
||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||
var CLASS_NAME_ACTIVE$3 = 'active';
|
||||
var CLASS_NAME_DISABLED$1 = 'disabled';
|
||||
var CLASS_NAME_FADE$4 = 'fade';
|
||||
var CLASS_NAME_SHOW$6 = 'show';
|
||||
var SELECTOR_DROPDOWN$1 = '.dropdown';
|
||||
var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
|
||||
var SELECTOR_ACTIVE$2 = '.active';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_FADE$1 = 'fade';
|
||||
var CLASS_NAME_SHOW$1 = 'show';
|
||||
var EVENT_HIDE$1 = "hide" + EVENT_KEY$1;
|
||||
var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$1;
|
||||
var EVENT_SHOW$1 = "show" + EVENT_KEY$1;
|
||||
var EVENT_SHOWN$1 = "shown" + EVENT_KEY$1;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY$1 + DATA_API_KEY;
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_ACTIVE_UL = '> li > .active';
|
||||
var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
||||
var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tab = /*#__PURE__*/function () {
|
||||
@ -4016,33 +3945,33 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE$3) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
|
||||
var listElement = $__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0];
|
||||
var selector = Util.getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
|
||||
previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector));
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
|
||||
previous = $__default["default"].makeArray($__default["default"](listElement).find(itemSelector));
|
||||
previous = previous[previous.length - 1];
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$3, {
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE$1, {
|
||||
relatedTarget: this._element
|
||||
});
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$3, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW$1, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
|
||||
if (previous) {
|
||||
$__default['default'](previous).trigger(hideEvent);
|
||||
$__default["default"](previous).trigger(hideEvent);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4055,14 +3984,14 @@
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN$3, {
|
||||
var hiddenEvent = $__default["default"].Event(EVENT_HIDDEN$1, {
|
||||
relatedTarget: _this._element
|
||||
});
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN$3, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN$1, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
$__default['default'](previous).trigger(hiddenEvent);
|
||||
$__default['default'](_this._element).trigger(shownEvent);
|
||||
$__default["default"](previous).trigger(hiddenEvent);
|
||||
$__default["default"](_this._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (target) {
|
||||
@ -4073,7 +4002,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY$9);
|
||||
$__default["default"].removeData(this._element, DATA_KEY$1);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
@ -4081,9 +4010,9 @@
|
||||
_proto._activate = function _activate(element, container, callback) {
|
||||
var _this2 = this;
|
||||
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE$2);
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default["default"](container).find(SELECTOR_ACTIVE_UL) : $__default["default"](container).children(SELECTOR_ACTIVE);
|
||||
var active = activeElements[0];
|
||||
var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE$4);
|
||||
var isTransitioning = callback && active && $__default["default"](active).hasClass(CLASS_NAME_FADE$1);
|
||||
|
||||
var complete = function complete() {
|
||||
return _this2._transitionComplete(element, active, callback);
|
||||
@ -4091,7 +4020,7 @@
|
||||
|
||||
if (active && isTransitioning) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(active);
|
||||
$__default['default'](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](active).removeClass(CLASS_NAME_SHOW$1).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -4099,11 +4028,11 @@
|
||||
|
||||
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
||||
if (active) {
|
||||
$__default['default'](active).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
$__default["default"](active).removeClass(CLASS_NAME_ACTIVE);
|
||||
var dropdownChild = $__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
|
||||
if (dropdownChild) {
|
||||
$__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
|
||||
$__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
if (active.getAttribute('role') === 'tab') {
|
||||
@ -4111,7 +4040,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$__default['default'](element).addClass(CLASS_NAME_ACTIVE$3);
|
||||
$__default["default"](element).addClass(CLASS_NAME_ACTIVE);
|
||||
|
||||
if (element.getAttribute('role') === 'tab') {
|
||||
element.setAttribute('aria-selected', true);
|
||||
@ -4119,16 +4048,22 @@
|
||||
|
||||
Util.reflow(element);
|
||||
|
||||
if (element.classList.contains(CLASS_NAME_FADE$4)) {
|
||||
element.classList.add(CLASS_NAME_SHOW$6);
|
||||
if (element.classList.contains(CLASS_NAME_FADE$1)) {
|
||||
element.classList.add(CLASS_NAME_SHOW$1);
|
||||
}
|
||||
|
||||
if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN$1)[0];
|
||||
var parent = element.parentNode;
|
||||
|
||||
if (parent && parent.nodeName === 'LI') {
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
|
||||
if (parent && $__default["default"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default["default"](element).closest(SELECTOR_DROPDOWN)[0];
|
||||
|
||||
if (dropdownElement) {
|
||||
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
|
||||
$__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
|
||||
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE));
|
||||
$__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
element.setAttribute('aria-expanded', true);
|
||||
@ -4142,12 +4077,12 @@
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $this = $__default['default'](this);
|
||||
var data = $this.data(DATA_KEY$9);
|
||||
var $this = $__default["default"](this);
|
||||
var data = $this.data(DATA_KEY$1);
|
||||
|
||||
if (!data) {
|
||||
data = new Tab(this);
|
||||
$this.data(DATA_KEY$9, data);
|
||||
$this.data(DATA_KEY$1, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -4163,73 +4098,65 @@
|
||||
_createClass(Tab, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$9;
|
||||
return VERSION$1;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Tab;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
Tab._jQueryInterface.call($__default['default'](this), 'show');
|
||||
Tab._jQueryInterface.call($__default["default"](this), 'show');
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME$9] = Tab._jQueryInterface;
|
||||
$__default['default'].fn[NAME$9].Constructor = Tab;
|
||||
$__default["default"].fn[NAME$1] = Tab._jQueryInterface;
|
||||
$__default["default"].fn[NAME$1].Constructor = Tab;
|
||||
|
||||
$__default['default'].fn[NAME$9].noConflict = function () {
|
||||
$__default['default'].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
|
||||
$__default["default"].fn[NAME$1].noConflict = function () {
|
||||
$__default["default"].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
|
||||
return Tab._jQueryInterface;
|
||||
};
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME$a = 'toast';
|
||||
var VERSION$a = '4.6.0';
|
||||
var DATA_KEY$a = 'bs.toast';
|
||||
var EVENT_KEY$a = "." + DATA_KEY$a;
|
||||
var JQUERY_NO_CONFLICT$a = $__default['default'].fn[NAME$a];
|
||||
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
|
||||
var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
|
||||
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
|
||||
var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
|
||||
var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
|
||||
var CLASS_NAME_FADE$5 = 'fade';
|
||||
var NAME = 'toast';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.toast';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_HIDE = 'hide';
|
||||
var CLASS_NAME_SHOW$7 = 'show';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_SHOWING = 'showing';
|
||||
var DefaultType$7 = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
var Default$7 = {
|
||||
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY;
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]';
|
||||
var Default = {
|
||||
animation: true,
|
||||
autohide: true,
|
||||
delay: 500
|
||||
};
|
||||
var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Toast = /*#__PURE__*/function () {
|
||||
@ -4248,8 +4175,8 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW$4);
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4258,15 +4185,15 @@
|
||||
this._clearTimeout();
|
||||
|
||||
if (this._config.animation) {
|
||||
this._element.classList.add(CLASS_NAME_FADE$5);
|
||||
this._element.classList.add(CLASS_NAME_FADE);
|
||||
}
|
||||
|
||||
var complete = function complete() {
|
||||
_this._element.classList.remove(CLASS_NAME_SHOWING);
|
||||
|
||||
_this._element.classList.add(CLASS_NAME_SHOW$7);
|
||||
_this._element.classList.add(CLASS_NAME_SHOW);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN$4);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN);
|
||||
|
||||
if (_this._config.autohide) {
|
||||
_this._timeout = setTimeout(function () {
|
||||
@ -4283,19 +4210,19 @@
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||
if (!this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE$4);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -4307,27 +4234,27 @@
|
||||
_proto.dispose = function dispose() {
|
||||
this._clearTimeout();
|
||||
|
||||
if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
|
||||
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||
if (this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS$1);
|
||||
$__default['default'].removeData(this._element, DATA_KEY$a);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
this._config = null;
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default$7, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
|
||||
config = _extends({}, Default, $__default["default"](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this2 = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
|
||||
return _this2.hide();
|
||||
});
|
||||
};
|
||||
@ -4338,14 +4265,14 @@
|
||||
var complete = function complete() {
|
||||
_this3._element.classList.add(CLASS_NAME_HIDE);
|
||||
|
||||
$__default['default'](_this3._element).trigger(EVENT_HIDDEN$4);
|
||||
$__default["default"](_this3._element).trigger(EVENT_HIDDEN);
|
||||
};
|
||||
|
||||
this._element.classList.remove(CLASS_NAME_SHOW$7);
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
$__default["default"](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -4359,14 +4286,14 @@
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var data = $element.data(DATA_KEY$a);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
if (!data) {
|
||||
data = new Toast(this, _config);
|
||||
$element.data(DATA_KEY$a, data);
|
||||
$element.data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -4382,34 +4309,32 @@
|
||||
_createClass(Toast, null, [{
|
||||
key: "VERSION",
|
||||
get: function get() {
|
||||
return VERSION$a;
|
||||
return VERSION;
|
||||
}
|
||||
}, {
|
||||
key: "DefaultType",
|
||||
get: function get() {
|
||||
return DefaultType$7;
|
||||
return DefaultType;
|
||||
}
|
||||
}, {
|
||||
key: "Default",
|
||||
get: function get() {
|
||||
return Default$7;
|
||||
return Default;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Toast;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME$a] = Toast._jQueryInterface;
|
||||
$__default['default'].fn[NAME$a].Constructor = Toast;
|
||||
$__default["default"].fn[NAME] = Toast._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Toast;
|
||||
|
||||
$__default['default'].fn[NAME$a].noConflict = function () {
|
||||
$__default['default'].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Toast._jQueryInterface;
|
||||
};
|
||||
|
||||
@ -4428,5 +4353,5 @@
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=bootstrap.js.map
|
||||
|
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
4
dist/js/bootstrap.min.js
vendored
4
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
62
js/dist/alert.js
vendored
62
js/dist/alert.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap alert.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap alert.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Alert = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -31,28 +31,24 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'alert';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.alert';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_ALERT = 'alert';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Alert = /*#__PURE__*/function () {
|
||||
@ -81,13 +77,13 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getRootElement = function _getRootElement(element) {
|
||||
var selector = Util__default['default'].getSelectorFromElement(element);
|
||||
var selector = Util__default["default"].getSelectorFromElement(element);
|
||||
var parent = false;
|
||||
|
||||
if (selector) {
|
||||
@ -95,43 +91,43 @@
|
||||
}
|
||||
|
||||
if (!parent) {
|
||||
parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
parent = $__default["default"](element).closest("." + CLASS_NAME_ALERT)[0];
|
||||
}
|
||||
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||
var closeEvent = $__default['default'].Event(EVENT_CLOSE);
|
||||
$__default['default'](element).trigger(closeEvent);
|
||||
var closeEvent = $__default["default"].Event(EVENT_CLOSE);
|
||||
$__default["default"](element).trigger(closeEvent);
|
||||
return closeEvent;
|
||||
};
|
||||
|
||||
_proto._removeElement = function _removeElement(element) {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](element).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](element).removeClass(CLASS_NAME_SHOW);
|
||||
|
||||
if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) {
|
||||
if (!$__default["default"](element).hasClass(CLASS_NAME_FADE)) {
|
||||
this._destroyElement(element);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(element);
|
||||
$__default['default'](element).one(Util__default['default'].TRANSITION_END, function (event) {
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(element);
|
||||
$__default["default"](element).one(Util__default["default"].TRANSITION_END, function (event) {
|
||||
return _this._destroyElement(element, event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto._destroyElement = function _destroyElement(element) {
|
||||
$__default['default'](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
$__default["default"](element).detach().trigger(EVENT_CLOSED).remove();
|
||||
} // Static
|
||||
;
|
||||
|
||||
Alert._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
if (!data) {
|
||||
@ -165,28 +161,24 @@
|
||||
return Alert;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Alert._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Alert;
|
||||
$__default["default"].fn[NAME] = Alert._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Alert;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Alert._jQueryInterface;
|
||||
};
|
||||
|
||||
return Alert;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=alert.js.map
|
||||
|
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
62
js/dist/button.js
vendored
62
js/dist/button.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap button.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap button.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Button = factory(global.jQuery));
|
||||
}(this, (function ($) { 'use strict';
|
||||
})(this, (function ($) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -30,20 +30,21 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'button';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.button';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_BUTTON = 'btn';
|
||||
var CLASS_NAME_FOCUS = 'focus';
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY);
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||
var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
|
||||
var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
||||
@ -51,13 +52,8 @@
|
||||
var SELECTOR_INPUT = 'input:not([type="hidden"])';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_BUTTON = '.btn';
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY);
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Button = /*#__PURE__*/function () {
|
||||
@ -73,7 +69,7 @@
|
||||
_proto.toggle = function toggle() {
|
||||
var triggerChangeEvent = true;
|
||||
var addAriaPressed = true;
|
||||
var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
var rootElement = $__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
|
||||
|
||||
if (rootElement) {
|
||||
var input = this._element.querySelector(SELECTOR_INPUT);
|
||||
@ -86,7 +82,7 @@
|
||||
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
|
||||
|
||||
if (activeElement) {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -98,7 +94,7 @@
|
||||
}
|
||||
|
||||
if (!this.shouldAvoidTriggerChange) {
|
||||
$__default['default'](input).trigger('change');
|
||||
$__default["default"](input).trigger('change');
|
||||
}
|
||||
}
|
||||
|
||||
@ -113,20 +109,20 @@
|
||||
}
|
||||
|
||||
if (triggerChangeEvent) {
|
||||
$__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
} // Static
|
||||
;
|
||||
|
||||
Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
if (!data) {
|
||||
@ -152,18 +148,16 @@
|
||||
return Button;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = event.target;
|
||||
var initialButton = button;
|
||||
|
||||
if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default['default'](button).closest(SELECTOR_BUTTON)[0];
|
||||
if (!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)) {
|
||||
button = $__default["default"](button).closest(SELECTOR_BUTTON)[0];
|
||||
}
|
||||
|
||||
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
|
||||
@ -178,14 +172,14 @@
|
||||
}
|
||||
|
||||
if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
|
||||
Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
Button._jQueryInterface.call($__default["default"](button), 'toggle', initialButton.tagName === 'INPUT');
|
||||
}
|
||||
}
|
||||
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
|
||||
var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
var button = $__default["default"](event.target).closest(SELECTOR_BUTTON)[0];
|
||||
$__default["default"](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
|
||||
});
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
// ensure correct active class is set to match the controls' actual values/states
|
||||
// find all checkboxes/readio buttons inside data-toggle groups
|
||||
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
|
||||
@ -215,20 +209,18 @@
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Button._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Button;
|
||||
$__default["default"].fn[NAME] = Button._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Button;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Button._jQueryInterface;
|
||||
};
|
||||
|
||||
return Button;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=button.js.map
|
||||
|
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
174
js/dist/carousel.js
vendored
174
js/dist/carousel.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap carousel.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap carousel.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Carousel = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -49,17 +49,15 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'carousel';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.carousel';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
|
||||
|
||||
var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
|
||||
@ -67,22 +65,14 @@
|
||||
var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
|
||||
|
||||
var SWIPE_THRESHOLD = 40;
|
||||
var Default = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var CLASS_NAME_CAROUSEL = 'carousel';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_SLIDE = 'slide';
|
||||
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
||||
var CLASS_NAME_LEFT = 'carousel-item-left';
|
||||
var CLASS_NAME_NEXT = 'carousel-item-next';
|
||||
var CLASS_NAME_PREV = 'carousel-item-prev';
|
||||
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
||||
var DIRECTION_NEXT = 'next';
|
||||
var DIRECTION_PREV = 'prev';
|
||||
var DIRECTION_LEFT = 'left';
|
||||
@ -100,14 +90,6 @@
|
||||
var EVENT_DRAG_START = "dragstart" + EVENT_KEY;
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var CLASS_NAME_CAROUSEL = 'carousel';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_SLIDE = 'slide';
|
||||
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
||||
var CLASS_NAME_LEFT = 'carousel-item-left';
|
||||
var CLASS_NAME_NEXT = 'carousel-item-next';
|
||||
var CLASS_NAME_PREV = 'carousel-item-prev';
|
||||
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
|
||||
var SELECTOR_ITEM = '.carousel-item';
|
||||
@ -116,14 +98,28 @@
|
||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||
var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
|
||||
var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
|
||||
var Default = {
|
||||
interval: 5000,
|
||||
keyboard: true,
|
||||
slide: false,
|
||||
pause: 'hover',
|
||||
wrap: true,
|
||||
touch: true
|
||||
};
|
||||
var DefaultType = {
|
||||
interval: '(number|boolean)',
|
||||
keyboard: 'boolean',
|
||||
slide: '(boolean|string)',
|
||||
pause: '(string|boolean)',
|
||||
wrap: 'boolean',
|
||||
touch: 'boolean'
|
||||
};
|
||||
var PointerType = {
|
||||
TOUCH: 'touch',
|
||||
PEN: 'pen'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Carousel = /*#__PURE__*/function () {
|
||||
@ -156,7 +152,7 @@
|
||||
};
|
||||
|
||||
_proto.nextWhenVisible = function nextWhenVisible() {
|
||||
var $element = $__default['default'](this._element); // Don't call next when the page isn't visible
|
||||
var $element = $__default["default"](this._element); // Don't call next when the page isn't visible
|
||||
// or the carousel or its parent isn't visible
|
||||
|
||||
if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') {
|
||||
@ -176,7 +172,7 @@
|
||||
}
|
||||
|
||||
if (this._element.querySelector(SELECTOR_NEXT_PREV)) {
|
||||
Util__default['default'].triggerTransitionEnd(this._element);
|
||||
Util__default["default"].triggerTransitionEnd(this._element);
|
||||
this.cycle(true);
|
||||
}
|
||||
|
||||
@ -213,7 +209,7 @@
|
||||
}
|
||||
|
||||
if (this._isSliding) {
|
||||
$__default['default'](this._element).one(EVENT_SLID, function () {
|
||||
$__default["default"](this._element).one(EVENT_SLID, function () {
|
||||
return _this.to(index);
|
||||
});
|
||||
return;
|
||||
@ -231,8 +227,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'](this._element).off(EVENT_KEY);
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"](this._element).off(EVENT_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._items = null;
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
@ -246,7 +242,7 @@
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, config);
|
||||
Util__default['default'].typeCheckConfig(NAME, config, DefaultType);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -274,13 +270,13 @@
|
||||
var _this2 = this;
|
||||
|
||||
if (this._config.keyboard) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN, function (event) {
|
||||
return _this2._keydown(event);
|
||||
});
|
||||
}
|
||||
|
||||
if (this._config.pause === 'hover') {
|
||||
$__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_MOUSEENTER, function (event) {
|
||||
return _this2.pause(event);
|
||||
}).on(EVENT_MOUSELEAVE, function (event) {
|
||||
return _this2.cycle(event);
|
||||
@ -309,11 +305,7 @@
|
||||
|
||||
var move = function move(event) {
|
||||
// ensure swiping with one touch and not pinching
|
||||
if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
|
||||
_this3.touchDeltaX = 0;
|
||||
} else {
|
||||
_this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
}
|
||||
_this3.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ? 0 : event.originalEvent.touches[0].clientX - _this3.touchStartX;
|
||||
};
|
||||
|
||||
var end = function end(event) {
|
||||
@ -343,27 +335,27 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
$__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
|
||||
return e.preventDefault();
|
||||
});
|
||||
|
||||
if (this._pointerEvent) {
|
||||
$__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERDOWN, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_POINTERUP, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
|
||||
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
||||
} else {
|
||||
$__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHSTART, function (event) {
|
||||
return start(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHMOVE, function (event) {
|
||||
return move(event);
|
||||
});
|
||||
$__default['default'](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_TOUCHEND, function (event) {
|
||||
return end(event);
|
||||
});
|
||||
}
|
||||
@ -415,25 +407,25 @@
|
||||
|
||||
var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
|
||||
|
||||
var slideEvent = $__default['default'].Event(EVENT_SLIDE, {
|
||||
var slideEvent = $__default["default"].Event(EVENT_SLIDE, {
|
||||
relatedTarget: relatedTarget,
|
||||
direction: eventDirectionName,
|
||||
from: fromIndex,
|
||||
to: targetIndex
|
||||
});
|
||||
$__default['default'](this._element).trigger(slideEvent);
|
||||
$__default["default"](this._element).trigger(slideEvent);
|
||||
return slideEvent;
|
||||
};
|
||||
|
||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||
if (this._indicatorsElement) {
|
||||
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE));
|
||||
$__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE);
|
||||
|
||||
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
|
||||
|
||||
if (nextIndicator) {
|
||||
$__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -481,7 +473,7 @@
|
||||
eventDirectionName = DIRECTION_RIGHT;
|
||||
}
|
||||
|
||||
if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE)) {
|
||||
if (nextElement && $__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE)) {
|
||||
this._isSliding = false;
|
||||
return;
|
||||
}
|
||||
@ -506,32 +498,32 @@
|
||||
this._setActiveIndicatorElement(nextElement);
|
||||
|
||||
this._activeElement = nextElement;
|
||||
var slidEvent = $__default['default'].Event(EVENT_SLID, {
|
||||
var slidEvent = $__default["default"].Event(EVENT_SLID, {
|
||||
relatedTarget: nextElement,
|
||||
direction: eventDirectionName,
|
||||
from: activeElementIndex,
|
||||
to: nextElementIndex
|
||||
});
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default['default'](nextElement).addClass(orderClassName);
|
||||
Util__default['default'].reflow(nextElement);
|
||||
$__default['default'](activeElement).addClass(directionalClassName);
|
||||
$__default['default'](nextElement).addClass(directionalClassName);
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(activeElement);
|
||||
$__default['default'](activeElement).one(Util__default['default'].TRANSITION_END, function () {
|
||||
$__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE + " " + orderClassName + " " + directionalClassName);
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)) {
|
||||
$__default["default"](nextElement).addClass(orderClassName);
|
||||
Util__default["default"].reflow(nextElement);
|
||||
$__default["default"](activeElement).addClass(directionalClassName);
|
||||
$__default["default"](nextElement).addClass(directionalClassName);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(activeElement);
|
||||
$__default["default"](activeElement).one(Util__default["default"].TRANSITION_END, function () {
|
||||
$__default["default"](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE + " " + orderClassName + " " + directionalClassName);
|
||||
_this4._isSliding = false;
|
||||
setTimeout(function () {
|
||||
return $__default['default'](_this4._element).trigger(slidEvent);
|
||||
return $__default["default"](_this4._element).trigger(slidEvent);
|
||||
}, 0);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
$__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE);
|
||||
this._isSliding = false;
|
||||
$__default['default'](this._element).trigger(slidEvent);
|
||||
$__default["default"](this._element).trigger(slidEvent);
|
||||
}
|
||||
|
||||
if (isCycling) {
|
||||
@ -542,9 +534,9 @@
|
||||
|
||||
Carousel._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY);
|
||||
var data = $__default["default"](this).data(DATA_KEY);
|
||||
|
||||
var _config = _extends({}, Default, $__default['default'](this).data());
|
||||
var _config = _extends({}, Default, $__default["default"](this).data());
|
||||
|
||||
if (typeof config === 'object') {
|
||||
_config = _extends({}, _config, config);
|
||||
@ -554,7 +546,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Carousel(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY, data);
|
||||
$__default["default"](this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'number') {
|
||||
@ -573,19 +565,19 @@
|
||||
};
|
||||
|
||||
Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
|
||||
var selector = Util__default['default'].getSelectorFromElement(this);
|
||||
var selector = Util__default["default"].getSelectorFromElement(this);
|
||||
|
||||
if (!selector) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = $__default['default'](selector)[0];
|
||||
var target = $__default["default"](selector)[0];
|
||||
|
||||
if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
if (!target || !$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = _extends({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
var slideIndex = this.getAttribute('data-slide-to');
|
||||
|
||||
@ -593,10 +585,10 @@
|
||||
config.interval = false;
|
||||
}
|
||||
|
||||
Carousel._jQueryInterface.call($__default['default'](target), config);
|
||||
Carousel._jQueryInterface.call($__default["default"](target), config);
|
||||
|
||||
if (slideIndex) {
|
||||
$__default['default'](target).data(DATA_KEY).to(slideIndex);
|
||||
$__default["default"](target).data(DATA_KEY).to(slideIndex);
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
@ -617,37 +609,33 @@
|
||||
return Carousel;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
|
||||
|
||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||
var $carousel = $__default['default'](carousels[i]);
|
||||
var $carousel = $__default["default"](carousels[i]);
|
||||
|
||||
Carousel._jQueryInterface.call($carousel, $carousel.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Carousel._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Carousel;
|
||||
$__default["default"].fn[NAME] = Carousel._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Carousel;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Carousel._jQueryInterface;
|
||||
};
|
||||
|
||||
return Carousel;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=carousel.js.map
|
||||
|
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
134
js/dist/collapse.js
vendored
134
js/dist/collapse.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap collapse.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap collapse.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -49,17 +49,28 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'collapse';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.collapse';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||
var DIMENSION_WIDTH = 'width';
|
||||
var DIMENSION_HEIGHT = 'height';
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var SELECTOR_ACTIVES = '.show, .collapsing';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="collapse"]';
|
||||
var Default = {
|
||||
toggle: true,
|
||||
parent: ''
|
||||
@ -68,23 +79,8 @@
|
||||
toggle: 'boolean',
|
||||
parent: '(string|element)'
|
||||
};
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_COLLAPSE = 'collapse';
|
||||
var CLASS_NAME_COLLAPSING = 'collapsing';
|
||||
var CLASS_NAME_COLLAPSED = 'collapsed';
|
||||
var DIMENSION_WIDTH = 'width';
|
||||
var DIMENSION_HEIGHT = 'height';
|
||||
var SELECTOR_ACTIVES = '.show, .collapsing';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="collapse"]';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Collapse = /*#__PURE__*/function () {
|
||||
@ -97,7 +93,7 @@
|
||||
|
||||
for (var i = 0, len = toggleList.length; i < len; i++) {
|
||||
var elem = toggleList[i];
|
||||
var selector = Util__default['default'].getSelectorFromElement(elem);
|
||||
var selector = Util__default["default"].getSelectorFromElement(elem);
|
||||
var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
|
||||
return foundElem === element;
|
||||
});
|
||||
@ -125,7 +121,7 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
@ -135,7 +131,7 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
if (this._isTransitioning || $__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -157,64 +153,64 @@
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY);
|
||||
activesData = $__default["default"](actives).not(this._selector).data(DATA_KEY);
|
||||
|
||||
if (activesData && activesData._isTransitioning) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_SHOW);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_SHOW);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (actives) {
|
||||
Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide');
|
||||
Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector), 'hide');
|
||||
|
||||
if (!activesData) {
|
||||
$__default['default'](actives).data(DATA_KEY, null);
|
||||
$__default["default"](actives).data(DATA_KEY, null);
|
||||
}
|
||||
}
|
||||
|
||||
var dimension = this._getDimension();
|
||||
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
|
||||
this._element.style[dimension] = 0;
|
||||
|
||||
if (this._triggerArray.length) {
|
||||
$__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
$__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
|
||||
}
|
||||
|
||||
this.setTransitioning(true);
|
||||
|
||||
var complete = function complete() {
|
||||
$__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
|
||||
$__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
|
||||
_this._element.style[dimension] = '';
|
||||
|
||||
_this.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN);
|
||||
};
|
||||
|
||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||
var scrollSize = "scroll" + capitalizedDimension;
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
var _this2 = this;
|
||||
|
||||
if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
if (this._isTransitioning || !$__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var startEvent = $__default['default'].Event(EVENT_HIDE);
|
||||
$__default['default'](this._element).trigger(startEvent);
|
||||
var startEvent = $__default["default"].Event(EVENT_HIDE);
|
||||
$__default["default"](this._element).trigger(startEvent);
|
||||
|
||||
if (startEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -223,20 +219,20 @@
|
||||
var dimension = this._getDimension();
|
||||
|
||||
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
|
||||
Util__default['default'].reflow(this._element);
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
|
||||
Util__default["default"].reflow(this._element);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
|
||||
var triggerArrayLength = this._triggerArray.length;
|
||||
|
||||
if (triggerArrayLength > 0) {
|
||||
for (var i = 0; i < triggerArrayLength; i++) {
|
||||
var trigger = this._triggerArray[i];
|
||||
var selector = Util__default['default'].getSelectorFromElement(trigger);
|
||||
var selector = Util__default["default"].getSelectorFromElement(trigger);
|
||||
|
||||
if (selector !== null) {
|
||||
var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector)));
|
||||
var $elem = $__default["default"]([].slice.call(document.querySelectorAll(selector)));
|
||||
|
||||
if (!$elem.hasClass(CLASS_NAME_SHOW)) {
|
||||
$__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
$__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -247,12 +243,12 @@
|
||||
var complete = function complete() {
|
||||
_this2.setTransitioning(false);
|
||||
|
||||
$__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
|
||||
$__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
|
||||
};
|
||||
|
||||
this._element.style[dimension] = '';
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
};
|
||||
|
||||
_proto.setTransitioning = function setTransitioning(isTransitioning) {
|
||||
@ -260,7 +256,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._config = null;
|
||||
this._parent = null;
|
||||
this._element = null;
|
||||
@ -273,12 +269,12 @@
|
||||
config = _extends({}, Default, config);
|
||||
config.toggle = Boolean(config.toggle); // Coerce string values
|
||||
|
||||
Util__default['default'].typeCheckConfig(NAME, config, DefaultType);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._getDimension = function _getDimension() {
|
||||
var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH);
|
||||
var hasWidth = $__default["default"](this._element).hasClass(DIMENSION_WIDTH);
|
||||
return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
|
||||
};
|
||||
|
||||
@ -287,7 +283,7 @@
|
||||
|
||||
var parent;
|
||||
|
||||
if (Util__default['default'].isElement(this._config.parent)) {
|
||||
if (Util__default["default"].isElement(this._config.parent)) {
|
||||
parent = this._config.parent; // It's a jQuery object
|
||||
|
||||
if (typeof this._config.parent.jquery !== 'undefined') {
|
||||
@ -299,29 +295,29 @@
|
||||
|
||||
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
|
||||
var children = [].slice.call(parent.querySelectorAll(selector));
|
||||
$__default['default'](children).each(function (i, element) {
|
||||
$__default["default"](children).each(function (i, element) {
|
||||
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
|
||||
});
|
||||
return parent;
|
||||
};
|
||||
|
||||
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
||||
var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW);
|
||||
var isOpen = $__default["default"](element).hasClass(CLASS_NAME_SHOW);
|
||||
|
||||
if (triggerArray.length) {
|
||||
$__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
$__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
|
||||
}
|
||||
} // Static
|
||||
;
|
||||
|
||||
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
|
||||
var selector = Util__default['default'].getSelectorFromElement(element);
|
||||
var selector = Util__default["default"].getSelectorFromElement(element);
|
||||
return selector ? document.querySelector(selector) : null;
|
||||
};
|
||||
|
||||
Collapse._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
var _config = _extends({}, Default, $element.data(), typeof config === 'object' && config ? config : {});
|
||||
@ -360,23 +356,21 @@
|
||||
return Collapse;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||
if (event.currentTarget.tagName === 'A') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $trigger = $__default['default'](this);
|
||||
var selector = Util__default['default'].getSelectorFromElement(this);
|
||||
var $trigger = $__default["default"](this);
|
||||
var selector = Util__default["default"].getSelectorFromElement(this);
|
||||
var selectors = [].slice.call(document.querySelectorAll(selector));
|
||||
$__default['default'](selectors).each(function () {
|
||||
var $target = $__default['default'](this);
|
||||
$__default["default"](selectors).each(function () {
|
||||
var $target = $__default["default"](this);
|
||||
var data = $target.data(DATA_KEY);
|
||||
var config = data ? 'toggle' : $trigger.data();
|
||||
|
||||
@ -384,20 +378,18 @@
|
||||
});
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Collapse._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Collapse;
|
||||
$__default["default"].fn[NAME] = Collapse._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Collapse;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Collapse._jQueryInterface;
|
||||
};
|
||||
|
||||
return Collapse;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=collapse.js.map
|
||||
|
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
143
js/dist/dropdown.js
vendored
143
js/dist/dropdown.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap dropdown.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap dropdown.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.jQuery, global.Popper, global.Util));
|
||||
}(this, (function ($, Popper, Util) { 'use strict';
|
||||
})(this, (function ($, Popper, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -50,17 +50,15 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'dropdown';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.dropdown';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
||||
@ -74,6 +72,13 @@
|
||||
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
||||
|
||||
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_DROPUP = 'dropup';
|
||||
var CLASS_NAME_DROPRIGHT = 'dropright';
|
||||
var CLASS_NAME_DROPLEFT = 'dropleft';
|
||||
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
@ -82,13 +87,6 @@
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY + DATA_API_KEY;
|
||||
var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY + DATA_API_KEY;
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_DROPUP = 'dropup';
|
||||
var CLASS_NAME_DROPRIGHT = 'dropright';
|
||||
var CLASS_NAME_DROPLEFT = 'dropleft';
|
||||
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="dropdown"]';
|
||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||
var SELECTOR_MENU = '.dropdown-menu';
|
||||
@ -117,9 +115,7 @@
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Dropdown = /*#__PURE__*/function () {
|
||||
@ -138,11 +134,11 @@
|
||||
|
||||
// Public
|
||||
_proto.toggle = function toggle() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW);
|
||||
var isActive = $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW);
|
||||
|
||||
Dropdown._clearMenus();
|
||||
|
||||
@ -158,18 +154,18 @@
|
||||
usePopper = false;
|
||||
}
|
||||
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED) || $__default["default"](this._menu).hasClass(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW, relatedTarget);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(showEvent);
|
||||
$__default["default"](parent).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -177,11 +173,8 @@
|
||||
|
||||
|
||||
if (!this._inNavbar && usePopper) {
|
||||
/**
|
||||
* Check for Popper dependency
|
||||
* Popper - https://popper.js.org
|
||||
*/
|
||||
if (typeof Popper__default['default'] === 'undefined') {
|
||||
// Check for Popper dependency
|
||||
if (typeof Popper__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||
}
|
||||
|
||||
@ -189,7 +182,7 @@
|
||||
|
||||
if (this._config.reference === 'parent') {
|
||||
referenceElement = parent;
|
||||
} else if (Util__default['default'].isElement(this._config.reference)) {
|
||||
} else if (Util__default["default"].isElement(this._config.reference)) {
|
||||
referenceElement = this._config.reference; // Check if it's jQuery element
|
||||
|
||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||
@ -201,41 +194,41 @@
|
||||
|
||||
|
||||
if (this._config.boundary !== 'scrollParent') {
|
||||
$__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
$__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC);
|
||||
}
|
||||
|
||||
this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
|
||||
this._popper = new Popper__default["default"](referenceElement, this._menu, this._getPopperConfig());
|
||||
} // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
if ('ontouchstart' in document.documentElement && $__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._element.focus();
|
||||
|
||||
this._element.setAttribute('aria-expanded', true);
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default['default'].Event(EVENT_SHOWN, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_SHOWN, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.hide = function hide() {
|
||||
if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW)) {
|
||||
if (this._element.disabled || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var relatedTarget = {
|
||||
relatedTarget: this._element
|
||||
};
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE, relatedTarget);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE, relatedTarget);
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this._element);
|
||||
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -245,13 +238,13 @@
|
||||
this._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW);
|
||||
$__default['default'](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default['default'].Event(EVENT_HIDDEN, relatedTarget));
|
||||
$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_HIDDEN, relatedTarget));
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default['default'](this._element).off(EVENT_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
$__default["default"](this._element).off(EVENT_KEY);
|
||||
this._element = null;
|
||||
this._menu = null;
|
||||
|
||||
@ -274,7 +267,7 @@
|
||||
_proto._addEventListeners = function _addEventListeners() {
|
||||
var _this = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
@ -283,8 +276,8 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config);
|
||||
Util__default['default'].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
config = _extends({}, this.constructor.Default, $__default["default"](this._element).data(), config);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -301,16 +294,16 @@
|
||||
};
|
||||
|
||||
_proto._getPlacement = function _getPlacement() {
|
||||
var $parentDropdown = $__default['default'](this._element.parentNode);
|
||||
var $parentDropdown = $__default["default"](this._element.parentNode);
|
||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
||||
|
||||
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
||||
placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
placement = $__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
||||
placement = PLACEMENT_RIGHT;
|
||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
||||
placement = PLACEMENT_LEFT;
|
||||
} else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
} else if ($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
||||
placement = PLACEMENT_BOTTOMEND;
|
||||
}
|
||||
|
||||
@ -318,7 +311,7 @@
|
||||
};
|
||||
|
||||
_proto._detectNavbar = function _detectNavbar() {
|
||||
return $__default['default'](this._element).closest('.navbar').length > 0;
|
||||
return $__default["default"](this._element).closest('.navbar').length > 0;
|
||||
};
|
||||
|
||||
_proto._getOffset = function _getOffset() {
|
||||
@ -328,7 +321,7 @@
|
||||
|
||||
if (typeof this._config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
|
||||
data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -364,13 +357,13 @@
|
||||
|
||||
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY);
|
||||
var data = $__default["default"](this).data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
if (!data) {
|
||||
data = new Dropdown(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY, data);
|
||||
$__default["default"](this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -393,7 +386,7 @@
|
||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||
var parent = Dropdown._getParentFromElement(toggles[i]);
|
||||
|
||||
var context = $__default['default'](toggles[i]).data(DATA_KEY);
|
||||
var context = $__default["default"](toggles[i]).data(DATA_KEY);
|
||||
var relatedTarget = {
|
||||
relatedTarget: toggles[i]
|
||||
};
|
||||
@ -408,16 +401,16 @@
|
||||
|
||||
var dropdownMenu = context._menu;
|
||||
|
||||
if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW)) {
|
||||
if (!$__default["default"](parent).hasClass(CLASS_NAME_SHOW)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) {
|
||||
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default["default"].contains(parent, event.target)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE, relatedTarget);
|
||||
$__default['default'](parent).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE, relatedTarget);
|
||||
$__default["default"](parent).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
continue;
|
||||
@ -426,7 +419,7 @@
|
||||
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('aria-expanded', 'false');
|
||||
@ -435,14 +428,14 @@
|
||||
context._popper.destroy();
|
||||
}
|
||||
|
||||
$__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW);
|
||||
$__default['default'](parent).removeClass(CLASS_NAME_SHOW).trigger($__default['default'].Event(EVENT_HIDDEN, relatedTarget));
|
||||
$__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](parent).removeClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_HIDDEN, relatedTarget));
|
||||
}
|
||||
};
|
||||
|
||||
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
||||
var parent;
|
||||
var selector = Util__default['default'].getSelectorFromElement(element);
|
||||
var selector = Util__default["default"].getSelectorFromElement(element);
|
||||
|
||||
if (selector) {
|
||||
parent = document.querySelector(selector);
|
||||
@ -460,17 +453,17 @@
|
||||
// - If key is other than escape
|
||||
// - If key is not up or down => not a dropdown command
|
||||
// - If trigger inside the menu => not a dropdown command
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default["default"](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this.disabled || $__default["default"](this).hasClass(CLASS_NAME_DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = Dropdown._getParentFromElement(this);
|
||||
|
||||
var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW);
|
||||
var isActive = $__default["default"](parent).hasClass(CLASS_NAME_SHOW);
|
||||
|
||||
if (!isActive && event.which === ESCAPE_KEYCODE) {
|
||||
return;
|
||||
@ -481,15 +474,15 @@
|
||||
|
||||
if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {
|
||||
if (event.which === ESCAPE_KEYCODE) {
|
||||
$__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus');
|
||||
$__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus');
|
||||
}
|
||||
|
||||
$__default['default'](this).trigger('click');
|
||||
$__default["default"](this).trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
|
||||
return $__default['default'](item).is(':visible');
|
||||
return $__default["default"](item).is(':visible');
|
||||
});
|
||||
|
||||
if (items.length === 0) {
|
||||
@ -535,35 +528,31 @@
|
||||
return Dropdown;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
$__default["default"](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._jQueryInterface.call($__default['default'](this), 'toggle');
|
||||
Dropdown._jQueryInterface.call($__default["default"](this), 'toggle');
|
||||
}).on(EVENT_CLICK_DATA_API, SELECTOR_FORM_CHILD, function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Dropdown._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Dropdown;
|
||||
$__default["default"].fn[NAME] = Dropdown._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Dropdown;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Dropdown._jQueryInterface;
|
||||
};
|
||||
|
||||
return Dropdown;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=dropdown.js.map
|
||||
|
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
236
js/dist/modal.js
vendored
236
js/dist/modal.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap modal.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap modal.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -49,31 +49,24 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'modal';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.modal';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
||||
|
||||
var Default = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
@ -86,23 +79,26 @@
|
||||
var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY;
|
||||
var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
|
||||
var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
|
||||
var CLASS_NAME_BACKDROP = 'modal-backdrop';
|
||||
var CLASS_NAME_OPEN = 'modal-open';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_STATIC = 'modal-static';
|
||||
var SELECTOR_DIALOG = '.modal-dialog';
|
||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="modal"]';
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
|
||||
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
||||
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
||||
var Default = {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: true
|
||||
};
|
||||
var DefaultType = {
|
||||
backdrop: '(boolean|string)',
|
||||
keyboard: 'boolean',
|
||||
focus: 'boolean',
|
||||
show: 'boolean'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Modal = /*#__PURE__*/function () {
|
||||
@ -133,21 +129,21 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (this._isShown || showEvent.isDefaultPrevented()) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = true;
|
||||
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE)) {
|
||||
this._isTransitioning = true;
|
||||
}
|
||||
|
||||
this._checkScrollbar();
|
||||
|
||||
this._setScrollbar();
|
||||
@ -158,12 +154,12 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
||||
return _this.hide(event);
|
||||
});
|
||||
$__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default['default'](event.target).is(_this._element)) {
|
||||
$__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
|
||||
$__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
|
||||
if ($__default["default"](event.target).is(_this._element)) {
|
||||
_this._ignoreBackdropClick = true;
|
||||
}
|
||||
});
|
||||
@ -185,15 +181,15 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isShown = false;
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE);
|
||||
|
||||
if (transition) {
|
||||
this._isTransitioning = true;
|
||||
@ -203,14 +199,14 @@
|
||||
|
||||
this._setResizeEvent();
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'](this._element).removeClass(CLASS_NAME_SHOW);
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"](this._element).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, function (event) {
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, function (event) {
|
||||
return _this2._hideModal(event);
|
||||
}).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
@ -220,7 +216,7 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
[window, this._element, this._dialog].forEach(function (htmlElement) {
|
||||
return $__default['default'](htmlElement).off(EVENT_KEY);
|
||||
return $__default["default"](htmlElement).off(EVENT_KEY);
|
||||
});
|
||||
/**
|
||||
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
||||
@ -228,8 +224,8 @@
|
||||
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
||||
*/
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN);
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"](document).off(EVENT_FOCUSIN);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._config = null;
|
||||
this._element = null;
|
||||
this._dialog = null;
|
||||
@ -248,15 +244,15 @@
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, config);
|
||||
Util__default['default'].typeCheckConfig(NAME, config, DefaultType);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||
var _this3 = this;
|
||||
|
||||
var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default['default'](this._element).trigger(hideEventPrevented);
|
||||
var hideEventPrevented = $__default["default"].Event(EVENT_HIDE_PREVENTED);
|
||||
$__default["default"](this._element).trigger(hideEventPrevented);
|
||||
|
||||
if (hideEventPrevented.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -270,13 +266,13 @@
|
||||
|
||||
this._element.classList.add(CLASS_NAME_STATIC);
|
||||
|
||||
var modalTransitionDuration = Util__default['default'].getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._element).off(Util__default['default'].TRANSITION_END);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, function () {
|
||||
var modalTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._dialog);
|
||||
$__default["default"](this._element).off(Util__default["default"].TRANSITION_END);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, function () {
|
||||
_this3._element.classList.remove(CLASS_NAME_STATIC);
|
||||
|
||||
if (!isModalOverflowing) {
|
||||
$__default['default'](_this3._element).one(Util__default['default'].TRANSITION_END, function () {
|
||||
$__default["default"](_this3._element).one(Util__default["default"].TRANSITION_END, function () {
|
||||
_this3._element.style.overflowY = '';
|
||||
}).emulateTransitionEnd(_this3._element, modalTransitionDuration);
|
||||
}
|
||||
@ -288,7 +284,7 @@
|
||||
_proto._showElement = function _showElement(relatedTarget) {
|
||||
var _this4 = this;
|
||||
|
||||
var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE);
|
||||
var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE);
|
||||
var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
|
||||
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
@ -304,23 +300,23 @@
|
||||
|
||||
this._element.setAttribute('role', 'dialog');
|
||||
|
||||
if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
if ($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
|
||||
modalBody.scrollTop = 0;
|
||||
} else {
|
||||
this._element.scrollTop = 0;
|
||||
}
|
||||
|
||||
if (transition) {
|
||||
Util__default['default'].reflow(this._element);
|
||||
Util__default["default"].reflow(this._element);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).addClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](this._element).addClass(CLASS_NAME_SHOW);
|
||||
|
||||
if (this._config.focus) {
|
||||
this._enforceFocus();
|
||||
}
|
||||
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN, {
|
||||
relatedTarget: relatedTarget
|
||||
});
|
||||
|
||||
@ -330,12 +326,12 @@
|
||||
}
|
||||
|
||||
_this4._isTransitioning = false;
|
||||
$__default['default'](_this4._element).trigger(shownEvent);
|
||||
$__default["default"](_this4._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (transition) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._dialog);
|
||||
$__default['default'](this._dialog).one(Util__default['default'].TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._dialog);
|
||||
$__default["default"](this._dialog).one(Util__default["default"].TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
transitionComplete();
|
||||
}
|
||||
@ -344,9 +340,9 @@
|
||||
_proto._enforceFocus = function _enforceFocus() {
|
||||
var _this5 = this;
|
||||
|
||||
$__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
$__default["default"](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
|
||||
.on(EVENT_FOCUSIN, function (event) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) {
|
||||
if (document !== event.target && _this5._element !== event.target && $__default["default"](_this5._element).has(event.target).length === 0) {
|
||||
_this5._element.focus();
|
||||
}
|
||||
});
|
||||
@ -356,7 +352,7 @@
|
||||
var _this6 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
$__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
|
||||
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
|
||||
event.preventDefault();
|
||||
|
||||
@ -366,7 +362,7 @@
|
||||
}
|
||||
});
|
||||
} else if (!this._isShown) {
|
||||
$__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
$__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS);
|
||||
}
|
||||
};
|
||||
|
||||
@ -374,11 +370,11 @@
|
||||
var _this7 = this;
|
||||
|
||||
if (this._isShown) {
|
||||
$__default['default'](window).on(EVENT_RESIZE, function (event) {
|
||||
$__default["default"](window).on(EVENT_RESIZE, function (event) {
|
||||
return _this7.handleUpdate(event);
|
||||
});
|
||||
} else {
|
||||
$__default['default'](window).off(EVENT_RESIZE);
|
||||
$__default["default"](window).off(EVENT_RESIZE);
|
||||
}
|
||||
};
|
||||
|
||||
@ -396,19 +392,19 @@
|
||||
this._isTransitioning = false;
|
||||
|
||||
this._showBackdrop(function () {
|
||||
$__default['default'](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).removeClass(CLASS_NAME_OPEN);
|
||||
|
||||
_this8._resetAdjustments();
|
||||
|
||||
_this8._resetScrollbar();
|
||||
|
||||
$__default['default'](_this8._element).trigger(EVENT_HIDDEN);
|
||||
$__default["default"](_this8._element).trigger(EVENT_HIDDEN);
|
||||
});
|
||||
};
|
||||
|
||||
_proto._removeBackdrop = function _removeBackdrop() {
|
||||
if (this._backdrop) {
|
||||
$__default['default'](this._backdrop).remove();
|
||||
$__default["default"](this._backdrop).remove();
|
||||
this._backdrop = null;
|
||||
}
|
||||
};
|
||||
@ -416,7 +412,7 @@
|
||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||
var _this9 = this;
|
||||
|
||||
var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
||||
var animate = $__default["default"](this._element).hasClass(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
||||
|
||||
if (this._isShown && this._config.backdrop) {
|
||||
this._backdrop = document.createElement('div');
|
||||
@ -426,8 +422,8 @@
|
||||
this._backdrop.classList.add(animate);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).appendTo(document.body);
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) {
|
||||
$__default["default"](this._backdrop).appendTo(document.body);
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS, function (event) {
|
||||
if (_this9._ignoreBackdropClick) {
|
||||
_this9._ignoreBackdropClick = false;
|
||||
return;
|
||||
@ -445,10 +441,10 @@
|
||||
});
|
||||
|
||||
if (animate) {
|
||||
Util__default['default'].reflow(this._backdrop);
|
||||
Util__default["default"].reflow(this._backdrop);
|
||||
}
|
||||
|
||||
$__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW);
|
||||
|
||||
if (!callback) {
|
||||
return;
|
||||
@ -459,10 +455,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var backdropTransitionDuration = Util__default['default'].getTransitionDurationFromElement(this._backdrop);
|
||||
$__default['default'](this._backdrop).one(Util__default['default'].TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
var backdropTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._backdrop);
|
||||
$__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
|
||||
} else if (!this._isShown && this._backdrop) {
|
||||
$__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW);
|
||||
|
||||
var callbackRemove = function callbackRemove() {
|
||||
_this9._removeBackdrop();
|
||||
@ -472,10 +468,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE)) {
|
||||
var _backdropTransitionDuration = Util__default['default'].getTransitionDurationFromElement(this._backdrop);
|
||||
if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE)) {
|
||||
var _backdropTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._backdrop);
|
||||
|
||||
$__default['default'](this._backdrop).one(Util__default['default'].TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
$__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
|
||||
} else {
|
||||
callbackRemove();
|
||||
}
|
||||
@ -520,46 +516,46 @@
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
|
||||
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var actualPadding = element.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](element).css('padding-right');
|
||||
$__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](element).css('padding-right');
|
||||
$__default["default"](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
|
||||
}); // Adjust sticky content margin
|
||||
|
||||
$__default['default'](stickyContent).each(function (index, element) {
|
||||
$__default["default"](stickyContent).each(function (index, element) {
|
||||
var actualMargin = element.style.marginRight;
|
||||
var calculatedMargin = $__default['default'](element).css('margin-right');
|
||||
$__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
var calculatedMargin = $__default["default"](element).css('margin-right');
|
||||
$__default["default"](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
|
||||
}); // Adjust body padding
|
||||
|
||||
var actualPadding = document.body.style.paddingRight;
|
||||
var calculatedPadding = $__default['default'](document.body).css('padding-right');
|
||||
$__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
var calculatedPadding = $__default["default"](document.body).css('padding-right');
|
||||
$__default["default"](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
|
||||
}
|
||||
|
||||
$__default['default'](document.body).addClass(CLASS_NAME_OPEN);
|
||||
$__default["default"](document.body).addClass(CLASS_NAME_OPEN);
|
||||
};
|
||||
|
||||
_proto._resetScrollbar = function _resetScrollbar() {
|
||||
// Restore fixed content padding
|
||||
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
|
||||
$__default['default'](fixedContent).each(function (index, element) {
|
||||
var padding = $__default['default'](element).data('padding-right');
|
||||
$__default['default'](element).removeData('padding-right');
|
||||
$__default["default"](fixedContent).each(function (index, element) {
|
||||
var padding = $__default["default"](element).data('padding-right');
|
||||
$__default["default"](element).removeData('padding-right');
|
||||
element.style.paddingRight = padding ? padding : '';
|
||||
}); // Restore sticky content
|
||||
|
||||
var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
|
||||
$__default['default'](elements).each(function (index, element) {
|
||||
var margin = $__default['default'](element).data('margin-right');
|
||||
$__default["default"](elements).each(function (index, element) {
|
||||
var margin = $__default["default"](element).data('margin-right');
|
||||
|
||||
if (typeof margin !== 'undefined') {
|
||||
$__default['default'](element).css('margin-right', margin).removeData('margin-right');
|
||||
$__default["default"](element).css('margin-right', margin).removeData('margin-right');
|
||||
}
|
||||
}); // Restore body padding
|
||||
|
||||
var padding = $__default['default'](document.body).data('padding-right');
|
||||
$__default['default'](document.body).removeData('padding-right');
|
||||
var padding = $__default["default"](document.body).data('padding-right');
|
||||
$__default["default"](document.body).removeData('padding-right');
|
||||
document.body.style.paddingRight = padding ? padding : '';
|
||||
};
|
||||
|
||||
@ -576,13 +572,13 @@
|
||||
|
||||
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY);
|
||||
var data = $__default["default"](this).data(DATA_KEY);
|
||||
|
||||
var _config = _extends({}, Default, $__default['default'](this).data(), typeof config === 'object' && config ? config : {});
|
||||
var _config = _extends({}, Default, $__default["default"](this).data(), typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (!data) {
|
||||
data = new Modal(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY, data);
|
||||
$__default["default"](this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -612,58 +608,54 @@
|
||||
return Modal;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
var _this11 = this;
|
||||
|
||||
var target;
|
||||
var selector = Util__default['default'].getSelectorFromElement(this);
|
||||
var selector = Util__default["default"].getSelectorFromElement(this);
|
||||
|
||||
if (selector) {
|
||||
target = document.querySelector(selector);
|
||||
}
|
||||
|
||||
var config = $__default['default'](target).data(DATA_KEY) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
|
||||
var config = $__default["default"](target).data(DATA_KEY) ? 'toggle' : _extends({}, $__default["default"](target).data(), $__default["default"](this).data());
|
||||
|
||||
if (this.tagName === 'A' || this.tagName === 'AREA') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var $target = $__default['default'](target).one(EVENT_SHOW, function (showEvent) {
|
||||
var $target = $__default["default"](target).one(EVENT_SHOW, function (showEvent) {
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
// Only register focus restorer if modal will actually get shown
|
||||
return;
|
||||
}
|
||||
|
||||
$target.one(EVENT_HIDDEN, function () {
|
||||
if ($__default['default'](_this11).is(':visible')) {
|
||||
if ($__default["default"](_this11).is(':visible')) {
|
||||
_this11.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Modal._jQueryInterface.call($__default['default'](target), config, this);
|
||||
Modal._jQueryInterface.call($__default["default"](target), config, this);
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Modal._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Modal;
|
||||
$__default["default"].fn[NAME] = Modal._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Modal;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Modal._jQueryInterface;
|
||||
};
|
||||
|
||||
return Modal;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=modal.js.map
|
||||
|
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
68
js/dist/popover.js
vendored
68
js/dist/popover.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap popover.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap popover.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./tooltip.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './tooltip'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Popover = factory(global.jQuery, global.Tooltip));
|
||||
}(this, (function ($, Tooltip) { 'use strict';
|
||||
})(this, (function ($, Tooltip) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -51,38 +51,46 @@
|
||||
function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'popover';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.popover';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_PREFIX = 'bs-popover';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
|
||||
var Default = _extends({}, Tooltip__default['default'].Default, {
|
||||
var Default = _extends({}, Tooltip__default["default"].Default, {
|
||||
placement: 'right',
|
||||
trigger: 'click',
|
||||
content: '',
|
||||
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
||||
});
|
||||
|
||||
var DefaultType = _extends({}, Tooltip__default['default'].DefaultType, {
|
||||
var DefaultType = _extends({}, Tooltip__default["default"].DefaultType, {
|
||||
content: '(string|element|function)'
|
||||
});
|
||||
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var SELECTOR_TITLE = '.popover-header';
|
||||
var SELECTOR_CONTENT = '.popover-body';
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY,
|
||||
HIDDEN: "hidden" + EVENT_KEY,
|
||||
@ -96,9 +104,7 @@
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Popover = /*#__PURE__*/function (_Tooltip) {
|
||||
@ -116,16 +122,16 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
var $tip = $__default["default"](this.getTipElement()); // We use append for html objects to maintain js events
|
||||
|
||||
this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
|
||||
|
||||
@ -145,7 +151,7 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
|
||||
if (tabClass !== null && tabClass.length > 0) {
|
||||
@ -156,7 +162,7 @@
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY);
|
||||
var data = $__default["default"](this).data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' ? config : null;
|
||||
|
||||
@ -166,7 +172,7 @@
|
||||
|
||||
if (!data) {
|
||||
data = new Popover(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY, data);
|
||||
$__default["default"](this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -181,8 +187,8 @@
|
||||
|
||||
_createClass(Popover, null, [{
|
||||
key: "VERSION",
|
||||
// Getters
|
||||
get: function get() {
|
||||
get: // Getters
|
||||
function get() {
|
||||
return VERSION;
|
||||
}
|
||||
}, {
|
||||
@ -218,23 +224,21 @@
|
||||
}]);
|
||||
|
||||
return Popover;
|
||||
}(Tooltip__default['default']);
|
||||
}(Tooltip__default["default"]);
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME] = Popover._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Popover;
|
||||
$__default["default"].fn[NAME] = Popover._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Popover;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Popover._jQueryInterface;
|
||||
};
|
||||
|
||||
return Popover;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=popover.js.map
|
||||
|
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
92
js/dist/scrollspy.js
vendored
92
js/dist/scrollspy.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap scrollspy.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap scrollspy.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -49,17 +49,30 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'scrollspy';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.scrollspy';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY;
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var Default = {
|
||||
offset: 10,
|
||||
method: 'auto',
|
||||
@ -70,25 +83,8 @@
|
||||
method: 'string',
|
||||
target: '(string|element)'
|
||||
};
|
||||
var EVENT_ACTIVATE = "activate" + EVENT_KEY;
|
||||
var EVENT_SCROLL = "scroll" + EVENT_KEY;
|
||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||
var SELECTOR_LIST_ITEMS = '.list-group-item';
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var METHOD_OFFSET = 'offset';
|
||||
var METHOD_POSITION = 'position';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var ScrollSpy = /*#__PURE__*/function () {
|
||||
@ -103,7 +99,7 @@
|
||||
this._targets = [];
|
||||
this._activeTarget = null;
|
||||
this._scrollHeight = 0;
|
||||
$__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
$__default["default"](this._scrollElement).on(EVENT_SCROLL, function (event) {
|
||||
return _this._process(event);
|
||||
});
|
||||
this.refresh();
|
||||
@ -127,7 +123,7 @@
|
||||
var targets = [].slice.call(document.querySelectorAll(this._selector));
|
||||
targets.map(function (element) {
|
||||
var target;
|
||||
var targetSelector = Util__default['default'].getSelectorFromElement(element);
|
||||
var targetSelector = Util__default["default"].getSelectorFromElement(element);
|
||||
|
||||
if (targetSelector) {
|
||||
target = document.querySelector(targetSelector);
|
||||
@ -138,7 +134,7 @@
|
||||
|
||||
if (targetBCR.width || targetBCR.height) {
|
||||
// TODO (fat): remove sketch reliance on jQuery position/offset
|
||||
return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
return [$__default["default"](target)[offsetMethod]().top + offsetBase, targetSelector];
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,8 +151,8 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default['default'](this._scrollElement).off(EVENT_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
$__default["default"](this._scrollElement).off(EVENT_KEY);
|
||||
this._element = null;
|
||||
this._scrollElement = null;
|
||||
this._config = null;
|
||||
@ -171,18 +167,18 @@
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, typeof config === 'object' && config ? config : {});
|
||||
|
||||
if (typeof config.target !== 'string' && Util__default['default'].isElement(config.target)) {
|
||||
var id = $__default['default'](config.target).attr('id');
|
||||
if (typeof config.target !== 'string' && Util__default["default"].isElement(config.target)) {
|
||||
var id = $__default["default"](config.target).attr('id');
|
||||
|
||||
if (!id) {
|
||||
id = Util__default['default'].getUID(NAME);
|
||||
$__default['default'](config.target).attr('id', id);
|
||||
id = Util__default["default"].getUID(NAME);
|
||||
$__default["default"](config.target).attr('id', id);
|
||||
}
|
||||
|
||||
config.target = "#" + id;
|
||||
}
|
||||
|
||||
Util__default['default'].typeCheckConfig(NAME, config, DefaultType);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
@ -245,7 +241,7 @@
|
||||
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
|
||||
});
|
||||
|
||||
var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
var $link = $__default["default"]([].slice.call(document.querySelectorAll(queries.join(','))));
|
||||
|
||||
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
|
||||
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE);
|
||||
@ -260,7 +256,7 @@
|
||||
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
$__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
$__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE, {
|
||||
relatedTarget: target
|
||||
});
|
||||
};
|
||||
@ -276,13 +272,13 @@
|
||||
|
||||
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var data = $__default['default'](this).data(DATA_KEY);
|
||||
var data = $__default["default"](this).data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
|
||||
if (!data) {
|
||||
data = new ScrollSpy(this, _config);
|
||||
$__default['default'](this).data(DATA_KEY, data);
|
||||
$__default["default"](this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
@ -310,37 +306,33 @@
|
||||
return ScrollSpy;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
|
||||
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
|
||||
var scrollSpysLength = scrollSpys.length;
|
||||
|
||||
for (var i = scrollSpysLength; i--;) {
|
||||
var $spy = $__default['default'](scrollSpys[i]);
|
||||
var $spy = $__default["default"](scrollSpys[i]);
|
||||
|
||||
ScrollSpy._jQueryInterface.call($spy, $spy.data());
|
||||
}
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = ScrollSpy._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = ScrollSpy;
|
||||
$__default["default"].fn[NAME] = ScrollSpy._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = ScrollSpy;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return ScrollSpy._jQueryInterface;
|
||||
};
|
||||
|
||||
return ScrollSpy;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=scrollspy.js.map
|
||||
|
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
102
js/dist/tab.js
vendored
102
js/dist/tab.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap tab.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap tab.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -31,27 +31,25 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'tab';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.tab';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var DATA_API_KEY = '.data-api';
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
|
||||
var CLASS_NAME_ACTIVE = 'active';
|
||||
var CLASS_NAME_DISABLED = 'disabled';
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||
var SELECTOR_DROPDOWN = '.dropdown';
|
||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||
var SELECTOR_ACTIVE = '.active';
|
||||
@ -60,9 +58,7 @@
|
||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||
var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tab = /*#__PURE__*/function () {
|
||||
@ -77,33 +73,33 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE) || $__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target;
|
||||
var previous;
|
||||
var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0];
|
||||
var selector = Util__default['default'].getSelectorFromElement(this._element);
|
||||
var listElement = $__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0];
|
||||
var selector = Util__default["default"].getSelectorFromElement(this._element);
|
||||
|
||||
if (listElement) {
|
||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
|
||||
previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector));
|
||||
previous = $__default["default"].makeArray($__default["default"](listElement).find(itemSelector));
|
||||
previous = previous[previous.length - 1];
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE, {
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE, {
|
||||
relatedTarget: this._element
|
||||
});
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW, {
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
|
||||
if (previous) {
|
||||
$__default['default'](previous).trigger(hideEvent);
|
||||
$__default["default"](previous).trigger(hideEvent);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -116,14 +112,14 @@
|
||||
this._activate(this._element, listElement);
|
||||
|
||||
var complete = function complete() {
|
||||
var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN, {
|
||||
var hiddenEvent = $__default["default"].Event(EVENT_HIDDEN, {
|
||||
relatedTarget: _this._element
|
||||
});
|
||||
var shownEvent = $__default['default'].Event(EVENT_SHOWN, {
|
||||
var shownEvent = $__default["default"].Event(EVENT_SHOWN, {
|
||||
relatedTarget: previous
|
||||
});
|
||||
$__default['default'](previous).trigger(hiddenEvent);
|
||||
$__default['default'](_this._element).trigger(shownEvent);
|
||||
$__default["default"](previous).trigger(hiddenEvent);
|
||||
$__default["default"](_this._element).trigger(shownEvent);
|
||||
};
|
||||
|
||||
if (target) {
|
||||
@ -134,7 +130,7 @@
|
||||
};
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
} // Private
|
||||
;
|
||||
@ -142,17 +138,17 @@
|
||||
_proto._activate = function _activate(element, container, callback) {
|
||||
var _this2 = this;
|
||||
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE);
|
||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default["default"](container).find(SELECTOR_ACTIVE_UL) : $__default["default"](container).children(SELECTOR_ACTIVE);
|
||||
var active = activeElements[0];
|
||||
var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE);
|
||||
var isTransitioning = callback && active && $__default["default"](active).hasClass(CLASS_NAME_FADE);
|
||||
|
||||
var complete = function complete() {
|
||||
return _this2._transitionComplete(element, active, callback);
|
||||
};
|
||||
|
||||
if (active && isTransitioning) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(active);
|
||||
$__default['default'](active).removeClass(CLASS_NAME_SHOW).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(active);
|
||||
$__default["default"](active).removeClass(CLASS_NAME_SHOW).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -160,11 +156,11 @@
|
||||
|
||||
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
||||
if (active) {
|
||||
$__default['default'](active).removeClass(CLASS_NAME_ACTIVE);
|
||||
var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
$__default["default"](active).removeClass(CLASS_NAME_ACTIVE);
|
||||
var dropdownChild = $__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
|
||||
|
||||
if (dropdownChild) {
|
||||
$__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
if (active.getAttribute('role') === 'tab') {
|
||||
@ -172,24 +168,30 @@
|
||||
}
|
||||
}
|
||||
|
||||
$__default['default'](element).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](element).addClass(CLASS_NAME_ACTIVE);
|
||||
|
||||
if (element.getAttribute('role') === 'tab') {
|
||||
element.setAttribute('aria-selected', true);
|
||||
}
|
||||
|
||||
Util__default['default'].reflow(element);
|
||||
Util__default["default"].reflow(element);
|
||||
|
||||
if (element.classList.contains(CLASS_NAME_FADE)) {
|
||||
element.classList.add(CLASS_NAME_SHOW);
|
||||
}
|
||||
|
||||
if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN)[0];
|
||||
var parent = element.parentNode;
|
||||
|
||||
if (parent && parent.nodeName === 'LI') {
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
|
||||
if (parent && $__default["default"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
var dropdownElement = $__default["default"](element).closest(SELECTOR_DROPDOWN)[0];
|
||||
|
||||
if (dropdownElement) {
|
||||
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE));
|
||||
$__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE);
|
||||
$__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE);
|
||||
}
|
||||
|
||||
element.setAttribute('aria-expanded', true);
|
||||
@ -203,7 +205,7 @@
|
||||
|
||||
Tab._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $this = $__default['default'](this);
|
||||
var $this = $__default["default"](this);
|
||||
var data = $this.data(DATA_KEY);
|
||||
|
||||
if (!data) {
|
||||
@ -231,32 +233,28 @@
|
||||
return Tab;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Data Api implementation
|
||||
* ------------------------------------------------------------------------
|
||||
* Data API implementation
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
$__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
Tab._jQueryInterface.call($__default['default'](this), 'show');
|
||||
Tab._jQueryInterface.call($__default["default"](this), 'show');
|
||||
});
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$__default['default'].fn[NAME] = Tab._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Tab;
|
||||
$__default["default"].fn[NAME] = Tab._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Tab;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tab._jQueryInterface;
|
||||
};
|
||||
|
||||
return Tab;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=tab.js.map
|
||||
|
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
80
js/dist/toast.js
vendored
80
js/dist/toast.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap toast.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap toast.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Toast = factory(global.jQuery, global.Util));
|
||||
}(this, (function ($, Util) { 'use strict';
|
||||
})(this, (function ($, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -49,40 +49,36 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'toast';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.toast';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_HIDE = 'hide';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_SHOWING = 'showing';
|
||||
var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY;
|
||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||
var EVENT_HIDDEN = "hidden" + EVENT_KEY;
|
||||
var EVENT_SHOW = "show" + EVENT_KEY;
|
||||
var EVENT_SHOWN = "shown" + EVENT_KEY;
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_HIDE = 'hide';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var CLASS_NAME_SHOWING = 'showing';
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]';
|
||||
var Default = {
|
||||
animation: true,
|
||||
autohide: true,
|
||||
delay: 500
|
||||
};
|
||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]';
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
autohide: 'boolean',
|
||||
delay: 'number'
|
||||
};
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Toast = /*#__PURE__*/function () {
|
||||
@ -101,8 +97,8 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
var showEvent = $__default['default'].Event(EVENT_SHOW);
|
||||
$__default['default'](this._element).trigger(showEvent);
|
||||
var showEvent = $__default["default"].Event(EVENT_SHOW);
|
||||
$__default["default"](this._element).trigger(showEvent);
|
||||
|
||||
if (showEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -119,7 +115,7 @@
|
||||
|
||||
_this._element.classList.add(CLASS_NAME_SHOW);
|
||||
|
||||
$__default['default'](_this._element).trigger(EVENT_SHOWN);
|
||||
$__default["default"](_this._element).trigger(EVENT_SHOWN);
|
||||
|
||||
if (_this._config.autohide) {
|
||||
_this._timeout = setTimeout(function () {
|
||||
@ -130,13 +126,13 @@
|
||||
|
||||
this._element.classList.remove(CLASS_NAME_HIDE);
|
||||
|
||||
Util__default['default'].reflow(this._element);
|
||||
Util__default["default"].reflow(this._element);
|
||||
|
||||
this._element.classList.add(CLASS_NAME_SHOWING);
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -147,8 +143,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var hideEvent = $__default['default'].Event(EVENT_HIDE);
|
||||
$__default['default'](this._element).trigger(hideEvent);
|
||||
var hideEvent = $__default["default"].Event(EVENT_HIDE);
|
||||
$__default["default"](this._element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
@ -164,23 +160,23 @@
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
}
|
||||
|
||||
$__default['default'](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default['default'].removeData(this._element, DATA_KEY);
|
||||
$__default["default"](this._element).off(EVENT_CLICK_DISMISS);
|
||||
$__default["default"].removeData(this._element, DATA_KEY);
|
||||
this._element = null;
|
||||
this._config = null;
|
||||
} // Private
|
||||
;
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
config = _extends({}, Default, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util__default['default'].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
config = _extends({}, Default, $__default["default"](this._element).data(), typeof config === 'object' && config ? config : {});
|
||||
Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
return config;
|
||||
};
|
||||
|
||||
_proto._setListeners = function _setListeners() {
|
||||
var _this2 = this;
|
||||
|
||||
$__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
|
||||
$__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function () {
|
||||
return _this2.hide();
|
||||
});
|
||||
};
|
||||
@ -191,14 +187,14 @@
|
||||
var complete = function complete() {
|
||||
_this3._element.classList.add(CLASS_NAME_HIDE);
|
||||
|
||||
$__default['default'](_this3._element).trigger(EVENT_HIDDEN);
|
||||
$__default["default"](_this3._element).trigger(EVENT_HIDDEN);
|
||||
};
|
||||
|
||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||
|
||||
if (this._config.animation) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this._element);
|
||||
$__default['default'](this._element).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
|
||||
$__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -212,7 +208,7 @@
|
||||
|
||||
Toast._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
@ -252,21 +248,19 @@
|
||||
return Toast;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME] = Toast._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Toast;
|
||||
$__default["default"].fn[NAME] = Toast._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Toast;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Toast._jQueryInterface;
|
||||
};
|
||||
|
||||
return Toast;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=toast.js.map
|
||||
|
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
217
js/dist/tooltip.js
vendored
217
js/dist/tooltip.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap tooltip.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap tooltip.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.jQuery, global.Popper, global.Util));
|
||||
}(this, (function ($, Popper, Util) { 'use strict';
|
||||
})(this, (function ($, Popper, Util) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tools/sanitizer.js
|
||||
* Bootstrap (v4.6.1): tools/sanitizer.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -93,14 +93,14 @@
|
||||
/**
|
||||
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
|
||||
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
|
||||
/**
|
||||
* A pattern that matches safe data URLs. Only matches image, video and audio types.
|
||||
*
|
||||
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
|
||||
* Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
|
||||
*/
|
||||
|
||||
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
|
||||
@ -110,7 +110,7 @@
|
||||
|
||||
if (allowedAttributeList.indexOf(attrName) !== -1) {
|
||||
if (uriAttrs.indexOf(attrName) !== -1) {
|
||||
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;
|
||||
@ -121,7 +121,7 @@
|
||||
}); // Check if a regular expression validates the attribute.
|
||||
|
||||
for (var i = 0, len = regExp.length; i < len; i++) {
|
||||
if (attrName.match(regExp[i])) {
|
||||
if (regExp[i].test(attrName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -152,7 +152,8 @@
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var attributeList = [].slice.call(el.attributes);
|
||||
var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
|
||||
|
||||
var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
|
||||
attributeList.forEach(function (attr) {
|
||||
if (!allowedAttribute(attr, whitelistedAttributes)) {
|
||||
@ -171,38 +172,27 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Constants
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var NAME = 'tooltip';
|
||||
var VERSION = '4.6.0';
|
||||
var VERSION = '4.6.1';
|
||||
var DATA_KEY = 'bs.tooltip';
|
||||
var EVENT_KEY = "." + DATA_KEY;
|
||||
var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
|
||||
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
|
||||
var CLASS_PREFIX = 'bs-tooltip';
|
||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||
var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
var AttachmentMap = {
|
||||
AUTO: 'auto',
|
||||
TOP: 'top',
|
||||
@ -229,8 +219,25 @@
|
||||
whiteList: DefaultWhitelist,
|
||||
popperConfig: null
|
||||
};
|
||||
var HOVER_STATE_SHOW = 'show';
|
||||
var HOVER_STATE_OUT = 'out';
|
||||
var DefaultType = {
|
||||
animation: 'boolean',
|
||||
template: 'string',
|
||||
title: '(string|element|function)',
|
||||
trigger: 'string',
|
||||
delay: '(number|object)',
|
||||
html: 'boolean',
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: '(number|string|function)',
|
||||
container: '(string|element|boolean)',
|
||||
fallbackPlacement: '(string|array)',
|
||||
boundary: '(string|element)',
|
||||
customClass: '(string|function)',
|
||||
sanitize: 'boolean',
|
||||
sanitizeFn: '(null|function)',
|
||||
whiteList: 'object',
|
||||
popperConfig: '(null|object)'
|
||||
};
|
||||
var Event = {
|
||||
HIDE: "hide" + EVENT_KEY,
|
||||
HIDDEN: "hidden" + EVENT_KEY,
|
||||
@ -243,25 +250,15 @@
|
||||
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
||||
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
||||
};
|
||||
var CLASS_NAME_FADE = 'fade';
|
||||
var CLASS_NAME_SHOW = 'show';
|
||||
var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
||||
var SELECTOR_ARROW = '.arrow';
|
||||
var TRIGGER_HOVER = 'hover';
|
||||
var TRIGGER_FOCUS = 'focus';
|
||||
var TRIGGER_CLICK = 'click';
|
||||
var TRIGGER_MANUAL = 'manual';
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Class Definition
|
||||
* ------------------------------------------------------------------------
|
||||
* Class definition
|
||||
*/
|
||||
|
||||
var Tooltip = /*#__PURE__*/function () {
|
||||
function Tooltip(element, config) {
|
||||
if (typeof Popper__default['default'] === 'undefined') {
|
||||
if (typeof Popper__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
||||
} // private
|
||||
} // Private
|
||||
|
||||
|
||||
this._isEnabled = true;
|
||||
@ -300,11 +297,11 @@
|
||||
|
||||
if (event) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
var context = $__default['default'](event.currentTarget).data(dataKey);
|
||||
var context = $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
context._activeTrigger.click = !context._activeTrigger.click;
|
||||
@ -315,7 +312,7 @@
|
||||
context._leave(null, context);
|
||||
}
|
||||
} else {
|
||||
if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
|
||||
if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
|
||||
this._leave(null, this);
|
||||
|
||||
return;
|
||||
@ -327,12 +324,12 @@
|
||||
|
||||
_proto.dispose = function dispose() {
|
||||
clearTimeout(this._timeout);
|
||||
$__default['default'].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default['default'](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"].removeData(this.element, this.constructor.DATA_KEY);
|
||||
$__default["default"](this.element).off(this.constructor.EVENT_KEY);
|
||||
$__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.tip) {
|
||||
$__default['default'](this.tip).remove();
|
||||
$__default["default"](this.tip).remove();
|
||||
}
|
||||
|
||||
this._isEnabled = null;
|
||||
@ -353,29 +350,29 @@
|
||||
_proto.show = function show() {
|
||||
var _this = this;
|
||||
|
||||
if ($__default['default'](this.element).css('display') === 'none') {
|
||||
if ($__default["default"](this.element).css('display') === 'none') {
|
||||
throw new Error('Please use show on visible elements');
|
||||
}
|
||||
|
||||
var showEvent = $__default['default'].Event(this.constructor.Event.SHOW);
|
||||
var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
|
||||
|
||||
if (this.isWithContent() && this._isEnabled) {
|
||||
$__default['default'](this.element).trigger(showEvent);
|
||||
var shadowRoot = Util__default['default'].findShadowRoot(this.element);
|
||||
var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
$__default["default"](this.element).trigger(showEvent);
|
||||
var shadowRoot = Util__default["default"].findShadowRoot(this.element);
|
||||
var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
|
||||
|
||||
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
||||
return;
|
||||
}
|
||||
|
||||
var tip = this.getTipElement();
|
||||
var tipId = Util__default['default'].getUID(this.constructor.NAME);
|
||||
var tipId = Util__default["default"].getUID(this.constructor.NAME);
|
||||
tip.setAttribute('id', tipId);
|
||||
this.element.setAttribute('aria-describedby', tipId);
|
||||
this.setContent();
|
||||
|
||||
if (this.config.animation) {
|
||||
$__default['default'](tip).addClass(CLASS_NAME_FADE);
|
||||
$__default["default"](tip).addClass(CLASS_NAME_FADE);
|
||||
}
|
||||
|
||||
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
||||
@ -386,22 +383,22 @@
|
||||
|
||||
var container = this._getContainer();
|
||||
|
||||
$__default['default'](tip).data(this.constructor.DATA_KEY, this);
|
||||
$__default["default"](tip).data(this.constructor.DATA_KEY, this);
|
||||
|
||||
if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default['default'](tip).appendTo(container);
|
||||
if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
|
||||
$__default["default"](tip).appendTo(container);
|
||||
}
|
||||
|
||||
$__default['default'](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default['default'](tip).addClass(CLASS_NAME_SHOW);
|
||||
$__default['default'](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
$__default["default"](this.element).trigger(this.constructor.Event.INSERTED);
|
||||
this._popper = new Popper__default["default"](this.element, tip, this._getPopperConfig(attachment));
|
||||
$__default["default"](tip).addClass(CLASS_NAME_SHOW);
|
||||
$__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
var complete = function complete() {
|
||||
@ -411,16 +408,16 @@
|
||||
|
||||
var prevHoverState = _this._hoverState;
|
||||
_this._hoverState = null;
|
||||
$__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||
|
||||
if (prevHoverState === HOVER_STATE_OUT) {
|
||||
_this._leave(null, _this);
|
||||
}
|
||||
};
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE)) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(this.tip);
|
||||
$__default['default'](this.tip).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this.tip);
|
||||
$__default["default"](this.tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -431,7 +428,7 @@
|
||||
var _this2 = this;
|
||||
|
||||
var tip = this.getTipElement();
|
||||
var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE);
|
||||
var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
|
||||
|
||||
var complete = function complete() {
|
||||
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
|
||||
@ -442,7 +439,7 @@
|
||||
|
||||
_this2.element.removeAttribute('aria-describedby');
|
||||
|
||||
$__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||
|
||||
if (_this2._popper !== null) {
|
||||
_this2._popper.destroy();
|
||||
@ -453,26 +450,26 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).trigger(hideEvent);
|
||||
$__default["default"](this.element).trigger(hideEvent);
|
||||
|
||||
if (hideEvent.isDefaultPrevented()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
|
||||
// empty mouseover listeners we added for iOS support
|
||||
|
||||
if ('ontouchstart' in document.documentElement) {
|
||||
$__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
|
||||
$__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
|
||||
}
|
||||
|
||||
this._activeTrigger[TRIGGER_CLICK] = false;
|
||||
this._activeTrigger[TRIGGER_FOCUS] = false;
|
||||
this._activeTrigger[TRIGGER_HOVER] = false;
|
||||
|
||||
if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE)) {
|
||||
var transitionDuration = Util__default['default'].getTransitionDurationFromElement(tip);
|
||||
$__default['default'](tip).one(Util__default['default'].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
|
||||
var transitionDuration = Util__default["default"].getTransitionDurationFromElement(tip);
|
||||
$__default["default"](tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
@ -492,29 +489,29 @@
|
||||
};
|
||||
|
||||
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
||||
$__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
||||
};
|
||||
|
||||
_proto.getTipElement = function getTipElement() {
|
||||
this.tip = this.tip || $__default['default'](this.config.template)[0];
|
||||
this.tip = this.tip || $__default["default"](this.config.template)[0];
|
||||
return this.tip;
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var tip = this.getTipElement();
|
||||
this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
|
||||
this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
|
||||
};
|
||||
|
||||
_proto.setElementContent = function setElementContent($element, content) {
|
||||
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
||||
// Content is a DOM node or a jQuery
|
||||
if (this.config.html) {
|
||||
if (!$__default['default'](content).parent().is($element)) {
|
||||
if (!$__default["default"](content).parent().is($element)) {
|
||||
$element.empty().append(content);
|
||||
}
|
||||
} else {
|
||||
$element.text($__default['default'](content).text());
|
||||
$element.text($__default["default"](content).text());
|
||||
}
|
||||
|
||||
return;
|
||||
@ -578,7 +575,7 @@
|
||||
|
||||
if (typeof this.config.offset === 'function') {
|
||||
offset.fn = function (data) {
|
||||
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
|
||||
data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
|
||||
return data;
|
||||
};
|
||||
} else {
|
||||
@ -593,11 +590,11 @@
|
||||
return document.body;
|
||||
}
|
||||
|
||||
if (Util__default['default'].isElement(this.config.container)) {
|
||||
return $__default['default'](this.config.container);
|
||||
if (Util__default["default"].isElement(this.config.container)) {
|
||||
return $__default["default"](this.config.container);
|
||||
}
|
||||
|
||||
return $__default['default'](document).find(this.config.container);
|
||||
return $__default["default"](document).find(this.config.container);
|
||||
};
|
||||
|
||||
_proto._getAttachment = function _getAttachment(placement) {
|
||||
@ -610,13 +607,13 @@
|
||||
var triggers = this.config.trigger.split(' ');
|
||||
triggers.forEach(function (trigger) {
|
||||
if (trigger === 'click') {
|
||||
$__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||
return _this5.toggle(event);
|
||||
});
|
||||
} else if (trigger !== TRIGGER_MANUAL) {
|
||||
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||
$__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
$__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
|
||||
return _this5._enter(event);
|
||||
}).on(eventOut, _this5.config.selector, function (event) {
|
||||
return _this5._leave(event);
|
||||
@ -630,7 +627,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
$__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
$__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
|
||||
|
||||
if (this.config.selector) {
|
||||
this.config = _extends({}, this.config, {
|
||||
@ -653,18 +650,18 @@
|
||||
|
||||
_proto._enter = function _enter(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
||||
}
|
||||
|
||||
if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
|
||||
context._hoverState = HOVER_STATE_SHOW;
|
||||
return;
|
||||
}
|
||||
@ -686,11 +683,11 @@
|
||||
|
||||
_proto._leave = function _leave(event, context) {
|
||||
var dataKey = this.constructor.DATA_KEY;
|
||||
context = context || $__default['default'](event.currentTarget).data(dataKey);
|
||||
context = context || $__default["default"](event.currentTarget).data(dataKey);
|
||||
|
||||
if (!context) {
|
||||
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
||||
$__default['default'](event.currentTarget).data(dataKey, context);
|
||||
$__default["default"](event.currentTarget).data(dataKey, context);
|
||||
}
|
||||
|
||||
if (event) {
|
||||
@ -727,7 +724,7 @@
|
||||
};
|
||||
|
||||
_proto._getConfig = function _getConfig(config) {
|
||||
var dataAttributes = $__default['default'](this.element).data();
|
||||
var dataAttributes = $__default["default"](this.element).data();
|
||||
Object.keys(dataAttributes).forEach(function (dataAttr) {
|
||||
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
|
||||
delete dataAttributes[dataAttr];
|
||||
@ -750,7 +747,7 @@
|
||||
config.content = config.content.toString();
|
||||
}
|
||||
|
||||
Util__default['default'].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||
|
||||
if (config.sanitize) {
|
||||
config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
|
||||
@ -774,7 +771,7 @@
|
||||
};
|
||||
|
||||
_proto._cleanTipClass = function _cleanTipClass() {
|
||||
var $tip = $__default['default'](this.getTipElement());
|
||||
var $tip = $__default["default"](this.getTipElement());
|
||||
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
||||
|
||||
if (tabClass !== null && tabClass.length) {
|
||||
@ -798,7 +795,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$__default['default'](tip).removeClass(CLASS_NAME_FADE);
|
||||
$__default["default"](tip).removeClass(CLASS_NAME_FADE);
|
||||
this.config.animation = false;
|
||||
this.hide();
|
||||
this.show();
|
||||
@ -808,7 +805,7 @@
|
||||
|
||||
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
||||
return this.each(function () {
|
||||
var $element = $__default['default'](this);
|
||||
var $element = $__default["default"](this);
|
||||
var data = $element.data(DATA_KEY);
|
||||
|
||||
var _config = typeof config === 'object' && config;
|
||||
@ -872,21 +869,19 @@
|
||||
return Tooltip;
|
||||
}();
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* jQuery
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$__default['default'].fn[NAME] = Tooltip._jQueryInterface;
|
||||
$__default['default'].fn[NAME].Constructor = Tooltip;
|
||||
$__default["default"].fn[NAME] = Tooltip._jQueryInterface;
|
||||
$__default["default"].fn[NAME].Constructor = Tooltip;
|
||||
|
||||
$__default['default'].fn[NAME].noConflict = function () {
|
||||
$__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
$__default["default"].fn[NAME].noConflict = function () {
|
||||
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
|
||||
return Tooltip._jQueryInterface;
|
||||
};
|
||||
|
||||
return Tooltip;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=tooltip.js.map
|
||||
|
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
33
js/dist/util.js
vendored
33
js/dist/util.js
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap util.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap util.js v4.6.1 (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)
|
||||
*/
|
||||
@ -7,7 +7,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
|
||||
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
|
||||
}(this, (function ($) { 'use strict';
|
||||
})(this, (function ($) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
@ -15,14 +15,12 @@
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): util.js
|
||||
* Bootstrap (v4.6.1): util.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
* Private TransitionEnd Helpers
|
||||
* ------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var TRANSITION_END = 'transitionend';
|
||||
@ -42,7 +40,7 @@
|
||||
bindType: TRANSITION_END,
|
||||
delegateType: TRANSITION_END,
|
||||
handle: function handle(event) {
|
||||
if ($__default['default'](event.target).is(this)) {
|
||||
if ($__default["default"](event.target).is(this)) {
|
||||
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
|
||||
}
|
||||
|
||||
@ -55,7 +53,7 @@
|
||||
var _this = this;
|
||||
|
||||
var called = false;
|
||||
$__default['default'](this).one(Util.TRANSITION_END, function () {
|
||||
$__default["default"](this).one(Util.TRANSITION_END, function () {
|
||||
called = true;
|
||||
});
|
||||
setTimeout(function () {
|
||||
@ -67,13 +65,11 @@
|
||||
}
|
||||
|
||||
function setTransitionEndSupport() {
|
||||
$__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
$__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
|
||||
$__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
|
||||
}
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util Api
|
||||
* --------------------------------------------------------------------------
|
||||
* Public Util API
|
||||
*/
|
||||
|
||||
|
||||
@ -81,6 +77,7 @@
|
||||
TRANSITION_END: 'bsTransitionEnd',
|
||||
getUID: function getUID(prefix) {
|
||||
do {
|
||||
// eslint-disable-next-line no-bitwise
|
||||
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
|
||||
} while (document.getElementById(prefix));
|
||||
|
||||
@ -106,8 +103,8 @@
|
||||
} // Get transition-duration of the element
|
||||
|
||||
|
||||
var transitionDuration = $__default['default'](element).css('transition-duration');
|
||||
var transitionDelay = $__default['default'](element).css('transition-delay');
|
||||
var transitionDuration = $__default["default"](element).css('transition-duration');
|
||||
var transitionDelay = $__default["default"](element).css('transition-delay');
|
||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||
|
||||
@ -124,7 +121,7 @@
|
||||
return element.offsetHeight;
|
||||
},
|
||||
triggerTransitionEnd: function triggerTransitionEnd(element) {
|
||||
$__default['default'](element).trigger(TRANSITION_END);
|
||||
$__default["default"](element).trigger(TRANSITION_END);
|
||||
},
|
||||
supportsTransitionEnd: function supportsTransitionEnd() {
|
||||
return Boolean(TRANSITION_END);
|
||||
@ -168,11 +165,11 @@
|
||||
return Util.findShadowRoot(element.parentNode);
|
||||
},
|
||||
jQueryDetection: function jQueryDetection() {
|
||||
if (typeof $__default['default'] === 'undefined') {
|
||||
if (typeof $__default["default"] === 'undefined') {
|
||||
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
|
||||
}
|
||||
|
||||
var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
|
||||
var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
|
||||
var minMajor = 1;
|
||||
var ltMajor = 2;
|
||||
var minMinor = 9;
|
||||
@ -189,5 +186,5 @@
|
||||
|
||||
return Util;
|
||||
|
||||
})));
|
||||
}));
|
||||
//# sourceMappingURL=util.js.map
|
||||
|
2
js/dist/util.js.map
vendored
2
js/dist/util.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): index.js
|
||||
* Bootstrap (v4.6.1): index.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): alert.js
|
||||
* Bootstrap (v4.6.1): alert.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'alert'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.alert'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): button.js
|
||||
* Bootstrap (v4.6.1): button.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -12,7 +12,7 @@ import $ from 'jquery'
|
||||
*/
|
||||
|
||||
const NAME = 'button'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.button'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): carousel.js
|
||||
* Bootstrap (v4.6.1): carousel.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'carousel'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.carousel'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): collapse.js
|
||||
* Bootstrap (v4.6.1): collapse.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'collapse'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.collapse'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): dropdown.js
|
||||
* Bootstrap (v4.6.1): dropdown.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -14,7 +14,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'dropdown'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.dropdown'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): modal.js
|
||||
* Bootstrap (v4.6.1): modal.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'modal'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.modal'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): popover.js
|
||||
* Bootstrap (v4.6.1): popover.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Tooltip from './tooltip'
|
||||
*/
|
||||
|
||||
const NAME = 'popover'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.popover'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const JQUERY_NO_CONFLICT = $.fn[NAME]
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): scrollspy.js
|
||||
* Bootstrap (v4.6.1): scrollspy.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'scrollspy'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.scrollspy'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tab.js
|
||||
* Bootstrap (v4.6.1): tab.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'tab'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.tab'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const DATA_API_KEY = '.data-api'
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): toast.js
|
||||
* Bootstrap (v4.6.1): toast.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -13,7 +13,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'toast'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.toast'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const JQUERY_NO_CONFLICT = $.fn[NAME]
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tools/sanitizer.js
|
||||
* Bootstrap (v4.6.1): tools/sanitizer.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): tooltip.js
|
||||
* Bootstrap (v4.6.1): tooltip.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@ -15,7 +15,7 @@ import Util from './util'
|
||||
*/
|
||||
|
||||
const NAME = 'tooltip'
|
||||
const VERSION = '4.6.0'
|
||||
const VERSION = '4.6.1'
|
||||
const DATA_KEY = 'bs.tooltip'
|
||||
const EVENT_KEY = `.${DATA_KEY}`
|
||||
const JQUERY_NO_CONFLICT = $.fn[NAME]
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.6.0): util.js
|
||||
* Bootstrap (v4.6.1): util.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "bootstrap",
|
||||
"version": "4.6.0",
|
||||
"version": "4.6.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "bootstrap",
|
||||
"version": "4.6.0",
|
||||
"version": "4.6.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.15.7",
|
||||
|
@ -5,7 +5,7 @@
|
||||
Package.describe({
|
||||
name: 'twbs:bootstrap', // https://atmospherejs.com/twbs/bootstrap
|
||||
summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
|
||||
version: '4.6.0',
|
||||
version: '4.6.1',
|
||||
git: 'https://github.com/twbs/bootstrap.git'
|
||||
})
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "bootstrap",
|
||||
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
|
||||
"version": "4.6.0",
|
||||
"version": "4.6.1",
|
||||
"config": {
|
||||
"version_short": "4.6"
|
||||
},
|
||||
|
2
scss/bootstrap-grid.scss
vendored
2
scss/bootstrap-grid.scss
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Grid v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Grid v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
2
scss/bootstrap-reboot.scss
vendored
2
scss/bootstrap-reboot.scss
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap Reboot v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
2
scss/bootstrap.scss
vendored
2
scss/bootstrap.scss
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap v4.6.0 (https://getbootstrap.com/)
|
||||
* Bootstrap v4.6.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
- group: v4.x
|
||||
baseurl: "https://getbootstrap.com/docs"
|
||||
description: "Current major release and its minor versions. Last update was v4.6.0."
|
||||
description: "Current major release and its minor versions. Last update was v4.6.1."
|
||||
versions:
|
||||
- v: "4.0"
|
||||
- v: "4.1"
|
||||
|
Loading…
Reference in New Issue
Block a user