mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update webcomponents
This commit is contained in:
parent
7fb95d0419
commit
ffb0fd30b6
17 changed files with 128 additions and 80 deletions
|
@ -23,14 +23,14 @@
|
||||||
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/iron-flex-layout",
|
"homepage": "https://github.com/PolymerElements/iron-flex-layout",
|
||||||
"_release": "1.0.2",
|
"_release": "1.0.2",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.2",
|
"tag": "v1.0.2",
|
||||||
"commit": "50bcecf40ab23caa7c2cd90030555e00c5ba7154"
|
"commit": "50bcecf40ab23caa7c2cd90030555e00c5ba7154"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-flex-layout.git",
|
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-flex-layout"
|
"_originalSource": "PolymerElements/iron-flex-layout"
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponentsjs",
|
"name": "webcomponentsjs",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"version": "0.7.9",
|
"version": "0.7.10",
|
||||||
"homepage": "http://webcomponents.org",
|
"homepage": "http://webcomponents.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -15,11 +15,11 @@
|
||||||
],
|
],
|
||||||
"license": "BSD",
|
"license": "BSD",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"_release": "0.7.9",
|
"_release": "0.7.10",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v0.7.9",
|
"tag": "v0.7.10",
|
||||||
"commit": "4565cfff47986661f0187e4ca27d1cdb55a24991"
|
"commit": "de2ee76eb2cb5a48b10e37db9e7e4c6f7fea71ee"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||||
"_target": "^0.7.2",
|
"_target": "^0.7.2",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
@ -930,6 +930,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
upgradeDocumentTree(window.wrap(document));
|
upgradeDocumentTree(window.wrap(document));
|
||||||
window.CustomElements.ready = true;
|
window.CustomElements.ready = true;
|
||||||
|
requestAnimationFrame(function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.CustomElements.readyTime = Date.now();
|
window.CustomElements.readyTime = Date.now();
|
||||||
if (window.HTMLImports) {
|
if (window.HTMLImports) {
|
||||||
|
@ -939,6 +940,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
||||||
window.CustomEvent = function(inType, params) {
|
window.CustomEvent = function(inType, params) {
|
||||||
|
|
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
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
|
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
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
|
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
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponentsjs",
|
"name": "webcomponentsjs",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"version": "0.7.9",
|
"version": "0.7.10",
|
||||||
"homepage": "http://webcomponents.org",
|
"homepage": "http://webcomponents.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponents.js",
|
"name": "webcomponents.js",
|
||||||
"version": "0.7.9",
|
"version": "0.7.10",
|
||||||
"description": "webcomponents.js",
|
"description": "webcomponents.js",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
window.WebComponents = window.WebComponents || {};
|
window.WebComponents = window.WebComponents || {};
|
||||||
|
|
||||||
(function(scope) {
|
(function(scope) {
|
||||||
|
@ -2244,6 +2244,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
upgradeDocumentTree(window.wrap(document));
|
upgradeDocumentTree(window.wrap(document));
|
||||||
window.CustomElements.ready = true;
|
window.CustomElements.ready = true;
|
||||||
|
requestAnimationFrame(function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.CustomElements.readyTime = Date.now();
|
window.CustomElements.readyTime = Date.now();
|
||||||
if (window.HTMLImports) {
|
if (window.HTMLImports) {
|
||||||
|
@ -2253,6 +2254,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
||||||
window.CustomEvent = function(inType, params) {
|
window.CustomEvent = function(inType, params) {
|
||||||
|
|
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
|
* 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
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.9
|
// @version 0.7.10
|
||||||
window.WebComponents = window.WebComponents || {};
|
window.WebComponents = window.WebComponents || {};
|
||||||
|
|
||||||
(function(scope) {
|
(function(scope) {
|
||||||
|
@ -7013,6 +7013,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
upgradeDocumentTree(window.wrap(document));
|
upgradeDocumentTree(window.wrap(document));
|
||||||
window.CustomElements.ready = true;
|
window.CustomElements.ready = true;
|
||||||
|
requestAnimationFrame(function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.CustomElements.readyTime = Date.now();
|
window.CustomElements.readyTime = Date.now();
|
||||||
if (window.HTMLImports) {
|
if (window.HTMLImports) {
|
||||||
|
@ -7022,6 +7023,7 @@ window.CustomElements.addModule(function(scope) {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
|
||||||
window.CustomEvent = function(inType, params) {
|
window.CustomEvent = function(inType, params) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6599,11 +6599,6 @@ this.fire('dom-change');
|
||||||
],
|
],
|
||||||
|
|
||||||
ready: function() {
|
ready: function() {
|
||||||
// TODO(sjmiles): ensure read-only property is valued so the compound
|
|
||||||
// observer will fire
|
|
||||||
if (this.focused === undefined) {
|
|
||||||
this._setFocused(false);
|
|
||||||
}
|
|
||||||
this.addEventListener('focus', this._boundFocusBlurHandler, true);
|
this.addEventListener('focus', this._boundFocusBlurHandler, true);
|
||||||
this.addEventListener('blur', this._boundFocusBlurHandler, true);
|
this.addEventListener('blur', this._boundFocusBlurHandler, true);
|
||||||
},
|
},
|
||||||
|
@ -6614,7 +6609,6 @@ this.fire('dom-change');
|
||||||
var focused = event.type === 'focus';
|
var focused = event.type === 'focus';
|
||||||
this._setFocused(focused);
|
this._setFocused(focused);
|
||||||
} else if (!this.shadowRoot) {
|
} else if (!this.shadowRoot) {
|
||||||
event.stopPropagation();
|
|
||||||
this.fire(event.type, {sourceEvent: event}, {
|
this.fire(event.type, {sourceEvent: event}, {
|
||||||
node: this,
|
node: this,
|
||||||
bubbles: event.bubbles,
|
bubbles: event.bubbles,
|
||||||
|
@ -6742,8 +6736,10 @@ this.fire('dom-change');
|
||||||
// to emulate native checkbox, (de-)activations from a user interaction fire
|
// to emulate native checkbox, (de-)activations from a user interaction fire
|
||||||
// 'change' events
|
// 'change' events
|
||||||
_userActivate: function(active) {
|
_userActivate: function(active) {
|
||||||
|
if (this.active !== active) {
|
||||||
this.active = active;
|
this.active = active;
|
||||||
this.fire('change');
|
this.fire('change');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_eventSourceIsPrimaryInput: function(event) {
|
_eventSourceIsPrimaryInput: function(event) {
|
||||||
|
@ -11570,7 +11566,7 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
|
||||||
/**
|
/**
|
||||||
* Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
|
* Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
|
||||||
*
|
*
|
||||||
* ### Accessiblity
|
* ### Accessibility
|
||||||
*
|
*
|
||||||
* Changing the `invalid` property, either manually or by calling `validate()` will update the
|
* Changing the `invalid` property, either manually or by calling `validate()` will update the
|
||||||
* `aria-invalid` attribute.
|
* `aria-invalid` attribute.
|
||||||
|
@ -11641,19 +11637,35 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} values Passed to the validator's `validate()` function.
|
* Returns true if the `value` is valid, and updates `invalid`. If you want
|
||||||
* @return {boolean} True if `values` is valid.
|
* your element to have custom validation logic, do not override this method;
|
||||||
|
* override `_getValidity(value)` instead.
|
||||||
|
|
||||||
|
* @param {Object} value The value to be validated. By default, it is passed
|
||||||
|
* to the validator's `validate()` function, if a validator is set.
|
||||||
|
* @return {boolean} True if `value` is valid.
|
||||||
*/
|
*/
|
||||||
validate: function(values) {
|
validate: function(value) {
|
||||||
var valid = true;
|
this.invalid = !this._getValidity(value);
|
||||||
|
return !this.invalid;
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if `value` is valid. By default, it is passed
|
||||||
|
* to the validator's `validate()` function, if a validator is set. You
|
||||||
|
* should override this method if you want to implement custom validity
|
||||||
|
* logic for your element.
|
||||||
|
*
|
||||||
|
* @param {Object} value The value to be validated.
|
||||||
|
* @return {boolean} True if `value` is valid.
|
||||||
|
*/
|
||||||
|
|
||||||
|
_getValidity: function(value) {
|
||||||
if (this.hasValidator()) {
|
if (this.hasValidator()) {
|
||||||
valid = this._validator.validate(values);
|
return this._validator.validate(value);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
this.invalid = !valid;
|
|
||||||
return valid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -12047,14 +12059,6 @@ is separate from validation, and `allowed-pattern` does not affect how the input
|
||||||
value: false
|
value: false
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum length of the input value. Bind this to the `<input is="iron-input">`'s
|
|
||||||
* `maxlength` property.
|
|
||||||
*/
|
|
||||||
maxlength: {
|
|
||||||
type: Number
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The error message to display when the input is invalid. Bind this to the
|
* The error message to display when the input is invalid. Bind this to the
|
||||||
* `<paper-input-error>`'s content, if using.
|
* `<paper-input-error>`'s content, if using.
|
||||||
|
@ -12137,6 +12141,39 @@ is separate from validation, and `allowed-pattern` does not affect how the input
|
||||||
type: Number
|
type: Number
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The maximum length of the input value. Bind this to the `<input is="iron-input">`'s
|
||||||
|
* `maxlength` property.
|
||||||
|
*/
|
||||||
|
maxlength: {
|
||||||
|
type: Number
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The minimum (numeric or date-time) input value.
|
||||||
|
* Bind this to the `<input is="iron-input">`'s `min` property.
|
||||||
|
*/
|
||||||
|
min: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The maximum (numeric or date-time) input value.
|
||||||
|
* Can be a String (e.g. `"2000-1-1"`) or a Number (e.g. `2`).
|
||||||
|
* Bind this to the `<input is="iron-input">`'s `max` property.
|
||||||
|
*/
|
||||||
|
max: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Limits the numeric or date-time increments.
|
||||||
|
* Bind this to the `<input is="iron-input">`'s `step` property.
|
||||||
|
*/
|
||||||
|
step: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bind this to the `<input is="iron-input">`'s `name` property.
|
* Bind this to the `<input is="iron-input">`'s `name` property.
|
||||||
*/
|
*/
|
||||||
|
@ -16257,10 +16294,14 @@ iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] {
|
||||||
@apply(--paper-input-container-input);
|
@apply(--paper-input-container-input);
|
||||||
}
|
}
|
||||||
|
|
||||||
::content [prefix],
|
::content [prefix] {
|
||||||
|
@apply(--paper-font-subhead);
|
||||||
|
@apply(--paper-input-prefix);
|
||||||
|
}
|
||||||
|
|
||||||
::content [suffix] {
|
::content [suffix] {
|
||||||
@apply(--paper-font-subhead);
|
@apply(--paper-font-subhead);
|
||||||
@apply(--paper-input-container-input);
|
@apply(--paper-input-suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Firefox sets a min-width on the input, which can cause layout issues */
|
/* Firefox sets a min-width on the input, which can cause layout issues */
|
||||||
|
@ -16743,7 +16784,7 @@ iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] {
|
||||||
|
|
||||||
<label hidden$="[[!label]]">[[label]]</label>
|
<label hidden$="[[!label]]">[[label]]</label>
|
||||||
|
|
||||||
<input is="iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" bind-value="{{value}}" invalid="{{invalid}}" prevent-invalid-input="[[preventInvalidInput]]" allowed-pattern="[[allowedPattern]]" validator="[[validator]]" type$="[[type]]" pattern$="[[pattern]]" maxlength$="[[maxlength]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]">
|
<input is="iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" bind-value="{{value}}" invalid="{{invalid}}" prevent-invalid-input="[[preventInvalidInput]]" allowed-pattern="[[allowedPattern]]" validator="[[validator]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]">
|
||||||
|
|
||||||
<content select="[suffix]"></content>
|
<content select="[suffix]"></content>
|
||||||
|
|
||||||
|
@ -17566,6 +17607,7 @@ paper-ripple {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
::content textarea:invalid {
|
::content textarea:invalid {
|
||||||
|
@ -17645,8 +17687,8 @@ paper-ripple {
|
||||||
* Bound to the textarea's `autofocus` attribute.
|
* Bound to the textarea's `autofocus` attribute.
|
||||||
*/
|
*/
|
||||||
autofocus: {
|
autofocus: {
|
||||||
type: String,
|
type: Boolean,
|
||||||
value: 'off'
|
value: false
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17797,7 +17839,7 @@ paper-ripple {
|
||||||
_computeValue: function() {
|
_computeValue: function() {
|
||||||
return this.bindValue;
|
return this.bindValue;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
<dom-module id="paper-textarea" assetpath="bower_components/paper-input/">
|
<dom-module id="paper-textarea" assetpath="bower_components/paper-input/">
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue