OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 <link rel="import" href="../../polymer/polymer.html"> | 10 <link rel="import" href="../../polymer/polymer.html"> |
11 <link rel="import" href="../../iron-input/iron-input.html"> | 11 <link rel="import" href="../../iron-input/iron-input.html"> |
12 <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> | 12 <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> |
13 <link rel="import" href="ssn-validator.html"> | 13 <link rel="import" href="ssn-validator.html"> |
14 | 14 |
15 <dom-module id="ssn-input"> | 15 <dom-module id="ssn-input"> |
16 <template> | 16 <template> |
17 | 17 |
18 <style> | 18 <style> |
19 :host { | 19 :host { |
20 display: inline-block; | 20 display: inline-block; |
21 } | 21 } |
22 | 22 |
| 23 :host([hidden]) { |
| 24 display: none !important; |
| 25 } |
| 26 |
23 input[is="iron-input"] { | 27 input[is="iron-input"] { |
24 font: inherit; | 28 font: inherit; |
25 outline: none; | 29 outline: none; |
26 box-shadow: none; | 30 box-shadow: none; |
27 border: none; | 31 border: none; |
28 width: auto; | 32 width: auto; |
29 text-align: center; | 33 text-align: center; |
30 } | 34 } |
31 | 35 |
32 .container { | 36 .container { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 87 |
84 observers: [ | 88 observers: [ |
85 '_computeValue(_ssn1,_ssn2,_ssn3)' | 89 '_computeValue(_ssn1,_ssn2,_ssn3)' |
86 ], | 90 ], |
87 | 91 |
88 _computeValue: function(ssn1, ssn2, ssn3) { | 92 _computeValue: function(ssn1, ssn2, ssn3) { |
89 this.value = ssn1.trim() + '-' + ssn2.trim() + '-' + ssn3.trim(); | 93 this.value = ssn1.trim() + '-' + ssn2.trim() + '-' + ssn3.trim(); |
90 } | 94 } |
91 }); | 95 }); |
92 </script> | 96 </script> |
OLD | NEW |