aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.bundle.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-10-29 16:19:14 -0700
committerMark Otto <[email protected]>2017-10-29 16:19:14 -0700
commitc5af0a7d6aa6c2021c7e172e0baee030bdffcc71 (patch)
tree4d107dc130493aad6891aede69632f5a023a729b /dist/js/bootstrap.bundle.js
parentb5cd9b91b2f93418bcaa6cb081cc842a6e6ef58c (diff)
downloadbootstrap-c5af0a7d6aa6c2021c7e172e0baee030bdffcc71.tar.xz
bootstrap-c5af0a7d6aa6c2021c7e172e0baee030bdffcc71.zip
dist
Diffstat (limited to 'dist/js/bootstrap.bundle.js')
-rw-r--r--dist/js/bootstrap.bundle.js49
1 files changed, 29 insertions, 20 deletions
diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js
index 8af9a0108..99e2cf11a 100644
--- a/dist/js/bootstrap.bundle.js
+++ b/dist/js/bootstrap.bundle.js
@@ -3818,19 +3818,10 @@ Popper.Defaults = Defaults;
var Dropdown = function ($$$1) {
/**
- * Check for Popper dependency
- * Popper - https://popper.js.org
- */
- if (typeof Popper === 'undefined') {
- throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');
- }
- /**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
-
-
var NAME = 'dropdown';
var VERSION = '4.0.0-beta.2';
var DATA_KEY = 'bs.dropdown';
@@ -3864,6 +3855,8 @@ var Dropdown = function ($$$1) {
DISABLED: 'disabled',
SHOW: 'show',
DROPUP: 'dropup',
+ DROPRIGHT: 'dropright',
+ DROPLEFT: 'dropleft',
MENURIGHT: 'dropdown-menu-right',
MENULEFT: 'dropdown-menu-left'
};
@@ -3878,7 +3871,11 @@ var Dropdown = function ($$$1) {
TOP: 'top-start',
TOPEND: 'top-end',
BOTTOM: 'bottom-start',
- BOTTOMEND: 'bottom-end'
+ BOTTOMEND: 'bottom-end',
+ RIGHT: 'right-start',
+ RIGHTEND: 'right-end',
+ LEFT: 'left-start',
+ LEFTEND: 'left-end'
};
var Default = {
offset: 0,
@@ -3936,6 +3933,15 @@ var Dropdown = function ($$$1) {
if (showEvent.isDefaultPrevented()) {
return;
}
+ /**
+ * Check for Popper dependency
+ * Popper - https://popper.js.org
+ */
+
+
+ if (typeof Popper === 'undefined') {
+ throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');
+ }
var element = this._element; // for dropup with alignment we use the parent as popper container
@@ -4021,6 +4027,10 @@ var Dropdown = function ($$$1) {
if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
placement = AttachmentMap.TOPEND;
}
+ } else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
+ placement = AttachmentMap.RIGHT;
+ } else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
+ placement = AttachmentMap.LEFT;
} else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
placement = AttachmentMap.BOTTOMEND;
}
@@ -4840,19 +4850,10 @@ var Modal = function ($$$1) {
var Tooltip = function ($$$1) {
/**
- * Check for Popper dependency
- * Popper - https://popper.js.org
- */
- if (typeof Popper === 'undefined') {
- throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)');
- }
- /**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
-
-
var NAME = 'tooltip';
var VERSION = '4.0.0-beta.2';
var DATA_KEY = 'bs.tooltip';
@@ -4936,7 +4937,15 @@ var Tooltip = function ($$$1) {
/*#__PURE__*/
function () {
function Tooltip(element, config) {
- // private
+ /**
+ * Check for Popper dependency
+ * Popper - https://popper.js.org
+ */
+ if (typeof Popper === 'undefined') {
+ throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)');
+ } // private
+
+
this._isEnabled = true;
this._timeout = 0;
this._hoverState = '';