export * from './config' ; export * from './controller-validate-result' ; export * from './get-target-dom-element' ; export * from './property-info' ; export * from './property-accessor-parser' ; export * from './validate-binding-behavior' ; export * from './validate-event' ; export * from './validate-instruction' ; export * from './validate-result' ; export * from './validate-trigger' ; export * from './validation-controller' ; export * from './validation-controller-factory' ; export * from './validation-errors-custom-attribute' ; export * from './validation-renderer-custom-attribute' ; export * from './validation-renderer' ; export * from './validator' ; export * from './implementation/rule' ; export * from './implementation/rules' ; export * from './implementation/standard-validator' ; export * from './implementation/validation-messages' ; export * from './implementation/validation-message-parser' ; export * from './implementation/validation-rules' ; import { Container } from 'aurelia-dependency-injection' ; import { GlobalValidationConfiguration } from './config' ; import { ValidationMessageParser } from './implementation/validation-message-parser' ; import { PropertyAccessorParser } from './property-accessor-parser' ; import { ValidationRules } from './implementation/validation-rules' ; import { ValidateBindingBehavior , ValidateManuallyBindingBehavior , ValidateOnBlurBindingBehavior , ValidateOnChangeBindingBehavior , ValidateOnChangeOrBlurBindingBehavior , ValidateOnFocusoutBindingBehavior , ValidateOnChangeOrFocusoutBindingBehavior } from './validate-binding-behavior' ; import { ValidationErrorsCustomAttribute } from './validation-errors-custom-attribute' ; import { ValidationRendererCustomAttribute } from './validation-renderer-custom-attribute' ; /**
 * Configures the plugin.
 */ export function configure ( frameworkConfig , callback ? ) { const messageParser = frameworkConfig . container . get ( ValidationMessageParser ) ; const propertyParser = frameworkConfig . container . get ( PropertyAccessorParser ) ; ValidationRules . initialize ( messageParser , propertyParser ) ; const config = new GlobalValidationConfiguration ( ) ; if ( callback instanceof Function ) { callback ( config ) ; } config . apply ( frameworkConfig . container ) ; if ( frameworkConfig . globalResources ) { frameworkConfig . globalResources ( ValidateBindingBehavior , ValidateManuallyBindingBehavior , ValidateOnBlurBindingBehavior , ValidateOnFocusoutBindingBehavior , ValidateOnChangeBindingBehavior , ValidateOnChangeOrBlurBindingBehavior , ValidateOnChangeOrFocusoutBindingBehavior , ValidationErrorsCustomAttribute , ValidationRendererCustomAttribute ) ; } }