mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sync process
This commit is contained in:
parent
cc428aac1d
commit
504384e83d
109 changed files with 553 additions and 289 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-autogrow-textarea",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "A textarea element that automatically grows with input",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -37,11 +37,11 @@
|
|||
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.0.5",
|
||||
"_release": "1.0.6",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.5",
|
||||
"commit": "2f354b99a4fda5d601629b0119d0a6c9dd77d336"
|
||||
"tag": "v1.0.6",
|
||||
"commit": "e0465d41019cf03827f4820a254ce80e56266e99"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-autogrow-textarea",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "A textarea element that automatically grows with input",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -218,6 +218,36 @@ this element's `bind-value` instead for imperative updates.
|
|||
return this.$.textarea;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns textarea's selection start.
|
||||
* @type Number
|
||||
*/
|
||||
get selectionStart() {
|
||||
return this.$.textarea.selectionStart;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns textarea's selection end.
|
||||
* @type Number
|
||||
*/
|
||||
get selectionEnd() {
|
||||
return this.$.textarea.selectionEnd;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the textarea's selection start.
|
||||
*/
|
||||
set selectionStart(value) {
|
||||
this.$.textarea.selectionStart = value;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the textarea's selection end.
|
||||
*/
|
||||
set selectionEnd(value) {
|
||||
this.$.textarea.selectionEnd = value;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns true if `value` is valid. The validator provided in `validator`
|
||||
* will be used first, if it exists; otherwise, the `textarea`'s validity
|
||||
|
|
|
@ -87,6 +87,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
var finalHeight = autogrow.offsetHeight
|
||||
assert.isTrue(finalHeight < initialHeight);
|
||||
});
|
||||
|
||||
test('textarea selection works', function() {
|
||||
var autogrow = fixture('basic');
|
||||
var textarea = autogrow.textarea;
|
||||
autogrow.bindValue = 'batman\nand\nrobin';
|
||||
|
||||
autogrow.selectionStart = 3;
|
||||
autogrow.selectionEnd = 5;
|
||||
|
||||
assert.equal(textarea.selectionStart, 3);
|
||||
assert.equal(textarea.selectionEnd, 5);
|
||||
});
|
||||
});
|
||||
|
||||
suite('focus/blur events', function() {
|
||||
|
|
|
@ -27,14 +27,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
||||
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
||||
"_release": "1.0.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.8",
|
||||
"commit": "663ad706b43989f4961d945b8116cf4db346532f"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
||||
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-behaviors"
|
||||
"_originalSource": "polymerelements/iron-behaviors"
|
||||
}
|
|
@ -23,14 +23,14 @@
|
|||
"paper-styles": "polymerelements/paper-styles#^1.0.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.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.3",
|
||||
"commit": "e6c2cfec18354973ac03e70dcd8afcc3c72d09b9"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
|
||||
"_source": "git://github.com/polymerelements/iron-flex-layout.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-flex-layout"
|
||||
"_originalSource": "polymerelements/iron-flex-layout"
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"name": "paper-behaviors",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "Common behaviors across the paper elements",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
],
|
||||
"main": [
|
||||
"paper-button-behavior.html",
|
||||
"paper-radio-button-behavior.html"
|
||||
"paper-inky-focus-behavior.html"
|
||||
],
|
||||
"keywords": [
|
||||
"web-components",
|
||||
|
@ -36,11 +36,11 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.0.3",
|
||||
"_release": "1.0.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.3",
|
||||
"commit": "90b54de14264c19693601b9fc16af6b68a9d48e4"
|
||||
"tag": "v1.0.4",
|
||||
"commit": "a7ac7fbdb79b4d82416ec9b41613575386d0d226"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"name": "paper-behaviors",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "Common behaviors across the paper elements",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
],
|
||||
"main": [
|
||||
"paper-button-behavior.html",
|
||||
"paper-radio-button-behavior.html"
|
||||
"paper-inky-focus-behavior.html"
|
||||
],
|
||||
"keywords": [
|
||||
"web-components",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-progress",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "A material design progress bar",
|
||||
"authors": "The Polymer Authors",
|
||||
|
@ -29,11 +29,11 @@
|
|||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/paper-progress",
|
||||
"_release": "1.0.5",
|
||||
"_release": "1.0.6",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.5",
|
||||
"commit": "baf8049bb33c3f9557d0d3608dc0824847ac34c4"
|
||||
"tag": "v1.0.6",
|
||||
"commit": "520d84592d98cac975bfcedfcc5765e51d2c2871"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-progress.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -331,7 +331,7 @@ Custom property | Description
|
|||
},
|
||||
|
||||
_disabledChanged: function(disabled) {
|
||||
this.$.progressContainer.setAttribute('aria-disabled', disabled ? 'true' : 'false');
|
||||
this.setAttribute('aria-disabled', disabled ? 'true' : 'false');
|
||||
},
|
||||
|
||||
_hideSecondaryProgress: function(secondaryRatio) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
@ -39,11 +39,11 @@
|
|||
"web-component-tester": "*"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/paper-tabs",
|
||||
"_release": "1.0.2",
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.2",
|
||||
"commit": "61abed79e3c4e7c87dd826f7f81ef9c7ecb5df78"
|
||||
"tag": "v1.0.3",
|
||||
"commit": "19546ca9fbe23da457177cac8de1a7720cb62c57"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-tabs.git",
|
||||
"_target": "~1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
|
|
@ -174,7 +174,7 @@ Custom property | Description | Default
|
|||
|
||||
<paper-icon-button icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown"></paper-icon-button>
|
||||
|
||||
<div id="tabsContainer" class="flex" on-scroll="_scroll">
|
||||
<div id="tabsContainer" class="flex" on-track="_scroll" on-down="_down">
|
||||
|
||||
<div id="tabsContent" class$="[[_computeTabsContentClass(scrollable)]]">
|
||||
|
||||
|
@ -310,6 +310,10 @@ Custom property | Description | Default
|
|||
'iron-deselect': '_onIronDeselect'
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
this.setScrollDirection('y', this.$.tabsContainer);
|
||||
},
|
||||
|
||||
_computeScrollButtonClass: function(hideThisButton, scrollable, hideScrollButtons) {
|
||||
if (!scrollable || hideScrollButtons) {
|
||||
return 'hidden';
|
||||
|
@ -364,24 +368,43 @@ Custom property | Description | Default
|
|||
);
|
||||
},
|
||||
|
||||
_scroll: function() {
|
||||
var scrollLeft;
|
||||
|
||||
_scroll: function(e, detail) {
|
||||
if (!this.scrollable) {
|
||||
return;
|
||||
}
|
||||
|
||||
scrollLeft = this.$.tabsContainer.scrollLeft;
|
||||
var ddx = (detail && -detail.ddx) || 0;
|
||||
this._affectScroll(ddx);
|
||||
},
|
||||
|
||||
_down: function(e) {
|
||||
// go one beat async to defeat IronMenuBehavior
|
||||
// autorefocus-on-no-selection timeout
|
||||
this.async(function() {
|
||||
if (this._defaultFocusAsync) {
|
||||
this.cancelAsync(this._defaultFocusAsync);
|
||||
this._defaultFocusAsync = null;
|
||||
}
|
||||
}, 1);
|
||||
},
|
||||
|
||||
_affectScroll: function(dx) {
|
||||
this.$.tabsContainer.scrollLeft += dx;
|
||||
|
||||
var scrollLeft = this.$.tabsContainer.scrollLeft;
|
||||
|
||||
this._leftHidden = scrollLeft === 0;
|
||||
this._rightHidden = scrollLeft === this._tabContainerScrollSize;
|
||||
},
|
||||
|
||||
_onLeftScrollButtonDown: function() {
|
||||
this._scrollToLeft();
|
||||
this._holdJob = setInterval(this._scrollToLeft.bind(this), this._holdDelay);
|
||||
},
|
||||
|
||||
_onRightScrollButtonDown: function() {
|
||||
this._scrollToRight();
|
||||
this._holdJob = setInterval(this._scrollToRight.bind(this), this._holdDelay);
|
||||
},
|
||||
|
||||
|
@ -391,11 +414,11 @@ Custom property | Description | Default
|
|||
},
|
||||
|
||||
_scrollToLeft: function() {
|
||||
this.$.tabsContainer.scrollLeft -= this._step;
|
||||
this._affectScroll(-this._step);
|
||||
},
|
||||
|
||||
_scrollToRight: function() {
|
||||
this.$.tabsContainer.scrollLeft += this._step;
|
||||
this._affectScroll(this._step);
|
||||
},
|
||||
|
||||
_tabChanged: function(tab, old) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue