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 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 @demo demo/index.html | 67 @demo demo/index.html |
68 --> | 68 --> |
69 | 69 |
70 <dom-module id="paper-input"> | 70 <dom-module id="paper-input"> |
71 <template> | 71 <template> |
72 <style> | 72 <style> |
73 :host { | 73 :host { |
74 display: block; | 74 display: block; |
75 } | 75 } |
76 | 76 |
| 77 :host([hidden]) { |
| 78 display: none !important; |
| 79 } |
| 80 |
77 input::-webkit-input-placeholder { | 81 input::-webkit-input-placeholder { |
78 color: var(--paper-input-container-color, --secondary-text-color); | 82 color: var(--paper-input-container-color, --secondary-text-color); |
79 } | 83 } |
80 | 84 |
81 input:-moz-placeholder { | 85 input:-moz-placeholder { |
82 color: var(--paper-input-container-color, --secondary-text-color); | 86 color: var(--paper-input-container-color, --secondary-text-color); |
83 } | 87 } |
84 | 88 |
85 input::-moz-placeholder { | 89 input::-moz-placeholder { |
86 color: var(--paper-input-container-color, --secondary-text-color); | 90 color: var(--paper-input-container-color, --secondary-text-color); |
87 } | 91 } |
88 | 92 |
89 input:-ms-input-placeholder { | 93 input:-ms-input-placeholder { |
90 color: var(--paper-input-container-color, --secondary-text-color); | 94 color: var(--paper-input-container-color, --secondary-text-color); |
91 } | 95 } |
92 </style> | 96 </style> |
93 | 97 |
94 <paper-input-container no-label-float="[[noLabelFloat]]" always-float-label=
"[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[a
utoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 98 <paper-input-container no-label-float="[[noLabelFloat]]" always-float-label=
"[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[a
utoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
95 | 99 |
96 <content select="[prefix]"></content> | 100 <content select="[prefix]"></content> |
97 | 101 |
98 <label hidden$="[[!label]]">[[label]]</label> | 102 <label hidden$="[[!label]]" aria-hidden="true">[[label]]</label> |
99 | 103 |
100 <input is="iron-input" id="input" | 104 <input is="iron-input" id="input" |
101 aria-labelledby$="[[_ariaLabelledBy]]" | 105 aria-labelledby$="[[_ariaLabelledBy]]" |
102 aria-describedby$="[[_ariaDescribedBy]]" | 106 aria-describedby$="[[_ariaDescribedBy]]" |
103 disabled$="[[disabled]]" | 107 disabled$="[[disabled]]" |
104 title$="[[title]]" | 108 title$="[[title]]" |
105 bind-value="{{value}}" | 109 bind-value="{{value}}" |
106 invalid="{{invalid}}" | 110 invalid="{{invalid}}" |
107 prevent-invalid-input="[[preventInvalidInput]]" | 111 prevent-invalid-input="[[preventInvalidInput]]" |
108 allowed-pattern="[[allowedPattern]]" | 112 allowed-pattern="[[allowedPattern]]" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 <script> | 153 <script> |
150 Polymer({ | 154 Polymer({ |
151 is: 'paper-input', | 155 is: 'paper-input', |
152 | 156 |
153 behaviors: [ | 157 behaviors: [ |
154 Polymer.IronFormElementBehavior, | 158 Polymer.IronFormElementBehavior, |
155 Polymer.PaperInputBehavior | 159 Polymer.PaperInputBehavior |
156 ] | 160 ] |
157 }); | 161 }); |
158 </script> | 162 </script> |
OLD | NEW |