-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathindex.js
23 lines (21 loc) · 999 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export {Utilities} from './utilities';
export {ValidationConfig} from './validation-config';
export {ValidationLocale} from './validation-locale';
export * from './validation-result';
export * from './validation-rules';
export {Validation} from './validation';
export {ValidationGroup} from './validation-group';
export {ValidateCustomAttribute} from './validate-custom-attribute';
export {ValidationViewStrategy} from './validation-view-strategy';
export {TWBootstrapViewStrategy} from './strategies/twbootstrap-view-strategy';
export {ensure} from './decorators';
import {ValidationConfig} from './validation-config';
import {Validation} from './validation';
export function configure(aurelia, configCallback) {
aurelia.globalResources('./validate-custom-attribute');
if (configCallback !== undefined && typeof(configCallback) === 'function') {
configCallback(Validation.defaults);
}
aurelia.singleton(ValidationConfig, Validation.defaults);
return Validation.defaults.locale();
}