@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/popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Cool UI popover.js v1.1.
|
|
2
|
+
* Cool UI popover.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_461q4w6q2 = function () {
|
|
2069
|
+
var path = "/Users/aki/Projects/Finqu/www-structure/finqu-lib/finqu-ui/js/src/popover.js";
|
|
2070
|
+
var hash = "13e87f3c34de31b229e6875dd2088f8c480cfb7b";
|
|
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/popover.js",
|
|
2078
2078
|
statementMap: {
|
|
2079
2079
|
"0": {
|
|
2080
2080
|
start: {
|
|
@@ -8013,8 +8013,8 @@
|
|
|
8013
8013
|
coverageData.hash = hash;
|
|
8014
8014
|
return coverage[path] = coverageData;
|
|
8015
8015
|
}();
|
|
8016
|
-
var NAME = (
|
|
8017
|
-
var DATA_KEY = (
|
|
8016
|
+
var NAME = (cov_461q4w6q2.s[0]++, 'coolPopover');
|
|
8017
|
+
var DATA_KEY = (cov_461q4w6q2.s[1]++, 'plugin_coolPopover');
|
|
8018
8018
|
|
|
8019
8019
|
var Popover =
|
|
8020
8020
|
/*#__PURE__*/
|
|
@@ -8024,28 +8024,28 @@
|
|
|
8024
8024
|
function Popover(el, opts) {
|
|
8025
8025
|
var _this;
|
|
8026
8026
|
|
|
8027
|
-
|
|
8028
|
-
|
|
8027
|
+
cov_461q4w6q2.f[0]++;
|
|
8028
|
+
cov_461q4w6q2.s[2]++;
|
|
8029
8029
|
_this = _AbstractUIComponent.call(this) || this;
|
|
8030
|
-
|
|
8030
|
+
cov_461q4w6q2.s[3]++;
|
|
8031
8031
|
_this.opts = {};
|
|
8032
|
-
|
|
8032
|
+
cov_461q4w6q2.s[4]++;
|
|
8033
8033
|
|
|
8034
8034
|
if (window.Cool.settings.popover) {
|
|
8035
|
-
|
|
8036
|
-
|
|
8035
|
+
cov_461q4w6q2.b[0][0]++;
|
|
8036
|
+
cov_461q4w6q2.s[5]++;
|
|
8037
8037
|
$.extend(true, _this.opts, $.fn[NAME].defaults, window.Cool.settings.popover, opts);
|
|
8038
8038
|
} else {
|
|
8039
|
-
|
|
8040
|
-
|
|
8039
|
+
cov_461q4w6q2.b[0][1]++;
|
|
8040
|
+
cov_461q4w6q2.s[6]++;
|
|
8041
8041
|
$.extend(true, _this.opts, $.fn[NAME].defaults, opts);
|
|
8042
8042
|
}
|
|
8043
8043
|
|
|
8044
|
-
|
|
8044
|
+
cov_461q4w6q2.s[7]++;
|
|
8045
8045
|
_this.el = el;
|
|
8046
|
-
|
|
8046
|
+
cov_461q4w6q2.s[8]++;
|
|
8047
8047
|
_this.debug = _this.opts.debug;
|
|
8048
|
-
|
|
8048
|
+
cov_461q4w6q2.s[9]++;
|
|
8049
8049
|
|
|
8050
8050
|
_this.init();
|
|
8051
8051
|
|
|
@@ -8056,324 +8056,324 @@
|
|
|
8056
8056
|
var _proto = Popover.prototype;
|
|
8057
8057
|
|
|
8058
8058
|
_proto.init = function init() {
|
|
8059
|
-
|
|
8060
|
-
|
|
8059
|
+
cov_461q4w6q2.f[1]++;
|
|
8060
|
+
cov_461q4w6q2.s[10]++;
|
|
8061
8061
|
this.buildCache();
|
|
8062
|
-
|
|
8062
|
+
cov_461q4w6q2.s[11]++;
|
|
8063
8063
|
this.bindEvents();
|
|
8064
|
-
|
|
8064
|
+
cov_461q4w6q2.s[12]++;
|
|
8065
8065
|
this.onInit();
|
|
8066
8066
|
} // Remove plugin instance completely
|
|
8067
8067
|
;
|
|
8068
8068
|
|
|
8069
8069
|
_proto.destroy = function destroy() {
|
|
8070
|
-
|
|
8071
|
-
|
|
8070
|
+
cov_461q4w6q2.f[2]++;
|
|
8071
|
+
cov_461q4w6q2.s[13]++;
|
|
8072
8072
|
this.unbindEvents();
|
|
8073
|
-
|
|
8073
|
+
cov_461q4w6q2.s[14]++;
|
|
8074
8074
|
this.$el.removeData(DATA_KEY);
|
|
8075
|
-
|
|
8075
|
+
cov_461q4w6q2.s[15]++;
|
|
8076
8076
|
this.onDestroy();
|
|
8077
8077
|
} // Update plugin data
|
|
8078
8078
|
;
|
|
8079
8079
|
|
|
8080
8080
|
_proto.update = function update() {
|
|
8081
|
-
|
|
8082
|
-
|
|
8081
|
+
cov_461q4w6q2.f[3]++;
|
|
8082
|
+
cov_461q4w6q2.s[16]++;
|
|
8083
8083
|
this.buildCache();
|
|
8084
|
-
|
|
8084
|
+
cov_461q4w6q2.s[17]++;
|
|
8085
8085
|
this.onUpdate();
|
|
8086
8086
|
} // Cache DOM nodes for performance
|
|
8087
8087
|
;
|
|
8088
8088
|
|
|
8089
8089
|
_proto.buildCache = function buildCache() {
|
|
8090
|
-
|
|
8091
|
-
|
|
8090
|
+
cov_461q4w6q2.f[4]++;
|
|
8091
|
+
cov_461q4w6q2.s[18]++;
|
|
8092
8092
|
this.$el = $(this.el);
|
|
8093
|
-
|
|
8094
|
-
this.$container = this.$el.data('container') ? (
|
|
8095
|
-
|
|
8093
|
+
cov_461q4w6q2.s[19]++;
|
|
8094
|
+
this.$container = this.$el.data('container') ? (cov_461q4w6q2.b[1][0]++, $(this.$el.data('container'))) : (cov_461q4w6q2.b[1][1]++, $(this.opts.container));
|
|
8095
|
+
cov_461q4w6q2.s[20]++;
|
|
8096
8096
|
this.id = 'popover-' + this.generateUUID();
|
|
8097
|
-
|
|
8098
|
-
this.animation = this.$el.data('animation') ? (
|
|
8099
|
-
|
|
8100
|
-
this.animationIn = this.$el.data('animationIn') ? (
|
|
8101
|
-
|
|
8102
|
-
this.animationOut = this.$el.data('animationOut') ? (
|
|
8103
|
-
|
|
8104
|
-
this.animationSpeed = this.$el.data('animationSpeed') ? (
|
|
8105
|
-
|
|
8106
|
-
this.trigger = this.$el.data('trigger') ? (
|
|
8107
|
-
|
|
8108
|
-
this.placement = this.$el.data('placement') ? (
|
|
8109
|
-
|
|
8097
|
+
cov_461q4w6q2.s[21]++;
|
|
8098
|
+
this.animation = this.$el.data('animation') ? (cov_461q4w6q2.b[2][0]++, this.$el.data('animation')) : (cov_461q4w6q2.b[2][1]++, this.opts.animation);
|
|
8099
|
+
cov_461q4w6q2.s[22]++;
|
|
8100
|
+
this.animationIn = this.$el.data('animationIn') ? (cov_461q4w6q2.b[3][0]++, this.$el.data('animationIn')) : (cov_461q4w6q2.b[3][1]++, this.opts.animationIn);
|
|
8101
|
+
cov_461q4w6q2.s[23]++;
|
|
8102
|
+
this.animationOut = this.$el.data('animationOut') ? (cov_461q4w6q2.b[4][0]++, this.$el.data('animationOut')) : (cov_461q4w6q2.b[4][1]++, this.opts.animationOut);
|
|
8103
|
+
cov_461q4w6q2.s[24]++;
|
|
8104
|
+
this.animationSpeed = this.$el.data('animationSpeed') ? (cov_461q4w6q2.b[5][0]++, this.$el.data('animationSpeed')) : (cov_461q4w6q2.b[5][1]++, this.opts.animationSpeed);
|
|
8105
|
+
cov_461q4w6q2.s[25]++;
|
|
8106
|
+
this.trigger = this.$el.data('trigger') ? (cov_461q4w6q2.b[6][0]++, this.$el.data('trigger')) : (cov_461q4w6q2.b[6][1]++, this.opts.trigger);
|
|
8107
|
+
cov_461q4w6q2.s[26]++;
|
|
8108
|
+
this.placement = this.$el.data('placement') ? (cov_461q4w6q2.b[7][0]++, this.$el.data('placement')) : (cov_461q4w6q2.b[7][1]++, this.opts.placement);
|
|
8109
|
+
cov_461q4w6q2.s[27]++;
|
|
8110
8110
|
this.placementChanged = false;
|
|
8111
|
-
|
|
8112
|
-
this.title = this.$el.data('title') ? (
|
|
8113
|
-
|
|
8114
|
-
this.content = this.$el.data('content') ? (
|
|
8111
|
+
cov_461q4w6q2.s[28]++;
|
|
8112
|
+
this.title = this.$el.data('title') ? (cov_461q4w6q2.b[8][0]++, this.$el.data('title')) : (cov_461q4w6q2.b[8][1]++, this.opts.title);
|
|
8113
|
+
cov_461q4w6q2.s[29]++;
|
|
8114
|
+
this.content = this.$el.data('content') ? (cov_461q4w6q2.b[9][0]++, this.$el.data('content')) : (cov_461q4w6q2.b[9][1]++, this.opts.content);
|
|
8115
8115
|
} // Bind events that trigger methods
|
|
8116
8116
|
;
|
|
8117
8117
|
|
|
8118
8118
|
_proto.bindEvents = function bindEvents() {
|
|
8119
8119
|
var _this2 = this;
|
|
8120
8120
|
|
|
8121
|
-
|
|
8122
|
-
|
|
8121
|
+
cov_461q4w6q2.f[5]++;
|
|
8122
|
+
cov_461q4w6q2.s[30]++;
|
|
8123
8123
|
|
|
8124
8124
|
if (this.trigger === 'click') {
|
|
8125
|
-
|
|
8126
|
-
|
|
8125
|
+
cov_461q4w6q2.b[10][0]++;
|
|
8126
|
+
cov_461q4w6q2.s[31]++;
|
|
8127
8127
|
this.$el.on('click' + '.' + NAME, function () {
|
|
8128
|
-
|
|
8129
|
-
|
|
8128
|
+
cov_461q4w6q2.f[6]++;
|
|
8129
|
+
cov_461q4w6q2.s[32]++;
|
|
8130
8130
|
|
|
8131
8131
|
if (_this2.$popover) {
|
|
8132
|
-
|
|
8133
|
-
|
|
8132
|
+
cov_461q4w6q2.b[11][0]++;
|
|
8133
|
+
cov_461q4w6q2.s[33]++;
|
|
8134
8134
|
|
|
8135
8135
|
_this2.close();
|
|
8136
8136
|
} else {
|
|
8137
|
-
|
|
8138
|
-
|
|
8137
|
+
cov_461q4w6q2.b[11][1]++;
|
|
8138
|
+
cov_461q4w6q2.s[34]++;
|
|
8139
8139
|
|
|
8140
8140
|
_this2.show();
|
|
8141
8141
|
}
|
|
8142
8142
|
});
|
|
8143
8143
|
} else {
|
|
8144
|
-
|
|
8145
|
-
|
|
8144
|
+
cov_461q4w6q2.b[10][1]++;
|
|
8145
|
+
cov_461q4w6q2.s[35]++;
|
|
8146
8146
|
|
|
8147
8147
|
if (this.trigger === 'hover') {
|
|
8148
|
-
|
|
8149
|
-
|
|
8148
|
+
cov_461q4w6q2.b[12][0]++;
|
|
8149
|
+
cov_461q4w6q2.s[36]++;
|
|
8150
8150
|
this.$el.on('mouseenter' + '.' + NAME, function () {
|
|
8151
|
-
|
|
8152
|
-
|
|
8151
|
+
cov_461q4w6q2.f[7]++;
|
|
8152
|
+
cov_461q4w6q2.s[37]++;
|
|
8153
8153
|
|
|
8154
8154
|
_this2.show();
|
|
8155
8155
|
});
|
|
8156
|
-
|
|
8156
|
+
cov_461q4w6q2.s[38]++;
|
|
8157
8157
|
this.$el.on('mouseleave' + '.' + NAME, function () {
|
|
8158
|
-
|
|
8159
|
-
|
|
8158
|
+
cov_461q4w6q2.f[8]++;
|
|
8159
|
+
cov_461q4w6q2.s[39]++;
|
|
8160
8160
|
|
|
8161
8161
|
_this2.close();
|
|
8162
8162
|
});
|
|
8163
8163
|
} else {
|
|
8164
|
-
|
|
8165
|
-
|
|
8164
|
+
cov_461q4w6q2.b[12][1]++;
|
|
8165
|
+
cov_461q4w6q2.s[40]++;
|
|
8166
8166
|
|
|
8167
8167
|
if (this.trigger === 'focus') {
|
|
8168
|
-
|
|
8169
|
-
|
|
8168
|
+
cov_461q4w6q2.b[13][0]++;
|
|
8169
|
+
cov_461q4w6q2.s[41]++;
|
|
8170
8170
|
this.$el.on('focusin' + '.' + NAME, function () {
|
|
8171
|
-
|
|
8172
|
-
|
|
8171
|
+
cov_461q4w6q2.f[9]++;
|
|
8172
|
+
cov_461q4w6q2.s[42]++;
|
|
8173
8173
|
|
|
8174
8174
|
_this2.show();
|
|
8175
8175
|
});
|
|
8176
|
-
|
|
8176
|
+
cov_461q4w6q2.s[43]++;
|
|
8177
8177
|
this.$el.on('focusout' + '.' + NAME, function () {
|
|
8178
|
-
|
|
8179
|
-
|
|
8178
|
+
cov_461q4w6q2.f[10]++;
|
|
8179
|
+
cov_461q4w6q2.s[44]++;
|
|
8180
8180
|
|
|
8181
8181
|
_this2.close();
|
|
8182
8182
|
});
|
|
8183
8183
|
} else {
|
|
8184
|
-
|
|
8184
|
+
cov_461q4w6q2.b[13][1]++;
|
|
8185
8185
|
}
|
|
8186
8186
|
}
|
|
8187
8187
|
}
|
|
8188
8188
|
|
|
8189
|
-
|
|
8189
|
+
cov_461q4w6q2.s[45]++;
|
|
8190
8190
|
$(window).on('resize', debounce(function () {
|
|
8191
|
-
|
|
8192
|
-
|
|
8191
|
+
cov_461q4w6q2.f[11]++;
|
|
8192
|
+
cov_461q4w6q2.s[46]++;
|
|
8193
8193
|
|
|
8194
8194
|
if (_this2.$popover) {
|
|
8195
|
-
|
|
8196
|
-
|
|
8195
|
+
cov_461q4w6q2.b[14][0]++;
|
|
8196
|
+
cov_461q4w6q2.s[47]++;
|
|
8197
8197
|
|
|
8198
8198
|
_this2.setPosition();
|
|
8199
8199
|
|
|
8200
|
-
|
|
8200
|
+
cov_461q4w6q2.s[48]++;
|
|
8201
8201
|
|
|
8202
8202
|
_this2.onUpdate();
|
|
8203
8203
|
} else {
|
|
8204
|
-
|
|
8204
|
+
cov_461q4w6q2.b[14][1]++;
|
|
8205
8205
|
}
|
|
8206
8206
|
}, 250));
|
|
8207
8207
|
} // Unbind events that trigger methods
|
|
8208
8208
|
;
|
|
8209
8209
|
|
|
8210
8210
|
_proto.unbindEvents = function unbindEvents() {
|
|
8211
|
-
|
|
8212
|
-
|
|
8211
|
+
cov_461q4w6q2.f[12]++;
|
|
8212
|
+
cov_461q4w6q2.s[49]++;
|
|
8213
8213
|
this.$el.off('.' + NAME);
|
|
8214
8214
|
} // Generate UUID
|
|
8215
8215
|
;
|
|
8216
8216
|
|
|
8217
8217
|
_proto.generateUUID = function generateUUID() {
|
|
8218
|
-
|
|
8219
|
-
|
|
8218
|
+
cov_461q4w6q2.f[13]++;
|
|
8219
|
+
cov_461q4w6q2.s[50]++;
|
|
8220
8220
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
8221
|
-
|
|
8222
|
-
var r = (
|
|
8223
|
-
v = (
|
|
8224
|
-
|
|
8221
|
+
cov_461q4w6q2.f[14]++;
|
|
8222
|
+
var r = (cov_461q4w6q2.s[51]++, Math.random() * 16 | 0),
|
|
8223
|
+
v = (cov_461q4w6q2.s[52]++, c == 'x' ? (cov_461q4w6q2.b[15][0]++, r) : (cov_461q4w6q2.b[15][1]++, r & 0x3 | 0x8));
|
|
8224
|
+
cov_461q4w6q2.s[53]++;
|
|
8225
8225
|
return v.toString(16);
|
|
8226
8226
|
});
|
|
8227
8227
|
} // Build popover
|
|
8228
8228
|
;
|
|
8229
8229
|
|
|
8230
8230
|
_proto.buildPopover = function buildPopover() {
|
|
8231
|
-
|
|
8231
|
+
cov_461q4w6q2.f[15]++;
|
|
8232
8232
|
var content;
|
|
8233
|
-
|
|
8233
|
+
cov_461q4w6q2.s[54]++;
|
|
8234
8234
|
|
|
8235
8235
|
if (typeof this.content === 'function') {
|
|
8236
|
-
|
|
8237
|
-
|
|
8236
|
+
cov_461q4w6q2.b[16][0]++;
|
|
8237
|
+
cov_461q4w6q2.s[55]++;
|
|
8238
8238
|
content = this.content();
|
|
8239
8239
|
} else {
|
|
8240
|
-
|
|
8241
|
-
|
|
8240
|
+
cov_461q4w6q2.b[16][1]++;
|
|
8241
|
+
cov_461q4w6q2.s[56]++;
|
|
8242
8242
|
content = this.content;
|
|
8243
8243
|
}
|
|
8244
8244
|
|
|
8245
|
-
|
|
8245
|
+
cov_461q4w6q2.s[57]++;
|
|
8246
8246
|
this.$popover = $("\n \t\t<div class=\"popover\" role=\"tooltip\" id=\"" + this.id + "\">\n\n\t\t\t <div class=\"arrow\"></div>\n\n\t\t\t <h3 class=\"popover-header\">" + this.title + "</h3>\n\n\t\t\t <div class=\"popover-body\">" + content + "</div>\n\n\t\t\t</div>\n \t");
|
|
8247
|
-
|
|
8247
|
+
cov_461q4w6q2.s[58]++;
|
|
8248
8248
|
this.$container.append(this.$popover);
|
|
8249
|
-
|
|
8250
|
-
this.$arrow = this.$popover.find('.arrow') ? (
|
|
8251
|
-
|
|
8249
|
+
cov_461q4w6q2.s[59]++;
|
|
8250
|
+
this.$arrow = this.$popover.find('.arrow') ? (cov_461q4w6q2.b[17][0]++, this.$popover.find('.arrow')) : (cov_461q4w6q2.b[17][1]++, false);
|
|
8251
|
+
cov_461q4w6q2.s[60]++;
|
|
8252
8252
|
this.log(this.$el);
|
|
8253
|
-
|
|
8253
|
+
cov_461q4w6q2.s[61]++;
|
|
8254
8254
|
this.log(this.$container);
|
|
8255
|
-
|
|
8255
|
+
cov_461q4w6q2.s[62]++;
|
|
8256
8256
|
this.log(this.$popover);
|
|
8257
|
-
|
|
8257
|
+
cov_461q4w6q2.s[63]++;
|
|
8258
8258
|
this.log(this.$arrow);
|
|
8259
|
-
|
|
8259
|
+
cov_461q4w6q2.s[64]++;
|
|
8260
8260
|
this.log('Id: ' + this.id);
|
|
8261
|
-
|
|
8261
|
+
cov_461q4w6q2.s[65]++;
|
|
8262
8262
|
this.log('Trigger: ' + this.trigger);
|
|
8263
|
-
|
|
8263
|
+
cov_461q4w6q2.s[66]++;
|
|
8264
8264
|
this.log('Placement: ' + this.placement);
|
|
8265
|
-
|
|
8265
|
+
cov_461q4w6q2.s[67]++;
|
|
8266
8266
|
this.log('Animation: ' + this.animation);
|
|
8267
|
-
|
|
8267
|
+
cov_461q4w6q2.s[68]++;
|
|
8268
8268
|
this.log('Animation in: ' + this.animationIn);
|
|
8269
|
-
|
|
8269
|
+
cov_461q4w6q2.s[69]++;
|
|
8270
8270
|
this.log('Animation out: ' + this.animationOut);
|
|
8271
|
-
|
|
8271
|
+
cov_461q4w6q2.s[70]++;
|
|
8272
8272
|
this.log('Animation speed: ' + this.animationSpeed);
|
|
8273
|
-
|
|
8273
|
+
cov_461q4w6q2.s[71]++;
|
|
8274
8274
|
this.log('Title: ' + this.title);
|
|
8275
|
-
|
|
8275
|
+
cov_461q4w6q2.s[72]++;
|
|
8276
8276
|
this.log('Content: ' + this.content);
|
|
8277
8277
|
} // Set positions
|
|
8278
8278
|
;
|
|
8279
8279
|
|
|
8280
8280
|
_proto.setPosition = function setPosition(placement) {
|
|
8281
|
-
|
|
8282
|
-
|
|
8281
|
+
cov_461q4w6q2.f[16]++;
|
|
8282
|
+
cov_461q4w6q2.s[73]++;
|
|
8283
8283
|
|
|
8284
|
-
if ((
|
|
8285
|
-
|
|
8286
|
-
|
|
8284
|
+
if ((cov_461q4w6q2.b[19][0]++, typeof placement === 'undefined') || (cov_461q4w6q2.b[19][1]++, placement === null)) {
|
|
8285
|
+
cov_461q4w6q2.b[18][0]++;
|
|
8286
|
+
cov_461q4w6q2.s[74]++;
|
|
8287
8287
|
placement = this.placement;
|
|
8288
8288
|
} else {
|
|
8289
|
-
|
|
8289
|
+
cov_461q4w6q2.b[18][1]++;
|
|
8290
8290
|
}
|
|
8291
8291
|
|
|
8292
|
-
|
|
8292
|
+
cov_461q4w6q2.s[75]++;
|
|
8293
8293
|
this.$popover.addClass('popover-' + placement);
|
|
8294
|
-
var containerInnerWidth = (
|
|
8295
|
-
var containerInnerHeight = (
|
|
8296
|
-
var popoverWidth = (
|
|
8297
|
-
var popoverHeight = (
|
|
8298
|
-
var popoverTriggerWidth = (
|
|
8299
|
-
var popoverTriggerHeight = (
|
|
8300
|
-
var popoverTriggerPosX = (
|
|
8301
|
-
var popoverTriggerPosY = (
|
|
8302
|
-
var arrowWidth = (
|
|
8303
|
-
var arrowHeight = (
|
|
8294
|
+
var containerInnerWidth = (cov_461q4w6q2.s[76]++, this.$container.innerWidth());
|
|
8295
|
+
var containerInnerHeight = (cov_461q4w6q2.s[77]++, this.$container.innerHeight());
|
|
8296
|
+
var popoverWidth = (cov_461q4w6q2.s[78]++, this.$popover.outerWidth(true));
|
|
8297
|
+
var popoverHeight = (cov_461q4w6q2.s[79]++, this.$popover.outerHeight(true));
|
|
8298
|
+
var popoverTriggerWidth = (cov_461q4w6q2.s[80]++, this.$el.outerWidth());
|
|
8299
|
+
var popoverTriggerHeight = (cov_461q4w6q2.s[81]++, this.$el.outerHeight());
|
|
8300
|
+
var popoverTriggerPosX = (cov_461q4w6q2.s[82]++, this.$el.position().left);
|
|
8301
|
+
var popoverTriggerPosY = (cov_461q4w6q2.s[83]++, this.$el.position().top);
|
|
8302
|
+
var arrowWidth = (cov_461q4w6q2.s[84]++, this.$arrow.outerWidth(true));
|
|
8303
|
+
var arrowHeight = (cov_461q4w6q2.s[85]++, this.$arrow.outerHeight(true));
|
|
8304
8304
|
var arrowPos;
|
|
8305
8305
|
var popoverPosX;
|
|
8306
8306
|
var popoverPosY;
|
|
8307
|
-
|
|
8307
|
+
cov_461q4w6q2.s[86]++;
|
|
8308
8308
|
|
|
8309
8309
|
if (placement === 'top') {
|
|
8310
|
-
|
|
8311
|
-
|
|
8310
|
+
cov_461q4w6q2.b[20][0]++;
|
|
8311
|
+
cov_461q4w6q2.s[87]++;
|
|
8312
8312
|
popoverPosX = Math.round(popoverTriggerPosX - (popoverWidth - popoverTriggerWidth) / 2);
|
|
8313
|
-
|
|
8313
|
+
cov_461q4w6q2.s[88]++;
|
|
8314
8314
|
popoverPosY = Math.round(popoverTriggerPosY - popoverHeight);
|
|
8315
|
-
|
|
8315
|
+
cov_461q4w6q2.s[89]++;
|
|
8316
8316
|
arrowPos = Math.round(popoverWidth / 2 - arrowWidth / 2);
|
|
8317
|
-
|
|
8317
|
+
cov_461q4w6q2.s[90]++;
|
|
8318
8318
|
this.$arrow.css({
|
|
8319
8319
|
left: arrowPos + 'px'
|
|
8320
8320
|
});
|
|
8321
8321
|
} else {
|
|
8322
|
-
|
|
8323
|
-
|
|
8322
|
+
cov_461q4w6q2.b[20][1]++;
|
|
8323
|
+
cov_461q4w6q2.s[91]++;
|
|
8324
8324
|
|
|
8325
8325
|
if (placement === 'right') {
|
|
8326
|
-
|
|
8327
|
-
|
|
8326
|
+
cov_461q4w6q2.b[21][0]++;
|
|
8327
|
+
cov_461q4w6q2.s[92]++;
|
|
8328
8328
|
popoverPosX = Math.round(popoverTriggerPosX + popoverTriggerWidth);
|
|
8329
|
-
|
|
8329
|
+
cov_461q4w6q2.s[93]++;
|
|
8330
8330
|
popoverPosY = Math.round(popoverTriggerPosY - (popoverHeight - popoverTriggerHeight) / 2);
|
|
8331
|
-
|
|
8331
|
+
cov_461q4w6q2.s[94]++;
|
|
8332
8332
|
arrowPos = Math.round(popoverHeight / 2 - arrowHeight / 2);
|
|
8333
|
-
|
|
8333
|
+
cov_461q4w6q2.s[95]++;
|
|
8334
8334
|
this.$arrow.css({
|
|
8335
8335
|
top: arrowPos + 'px'
|
|
8336
8336
|
});
|
|
8337
8337
|
} else {
|
|
8338
|
-
|
|
8339
|
-
|
|
8338
|
+
cov_461q4w6q2.b[21][1]++;
|
|
8339
|
+
cov_461q4w6q2.s[96]++;
|
|
8340
8340
|
|
|
8341
8341
|
if (placement === 'bottom') {
|
|
8342
|
-
|
|
8343
|
-
|
|
8342
|
+
cov_461q4w6q2.b[22][0]++;
|
|
8343
|
+
cov_461q4w6q2.s[97]++;
|
|
8344
8344
|
popoverPosX = Math.round(popoverTriggerPosX - (popoverWidth - popoverTriggerWidth) / 2);
|
|
8345
|
-
|
|
8345
|
+
cov_461q4w6q2.s[98]++;
|
|
8346
8346
|
popoverPosY = Math.round(popoverTriggerPosY + popoverTriggerHeight);
|
|
8347
|
-
|
|
8347
|
+
cov_461q4w6q2.s[99]++;
|
|
8348
8348
|
arrowPos = Math.round(popoverWidth / 2 - arrowWidth / 2);
|
|
8349
|
-
|
|
8349
|
+
cov_461q4w6q2.s[100]++;
|
|
8350
8350
|
this.$arrow.css({
|
|
8351
8351
|
left: arrowPos + 'px'
|
|
8352
8352
|
});
|
|
8353
8353
|
} else {
|
|
8354
|
-
|
|
8355
|
-
|
|
8354
|
+
cov_461q4w6q2.b[22][1]++;
|
|
8355
|
+
cov_461q4w6q2.s[101]++;
|
|
8356
8356
|
|
|
8357
8357
|
if (placement === 'left') {
|
|
8358
|
-
|
|
8359
|
-
|
|
8358
|
+
cov_461q4w6q2.b[23][0]++;
|
|
8359
|
+
cov_461q4w6q2.s[102]++;
|
|
8360
8360
|
popoverPosX = Math.round(popoverTriggerPosX - popoverWidth);
|
|
8361
|
-
|
|
8361
|
+
cov_461q4w6q2.s[103]++;
|
|
8362
8362
|
popoverPosY = Math.round(popoverTriggerPosY - (popoverHeight - popoverTriggerHeight) / 2);
|
|
8363
|
-
|
|
8363
|
+
cov_461q4w6q2.s[104]++;
|
|
8364
8364
|
arrowPos = Math.round(popoverHeight / 2 - arrowHeight / 2);
|
|
8365
|
-
|
|
8365
|
+
cov_461q4w6q2.s[105]++;
|
|
8366
8366
|
this.$arrow.css({
|
|
8367
8367
|
top: arrowPos + 'px'
|
|
8368
8368
|
});
|
|
8369
8369
|
} else {
|
|
8370
|
-
|
|
8370
|
+
cov_461q4w6q2.b[23][1]++;
|
|
8371
8371
|
}
|
|
8372
8372
|
}
|
|
8373
8373
|
}
|
|
8374
8374
|
}
|
|
8375
8375
|
|
|
8376
|
-
|
|
8376
|
+
cov_461q4w6q2.s[106]++;
|
|
8377
8377
|
this.$popover.css({
|
|
8378
8378
|
position: 'absolute',
|
|
8379
8379
|
top: '0px',
|
|
@@ -8382,177 +8382,177 @@
|
|
|
8382
8382
|
'will-change': 'transform'
|
|
8383
8383
|
}); // Correct placement if popover goes outside of container
|
|
8384
8384
|
|
|
8385
|
-
var popoverOverflowCount = (
|
|
8386
|
-
var popoverPosition = (
|
|
8385
|
+
var popoverOverflowCount = (cov_461q4w6q2.s[107]++, 0);
|
|
8386
|
+
var popoverPosition = (cov_461q4w6q2.s[108]++, {
|
|
8387
8387
|
left: this.$popover.position().left,
|
|
8388
8388
|
top: this.$popover.position().top,
|
|
8389
8389
|
right: containerInnerWidth - (this.$popover.position().left + popoverWidth),
|
|
8390
8390
|
bottom: containerInnerHeight - (this.$popover.position().top + popoverHeight)
|
|
8391
8391
|
});
|
|
8392
|
-
var popoverOverflow = (
|
|
8392
|
+
var popoverOverflow = (cov_461q4w6q2.s[109]++, {
|
|
8393
8393
|
left: false,
|
|
8394
8394
|
top: false,
|
|
8395
8395
|
right: false,
|
|
8396
8396
|
bottom: false
|
|
8397
8397
|
});
|
|
8398
|
-
|
|
8398
|
+
cov_461q4w6q2.s[110]++;
|
|
8399
8399
|
|
|
8400
8400
|
if (popoverPosition.right < 0) {
|
|
8401
|
-
|
|
8402
|
-
|
|
8401
|
+
cov_461q4w6q2.b[24][0]++;
|
|
8402
|
+
cov_461q4w6q2.s[111]++;
|
|
8403
8403
|
popoverOverflow.right = true;
|
|
8404
|
-
|
|
8404
|
+
cov_461q4w6q2.s[112]++;
|
|
8405
8405
|
popoverOverflowCount++;
|
|
8406
|
-
|
|
8406
|
+
cov_461q4w6q2.s[113]++;
|
|
8407
8407
|
this.log('Popover overflowing from right');
|
|
8408
8408
|
} else {
|
|
8409
|
-
|
|
8409
|
+
cov_461q4w6q2.b[24][1]++;
|
|
8410
8410
|
}
|
|
8411
8411
|
|
|
8412
|
-
|
|
8412
|
+
cov_461q4w6q2.s[114]++;
|
|
8413
8413
|
|
|
8414
8414
|
if (popoverPosition.left < 0) {
|
|
8415
|
-
|
|
8416
|
-
|
|
8415
|
+
cov_461q4w6q2.b[25][0]++;
|
|
8416
|
+
cov_461q4w6q2.s[115]++;
|
|
8417
8417
|
popoverOverflow.left = true;
|
|
8418
|
-
|
|
8418
|
+
cov_461q4w6q2.s[116]++;
|
|
8419
8419
|
popoverOverflowCount++;
|
|
8420
|
-
|
|
8420
|
+
cov_461q4w6q2.s[117]++;
|
|
8421
8421
|
this.log('Popover overflowing from left');
|
|
8422
8422
|
} else {
|
|
8423
|
-
|
|
8423
|
+
cov_461q4w6q2.b[25][1]++;
|
|
8424
8424
|
}
|
|
8425
8425
|
|
|
8426
|
-
|
|
8426
|
+
cov_461q4w6q2.s[118]++;
|
|
8427
8427
|
|
|
8428
8428
|
if (popoverPosition.bottom < 0) {
|
|
8429
|
-
|
|
8430
|
-
|
|
8429
|
+
cov_461q4w6q2.b[26][0]++;
|
|
8430
|
+
cov_461q4w6q2.s[119]++;
|
|
8431
8431
|
popoverOverflow.bottom = true;
|
|
8432
|
-
|
|
8432
|
+
cov_461q4w6q2.s[120]++;
|
|
8433
8433
|
popoverOverflowCount++;
|
|
8434
|
-
|
|
8434
|
+
cov_461q4w6q2.s[121]++;
|
|
8435
8435
|
this.log('Popover overflowing from bottom');
|
|
8436
8436
|
} else {
|
|
8437
|
-
|
|
8437
|
+
cov_461q4w6q2.b[26][1]++;
|
|
8438
8438
|
}
|
|
8439
8439
|
|
|
8440
|
-
|
|
8440
|
+
cov_461q4w6q2.s[122]++;
|
|
8441
8441
|
|
|
8442
8442
|
if (popoverPosition.top < 0) {
|
|
8443
|
-
|
|
8444
|
-
|
|
8443
|
+
cov_461q4w6q2.b[27][0]++;
|
|
8444
|
+
cov_461q4w6q2.s[123]++;
|
|
8445
8445
|
popoverOverflow.top = true;
|
|
8446
|
-
|
|
8446
|
+
cov_461q4w6q2.s[124]++;
|
|
8447
8447
|
popoverOverflowCount++;
|
|
8448
|
-
|
|
8448
|
+
cov_461q4w6q2.s[125]++;
|
|
8449
8449
|
this.log('Popover overflowing from top');
|
|
8450
8450
|
} else {
|
|
8451
|
-
|
|
8451
|
+
cov_461q4w6q2.b[27][1]++;
|
|
8452
8452
|
}
|
|
8453
8453
|
|
|
8454
|
-
|
|
8454
|
+
cov_461q4w6q2.s[126]++;
|
|
8455
8455
|
|
|
8456
8456
|
if (popoverOverflowCount > 0) {
|
|
8457
|
-
|
|
8458
|
-
|
|
8457
|
+
cov_461q4w6q2.b[28][0]++;
|
|
8458
|
+
cov_461q4w6q2.s[127]++;
|
|
8459
8459
|
|
|
8460
|
-
if ((
|
|
8461
|
-
|
|
8462
|
-
|
|
8460
|
+
if ((cov_461q4w6q2.b[30][0]++, !this.placementChanged) && (cov_461q4w6q2.b[30][1]++, popoverOverflow.left) && (cov_461q4w6q2.b[30][2]++, popoverPosition.right > popoverWidth)) {
|
|
8461
|
+
cov_461q4w6q2.b[29][0]++;
|
|
8462
|
+
cov_461q4w6q2.s[128]++;
|
|
8463
8463
|
this.log('Changing popover placement to right');
|
|
8464
|
-
|
|
8464
|
+
cov_461q4w6q2.s[129]++;
|
|
8465
8465
|
this.placementChanged = true;
|
|
8466
|
-
|
|
8466
|
+
cov_461q4w6q2.s[130]++;
|
|
8467
8467
|
this.$popover.removeClass('popover-' + placement);
|
|
8468
|
-
|
|
8468
|
+
cov_461q4w6q2.s[131]++;
|
|
8469
8469
|
this.$arrow.removeAttr('style');
|
|
8470
|
-
|
|
8470
|
+
cov_461q4w6q2.s[132]++;
|
|
8471
8471
|
this.setPosition('right');
|
|
8472
8472
|
} else {
|
|
8473
|
-
|
|
8474
|
-
|
|
8473
|
+
cov_461q4w6q2.b[29][1]++;
|
|
8474
|
+
cov_461q4w6q2.s[133]++;
|
|
8475
8475
|
|
|
8476
|
-
if ((
|
|
8477
|
-
|
|
8478
|
-
|
|
8476
|
+
if ((cov_461q4w6q2.b[32][0]++, !this.placementChanged) && (cov_461q4w6q2.b[32][1]++, popoverOverflow.top) && (cov_461q4w6q2.b[32][2]++, popoverPosition.top > popoverHeight)) {
|
|
8477
|
+
cov_461q4w6q2.b[31][0]++;
|
|
8478
|
+
cov_461q4w6q2.s[134]++;
|
|
8479
8479
|
this.log('Changing popover placement to bottom');
|
|
8480
|
-
|
|
8480
|
+
cov_461q4w6q2.s[135]++;
|
|
8481
8481
|
this.placementChanged = true;
|
|
8482
|
-
|
|
8482
|
+
cov_461q4w6q2.s[136]++;
|
|
8483
8483
|
this.$popover.removeClass('popover-' + placement);
|
|
8484
|
-
|
|
8484
|
+
cov_461q4w6q2.s[137]++;
|
|
8485
8485
|
this.$arrow.removeAttr('style');
|
|
8486
|
-
|
|
8486
|
+
cov_461q4w6q2.s[138]++;
|
|
8487
8487
|
this.setPosition('bottom');
|
|
8488
8488
|
} else {
|
|
8489
|
-
|
|
8490
|
-
|
|
8489
|
+
cov_461q4w6q2.b[31][1]++;
|
|
8490
|
+
cov_461q4w6q2.s[139]++;
|
|
8491
8491
|
|
|
8492
|
-
if ((
|
|
8493
|
-
|
|
8494
|
-
|
|
8492
|
+
if ((cov_461q4w6q2.b[34][0]++, !this.placementChanged) && (cov_461q4w6q2.b[34][1]++, popoverOverflow.right) && (cov_461q4w6q2.b[34][2]++, popoverPosition.left > popoverWidth)) {
|
|
8493
|
+
cov_461q4w6q2.b[33][0]++;
|
|
8494
|
+
cov_461q4w6q2.s[140]++;
|
|
8495
8495
|
this.log('Changing popover placement to left');
|
|
8496
|
-
|
|
8496
|
+
cov_461q4w6q2.s[141]++;
|
|
8497
8497
|
this.placementChanged = true;
|
|
8498
|
-
|
|
8498
|
+
cov_461q4w6q2.s[142]++;
|
|
8499
8499
|
this.$popover.removeClass('popover-' + placement);
|
|
8500
|
-
|
|
8500
|
+
cov_461q4w6q2.s[143]++;
|
|
8501
8501
|
this.$arrow.removeAttr('style');
|
|
8502
|
-
|
|
8502
|
+
cov_461q4w6q2.s[144]++;
|
|
8503
8503
|
this.setPosition('left');
|
|
8504
8504
|
} else {
|
|
8505
|
-
|
|
8506
|
-
|
|
8505
|
+
cov_461q4w6q2.b[33][1]++;
|
|
8506
|
+
cov_461q4w6q2.s[145]++;
|
|
8507
8507
|
|
|
8508
|
-
if ((
|
|
8509
|
-
|
|
8510
|
-
|
|
8508
|
+
if ((cov_461q4w6q2.b[36][0]++, !this.placementChanged) && (cov_461q4w6q2.b[36][1]++, popoverOverflow.bottom) && (cov_461q4w6q2.b[36][2]++, popoverPosition.top > popoverHeight)) {
|
|
8509
|
+
cov_461q4w6q2.b[35][0]++;
|
|
8510
|
+
cov_461q4w6q2.s[146]++;
|
|
8511
8511
|
this.log('Changing popover placement to top');
|
|
8512
|
-
|
|
8512
|
+
cov_461q4w6q2.s[147]++;
|
|
8513
8513
|
this.placementChanged = true;
|
|
8514
|
-
|
|
8514
|
+
cov_461q4w6q2.s[148]++;
|
|
8515
8515
|
this.$popover.removeClass('popover-' + placement);
|
|
8516
|
-
|
|
8516
|
+
cov_461q4w6q2.s[149]++;
|
|
8517
8517
|
this.$arrow.removeAttr('style');
|
|
8518
|
-
|
|
8518
|
+
cov_461q4w6q2.s[150]++;
|
|
8519
8519
|
this.setPosition('top');
|
|
8520
8520
|
} else {
|
|
8521
|
-
|
|
8522
|
-
|
|
8521
|
+
cov_461q4w6q2.b[35][1]++;
|
|
8522
|
+
cov_461q4w6q2.s[151]++;
|
|
8523
8523
|
|
|
8524
|
-
if ((
|
|
8525
|
-
|
|
8526
|
-
|
|
8524
|
+
if ((cov_461q4w6q2.b[38][0]++, !this.placementChanged) && ((cov_461q4w6q2.b[38][1]++, placement !== 'top') || (cov_461q4w6q2.b[38][2]++, placement !== 'bottom')) && ((cov_461q4w6q2.b[38][3]++, popoverOverflow.left) || (cov_461q4w6q2.b[38][4]++, popoverOverflow.right))) {
|
|
8525
|
+
cov_461q4w6q2.b[37][0]++;
|
|
8526
|
+
cov_461q4w6q2.s[152]++;
|
|
8527
8527
|
|
|
8528
8528
|
if (popoverPosition.top > popoverPosition.bottom) {
|
|
8529
|
-
|
|
8530
|
-
|
|
8529
|
+
cov_461q4w6q2.b[39][0]++;
|
|
8530
|
+
cov_461q4w6q2.s[153]++;
|
|
8531
8531
|
this.log('Changing popover placement to top');
|
|
8532
|
-
|
|
8532
|
+
cov_461q4w6q2.s[154]++;
|
|
8533
8533
|
this.placementChanged = true;
|
|
8534
|
-
|
|
8534
|
+
cov_461q4w6q2.s[155]++;
|
|
8535
8535
|
this.$popover.removeClass('popover-' + placement);
|
|
8536
|
-
|
|
8536
|
+
cov_461q4w6q2.s[156]++;
|
|
8537
8537
|
this.$arrow.removeAttr('style');
|
|
8538
|
-
|
|
8538
|
+
cov_461q4w6q2.s[157]++;
|
|
8539
8539
|
this.setPosition('top');
|
|
8540
8540
|
} else {
|
|
8541
|
-
|
|
8542
|
-
|
|
8541
|
+
cov_461q4w6q2.b[39][1]++;
|
|
8542
|
+
cov_461q4w6q2.s[158]++;
|
|
8543
8543
|
this.log('Changing popover placement to bottom');
|
|
8544
|
-
|
|
8544
|
+
cov_461q4w6q2.s[159]++;
|
|
8545
8545
|
this.placementChanged = true;
|
|
8546
|
-
|
|
8546
|
+
cov_461q4w6q2.s[160]++;
|
|
8547
8547
|
this.$popover.removeClass('popover-' + placement);
|
|
8548
|
-
|
|
8548
|
+
cov_461q4w6q2.s[161]++;
|
|
8549
8549
|
this.$arrow.removeAttr('style');
|
|
8550
|
-
|
|
8550
|
+
cov_461q4w6q2.s[162]++;
|
|
8551
8551
|
this.setPosition('bottom');
|
|
8552
8552
|
}
|
|
8553
8553
|
} else {
|
|
8554
|
-
|
|
8555
|
-
|
|
8554
|
+
cov_461q4w6q2.b[37][1]++;
|
|
8555
|
+
cov_461q4w6q2.s[163]++;
|
|
8556
8556
|
this.fixPopoverPosition = true;
|
|
8557
8557
|
}
|
|
8558
8558
|
}
|
|
@@ -8560,275 +8560,275 @@
|
|
|
8560
8560
|
}
|
|
8561
8561
|
}
|
|
8562
8562
|
|
|
8563
|
-
|
|
8563
|
+
cov_461q4w6q2.s[164]++;
|
|
8564
8564
|
|
|
8565
8565
|
if (this.fixPopoverPosition) {
|
|
8566
|
-
|
|
8567
|
-
|
|
8566
|
+
cov_461q4w6q2.b[40][0]++;
|
|
8567
|
+
cov_461q4w6q2.s[165]++;
|
|
8568
8568
|
this.log('Adjusting popover size or position in order to popover fit in the container');
|
|
8569
|
-
|
|
8569
|
+
cov_461q4w6q2.s[166]++;
|
|
8570
8570
|
|
|
8571
8571
|
if (popoverOverflow.left) {
|
|
8572
|
-
|
|
8573
|
-
|
|
8572
|
+
cov_461q4w6q2.b[41][0]++;
|
|
8573
|
+
cov_461q4w6q2.s[167]++;
|
|
8574
8574
|
this.log('Popover overflowing from left');
|
|
8575
|
-
var overflowAmount = (
|
|
8576
|
-
var excludePlacements = (
|
|
8577
|
-
|
|
8575
|
+
var overflowAmount = (cov_461q4w6q2.s[168]++, Math.abs(popoverPosition.left));
|
|
8576
|
+
var excludePlacements = (cov_461q4w6q2.s[169]++, ['top', 'bottom']);
|
|
8577
|
+
cov_461q4w6q2.s[170]++;
|
|
8578
8578
|
|
|
8579
|
-
if ((
|
|
8580
|
-
|
|
8581
|
-
|
|
8579
|
+
if ((cov_461q4w6q2.b[43][0]++, popoverTriggerPosX >= popoverPosX + overflowAmount) && (cov_461q4w6q2.b[43][1]++, excludePlacements.indexOf(placement) < 0)) {
|
|
8580
|
+
cov_461q4w6q2.b[42][0]++;
|
|
8581
|
+
cov_461q4w6q2.s[171]++;
|
|
8582
8582
|
this.log('Popover adjusting width');
|
|
8583
|
-
|
|
8583
|
+
cov_461q4w6q2.s[172]++;
|
|
8584
8584
|
popoverWidth -= overflowAmount;
|
|
8585
|
-
|
|
8585
|
+
cov_461q4w6q2.s[173]++;
|
|
8586
8586
|
popoverPosX += overflowAmount;
|
|
8587
8587
|
} else {
|
|
8588
|
-
|
|
8589
|
-
|
|
8588
|
+
cov_461q4w6q2.b[42][1]++;
|
|
8589
|
+
cov_461q4w6q2.s[174]++;
|
|
8590
8590
|
this.log('Popover adjusting position x');
|
|
8591
|
-
|
|
8591
|
+
cov_461q4w6q2.s[175]++;
|
|
8592
8592
|
popoverPosX += overflowAmount;
|
|
8593
|
-
|
|
8593
|
+
cov_461q4w6q2.s[176]++;
|
|
8594
8594
|
arrowPos -= overflowAmount;
|
|
8595
8595
|
}
|
|
8596
8596
|
} else {
|
|
8597
|
-
|
|
8597
|
+
cov_461q4w6q2.b[41][1]++;
|
|
8598
8598
|
}
|
|
8599
8599
|
|
|
8600
|
-
|
|
8600
|
+
cov_461q4w6q2.s[177]++;
|
|
8601
8601
|
|
|
8602
8602
|
if (popoverOverflow.top) {
|
|
8603
|
-
|
|
8604
|
-
|
|
8603
|
+
cov_461q4w6q2.b[44][0]++;
|
|
8604
|
+
cov_461q4w6q2.s[178]++;
|
|
8605
8605
|
this.log('Popover overflowing from top');
|
|
8606
8606
|
|
|
8607
|
-
var _overflowAmount = (
|
|
8607
|
+
var _overflowAmount = (cov_461q4w6q2.s[179]++, Math.abs(popoverPosition.top));
|
|
8608
8608
|
|
|
8609
|
-
|
|
8609
|
+
cov_461q4w6q2.s[180]++;
|
|
8610
8610
|
this.log('Popover adjusting position y');
|
|
8611
|
-
|
|
8611
|
+
cov_461q4w6q2.s[181]++;
|
|
8612
8612
|
popoverPosY += _overflowAmount;
|
|
8613
|
-
|
|
8613
|
+
cov_461q4w6q2.s[182]++;
|
|
8614
8614
|
arrowPos -= _overflowAmount;
|
|
8615
8615
|
} else {
|
|
8616
|
-
|
|
8616
|
+
cov_461q4w6q2.b[44][1]++;
|
|
8617
8617
|
}
|
|
8618
8618
|
|
|
8619
|
-
|
|
8619
|
+
cov_461q4w6q2.s[183]++;
|
|
8620
8620
|
|
|
8621
8621
|
if (popoverOverflow.right) {
|
|
8622
|
-
|
|
8623
|
-
|
|
8622
|
+
cov_461q4w6q2.b[45][0]++;
|
|
8623
|
+
cov_461q4w6q2.s[184]++;
|
|
8624
8624
|
this.log('Popover overflowing from right');
|
|
8625
8625
|
|
|
8626
|
-
var _overflowAmount2 = (
|
|
8626
|
+
var _overflowAmount2 = (cov_461q4w6q2.s[185]++, Math.abs(popoverPosition.right));
|
|
8627
8627
|
|
|
8628
|
-
var _excludePlacements = (
|
|
8628
|
+
var _excludePlacements = (cov_461q4w6q2.s[186]++, ['top', 'bottom']);
|
|
8629
8629
|
|
|
8630
|
-
|
|
8630
|
+
cov_461q4w6q2.s[187]++;
|
|
8631
8631
|
|
|
8632
|
-
if ((
|
|
8633
|
-
|
|
8634
|
-
|
|
8632
|
+
if ((cov_461q4w6q2.b[47][0]++, popoverTriggerPosX <= popoverPosX - _overflowAmount2) && (cov_461q4w6q2.b[47][1]++, _excludePlacements.indexOf(placement) < 0)) {
|
|
8633
|
+
cov_461q4w6q2.b[46][0]++;
|
|
8634
|
+
cov_461q4w6q2.s[188]++;
|
|
8635
8635
|
this.log('Popover adjusting width');
|
|
8636
|
-
|
|
8636
|
+
cov_461q4w6q2.s[189]++;
|
|
8637
8637
|
popoverWidth -= _overflowAmount2;
|
|
8638
8638
|
} else {
|
|
8639
|
-
|
|
8640
|
-
|
|
8639
|
+
cov_461q4w6q2.b[46][1]++;
|
|
8640
|
+
cov_461q4w6q2.s[190]++;
|
|
8641
8641
|
this.log('Popover adjusting position x');
|
|
8642
|
-
|
|
8642
|
+
cov_461q4w6q2.s[191]++;
|
|
8643
8643
|
popoverPosX -= _overflowAmount2;
|
|
8644
|
-
|
|
8644
|
+
cov_461q4w6q2.s[192]++;
|
|
8645
8645
|
arrowPos += _overflowAmount2;
|
|
8646
8646
|
}
|
|
8647
8647
|
} else {
|
|
8648
|
-
|
|
8648
|
+
cov_461q4w6q2.b[45][1]++;
|
|
8649
8649
|
}
|
|
8650
8650
|
|
|
8651
|
-
|
|
8651
|
+
cov_461q4w6q2.s[193]++;
|
|
8652
8652
|
|
|
8653
8653
|
if (popoverOverflow.bottom) {
|
|
8654
|
-
|
|
8655
|
-
|
|
8654
|
+
cov_461q4w6q2.b[48][0]++;
|
|
8655
|
+
cov_461q4w6q2.s[194]++;
|
|
8656
8656
|
this.log('Popover overflowing from bottom');
|
|
8657
8657
|
|
|
8658
|
-
var _overflowAmount3 = (
|
|
8658
|
+
var _overflowAmount3 = (cov_461q4w6q2.s[195]++, Math.abs(popoverPosition.bottom));
|
|
8659
8659
|
|
|
8660
|
-
|
|
8660
|
+
cov_461q4w6q2.s[196]++;
|
|
8661
8661
|
this.log('Popover adjusting position y');
|
|
8662
|
-
|
|
8662
|
+
cov_461q4w6q2.s[197]++;
|
|
8663
8663
|
popoverPosY -= _overflowAmount3;
|
|
8664
|
-
|
|
8664
|
+
cov_461q4w6q2.s[198]++;
|
|
8665
8665
|
arrowPos += _overflowAmount3;
|
|
8666
8666
|
} else {
|
|
8667
|
-
|
|
8667
|
+
cov_461q4w6q2.b[48][1]++;
|
|
8668
8668
|
}
|
|
8669
8669
|
|
|
8670
|
-
|
|
8670
|
+
cov_461q4w6q2.s[199]++;
|
|
8671
8671
|
|
|
8672
8672
|
if (placement === 'top') {
|
|
8673
|
-
|
|
8674
|
-
|
|
8673
|
+
cov_461q4w6q2.b[49][0]++;
|
|
8674
|
+
cov_461q4w6q2.s[200]++;
|
|
8675
8675
|
this.$arrow.css({
|
|
8676
8676
|
left: arrowPos + 'px'
|
|
8677
8677
|
});
|
|
8678
8678
|
} else {
|
|
8679
|
-
|
|
8680
|
-
|
|
8679
|
+
cov_461q4w6q2.b[49][1]++;
|
|
8680
|
+
cov_461q4w6q2.s[201]++;
|
|
8681
8681
|
|
|
8682
8682
|
if (placement === 'right') {
|
|
8683
|
-
|
|
8684
|
-
|
|
8683
|
+
cov_461q4w6q2.b[50][0]++;
|
|
8684
|
+
cov_461q4w6q2.s[202]++;
|
|
8685
8685
|
this.$arrow.css({
|
|
8686
8686
|
top: arrowPos + 'px'
|
|
8687
8687
|
});
|
|
8688
8688
|
} else {
|
|
8689
|
-
|
|
8690
|
-
|
|
8689
|
+
cov_461q4w6q2.b[50][1]++;
|
|
8690
|
+
cov_461q4w6q2.s[203]++;
|
|
8691
8691
|
|
|
8692
8692
|
if (placement === 'bottom') {
|
|
8693
|
-
|
|
8694
|
-
|
|
8693
|
+
cov_461q4w6q2.b[51][0]++;
|
|
8694
|
+
cov_461q4w6q2.s[204]++;
|
|
8695
8695
|
this.$arrow.css({
|
|
8696
8696
|
left: arrowPos + 'px'
|
|
8697
8697
|
});
|
|
8698
8698
|
} else {
|
|
8699
|
-
|
|
8700
|
-
|
|
8699
|
+
cov_461q4w6q2.b[51][1]++;
|
|
8700
|
+
cov_461q4w6q2.s[205]++;
|
|
8701
8701
|
|
|
8702
8702
|
if (placement === 'left') {
|
|
8703
|
-
|
|
8704
|
-
|
|
8703
|
+
cov_461q4w6q2.b[52][0]++;
|
|
8704
|
+
cov_461q4w6q2.s[206]++;
|
|
8705
8705
|
this.$arrow.css({
|
|
8706
8706
|
top: arrowPos + 'px'
|
|
8707
8707
|
});
|
|
8708
8708
|
} else {
|
|
8709
|
-
|
|
8709
|
+
cov_461q4w6q2.b[52][1]++;
|
|
8710
8710
|
}
|
|
8711
8711
|
}
|
|
8712
8712
|
}
|
|
8713
8713
|
}
|
|
8714
8714
|
|
|
8715
|
-
|
|
8715
|
+
cov_461q4w6q2.s[207]++;
|
|
8716
8716
|
this.$popover.css({
|
|
8717
8717
|
width: popoverWidth,
|
|
8718
8718
|
transform: 'translate3d(' + popoverPosX + 'px, ' + popoverPosY + 'px, 0px)'
|
|
8719
8719
|
});
|
|
8720
|
-
|
|
8720
|
+
cov_461q4w6q2.s[208]++;
|
|
8721
8721
|
this.fixPopoverPosition = false;
|
|
8722
|
-
|
|
8722
|
+
cov_461q4w6q2.s[209]++;
|
|
8723
8723
|
this.log('Popover placement changed: ' + this.placementChanged);
|
|
8724
|
-
|
|
8724
|
+
cov_461q4w6q2.s[210]++;
|
|
8725
8725
|
this.log('Popover container inner width: ' + containerInnerWidth + 'px');
|
|
8726
|
-
|
|
8726
|
+
cov_461q4w6q2.s[211]++;
|
|
8727
8727
|
this.log('Popover container inner height: ' + containerInnerHeight + 'px');
|
|
8728
|
-
|
|
8728
|
+
cov_461q4w6q2.s[212]++;
|
|
8729
8729
|
this.log('Popover trigger width: ' + popoverTriggerWidth + 'px');
|
|
8730
|
-
|
|
8730
|
+
cov_461q4w6q2.s[213]++;
|
|
8731
8731
|
this.log('Popover trigger height: ' + popoverTriggerHeight + 'px');
|
|
8732
|
-
|
|
8732
|
+
cov_461q4w6q2.s[214]++;
|
|
8733
8733
|
this.log('popover trigger position x: ' + popoverTriggerPosX + 'px');
|
|
8734
|
-
|
|
8734
|
+
cov_461q4w6q2.s[215]++;
|
|
8735
8735
|
this.log('Popover trigger position Y: ' + popoverTriggerPosY + 'px');
|
|
8736
|
-
|
|
8736
|
+
cov_461q4w6q2.s[216]++;
|
|
8737
8737
|
this.log('Popover width: ' + popoverWidth + 'px');
|
|
8738
|
-
|
|
8738
|
+
cov_461q4w6q2.s[217]++;
|
|
8739
8739
|
this.log('Popover height: ' + popoverHeight + 'px');
|
|
8740
|
-
|
|
8740
|
+
cov_461q4w6q2.s[218]++;
|
|
8741
8741
|
this.log('Popover position x: ' + popoverPosX + 'px');
|
|
8742
|
-
|
|
8742
|
+
cov_461q4w6q2.s[219]++;
|
|
8743
8743
|
this.log('Popover position y: ' + popoverPosY + 'px');
|
|
8744
|
-
|
|
8744
|
+
cov_461q4w6q2.s[220]++;
|
|
8745
8745
|
this.log('Popover position left: ' + popoverPosition.left + 'px');
|
|
8746
|
-
|
|
8746
|
+
cov_461q4w6q2.s[221]++;
|
|
8747
8747
|
this.log('Popover position top: ' + popoverPosition.top + 'px');
|
|
8748
|
-
|
|
8748
|
+
cov_461q4w6q2.s[222]++;
|
|
8749
8749
|
this.log('Popover position right: ' + popoverPosition.right + 'px');
|
|
8750
|
-
|
|
8750
|
+
cov_461q4w6q2.s[223]++;
|
|
8751
8751
|
this.log('Popover position bottom: ' + popoverPosition.bottom + 'px');
|
|
8752
8752
|
} else {
|
|
8753
|
-
|
|
8753
|
+
cov_461q4w6q2.b[40][1]++;
|
|
8754
8754
|
}
|
|
8755
8755
|
} else {
|
|
8756
|
-
|
|
8757
|
-
|
|
8756
|
+
cov_461q4w6q2.b[28][1]++;
|
|
8757
|
+
cov_461q4w6q2.s[224]++;
|
|
8758
8758
|
this.log('Popover placement changed: ' + this.placementChanged);
|
|
8759
|
-
|
|
8759
|
+
cov_461q4w6q2.s[225]++;
|
|
8760
8760
|
this.log('Popover container inner width: ' + containerInnerWidth + 'px');
|
|
8761
|
-
|
|
8761
|
+
cov_461q4w6q2.s[226]++;
|
|
8762
8762
|
this.log('Popover container inner height: ' + containerInnerHeight + 'px');
|
|
8763
|
-
|
|
8763
|
+
cov_461q4w6q2.s[227]++;
|
|
8764
8764
|
this.log('Popover trigger width: ' + popoverTriggerWidth + 'px');
|
|
8765
|
-
|
|
8765
|
+
cov_461q4w6q2.s[228]++;
|
|
8766
8766
|
this.log('Popover trigger height: ' + popoverTriggerHeight + 'px');
|
|
8767
|
-
|
|
8767
|
+
cov_461q4w6q2.s[229]++;
|
|
8768
8768
|
this.log('popover trigger position x: ' + popoverTriggerPosX + 'px');
|
|
8769
|
-
|
|
8769
|
+
cov_461q4w6q2.s[230]++;
|
|
8770
8770
|
this.log('Popover trigger position Y: ' + popoverTriggerPosY + 'px');
|
|
8771
|
-
|
|
8771
|
+
cov_461q4w6q2.s[231]++;
|
|
8772
8772
|
this.log('Popover width: ' + popoverWidth + 'px');
|
|
8773
|
-
|
|
8773
|
+
cov_461q4w6q2.s[232]++;
|
|
8774
8774
|
this.log('Popover height: ' + popoverHeight + 'px');
|
|
8775
|
-
|
|
8775
|
+
cov_461q4w6q2.s[233]++;
|
|
8776
8776
|
this.log('Popover position x: ' + popoverPosX + 'px');
|
|
8777
|
-
|
|
8777
|
+
cov_461q4w6q2.s[234]++;
|
|
8778
8778
|
this.log('Popover position y: ' + popoverPosY + 'px');
|
|
8779
|
-
|
|
8779
|
+
cov_461q4w6q2.s[235]++;
|
|
8780
8780
|
this.log('Popover position left: ' + popoverPosition.left + 'px');
|
|
8781
|
-
|
|
8781
|
+
cov_461q4w6q2.s[236]++;
|
|
8782
8782
|
this.log('Popover position top: ' + popoverPosition.top + 'px');
|
|
8783
|
-
|
|
8783
|
+
cov_461q4w6q2.s[237]++;
|
|
8784
8784
|
this.log('Popover position right: ' + popoverPosition.right + 'px');
|
|
8785
|
-
|
|
8785
|
+
cov_461q4w6q2.s[238]++;
|
|
8786
8786
|
this.log('Popover position bottom: ' + popoverPosition.bottom + 'px');
|
|
8787
8787
|
}
|
|
8788
8788
|
} // Show
|
|
8789
8789
|
;
|
|
8790
8790
|
|
|
8791
8791
|
_proto.show = function show() {
|
|
8792
|
-
|
|
8793
|
-
|
|
8792
|
+
cov_461q4w6q2.f[17]++;
|
|
8793
|
+
cov_461q4w6q2.s[239]++;
|
|
8794
8794
|
|
|
8795
8795
|
if (this.$popover) {
|
|
8796
|
-
|
|
8797
|
-
|
|
8796
|
+
cov_461q4w6q2.b[53][0]++;
|
|
8797
|
+
cov_461q4w6q2.s[240]++;
|
|
8798
8798
|
return;
|
|
8799
8799
|
} else {
|
|
8800
|
-
|
|
8800
|
+
cov_461q4w6q2.b[53][1]++;
|
|
8801
8801
|
}
|
|
8802
8802
|
|
|
8803
|
-
|
|
8803
|
+
cov_461q4w6q2.s[241]++;
|
|
8804
8804
|
this.buildPopover();
|
|
8805
|
-
|
|
8805
|
+
cov_461q4w6q2.s[242]++;
|
|
8806
8806
|
this.setPosition();
|
|
8807
|
-
|
|
8807
|
+
cov_461q4w6q2.s[243]++;
|
|
8808
8808
|
|
|
8809
8809
|
if (this.animation) {
|
|
8810
|
-
|
|
8811
|
-
|
|
8810
|
+
cov_461q4w6q2.b[54][0]++;
|
|
8811
|
+
cov_461q4w6q2.s[244]++;
|
|
8812
8812
|
this.$popover.addClass(this.animationSpeed);
|
|
8813
|
-
|
|
8813
|
+
cov_461q4w6q2.s[245]++;
|
|
8814
8814
|
this.$popover.animateCss(this.animationIn);
|
|
8815
|
-
|
|
8815
|
+
cov_461q4w6q2.s[246]++;
|
|
8816
8816
|
this.$popover.addClass('show');
|
|
8817
|
-
|
|
8817
|
+
cov_461q4w6q2.s[247]++;
|
|
8818
8818
|
this.$popover.attr('id', this.id);
|
|
8819
|
-
|
|
8819
|
+
cov_461q4w6q2.s[248]++;
|
|
8820
8820
|
this.$el.attr('data-popover', this.id);
|
|
8821
8821
|
} else {
|
|
8822
|
-
|
|
8823
|
-
|
|
8822
|
+
cov_461q4w6q2.b[54][1]++;
|
|
8823
|
+
cov_461q4w6q2.s[249]++;
|
|
8824
8824
|
this.$popover.addClass('show');
|
|
8825
|
-
|
|
8825
|
+
cov_461q4w6q2.s[250]++;
|
|
8826
8826
|
this.$popover.attr('id', this.id);
|
|
8827
|
-
|
|
8827
|
+
cov_461q4w6q2.s[251]++;
|
|
8828
8828
|
this.$el.attr('data-popover', this.id);
|
|
8829
8829
|
}
|
|
8830
8830
|
|
|
8831
|
-
|
|
8831
|
+
cov_461q4w6q2.s[252]++;
|
|
8832
8832
|
this.onShow();
|
|
8833
8833
|
} // Close
|
|
8834
8834
|
;
|
|
@@ -8836,94 +8836,94 @@
|
|
|
8836
8836
|
_proto.close = function close() {
|
|
8837
8837
|
var _this3 = this;
|
|
8838
8838
|
|
|
8839
|
-
|
|
8840
|
-
|
|
8839
|
+
cov_461q4w6q2.f[18]++;
|
|
8840
|
+
cov_461q4w6q2.s[253]++;
|
|
8841
8841
|
|
|
8842
8842
|
if (!this.$popover) {
|
|
8843
|
-
|
|
8844
|
-
|
|
8843
|
+
cov_461q4w6q2.b[55][0]++;
|
|
8844
|
+
cov_461q4w6q2.s[254]++;
|
|
8845
8845
|
return;
|
|
8846
8846
|
} else {
|
|
8847
|
-
|
|
8847
|
+
cov_461q4w6q2.b[55][1]++;
|
|
8848
8848
|
}
|
|
8849
8849
|
|
|
8850
|
-
|
|
8850
|
+
cov_461q4w6q2.s[255]++;
|
|
8851
8851
|
|
|
8852
|
-
if ((
|
|
8853
|
-
|
|
8854
|
-
|
|
8852
|
+
if ((cov_461q4w6q2.b[57][0]++, this.animation) && (cov_461q4w6q2.b[57][1]++, !this.$popover.hasClass('animated'))) {
|
|
8853
|
+
cov_461q4w6q2.b[56][0]++;
|
|
8854
|
+
cov_461q4w6q2.s[256]++;
|
|
8855
8855
|
this.$popover.animateCss(this.animationOut, function () {
|
|
8856
|
-
|
|
8857
|
-
|
|
8856
|
+
cov_461q4w6q2.f[19]++;
|
|
8857
|
+
cov_461q4w6q2.s[257]++;
|
|
8858
8858
|
|
|
8859
8859
|
_this3.$popover.remove();
|
|
8860
8860
|
|
|
8861
|
-
|
|
8861
|
+
cov_461q4w6q2.s[258]++;
|
|
8862
8862
|
|
|
8863
8863
|
_this3.$el.removeAttr('data-popover');
|
|
8864
8864
|
|
|
8865
|
-
|
|
8865
|
+
cov_461q4w6q2.s[259]++;
|
|
8866
8866
|
_this3.$popover = null;
|
|
8867
|
-
|
|
8867
|
+
cov_461q4w6q2.s[260]++;
|
|
8868
8868
|
_this3.placementChanged = false;
|
|
8869
|
-
|
|
8869
|
+
cov_461q4w6q2.s[261]++;
|
|
8870
8870
|
|
|
8871
8871
|
_this3.onClose();
|
|
8872
8872
|
});
|
|
8873
8873
|
} else {
|
|
8874
|
-
|
|
8875
|
-
|
|
8874
|
+
cov_461q4w6q2.b[56][1]++;
|
|
8875
|
+
cov_461q4w6q2.s[262]++;
|
|
8876
8876
|
this.$popover.remove();
|
|
8877
|
-
|
|
8877
|
+
cov_461q4w6q2.s[263]++;
|
|
8878
8878
|
this.$el.removeAttr('data-popover');
|
|
8879
|
-
|
|
8879
|
+
cov_461q4w6q2.s[264]++;
|
|
8880
8880
|
this.$popover = null;
|
|
8881
|
-
|
|
8881
|
+
cov_461q4w6q2.s[265]++;
|
|
8882
8882
|
this.placementChanged = false;
|
|
8883
|
-
|
|
8883
|
+
cov_461q4w6q2.s[266]++;
|
|
8884
8884
|
this.onClose();
|
|
8885
8885
|
}
|
|
8886
8886
|
};
|
|
8887
8887
|
|
|
8888
8888
|
Popover._jQueryInterface = function _jQueryInterface(config) {
|
|
8889
|
-
|
|
8890
|
-
|
|
8889
|
+
cov_461q4w6q2.f[20]++;
|
|
8890
|
+
cov_461q4w6q2.s[267]++;
|
|
8891
8891
|
return this.each(function () {
|
|
8892
|
-
|
|
8893
|
-
var data = (
|
|
8892
|
+
cov_461q4w6q2.f[21]++;
|
|
8893
|
+
var data = (cov_461q4w6q2.s[268]++, $(this).data(DATA_KEY));
|
|
8894
8894
|
|
|
8895
|
-
var _config = (
|
|
8895
|
+
var _config = (cov_461q4w6q2.s[269]++, (cov_461q4w6q2.b[58][0]++, typeof config === 'object') && (cov_461q4w6q2.b[58][1]++, config));
|
|
8896
8896
|
|
|
8897
|
-
|
|
8897
|
+
cov_461q4w6q2.s[270]++;
|
|
8898
8898
|
|
|
8899
8899
|
if (!data) {
|
|
8900
|
-
|
|
8901
|
-
|
|
8900
|
+
cov_461q4w6q2.b[59][0]++;
|
|
8901
|
+
cov_461q4w6q2.s[271]++;
|
|
8902
8902
|
data = new Popover(this, _config);
|
|
8903
|
-
|
|
8903
|
+
cov_461q4w6q2.s[272]++;
|
|
8904
8904
|
$(this).data(DATA_KEY, data);
|
|
8905
8905
|
} else {
|
|
8906
|
-
|
|
8906
|
+
cov_461q4w6q2.b[59][1]++;
|
|
8907
8907
|
}
|
|
8908
8908
|
|
|
8909
|
-
|
|
8909
|
+
cov_461q4w6q2.s[273]++;
|
|
8910
8910
|
|
|
8911
8911
|
if (typeof config === 'string') {
|
|
8912
|
-
|
|
8913
|
-
|
|
8912
|
+
cov_461q4w6q2.b[60][0]++;
|
|
8913
|
+
cov_461q4w6q2.s[274]++;
|
|
8914
8914
|
|
|
8915
8915
|
if (typeof data[config] === 'undefined') {
|
|
8916
|
-
|
|
8917
|
-
|
|
8916
|
+
cov_461q4w6q2.b[61][0]++;
|
|
8917
|
+
cov_461q4w6q2.s[275]++;
|
|
8918
8918
|
throw new TypeError("No method named \"" + config + "\"");
|
|
8919
8919
|
} else {
|
|
8920
|
-
|
|
8920
|
+
cov_461q4w6q2.b[61][1]++;
|
|
8921
8921
|
}
|
|
8922
8922
|
|
|
8923
|
-
|
|
8923
|
+
cov_461q4w6q2.s[276]++;
|
|
8924
8924
|
data[config]();
|
|
8925
8925
|
} else {
|
|
8926
|
-
|
|
8926
|
+
cov_461q4w6q2.b[60][1]++;
|
|
8927
8927
|
}
|
|
8928
8928
|
});
|
|
8929
8929
|
};
|
|
@@ -8931,27 +8931,27 @@
|
|
|
8931
8931
|
return Popover;
|
|
8932
8932
|
}(AbstractUIComponent);
|
|
8933
8933
|
|
|
8934
|
-
|
|
8934
|
+
cov_461q4w6q2.s[277]++;
|
|
8935
8935
|
|
|
8936
8936
|
if (typeof $ !== 'undefined') {
|
|
8937
|
-
|
|
8937
|
+
cov_461q4w6q2.b[62][0]++;
|
|
8938
8938
|
// jQuery
|
|
8939
|
-
var JQUERY_NO_CONFLICT = (
|
|
8940
|
-
|
|
8939
|
+
var JQUERY_NO_CONFLICT = (cov_461q4w6q2.s[278]++, $.fn[NAME]);
|
|
8940
|
+
cov_461q4w6q2.s[279]++;
|
|
8941
8941
|
$.fn[NAME] = Popover._jQueryInterface;
|
|
8942
|
-
|
|
8942
|
+
cov_461q4w6q2.s[280]++;
|
|
8943
8943
|
$.fn[NAME].Constructor = Popover;
|
|
8944
|
-
|
|
8944
|
+
cov_461q4w6q2.s[281]++;
|
|
8945
8945
|
|
|
8946
8946
|
$.fn[NAME].noConflict = function () {
|
|
8947
|
-
|
|
8948
|
-
|
|
8947
|
+
cov_461q4w6q2.f[22]++;
|
|
8948
|
+
cov_461q4w6q2.s[282]++;
|
|
8949
8949
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
|
8950
|
-
|
|
8950
|
+
cov_461q4w6q2.s[283]++;
|
|
8951
8951
|
return Popover._jQueryInterface;
|
|
8952
8952
|
};
|
|
8953
8953
|
|
|
8954
|
-
|
|
8954
|
+
cov_461q4w6q2.s[284]++;
|
|
8955
8955
|
$.fn[NAME].defaults = {
|
|
8956
8956
|
container: '.content-inner',
|
|
8957
8957
|
trigger: 'focus',
|
|
@@ -8970,7 +8970,7 @@
|
|
|
8970
8970
|
debug: false
|
|
8971
8971
|
};
|
|
8972
8972
|
} else {
|
|
8973
|
-
|
|
8973
|
+
cov_461q4w6q2.b[62][1]++;
|
|
8974
8974
|
}
|
|
8975
8975
|
|
|
8976
8976
|
return Popover;
|