| 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-autogrow-textarea/iron-autogrow-textarea.html"> | 10 <link rel="import" href="../iron-autogrow-textarea/iron-autogrow-textarea.html"> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 See `Polymer.PaperInputContainer` for a list of custom properties used to | 30 See `Polymer.PaperInputContainer` for a list of custom properties used to |
| 31 style this element. | 31 style this element. |
| 32 --> | 32 --> |
| 33 | 33 |
| 34 </head><body><dom-module id="paper-textarea"> | 34 </head><body><dom-module id="paper-textarea"> |
| 35 <template> | 35 <template> |
| 36 <style> | 36 <style> |
| 37 :host { | 37 :host { |
| 38 display: block; | 38 display: block; |
| 39 } | 39 } |
| 40 |
| 41 :host([hidden]) { |
| 42 display: none !important; |
| 43 } |
| 40 </style> | 44 </style> |
| 41 | 45 |
| 42 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 46 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
| 43 | 47 |
| 44 <label hidden$="[[!label]]">[[label]]</label> | 48 <label hidden$="[[!label]]" aria-hidden="true">[[label]]</label> |
| 45 | 49 |
| 46 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{
{value}}" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="
[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[place
holder]]" readonly$="[[readonly]]" required$="[[required]]" maxlength$="[[maxlen
gth]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRow
s]]" on-change="_onChange"></iron-autogrow-textarea> | 50 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{
{value}}" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="
[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[place
holder]]" readonly$="[[readonly]]" required$="[[required]]" maxlength$="[[maxlen
gth]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRow
s]]" on-change="_onChange"></iron-autogrow-textarea> |
| 47 | 51 |
| 48 <template is="dom-if" if="[[errorMessage]]"> | 52 <template is="dom-if" if="[[errorMessage]]"> |
| 49 <paper-input-error>[[errorMessage]]</paper-input-error> | 53 <paper-input-error>[[errorMessage]]</paper-input-error> |
| 50 </template> | 54 </template> |
| 51 | 55 |
| 52 <template is="dom-if" if="[[charCounter]]"> | 56 <template is="dom-if" if="[[charCounter]]"> |
| 53 <paper-input-char-counter></paper-input-char-counter> | 57 <paper-input-char-counter></paper-input-char-counter> |
| 54 </template> | 58 </template> |
| 55 | 59 |
| 56 </paper-input-container> | 60 </paper-input-container> |
| 57 </template> | 61 </template> |
| 58 </dom-module> | 62 </dom-module> |
| 59 | 63 |
| 60 <script src="paper-textarea-extracted.js"></script></body></html> | 64 <script src="paper-textarea-extracted.js"></script></body></html> |
| OLD | NEW |