mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
9e8e2dddad
commit
569aa605b4
93 changed files with 1443 additions and 319 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-menu-behavior",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Provides accessible menu behavior",
|
||||
"authors": "The Polymer Authors",
|
||||
"keywords": [
|
||||
|
@ -34,11 +34,11 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.1.0",
|
||||
"_release": "1.1.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.0",
|
||||
"commit": "b18d5478f1d4d6befb15533716d60d5772f8e812"
|
||||
"tag": "v1.1.1",
|
||||
"commit": "0fc2c95803badd8e8f50cbe7f5d3669d647e7229"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-menu-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -5,6 +5,11 @@ https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
|||
|
||||
If you edit that file, it will get updated everywhere else.
|
||||
If you edit this file, your changes will get overridden :)
|
||||
|
||||
You can however override the jsbin link with one that's customized to this
|
||||
specific element:
|
||||
|
||||
jsbin=https://jsbin.com/cagaye/edit?html,output
|
||||
-->
|
||||
# Polymer Elements
|
||||
## Guide for Contributors
|
||||
|
@ -41,7 +46,7 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
|||
3. Click the `paper-foo` element.
|
||||
```
|
||||
|
||||
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [http://jsbin.com/cagaye](http://jsbin.com/cagaye/edit?html,output).
|
||||
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output).
|
||||
|
||||
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
|
||||
|
||||
|
@ -51,14 +56,14 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
|||
|
||||
When submitting pull requests, please provide:
|
||||
|
||||
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues using the following syntax:
|
||||
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:
|
||||
|
||||
```markdown
|
||||
(For a single issue)
|
||||
Fixes #20
|
||||
|
||||
(For multiple issues)
|
||||
Fixes #32, #40
|
||||
Fixes #32, fixes #40
|
||||
```
|
||||
|
||||
2. **A succinct description of the design** used to fix any related issues. For example:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-menu-behavior",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Provides accessible menu behavior",
|
||||
"authors": "The Polymer Authors",
|
||||
"keywords": [
|
||||
|
|
|
@ -239,6 +239,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
return;
|
||||
}
|
||||
|
||||
// Do not focus the selected tab if the deepest target is part of the
|
||||
// menu element's local DOM and is focusable.
|
||||
var rootTarget = Polymer.dom(event).rootTarget;
|
||||
if (rootTarget !== this && typeof rootTarget.tabIndex !== "undefined" && !this.isLightDescendant(rootTarget)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.blur();
|
||||
|
||||
// clear the cached focus item
|
||||
|
|
|
@ -72,7 +72,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
var menu = fixture('basic');
|
||||
MockInteractions.focus(menu);
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.firstElementChild, 'document.activeElement is first item')
|
||||
var ownerRoot = Polymer.dom(menu.firstElementChild).getOwnerRoot() || document;
|
||||
var activeElement = Polymer.dom(ownerRoot).activeElement;
|
||||
assert.equal(activeElement, menu.firstElementChild, 'menu.firstElementChild is focused');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
|
@ -83,7 +85,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
menu.selected = 1;
|
||||
MockInteractions.focus(menu);
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.selectedItem, 'document.activeElement is selected item');
|
||||
var ownerRoot = Polymer.dom(menu.selectedItem).getOwnerRoot() || document;
|
||||
var activeElement = Polymer.dom(ownerRoot).activeElement;
|
||||
assert.equal(activeElement, menu.selectedItem, 'menu.selectedItem is focused');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
});
|
||||
|
||||
test('focusing non-item content does not auto-focus an item', function(done) {
|
||||
var menu = fixture('basic');
|
||||
menu.extraContent.focus();
|
||||
setTimeout(function() {
|
||||
var menuOwnerRoot = Polymer.dom(menu.extraContent).getOwnerRoot() || document;
|
||||
var menuActiveElement = Polymer.dom(menuOwnerRoot).activeElement;
|
||||
assert.equal(menuActiveElement, menu.extraContent, 'menu.extraContent is focused');
|
||||
assert.equal(Polymer.dom(document).activeElement, menu, 'menu is document.activeElement');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
|
@ -94,7 +111,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
menu.selected = 0;
|
||||
menu.items[1].click();
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.items[1], 'document.activeElement is last activated item');
|
||||
var ownerRoot = Polymer.dom(menu.items[1]).getOwnerRoot() || document;
|
||||
var activeElement = Polymer.dom(ownerRoot).activeElement;
|
||||
assert.equal(activeElement, menu.items[1], 'menu.items[1] is focused');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
|
@ -105,7 +124,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
menu.selected = 0;
|
||||
menu.items[0].click();
|
||||
setTimeout(function() {
|
||||
assert.equal(document.activeElement, menu.items[0], 'document.activeElement is last activated item');
|
||||
var ownerRoot = Polymer.dom(menu.items[0]).getOwnerRoot() || document;
|
||||
var activeElement = Polymer.dom(ownerRoot).activeElement;
|
||||
assert.equal(activeElement, menu.items[0], 'menu.items[0] is focused');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
|
|
|
@ -87,6 +87,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}, 200);
|
||||
});
|
||||
|
||||
test('focusing non-item content does not auto-focus an item', function(done) {
|
||||
var menubar = fixture('basic');
|
||||
menubar.extraContent.focus();
|
||||
setTimeout(function() {
|
||||
var ownerRoot = Polymer.dom(menubar.extraContent).getOwnerRoot() || document;
|
||||
var activeElement = Polymer.dom(ownerRoot).activeElement;
|
||||
assert.equal(activeElement, menubar.extraContent, 'menubar.extraContent is focused');
|
||||
assert.equal(Polymer.dom(document).activeElement, menubar, 'menubar is document.activeElement');
|
||||
done();
|
||||
// wait for async in _onFocus
|
||||
}, 200);
|
||||
});
|
||||
|
||||
test('last activated item in a multi select menubar is focused', function(done) {
|
||||
var menubar = fixture('multi');
|
||||
menubar.selected = 0;
|
||||
|
|
|
@ -17,6 +17,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<content></content>
|
||||
|
||||
<div id="extraContent" tabindex="-1">focusable extra content</div>
|
||||
|
||||
</template>
|
||||
|
||||
</dom-module>
|
||||
|
@ -31,7 +33,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
behaviors: [
|
||||
Polymer.IronMenuBehavior
|
||||
]
|
||||
],
|
||||
|
||||
get extraContent() {
|
||||
return this.$.extraContent;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<content></content>
|
||||
|
||||
<div id="extraContent" tabindex="-1">focusable extra content</div>
|
||||
|
||||
</template>
|
||||
|
||||
</dom-module>
|
||||
|
@ -31,7 +33,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
behaviors: [
|
||||
Polymer.IronMenubarBehavior
|
||||
]
|
||||
],
|
||||
|
||||
get extraContent() {
|
||||
return this.$.extraContent;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue