mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
2d86f49653
commit
ab58f98cc1
27 changed files with 276 additions and 129 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-input",
|
||||
"version": "1.1.12",
|
||||
"version": "1.1.13",
|
||||
"description": "Material design text fields",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -48,11 +48,11 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.1.12",
|
||||
"_release": "1.1.13",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.12",
|
||||
"commit": "5dd3174ecee88ea280e960c6b6fbd04ce5c3da0e"
|
||||
"tag": "v1.1.13",
|
||||
"commit": "ce90cc77b23b8d0047715651940c48450f4d8d7b"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-input.git",
|
||||
"_target": "^1.1.11",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-input",
|
||||
"version": "1.1.12",
|
||||
"version": "1.1.13",
|
||||
"description": "Material design text fields",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -87,7 +87,7 @@ Custom property | Description | Default
|
|||
|
||||
state.value = state.value || '';
|
||||
|
||||
var counter = state.value.length.toString();
|
||||
var counter = state.value.toString().length.toString();
|
||||
|
||||
if (state.inputElement.hasAttribute('maxlength')) {
|
||||
counter += '/' + state.inputElement.getAttribute('maxlength');
|
||||
|
|
|
@ -83,6 +83,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="type-number-char-counter">
|
||||
<template>
|
||||
<paper-input type="number" char-counter value="1138"></paper-input>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="always-float-label">
|
||||
<template>
|
||||
<paper-input always-float-label label="foo"></paper-input>
|
||||
|
@ -179,6 +185,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.equal(counter._charCounterStr, input.value.length, 'character counter shows the value length');
|
||||
});
|
||||
|
||||
test('character counter is correct for type=number', function() {
|
||||
var input = fixture('type-number-char-counter');
|
||||
forceXIfStamp(input);
|
||||
var counter = Polymer.dom(input.root).querySelector('paper-input-char-counter')
|
||||
assert.ok(counter, 'paper-input-char-counter exists');
|
||||
assert.equal(counter._charCounterStr, input.value.toString().length, 'character counter shows the value length');
|
||||
});
|
||||
|
||||
test('validator is used', function() {
|
||||
var input = fixture('validator');
|
||||
assert.ok(input.inputElement.invalid, 'input is invalid');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue