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

update polymer components

This commit is contained in:
Luke Pulverenti 2015-09-04 00:33:31 -04:00
parent 478617f766
commit c7fa2299da
31 changed files with 813 additions and 1954 deletions

View file

@ -92,7 +92,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<paper-textarea label="textarea with maxlength" char-counter maxlength="10"></paper-textarea>
<paper-textarea label="text area with rows and max-rows" rows="3" max-rows="4"><paper-textarea>
<paper-textarea label="text area with rows and max-rows" rows="3" max-rows="4"></paper-textarea>
</div>
<h4>Prefixes and Suffixes</h4>

View file

@ -12,26 +12,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="ssn-validator.html">
<dom-module id="ssn-input">
<style>
:host {
display: inline-block;
}
input[is="iron-input"] {
font: inherit;
outline: none;
box-shadow: none;
border: none;
width: auto;
text-align: center;
}
</style>
<template>
<style>
:host {
display: inline-block;
}
input[is="iron-input"] {
font: inherit;
outline: none;
box-shadow: none;
border: none;
width: auto;
text-align: center;
}
</style>
<ssn-validator></ssn-validator>
<input is="iron-input" maxlength="3" bind-value="{{_ssn1}}" size="3" aria-label="First 3 digits of social security number">
@ -41,14 +38,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<input is="iron-input" maxlength="4" bind-value="{{_ssn3}}" size="4" aria-label="Last 4 digits of social security number">
</template>
</dom-module>
<script>
(function() {
Polymer({
is: 'ssn-input',
behaviors: [
@ -56,7 +49,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
],
properties: {
value: {
notify: true,
type: String
@ -78,7 +70,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
type: String,
value: 'ssn-validator'
}
},
observers: [
@ -88,7 +79,5 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
_computeValue: function(ssn1, ssn2, ssn3) {
this.value = ssn1.trim() + '-' + ssn2.trim() + '-' + ssn3.trim();
}
})
})();
});
</script>

View file

@ -12,9 +12,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../../iron-validator-behavior/iron-validator-behavior.html">
<script>
Polymer({
is: 'ssn-validator',
behaviors: [
@ -25,7 +23,5 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// this regex validates incomplete ssn's (by design)
return !value || value.match(/^[0-9]{0,3}-[0-9]{0,2}-[0-9]{0,4}$/);
}
});
</script>