import { FrameworkConfiguration , PLATFORM , bindingMode , EventSubscriber , ObserverLocator , CheckedObserver } from 'aurelia-framework' ; import { MdcComponentAdapters } from '@aurelia-mdc-web/base' ; export { MdcCheckbox , IMdcCheckboxElement } from './mdc-checkbox' ; export function configure ( config ) { config . container . get ( MdcComponentAdapters ) . registerMdcElementConfig ( checkboxConfig ) ; config . globalResources ( [ PLATFORM . moduleName ( './mdc-checkbox' ) ] ) ; config . aurelia . use . plugin ( PLATFORM . moduleName ( '@aurelia-mdc-web/ripple' ) ) ; } const checkboxConfig = { tagName : 'mdc-checkbox' , properties : { checked : { defaultBindingMode : bindingMode . twoWay , getObserver ( element , _ , observerLocator ) { return new CheckedObserver ( element , new EventSubscriber ( [ 'change' ] ) , observerLocator ) ; } } } } ;