1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2015-07-13 17:26:11 -04:00
parent 697257670c
commit 02ae9ec81e
123 changed files with 13600 additions and 531 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-tabs",
"version": "1.0.0",
"version": "1.0.1",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Material design tabs",
"private": true,
@ -14,7 +14,10 @@
"tabs",
"control"
],
"repository": "https://github.com/PolymerElements/paper-tabs.git",
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/paper-tabs.git"
},
"dependencies": {
"iron-behaviors": "polymerelements/iron-behaviors#^1.0.0",
"iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0",
@ -35,14 +38,13 @@
"web-component-tester": "*"
},
"homepage": "https://github.com/PolymerElements/paper-tabs",
"_release": "1.0.0",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v1.0.0",
"commit": "af6820e55f73fc5aa8c8e4d5294085e46374c7ca"
"tag": "v1.0.1",
"commit": "6403be53eeef5f9e7a7a7ccd9251f551d26c7548"
},
"_source": "git://github.com/PolymerElements/paper-tabs.git",
"_target": "~1.0.0",
"_originalSource": "PolymerElements/paper-tabs",
"_direct": true
"_originalSource": "PolymerElements/paper-tabs"
}

View file

@ -1,6 +1,6 @@
{
"name": "paper-tabs",
"version": "1.0.0",
"version": "1.0.1",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Material design tabs",
"private": true,
@ -14,7 +14,10 @@
"tabs",
"control"
],
"repository": "https://github.com/PolymerElements/paper-tabs.git",
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/paper-tabs.git"
},
"dependencies": {
"iron-behaviors": "polymerelements/iron-behaviors#^1.0.0",
"iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0",

View file

@ -51,7 +51,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
color: #ffff8d;
}
paper-tabs[alignBottom] {
paper-tabs[align-bottom] {
box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.15);
}
@ -64,7 +64,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
</style>
</head>
<body>
<body unresolved>
<h3>A. No ink effect and no sliding bar</h3>
@ -152,7 +152,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<h3>H. Tabs aligned to bottom</h3>
<paper-tabs selected="0" alignBottom>
<paper-tabs selected="0" align-bottom>
<paper-tab>ITEM ONE</paper-tab>
<paper-tab>ITEM TWO</paper-tab>

View file

@ -458,6 +458,9 @@ Custom property | Description | Default
},
_positionBar: function(width, left) {
width = width || 0;
left = left || 0;
this._width = width;
this._left = left;
this.transform(

View file

@ -36,6 +36,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
</template>
</test-fixture>
<test-fixture id="HiddenTabs">
<template>
<paper-tabs hidden>
<paper-tab>ITEM ONE</paper-tab>
<paper-tab>ITEM TWO</paper-tab>
</paper-tabs>
</template>
</test-fixture>
<script>
function checkSelectionBar(tabs, tab) {
@ -93,7 +102,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('has role tablist', function() {
assert.equal(tabs.getAttribute('role'), 'tablist');
});
});
suite('hidden tabs', function() {
var tabs;
setup(function() {
tabs = fixture('HiddenTabs');
});
test('choose the correct bar position once made visible', function() {
tabs.removeAttribute('hidden');
tabs.selected = 0;
expect(tabs._width).to.be.greaterThan(0);
expect(tabs._left).to.be.equal(0);
});
});
suite('set the selected attribute', function() {