|
1 | 1 | /*! =======================================================
|
2 |
| - VERSION 10.6.2 |
| 2 | + VERSION 11.0.0 |
3 | 3 | ========================================================= */
|
4 | 4 | "use strict";
|
5 | 5 |
|
@@ -405,7 +405,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
405 | 405 |
|
406 | 406 | /*
|
407 | 407 | Validate `tooltip_position` against 'orientation`
|
408 |
| - - if `tooltip_position` is incompatible with orientation, swith it to a default compatible with specified `orientation` |
| 408 | + - if `tooltip_position` is incompatible with orientation, switch it to a default compatible with specified `orientation` |
409 | 409 | -- default for "vertical" -> "right", "left" if rtl
|
410 | 410 | -- default for "horizontal" -> "top"
|
411 | 411 | */
|
@@ -550,7 +550,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
550 | 550 |
|
551 | 551 | var createAndAppendTooltipSubElements = function createAndAppendTooltipSubElements(tooltipElem) {
|
552 | 552 | var arrow = document.createElement("div");
|
553 |
| - arrow.className = "tooltip-arrow"; |
| 553 | + arrow.className = "arrow"; |
554 | 554 |
|
555 | 555 | var inner = document.createElement("div");
|
556 | 556 | inner.className = "tooltip-inner";
|
@@ -652,13 +652,13 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
652 | 652 |
|
653 | 653 | // Undo inline styles and classes on tooltips
|
654 | 654 | [this.tooltip, this.tooltip_min, this.tooltip_max].forEach(function (tooltip) {
|
655 |
| - this._removeProperty(tooltip, 'left'); |
656 |
| - this._removeProperty(tooltip, 'right'); |
657 |
| - this._removeProperty(tooltip, 'top'); |
| 655 | + this._removeProperty(tooltip, 'bs-tooltip-left'); |
| 656 | + this._removeProperty(tooltip, 'bs-tooltip-right'); |
| 657 | + this._removeProperty(tooltip, 'bs-tooltip-top'); |
658 | 658 |
|
659 |
| - this._removeClass(tooltip, 'right'); |
660 |
| - this._removeClass(tooltip, 'left'); |
661 |
| - this._removeClass(tooltip, 'top'); |
| 659 | + this._removeClass(tooltip, 'bs-tooltip-right'); |
| 660 | + this._removeClass(tooltip, 'bs-tooltip-left'); |
| 661 | + this._removeClass(tooltip, 'bs-tooltip-top'); |
662 | 662 | }, this);
|
663 | 663 | }
|
664 | 664 |
|
@@ -1178,21 +1178,21 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
1178 | 1178 | },
|
1179 | 1179 | _showTooltip: function _showTooltip() {
|
1180 | 1180 | if (this.options.tooltip_split === false) {
|
1181 |
| - this._addClass(this.tooltip, 'in'); |
| 1181 | + this._addClass(this.tooltip, 'show'); |
1182 | 1182 | this.tooltip_min.style.display = 'none';
|
1183 | 1183 | this.tooltip_max.style.display = 'none';
|
1184 | 1184 | } else {
|
1185 |
| - this._addClass(this.tooltip_min, 'in'); |
1186 |
| - this._addClass(this.tooltip_max, 'in'); |
| 1185 | + this._addClass(this.tooltip_min, 'show'); |
| 1186 | + this._addClass(this.tooltip_max, 'show'); |
1187 | 1187 | this.tooltip.style.display = 'none';
|
1188 | 1188 | }
|
1189 | 1189 | this._state.over = true;
|
1190 | 1190 | },
|
1191 | 1191 | _hideTooltip: function _hideTooltip() {
|
1192 | 1192 | if (this._state.inDrag === false && this._alwaysShowTooltip !== true) {
|
1193 |
| - this._removeClass(this.tooltip, 'in'); |
1194 |
| - this._removeClass(this.tooltip_min, 'in'); |
1195 |
| - this._removeClass(this.tooltip_max, 'in'); |
| 1193 | + this._removeClass(this.tooltip, 'show'); |
| 1194 | + this._removeClass(this.tooltip_min, 'show'); |
| 1195 | + this._removeClass(this.tooltip_max, 'show'); |
1196 | 1196 | }
|
1197 | 1197 | this._state.over = false;
|
1198 | 1198 | },
|
@@ -1473,24 +1473,24 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
1473 | 1473 |
|
1474 | 1474 | if (this.options.tooltip_position === 'bottom') {
|
1475 | 1475 | if (offset_min.right > offset_max.left) {
|
1476 |
| - this._removeClass(this.tooltip_max, 'bottom'); |
1477 |
| - this._addClass(this.tooltip_max, 'top'); |
| 1476 | + this._removeClass(this.tooltip_max, 'bs-tooltip-bottom'); |
| 1477 | + this._addClass(this.tooltip_max, 'bs-tooltip-top'); |
1478 | 1478 | this.tooltip_max.style.top = '';
|
1479 | 1479 | this.tooltip_max.style.bottom = 22 + 'px';
|
1480 | 1480 | } else {
|
1481 |
| - this._removeClass(this.tooltip_max, 'top'); |
1482 |
| - this._addClass(this.tooltip_max, 'bottom'); |
| 1481 | + this._removeClass(this.tooltip_max, 'bs-tooltip-top'); |
| 1482 | + this._addClass(this.tooltip_max, 'bs-tooltip-bottom'); |
1483 | 1483 | this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1484 | 1484 | this.tooltip_max.style.bottom = '';
|
1485 | 1485 | }
|
1486 | 1486 | } else {
|
1487 | 1487 | if (offset_min.right > offset_max.left) {
|
1488 |
| - this._removeClass(this.tooltip_max, 'top'); |
1489 |
| - this._addClass(this.tooltip_max, 'bottom'); |
| 1488 | + this._removeClass(this.tooltip_max, 'bs-tooltip-top'); |
| 1489 | + this._addClass(this.tooltip_max, 'bs-tooltip-bottom'); |
1490 | 1490 | this.tooltip_max.style.top = 18 + 'px';
|
1491 | 1491 | } else {
|
1492 |
| - this._removeClass(this.tooltip_max, 'bottom'); |
1493 |
| - this._addClass(this.tooltip_max, 'top'); |
| 1492 | + this._removeClass(this.tooltip_max, 'bs-tooltip-bottom'); |
| 1493 | + this._addClass(this.tooltip_max, 'bs-tooltip-top'); |
1494 | 1494 | this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1495 | 1495 | }
|
1496 | 1496 | }
|
@@ -1997,17 +1997,17 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
|
1997 | 1997 | }
|
1998 | 1998 | var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
|
1999 | 1999 | tooltips.forEach(function (tooltip) {
|
2000 |
| - this._addClass(tooltip, tooltipPos); |
| 2000 | + this._addClass(tooltip, 'bs-tooltip-' + tooltipPos); |
2001 | 2001 | tooltip.style[oppositeSide] = '100%';
|
2002 | 2002 | }.bind(this));
|
2003 | 2003 | } else if (this.options.tooltip_position === 'bottom') {
|
2004 | 2004 | tooltips.forEach(function (tooltip) {
|
2005 |
| - this._addClass(tooltip, 'bottom'); |
| 2005 | + this._addClass(tooltip, 'bs-tooltip-bottom'); |
2006 | 2006 | tooltip.style.top = 22 + 'px';
|
2007 | 2007 | }.bind(this));
|
2008 | 2008 | } else {
|
2009 | 2009 | tooltips.forEach(function (tooltip) {
|
2010 |
| - this._addClass(tooltip, 'top'); |
| 2010 | + this._addClass(tooltip, 'bs-tooltip-top'); |
2011 | 2011 | tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
|
2012 | 2012 | }.bind(this));
|
2013 | 2013 | }
|
|
0 commit comments