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

@ -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>