diff --git a/bower.json b/bower.json index f1b625f8..27b55c66 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.12.3", + "version": "0.12.4", "description": "Validation for Aurelia applications", "keywords": [ "aurelia", diff --git a/dist/amd/validation-error.d.ts b/dist/amd/validation-error.d.ts index 3064e1b1..34064d03 100644 --- a/dist/amd/validation-error.d.ts +++ b/dist/amd/validation-error.d.ts @@ -18,4 +18,5 @@ export declare class ValidationError { * @param propertyName The name of the invalid property. Optional. */ constructor(rule: any, message: string, object: any, propertyName?: string | null); + toString(): string; } diff --git a/dist/amd/validation-error.js b/dist/amd/validation-error.js index 52daccc4..8d575a8f 100644 --- a/dist/amd/validation-error.js +++ b/dist/amd/validation-error.js @@ -18,6 +18,9 @@ define(["require", "exports"], function (require, exports) { this.propertyName = propertyName; this.id = ValidationError.nextId++; } + ValidationError.prototype.toString = function () { + return this.message; + }; ValidationError.nextId = 0; return ValidationError; }()); diff --git a/dist/commonjs/validation-error.d.ts b/dist/commonjs/validation-error.d.ts index 3064e1b1..34064d03 100644 --- a/dist/commonjs/validation-error.d.ts +++ b/dist/commonjs/validation-error.d.ts @@ -18,4 +18,5 @@ export declare class ValidationError { * @param propertyName The name of the invalid property. Optional. */ constructor(rule: any, message: string, object: any, propertyName?: string | null); + toString(): string; } diff --git a/dist/commonjs/validation-error.js b/dist/commonjs/validation-error.js index f853f81e..e6dd0cc0 100644 --- a/dist/commonjs/validation-error.js +++ b/dist/commonjs/validation-error.js @@ -17,6 +17,9 @@ var ValidationError = (function () { this.propertyName = propertyName; this.id = ValidationError.nextId++; } + ValidationError.prototype.toString = function () { + return this.message; + }; ValidationError.nextId = 0; return ValidationError; }()); diff --git a/dist/es2015/validation-error.d.ts b/dist/es2015/validation-error.d.ts index 3064e1b1..34064d03 100644 --- a/dist/es2015/validation-error.d.ts +++ b/dist/es2015/validation-error.d.ts @@ -18,4 +18,5 @@ export declare class ValidationError { * @param propertyName The name of the invalid property. Optional. */ constructor(rule: any, message: string, object: any, propertyName?: string | null); + toString(): string; } diff --git a/dist/es2015/validation-error.js b/dist/es2015/validation-error.js index c15d94ee..49eb9dfa 100644 --- a/dist/es2015/validation-error.js +++ b/dist/es2015/validation-error.js @@ -15,5 +15,8 @@ export class ValidationError { this.propertyName = propertyName; this.id = ValidationError.nextId++; } + toString() { + return this.message; + } } ValidationError.nextId = 0; diff --git a/dist/native-modules/validation-error.d.ts b/dist/native-modules/validation-error.d.ts index 3064e1b1..34064d03 100644 --- a/dist/native-modules/validation-error.d.ts +++ b/dist/native-modules/validation-error.d.ts @@ -18,4 +18,5 @@ export declare class ValidationError { * @param propertyName The name of the invalid property. Optional. */ constructor(rule: any, message: string, object: any, propertyName?: string | null); + toString(): string; } diff --git a/dist/native-modules/validation-error.js b/dist/native-modules/validation-error.js index 140524ea..e4c48dd7 100644 --- a/dist/native-modules/validation-error.js +++ b/dist/native-modules/validation-error.js @@ -16,6 +16,9 @@ export var ValidationError = (function () { this.propertyName = propertyName; this.id = ValidationError.nextId++; } + ValidationError.prototype.toString = function () { + return this.message; + }; ValidationError.nextId = 0; return ValidationError; }()); diff --git a/dist/system/validation-error.d.ts b/dist/system/validation-error.d.ts index 3064e1b1..34064d03 100644 --- a/dist/system/validation-error.d.ts +++ b/dist/system/validation-error.d.ts @@ -18,4 +18,5 @@ export declare class ValidationError { * @param propertyName The name of the invalid property. Optional. */ constructor(rule: any, message: string, object: any, propertyName?: string | null); + toString(): string; } diff --git a/dist/system/validation-error.js b/dist/system/validation-error.js index 2ac6e110..0b89d8de 100644 --- a/dist/system/validation-error.js +++ b/dist/system/validation-error.js @@ -23,6 +23,9 @@ System.register([], function(exports_1, context_1) { this.propertyName = propertyName; this.id = ValidationError.nextId++; } + ValidationError.prototype.toString = function () { + return this.message; + }; ValidationError.nextId = 0; return ValidationError; }()); diff --git a/doc/api.json b/doc/api.json new file mode 100644 index 00000000..fef434b2 --- /dev/null +++ b/doc/api.json @@ -0,0 +1 @@ +{"name":"aurelia-validation","children":[{"id":480,"name":"AureliaValidationConfiguration","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Aurelia Validation Configuration API"},"children":[{"id":481,"name":"validatorType","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":666,"character":29}],"type":{"type":"instrinct","name":"any"}},{"id":489,"name":"apply","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":490,"name":"apply","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the configuration."},"parameters":[{"id":491,"name":"container","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Container"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":676,"character":13}]},{"id":482,"name":"customValidator","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":483,"name":"customValidator","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Use a custom Validator implementation."},"parameters":[{"id":484,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":485,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":486,"name":"constructor","kind":512,"kindString":"Constructor","flags":{},"signatures":[{"id":487,"name":"new __type","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":488,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"reference","name":"__type","id":485}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":670,"character":31}]}],"groups":[{"title":"Constructors","kind":512,"children":[486]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":670,"character":29}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":670,"character":23}]}],"groups":[{"title":"Properties","kind":1024,"children":[481]},{"title":"Methods","kind":2048,"children":[489,482]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":665,"character":47}]},{"id":428,"name":"FluentEnsure","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Part of the fluent rule API. Enables targeting properties and objects with rules."},"typeParameter":[{"id":429,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}}],"children":[{"id":432,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":433,"name":"new FluentEnsure","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":434,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":215}}],"type":{"type":"reference","name":"FluentEnsure","id":428}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":592,"character":36}]},{"id":430,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":588,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":431,"name":"rules","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Rules that have been defined using the fluent API."},"sources":[{"fileName":"aurelia-validation.d.ts","line":592,"character":13}],"type":{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"instrinct","name":"any"}]}},{"id":444,"name":"assertInitialized","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":445,"name":"assertInitialized","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":608,"character":33}]},{"id":435,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":436,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":437,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":438,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The property to target. Can be the property name or a property accessor function.\n"},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":"PropertyAccessor","id":210,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":598,"character":14}]},{"id":439,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":440,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":602,"character":20}]},{"id":441,"name":"on","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":442,"name":"on","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the rules to a class or object, making them discoverable by the StandardValidator."},"parameters":[{"id":443,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A class or object.\n"},"type":{"type":"instrinct","name":"any"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":607,"character":10}]}],"groups":[{"title":"Constructors","kind":512,"children":[432]},{"title":"Properties","kind":1024,"children":[430,431]},{"title":"Methods","kind":2048,"children":[444,435,439,441]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":587,"character":29}]},{"id":285,"name":"FluentRuleCustomizer","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Part of the fluent rule API. Enables customizing property rules."},"typeParameter":[{"id":286,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":287,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"indexSignature":[{"id":333,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"comment":{"shortText":"Part of the fluent rule API. Enables customizing property rules."},"type":{"type":"instrinct","name":"any"}}],"children":[{"id":292,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":293,"name":"new FluentRuleCustomizer","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":294,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RuleProperty","id":175}},{"id":295,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":296,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":297,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":298,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":299,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":426,"character":54}]}}},{"id":300,"name":"config","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Object"}},{"id":301,"name":"fluentEnsure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentEnsure","id":428,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}},{"id":302,"name":"fluentRules","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}},{"id":303,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":215}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":425,"character":21}]},{"id":288,"name":"fluentEnsure","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":422,"character":28}],"type":{"type":"instrinct","name":"any"}},{"id":289,"name":"fluentRules","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":423,"character":27}],"type":{"type":"instrinct","name":"any"}},{"id":290,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":424,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":328,"name":"readonly","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Rules that have been defined using the fluent API."},"sources":[{"fileName":"aurelia-validation.d.ts","line":460,"character":16}],"type":{"type":"instrinct","name":"unknown"},"defaultValue":" rules"},{"id":291,"name":"rule","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":425,"character":20}],"type":{"type":"instrinct","name":"any"}},{"id":329,"name":"Rule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":330,"name":"Rule","kind":4096,"kindString":"Call signature","flags":{},"typeParameter":[{"id":331,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":332,"name":"any","kind":131072,"kindString":"Type parameter","flags":{}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":460,"character":28}]},{"id":354,"name":"email","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":355,"name":"email","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"email\" rule to the property.\nnull, undefined and empty-string values are considered valid."},"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":494,"character":13}]},{"id":319,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":320,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":321,"name":"TValue2","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":322,"name":"subject","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reflection","declaration":{"id":323,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":324,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":325,"name":"model","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"typeParameter","name":"TValue2"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":450,"character":41}]}}]}}],"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue2"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":450,"character":14}]},{"id":326,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":327,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":456,"character":20}]},{"id":351,"name":"matches","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":352,"name":"matches","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"matches\" rule to the property.\nValue must match the specified regular expression.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":353,"name":"regex","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RegExp"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":489,"character":15}]},{"id":365,"name":"maxItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":366,"name":"maxItems","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"maxItems\" ARRAY validation rule to the property.\nnull and undefined values are considered valid."},"parameters":[{"id":367,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":514,"character":16}]},{"id":359,"name":"maxLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":360,"name":"maxLength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"maxLength\" STRING validation rule to the property.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":361,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":504,"character":17}]},{"id":362,"name":"minItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":363,"name":"minItems","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"minItems\" ARRAY validation rule to the property.\nnull and undefined values are considered valid."},"parameters":[{"id":364,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":509,"character":16}]},{"id":356,"name":"minLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":357,"name":"minLength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"minLength\" STRING validation rule to the property.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":358,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":499,"character":17}]},{"id":334,"name":"on","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":335,"name":"on","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the rules to a class or object, making them discoverable by the StandardValidator."},"parameters":[{"id":336,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A class or object.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"FluentEnsure","id":428,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":465,"character":10}]},{"id":349,"name":"required","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":350,"name":"required","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"required\" rule to the property.\nThe value cannot be null, undefined or whitespace."},"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":483,"character":16}]},{"id":337,"name":"satisfies","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":338,"name":"satisfies","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies an ad-hoc rule function to the ensured property or object."},"parameters":[{"id":339,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The function to validate the rule.\nWill be called with two arguments, the property value and the object.\nShould return a boolean or a Promise that resolves to a boolean.\n"},"type":{"type":"reflection","declaration":{"id":340,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":341,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":342,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":343,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":472,"character":28}]}}},{"id":344,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":472,"character":17}]},{"id":345,"name":"satisfiesRule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":346,"name":"satisfiesRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies a rule by name."},"parameters":[{"id":347,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the custom or standard rule."},"type":{"type":"instrinct","name":"string"}},{"id":348,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"text":"The rule's arguments.\n"},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":478,"character":21}]},{"id":316,"name":"tag","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":317,"name":"tag","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Tags the rule instance, enabling the rule to be found easily\nusing ValidationRules.taggedRules(rules, tag)"},"parameters":[{"id":318,"name":"tag","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":445,"character":11}]},{"id":310,"name":"when","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":311,"name":"when","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Specifies a condition that must be met before attempting to validate the rule."},"parameters":[{"id":312,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A function that accepts the object as a parameter and returns true\nor false whether the rule should be evaluated.\n"},"type":{"type":"reflection","declaration":{"id":313,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":314,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":315,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"instrinct","name":"boolean"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":440,"character":23}]}}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":440,"character":12}]},{"id":307,"name":"withMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":308,"name":"withMessage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Specifies rule's validation message."},"parameters":[{"id":309,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":434,"character":19}]},{"id":304,"name":"withMessageKey","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":305,"name":"withMessageKey","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Specifies the key to use when looking up the rule's validation message."},"parameters":[{"id":306,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":430,"character":22}]}],"groups":[{"title":"Constructors","kind":512,"children":[292]},{"title":"Properties","kind":1024,"children":[288,289,290,328,291]},{"title":"Methods","kind":2048,"children":[329,354,319,326,351,365,359,362,356,334,349,337,345,316,310,307,304]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":421,"character":37}]},{"id":368,"name":"FluentRules","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Part of the fluent rule API. Enables applying rules to properties and objects."},"typeParameter":[{"id":369,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":370,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"children":[{"id":389,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":390,"name":"new FluentRules","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":391,"name":"fluentEnsure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentEnsure","id":428,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}},{"id":392,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":215}},{"id":393,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RuleProperty","id":175}}],"type":{"type":"reference","name":"FluentRules","id":368}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":528,"character":10}]},{"id":371,"name":"fluentEnsure","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":520,"character":28}],"type":{"type":"instrinct","name":"any"}},{"id":372,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":521,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":373,"name":"property","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":522,"character":24}],"type":{"type":"instrinct","name":"any"}},{"id":374,"name":"customRules","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":523,"character":26}],"type":{"type":"reflection","declaration":{"id":375,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"indexSignature":[{"id":376,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":377,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reflection","declaration":{"id":378,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":385,"name":"argsToConfig","kind":32,"kindString":"Variable","flags":{"isOptional":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":526,"character":28}],"type":{"type":"reflection","declaration":{"id":386,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":387,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":388,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":526,"character":30}]}}},{"id":379,"name":"condition","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":525,"character":25}],"type":{"type":"reflection","declaration":{"id":380,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":381,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":382,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":383,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":384,"name":"fluentArgs","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":525,"character":26}]}}}],"groups":[{"title":"Variables","kind":32,"children":[385,379]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":524,"character":27}]}}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":523,"character":27}]}}},{"id":394,"name":"displayName","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":395,"name":"displayName","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Sets the display name of the ensured property."},"parameters":[{"id":396,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":533,"character":19}]},{"id":414,"name":"email","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":415,"name":"email","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"email\" rule to the property.\nnull, undefined and empty-string values are considered valid."},"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":562,"character":13}]},{"id":411,"name":"matches","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":412,"name":"matches","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"matches\" rule to the property.\nValue must match the specified regular expression.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":413,"name":"regex","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RegExp"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":557,"character":15}]},{"id":425,"name":"maxItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":426,"name":"maxItems","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"maxItems\" ARRAY validation rule to the property.\nnull and undefined values are considered valid."},"parameters":[{"id":427,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":582,"character":16}]},{"id":419,"name":"maxLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":420,"name":"maxLength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"maxLength\" STRING validation rule to the property.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":421,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":572,"character":17}]},{"id":422,"name":"minItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":423,"name":"minItems","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"minItems\" ARRAY validation rule to the property.\nnull and undefined values are considered valid."},"parameters":[{"id":424,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":577,"character":16}]},{"id":416,"name":"minLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":417,"name":"minLength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"minLength\" STRING validation rule to the property.\nnull, undefined and empty-string values are considered valid."},"parameters":[{"id":418,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":567,"character":17}]},{"id":409,"name":"required","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":410,"name":"required","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the \"required\" rule to the property.\nThe value cannot be null, undefined or whitespace."},"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":551,"character":16}]},{"id":397,"name":"satisfies","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":398,"name":"satisfies","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies an ad-hoc rule function to the ensured property or object."},"parameters":[{"id":399,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The function to validate the rule.\nWill be called with two arguments, the property value and the object.\nShould return a boolean or a Promise that resolves to a boolean.\n"},"type":{"type":"reflection","declaration":{"id":400,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":401,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":402,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":403,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":540,"character":28}]}}},{"id":404,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":540,"character":17}]},{"id":405,"name":"satisfiesRule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":406,"name":"satisfiesRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies a rule by name."},"parameters":[{"id":407,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the custom or standard rule."},"type":{"type":"instrinct","name":"string"}},{"id":408,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"text":"The rule's arguments.\n"},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":285,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":546,"character":21}]}],"groups":[{"title":"Constructors","kind":512,"children":[389]},{"title":"Properties","kind":1024,"children":[371,372,373,374]},{"title":"Methods","kind":2048,"children":[394,414,411,425,419,422,416,409,397,405]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":519,"character":28}]},{"id":197,"name":"Rules","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Sets, unsets and retrieves rules on an object or constructor function."},"children":[{"id":209,"name":"null","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":332,"character":56}],"type":{"type":"instrinct","name":"any"}},{"id":198,"name":"key","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"comment":{"shortText":"The name of the property that stores the rules."},"sources":[{"fileName":"aurelia-validation.d.ts","line":320,"character":18}],"type":{"type":"instrinct","name":"string"}},{"id":206,"name":"get","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":207,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Retrieves the target's rules."},"parameters":[{"id":208,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"union","types":[{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"instrinct","name":"any"},{"type":"instrinct","name":"any"}]},{"type":"reference","name":""}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":332,"character":18}]},{"id":199,"name":"set","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":200,"name":"set","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the rules to a target."},"parameters":[{"id":201,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":202,"name":"rules","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"instrinct","name":"any"},{"type":"instrinct","name":"any"}]}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":324,"character":18}]},{"id":203,"name":"unset","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":204,"name":"unset","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes rules from a target."},"parameters":[{"id":205,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":328,"character":20}]}],"groups":[{"title":"Properties","kind":1024,"children":[209,198]},{"title":"Methods","kind":2048,"children":[206,199,203]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":316,"character":22}]},{"id":258,"name":"StandardValidator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Validates.\nResponsible for validating objects and properties."},"children":[{"id":262,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":263,"name":"new StandardValidator","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":264,"name":"messageProvider","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationMessageProvider","id":246}},{"id":265,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ViewResources"}}],"type":{"type":"reference","name":"StandardValidator","id":258}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":396,"character":32}]},{"id":261,"name":"lookupFunctions","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":396,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":260,"name":"messageProvider","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":395,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":259,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":394,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"any"}},{"id":266,"name":"getMessage","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":267,"name":"getMessage","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":268,"name":"rule","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":269,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":270,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":398,"character":26}]},{"id":271,"name":"validate","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":272,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":273,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":274,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":275,"name":"rules","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":399,"character":24}]},{"id":281,"name":"validateObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":282,"name":"validateObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates all rules for specified object and it's properties."},"parameters":[{"id":283,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":284,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. If unspecified, the rules will be looked up using the metadata\nfor the object created by ValidationRules....on(class/object)\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise"},"overwrites":{"type":"reference","name":"Validator.validateObject","id":21}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":414,"character":22}],"overwrites":{"type":"reference","name":"Validator.validateObject","id":21}},{"id":276,"name":"validateProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":277,"name":"validateProperty","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates the specified property."},"parameters":[{"id":278,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":279,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the property to validate."},"type":{"type":"instrinct","name":"string"}},{"id":280,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. If unspecified, the rules will be looked up using the metadata\nfor the object created by ValidationRules....on(class/object)\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise"},"overwrites":{"type":"reference","name":"Validator.validateProperty","id":16}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":407,"character":24}],"overwrites":{"type":"reference","name":"Validator.validateProperty","id":16}}],"groups":[{"title":"Constructors","kind":512,"children":[262]},{"title":"Properties","kind":1024,"children":[261,260,259]},{"title":"Methods","kind":2048,"children":[266,271,281,276]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":393,"character":34}],"extendedTypes":[{"type":"reference","name":"Validator","id":15}]},{"id":107,"name":"ValidateBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding behavior. Indicates the bound property should be validated."},"children":[{"id":110,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":111,"name":"new ValidateBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":112,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"TaskQueue"}}],"type":{"type":"reference","name":"ValidateBindingBehavior","id":107}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":223,"character":42}]},{"id":108,"name":"taskQueue","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":222,"character":25}],"type":{"type":"instrinct","name":"any"}},{"id":109,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":223,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"unknown"}},{"id":117,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":118,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":119,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":120,"name":"source","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":121,"name":"rulesOrController","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"reference","name":"ValidationController","id":39},{"type":"instrinct","name":"any"}]}},{"id":122,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":232,"character":12}]},{"id":113,"name":"getTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":114,"name":"getTarget","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets the DOM element associated with the data-binding. Most of the time it's\nthe binding.target but sometimes binding.target is an aurelia custom element,\nwhich is a javascript \"class\" instance, so we need to use the controller to\nlocate the actual DOM element."},"parameters":[{"id":115,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":116,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":231,"character":17}]},{"id":123,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":124,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":125,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":233,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[110]},{"title":"Properties","kind":1024,"children":[108,109]},{"title":"Methods","kind":2048,"children":[117,113,123]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":221,"character":40}]},{"id":39,"name":"ValidationController","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Orchestrates validation.\nManages a set of bindings, renderers and objects.\nExposes the current list of validation errors for binding purposes."},"children":[{"id":50,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":51,"name":"new ValidationController","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":52,"name":"validator","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Validator","id":15}}],"type":{"type":"reference","name":"ValidationController","id":39}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":144,"character":33}]},{"id":42,"name":"bindings","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":128,"character":24}],"type":{"type":"instrinct","name":"any"}},{"id":46,"name":"elements","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":138,"character":24}],"type":{"type":"instrinct","name":"any"}},{"id":44,"name":"errors","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Errors that have been rendered by the controller."},"sources":[{"fileName":"aurelia-validation.d.ts","line":133,"character":14}],"type":{"type":"reference","isArray":true,"name":"ValidationError","id":2}},{"id":49,"name":"finishValidating","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":144,"character":32}],"type":{"type":"instrinct","name":"any"}},{"id":47,"name":"objects","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":139,"character":23}],"type":{"type":"instrinct","name":"any"}},{"id":43,"name":"renderers","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":129,"character":25}],"type":{"type":"instrinct","name":"any"}},{"id":48,"name":"validateTrigger","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The trigger that will invoke automatic validation of a property used in a binding."},"sources":[{"fileName":"aurelia-validation.d.ts","line":143,"character":23}],"type":{"type":"instrinct","name":"string"}},{"id":45,"name":"validating","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":" Whether the controller is currently validating."},"sources":[{"fileName":"aurelia-validation.d.ts","line":137,"character":18}],"type":{"type":"instrinct","name":"boolean"}},{"id":40,"name":"validator","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":126,"character":25}],"type":{"type":"instrinct","name":"any"}},{"id":41,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":127,"character":21}],"type":{"type":"reference","isArray":true,"name":"Validator","id":15}},{"id":60,"name":"addError","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":61,"name":"addError","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds and renders a ValidationError."},"parameters":[{"id":62,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":63,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":64,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"ValidationError","id":2}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":160,"character":16}]},{"id":53,"name":"addObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":54,"name":"addObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds an object to the set of objects that should be validated when validate is called."},"parameters":[{"id":55,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object."},"type":{"type":"instrinct","name":"any"}},{"id":56,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. The rules. If rules aren't supplied the Validator implementation will lookup the rules.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":151,"character":17}]},{"id":68,"name":"addRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"addRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a renderer."},"parameters":[{"id":70,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":31}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":169,"character":19}]},{"id":91,"name":"getAssociatedElements","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":92,"name":"getAssociatedElements","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets the elements associated with an object and propertyName (if any)."},"parameters":[{"id":93,"name":"__namedParameters","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__0","type":{"type":"reflection","declaration":{"id":94,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":95,"name":"object","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":205,"character":45}],"type":{"type":"instrinct","name":"any"}},{"id":96,"name":"propertyName","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":205,"character":59}],"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Variables","kind":32,"children":[95,96]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":205,"character":38}]}}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":205,"character":37}]},{"id":82,"name":"getInstructionPredicate","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":83,"name":"getInstructionPredicate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Interprets the instruction and returns a predicate that will identify\nrelevant errors in the list of rendered errors."},"parameters":[{"id":84,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":191,"character":39}]},{"id":97,"name":"processErrorDelta","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":98,"name":"processErrorDelta","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":99,"name":"oldErrors","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":100,"name":"newErrors","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":206,"character":33}]},{"id":74,"name":"registerBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":75,"name":"registerBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Registers a binding with the controller."},"parameters":[{"id":76,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The binding instance."},"type":{"type":"reference","name":"Binding"}},{"id":77,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The DOM element."},"type":{"type":"reference","name":"Element"}},{"id":78,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"(optional) rules associated with the binding. Validator implementation specific.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":181,"character":23}]},{"id":65,"name":"removeError","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":66,"name":"removeError","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes and unrenders a ValidationError."},"parameters":[{"id":67,"name":"error","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationError","id":2}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":164,"character":19}]},{"id":57,"name":"removeObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":58,"name":"removeObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes an object from the set of objects that should be validated when validate is called."},"parameters":[{"id":59,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":156,"character":20}]},{"id":71,"name":"removeRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":72,"name":"removeRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes a renderer."},"parameters":[{"id":73,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":31}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":174,"character":22}]},{"id":88,"name":"reset","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":89,"name":"reset","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Resets any rendered errors (unrenders)."},"parameters":[{"id":90,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. Instructions on what to reset. If unspecified all rendered errors will be unrendered.\n"},"type":{"type":"reference","name":"ValidateInstruction","id":35}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":201,"character":13}]},{"id":104,"name":"resetBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":105,"name":"resetBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Resets the errors for a property associated with a binding."},"parameters":[{"id":106,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Binding"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":214,"character":20}]},{"id":79,"name":"unregisterBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":80,"name":"unregisterBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unregisters a binding with the controller."},"parameters":[{"id":81,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The binding instance.\n"},"type":{"type":"reference","name":"Binding"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":186,"character":25}]},{"id":85,"name":"validate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":86,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates and renders errors."},"parameters":[{"id":87,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. Instructions on what to validate. If undefined, all objects and bindings will be validated.\n"},"type":{"type":"reference","name":"ValidateInstruction","id":35}}],"type":{"type":"reference","name":"Promise"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":196,"character":16}]},{"id":101,"name":"validateBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":102,"name":"validateBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates the property associated with a binding."},"parameters":[{"id":103,"name":"binding","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Binding"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":210,"character":23}]}],"groups":[{"title":"Constructors","kind":512,"children":[50]},{"title":"Properties","kind":1024,"children":[42,46,44,49,47,43,48,45,40,41]},{"title":"Methods","kind":2048,"children":[60,53,68,91,82,97,74,65,57,71,88,104,79,85,101]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":125,"character":37}]},{"id":126,"name":"ValidationControllerFactory","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Creates ValidationController instances."},"children":[{"id":129,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":130,"name":"new ValidationControllerFactory","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":131,"name":"container","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Container"}}],"type":{"type":"reference","name":"ValidationControllerFactory","id":126}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":241,"character":42}]},{"id":127,"name":"container","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":240,"character":25}],"type":{"type":"instrinct","name":"any"}},{"id":128,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":241,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"unknown"}},{"id":132,"name":"create","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":133,"name":"create","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Creates a new controller and registers it in the current element's container so that it's\navailable to the validate binding behavior and renderers."},"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":247,"character":14}]},{"id":134,"name":"createForCurrentScope","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":135,"name":"createForCurrentScope","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Creates a new controller and registers it in the current element's container so that it's\navailable to the validate binding behavior and renderers."},"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":252,"character":29}]}],"groups":[{"title":"Constructors","kind":512,"children":[129]},{"title":"Properties","kind":1024,"children":[127,128]},{"title":"Methods","kind":2048,"children":[132,134]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":239,"character":44}]},{"id":2,"name":"ValidationError","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A validation error."},"children":[{"id":9,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":10,"name":"new ValidationError","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{},"parameters":[{"id":11,"name":"rule","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The rule associated with the error. Validator implementation specific."},"type":{"type":"instrinct","name":"any"}},{"id":12,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The error message."},"type":{"type":"instrinct","name":"string"}},{"id":13,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The invalid object"},"type":{"type":"instrinct","name":"any"}},{"id":14,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The name of the invalid property. Optional.\n"},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":""}]},"defaultValue":" null"}],"type":{"type":"reference","name":"ValidationError","id":2}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":14,"character":19}]},{"id":8,"name":"id","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"A number that uniquely identifies the error instance."},"sources":[{"fileName":"aurelia-validation.d.ts","line":14,"character":10}],"type":{"type":"instrinct","name":"number"}},{"id":4,"name":"message","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":7,"character":15}],"type":{"type":"instrinct","name":"string"}},{"id":5,"name":"object","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":8,"character":14}],"type":{"type":"instrinct","name":"any"}},{"id":6,"name":"propertyName","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":9,"character":20}],"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":""}]},"defaultValue":" null"},{"id":3,"name":"rule","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":6,"character":12}],"type":{"type":"instrinct","name":"any"}},{"id":7,"name":"nextId","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":10,"character":29}],"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Constructors","kind":512,"children":[9]},{"title":"Properties","kind":1024,"children":[8,4,5,6,3,7]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":5,"character":32}]},{"id":139,"name":"ValidationErrorsCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":145,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":146,"name":"new ValidationErrorsCustomAttribute","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":147,"name":"boundaryElement","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Element"}},{"id":148,"name":"controllerAccessor","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":149,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":150,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"ValidationController","id":39}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":271,"character":65}]}}}],"type":{"type":"reference","name":"ValidationErrorsCustomAttribute","id":139}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":270,"character":32}]},{"id":140,"name":"boundaryElement","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":263,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":141,"name":"controllerAccessor","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":264,"character":34}],"type":{"type":"instrinct","name":"any"}},{"id":144,"name":"errors","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":270,"character":14}],"type":{"type":"reference","isArray":true,"name":"RenderedError","id":136}},{"id":143,"name":"value","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":269,"character":13}],"type":{"type":"reference","isArray":true,"name":"RenderedError","id":136}},{"id":142,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":265,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"any"}},{"id":159,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":160,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":277,"character":12}]},{"id":153,"name":"interestingElements","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":154,"name":"interestingElements","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":155,"name":"elements","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","isArray":true,"name":"Element"}}],"type":{"type":"reference","isArray":true,"name":"Element"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":275,"character":27}]},{"id":156,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":157,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":158,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RenderInstruction","id":28}}],"type":{"type":"instrinct","name":"void"},"implementationOf":{"type":"reference","name":"ValidationRenderer.render","id":33}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":276,"character":14}],"implementationOf":{"type":"reference","name":"ValidationRenderer.render","id":32}},{"id":151,"name":"sort","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":152,"name":"sort","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":274,"character":12}]},{"id":161,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":162,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":278,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[145]},{"title":"Properties","kind":1024,"children":[140,141,144,143,142]},{"title":"Methods","kind":2048,"children":[159,153,156,151,161]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":262,"character":48}],"implementedTypes":[{"type":"reference","name":"ValidationRenderer","id":31}]},{"id":246,"name":"ValidationMessageProvider","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Retrieves validation messages and property display names."},"children":[{"id":249,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":250,"name":"new ValidationMessageProvider","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":251,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":215}}],"type":{"type":"reference","name":"ValidationMessageProvider","id":246}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":370,"character":49}]},{"id":247,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":369,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":248,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":370,"character":21}],"type":{"type":"reference","isArray":true,"name":"ValidationParser","id":215}},{"id":255,"name":"computeDisplayName","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":256,"name":"computeDisplayName","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"When a display name is not provided, this method is used to formulate\na display name using the property name.\nOverride this with your own custom logic."},"parameters":[{"id":257,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The property name.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":383,"character":26}]},{"id":252,"name":"getMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":253,"name":"getMessage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns a message binding expression that corresponds to the key."},"parameters":[{"id":254,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The message key.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Expression"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":376,"character":18}]}],"groups":[{"title":"Constructors","kind":512,"children":[249]},{"title":"Properties","kind":1024,"children":[247,248]},{"title":"Methods","kind":2048,"children":[255,252]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":368,"character":42}]},{"id":215,"name":"ValidationParser","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":222,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":223,"name":"new ValidationParser","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":224,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Parser"}},{"id":225,"name":"bindinqLanguage","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"BindingLanguage"}}],"type":{"type":"reference","name":"ValidationParser","id":215}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":348,"character":36}]},{"id":217,"name":"bindinqLanguage","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":344,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":219,"name":"emptyStringExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":346,"character":37}],"type":{"type":"instrinct","name":"any"}},{"id":220,"name":"nullExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":347,"character":30}],"type":{"type":"instrinct","name":"any"}},{"id":216,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":343,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":221,"name":"undefinedExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":348,"character":35}],"type":{"type":"instrinct","name":"any"}},{"id":218,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":345,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"any"}},{"id":226,"name":"coalesce","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":227,"name":"coalesce","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":228,"name":"part","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":350,"character":24}]},{"id":235,"name":"getAccessorExpression","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":236,"name":"getAccessorExpression","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":237,"name":"f","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":353,"character":37}]},{"id":232,"name":"getFunctionBody","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":233,"name":"getFunctionBody","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":234,"name":"f","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":352,"character":31}]},{"id":229,"name":"parseMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":230,"name":"parseMessage","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":231,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Expression"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":351,"character":20}]},{"id":238,"name":"parseProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":239,"name":"parseProperty","kind":4096,"kindString":"Call signature","flags":{},"typeParameter":[{"id":240,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":241,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":242,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":"PropertyAccessor","id":210,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"RuleProperty","id":175}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":354,"character":21}]}],"groups":[{"title":"Constructors","kind":512,"children":[222]},{"title":"Properties","kind":1024,"children":[217,219,220,216,221,218]},{"title":"Methods","kind":2048,"children":[226,235,232,229,238]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":342,"character":33}]},{"id":163,"name":"ValidationRendererCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":164,"name":"container","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":282,"character":25}],"type":{"type":"instrinct","name":"any"}},{"id":165,"name":"controller","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":283,"character":26}],"type":{"type":"instrinct","name":"any"}},{"id":167,"name":"renderer","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":285,"character":24}],"type":{"type":"instrinct","name":"any"}},{"id":166,"name":"value","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":284,"character":21}],"type":{"type":"instrinct","name":"any"}},{"id":171,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":172,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":287,"character":12}]},{"id":168,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":169,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":170,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":286,"character":15}]},{"id":173,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":174,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":288,"character":14}]}],"groups":[{"title":"Properties","kind":1024,"children":[164,165,167,166]},{"title":"Methods","kind":2048,"children":[171,168,173]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":281,"character":50}]},{"id":446,"name":"ValidationRules","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Fluent rule definition API."},"children":[{"id":447,"name":"parser","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":614,"character":29}],"type":{"type":"instrinct","name":"any"}},{"id":459,"name":"customRule","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":460,"name":"customRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Defines a custom rule."},"parameters":[{"id":461,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the custom rule. Also serves as the message key."},"type":{"type":"instrinct","name":"string"}},{"id":462,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The rule function."},"type":{"type":"reflection","declaration":{"id":463,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":464,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":465,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":466,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":467,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":632,"character":50}]}}},{"id":468,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The message expression"},"type":{"type":"instrinct","name":"string"}},{"id":469,"name":"argsToConfig","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"A function that maps the rule's arguments to a \"config\" object that can be used when evaluating the message expression.\n"},"type":{"type":"reflection","declaration":{"id":470,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":471,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":472,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":632,"character":156}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":632,"character":25}]},{"id":451,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":452,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":453,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":454,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":455,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The property to target. Can be the property name or a property accessor function.\n"},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":"PropertyAccessor","id":210,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":620,"character":21}]},{"id":456,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":457,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"typeParameter":[{"id":458,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}}],"type":{"type":"reference","name":"FluentRules","id":368,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":624,"character":27}]},{"id":448,"name":"initialize","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":449,"name":"initialize","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":450,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":215}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":615,"character":25}]},{"id":477,"name":"off","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":478,"name":"off","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes the rules from a class or object."},"parameters":[{"id":479,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A class or object.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":643,"character":18}]},{"id":473,"name":"taggedRules","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":474,"name":"taggedRules","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns rules with the matching tag."},"parameters":[{"id":475,"name":"rules","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The rules to search."},"type":{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"instrinct","name":"any"},{"type":"instrinct","name":"any"}]}},{"id":476,"name":"tag","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The tag to search for.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"instrinct","name":"any"},{"type":"instrinct","name":"any"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":638,"character":26}]}],"groups":[{"title":"Properties","kind":1024,"children":[447]},{"title":"Methods","kind":2048,"children":[459,451,456,448,477,473]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":613,"character":32}]},{"id":15,"name":"Validator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Validates.\nResponsible for validating objects and properties."},"children":[{"id":21,"name":"validateObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":22,"name":"validateObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates all rules for specified object and it's properties."},"parameters":[{"id":23,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":24,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. If unspecified, the implementation should lookup the rules for the\nspecified object. This may not be possible for all implementations of this interface.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":43,"character":31}]},{"id":16,"name":"validateProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":17,"name":"validateProperty","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates the specified property."},"parameters":[{"id":18,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":19,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the property to validate."},"type":{"type":"instrinct","name":"string"}},{"id":20,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Optional. If unspecified, the implementation should lookup the rules for the\nspecified object. This may not be possible for all implementations of this interface.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":36,"character":33}]}],"groups":[{"title":"Methods","kind":2048,"children":[21,16]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":28,"character":35}],"extendedBy":[{"type":"reference","name":"StandardValidator","id":258}]},{"id":210,"name":"PropertyAccessor","kind":256,"kindString":"Interface","flags":{"isExported":true},"typeParameter":[{"id":211,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":212,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"signatures":[{"id":213,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":214,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"typeParameter","name":"TValue"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":339,"character":37}]},{"id":25,"name":"RenderErrorInstruction","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"An error to render (or unrender) and the associated elements (if any)"},"children":[{"id":27,"name":"elements","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The associated elements (if any)."},"sources":[{"fileName":"aurelia-validation.d.ts","line":76,"character":16}],"type":{"type":"reference","isArray":true,"name":"Element"}},{"id":26,"name":"error","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The validation error."},"sources":[{"fileName":"aurelia-validation.d.ts","line":72,"character":13}],"type":{"type":"reference","name":"ValidationError","id":2}}],"groups":[{"title":"Properties","kind":1024,"children":[27,26]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":68,"character":43}]},{"id":28,"name":"RenderInstruction","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Defines which errors to render and which errors to unrender."},"children":[{"id":29,"name":"render","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The errors to render."},"sources":[{"fileName":"aurelia-validation.d.ts","line":85,"character":14}],"type":{"type":"reference","isArray":true,"name":"RenderErrorInstruction","id":25}},{"id":30,"name":"unrender","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The errors to unrender."},"sources":[{"fileName":"aurelia-validation.d.ts","line":89,"character":16}],"type":{"type":"reference","isArray":true,"name":"RenderErrorInstruction","id":25}}],"groups":[{"title":"Properties","kind":1024,"children":[29,30]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":81,"character":38}]},{"id":136,"name":"RenderedError","kind":256,"kindString":"Interface","flags":{"isExported":true},"children":[{"id":137,"name":"error","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":259,"character":13}],"type":{"type":"reference","name":"ValidationError","id":2}},{"id":138,"name":"targets","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":260,"character":15}],"type":{"type":"reference","isArray":true,"name":"Element"}}],"groups":[{"title":"Properties","kind":1024,"children":[137,138]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":258,"character":34}]},{"id":179,"name":"Rule","kind":256,"kindString":"Interface","flags":{"isExported":true},"typeParameter":[{"id":180,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":181,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"children":[{"id":183,"name":"condition","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":303,"character":17}],"type":{"type":"reflection","declaration":{"id":184,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":185,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":186,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":187,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"boolean"},{"type":"reference","name":"Promise"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":303,"character":18}]}}},{"id":188,"name":"config","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":304,"character":14}],"type":{"type":"reference","name":"Object"}},{"id":195,"name":"message","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":309,"character":15}],"type":{"type":"union","types":[{"type":"reference","name":"Expression"},{"type":"reference","name":""}]}},{"id":194,"name":"messageKey","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":308,"character":18}],"type":{"type":"instrinct","name":"string"}},{"id":193,"name":"null","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":307,"character":16},{"fileName":"aurelia-validation.d.ts","line":309,"character":34}],"type":{"type":"instrinct","name":"any"}},{"id":182,"name":"property","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":302,"character":16}],"type":{"type":"reference","name":"RuleProperty","id":175}},{"id":196,"name":"tag","kind":1024,"kindString":"Property","flags":{"isExported":true,"isOptional":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":310,"character":11}],"type":{"type":"instrinct","name":"string"}},{"id":189,"name":"when","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":305,"character":12}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":190,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":191,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":192,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"instrinct","name":"boolean"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":305,"character":13}]}},{"type":"reference","name":""}]}}],"groups":[{"title":"Properties","kind":1024,"children":[183,188,195,194,193,182,196,189]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":301,"character":25}]},{"id":175,"name":"RuleProperty","kind":256,"kindString":"Interface","flags":{"isExported":true},"children":[{"id":178,"name":"displayName","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The displayName of the property (or object)."},"sources":[{"fileName":"aurelia-validation.d.ts","line":299,"character":19}],"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":""}]}},{"id":176,"name":"name","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The property name. null indicates the rule targets the object itself."},"sources":[{"fileName":"aurelia-validation.d.ts","line":295,"character":12}],"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":""}]}},{"id":177,"name":"null","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":295,"character":27},{"fileName":"aurelia-validation.d.ts","line":299,"character":34}],"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Properties","kind":1024,"children":[178,176,177]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":291,"character":33}]},{"id":35,"name":"ValidateInstruction","kind":256,"kindString":"Interface","flags":{"isExported":true},"children":[{"id":36,"name":"object","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The object to validate."},"sources":[{"fileName":"aurelia-validation.d.ts","line":110,"character":14}],"type":{"type":"instrinct","name":"any"}},{"id":37,"name":"propertyName","kind":1024,"kindString":"Property","flags":{"isExported":true,"isOptional":true},"comment":{"shortText":"The property to validate. Optional."},"sources":[{"fileName":"aurelia-validation.d.ts","line":114,"character":20}],"type":{"type":"instrinct","name":"any"}},{"id":38,"name":"rules","kind":1024,"kindString":"Property","flags":{"isExported":true,"isOptional":true},"comment":{"shortText":"The rules to validate. Optional."},"sources":[{"fileName":"aurelia-validation.d.ts","line":118,"character":13}],"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Properties","kind":1024,"children":[36,37,38]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":106,"character":40}]},{"id":243,"name":"ValidationMessages","kind":256,"kindString":"Interface","flags":{"isExported":true},"indexSignature":[{"id":244,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":245,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":358,"character":39}]},{"id":31,"name":"ValidationRenderer","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Renders validation errors."},"children":[{"id":32,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":33,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Render the errors."},"parameters":[{"id":34,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The render instruction. Defines which errors to render and which\nerrors to unrender.\n"},"type":{"type":"reference","name":"RenderInstruction","id":28}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":100,"character":14}]}],"groups":[{"title":"Methods","kind":2048,"children":[32]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":94,"character":39}],"implementedBy":[{"type":"reference","name":"ValidationErrorsCustomAttribute","id":139}]},{"id":492,"name":"validateTrigger","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Validation triggers."},"sources":[{"fileName":"aurelia-validation.d.ts","line":49,"character":32}],"type":{"type":"reflection","declaration":{"id":493,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":494,"name":"blur","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":50,"character":12}],"type":{"type":"instrinct","name":"string"}},{"id":495,"name":"change","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":51,"character":14}],"type":{"type":"instrinct","name":"string"}},{"id":496,"name":"manual","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":52,"character":14}],"type":{"type":"instrinct","name":"string"}}],"groups":[{"title":"Variables","kind":32,"children":[494,495,496]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":49,"character":33}]}}},{"id":507,"name":"validationMessages","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Dictionary of validation messages. [messageKey]: messageExpression"},"sources":[{"fileName":"aurelia-validation.d.ts","line":364,"character":35}],"type":{"type":"reference","name":"ValidationMessages","id":243}},{"id":508,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":509,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Configures the plugin."},"parameters":[{"id":510,"name":"frameworkConfig","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":511,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":512,"name":"container","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":682,"character":17}],"type":{"type":"reference","name":"Container"}},{"id":513,"name":"globalResources","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":683,"character":23}],"type":{"type":"reflection","declaration":{"id":514,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":515,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":516,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"string"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":683,"character":24}]}}}],"groups":[{"title":"Variables","kind":32,"children":[512,513]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":681,"character":46}]}}},{"id":517,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":518,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":519,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":520,"name":"config","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AureliaValidationConfiguration","id":480}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":684,"character":17}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":681,"character":29}]},{"id":497,"name":"getPropertyInfo","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":498,"name":"getPropertyInfo","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Retrieves the object and property name for the specified expression."},"parameters":[{"id":499,"name":"expression","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The expression"},"type":{"type":"reference","name":"Expression"}},{"id":500,"name":"source","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The scope\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reflection","declaration":{"id":501,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":502,"name":"object","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":61,"character":14}],"type":{"type":"instrinct","name":"any"}},{"id":503,"name":"propertyName","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":62,"character":20}],"type":{"type":"instrinct","name":"string"}}],"groups":[{"title":"Variables","kind":32,"children":[502,503]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":60,"character":73}]}}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":60,"character":35}]},{"id":504,"name":"isString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":505,"name":"isString","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":506,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"boolean"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":335,"character":28}]}],"groups":[{"title":"Classes","kind":128,"children":[480,428,285,368,197,258,107,39,126,2,139,246,215,163,446,15]},{"title":"Interfaces","kind":256,"children":[210,25,28,136,179,175,35,243,31]},{"title":"Variables","kind":32,"children":[492,507]},{"title":"Functions","kind":64,"children":[508,497,504]}]} diff --git a/package.json b/package.json index 9909c940..12461ffd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.12.3", + "version": "0.12.4", "description": "Validation for Aurelia applications", "keywords": [ "aurelia",