declare var _ ; import { CSSDefaults } from '../services/CSSDefaults' ; export class StylePropSet { public type : string ; public model : CSSDefaults ; public formatted : any ; constructor ( ) { this . formatted = this . formatNgStyles ( ) ; } formatNgStyles ( ) { var obj = { } ; _ . forEach ( this . model , function ( value ) { let styleProp = _ . kebabCase ( value . name ) ; let styleValue = value . default ; obj [ styleProp ] = styleValue ; } ) ; return obj ; } } export class StyleProp { public property : string ; public unit : any ; public value : string ; public options : string [ ] ; public default : string ; constructor ( name , cfg ) { this . property = name ; this . unit = cfg . unit || null ; this . value = cfg . value ; this . options = cfg . options || null ; this . default = cfg . value ; } }