@finqu/cool 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/cool.css +7 -13
- package/dist/css/cool.css.map +3 -3
- package/dist/css/cool.min.css +1 -1
- package/dist/css/cool.min.css.map +1 -1
- package/dist/js/cool.bundle.js +1 -1
- package/dist/js/cool.esm.js +1 -1
- package/dist/js/cool.js +1 -1
- package/js/dist/collapse.js +239 -239
- package/js/dist/common.js +1239 -1239
- package/js/dist/common.js.map +1 -1
- package/js/dist/dropdown.js +1427 -1427
- package/js/dist/dropdown.js.map +1 -1
- package/js/dist/popover.js +488 -488
- package/js/dist/popover.js.map +1 -1
- package/js/dist/sectiontabs.js +196 -196
- package/js/dist/select.js +1641 -1641
- package/js/dist/select.js.map +1 -1
- package/js/dist/tooltip.js +454 -454
- package/package.json +1 -1
- package/scss/_navbar.scss +5 -0
- package/scss/utilities/_perfect-scrollbar.scss +0 -13
package/js/dist/tooltip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Cool UI tooltip.js v1.1.
|
|
2
|
+
* Cool UI tooltip.js v1.1.6 (https://finqu.fi)
|
|
3
3
|
* Copyright 2011-2019 Finqu Oy
|
|
4
4
|
* Licensed under the ISC license - (http://opensource.org/licenses/ISC)
|
|
5
5
|
*/
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
subClass.__proto__ = superClass;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
var path = "/Users/
|
|
20
|
-
var hash = "
|
|
18
|
+
var cov_2jd14bepcm = function () {
|
|
19
|
+
var path = "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/util/index.js";
|
|
20
|
+
var hash = "12a5c1d33f0b709c3d9502b4d339446b676d47e4";
|
|
21
21
|
|
|
22
22
|
var Function = function () {}.constructor;
|
|
23
23
|
|
|
24
24
|
var global = new Function("return this")();
|
|
25
25
|
var gcv = "__coverage__";
|
|
26
26
|
var coverageData = {
|
|
27
|
-
path: "/Users/
|
|
27
|
+
path: "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/util/index.js",
|
|
28
28
|
statementMap: {
|
|
29
29
|
"0": {
|
|
30
30
|
start: {
|
|
@@ -1269,70 +1269,70 @@
|
|
|
1269
1269
|
coverageData.hash = hash;
|
|
1270
1270
|
return coverage[path] = coverageData;
|
|
1271
1271
|
}();
|
|
1272
|
-
|
|
1272
|
+
cov_2jd14bepcm.s[0]++;
|
|
1273
1273
|
|
|
1274
1274
|
var debounce = function debounce(func, wait, immediate) {
|
|
1275
|
-
|
|
1275
|
+
cov_2jd14bepcm.f[0]++;
|
|
1276
1276
|
var timeout;
|
|
1277
|
-
|
|
1277
|
+
cov_2jd14bepcm.s[1]++;
|
|
1278
1278
|
return function () {
|
|
1279
|
-
|
|
1280
|
-
var context = (
|
|
1281
|
-
var args = (
|
|
1282
|
-
|
|
1279
|
+
cov_2jd14bepcm.f[1]++;
|
|
1280
|
+
var context = (cov_2jd14bepcm.s[2]++, this);
|
|
1281
|
+
var args = (cov_2jd14bepcm.s[3]++, arguments);
|
|
1282
|
+
cov_2jd14bepcm.s[4]++;
|
|
1283
1283
|
|
|
1284
1284
|
var later = function later() {
|
|
1285
|
-
|
|
1286
|
-
|
|
1285
|
+
cov_2jd14bepcm.f[2]++;
|
|
1286
|
+
cov_2jd14bepcm.s[5]++;
|
|
1287
1287
|
timeout = null;
|
|
1288
|
-
|
|
1288
|
+
cov_2jd14bepcm.s[6]++;
|
|
1289
1289
|
|
|
1290
1290
|
if (!immediate) {
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
cov_2jd14bepcm.b[0][0]++;
|
|
1292
|
+
cov_2jd14bepcm.s[7]++;
|
|
1293
1293
|
func.apply(context, args);
|
|
1294
1294
|
} else {
|
|
1295
|
-
|
|
1295
|
+
cov_2jd14bepcm.b[0][1]++;
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
1298
|
|
|
1299
|
-
var callNow = (
|
|
1300
|
-
|
|
1299
|
+
var callNow = (cov_2jd14bepcm.s[8]++, (cov_2jd14bepcm.b[1][0]++, immediate) && (cov_2jd14bepcm.b[1][1]++, !timeout));
|
|
1300
|
+
cov_2jd14bepcm.s[9]++;
|
|
1301
1301
|
clearTimeout(timeout);
|
|
1302
|
-
|
|
1302
|
+
cov_2jd14bepcm.s[10]++;
|
|
1303
1303
|
timeout = setTimeout(later, wait);
|
|
1304
|
-
|
|
1304
|
+
cov_2jd14bepcm.s[11]++;
|
|
1305
1305
|
|
|
1306
1306
|
if (callNow) {
|
|
1307
|
-
|
|
1308
|
-
|
|
1307
|
+
cov_2jd14bepcm.b[2][0]++;
|
|
1308
|
+
cov_2jd14bepcm.s[12]++;
|
|
1309
1309
|
func.apply(context, args);
|
|
1310
1310
|
} else {
|
|
1311
|
-
|
|
1311
|
+
cov_2jd14bepcm.b[2][1]++;
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
1314
|
};
|
|
1315
1315
|
|
|
1316
|
-
|
|
1316
|
+
cov_2jd14bepcm.s[13]++;
|
|
1317
1317
|
|
|
1318
|
-
|
|
1318
|
+
cov_2jd14bepcm.s[16]++;
|
|
1319
1319
|
|
|
1320
|
-
|
|
1320
|
+
cov_2jd14bepcm.s[19]++;
|
|
1321
1321
|
|
|
1322
|
-
|
|
1322
|
+
cov_2jd14bepcm.s[31]++;
|
|
1323
1323
|
|
|
1324
|
-
|
|
1324
|
+
cov_2jd14bepcm.s[40]++;
|
|
1325
1325
|
|
|
1326
|
-
var
|
|
1327
|
-
var path = "/Users/
|
|
1328
|
-
var hash = "
|
|
1326
|
+
var cov_1o94gtu15 = function () {
|
|
1327
|
+
var path = "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/abstract-ui-component.js";
|
|
1328
|
+
var hash = "631b1d551c062c1704f9d1e5fac794c20a08485c";
|
|
1329
1329
|
|
|
1330
1330
|
var Function = function () {}.constructor;
|
|
1331
1331
|
|
|
1332
1332
|
var global = new Function("return this")();
|
|
1333
1333
|
var gcv = "__coverage__";
|
|
1334
1334
|
var coverageData = {
|
|
1335
|
-
path: "/Users/
|
|
1335
|
+
path: "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/abstract-ui-component.js",
|
|
1336
1336
|
statementMap: {
|
|
1337
1337
|
"0": {
|
|
1338
1338
|
start: {
|
|
@@ -1963,118 +1963,118 @@
|
|
|
1963
1963
|
|
|
1964
1964
|
// Init callback
|
|
1965
1965
|
_proto.onInit = function onInit() {
|
|
1966
|
-
|
|
1967
|
-
var onInit = (
|
|
1968
|
-
|
|
1966
|
+
cov_1o94gtu15.f[0]++;
|
|
1967
|
+
var onInit = (cov_1o94gtu15.s[0]++, this.opts.onInit);
|
|
1968
|
+
cov_1o94gtu15.s[1]++;
|
|
1969
1969
|
|
|
1970
1970
|
if (typeof onInit === 'function') {
|
|
1971
|
-
|
|
1972
|
-
|
|
1971
|
+
cov_1o94gtu15.b[0][0]++;
|
|
1972
|
+
cov_1o94gtu15.s[2]++;
|
|
1973
1973
|
onInit.call(this.el);
|
|
1974
1974
|
} else {
|
|
1975
|
-
|
|
1975
|
+
cov_1o94gtu15.b[0][1]++;
|
|
1976
1976
|
}
|
|
1977
1977
|
} // Update callback
|
|
1978
1978
|
;
|
|
1979
1979
|
|
|
1980
1980
|
_proto.onUpdate = function onUpdate() {
|
|
1981
|
-
|
|
1982
|
-
var onUpdate = (
|
|
1983
|
-
|
|
1981
|
+
cov_1o94gtu15.f[1]++;
|
|
1982
|
+
var onUpdate = (cov_1o94gtu15.s[3]++, this.opts.onUpdate);
|
|
1983
|
+
cov_1o94gtu15.s[4]++;
|
|
1984
1984
|
|
|
1985
1985
|
if (typeof onUpdate === 'function') {
|
|
1986
|
-
|
|
1987
|
-
|
|
1986
|
+
cov_1o94gtu15.b[1][0]++;
|
|
1987
|
+
cov_1o94gtu15.s[5]++;
|
|
1988
1988
|
onUpdate.call(this.el);
|
|
1989
1989
|
} else {
|
|
1990
|
-
|
|
1990
|
+
cov_1o94gtu15.b[1][1]++;
|
|
1991
1991
|
}
|
|
1992
1992
|
} // Destroy callback
|
|
1993
1993
|
;
|
|
1994
1994
|
|
|
1995
1995
|
_proto.onDestroy = function onDestroy() {
|
|
1996
|
-
|
|
1997
|
-
var onDestroy = (
|
|
1998
|
-
|
|
1996
|
+
cov_1o94gtu15.f[2]++;
|
|
1997
|
+
var onDestroy = (cov_1o94gtu15.s[6]++, this.opts.onDestroy);
|
|
1998
|
+
cov_1o94gtu15.s[7]++;
|
|
1999
1999
|
|
|
2000
2000
|
if (typeof onDestroy === 'function') {
|
|
2001
|
-
|
|
2002
|
-
|
|
2001
|
+
cov_1o94gtu15.b[2][0]++;
|
|
2002
|
+
cov_1o94gtu15.s[8]++;
|
|
2003
2003
|
onDestroy.call(this.el);
|
|
2004
2004
|
} else {
|
|
2005
|
-
|
|
2005
|
+
cov_1o94gtu15.b[2][1]++;
|
|
2006
2006
|
}
|
|
2007
2007
|
} // Show callback
|
|
2008
2008
|
;
|
|
2009
2009
|
|
|
2010
2010
|
_proto.onShow = function onShow() {
|
|
2011
|
-
|
|
2012
|
-
var onShow = (
|
|
2013
|
-
|
|
2011
|
+
cov_1o94gtu15.f[3]++;
|
|
2012
|
+
var onShow = (cov_1o94gtu15.s[9]++, this.opts.onShow);
|
|
2013
|
+
cov_1o94gtu15.s[10]++;
|
|
2014
2014
|
|
|
2015
2015
|
if (typeof onShow === 'function') {
|
|
2016
|
-
|
|
2017
|
-
|
|
2016
|
+
cov_1o94gtu15.b[3][0]++;
|
|
2017
|
+
cov_1o94gtu15.s[11]++;
|
|
2018
2018
|
onShow.call(this.el);
|
|
2019
2019
|
} else {
|
|
2020
|
-
|
|
2020
|
+
cov_1o94gtu15.b[3][1]++;
|
|
2021
2021
|
}
|
|
2022
2022
|
} // Close callback
|
|
2023
2023
|
;
|
|
2024
2024
|
|
|
2025
2025
|
_proto.onClose = function onClose() {
|
|
2026
|
-
|
|
2027
|
-
var onClose = (
|
|
2028
|
-
|
|
2026
|
+
cov_1o94gtu15.f[4]++;
|
|
2027
|
+
var onClose = (cov_1o94gtu15.s[12]++, this.opts.onClose);
|
|
2028
|
+
cov_1o94gtu15.s[13]++;
|
|
2029
2029
|
|
|
2030
2030
|
if (typeof onClose === 'function') {
|
|
2031
|
-
|
|
2032
|
-
|
|
2031
|
+
cov_1o94gtu15.b[4][0]++;
|
|
2032
|
+
cov_1o94gtu15.s[14]++;
|
|
2033
2033
|
onClose.call(this.el);
|
|
2034
2034
|
} else {
|
|
2035
|
-
|
|
2035
|
+
cov_1o94gtu15.b[4][1]++;
|
|
2036
2036
|
}
|
|
2037
2037
|
} // Debug log
|
|
2038
2038
|
;
|
|
2039
2039
|
|
|
2040
2040
|
_proto.log = function log() {
|
|
2041
|
-
|
|
2042
|
-
|
|
2041
|
+
cov_1o94gtu15.f[5]++;
|
|
2042
|
+
cov_1o94gtu15.s[15]++;
|
|
2043
2043
|
|
|
2044
2044
|
if (this.debug) {
|
|
2045
|
-
|
|
2046
|
-
|
|
2045
|
+
cov_1o94gtu15.b[5][0]++;
|
|
2046
|
+
cov_1o94gtu15.s[16]++;
|
|
2047
2047
|
|
|
2048
2048
|
if (typeof this.debug === 'function') {
|
|
2049
|
-
|
|
2050
|
-
|
|
2049
|
+
cov_1o94gtu15.b[6][0]++;
|
|
2050
|
+
cov_1o94gtu15.s[17]++;
|
|
2051
2051
|
this.debug.apply(this, arguments);
|
|
2052
2052
|
} else {
|
|
2053
2053
|
var _console;
|
|
2054
2054
|
|
|
2055
|
-
|
|
2056
|
-
|
|
2055
|
+
cov_1o94gtu15.b[6][1]++;
|
|
2056
|
+
cov_1o94gtu15.s[18]++;
|
|
2057
2057
|
|
|
2058
2058
|
(_console = console).log.apply(_console, arguments);
|
|
2059
2059
|
}
|
|
2060
2060
|
} else {
|
|
2061
|
-
|
|
2061
|
+
cov_1o94gtu15.b[5][1]++;
|
|
2062
2062
|
}
|
|
2063
2063
|
};
|
|
2064
2064
|
|
|
2065
2065
|
return AbstractUIComponent;
|
|
2066
2066
|
}();
|
|
2067
2067
|
|
|
2068
|
-
var
|
|
2069
|
-
var path = "/Users/
|
|
2070
|
-
var hash = "
|
|
2068
|
+
var cov_20v4qvwup6 = function () {
|
|
2069
|
+
var path = "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/tooltip.js";
|
|
2070
|
+
var hash = "5c44958f6ad756a97b513bb4e02fd27419f205bb";
|
|
2071
2071
|
|
|
2072
2072
|
var Function = function () {}.constructor;
|
|
2073
2073
|
|
|
2074
2074
|
var global = new Function("return this")();
|
|
2075
2075
|
var gcv = "__coverage__";
|
|
2076
2076
|
var coverageData = {
|
|
2077
|
-
path: "/Users/
|
|
2077
|
+
path: "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/tooltip.js",
|
|
2078
2078
|
statementMap: {
|
|
2079
2079
|
"0": {
|
|
2080
2080
|
start: {
|
|
@@ -7468,8 +7468,8 @@
|
|
|
7468
7468
|
coverageData.hash = hash;
|
|
7469
7469
|
return coverage[path] = coverageData;
|
|
7470
7470
|
}();
|
|
7471
|
-
var NAME = (
|
|
7472
|
-
var DATA_KEY = (
|
|
7471
|
+
var NAME = (cov_20v4qvwup6.s[0]++, 'coolTooltip');
|
|
7472
|
+
var DATA_KEY = (cov_20v4qvwup6.s[1]++, 'plugin_coolTooltip');
|
|
7473
7473
|
|
|
7474
7474
|
var Tooltip =
|
|
7475
7475
|
/*#__PURE__*/
|
|
@@ -7479,28 +7479,28 @@
|
|
|
7479
7479
|
function Tooltip(el, opts) {
|
|
7480
7480
|
var _this;
|
|
7481
7481
|
|
|
7482
|
-
|
|
7483
|
-
|
|
7482
|
+
cov_20v4qvwup6.f[0]++;
|
|
7483
|
+
cov_20v4qvwup6.s[2]++;
|
|
7484
7484
|
_this = _AbstractUIComponent.call(this) || this;
|
|
7485
|
-
|
|
7485
|
+
cov_20v4qvwup6.s[3]++;
|
|
7486
7486
|
_this.opts = {};
|
|
7487
|
-
|
|
7487
|
+
cov_20v4qvwup6.s[4]++;
|
|
7488
7488
|
|
|
7489
7489
|
if (window.Cool.settings.tooltip) {
|
|
7490
|
-
|
|
7491
|
-
|
|
7490
|
+
cov_20v4qvwup6.b[0][0]++;
|
|
7491
|
+
cov_20v4qvwup6.s[5]++;
|
|
7492
7492
|
$.extend(true, _this.opts, $.fn[NAME].defaults, window.Cool.settings.tooltip, opts);
|
|
7493
7493
|
} else {
|
|
7494
|
-
|
|
7495
|
-
|
|
7494
|
+
cov_20v4qvwup6.b[0][1]++;
|
|
7495
|
+
cov_20v4qvwup6.s[6]++;
|
|
7496
7496
|
$.extend(true, _this.opts, $.fn[NAME].defaults, opts);
|
|
7497
7497
|
}
|
|
7498
7498
|
|
|
7499
|
-
|
|
7499
|
+
cov_20v4qvwup6.s[7]++;
|
|
7500
7500
|
_this.el = el;
|
|
7501
|
-
|
|
7501
|
+
cov_20v4qvwup6.s[8]++;
|
|
7502
7502
|
_this.debug = _this.opts.debug;
|
|
7503
|
-
|
|
7503
|
+
cov_20v4qvwup6.s[9]++;
|
|
7504
7504
|
|
|
7505
7505
|
_this.init();
|
|
7506
7506
|
|
|
@@ -7511,250 +7511,250 @@
|
|
|
7511
7511
|
var _proto = Tooltip.prototype;
|
|
7512
7512
|
|
|
7513
7513
|
_proto.init = function init() {
|
|
7514
|
-
|
|
7515
|
-
|
|
7514
|
+
cov_20v4qvwup6.f[1]++;
|
|
7515
|
+
cov_20v4qvwup6.s[10]++;
|
|
7516
7516
|
this.buildCache();
|
|
7517
|
-
|
|
7517
|
+
cov_20v4qvwup6.s[11]++;
|
|
7518
7518
|
this.bindEvents();
|
|
7519
|
-
|
|
7519
|
+
cov_20v4qvwup6.s[12]++;
|
|
7520
7520
|
this.onInit();
|
|
7521
7521
|
} // Remove plugin instance completely
|
|
7522
7522
|
;
|
|
7523
7523
|
|
|
7524
7524
|
_proto.destroy = function destroy() {
|
|
7525
|
-
|
|
7526
|
-
|
|
7525
|
+
cov_20v4qvwup6.f[2]++;
|
|
7526
|
+
cov_20v4qvwup6.s[13]++;
|
|
7527
7527
|
this.unbindEvents();
|
|
7528
|
-
|
|
7528
|
+
cov_20v4qvwup6.s[14]++;
|
|
7529
7529
|
this.$el.removeData(DATA_KEY);
|
|
7530
|
-
|
|
7530
|
+
cov_20v4qvwup6.s[15]++;
|
|
7531
7531
|
this.onDestroy();
|
|
7532
7532
|
} // Update plugin data
|
|
7533
7533
|
;
|
|
7534
7534
|
|
|
7535
7535
|
_proto.update = function update() {
|
|
7536
|
-
|
|
7537
|
-
|
|
7536
|
+
cov_20v4qvwup6.f[3]++;
|
|
7537
|
+
cov_20v4qvwup6.s[16]++;
|
|
7538
7538
|
this.buildCache();
|
|
7539
|
-
|
|
7539
|
+
cov_20v4qvwup6.s[17]++;
|
|
7540
7540
|
this.onUpdate();
|
|
7541
7541
|
} // Cache DOM nodes for performance
|
|
7542
7542
|
;
|
|
7543
7543
|
|
|
7544
7544
|
_proto.buildCache = function buildCache() {
|
|
7545
|
-
|
|
7546
|
-
|
|
7545
|
+
cov_20v4qvwup6.f[4]++;
|
|
7546
|
+
cov_20v4qvwup6.s[18]++;
|
|
7547
7547
|
this.$el = $(this.el);
|
|
7548
|
-
|
|
7549
|
-
this.$container = this.$el.data('container') ? (
|
|
7550
|
-
|
|
7548
|
+
cov_20v4qvwup6.s[19]++;
|
|
7549
|
+
this.$container = this.$el.data('container') ? (cov_20v4qvwup6.b[1][0]++, $(this.$el.data('container'))) : (cov_20v4qvwup6.b[1][1]++, $(this.opts.container));
|
|
7550
|
+
cov_20v4qvwup6.s[20]++;
|
|
7551
7551
|
this.id = 'tooltip-' + this.generateUUID();
|
|
7552
|
-
|
|
7553
|
-
this.animation = this.$el.data('animation') ? (
|
|
7554
|
-
|
|
7555
|
-
this.animationIn = this.$el.data('animationIn') ? (
|
|
7556
|
-
|
|
7557
|
-
this.animationOut = this.$el.data('animationOut') ? (
|
|
7558
|
-
|
|
7559
|
-
this.animationSpeed = this.$el.data('animationSpeed') ? (
|
|
7560
|
-
|
|
7561
|
-
this.placement = this.$el.data('placement') ? (
|
|
7562
|
-
|
|
7552
|
+
cov_20v4qvwup6.s[21]++;
|
|
7553
|
+
this.animation = this.$el.data('animation') ? (cov_20v4qvwup6.b[2][0]++, this.$el.data('animation')) : (cov_20v4qvwup6.b[2][1]++, this.opts.animation);
|
|
7554
|
+
cov_20v4qvwup6.s[22]++;
|
|
7555
|
+
this.animationIn = this.$el.data('animationIn') ? (cov_20v4qvwup6.b[3][0]++, this.$el.data('animationIn')) : (cov_20v4qvwup6.b[3][1]++, this.opts.animationIn);
|
|
7556
|
+
cov_20v4qvwup6.s[23]++;
|
|
7557
|
+
this.animationOut = this.$el.data('animationOut') ? (cov_20v4qvwup6.b[4][0]++, this.$el.data('animationOut')) : (cov_20v4qvwup6.b[4][1]++, this.opts.animationOut);
|
|
7558
|
+
cov_20v4qvwup6.s[24]++;
|
|
7559
|
+
this.animationSpeed = this.$el.data('animationSpeed') ? (cov_20v4qvwup6.b[5][0]++, this.$el.data('animationSpeed')) : (cov_20v4qvwup6.b[5][1]++, this.opts.animationSpeed);
|
|
7560
|
+
cov_20v4qvwup6.s[25]++;
|
|
7561
|
+
this.placement = this.$el.data('placement') ? (cov_20v4qvwup6.b[6][0]++, this.$el.data('placement')) : (cov_20v4qvwup6.b[6][1]++, this.opts.placement);
|
|
7562
|
+
cov_20v4qvwup6.s[26]++;
|
|
7563
7563
|
this.placementChanged = false;
|
|
7564
|
-
|
|
7565
|
-
this.content = this.$el.data('content') ? (
|
|
7564
|
+
cov_20v4qvwup6.s[27]++;
|
|
7565
|
+
this.content = this.$el.data('content') ? (cov_20v4qvwup6.b[7][0]++, this.$el.data('content')) : (cov_20v4qvwup6.b[7][1]++, this.opts.content);
|
|
7566
7566
|
} // Bind events that trigger methods
|
|
7567
7567
|
;
|
|
7568
7568
|
|
|
7569
7569
|
_proto.bindEvents = function bindEvents() {
|
|
7570
7570
|
var _this2 = this;
|
|
7571
7571
|
|
|
7572
|
-
|
|
7573
|
-
|
|
7572
|
+
cov_20v4qvwup6.f[5]++;
|
|
7573
|
+
cov_20v4qvwup6.s[28]++;
|
|
7574
7574
|
this.$el.on('mouseenter' + '.' + NAME, function () {
|
|
7575
|
-
|
|
7576
|
-
|
|
7575
|
+
cov_20v4qvwup6.f[6]++;
|
|
7576
|
+
cov_20v4qvwup6.s[29]++;
|
|
7577
7577
|
|
|
7578
7578
|
_this2.show();
|
|
7579
7579
|
});
|
|
7580
|
-
|
|
7580
|
+
cov_20v4qvwup6.s[30]++;
|
|
7581
7581
|
this.$el.on('mouseleave' + '.' + NAME, function () {
|
|
7582
|
-
|
|
7583
|
-
|
|
7582
|
+
cov_20v4qvwup6.f[7]++;
|
|
7583
|
+
cov_20v4qvwup6.s[31]++;
|
|
7584
7584
|
|
|
7585
7585
|
_this2.close();
|
|
7586
7586
|
});
|
|
7587
|
-
|
|
7587
|
+
cov_20v4qvwup6.s[32]++;
|
|
7588
7588
|
$(window).on('resize', debounce(function () {
|
|
7589
|
-
|
|
7590
|
-
|
|
7589
|
+
cov_20v4qvwup6.f[8]++;
|
|
7590
|
+
cov_20v4qvwup6.s[33]++;
|
|
7591
7591
|
|
|
7592
7592
|
if (_this2.$tooltip) {
|
|
7593
|
-
|
|
7594
|
-
|
|
7593
|
+
cov_20v4qvwup6.b[8][0]++;
|
|
7594
|
+
cov_20v4qvwup6.s[34]++;
|
|
7595
7595
|
|
|
7596
7596
|
_this2.setPosition();
|
|
7597
7597
|
|
|
7598
|
-
|
|
7598
|
+
cov_20v4qvwup6.s[35]++;
|
|
7599
7599
|
|
|
7600
7600
|
_this2.onUpdate();
|
|
7601
7601
|
} else {
|
|
7602
|
-
|
|
7602
|
+
cov_20v4qvwup6.b[8][1]++;
|
|
7603
7603
|
}
|
|
7604
7604
|
}, 250));
|
|
7605
7605
|
} // Unbind events that trigger methods
|
|
7606
7606
|
;
|
|
7607
7607
|
|
|
7608
7608
|
_proto.unbindEvents = function unbindEvents() {
|
|
7609
|
-
|
|
7610
|
-
|
|
7609
|
+
cov_20v4qvwup6.f[9]++;
|
|
7610
|
+
cov_20v4qvwup6.s[36]++;
|
|
7611
7611
|
this.$el.off('.' + NAME);
|
|
7612
7612
|
} // Generate UUID
|
|
7613
7613
|
;
|
|
7614
7614
|
|
|
7615
7615
|
_proto.generateUUID = function generateUUID() {
|
|
7616
|
-
|
|
7617
|
-
|
|
7616
|
+
cov_20v4qvwup6.f[10]++;
|
|
7617
|
+
cov_20v4qvwup6.s[37]++;
|
|
7618
7618
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
7619
|
-
|
|
7620
|
-
var r = (
|
|
7621
|
-
v = (
|
|
7622
|
-
|
|
7619
|
+
cov_20v4qvwup6.f[11]++;
|
|
7620
|
+
var r = (cov_20v4qvwup6.s[38]++, Math.random() * 16 | 0),
|
|
7621
|
+
v = (cov_20v4qvwup6.s[39]++, c == 'x' ? (cov_20v4qvwup6.b[9][0]++, r) : (cov_20v4qvwup6.b[9][1]++, r & 0x3 | 0x8));
|
|
7622
|
+
cov_20v4qvwup6.s[40]++;
|
|
7623
7623
|
return v.toString(16);
|
|
7624
7624
|
});
|
|
7625
7625
|
} // Build tooltip
|
|
7626
7626
|
;
|
|
7627
7627
|
|
|
7628
7628
|
_proto.buildTooltip = function buildTooltip() {
|
|
7629
|
-
|
|
7630
|
-
|
|
7629
|
+
cov_20v4qvwup6.f[12]++;
|
|
7630
|
+
cov_20v4qvwup6.s[41]++;
|
|
7631
7631
|
this.$tooltip = $("\n\n <div class=\"tooltip\" role=\"tooltip\" id=\"" + this.id + "\">\n\n <div class=\"arrow\"></div>\n\n <div class=\"tooltip-inner\">" + this.content + "</div>\n\n </div>\n\n ");
|
|
7632
|
-
|
|
7632
|
+
cov_20v4qvwup6.s[42]++;
|
|
7633
7633
|
this.$container.append(this.$tooltip);
|
|
7634
|
-
|
|
7634
|
+
cov_20v4qvwup6.s[43]++;
|
|
7635
7635
|
this.$arrow = this.$tooltip.find('.arrow');
|
|
7636
|
-
|
|
7636
|
+
cov_20v4qvwup6.s[44]++;
|
|
7637
7637
|
this.log(this.$el);
|
|
7638
|
-
|
|
7638
|
+
cov_20v4qvwup6.s[45]++;
|
|
7639
7639
|
this.log(this.$container);
|
|
7640
|
-
|
|
7640
|
+
cov_20v4qvwup6.s[46]++;
|
|
7641
7641
|
this.log(this.$tooltip);
|
|
7642
|
-
|
|
7642
|
+
cov_20v4qvwup6.s[47]++;
|
|
7643
7643
|
this.log(this.$arrow);
|
|
7644
|
-
|
|
7644
|
+
cov_20v4qvwup6.s[48]++;
|
|
7645
7645
|
this.log('Id: ' + this.id);
|
|
7646
|
-
|
|
7646
|
+
cov_20v4qvwup6.s[49]++;
|
|
7647
7647
|
this.log('Animation: ' + this.animation);
|
|
7648
|
-
|
|
7648
|
+
cov_20v4qvwup6.s[50]++;
|
|
7649
7649
|
this.log('Animation in: ' + this.animationIn);
|
|
7650
|
-
|
|
7650
|
+
cov_20v4qvwup6.s[51]++;
|
|
7651
7651
|
this.log('Animation out: ' + this.animationOut);
|
|
7652
|
-
|
|
7652
|
+
cov_20v4qvwup6.s[52]++;
|
|
7653
7653
|
this.log('Animation speed: ' + this.animationSpeed);
|
|
7654
|
-
|
|
7654
|
+
cov_20v4qvwup6.s[53]++;
|
|
7655
7655
|
this.log('Placement: ' + this.placement);
|
|
7656
|
-
|
|
7656
|
+
cov_20v4qvwup6.s[54]++;
|
|
7657
7657
|
this.log('Content: ' + this.content);
|
|
7658
7658
|
} // Set positions
|
|
7659
7659
|
;
|
|
7660
7660
|
|
|
7661
7661
|
_proto.setPosition = function setPosition(placement) {
|
|
7662
|
-
|
|
7663
|
-
|
|
7662
|
+
cov_20v4qvwup6.f[13]++;
|
|
7663
|
+
cov_20v4qvwup6.s[55]++;
|
|
7664
7664
|
|
|
7665
|
-
if ((
|
|
7666
|
-
|
|
7667
|
-
|
|
7665
|
+
if ((cov_20v4qvwup6.b[11][0]++, typeof placement === 'undefined') || (cov_20v4qvwup6.b[11][1]++, placement === null)) {
|
|
7666
|
+
cov_20v4qvwup6.b[10][0]++;
|
|
7667
|
+
cov_20v4qvwup6.s[56]++;
|
|
7668
7668
|
placement = this.placement;
|
|
7669
7669
|
} else {
|
|
7670
|
-
|
|
7670
|
+
cov_20v4qvwup6.b[10][1]++;
|
|
7671
7671
|
}
|
|
7672
7672
|
|
|
7673
|
-
|
|
7673
|
+
cov_20v4qvwup6.s[57]++;
|
|
7674
7674
|
this.$tooltip.addClass('tooltip-' + placement);
|
|
7675
|
-
var containerInnerWidth = (
|
|
7676
|
-
var containerInnerHeight = (
|
|
7677
|
-
var tooltipWidth = (
|
|
7678
|
-
var tooltipHeight = (
|
|
7679
|
-
var tooltipTriggerWidth = (
|
|
7680
|
-
var tooltipTriggerHeight = (
|
|
7681
|
-
var tooltipTriggerPosX = (
|
|
7682
|
-
var tooltipTriggerPosY = (
|
|
7683
|
-
var arrowWidth = (
|
|
7684
|
-
var arrowHeight = (
|
|
7675
|
+
var containerInnerWidth = (cov_20v4qvwup6.s[58]++, this.$container.innerWidth());
|
|
7676
|
+
var containerInnerHeight = (cov_20v4qvwup6.s[59]++, this.$container.innerHeight());
|
|
7677
|
+
var tooltipWidth = (cov_20v4qvwup6.s[60]++, this.$tooltip.outerWidth(true));
|
|
7678
|
+
var tooltipHeight = (cov_20v4qvwup6.s[61]++, this.$tooltip.outerHeight(true));
|
|
7679
|
+
var tooltipTriggerWidth = (cov_20v4qvwup6.s[62]++, this.$el.outerWidth());
|
|
7680
|
+
var tooltipTriggerHeight = (cov_20v4qvwup6.s[63]++, this.$el.outerHeight());
|
|
7681
|
+
var tooltipTriggerPosX = (cov_20v4qvwup6.s[64]++, this.$el.offset().left);
|
|
7682
|
+
var tooltipTriggerPosY = (cov_20v4qvwup6.s[65]++, this.$el.offset().top);
|
|
7683
|
+
var arrowWidth = (cov_20v4qvwup6.s[66]++, this.$arrow.outerWidth(true));
|
|
7684
|
+
var arrowHeight = (cov_20v4qvwup6.s[67]++, this.$arrow.outerHeight(true));
|
|
7685
7685
|
var arrowPos;
|
|
7686
7686
|
var tooltipPosX;
|
|
7687
7687
|
var tooltipPosY;
|
|
7688
|
-
|
|
7688
|
+
cov_20v4qvwup6.s[68]++;
|
|
7689
7689
|
|
|
7690
7690
|
if (placement === 'top') {
|
|
7691
|
-
|
|
7692
|
-
|
|
7691
|
+
cov_20v4qvwup6.b[12][0]++;
|
|
7692
|
+
cov_20v4qvwup6.s[69]++;
|
|
7693
7693
|
tooltipPosX = Math.round(tooltipTriggerPosX - (tooltipWidth - tooltipTriggerWidth) / 2);
|
|
7694
|
-
|
|
7694
|
+
cov_20v4qvwup6.s[70]++;
|
|
7695
7695
|
tooltipPosY = Math.round(tooltipTriggerPosY - tooltipHeight);
|
|
7696
|
-
|
|
7696
|
+
cov_20v4qvwup6.s[71]++;
|
|
7697
7697
|
arrowPos = Math.round(tooltipWidth / 2 - arrowWidth / 2);
|
|
7698
|
-
|
|
7698
|
+
cov_20v4qvwup6.s[72]++;
|
|
7699
7699
|
this.$arrow.css({
|
|
7700
7700
|
left: arrowPos + 'px'
|
|
7701
7701
|
});
|
|
7702
7702
|
} else {
|
|
7703
|
-
|
|
7704
|
-
|
|
7703
|
+
cov_20v4qvwup6.b[12][1]++;
|
|
7704
|
+
cov_20v4qvwup6.s[73]++;
|
|
7705
7705
|
|
|
7706
7706
|
if (placement === 'right') {
|
|
7707
|
-
|
|
7708
|
-
|
|
7707
|
+
cov_20v4qvwup6.b[13][0]++;
|
|
7708
|
+
cov_20v4qvwup6.s[74]++;
|
|
7709
7709
|
tooltipPosX = Math.round(tooltipTriggerPosX + tooltipTriggerWidth);
|
|
7710
|
-
|
|
7710
|
+
cov_20v4qvwup6.s[75]++;
|
|
7711
7711
|
tooltipPosY = Math.round(tooltipTriggerPosY - (tooltipHeight - tooltipTriggerHeight) / 2);
|
|
7712
|
-
|
|
7712
|
+
cov_20v4qvwup6.s[76]++;
|
|
7713
7713
|
arrowPos = Math.round(tooltipHeight / 2 - arrowHeight / 2);
|
|
7714
|
-
|
|
7714
|
+
cov_20v4qvwup6.s[77]++;
|
|
7715
7715
|
this.$arrow.css({
|
|
7716
7716
|
top: arrowPos + 'px'
|
|
7717
7717
|
});
|
|
7718
7718
|
} else {
|
|
7719
|
-
|
|
7720
|
-
|
|
7719
|
+
cov_20v4qvwup6.b[13][1]++;
|
|
7720
|
+
cov_20v4qvwup6.s[78]++;
|
|
7721
7721
|
|
|
7722
7722
|
if (placement === 'bottom') {
|
|
7723
|
-
|
|
7724
|
-
|
|
7723
|
+
cov_20v4qvwup6.b[14][0]++;
|
|
7724
|
+
cov_20v4qvwup6.s[79]++;
|
|
7725
7725
|
tooltipPosX = Math.round(tooltipTriggerPosX - (tooltipWidth - tooltipTriggerWidth) / 2);
|
|
7726
|
-
|
|
7726
|
+
cov_20v4qvwup6.s[80]++;
|
|
7727
7727
|
tooltipPosY = Math.round(tooltipTriggerPosY + tooltipTriggerHeight);
|
|
7728
|
-
|
|
7728
|
+
cov_20v4qvwup6.s[81]++;
|
|
7729
7729
|
arrowPos = Math.round(tooltipWidth / 2 - arrowWidth / 2);
|
|
7730
|
-
|
|
7730
|
+
cov_20v4qvwup6.s[82]++;
|
|
7731
7731
|
this.$arrow.css({
|
|
7732
7732
|
left: arrowPos + 'px'
|
|
7733
7733
|
});
|
|
7734
7734
|
} else {
|
|
7735
|
-
|
|
7736
|
-
|
|
7735
|
+
cov_20v4qvwup6.b[14][1]++;
|
|
7736
|
+
cov_20v4qvwup6.s[83]++;
|
|
7737
7737
|
|
|
7738
7738
|
if (placement === 'left') {
|
|
7739
|
-
|
|
7740
|
-
|
|
7739
|
+
cov_20v4qvwup6.b[15][0]++;
|
|
7740
|
+
cov_20v4qvwup6.s[84]++;
|
|
7741
7741
|
tooltipPosX = Math.round(tooltipTriggerPosX - tooltipWidth);
|
|
7742
|
-
|
|
7742
|
+
cov_20v4qvwup6.s[85]++;
|
|
7743
7743
|
tooltipPosY = Math.round(tooltipTriggerPosY - (tooltipHeight - tooltipTriggerHeight) / 2);
|
|
7744
|
-
|
|
7744
|
+
cov_20v4qvwup6.s[86]++;
|
|
7745
7745
|
arrowPos = Math.round(tooltipHeight / 2 - arrowHeight / 2);
|
|
7746
|
-
|
|
7746
|
+
cov_20v4qvwup6.s[87]++;
|
|
7747
7747
|
this.$arrow.css({
|
|
7748
7748
|
top: arrowPos + 'px'
|
|
7749
7749
|
});
|
|
7750
7750
|
} else {
|
|
7751
|
-
|
|
7751
|
+
cov_20v4qvwup6.b[15][1]++;
|
|
7752
7752
|
}
|
|
7753
7753
|
}
|
|
7754
7754
|
}
|
|
7755
7755
|
}
|
|
7756
7756
|
|
|
7757
|
-
|
|
7757
|
+
cov_20v4qvwup6.s[88]++;
|
|
7758
7758
|
this.$tooltip.css({
|
|
7759
7759
|
position: 'absolute',
|
|
7760
7760
|
top: '0px',
|
|
@@ -7763,177 +7763,177 @@
|
|
|
7763
7763
|
'will-change': 'transform'
|
|
7764
7764
|
}); // Correct placement if tooltip goes outside of container
|
|
7765
7765
|
|
|
7766
|
-
var tooltipOverflowCount = (
|
|
7767
|
-
var tooltipPosition = (
|
|
7766
|
+
var tooltipOverflowCount = (cov_20v4qvwup6.s[89]++, 0);
|
|
7767
|
+
var tooltipPosition = (cov_20v4qvwup6.s[90]++, {
|
|
7768
7768
|
left: this.$tooltip.position().left,
|
|
7769
7769
|
top: this.$tooltip.position().top,
|
|
7770
7770
|
right: containerInnerWidth - (this.$tooltip.position().left + tooltipWidth),
|
|
7771
7771
|
bottom: containerInnerHeight - (this.$tooltip.position().top + tooltipHeight)
|
|
7772
7772
|
});
|
|
7773
|
-
var tooltipOverflow = (
|
|
7773
|
+
var tooltipOverflow = (cov_20v4qvwup6.s[91]++, {
|
|
7774
7774
|
left: false,
|
|
7775
7775
|
top: false,
|
|
7776
7776
|
right: false,
|
|
7777
7777
|
bottom: false
|
|
7778
7778
|
});
|
|
7779
|
-
|
|
7779
|
+
cov_20v4qvwup6.s[92]++;
|
|
7780
7780
|
|
|
7781
7781
|
if (tooltipPosition.right < 0) {
|
|
7782
|
-
|
|
7783
|
-
|
|
7782
|
+
cov_20v4qvwup6.b[16][0]++;
|
|
7783
|
+
cov_20v4qvwup6.s[93]++;
|
|
7784
7784
|
tooltipOverflow.right = true;
|
|
7785
|
-
|
|
7785
|
+
cov_20v4qvwup6.s[94]++;
|
|
7786
7786
|
tooltipOverflowCount++;
|
|
7787
|
-
|
|
7787
|
+
cov_20v4qvwup6.s[95]++;
|
|
7788
7788
|
this.log('Tooltip overflowing from right');
|
|
7789
7789
|
} else {
|
|
7790
|
-
|
|
7790
|
+
cov_20v4qvwup6.b[16][1]++;
|
|
7791
7791
|
}
|
|
7792
7792
|
|
|
7793
|
-
|
|
7793
|
+
cov_20v4qvwup6.s[96]++;
|
|
7794
7794
|
|
|
7795
7795
|
if (tooltipPosition.left < 0) {
|
|
7796
|
-
|
|
7797
|
-
|
|
7796
|
+
cov_20v4qvwup6.b[17][0]++;
|
|
7797
|
+
cov_20v4qvwup6.s[97]++;
|
|
7798
7798
|
tooltipOverflow.left = true;
|
|
7799
|
-
|
|
7799
|
+
cov_20v4qvwup6.s[98]++;
|
|
7800
7800
|
tooltipOverflowCount++;
|
|
7801
|
-
|
|
7801
|
+
cov_20v4qvwup6.s[99]++;
|
|
7802
7802
|
this.log('Tooltip overflowing from left');
|
|
7803
7803
|
} else {
|
|
7804
|
-
|
|
7804
|
+
cov_20v4qvwup6.b[17][1]++;
|
|
7805
7805
|
}
|
|
7806
7806
|
|
|
7807
|
-
|
|
7807
|
+
cov_20v4qvwup6.s[100]++;
|
|
7808
7808
|
|
|
7809
7809
|
if (tooltipPosition.bottom < 0) {
|
|
7810
|
-
|
|
7811
|
-
|
|
7810
|
+
cov_20v4qvwup6.b[18][0]++;
|
|
7811
|
+
cov_20v4qvwup6.s[101]++;
|
|
7812
7812
|
tooltipOverflow.bottom = true;
|
|
7813
|
-
|
|
7813
|
+
cov_20v4qvwup6.s[102]++;
|
|
7814
7814
|
tooltipOverflowCount++;
|
|
7815
|
-
|
|
7815
|
+
cov_20v4qvwup6.s[103]++;
|
|
7816
7816
|
this.log('Tooltip overflowing from bottom');
|
|
7817
7817
|
} else {
|
|
7818
|
-
|
|
7818
|
+
cov_20v4qvwup6.b[18][1]++;
|
|
7819
7819
|
}
|
|
7820
7820
|
|
|
7821
|
-
|
|
7821
|
+
cov_20v4qvwup6.s[104]++;
|
|
7822
7822
|
|
|
7823
7823
|
if (tooltipPosition.top < 0) {
|
|
7824
|
-
|
|
7825
|
-
|
|
7824
|
+
cov_20v4qvwup6.b[19][0]++;
|
|
7825
|
+
cov_20v4qvwup6.s[105]++;
|
|
7826
7826
|
tooltipOverflow.top = true;
|
|
7827
|
-
|
|
7827
|
+
cov_20v4qvwup6.s[106]++;
|
|
7828
7828
|
tooltipOverflowCount++;
|
|
7829
|
-
|
|
7829
|
+
cov_20v4qvwup6.s[107]++;
|
|
7830
7830
|
this.log('Tooltip overflowing from top');
|
|
7831
7831
|
} else {
|
|
7832
|
-
|
|
7832
|
+
cov_20v4qvwup6.b[19][1]++;
|
|
7833
7833
|
}
|
|
7834
7834
|
|
|
7835
|
-
|
|
7835
|
+
cov_20v4qvwup6.s[108]++;
|
|
7836
7836
|
|
|
7837
7837
|
if (tooltipOverflowCount > 0) {
|
|
7838
|
-
|
|
7839
|
-
|
|
7838
|
+
cov_20v4qvwup6.b[20][0]++;
|
|
7839
|
+
cov_20v4qvwup6.s[109]++;
|
|
7840
7840
|
|
|
7841
|
-
if ((
|
|
7842
|
-
|
|
7843
|
-
|
|
7841
|
+
if ((cov_20v4qvwup6.b[22][0]++, !this.placementChanged) && (cov_20v4qvwup6.b[22][1]++, tooltipOverflow.left) && (cov_20v4qvwup6.b[22][2]++, tooltipPosition.right > tooltipWidth)) {
|
|
7842
|
+
cov_20v4qvwup6.b[21][0]++;
|
|
7843
|
+
cov_20v4qvwup6.s[110]++;
|
|
7844
7844
|
this.log('Changing tooltip placement to right');
|
|
7845
|
-
|
|
7845
|
+
cov_20v4qvwup6.s[111]++;
|
|
7846
7846
|
this.placementChanged = true;
|
|
7847
|
-
|
|
7847
|
+
cov_20v4qvwup6.s[112]++;
|
|
7848
7848
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7849
|
-
|
|
7849
|
+
cov_20v4qvwup6.s[113]++;
|
|
7850
7850
|
this.$arrow.removeAttr('style');
|
|
7851
|
-
|
|
7851
|
+
cov_20v4qvwup6.s[114]++;
|
|
7852
7852
|
this.setPosition('right');
|
|
7853
7853
|
} else {
|
|
7854
|
-
|
|
7855
|
-
|
|
7854
|
+
cov_20v4qvwup6.b[21][1]++;
|
|
7855
|
+
cov_20v4qvwup6.s[115]++;
|
|
7856
7856
|
|
|
7857
|
-
if ((
|
|
7858
|
-
|
|
7859
|
-
|
|
7857
|
+
if ((cov_20v4qvwup6.b[24][0]++, !this.placementChanged) && (cov_20v4qvwup6.b[24][1]++, tooltipOverflow.top) && (cov_20v4qvwup6.b[24][2]++, tooltipPosition.top > tooltipHeight)) {
|
|
7858
|
+
cov_20v4qvwup6.b[23][0]++;
|
|
7859
|
+
cov_20v4qvwup6.s[116]++;
|
|
7860
7860
|
this.log('Changing tooltip placement to bottom');
|
|
7861
|
-
|
|
7861
|
+
cov_20v4qvwup6.s[117]++;
|
|
7862
7862
|
this.placementChanged = true;
|
|
7863
|
-
|
|
7863
|
+
cov_20v4qvwup6.s[118]++;
|
|
7864
7864
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7865
|
-
|
|
7865
|
+
cov_20v4qvwup6.s[119]++;
|
|
7866
7866
|
this.$arrow.removeAttr('style');
|
|
7867
|
-
|
|
7867
|
+
cov_20v4qvwup6.s[120]++;
|
|
7868
7868
|
this.setPosition('bottom');
|
|
7869
7869
|
} else {
|
|
7870
|
-
|
|
7871
|
-
|
|
7870
|
+
cov_20v4qvwup6.b[23][1]++;
|
|
7871
|
+
cov_20v4qvwup6.s[121]++;
|
|
7872
7872
|
|
|
7873
|
-
if ((
|
|
7874
|
-
|
|
7875
|
-
|
|
7873
|
+
if ((cov_20v4qvwup6.b[26][0]++, !this.placementChanged) && (cov_20v4qvwup6.b[26][1]++, tooltipOverflow.right) && (cov_20v4qvwup6.b[26][2]++, tooltipPosition.left > tooltipWidth)) {
|
|
7874
|
+
cov_20v4qvwup6.b[25][0]++;
|
|
7875
|
+
cov_20v4qvwup6.s[122]++;
|
|
7876
7876
|
this.log('Changing tooltip placement to left');
|
|
7877
|
-
|
|
7877
|
+
cov_20v4qvwup6.s[123]++;
|
|
7878
7878
|
this.placementChanged = true;
|
|
7879
|
-
|
|
7879
|
+
cov_20v4qvwup6.s[124]++;
|
|
7880
7880
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7881
|
-
|
|
7881
|
+
cov_20v4qvwup6.s[125]++;
|
|
7882
7882
|
this.$arrow.removeAttr('style');
|
|
7883
|
-
|
|
7883
|
+
cov_20v4qvwup6.s[126]++;
|
|
7884
7884
|
this.setPosition('left');
|
|
7885
7885
|
} else {
|
|
7886
|
-
|
|
7887
|
-
|
|
7886
|
+
cov_20v4qvwup6.b[25][1]++;
|
|
7887
|
+
cov_20v4qvwup6.s[127]++;
|
|
7888
7888
|
|
|
7889
|
-
if ((
|
|
7890
|
-
|
|
7891
|
-
|
|
7889
|
+
if ((cov_20v4qvwup6.b[28][0]++, !this.placementChanged) && (cov_20v4qvwup6.b[28][1]++, tooltipOverflow.bottom) && (cov_20v4qvwup6.b[28][2]++, tooltipPosition.top > tooltipHeight)) {
|
|
7890
|
+
cov_20v4qvwup6.b[27][0]++;
|
|
7891
|
+
cov_20v4qvwup6.s[128]++;
|
|
7892
7892
|
this.log('Changing tooltip placement to top');
|
|
7893
|
-
|
|
7893
|
+
cov_20v4qvwup6.s[129]++;
|
|
7894
7894
|
this.placementChanged = true;
|
|
7895
|
-
|
|
7895
|
+
cov_20v4qvwup6.s[130]++;
|
|
7896
7896
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7897
|
-
|
|
7897
|
+
cov_20v4qvwup6.s[131]++;
|
|
7898
7898
|
this.$arrow.removeAttr('style');
|
|
7899
|
-
|
|
7899
|
+
cov_20v4qvwup6.s[132]++;
|
|
7900
7900
|
this.setPosition('top');
|
|
7901
7901
|
} else {
|
|
7902
|
-
|
|
7903
|
-
|
|
7902
|
+
cov_20v4qvwup6.b[27][1]++;
|
|
7903
|
+
cov_20v4qvwup6.s[133]++;
|
|
7904
7904
|
|
|
7905
|
-
if ((
|
|
7906
|
-
|
|
7907
|
-
|
|
7905
|
+
if ((cov_20v4qvwup6.b[30][0]++, !this.placementChanged) && ((cov_20v4qvwup6.b[30][1]++, placement !== 'top') || (cov_20v4qvwup6.b[30][2]++, placement !== 'bottom')) && ((cov_20v4qvwup6.b[30][3]++, tooltipOverflow.left) || (cov_20v4qvwup6.b[30][4]++, tooltipOverflow.right))) {
|
|
7906
|
+
cov_20v4qvwup6.b[29][0]++;
|
|
7907
|
+
cov_20v4qvwup6.s[134]++;
|
|
7908
7908
|
|
|
7909
7909
|
if (tooltipPosition.top > tooltipPosition.bottom) {
|
|
7910
|
-
|
|
7911
|
-
|
|
7910
|
+
cov_20v4qvwup6.b[31][0]++;
|
|
7911
|
+
cov_20v4qvwup6.s[135]++;
|
|
7912
7912
|
this.log('Changing tooltip placement to top');
|
|
7913
|
-
|
|
7913
|
+
cov_20v4qvwup6.s[136]++;
|
|
7914
7914
|
this.placementChanged = true;
|
|
7915
|
-
|
|
7915
|
+
cov_20v4qvwup6.s[137]++;
|
|
7916
7916
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7917
|
-
|
|
7917
|
+
cov_20v4qvwup6.s[138]++;
|
|
7918
7918
|
this.$arrow.removeAttr('style');
|
|
7919
|
-
|
|
7919
|
+
cov_20v4qvwup6.s[139]++;
|
|
7920
7920
|
this.setPosition('top');
|
|
7921
7921
|
} else {
|
|
7922
|
-
|
|
7923
|
-
|
|
7922
|
+
cov_20v4qvwup6.b[31][1]++;
|
|
7923
|
+
cov_20v4qvwup6.s[140]++;
|
|
7924
7924
|
this.log('Changing tooltip placement to bottom');
|
|
7925
|
-
|
|
7925
|
+
cov_20v4qvwup6.s[141]++;
|
|
7926
7926
|
this.placementChanged = true;
|
|
7927
|
-
|
|
7927
|
+
cov_20v4qvwup6.s[142]++;
|
|
7928
7928
|
this.$tooltip.removeClass('tooltip-' + placement);
|
|
7929
|
-
|
|
7929
|
+
cov_20v4qvwup6.s[143]++;
|
|
7930
7930
|
this.$arrow.removeAttr('style');
|
|
7931
|
-
|
|
7931
|
+
cov_20v4qvwup6.s[144]++;
|
|
7932
7932
|
this.setPosition('bottom');
|
|
7933
7933
|
}
|
|
7934
7934
|
} else {
|
|
7935
|
-
|
|
7936
|
-
|
|
7935
|
+
cov_20v4qvwup6.b[29][1]++;
|
|
7936
|
+
cov_20v4qvwup6.s[145]++;
|
|
7937
7937
|
this.fixTooltipPosition = true;
|
|
7938
7938
|
}
|
|
7939
7939
|
}
|
|
@@ -7941,275 +7941,275 @@
|
|
|
7941
7941
|
}
|
|
7942
7942
|
}
|
|
7943
7943
|
|
|
7944
|
-
|
|
7944
|
+
cov_20v4qvwup6.s[146]++;
|
|
7945
7945
|
|
|
7946
7946
|
if (this.fixTooltipPosition) {
|
|
7947
|
-
|
|
7948
|
-
|
|
7947
|
+
cov_20v4qvwup6.b[32][0]++;
|
|
7948
|
+
cov_20v4qvwup6.s[147]++;
|
|
7949
7949
|
this.log('Adjusting tooltip size or position in order to tooltip fit in the container');
|
|
7950
|
-
|
|
7950
|
+
cov_20v4qvwup6.s[148]++;
|
|
7951
7951
|
|
|
7952
7952
|
if (tooltipOverflow.left) {
|
|
7953
|
-
|
|
7954
|
-
|
|
7953
|
+
cov_20v4qvwup6.b[33][0]++;
|
|
7954
|
+
cov_20v4qvwup6.s[149]++;
|
|
7955
7955
|
this.log('Tooltip overflowing from left');
|
|
7956
|
-
var overflowAmount = (
|
|
7957
|
-
var excludePlacements = (
|
|
7958
|
-
|
|
7956
|
+
var overflowAmount = (cov_20v4qvwup6.s[150]++, Math.abs(tooltipPosition.left));
|
|
7957
|
+
var excludePlacements = (cov_20v4qvwup6.s[151]++, ['top', 'bottom']);
|
|
7958
|
+
cov_20v4qvwup6.s[152]++;
|
|
7959
7959
|
|
|
7960
|
-
if ((
|
|
7961
|
-
|
|
7962
|
-
|
|
7960
|
+
if ((cov_20v4qvwup6.b[35][0]++, tooltipTriggerPosX >= tooltipPosX + overflowAmount) && (cov_20v4qvwup6.b[35][1]++, excludePlacements.indexOf(placement) < 0)) {
|
|
7961
|
+
cov_20v4qvwup6.b[34][0]++;
|
|
7962
|
+
cov_20v4qvwup6.s[153]++;
|
|
7963
7963
|
this.log('Tooltip adjusting width');
|
|
7964
|
-
|
|
7964
|
+
cov_20v4qvwup6.s[154]++;
|
|
7965
7965
|
tooltipWidth -= overflowAmount;
|
|
7966
|
-
|
|
7966
|
+
cov_20v4qvwup6.s[155]++;
|
|
7967
7967
|
tooltipPosX += overflowAmount;
|
|
7968
7968
|
} else {
|
|
7969
|
-
|
|
7970
|
-
|
|
7969
|
+
cov_20v4qvwup6.b[34][1]++;
|
|
7970
|
+
cov_20v4qvwup6.s[156]++;
|
|
7971
7971
|
this.log('Tooltip adjusting position x');
|
|
7972
|
-
|
|
7972
|
+
cov_20v4qvwup6.s[157]++;
|
|
7973
7973
|
tooltipPosX += overflowAmount;
|
|
7974
|
-
|
|
7974
|
+
cov_20v4qvwup6.s[158]++;
|
|
7975
7975
|
arrowPos -= overflowAmount;
|
|
7976
7976
|
}
|
|
7977
7977
|
} else {
|
|
7978
|
-
|
|
7978
|
+
cov_20v4qvwup6.b[33][1]++;
|
|
7979
7979
|
}
|
|
7980
7980
|
|
|
7981
|
-
|
|
7981
|
+
cov_20v4qvwup6.s[159]++;
|
|
7982
7982
|
|
|
7983
7983
|
if (tooltipOverflow.top) {
|
|
7984
|
-
|
|
7985
|
-
|
|
7984
|
+
cov_20v4qvwup6.b[36][0]++;
|
|
7985
|
+
cov_20v4qvwup6.s[160]++;
|
|
7986
7986
|
this.log('Tooltip overflowing from top');
|
|
7987
7987
|
|
|
7988
|
-
var _overflowAmount = (
|
|
7988
|
+
var _overflowAmount = (cov_20v4qvwup6.s[161]++, Math.abs(tooltipPosition.top));
|
|
7989
7989
|
|
|
7990
|
-
|
|
7990
|
+
cov_20v4qvwup6.s[162]++;
|
|
7991
7991
|
this.log('Tooltip adjusting position y');
|
|
7992
|
-
|
|
7992
|
+
cov_20v4qvwup6.s[163]++;
|
|
7993
7993
|
tooltipPosY += _overflowAmount;
|
|
7994
|
-
|
|
7994
|
+
cov_20v4qvwup6.s[164]++;
|
|
7995
7995
|
arrowPos -= _overflowAmount;
|
|
7996
7996
|
} else {
|
|
7997
|
-
|
|
7997
|
+
cov_20v4qvwup6.b[36][1]++;
|
|
7998
7998
|
}
|
|
7999
7999
|
|
|
8000
|
-
|
|
8000
|
+
cov_20v4qvwup6.s[165]++;
|
|
8001
8001
|
|
|
8002
8002
|
if (tooltipOverflow.right) {
|
|
8003
|
-
|
|
8004
|
-
|
|
8003
|
+
cov_20v4qvwup6.b[37][0]++;
|
|
8004
|
+
cov_20v4qvwup6.s[166]++;
|
|
8005
8005
|
this.log('Tooltip overflowing from right');
|
|
8006
8006
|
|
|
8007
|
-
var _overflowAmount2 = (
|
|
8007
|
+
var _overflowAmount2 = (cov_20v4qvwup6.s[167]++, Math.abs(tooltipPosition.right));
|
|
8008
8008
|
|
|
8009
|
-
var _excludePlacements = (
|
|
8009
|
+
var _excludePlacements = (cov_20v4qvwup6.s[168]++, ['top', 'bottom']);
|
|
8010
8010
|
|
|
8011
|
-
|
|
8011
|
+
cov_20v4qvwup6.s[169]++;
|
|
8012
8012
|
|
|
8013
|
-
if ((
|
|
8014
|
-
|
|
8015
|
-
|
|
8013
|
+
if ((cov_20v4qvwup6.b[39][0]++, tooltipTriggerPosX <= tooltipPosX - _overflowAmount2) && (cov_20v4qvwup6.b[39][1]++, _excludePlacements.indexOf(placement) < 0)) {
|
|
8014
|
+
cov_20v4qvwup6.b[38][0]++;
|
|
8015
|
+
cov_20v4qvwup6.s[170]++;
|
|
8016
8016
|
this.log('Tooltip adjusting width');
|
|
8017
|
-
|
|
8017
|
+
cov_20v4qvwup6.s[171]++;
|
|
8018
8018
|
tooltipWidth -= _overflowAmount2;
|
|
8019
8019
|
} else {
|
|
8020
|
-
|
|
8021
|
-
|
|
8020
|
+
cov_20v4qvwup6.b[38][1]++;
|
|
8021
|
+
cov_20v4qvwup6.s[172]++;
|
|
8022
8022
|
this.log('Tooltip adjusting position x');
|
|
8023
|
-
|
|
8023
|
+
cov_20v4qvwup6.s[173]++;
|
|
8024
8024
|
tooltipPosX -= _overflowAmount2;
|
|
8025
|
-
|
|
8025
|
+
cov_20v4qvwup6.s[174]++;
|
|
8026
8026
|
arrowPos += _overflowAmount2;
|
|
8027
8027
|
}
|
|
8028
8028
|
} else {
|
|
8029
|
-
|
|
8029
|
+
cov_20v4qvwup6.b[37][1]++;
|
|
8030
8030
|
}
|
|
8031
8031
|
|
|
8032
|
-
|
|
8032
|
+
cov_20v4qvwup6.s[175]++;
|
|
8033
8033
|
|
|
8034
8034
|
if (tooltipOverflow.bottom) {
|
|
8035
|
-
|
|
8036
|
-
|
|
8035
|
+
cov_20v4qvwup6.b[40][0]++;
|
|
8036
|
+
cov_20v4qvwup6.s[176]++;
|
|
8037
8037
|
this.log('Tooltip overflowing from bottom');
|
|
8038
8038
|
|
|
8039
|
-
var _overflowAmount3 = (
|
|
8039
|
+
var _overflowAmount3 = (cov_20v4qvwup6.s[177]++, Math.abs(tooltipPosition.bottom));
|
|
8040
8040
|
|
|
8041
|
-
|
|
8041
|
+
cov_20v4qvwup6.s[178]++;
|
|
8042
8042
|
this.log('Tooltip adjusting position y');
|
|
8043
|
-
|
|
8043
|
+
cov_20v4qvwup6.s[179]++;
|
|
8044
8044
|
tooltipPosY -= _overflowAmount3;
|
|
8045
|
-
|
|
8045
|
+
cov_20v4qvwup6.s[180]++;
|
|
8046
8046
|
arrowPos += _overflowAmount3;
|
|
8047
8047
|
} else {
|
|
8048
|
-
|
|
8048
|
+
cov_20v4qvwup6.b[40][1]++;
|
|
8049
8049
|
}
|
|
8050
8050
|
|
|
8051
|
-
|
|
8051
|
+
cov_20v4qvwup6.s[181]++;
|
|
8052
8052
|
|
|
8053
8053
|
if (placement === 'top') {
|
|
8054
|
-
|
|
8055
|
-
|
|
8054
|
+
cov_20v4qvwup6.b[41][0]++;
|
|
8055
|
+
cov_20v4qvwup6.s[182]++;
|
|
8056
8056
|
this.$arrow.css({
|
|
8057
8057
|
left: arrowPos + 'px'
|
|
8058
8058
|
});
|
|
8059
8059
|
} else {
|
|
8060
|
-
|
|
8061
|
-
|
|
8060
|
+
cov_20v4qvwup6.b[41][1]++;
|
|
8061
|
+
cov_20v4qvwup6.s[183]++;
|
|
8062
8062
|
|
|
8063
8063
|
if (placement === 'right') {
|
|
8064
|
-
|
|
8065
|
-
|
|
8064
|
+
cov_20v4qvwup6.b[42][0]++;
|
|
8065
|
+
cov_20v4qvwup6.s[184]++;
|
|
8066
8066
|
this.$arrow.css({
|
|
8067
8067
|
top: arrowPos + 'px'
|
|
8068
8068
|
});
|
|
8069
8069
|
} else {
|
|
8070
|
-
|
|
8071
|
-
|
|
8070
|
+
cov_20v4qvwup6.b[42][1]++;
|
|
8071
|
+
cov_20v4qvwup6.s[185]++;
|
|
8072
8072
|
|
|
8073
8073
|
if (placement === 'bottom') {
|
|
8074
|
-
|
|
8075
|
-
|
|
8074
|
+
cov_20v4qvwup6.b[43][0]++;
|
|
8075
|
+
cov_20v4qvwup6.s[186]++;
|
|
8076
8076
|
this.$arrow.css({
|
|
8077
8077
|
left: arrowPos + 'px'
|
|
8078
8078
|
});
|
|
8079
8079
|
} else {
|
|
8080
|
-
|
|
8081
|
-
|
|
8080
|
+
cov_20v4qvwup6.b[43][1]++;
|
|
8081
|
+
cov_20v4qvwup6.s[187]++;
|
|
8082
8082
|
|
|
8083
8083
|
if (placement === 'left') {
|
|
8084
|
-
|
|
8085
|
-
|
|
8084
|
+
cov_20v4qvwup6.b[44][0]++;
|
|
8085
|
+
cov_20v4qvwup6.s[188]++;
|
|
8086
8086
|
this.$arrow.css({
|
|
8087
8087
|
top: arrowPos + 'px'
|
|
8088
8088
|
});
|
|
8089
8089
|
} else {
|
|
8090
|
-
|
|
8090
|
+
cov_20v4qvwup6.b[44][1]++;
|
|
8091
8091
|
}
|
|
8092
8092
|
}
|
|
8093
8093
|
}
|
|
8094
8094
|
}
|
|
8095
8095
|
|
|
8096
|
-
|
|
8096
|
+
cov_20v4qvwup6.s[189]++;
|
|
8097
8097
|
this.$tooltip.css({
|
|
8098
8098
|
width: tooltipWidth,
|
|
8099
8099
|
transform: 'translate3d(' + tooltipPosX + 'px, ' + tooltipPosY + 'px, 0px)'
|
|
8100
8100
|
});
|
|
8101
|
-
|
|
8101
|
+
cov_20v4qvwup6.s[190]++;
|
|
8102
8102
|
this.fixTooltipPosition = false;
|
|
8103
|
-
|
|
8103
|
+
cov_20v4qvwup6.s[191]++;
|
|
8104
8104
|
this.log('Tooltip placement changed: ' + this.placementChanged);
|
|
8105
|
-
|
|
8105
|
+
cov_20v4qvwup6.s[192]++;
|
|
8106
8106
|
this.log('Tooltip container inner width: ' + containerInnerWidth + 'px');
|
|
8107
|
-
|
|
8107
|
+
cov_20v4qvwup6.s[193]++;
|
|
8108
8108
|
this.log('Tooltip container inner height: ' + containerInnerHeight + 'px');
|
|
8109
|
-
|
|
8109
|
+
cov_20v4qvwup6.s[194]++;
|
|
8110
8110
|
this.log('Tooltip trigger width: ' + tooltipTriggerWidth + 'px');
|
|
8111
|
-
|
|
8111
|
+
cov_20v4qvwup6.s[195]++;
|
|
8112
8112
|
this.log('Tooltip trigger height: ' + tooltipTriggerHeight + 'px');
|
|
8113
|
-
|
|
8113
|
+
cov_20v4qvwup6.s[196]++;
|
|
8114
8114
|
this.log('Tooltip trigger position x: ' + tooltipTriggerPosX + 'px');
|
|
8115
|
-
|
|
8115
|
+
cov_20v4qvwup6.s[197]++;
|
|
8116
8116
|
this.log('Tooltip trigger position Y: ' + tooltipTriggerPosY + 'px');
|
|
8117
|
-
|
|
8117
|
+
cov_20v4qvwup6.s[198]++;
|
|
8118
8118
|
this.log('Tooltip width: ' + tooltipWidth + 'px');
|
|
8119
|
-
|
|
8119
|
+
cov_20v4qvwup6.s[199]++;
|
|
8120
8120
|
this.log('Tooltip height: ' + tooltipHeight + 'px');
|
|
8121
|
-
|
|
8121
|
+
cov_20v4qvwup6.s[200]++;
|
|
8122
8122
|
this.log('Tooltip position x: ' + tooltipPosX + 'px');
|
|
8123
|
-
|
|
8123
|
+
cov_20v4qvwup6.s[201]++;
|
|
8124
8124
|
this.log('Tooltip position y: ' + tooltipPosY + 'px');
|
|
8125
|
-
|
|
8125
|
+
cov_20v4qvwup6.s[202]++;
|
|
8126
8126
|
this.log('Tooltip position left: ' + tooltipPosition.left + 'px');
|
|
8127
|
-
|
|
8127
|
+
cov_20v4qvwup6.s[203]++;
|
|
8128
8128
|
this.log('Tooltip position top: ' + tooltipPosition.top + 'px');
|
|
8129
|
-
|
|
8129
|
+
cov_20v4qvwup6.s[204]++;
|
|
8130
8130
|
this.log('Tooltip position right: ' + tooltipPosition.right + 'px');
|
|
8131
|
-
|
|
8131
|
+
cov_20v4qvwup6.s[205]++;
|
|
8132
8132
|
this.log('Tooltip position bottom: ' + tooltipPosition.bottom + 'px');
|
|
8133
8133
|
} else {
|
|
8134
|
-
|
|
8134
|
+
cov_20v4qvwup6.b[32][1]++;
|
|
8135
8135
|
}
|
|
8136
8136
|
} else {
|
|
8137
|
-
|
|
8138
|
-
|
|
8137
|
+
cov_20v4qvwup6.b[20][1]++;
|
|
8138
|
+
cov_20v4qvwup6.s[206]++;
|
|
8139
8139
|
this.log('Tooltip placement changed: ' + this.placementChanged);
|
|
8140
|
-
|
|
8140
|
+
cov_20v4qvwup6.s[207]++;
|
|
8141
8141
|
this.log('Tooltip container inner width: ' + containerInnerWidth + 'px');
|
|
8142
|
-
|
|
8142
|
+
cov_20v4qvwup6.s[208]++;
|
|
8143
8143
|
this.log('Tooltip container inner height: ' + containerInnerHeight + 'px');
|
|
8144
|
-
|
|
8144
|
+
cov_20v4qvwup6.s[209]++;
|
|
8145
8145
|
this.log('Tooltip trigger width: ' + tooltipTriggerWidth + 'px');
|
|
8146
|
-
|
|
8146
|
+
cov_20v4qvwup6.s[210]++;
|
|
8147
8147
|
this.log('Tooltip trigger height: ' + tooltipTriggerHeight + 'px');
|
|
8148
|
-
|
|
8148
|
+
cov_20v4qvwup6.s[211]++;
|
|
8149
8149
|
this.log('Tooltip trigger position x: ' + tooltipTriggerPosX + 'px');
|
|
8150
|
-
|
|
8150
|
+
cov_20v4qvwup6.s[212]++;
|
|
8151
8151
|
this.log('Tooltip trigger position Y: ' + tooltipTriggerPosY + 'px');
|
|
8152
|
-
|
|
8152
|
+
cov_20v4qvwup6.s[213]++;
|
|
8153
8153
|
this.log('Tooltip width: ' + tooltipWidth + 'px');
|
|
8154
|
-
|
|
8154
|
+
cov_20v4qvwup6.s[214]++;
|
|
8155
8155
|
this.log('Tooltip height: ' + tooltipHeight + 'px');
|
|
8156
|
-
|
|
8156
|
+
cov_20v4qvwup6.s[215]++;
|
|
8157
8157
|
this.log('Tooltip position x: ' + tooltipPosX + 'px');
|
|
8158
|
-
|
|
8158
|
+
cov_20v4qvwup6.s[216]++;
|
|
8159
8159
|
this.log('Tooltip position y: ' + tooltipPosY + 'px');
|
|
8160
|
-
|
|
8160
|
+
cov_20v4qvwup6.s[217]++;
|
|
8161
8161
|
this.log('Tooltip position left: ' + tooltipPosition.left + 'px');
|
|
8162
|
-
|
|
8162
|
+
cov_20v4qvwup6.s[218]++;
|
|
8163
8163
|
this.log('Tooltip position top: ' + tooltipPosition.top + 'px');
|
|
8164
|
-
|
|
8164
|
+
cov_20v4qvwup6.s[219]++;
|
|
8165
8165
|
this.log('Tooltip position right: ' + tooltipPosition.right + 'px');
|
|
8166
|
-
|
|
8166
|
+
cov_20v4qvwup6.s[220]++;
|
|
8167
8167
|
this.log('Tooltip position bottom: ' + tooltipPosition.bottom + 'px');
|
|
8168
8168
|
}
|
|
8169
8169
|
} // Show
|
|
8170
8170
|
;
|
|
8171
8171
|
|
|
8172
8172
|
_proto.show = function show() {
|
|
8173
|
-
|
|
8174
|
-
|
|
8173
|
+
cov_20v4qvwup6.f[14]++;
|
|
8174
|
+
cov_20v4qvwup6.s[221]++;
|
|
8175
8175
|
|
|
8176
8176
|
if (this.$tooltip) {
|
|
8177
|
-
|
|
8178
|
-
|
|
8177
|
+
cov_20v4qvwup6.b[45][0]++;
|
|
8178
|
+
cov_20v4qvwup6.s[222]++;
|
|
8179
8179
|
return;
|
|
8180
8180
|
} else {
|
|
8181
|
-
|
|
8181
|
+
cov_20v4qvwup6.b[45][1]++;
|
|
8182
8182
|
}
|
|
8183
8183
|
|
|
8184
|
-
|
|
8184
|
+
cov_20v4qvwup6.s[223]++;
|
|
8185
8185
|
this.buildTooltip();
|
|
8186
|
-
|
|
8186
|
+
cov_20v4qvwup6.s[224]++;
|
|
8187
8187
|
this.setPosition();
|
|
8188
|
-
|
|
8188
|
+
cov_20v4qvwup6.s[225]++;
|
|
8189
8189
|
|
|
8190
8190
|
if (this.animation) {
|
|
8191
|
-
|
|
8192
|
-
|
|
8191
|
+
cov_20v4qvwup6.b[46][0]++;
|
|
8192
|
+
cov_20v4qvwup6.s[226]++;
|
|
8193
8193
|
this.$tooltip.addClass(this.animationSpeed);
|
|
8194
|
-
|
|
8194
|
+
cov_20v4qvwup6.s[227]++;
|
|
8195
8195
|
this.$tooltip.animateCss(this.animationIn);
|
|
8196
|
-
|
|
8196
|
+
cov_20v4qvwup6.s[228]++;
|
|
8197
8197
|
this.$tooltip.addClass('show');
|
|
8198
|
-
|
|
8198
|
+
cov_20v4qvwup6.s[229]++;
|
|
8199
8199
|
this.$tooltip.attr('id', this.id);
|
|
8200
|
-
|
|
8200
|
+
cov_20v4qvwup6.s[230]++;
|
|
8201
8201
|
this.$el.attr('data-tooltip', this.id);
|
|
8202
8202
|
} else {
|
|
8203
|
-
|
|
8204
|
-
|
|
8203
|
+
cov_20v4qvwup6.b[46][1]++;
|
|
8204
|
+
cov_20v4qvwup6.s[231]++;
|
|
8205
8205
|
this.$tooltip.addClass('show');
|
|
8206
|
-
|
|
8206
|
+
cov_20v4qvwup6.s[232]++;
|
|
8207
8207
|
this.$tooltip.attr('id', this.id);
|
|
8208
|
-
|
|
8208
|
+
cov_20v4qvwup6.s[233]++;
|
|
8209
8209
|
this.$el.attr('data-tooltip', this.id);
|
|
8210
8210
|
}
|
|
8211
8211
|
|
|
8212
|
-
|
|
8212
|
+
cov_20v4qvwup6.s[234]++;
|
|
8213
8213
|
this.onShow();
|
|
8214
8214
|
} // Close
|
|
8215
8215
|
;
|
|
@@ -8217,94 +8217,94 @@
|
|
|
8217
8217
|
_proto.close = function close() {
|
|
8218
8218
|
var _this3 = this;
|
|
8219
8219
|
|
|
8220
|
-
|
|
8221
|
-
|
|
8220
|
+
cov_20v4qvwup6.f[15]++;
|
|
8221
|
+
cov_20v4qvwup6.s[235]++;
|
|
8222
8222
|
|
|
8223
8223
|
if (!this.$tooltip) {
|
|
8224
|
-
|
|
8225
|
-
|
|
8224
|
+
cov_20v4qvwup6.b[47][0]++;
|
|
8225
|
+
cov_20v4qvwup6.s[236]++;
|
|
8226
8226
|
return;
|
|
8227
8227
|
} else {
|
|
8228
|
-
|
|
8228
|
+
cov_20v4qvwup6.b[47][1]++;
|
|
8229
8229
|
}
|
|
8230
8230
|
|
|
8231
|
-
|
|
8231
|
+
cov_20v4qvwup6.s[237]++;
|
|
8232
8232
|
|
|
8233
|
-
if ((
|
|
8234
|
-
|
|
8235
|
-
|
|
8233
|
+
if ((cov_20v4qvwup6.b[49][0]++, this.animation) && (cov_20v4qvwup6.b[49][1]++, !this.$tooltip.hasClass('animated'))) {
|
|
8234
|
+
cov_20v4qvwup6.b[48][0]++;
|
|
8235
|
+
cov_20v4qvwup6.s[238]++;
|
|
8236
8236
|
this.$tooltip.animateCss(this.animationOut, function () {
|
|
8237
|
-
|
|
8238
|
-
|
|
8237
|
+
cov_20v4qvwup6.f[16]++;
|
|
8238
|
+
cov_20v4qvwup6.s[239]++;
|
|
8239
8239
|
|
|
8240
8240
|
_this3.$tooltip.remove();
|
|
8241
8241
|
|
|
8242
|
-
|
|
8242
|
+
cov_20v4qvwup6.s[240]++;
|
|
8243
8243
|
|
|
8244
8244
|
_this3.$el.removeAttr('data-tooltip');
|
|
8245
8245
|
|
|
8246
|
-
|
|
8246
|
+
cov_20v4qvwup6.s[241]++;
|
|
8247
8247
|
_this3.$tooltip = null;
|
|
8248
|
-
|
|
8248
|
+
cov_20v4qvwup6.s[242]++;
|
|
8249
8249
|
_this3.placementChanged = false;
|
|
8250
|
-
|
|
8250
|
+
cov_20v4qvwup6.s[243]++;
|
|
8251
8251
|
|
|
8252
8252
|
_this3.onClose();
|
|
8253
8253
|
});
|
|
8254
8254
|
} else {
|
|
8255
|
-
|
|
8256
|
-
|
|
8255
|
+
cov_20v4qvwup6.b[48][1]++;
|
|
8256
|
+
cov_20v4qvwup6.s[244]++;
|
|
8257
8257
|
this.$tooltip.remove();
|
|
8258
|
-
|
|
8258
|
+
cov_20v4qvwup6.s[245]++;
|
|
8259
8259
|
this.$el.removeAttr('data-tooltip');
|
|
8260
|
-
|
|
8260
|
+
cov_20v4qvwup6.s[246]++;
|
|
8261
8261
|
this.$tooltip = null;
|
|
8262
|
-
|
|
8262
|
+
cov_20v4qvwup6.s[247]++;
|
|
8263
8263
|
this.placementChanged = false;
|
|
8264
|
-
|
|
8264
|
+
cov_20v4qvwup6.s[248]++;
|
|
8265
8265
|
this.onClose();
|
|
8266
8266
|
}
|
|
8267
8267
|
};
|
|
8268
8268
|
|
|
8269
8269
|
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
|
8270
|
-
|
|
8271
|
-
|
|
8270
|
+
cov_20v4qvwup6.f[17]++;
|
|
8271
|
+
cov_20v4qvwup6.s[249]++;
|
|
8272
8272
|
return this.each(function () {
|
|
8273
|
-
|
|
8274
|
-
var data = (
|
|
8273
|
+
cov_20v4qvwup6.f[18]++;
|
|
8274
|
+
var data = (cov_20v4qvwup6.s[250]++, $(this).data(DATA_KEY));
|
|
8275
8275
|
|
|
8276
|
-
var _config = (
|
|
8276
|
+
var _config = (cov_20v4qvwup6.s[251]++, (cov_20v4qvwup6.b[50][0]++, typeof config === 'object') && (cov_20v4qvwup6.b[50][1]++, config));
|
|
8277
8277
|
|
|
8278
|
-
|
|
8278
|
+
cov_20v4qvwup6.s[252]++;
|
|
8279
8279
|
|
|
8280
8280
|
if (!data) {
|
|
8281
|
-
|
|
8282
|
-
|
|
8281
|
+
cov_20v4qvwup6.b[51][0]++;
|
|
8282
|
+
cov_20v4qvwup6.s[253]++;
|
|
8283
8283
|
data = new Tooltip(this, _config);
|
|
8284
|
-
|
|
8284
|
+
cov_20v4qvwup6.s[254]++;
|
|
8285
8285
|
$(this).data(DATA_KEY, data);
|
|
8286
8286
|
} else {
|
|
8287
|
-
|
|
8287
|
+
cov_20v4qvwup6.b[51][1]++;
|
|
8288
8288
|
}
|
|
8289
8289
|
|
|
8290
|
-
|
|
8290
|
+
cov_20v4qvwup6.s[255]++;
|
|
8291
8291
|
|
|
8292
8292
|
if (typeof config === 'string') {
|
|
8293
|
-
|
|
8294
|
-
|
|
8293
|
+
cov_20v4qvwup6.b[52][0]++;
|
|
8294
|
+
cov_20v4qvwup6.s[256]++;
|
|
8295
8295
|
|
|
8296
8296
|
if (typeof data[config] === 'undefined') {
|
|
8297
|
-
|
|
8298
|
-
|
|
8297
|
+
cov_20v4qvwup6.b[53][0]++;
|
|
8298
|
+
cov_20v4qvwup6.s[257]++;
|
|
8299
8299
|
throw new TypeError("No method named \"" + config + "\"");
|
|
8300
8300
|
} else {
|
|
8301
|
-
|
|
8301
|
+
cov_20v4qvwup6.b[53][1]++;
|
|
8302
8302
|
}
|
|
8303
8303
|
|
|
8304
|
-
|
|
8304
|
+
cov_20v4qvwup6.s[258]++;
|
|
8305
8305
|
data[config]();
|
|
8306
8306
|
} else {
|
|
8307
|
-
|
|
8307
|
+
cov_20v4qvwup6.b[52][1]++;
|
|
8308
8308
|
}
|
|
8309
8309
|
});
|
|
8310
8310
|
};
|
|
@@ -8312,27 +8312,27 @@
|
|
|
8312
8312
|
return Tooltip;
|
|
8313
8313
|
}(AbstractUIComponent);
|
|
8314
8314
|
|
|
8315
|
-
|
|
8315
|
+
cov_20v4qvwup6.s[259]++;
|
|
8316
8316
|
|
|
8317
8317
|
if (typeof $ !== 'undefined') {
|
|
8318
|
-
|
|
8318
|
+
cov_20v4qvwup6.b[54][0]++;
|
|
8319
8319
|
// jQuery
|
|
8320
|
-
var JQUERY_NO_CONFLICT = (
|
|
8321
|
-
|
|
8320
|
+
var JQUERY_NO_CONFLICT = (cov_20v4qvwup6.s[260]++, $.fn[NAME]);
|
|
8321
|
+
cov_20v4qvwup6.s[261]++;
|
|
8322
8322
|
$.fn[NAME] = Tooltip._jQueryInterface;
|
|
8323
|
-
|
|
8323
|
+
cov_20v4qvwup6.s[262]++;
|
|
8324
8324
|
$.fn[NAME].Constructor = Tooltip;
|
|
8325
|
-
|
|
8325
|
+
cov_20v4qvwup6.s[263]++;
|
|
8326
8326
|
|
|
8327
8327
|
$.fn[NAME].noConflict = function () {
|
|
8328
|
-
|
|
8329
|
-
|
|
8328
|
+
cov_20v4qvwup6.f[19]++;
|
|
8329
|
+
cov_20v4qvwup6.s[264]++;
|
|
8330
8330
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
8331
|
-
|
|
8331
|
+
cov_20v4qvwup6.s[265]++;
|
|
8332
8332
|
return Tooltip._jQueryInterface;
|
|
8333
8333
|
};
|
|
8334
8334
|
|
|
8335
|
-
|
|
8335
|
+
cov_20v4qvwup6.s[266]++;
|
|
8336
8336
|
$.fn[NAME].defaults = {
|
|
8337
8337
|
container: 'body',
|
|
8338
8338
|
animation: false,
|
|
@@ -8349,7 +8349,7 @@
|
|
|
8349
8349
|
debug: false
|
|
8350
8350
|
};
|
|
8351
8351
|
} else {
|
|
8352
|
-
|
|
8352
|
+
cov_20v4qvwup6.b[54][1]++;
|
|
8353
8353
|
}
|
|
8354
8354
|
|
|
8355
8355
|
return Tooltip;
|