mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
d61dd06176
commit
c2111d130d
32 changed files with 182 additions and 132 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -15,11 +15,11 @@
|
|||
],
|
||||
"license": "BSD",
|
||||
"ignore": [],
|
||||
"_release": "0.7.12",
|
||||
"_release": "0.7.13",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.7.12",
|
||||
"commit": "044234d00f966292390d02cbe88184861e673cc7"
|
||||
"tag": "v0.7.13",
|
||||
"commit": "e53b558e1f4e8087265f7ba7f03fb928f21a845b"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||
"_target": "^0.7.2",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(window);
|
||||
})(self);
|
||||
|
||||
window.CustomElements = window.CustomElements || {
|
||||
flags: {}
|
||||
|
@ -946,7 +946,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(window);
|
||||
})(self);
|
||||
|
||||
window.HTMLImports = window.HTMLImports || {
|
||||
flags: {}
|
||||
|
@ -1061,7 +1061,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
if (scope.useNative) {
|
||||
return;
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -341,4 +341,4 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(window);
|
||||
})(self);
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -3145,18 +3145,29 @@ window.ShadowDOMPolyfill = {};
|
|||
"use strict";
|
||||
var Element = scope.wrappers.Element;
|
||||
var HTMLElement = scope.wrappers.HTMLElement;
|
||||
var registerObject = scope.registerObject;
|
||||
var registerWrapper = scope.registerWrapper;
|
||||
var defineWrapGetter = scope.defineWrapGetter;
|
||||
var unsafeUnwrap = scope.unsafeUnwrap;
|
||||
var wrap = scope.wrap;
|
||||
var mixin = scope.mixin;
|
||||
var SVG_NS = "http://www.w3.org/2000/svg";
|
||||
var OriginalSVGElement = window.SVGElement;
|
||||
var svgTitleElement = document.createElementNS(SVG_NS, "title");
|
||||
var SVGTitleElement = registerObject(svgTitleElement);
|
||||
var SVGElement = Object.getPrototypeOf(SVGTitleElement.prototype).constructor;
|
||||
if (!("classList" in svgTitleElement)) {
|
||||
var descr = Object.getOwnPropertyDescriptor(Element.prototype, "classList");
|
||||
Object.defineProperty(HTMLElement.prototype, "classList", descr);
|
||||
delete Element.prototype.classList;
|
||||
}
|
||||
defineWrapGetter(SVGElement, "ownerSVGElement");
|
||||
function SVGElement(node) {
|
||||
Element.call(this, node);
|
||||
}
|
||||
SVGElement.prototype = Object.create(Element.prototype);
|
||||
mixin(SVGElement.prototype, {
|
||||
get ownerSVGElement() {
|
||||
return wrap(unsafeUnwrap(this).ownerSVGElement);
|
||||
}
|
||||
});
|
||||
registerWrapper(OriginalSVGElement, SVGElement, document.createElementNS(SVG_NS, "title"));
|
||||
scope.wrappers.SVGElement = SVGElement;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
|
||||
|
@ -3300,20 +3311,27 @@ window.ShadowDOMPolyfill = {};
|
|||
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
var Node = scope.wrappers.Node;
|
||||
var GetElementsByInterface = scope.GetElementsByInterface;
|
||||
var NonElementParentNodeInterface = scope.NonElementParentNodeInterface;
|
||||
var ParentNodeInterface = scope.ParentNodeInterface;
|
||||
var SelectorsInterface = scope.SelectorsInterface;
|
||||
var mixin = scope.mixin;
|
||||
var registerObject = scope.registerObject;
|
||||
var DocumentFragment = registerObject(document.createDocumentFragment());
|
||||
var registerWrapper = scope.registerWrapper;
|
||||
var OriginalDocumentFragment = window.DocumentFragment;
|
||||
function DocumentFragment(node) {
|
||||
Node.call(this, node);
|
||||
}
|
||||
DocumentFragment.prototype = Object.create(Node.prototype);
|
||||
mixin(DocumentFragment.prototype, ParentNodeInterface);
|
||||
mixin(DocumentFragment.prototype, SelectorsInterface);
|
||||
mixin(DocumentFragment.prototype, GetElementsByInterface);
|
||||
mixin(DocumentFragment.prototype, NonElementParentNodeInterface);
|
||||
registerWrapper(OriginalDocumentFragment, DocumentFragment, document.createDocumentFragment());
|
||||
scope.wrappers.DocumentFragment = DocumentFragment;
|
||||
var Comment = registerObject(document.createComment(""));
|
||||
scope.wrappers.Comment = Comment;
|
||||
scope.wrappers.DocumentFragment = DocumentFragment;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
|
||||
(function(scope) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webcomponents.js",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"description": "webcomponents.js",
|
||||
"main": "webcomponents.js",
|
||||
"directories": {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
|
@ -574,7 +574,7 @@ window.WebComponents = window.WebComponents || {};
|
|||
};
|
||||
}
|
||||
scope.URL = jURL;
|
||||
})(this);
|
||||
})(self);
|
||||
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
|
@ -909,7 +909,7 @@ if (typeof WeakMap === "undefined") {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(window);
|
||||
})(self);
|
||||
|
||||
window.HTMLImports = window.HTMLImports || {
|
||||
flags: {}
|
||||
|
@ -1629,7 +1629,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
if (scope.useNative) {
|
||||
return;
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
@ -2260,7 +2260,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
@ -2368,6 +2368,37 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
})();
|
||||
}
|
||||
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
if (!window.performance) {
|
||||
var start = Date.now();
|
||||
window.performance = {
|
||||
now: function() {
|
||||
return Date.now() - start;
|
||||
}
|
||||
};
|
||||
}
|
||||
if (!window.requestAnimationFrame) {
|
||||
window.requestAnimationFrame = function() {
|
||||
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||||
return nativeRaf ? function(callback) {
|
||||
return nativeRaf(function() {
|
||||
callback(performance.now());
|
||||
});
|
||||
} : function(callback) {
|
||||
return window.setTimeout(callback, 1e3 / 60);
|
||||
};
|
||||
}();
|
||||
}
|
||||
if (!window.cancelAnimationFrame) {
|
||||
window.cancelAnimationFrame = function() {
|
||||
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
||||
clearTimeout(id);
|
||||
};
|
||||
}();
|
||||
}
|
||||
})(window.WebComponents);
|
||||
|
||||
(function(scope) {
|
||||
var style = document.createElement("style");
|
||||
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
// @version 0.7.12
|
||||
// @version 0.7.13
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
|
@ -3159,18 +3159,29 @@ if (WebComponents.flags.shadow) {
|
|||
"use strict";
|
||||
var Element = scope.wrappers.Element;
|
||||
var HTMLElement = scope.wrappers.HTMLElement;
|
||||
var registerObject = scope.registerObject;
|
||||
var registerWrapper = scope.registerWrapper;
|
||||
var defineWrapGetter = scope.defineWrapGetter;
|
||||
var unsafeUnwrap = scope.unsafeUnwrap;
|
||||
var wrap = scope.wrap;
|
||||
var mixin = scope.mixin;
|
||||
var SVG_NS = "http://www.w3.org/2000/svg";
|
||||
var OriginalSVGElement = window.SVGElement;
|
||||
var svgTitleElement = document.createElementNS(SVG_NS, "title");
|
||||
var SVGTitleElement = registerObject(svgTitleElement);
|
||||
var SVGElement = Object.getPrototypeOf(SVGTitleElement.prototype).constructor;
|
||||
if (!("classList" in svgTitleElement)) {
|
||||
var descr = Object.getOwnPropertyDescriptor(Element.prototype, "classList");
|
||||
Object.defineProperty(HTMLElement.prototype, "classList", descr);
|
||||
delete Element.prototype.classList;
|
||||
}
|
||||
defineWrapGetter(SVGElement, "ownerSVGElement");
|
||||
function SVGElement(node) {
|
||||
Element.call(this, node);
|
||||
}
|
||||
SVGElement.prototype = Object.create(Element.prototype);
|
||||
mixin(SVGElement.prototype, {
|
||||
get ownerSVGElement() {
|
||||
return wrap(unsafeUnwrap(this).ownerSVGElement);
|
||||
}
|
||||
});
|
||||
registerWrapper(OriginalSVGElement, SVGElement, document.createElementNS(SVG_NS, "title"));
|
||||
scope.wrappers.SVGElement = SVGElement;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
(function(scope) {
|
||||
|
@ -3309,20 +3320,27 @@ if (WebComponents.flags.shadow) {
|
|||
})(window.ShadowDOMPolyfill);
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
var Node = scope.wrappers.Node;
|
||||
var GetElementsByInterface = scope.GetElementsByInterface;
|
||||
var NonElementParentNodeInterface = scope.NonElementParentNodeInterface;
|
||||
var ParentNodeInterface = scope.ParentNodeInterface;
|
||||
var SelectorsInterface = scope.SelectorsInterface;
|
||||
var mixin = scope.mixin;
|
||||
var registerObject = scope.registerObject;
|
||||
var DocumentFragment = registerObject(document.createDocumentFragment());
|
||||
var registerWrapper = scope.registerWrapper;
|
||||
var OriginalDocumentFragment = window.DocumentFragment;
|
||||
function DocumentFragment(node) {
|
||||
Node.call(this, node);
|
||||
}
|
||||
DocumentFragment.prototype = Object.create(Node.prototype);
|
||||
mixin(DocumentFragment.prototype, ParentNodeInterface);
|
||||
mixin(DocumentFragment.prototype, SelectorsInterface);
|
||||
mixin(DocumentFragment.prototype, GetElementsByInterface);
|
||||
mixin(DocumentFragment.prototype, NonElementParentNodeInterface);
|
||||
registerWrapper(OriginalDocumentFragment, DocumentFragment, document.createDocumentFragment());
|
||||
scope.wrappers.DocumentFragment = DocumentFragment;
|
||||
var Comment = registerObject(document.createComment(""));
|
||||
scope.wrappers.Comment = Comment;
|
||||
scope.wrappers.DocumentFragment = DocumentFragment;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
|
@ -4694,7 +4712,7 @@ if (WebComponents.flags.shadow) {
|
|||
}
|
||||
}
|
||||
};
|
||||
var selectorRe = /([^{]*)({[\s\S]*?})/gim, cssCommentRe = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, cssCommentNextSelectorRe = /\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim, cssContentNextSelectorRe = /polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim, cssCommentRuleRe = /\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim, cssContentRuleRe = /(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssCommentUnscopedRuleRe = /\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim, cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssPseudoRe = /::(x-[^\s{,(]*)/gim, cssPartRe = /::part\(([^)]*)\)/gim, polyfillHost = "-shadowcsshost", polyfillHostContext = "-shadowcsscontext", parenSuffix = ")(?:\\((" + "(?:\\([^)(]*\\)|[^)(]*)+?" + ")\\))?([^,{]*)";
|
||||
var selectorRe = /([^{]*)({[\s\S]*?})/gim, cssCommentRe = /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim, cssCommentNextSelectorRe = /\/\*\s*@polyfill ([^*]*\*+([^\/*][^*]*\*+)*\/)([^{]*?){/gim, cssContentNextSelectorRe = /polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim, cssCommentRuleRe = /\/\*\s@polyfill-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim, cssContentRuleRe = /(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssCommentUnscopedRuleRe = /\/\*\s@polyfill-unscoped-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim, cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssPseudoRe = /::(x-[^\s{,(]*)/gim, cssPartRe = /::part\(([^)]*)\)/gim, polyfillHost = "-shadowcsshost", polyfillHostContext = "-shadowcsscontext", parenSuffix = ")(?:\\((" + "(?:\\([^)(]*\\)|[^)(]*)+?" + ")\\))?([^,{]*)";
|
||||
var cssColonHostRe = new RegExp("(" + polyfillHost + parenSuffix, "gim"), cssColonHostContextRe = new RegExp("(" + polyfillHostContext + parenSuffix, "gim"), selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$", colonHostRe = /\:host/gim, colonHostContextRe = /\:host-context/gim, polyfillHostNoCombinator = polyfillHost + "-no-combinator", polyfillHostRe = new RegExp(polyfillHost, "gim"), polyfillHostContextRe = new RegExp(polyfillHostContext, "gim"), shadowDOMSelectorsRe = [ />>>/g, /::shadow/g, /::content/g, /\/deep\//g, /\/shadow\//g, /\/shadow-deep\//g, /\^\^/g, /\^/g ];
|
||||
function stylesToCssText(styles, preserveComments) {
|
||||
var cssText = "";
|
||||
|
@ -5379,7 +5397,7 @@ if (WebComponents.flags.shadow) {
|
|||
};
|
||||
}
|
||||
scope.URL = jURL;
|
||||
})(this);
|
||||
})(self);
|
||||
|
||||
(function(global) {
|
||||
var registrationsTable = new WeakMap();
|
||||
|
@ -5678,7 +5696,7 @@ if (WebComponents.flags.shadow) {
|
|||
};
|
||||
global.JsMutationObserver = JsMutationObserver;
|
||||
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
||||
})(window);
|
||||
})(self);
|
||||
|
||||
window.HTMLImports = window.HTMLImports || {
|
||||
flags: {}
|
||||
|
@ -6398,7 +6416,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
if (scope.useNative) {
|
||||
return;
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
@ -7029,7 +7047,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (isIE && typeof window.CustomEvent !== "function") {
|
||||
if (!window.CustomEvent) {
|
||||
window.CustomEvent = function(inType, params) {
|
||||
params = params || {};
|
||||
var e = document.createEvent("CustomEvent");
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue