update components

This commit is contained in:
Luke Pulverenti 2016-05-26 15:20:24 -04:00
parent 113b487c37
commit 447eff16cd
10 changed files with 47 additions and 75 deletions

View File

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.59",
"_release": "1.1.59",
"version": "1.1.60",
"_release": "1.1.60",
"_resolution": {
"type": "version",
"tag": "1.1.59",
"commit": "57a6fa68cdf72d05c6dfdf95cd2134471eca0af5"
"tag": "1.1.60",
"commit": "302c2d3c2f59c366ee9d198f205b8350317cda41"
},
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "^1.1.51",

View File

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.3.81",
"_release": "1.3.81",
"version": "1.3.82",
"_release": "1.3.82",
"_resolution": {
"type": "version",
"tag": "1.3.81",
"commit": "8c5b3c685f3cf65f7ef6d6d868566e03073c69d2"
"tag": "1.3.82",
"commit": "f25cb631146a714f2cc99666ce060f89eedde9e8"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View File

@ -115,6 +115,12 @@
if (!this.id) {
this.id = 'select' + new Date().getTime();
}
this.removeEventListener('mousedown', onMouseDown);
this.removeEventListener('keydown', onKeyDown);
this.removeEventListener('focus', onFocus);
this.removeEventListener('blur', onBlur);
this.addEventListener('mousedown', onMouseDown);
this.addEventListener('keydown', onKeyDown);
this.addEventListener('focus', onFocus);
@ -123,6 +129,9 @@
EmbySelectPrototype.attachedCallback = function () {
if (this.getAttribute('data-embyselect') != 'true') {
this.setAttribute('data-embyselect', 'true');
var label = this.ownerDocument.createElement('label');
label.innerHTML = this.getAttribute('label') || '';
label.classList.add('selectLabel');
@ -134,6 +143,7 @@
div.classList.add('emby-select-selectionbar');
div.innerHTML = '<div class="emby-select-selectionbarInner"></div>';
this.parentNode.insertBefore(div, this.nextSibling);
}
};
document.registerElement('emby-select', {

View File

@ -340,72 +340,49 @@ define([], function () {
var distX;
var distY;
var distX2;
var distY2;
switch (direction) {
case 0:
// left
distX = distX2 = Math.abs(point1x - Math.min(point1x, x2));
distX = Math.abs(point1x - Math.min(point1x, x2));
distY = intersectY ? 0 : Math.abs(sourceMidY - midY);
distY2 = Math.abs(sourceMidY - midY);
break;
case 1:
// right
distX = distX2 = Math.abs(point2x - Math.max(point2x, x));
distX = Math.abs(point2x - Math.max(point2x, x));
distY = intersectY ? 0 : Math.abs(sourceMidY - midY);
distY2 = Math.abs(sourceMidY - midY);
break;
case 2:
// up
distY = distY2 = Math.abs(point1y - Math.min(point1y, y2));
distY = Math.abs(point1y - Math.min(point1y, y2));
distX = intersectX ? 0 : Math.abs(sourceMidX - midX);
distX2 = Math.abs(sourceMidX - midX);
break;
case 3:
// down
distY = distY2 = Math.abs(point2y - Math.max(point2y, y));
distY = Math.abs(point2y - Math.max(point2y, y));
distX = intersectX ? 0 : Math.abs(sourceMidX - midX);
distX2 = Math.abs(sourceMidX - midX);
break;
default:
break;
}
var distT = Math.sqrt(distX * distX + distY * distY);
var distT2 = Math.sqrt(distX2 * distX2 + distY2 * distY2);
cache.push({
node: elem,
distX: distX,
distY: distY,
distT: distT,
distT2: distT2,
index: i
});
}
cache.sort(sortNodesT);
//if (direction >= 2) {
// cache.sort(sortNodesX);
//} else {
// cache.sort(sortNodesY);
//}
return cache;
}
function sortNodesX(a, b) {
var result = a.distX - b.distX;
if (result == 0) {
return a.distT - b.distT;
}
return result;
}
function sortNodesT(a, b) {
var result = a.distT - b.distT;
@ -413,11 +390,6 @@ define([], function () {
return result;
}
//result = a.distT2 - b.distT2;
//if (result != 0) {
// return result;
//}
result = a.index - b.index;
if (result != 0) {
return result;
@ -426,16 +398,6 @@ define([], function () {
return 0;
}
function sortNodesY(a, b) {
var result = a.distY - b.distY;
if (result == 0) {
return a.distT - b.distT;
}
return result;
}
function sendText(text) {
var elem = document.activeElement;

View File

@ -23,12 +23,12 @@
"spec"
],
"homepage": "https://github.com/Valve/fingerprintjs2",
"version": "1.2.0",
"_release": "1.2.0",
"version": "1.3.0",
"_release": "1.3.0",
"_resolution": {
"type": "version",
"tag": "1.2.0",
"commit": "d5821a481d5c4d4ca348902e3a95b09de2a8702a"
"tag": "1.3.0",
"commit": "727e536d5ffce50b47fd233ea32f022a7bbcdb0f"
},
"_source": "https://github.com/Valve/fingerprintjs2.git",
"_target": "^1.1.3",

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*
* Fingerprintjs2 1.2.0 - Modern & flexible browser fingerprint library v2
* Fingerprintjs2 1.3.0 - Modern & flexible browser fingerprint library v2
* https://github.com/Valve/fingerprintjs2
* Copyright (c) 2015 Valentin Vasilyev (valentin.vasilyev@outlook.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
@ -421,7 +421,7 @@
// creates a span and load the font to detect and a base font for fallback
var createSpanWithFonts = function(fontToDetect, baseFont) {
var s = createSpan();
s.style.fontFamily = fontToDetect + "," + baseFont;
s.style.fontFamily = "'" + fontToDetect + "'," + baseFont;
return s;
};
@ -1270,6 +1270,6 @@
return ("00000000" + (h1[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (h1[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (h2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (h2[1] >>> 0).toString(16)).slice(-8);
}
};
Fingerprint2.VERSION = "1.2.0";
Fingerprint2.VERSION = "1.3.0";
return Fingerprint2;
});

View File

@ -1,6 +1,6 @@
{
"name": "fingerprintjs2",
"version": "1.2.0",
"version": "1.3.0",
"description": "Modern & flexible browser fingerprinting library",
"main": "dist/fingerprint2.min.js",
"devDependencies": {

View File

@ -38,7 +38,7 @@
"tag": "v1.0.6",
"commit": "6aef0896fcbc25f9f5bd1dd55f7679e6ab7f92ad"
},
"_source": "git://github.com/polymerelements/paper-material.git",
"_source": "git://github.com/PolymerElements/paper-material.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/paper-material"
"_originalSource": "PolymerElements/paper-material"
}

View File

@ -32,14 +32,14 @@
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
},
"ignore": [],
"homepage": "https://github.com/polymerelements/paper-ripple",
"homepage": "https://github.com/PolymerElements/paper-ripple",
"_release": "1.0.5",
"_resolution": {
"type": "version",
"tag": "v1.0.5",
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
},
"_source": "git://github.com/polymerelements/paper-ripple.git",
"_source": "git://github.com/PolymerElements/paper-ripple.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/paper-ripple"
"_originalSource": "PolymerElements/paper-ripple"
}