import { FrameworkConfiguration , PLATFORM , bindingMode , ValueAttributeObserver , EventSubscriber } from 'aurelia-framework' ; import { MdcComponentAdapters } from '@aurelia-mdc-web/base' ; import { events } from '@material/slider' ; export { MdcSlider , IMdcSliderElement } from './mdc-slider' ; export function configure ( config ) { config . container . get ( MdcComponentAdapters ) . registerMdcElementConfig ( checkboxConfig ) ; config . globalResources ( [ PLATFORM . moduleName ( './mdc-slider' ) ] ) ; config . aurelia . use . plugin ( PLATFORM . moduleName ( '@aurelia-mdc-web/ripple' ) ) ; } const checkboxConfig = { tagName : 'mdc-slider' , properties : { value : { defaultBindingMode : bindingMode . twoWay , getObserver ( element ) { return new ValueAttributeObserver ( element , 'value' , new EventSubscriber ( [ events . CHANGE , events . INPUT ] ) ) ; } } , valuestart : { defaultBindingMode : bindingMode . twoWay , getObserver ( element ) { return new ValueAttributeObserver ( element , 'valuestart' , new EventSubscriber ( [ events . CHANGE , events . INPUT ] ) ) ; } } } } ;