| 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 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../iron-input/iron-input.html"> | 10 <link rel="import" href="../iron-input/iron-input.html"> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 See `Polymer.PaperInputContainer` for a list of custom properties used to | 41 See `Polymer.PaperInputContainer` for a list of custom properties used to |
| 42 style this element. | 42 style this element. |
| 43 | 43 |
| 44 @group Paper Elements | 44 @group Paper Elements |
| 45 @element paper-input | 45 @element paper-input |
| 46 @hero hero.svg | 46 @hero hero.svg |
| 47 @demo demo/index.html | 47 @demo demo/index.html |
| 48 --> | 48 --> |
| 49 | 49 |
| 50 </head><body><dom-module id="paper-input"> | 50 </head><body><dom-module id="paper-input"> |
| 51 <template> |
| 51 | 52 |
| 52 <style> | 53 <style> |
| 54 :host { |
| 55 display: block; |
| 56 } |
| 53 | 57 |
| 54 :host { | 58 input::-webkit-input-placeholder { |
| 55 display: block; | 59 color: var(--paper-input-container-color, --secondary-text-color); |
| 56 } | 60 } |
| 57 | 61 |
| 58 input::-webkit-input-placeholder { | 62 input:-moz-placeholder { |
| 59 color: var(--paper-input-container-color, --secondary-text-color); | 63 color: var(--paper-input-container-color, --secondary-text-color); |
| 60 } | 64 } |
| 61 | 65 |
| 62 input:-moz-placeholder { | 66 input::-moz-placeholder { |
| 63 color: var(--paper-input-container-color, --secondary-text-color); | 67 color: var(--paper-input-container-color, --secondary-text-color); |
| 64 } | 68 } |
| 65 | 69 |
| 66 input::-moz-placeholder { | 70 input:-ms-input-placeholder { |
| 67 color: var(--paper-input-container-color, --secondary-text-color); | 71 color: var(--paper-input-container-color, --secondary-text-color); |
| 68 } | 72 } |
| 69 | 73 </style> |
| 70 input:-ms-input-placeholder { | |
| 71 color: var(--paper-input-container-color, --secondary-text-color); | |
| 72 } | |
| 73 | |
| 74 </style> | |
| 75 | |
| 76 <template> | |
| 77 | 74 |
| 78 <paper-input-container no-label-float="[[noLabelFloat]]" always-float-label=
"[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[a
utoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 75 <paper-input-container no-label-float="[[noLabelFloat]]" always-float-label=
"[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[a
utoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
| 79 | 76 |
| 80 <content select="[prefix]"></content> | 77 <content select="[prefix]"></content> |
| 81 | 78 |
| 82 <label hidden$="[[!label]]">[[label]]</label> | 79 <label hidden$="[[!label]]">[[label]]</label> |
| 83 | 80 |
| 84 <input is="iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" a
ria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" bind-value="{{v
alue}}" invalid="{{invalid}}" prevent-invalid-input="[[preventInvalidInput]]" al
lowed-pattern="[[allowedPattern]]" validator="[[validator]]" type$="[[type]]" pa
ttern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" a
utofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]"
maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$=
"[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list
]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autoco
rrect]]"> | 81 <input is="iron-input" id="input" aria-labelledby$="[[_ariaLabelledBy]]" a
ria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" bind-value="{{v
alue}}" invalid="{{invalid}}" prevent-invalid-input="[[preventInvalidInput]]" al
lowed-pattern="[[allowedPattern]]" validator="[[validator]]" type$="[[type]]" pa
ttern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" a
utofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]"
maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$=
"[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list
]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autoco
rrect]]"> |
| 85 | 82 |
| 86 <content select="[suffix]"></content> | 83 <content select="[suffix]"></content> |
| 87 | 84 |
| 88 <template is="dom-if" if="[[errorMessage]]"> | 85 <template is="dom-if" if="[[errorMessage]]"> |
| 89 <paper-input-error>[[errorMessage]]</paper-input-error> | 86 <paper-input-error>[[errorMessage]]</paper-input-error> |
| 90 </template> | 87 </template> |
| 91 | 88 |
| 92 <template is="dom-if" if="[[charCounter]]"> | 89 <template is="dom-if" if="[[charCounter]]"> |
| 93 <paper-input-char-counter></paper-input-char-counter> | 90 <paper-input-char-counter></paper-input-char-counter> |
| 94 </template> | 91 </template> |
| 95 | 92 |
| 96 </paper-input-container> | 93 </paper-input-container> |
| 97 | 94 |
| 98 </template> | 95 </template> |
| 99 | |
| 100 </dom-module> | 96 </dom-module> |
| 101 | 97 |
| 102 <script src="paper-input-extracted.js"></script></body></html> | 98 <script src="paper-input-extracted.js"></script></body></html> |
| OLD | NEW |