@@ -15,13 +15,13 @@ See the License for the specific language governing permissions and
1515limitations under the License.
1616*/
1717
18- import { TextAreaCharCounter , TextFieldBase } from '@material/mwc-textfield/mwc-textfield-base' ;
18+ import { TextAreaCharCounter , TextFieldBase , TextFieldInputMode , TextFieldType } from '@material/mwc-textfield/mwc-textfield-base' ;
1919import { ComplexAttributeConverter , html , property , query } from 'lit-element' ;
2020import { classMap } from 'lit-html/directives/class-map' ;
2121import { ifDefined } from 'lit-html/directives/if-defined' ;
2222import { live } from 'lit-html/directives/live' ;
2323
24- export { TextFieldType } from '@material/mwc-textfield/mwc-textfield-base' ;
24+ export { TextAreaCharCounter , TextFieldInputMode , TextFieldType } ;
2525
2626const booleanOrStringConverter : ComplexAttributeConverter < boolean | string > = {
2727 fromAttribute ( value ) {
@@ -42,6 +42,7 @@ const booleanOrStringConverter: ComplexAttributeConverter<boolean|string> = {
4242 }
4343} ;
4444
45+ /** @soyCompatible */
4546export abstract class TextAreaBase extends TextFieldBase {
4647 @query ( 'textarea' ) protected formElement ! : HTMLInputElement ;
4748
@@ -52,6 +53,7 @@ export abstract class TextAreaBase extends TextFieldBase {
5253 @property ( { converter : booleanOrStringConverter } )
5354 charCounter : boolean | TextAreaCharCounter = false ;
5455
56+ /** @soyTemplate */
5557 render ( ) {
5658 const shouldRenderCharCounter = this . charCounter && this . maxLength !== - 1 ;
5759 const shouldRenderInternalCharCounter =
@@ -61,6 +63,7 @@ export abstract class TextAreaBase extends TextFieldBase {
6163 const shouldRenderHelperText = ! ! this . helper || ! ! this . validationMessage ||
6264 shouldRenderExternalCharCounter ;
6365
66+ /** @classMap */
6467 const classes = {
6568 'mdc-text-field--disabled' : this . disabled ,
6669 'mdc-text-field--no-label' : ! this . label ,
@@ -85,6 +88,7 @@ export abstract class TextAreaBase extends TextFieldBase {
8588 ` ;
8689 }
8790
91+ /** @soyTemplate */
8892 protected renderInput ( ) {
8993 const minOrUndef = this . minLength === - 1 ? undefined : this . minLength ;
9094 const maxOrUndef = this . maxLength === - 1 ? undefined : this . maxLength ;
0 commit comments