import { Component , Prop , Element } from '@stencil/core' ; import ListStyle from './mwc-list-style' ; @ Component ( { tag : 'mwc-list' , shadow : false } ) export class MWCList { @ Element ( ) listEl : HTMLElement ; @ Prop ( ) borderlist : boolean = true ; @ Prop ( ) dense : boolean = false ; listStyle : any ; componentWillLoad ( ) { this . listStyle = new ListStyle ( ) ; let changeStyle = { } ; this . listStyle . setup ( changeStyle ) ; } getClassNames ( ) { let classNames = [ 'root' ] ; return classNames ; } render ( ) { return ( < ul class = { this . listStyle . getClassName ( this . getClassNames ( ) ) } > < slot /> < /ul>); } }